/*
   Modern Revamp Layer
   Keeps existing HTML/content intact while refreshing the visual system.
*/

:root {
    --primary: #4e6800;
    --primary-dark: #354800;
    --primary-light: #6f8f12;
    --secondary: #178175;
    --secondary-dark: #0f5f58;
    --secondary-light: #35a99d;
    --dark: #101820;
    --gray-dark: #425466;
    --gray: #6b7280;
    --gray-light: #f4f7f6;
    --white: #ffffff;
    --black: #05070a;
    --surface: #ffffff;
    --surface-soft: #f7faf9;
    --border: #e4ebe8;
    --ink-muted: #64748b;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 8px 24px rgba(16, 24, 32, 0.06);
    --shadow-md: 0 16px 40px rgba(16, 24, 32, 0.10);
    --shadow-lg: 0 24px 70px rgba(16, 24, 32, 0.16);
    --transition: all 0.25s ease;
}

html {
    font-size: 16px;
}

body {
    color: var(--dark);
    background: var(--surface-soft);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(78, 104, 0, 0.05), transparent 38%),
        linear-gradient(315deg, rgba(184, 146, 74, 0.07), transparent 34%);
}

.container {
    max-width: 1180px;
    padding: 0 22px;
}

section {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.35rem, 5vw, 4.6rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    line-height: 1.12;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

p {
    color: var(--gray-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 12px 28px rgba(78, 104, 0, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(78, 104, 0, 0.28);
}

.btn-outline {
    border-color: rgba(78, 104, 0, 0.24);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.72);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline.light {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.btn-outline.light:hover {
    background: var(--white);
    color: var(--primary);
}

.top-info-bar {
    background: #182200;
    padding: 8px 0;
}

.info-items {
    gap: 14px 24px;
}

.info-item {
    margin-right: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
}

.info-item i {
    color: var(--secondary-light);
}

.main-nav {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(228, 235, 232, 0.82);
    box-shadow: 0 10px 32px rgba(16, 24, 32, 0.07);
    backdrop-filter: blur(16px);
}

.logo img,
.footer-logo img {
    object-fit: contain;
}

.nav-wrapper {
    gap: 28px;
}

.nav-links {
    gap: 4px;
    margin-right: var(--spacing-md);
}

.nav-links li {
    margin-right: 0;
}

.nav-links a {
    border-radius: 999px;
    color: #213026;
    font-size: 0.95rem;
    padding: 9px 14px;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(78, 104, 0, 0.08);
    color: var(--primary);
}

.nav-links a.active::after {
    display: none;
}

.mobile-toggle span {
    height: 2px;
    border-radius: 2px;
    background-color: var(--dark);
}

.hero-slider {
    height: min(720px, calc(100vh - 80px));
    min-height: 560px;
    background: var(--dark);
}

.slide {
    background-position: center !important;
    background-size: cover !important;
}

.slide-overlay,
.banner-overlay {
    background:
        linear-gradient(90deg, rgba(5, 14, 10, 0.82), rgba(5, 14, 10, 0.54) 45%, rgba(5, 14, 10, 0.26)),
        linear-gradient(180deg, rgba(5, 14, 10, 0.12), rgba(5, 14, 10, 0.54));
}

.slide-content {
    align-items: flex-start;
    text-align: left;
    max-width: 920px;
}

.slide-content h1,
.slide-content h2,
.slide-content p {
    text-shadow: none;
}

.slide-content h1 {
    max-width: 820px;
    margin-bottom: 16px;
}

.slide-content h2 {
    font-size: clamp(1rem, 2vw, 1.45rem);
    color: var(--secondary-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-secondary);
    font-weight: 700;
}

.slide-content p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.slider-controls {
    justify-content: flex-start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

.slider-arrow,
.testimonial-arrow {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.slider-arrow:hover,
.testimonial-arrow:hover {
    background: var(--white);
    color: var(--primary);
}

.slider-dot,
.dot {
    height: 8px;
    width: 8px;
}

.slider-dot.active,
.dot.active {
    width: 30px;
    background: var(--secondary-light);
}

.page-banner {
    min-height: 340px;
    height: auto;
    padding: 96px 0;
    background-color: var(--dark);
}

.banner-content {
    max-width: 820px;
    text-align: left;
}

.banner-content h1 {
    margin-bottom: 14px;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
}

.section-header {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-header p,
.approach-content > p,
.service-content > p {
    color: var(--ink-muted);
    font-size: 1.02rem;
}

.section-header h2 span,
.about-content h2 span,
.about-section .about-content h2 span {
    color: var(--primary);
}

.about-firm,
.why-choose-us,
.clients-section,
.contact-info,
.client-approach,
.faq-section,
.services-intro {
    background: var(--surface);
}

.practice-areas,
.team-section,
.values-section,
.news-section,
.article-detail,
.contact-section,
.service-areas {
    background: var(--surface-soft);
}

.about-grid,
.about-section .about-grid,
.contact-grid,
.appointment-grid,
.news-grid,
.article-grid {
    gap: clamp(2rem, 5vw, 4.5rem);
}

.image-wrapper,
.about-section .about-image img,
.news-image,
.article-featured-image,
.contact-map {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.image-bg {
    background: linear-gradient(135deg, rgba(78, 104, 0, 0.14), rgba(184, 146, 74, 0.18));
    border-radius: var(--radius-lg);
}

.practice-card,
.feature-card,
.team-card,
.value-card,
.service-item,
.feature,
.approach-item,
.info-card,
.contact-form-wrapper,
.appointment-form-wrapper,
.faq-item,
.news-card,
.sidebar-widget,
.article-main,
.related-card,
.author-bio {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.practice-card,
.value-card,
.service-item,
.approach-item,
.info-card,
.contact-form-wrapper,
.appointment-form-wrapper,
.news-card,
.sidebar-widget,
.article-main {
    background: rgba(255, 255, 255, 0.94);
}

.practice-card:hover,
.value-card:hover,
.service-item:hover,
.approach-item:hover,
.info-card:hover,
.news-card:hover,
.team-card:hover,
.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(78, 104, 0, 0.20);
}

.practice-icon,
.value-icon,
.service-icon,
.approach-icon,
.info-icon,
.feature-icon {
    color: var(--primary);
}

.practice-icon,
.value-icon,
.service-icon,
.approach-icon,
.info-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(78, 104, 0, 0.10), rgba(184, 146, 74, 0.14));
    font-size: 2rem;
}

.feature-icon {
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(78, 104, 0, 0.10), rgba(184, 146, 74, 0.14));
}

.service-item {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.service-content h2,
.service-content > p,
.service-icon {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.service-content > p {
    max-width: 900px;
}

.feature,
.approach-item,
.info-card,
.faq-item,
.related-card,
.author-bio {
    background: var(--surface);
}

.feature:hover {
    background: #f1f8f4;
}

.experience-badge,
.milestones-section,
.appointment-section,
.testimonials,
.contact-cta {
    background:
        linear-gradient(135deg, rgba(53, 72, 0, 0.98), rgba(78, 104, 0, 0.94)),
        linear-gradient(45deg, rgba(184, 146, 74, 0.18), transparent);
}

.experience-badge {
    border: 4px solid var(--white);
}

.milestone-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
}

.contact-cta {
    position: relative;
    overflow: hidden;
}

.contact-cta p,
.appointment-section p,
.testimonials p,
.milestones-section p,
.feature-content p {
    color: rgba(255, 255, 255, 0.82);
}

footer {
    background: #0d1512;
    color: rgba(255, 255, 255, 0.68);
}

.footer-grid {
    gap: clamp(2rem, 5vw, 4rem);
}

.footer-links ul li a,
.footer-contact p,
.footer-about p {
    color: rgba(255, 255, 255, 0.68);
}

.social-links a,
.article-share a,
.author-social a {
    border-radius: 999px;
}

.news-category,
.pagination a:hover,
.pagination a.active,
.tags a:hover,
.article-tags a:hover,
.article-share a:hover,
.author-social a:hover,
.search-form button,
.faq-item.active .faq-question {
    background: var(--primary);
}

.news-content h2,
.article-header h1,
.article-body h2,
.article-body h3,
.sidebar-widget h3,
.related-articles h2 {
    color: var(--dark);
}

.news-meta,
.article-meta,
.recent-post-date,
.related-date {
    color: var(--ink-muted);
}

.form-group input,
.form-group textarea,
.form-group select,
.search-form input {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fbfdfc;
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.search-form input:focus {
    border-color: rgba(78, 104, 0, 0.55);
    box-shadow: 0 0 0 4px rgba(78, 104, 0, 0.10);
}

.pagination a,
.pagination span,
.tags a,
.article-tags a,
.categories-widget span {
    border-radius: 999px;
}

@media (max-width: 992px) {
    .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-links a {
        width: 100%;
    }

    .btn-appointment {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    section {
        padding: 3.25rem 0;
    }

    .top-info-bar {
        display: none;
    }

    .main-nav {
        padding: 12px 0 !important;
    }

    .logo img {
        height: 48px;
    }

    .hero-slider {
        min-height: 560px;
        height: 78vh;
    }

    .slide-content {
        padding: 0 18px;
        justify-content: center;
    }

    .slider-controls {
        padding: 0 18px;
    }

    .page-banner {
        min-height: 280px;
        padding: 72px 0;
    }

    .banner-content {
        text-align: left;
    }

    .about-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .service-content h2,
    .service-content > p,
    .service-icon {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile drawer overflow correction */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

@media (max-width: 768px) {
    .nav-menu {
        right: 0;
        width: min(86vw, 320px);
        transform: translateX(104%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .nav-menu:not(.active) {
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* Homepage slide image fit */
.hero-slider .slide {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-slider .slide:nth-child(2),
.hero-slider .slide:nth-child(3) {
    background-position: center top !important;
}

/* Show the full homepage photos without cropping people */
.hero-slider .slide {
    background-size: cover !important;
    background-position: center center !important;
    background-color: #182200;
}

.hero-slider .slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(22px) saturate(0.85);
    transform: scale(1.06);
    opacity: 0.55;
}

.hero-slider .slide-photo {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.hero-slider .slide-overlay {
    z-index: 2;
}

.hero-slider .slide-content {
    z-index: 3;
}
/* Hide homepage slider navigation controls */
.hero-slider .slider-controls {
    display: none !important;
}
/* Remove top and bottom dark bands from homepage slides */
.hero-slider {
    background: #ffffff;
}

.hero-slider .slide::before {
    opacity: 0.18;
    filter: blur(14px) saturate(0.95);
}

.hero-slider .slide-overlay {
    background: linear-gradient(90deg, rgba(5, 14, 10, 0.74) 0%, rgba(5, 14, 10, 0.48) 36%, rgba(5, 14, 10, 0.12) 72%, rgba(5, 14, 10, 0.02) 100%) !important;
}

.hero-slider .slide-photo {
    display: block;
    max-width: none;
    max-height: none;
    width: 100% !important;
    height: 100% !important;
}
/* Make homepage slider start directly under the menu */
.hero-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #182200 !important;
}

.hero-slider .slider-container,
.hero-slider .slide {
    top: 0 !important;
    height: 100% !important;
}

.hero-slider .slide-photo {
    object-fit: cover !important;
    object-position: center center;
}

.hero-slider .slide:nth-child(2) .slide-photo {
    object-position: center top;
}

.hero-slider .slide:nth-child(3) .slide-photo {
    object-position: center center;
}
/* Fine tune slide crops so faces stay visible */
.hero-slider .slide:nth-child(1) .slide-photo {
    object-position: center 42% !important;
}

.hero-slider .slide:nth-child(2) .slide-photo {
    object-position: center 18% !important;
}

.hero-slider .slide:nth-child(3) .slide-photo {
    object-position: center 12% !important;
}

.hero-slider .slide-overlay {
    background: linear-gradient(90deg, rgba(5, 14, 10, 0.68) 0%, rgba(5, 14, 10, 0.42) 36%, rgba(5, 14, 10, 0.10) 72%, rgba(5, 14, 10, 0) 100%) !important;
}
/* Modern homepage about section */
.about-firm {
    position: relative;
    overflow: hidden;
}

.about-grid-modern {
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
    align-items: center;
}

.about-image-modern {
    min-height: 620px;
    display: flex;
    align-items: stretch;
}

.about-portrait-frame {
    width: 100%;
    min-height: 620px;
    border-radius: 8px;
    border: 1px solid rgba(228, 235, 232, 0.95);
    background: #f7faf9;
}

.about-portrait {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    object-position: center top;
}

.about-image-modern .image-bg {
    width: 58%;
    height: 58%;
    right: -26px;
    bottom: -26px;
    background: linear-gradient(135deg, rgba(78, 104, 0, 0.16), rgba(184, 146, 74, 0.22));
}

.about-profile-card {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(13, 21, 18, 0.78);
    color: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 32, 0.2);
    backdrop-filter: blur(14px);
}

.profile-kicker,
.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--secondary-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-profile-card strong {
    display: block;
    max-width: 420px;
    font-family: var(--font-primary);
    font-size: clamp(1.12rem, 2vw, 1.45rem);
    line-height: 1.25;
}

.about-content-modern {
    max-width: 690px;
}

.about-content-modern h2 {
    margin-bottom: 1.25rem;
}

.about-content-modern p {
    font-size: 1.02rem;
    color: var(--gray-dark);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 30px;
}

.about-highlights div {
    min-height: 118px;
    padding: 18px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.about-highlights i {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(78, 104, 0, 0.09);
    color: var(--primary);
    font-size: 1.35rem;
}

.about-highlights span {
    display: block;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 992px) {
    .about-grid-modern {
        grid-template-columns: 1fr;
    }

    .about-image-modern,
    .about-portrait-frame,
    .about-portrait {
        min-height: 540px;
    }

    .about-content-modern {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .about-image-modern,
    .about-portrait-frame,
    .about-portrait {
        min-height: 480px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .about-profile-card {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}
/* Modern homepage why choose us and CTA */
.why-modern {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f6faf8 100%);
}

.why-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(78, 104, 0, 0.06), transparent 36%), linear-gradient(315deg, rgba(184, 146, 74, 0.09), transparent 32%);
}

.why-modern .container {
    position: relative;
    z-index: 1;
}

.why-header {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: end;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.why-header h2 {
    max-width: 760px;
    margin-bottom: 0;
}

.why-header p {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 1.04rem;
}

.features-grid-modern {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card-modern {
    position: relative;
    min-height: 310px;
    padding: 28px 24px;
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(228, 235, 232, 0.94);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 40px rgba(16, 24, 32, 0.07);
}

.feature-card-modern::after {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0.34);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.feature-card-modern:hover::after {
    transform: scaleX(1);
}

.feature-number {
    position: absolute;
    top: 22px;
    right: 22px;
    color: rgba(16, 24, 32, 0.08);
    font-family: var(--font-primary);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
}

.feature-card-modern .feature-icon {
    width: 58px;
    height: 58px;
    margin: 0 0 34px;
    border-radius: 8px;
    background: #f0f7f3;
    color: var(--primary);
}

.feature-card-modern h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card-modern p {
    margin-bottom: 0;
    color: var(--ink-muted);
}

.contact-cta-modern {
    padding: 0 0 clamp(3.5rem, 7vw, 6.5rem);
    background: #f6faf8;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(24, 34, 0, 0.98), rgba(78, 104, 0, 0.94));
    box-shadow: 0 26px 70px rgba(16, 24, 32, 0.16);
}

.cta-copy h2 {
    color: #fff;
    margin-bottom: 12px;
}

.cta-copy p {
    max-width: 680px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
}

.cta-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cta-panel .btn-outline.light {
    border-color: rgba(255, 255, 255, 0.34);
}

@media (max-width: 1100px) {
    .features-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .why-header,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .features-grid-modern {
        grid-template-columns: 1fr;
    }

    .feature-card-modern {
        min-height: 0;
    }

    .cta-actions {
        justify-content: stretch;
    }
}
/* Logo-matched brand color tuning */
:root {
    --primary: #4e6800;
    --primary-dark: #354800;
    --primary-light: #6f8f12;
    --secondary: #178175;
    --secondary-dark: #0f5f58;
    --secondary-light: #35a99d;
}
/* Modern About page refresh */
.about-page-hero {
    min-height: 520px;
    align-items: flex-end;
    padding: 130px 0 76px;
    background-position: center 20% !important;
}

.about-page-hero .banner-overlay {
    background: linear-gradient(90deg, rgba(12, 18, 0, 0.78) 0%, rgba(12, 18, 0, 0.44) 44%, rgba(12, 18, 0, 0.12) 100%) !important;
}

.about-page-hero .banner-content {
    max-width: 860px;
}

.about-page-hero h1 {
    margin-bottom: 18px;
}

.about-story-modern {
    background: #fff;
}

.about-page-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr) !important;
    gap: clamp(2rem, 5vw, 4.25rem) !important;
}

.about-page-content {
    padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.about-page-content p {
    font-size: 1.02rem;
    color: var(--gray-dark);
}

.about-page-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(16, 24, 32, 0.14);
}

.about-page-image img {
    width: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px !important;
}

.about-image-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 4;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 8px;
    background: rgba(12, 18, 0, 0.76);
    color: #fff;
    backdrop-filter: blur(14px);
}

.about-image-caption span {
    display: block;
    margin-bottom: 6px;
    color: var(--secondary-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-image-caption strong {
    display: block;
    max-width: 460px;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    line-height: 1.25;
}

.about-page-image .experience-badge {
    top: 22px;
    right: 22px;
    bottom: auto;
    border: 4px solid #fff;
    border-radius: 8px;
}

.values-modern {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f6faf8 0%, #ffffff 100%) !important;
}

.values-modern .section-header {
    text-align: left;
    max-width: 900px;
    margin-left: 0;
}

.values-modern .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.values-modern .value-card {
    min-height: 255px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 16px 40px rgba(16, 24, 32, 0.07);
}

.values-modern .value-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(78, 104, 0, 0.09);
    color: var(--primary);
    font-size: 2rem;
}

.milestones-modern {
    background: linear-gradient(135deg, rgba(24, 34, 0, 0.98), rgba(78, 104, 0, 0.94)) !important;
}

.milestones-modern .milestone-card {
    border-radius: 8px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
}

.about-cta-modern {
    padding-top: clamp(3.5rem, 7vw, 6.5rem);
}

@media (max-width: 992px) {
    .about-page-grid,
    .values-modern .values-grid {
        grid-template-columns: 1fr !important;
    }

    .about-page-image {
        order: -1;
    }

    .about-page-image img {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .about-page-hero {
        min-height: 420px;
        padding: 90px 0 56px;
    }

    .about-page-image img {
        min-height: 360px;
    }

    .about-image-caption {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}
/* Modern Services page refresh */
.services-page-hero {
    min-height: 520px;
    align-items: flex-end;
    padding: 130px 0 76px;
    background-position: center 18% !important;
}

.services-page-hero .banner-overlay {
    background: linear-gradient(90deg, rgba(12, 18, 0, 0.80) 0%, rgba(12, 18, 0, 0.46) 48%, rgba(12, 18, 0, 0.12) 100%) !important;
}

.services-intro-modern {
    background: #fff;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.62fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.services-intro-grid .section-header {
    margin: 0;
    max-width: 760px;
}

.services-index-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f7faf9);
    box-shadow: 0 16px 40px rgba(16, 24, 32, 0.08);
}

.services-index-card > span {
    display: block;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.services-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.services-quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(78, 104, 0, 0.18);
    border-radius: 999px;
    background: rgba(78, 104, 0, 0.06);
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 600;
}

.services-quick-links a:hover {
    background: var(--primary);
    color: #fff;
}

.service-areas-modern {
    background: linear-gradient(180deg, #f6faf8 0%, #ffffff 100%);
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.service-areas-modern .container {
    display: grid;
    gap: 24px;
}

.service-areas-modern .service-item {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 0;
    padding: clamp(1.4rem, 3vw, 2.25rem);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 16px 42px rgba(16, 24, 32, 0.07);
}

.service-areas-modern .service-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 8px 0 0 8px;
}

.service-areas-modern .service-icon {
    width: 72px;
    height: 72px;
    margin: 0;
    border-radius: 8px;
    background: rgba(78, 104, 0, 0.09);
    color: var(--primary);
    font-size: 2.2rem;
}

.service-areas-modern .service-content h2,
.service-areas-modern .service-content > p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.service-areas-modern .service-content h2 {
    margin-bottom: 10px;
}

.service-areas-modern .service-content > p {
    max-width: 920px;
    color: var(--ink-muted);
}

.service-areas-modern .service-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.service-areas-modern .feature {
    position: relative;
    padding: 18px 18px 18px 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.service-areas-modern .feature::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 18px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--secondary);
    box-shadow: 0 0 0 5px rgba(23, 129, 117, 0.12);
}

.service-areas-modern .feature h3 {
    color: var(--dark);
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 700;
}

.service-areas-modern .feature p {
    margin-bottom: 0;
    color: var(--ink-muted);
}

.client-approach-modern {
    background: #fff;
}

.client-approach-modern .approach-content {
    text-align: left;
}

.client-approach-modern .approach-content > p {
    margin-left: 0;
    max-width: 760px;
}

.client-approach-modern .approach-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.client-approach-modern .approach-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(16, 24, 32, 0.06);
}

.client-approach-modern .approach-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(78, 104, 0, 0.09);
    color: var(--primary);
    font-size: 1.8rem;
}

.services-cta-modern {
    padding-top: 0;
    background: #fff;
}

@media (max-width: 1100px) {
    .client-approach-modern .approach-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .services-intro-grid,
    .service-areas-modern .service-item {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .services-page-hero {
        min-height: 420px;
        padding: 90px 0 56px;
    }

    .client-approach-modern .approach-grid {
        grid-template-columns: 1fr;
    }
}
/* Modern News and Article pages */
.news-page-hero,
.article-page-hero {
    min-height: 500px;
    align-items: flex-end;
    padding: 124px 0 72px;
    background-position: center 20% !important;
}

.news-page-hero .banner-overlay,
.article-page-hero .banner-overlay {
    background: linear-gradient(90deg, rgba(12, 18, 0, 0.82) 0%, rgba(12, 18, 0, 0.48) 48%, rgba(12, 18, 0, 0.12) 100%) !important;
}

.news-section-modern,
.article-detail-modern {
    background: linear-gradient(180deg, #f6faf8 0%, #ffffff 100%);
}

.news-grid-modern,
.article-grid-modern {
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
}

.news-section-modern .news-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(16, 24, 32, 0.07);
}

.news-section-modern .news-card.featured:first-child {
    grid-template-columns: 1fr;
}

.news-section-modern .news-card.featured:first-child .news-image {
    height: 360px;
}

.news-section-modern .news-image {
    height: 100%;
    min-height: 260px;
    border-radius: 8px 0 0 8px;
}

.news-section-modern .news-image img {
    filter: saturate(0.96);
}

.news-section-modern .news-category {
    top: 18px;
    left: 18px;
    right: auto;
    border-radius: 999px;
    background: var(--primary);
    font-weight: 700;
}

.news-section-modern .news-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1.4rem, 3vw, 2.2rem);
}

.news-section-modern .news-meta,
.article-detail-modern .article-meta {
    gap: 10px 16px;
    flex-wrap: wrap;
    color: var(--ink-muted);
}

.news-section-modern .news-content h2 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.18;
}

.news-section-modern .news-content p {
    color: var(--ink-muted);
}

.news-sidebar {
    top: 130px;
}

.news-section-modern .sidebar-widget,
.article-detail-modern .sidebar-widget {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(16, 24, 32, 0.06);
}

.news-section-modern .sidebar-widget h3,
.article-detail-modern .sidebar-widget h3 {
    border-bottom-color: var(--border);
    color: var(--dark);
}

.article-detail-modern .article-main {
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 48px rgba(16, 24, 32, 0.08);
}

.article-detail-modern .article-content {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.article-detail-modern .article-header h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
}

.article-detail-modern .article-featured-image {
    border-radius: 8px;
    box-shadow: none;
}

.article-detail-modern .article-body {
    max-width: 820px;
    color: var(--gray-dark);
    font-size: 1.03rem;
    line-height: 1.82;
}

.article-detail-modern .article-body h2 {
    margin-top: 2.3rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
    color: var(--dark);
}

.article-detail-modern .article-body ul,
.article-detail-modern .article-body ol {
    padding-left: 0;
    list-style: none;
}

.article-detail-modern .article-body li {
    position: relative;
    padding-left: 28px;
}

.article-detail-modern .article-body li::before {
    content: '';
    position: absolute;
    top: 0.72em;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--secondary);
    box-shadow: 0 0 0 5px rgba(23, 129, 117, 0.12);
}

.article-detail-modern .author-bio,
.article-detail-modern .related-articles {
    margin: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.article-detail-modern .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-cta-modern {
    padding-top: 0;
    background: #fff;
}

@media (max-width: 1100px) {
    .news-grid-modern,
    .article-grid-modern {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .news-section-modern .news-card {
        grid-template-columns: 1fr;
    }

    .news-section-modern .news-image {
        border-radius: 8px 8px 0 0;
        height: 240px;
    }

    .article-detail-modern .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-page-hero,
    .article-page-hero {
        min-height: 410px;
        padding: 90px 0 56px;
    }
}
/* Modern Contact page refresh */
.contact-page-hero {
    min-height: 500px;
    align-items: flex-end;
    padding: 124px 0 72px;
    background-position: center 18% !important;
}

.contact-page-hero .banner-overlay {
    background: linear-gradient(90deg, rgba(12, 18, 0, 0.82) 0%, rgba(12, 18, 0, 0.48) 48%, rgba(12, 18, 0, 0.12) 100%) !important;
}

.contact-info-modern {
    background: #fff;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.info-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.info-grid-modern .info-card {
    position: relative;
    min-height: 250px;
    padding: 28px 22px;
    overflow: hidden;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fbfa);
    box-shadow: 0 16px 40px rgba(16, 24, 32, 0.07);
}

.info-grid-modern .info-card::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.info-grid-modern .info-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 8px;
    background: rgba(78, 104, 0, 0.09);
    color: var(--primary);
    font-size: 2rem;
}

.info-grid-modern .info-card h3 {
    margin-bottom: 10px;
}

.info-grid-modern .info-card p {
    color: var(--ink-muted);
}

.info-grid-modern .info-link {
    margin-top: 12px;
    font-weight: 700;
}

.appointment-modern {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(24, 34, 0, 0.98), rgba(78, 104, 0, 0.94)) !important;
}

.appointment-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(315deg, rgba(23, 129, 117, 0.18), transparent 38%);
}

.appointment-modern .container {
    position: relative;
    z-index: 1;
}

.appointment-grid-modern {
    align-items: start;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.appointment-modern .appointment-feature {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.appointment-modern .appointment-feature .feature-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    color: var(--secondary-light);
}

.appointment-modern .appointment-form-wrapper {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(16, 24, 32, 0.18);
}

.appointment-modern .appointment-form {
    gap: 14px;
}

.contact-map-section-modern {
    background: linear-gradient(180deg, #f6faf8, #ffffff);
    padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.contact-grid-modern {
    display: block;
}

.contact-map-section-modern .contact-map {
    min-height: 500px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(16, 24, 32, 0.10);
}

.faq-section-modern {
    background: #fff;
}

.faq-section-modern .section-header {
    text-align: left;
    max-width: 880px;
    margin-left: 0;
}

.faq-section-modern .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.faq-section-modern .faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16, 24, 32, 0.05);
}

.faq-section-modern .faq-question {
    padding: 18px 20px;
}

.faq-section-modern .faq-toggle {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    background: rgba(78, 104, 0, 0.09);
}

.faq-section-modern .faq-answer p {
    padding: 0 20px 18px;
}

@media (max-width: 1100px) {
    .info-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .contact-page-hero {
        min-height: 410px;
        padding: 90px 0 56px;
    }

    .info-grid-modern,
    .faq-section-modern .faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-section-modern .contact-map {
        min-height: 380px;
    }
}
/* Team page */
.team-page-hero {
    min-height: 520px;
    align-items: flex-end;
    padding: 124px 0 72px;
    background-position: center 18% !important;
}

.team-page-hero .banner-overlay {
    background: linear-gradient(90deg, rgba(12, 18, 0, 0.82) 0%, rgba(12, 18, 0, 0.48) 48%, rgba(12, 18, 0, 0.12) 100%) !important;
}

.team-intro-section {
    background: #fff;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.team-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.65fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
}

.team-intro-grid h2 {
    margin-bottom: 0;
}

.team-intro-grid p {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 1.04rem;
}

.team-directory-section {
    background: linear-gradient(180deg, #f6faf8 0%, #ffffff 100%);
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

.team-feature-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 24, 32, 0.08);
}

.team-feature-image {
    min-height: 560px;
    overflow: hidden;
    border-radius: 8px;
    background: #f7faf9;
}

.team-feature-image img,
.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-feature-content h2 {
    margin-bottom: 8px;
}

.team-profile-more {
    margin-top: 18px;
}

.team-profile-more summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.team-profile-more summary::-webkit-details-marker {
    display: none;
}

.team-profile-more summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(78, 104, 0, 0.10);
    font-size: 0.9rem;
    line-height: 1;
}

.team-profile-more[open] summary::after {
    content: "-";
}

.team-profile-more > div {
    margin-top: 16px;
}

.team-profile-more h3 {
    margin: 18px 0 8px;
    font-size: 1rem;
}

.team-profile-more ul {
    margin: 0 0 12px 18px;
    color: var(--ink-muted);
    line-height: 1.7;
}

.team-role {
    color: var(--primary);
    font-weight: 700;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.team-tags span {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(78, 104, 0, 0.08);
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.team-member-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 24, 32, 0.07);
    transition: var(--transition);
}

.team-member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 54px rgba(16, 24, 32, 0.12);
}

.member-image {
    height: 420px;
    background: #f7faf9;
}

.member-info {
    position: relative;
    padding: 22px;
}

.member-info > span {
    position: absolute;
    top: 18px;
    right: 20px;
    color: rgba(16, 24, 32, 0.10);
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
}

.member-info h3 {
    margin-bottom: 4px;
}

.member-info p {
    margin-bottom: 14px;
    color: var(--ink-muted);
    font-weight: 400;
    line-height: 1.7;
}

.member-info p:last-child {
    margin-bottom: 0;
}

.member-info .team-role {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.team-cta-modern {
    padding-top: 0;
    background: #fff;
}

@media (max-width: 1100px) {
    .team-grid-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .team-intro-grid,
    .team-feature-card {
        grid-template-columns: 1fr;
    }

    .team-feature-image {
        min-height: 500px;
    }
}

@media (max-width: 640px) {
    .team-page-hero {
        min-height: 420px;
        padding: 90px 0 56px;
    }

    .team-grid-modern {
        grid-template-columns: 1fr;
    }

    .member-image {
        height: 460px;
    }
}
