/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f7f7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #f7f7f7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

/* Home Page Header Initial State */
.home-page .header {
    background-color: transparent;
    box-shadow: none;
    top: 20px;
}

/* Header state on scroll for ALL pages */
.header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 0;
}

/* Update text colors when header is scrolled */
.header.scrolled .nav-link,
.header.scrolled .logo h2 {
    color: #222222;
    text-shadow: none;
}

/* Ensure non-home pages show dark header text initially */
body:not(.home-page) .logo h2,
body:not(.home-page) .nav-link {
    color: #222222;
    text-shadow: none;
}

body:not(.home-page) .nav-link::after {
    background-color: #222222;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Update for scrolled state */
.header.scrolled .nav-link {
    color: #222222;
    text-shadow: none;
}

.header.scrolled .nav-link::after {
    background-color: #222222;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: #222222;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.slide {
    height: 100%;
    position: relative;
    display: none;
}

.slide.active {
    display: block;
}

.slide-bg {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 1100px;
    width: min(84vw, 1100px);
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: #f7f7f7;
    color: #222222;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Welcome Section */
.welcome {
    padding: 5rem 0;
    background-color: #ffffff;
}

.welcome-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.welcome-text {
    flex: 1;
    min-width: 300px;
}

.welcome-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.welcome-image:hover img {
    transform: scale(1.03);
}

.experience-badge {
    position: absolute;
    bottom: -25px;
    right: 30px;
    background: #222222;
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.experience-badge span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.experience-badge small {
    font-size: 0.9rem;
    opacity: 0.9;
}

.welcome h2 {
    color: #222222;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.welcome p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 2rem;
}

.section-subtitle {
    display: inline-block;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 2px;
    background-color: #222222;
}

.welcome-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #333;
}

.feature i {
    color: #222222;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .welcome {
        padding: 3rem 0;
    }
    
    .welcome-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .welcome-text, 
    .welcome-image {
        width: 100%;
    }
    
    .experience-badge {
        right: 20px;
        bottom: -20px;
    }
}

/* Practice Areas */
.practice-areas {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #222222;
    margin-bottom: 3rem;
    font-weight: 600;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.area-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.area-icon {
    font-size: 3rem;
    color: #222222;
    margin-bottom: 1.5rem;
}

.area-card h3 {
    font-size: 1.5rem;
    color: #222222;
    margin-bottom: 1rem;
    font-weight: 600;
}

.area-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Why Choose Us */
.why-choose-us {
    padding: 5rem 0;
    background-color: #f7f7f7;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-text h2 {
    font-size: 2.5rem;
    color: #222222;
    margin-bottom: 2rem;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefits-list i {
    color: #10b981;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background-color: #222222;
    color: white;
}

.testimonials .section-title {
    color: white;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial.active {
    display: block;
}

.testimonial-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    opacity: 0.8;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-nav button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-nav button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Latest Blog */
.latest-blog {
    padding: 5rem 0;
}

.blog-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    color: #222222;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #222222;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

/*--------------------------------------------------------------
# Blog Page Styles
--------------------------------------------------------------*/
.blog-section {
    padding: 5rem 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.blog-post-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.post-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta span i {
    margin-right: 0.5rem;
    color: #222222;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #222222;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    color: #222222;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more-btn:hover {
    gap: 0.8rem;
}

/* Sidebar Styles */
.sidebar .widget {
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    color: #222222;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

/* Search Widget */
.search-bar {
    display: flex;
}

.search-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-btn {
    padding: 0.8rem 1rem;
    border: none;
    background-color: #222222;
    color: white;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

/* Categories Widget */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-btn {
    background: none;
    border: none;
    color: #334155;
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
    width: 100%;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    color: #222222;
    font-weight: 600;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
}

.recent-posts-list li {
    margin-bottom: 1rem;
}

.recent-posts-list a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: color 0.3s ease;
}

.recent-posts-list a:hover {
    color: #222222;
}

.recent-posts-list span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* CTA Widget */
.widget-cta-btn {
    display: inline-block;
    background-color: #222222;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.widget-cta-btn:hover {
    background-color: #444444;
}

/* Blog Responsive */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-content h3 {
        font-size: 1.3rem;
    }
}

.read-more:hover {
    color: #444444;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

/* Make footer section titles readable on dark background */
.footer .footer-section h3,
.footer .footer-section h4 {
    color: #ffffff;
}

/* Ensure contact info icons are visible on dark footer */
.footer .contact-info i {
    color: #ffffff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #222222;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222222;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #444444;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: #222222;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    opacity: 0.8;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #222222, #555555);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Firm Overview */
.firm-overview {
    padding: 5rem 0;
}

.overview-content h2 {
    font-size: 2.5rem;
    color: #222222;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.overview-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #64748b;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* Our Team */
.our-team {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #222222;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    font-size: 1.5rem;
    color: #222222;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-title {
    font-size: 1.1rem;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-experience {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-style: italic;
}

.member-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
}

/* Our Values */
.our-values {
    padding: 5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    color: #222222;
    margin-bottom: 1.5rem;
}

.value-item h3 {
    font-size: 1.3rem;
    color: #222222;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Firm History */
.firm-history {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

.history-text h2 {
    font-size: 2.5rem;
    color: #222222;
    margin-bottom: 2rem;
    font-weight: 600;
}

.history-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #64748b;
}

.timeline {
    margin-top: 3rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.timeline-year {
    background-color: #222222;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.timeline-content h4 {
    color: #222222;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.history-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Community Engagement */
.community-engagement {
    padding: 5rem 0;
}

.engagement-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
}

.engagement-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.engagement-text h2 {
    font-size: 2.5rem;
    color: #222222;
    margin-bottom: 2rem;
    font-weight: 600;
}

.engagement-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #64748b;
}

.community-list {
    list-style: none;
}

.community-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.community-list i {
    color: #10b981;
    margin-right: 1rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #222222, #555555);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Services Page Styles */
.services-intro {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: #222222;
    margin-bottom: 2rem;
    font-weight: 600;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #64748b;
}

/* Service Categories */
.service-categories {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-icon {
    font-size: 2.5rem;
    color: #222222;
    margin-bottom: 1rem;
}

.service-content h3 {
    font-size: 1.5rem;
    color: #222222;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-content > p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #64748b;
}

.service-features i {
    color: #10b981;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.service-btn {
    display: inline-block;
    background-color: #222222;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.service-btn:hover {
    background-color: #444444;
}

/* How We Work */
.how-we-work {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.work-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

.work-text h2 {
    font-size: 2.5rem;
    color: #222222;
    margin-bottom: 2rem;
    font-weight: 600;
}

.work-process {
    margin-bottom: 3rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    background-color: #222222;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    color: #222222;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.fee-structure {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.fee-structure h3 {
    color: #222222;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.fee-structure p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.fee-points {
    list-style: none;
}

.fee-points li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #64748b;
}

.fee-points i {
    color: #10b981;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.work-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Why Choose Services */
.why-choose-services {
    padding: 5rem 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 3rem;
    color: #222222;
    margin-bottom: 1.5rem;
}

.advantage-item h3 {
    font-size: 1.3rem;
    color: #222222;
    margin-bottom: 1rem;
    font-weight: 600;
}

.advantage-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-section {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details h2 {
    font-size: 2.5rem;
    color: #222222;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-details > p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.contact-info-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    background-color: #222222;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: #222222;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-text p {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.95rem;
}

.map-container {
    margin-top: 2rem;
}

.map-container h3 {
    color: #222222;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-embed {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.form-header h2 {
    color: #222222;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-header p {
    color: #64748b;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #222222;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #222222;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.privacy-link {
    color: #222222;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.submit-btn {
    background-color: #222222;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.submit-btn:hover {
    background-color: #444444;
}

/* Quick Links */
.quick-links {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quick-link-item {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.quick-link-item:hover {
    transform: translateY(-5px);
}

.quick-icon {
    font-size: 3rem;
    color: #222222;
    margin-bottom: 1.5rem;
}

.quick-link-item h3 {
    color: #222222;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-link-item p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quick-btn {
    display: inline-block;
    background-color: #222222;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.quick-btn:hover {
    background-color: #444444;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e2e8f0;
}

.faq-question h4 {
    color: #222222;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: #222222;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    /* Ensure mobile menu links are visible on white background */
    .nav-menu .nav-link {
        color: #222222;
        text-shadow: none;
    }

    .nav-menu .nav-link::after {
        background-color: #222222;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    /* Slightly raise hero text on smaller screens */
    .hero-content {
        top: 42% !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .why-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-image img {
        height: 250px;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .welcome-box {
        padding: 2rem;
    }

    .welcome-box h2 {
        font-size: 2rem;
    }

    /* About: fix legacy section grid overflow */
    .history-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .history-image img {
        height: 300px;
    }

    /* Services: fix how-we-work grid overflow */
    .work-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-image img {
        height: 320px;
    }

    /* Contact: stack columns and inputs */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-content {
        top: 40%;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .welcome-box h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 32px;
    width: 68px;
    height: 68px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.whatsapp-float i {
    font-size: 32px;
    line-height: 1;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float i {
        font-size: 24px;
    }
}

/* Ensure hamburger visibility based on header state */
.home-page .header:not(.scrolled) .bar {
    background-color: #ffffff !important;
}

.header.scrolled .bar,
body:not(.home-page) .bar {
    background-color: #222222 !important;
}

.hamburger {
    z-index: 1101;
}

@media (max-width: 992px) {
    .hero-content {
        width: min(88vw, 900px);
    }
}

@media (max-width: 768px) {
    .hero-content {
        width: 88vw !important;
        max-width: none !important;
        padding: 0 16px !important;
    }
}

@media (max-width: 480px) {
    .hero-content {
        width: 90vw !important;
        padding: 0 14px !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #1a3a52 0%, #2c5282 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close:hover {
    color: #f0f0f0;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    margin-bottom: 25px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Modal Form Styles */
#consultationForm .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

#consultationForm .form-group {
    flex: 1;
    margin-bottom: 20px;
}

#consultationForm .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

#consultationForm .form-group input,
#consultationForm .form-group select,
#consultationForm .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Inter', sans-serif;
}

#consultationForm .form-group input:focus,
#consultationForm .form-group select:focus,
#consultationForm .form-group textarea:focus {
    outline: none;
    border-color: #1a3a52;
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

#consultationForm .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#consultationForm .checkbox-group {
    margin-bottom: 25px;
}

#consultationForm .checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

#consultationForm .checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

#consultationForm .privacy-link {
    color: #1a3a52;
    text-decoration: none;
    font-weight: 500;
}

#consultationForm .privacy-link:hover {
    text-decoration: underline;
}

#consultationForm .form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

#consultationForm .cancel-btn {
    background-color: #6c757d;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#consultationForm .cancel-btn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

#consultationForm .submit-btn {
    background: linear-gradient(135deg, #1a3a52 0%, #2c5282 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#consultationForm .submit-btn:hover {
    background: linear-gradient(135deg, #2c5282 0%, #1a3a52 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(26, 58, 82, 0.3);
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    #consultationForm .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    #consultationForm .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    #consultationForm .cancel-btn,
    #consultationForm .submit-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        width: 98%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .close {
        font-size: 24px;
    }
}
