/* style.css */
/* --- Reset & Global Variables --- */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('assets/fonts/Montserrat-VariableLatin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 
   Fallback font face with metric overrides to match Montserrat.
   This prevents Layout Shift (CLS) when 'Montserrat' swaps in.
*/
@font-face {
    font-family: 'Montserrat-Fallback';
    src: local('Arial');
    ascent-override: 96.8%;
    descent-override: 25.1%;
    line-gap-override: 0%;
    size-adjust: 107.4%;
}

:root {
    --color-primary-dark: #0B1120;
    --color-primary-blue: #121C30;
    --color-gold: #FCA311;
    --color-gold-hover: #e3900a;
    --color-bg-gray: #F3F5F8;
    --color-bg-header: #EFF2F7;
    --color-text-white: #ffffff;
    --color-text-dark: #1A2336;
    --color-border-gray: #D1D5DB;
    
    --font-stack: 'Montserrat', 'Montserrat-Fallback', sans-serif;
    --container-width: 100%;
    --page-edge-offset: 10%;
    --hero-heading-vertical-offset: 2vh;
    --hero-bullets-vertical-offset: 15px;
    --hero-bullets-offset: 0;
    --hero-heading-inner-offset: 5%;
    --section-spacing: 100px;
    --contact-shell-width: 1440px;
    --contact-shell-padding: clamp(24px, 4vw, 64px);
}

/* 
   Note: Font Awesome is loaded via fontawesome.min.css (local) 
   to support font-display: swap for better PageSpeed performance.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--page-edge-offset);
}

.label-gold {
    color: var(--color-gold);
}

.label-gold path {
    fill: currentColor;
}

/* --- Button Styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(10px, 1.4vw, 14px) clamp(18px, 3vw, 30px);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-stack);
    font-size: clamp(14px, 1.6vw, 16px);
    text-align: center;
}

.site-header .btn {
    flex-shrink: 0;
    min-width: 220px;
}

.btn-gold-outline {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px; /* Adjusted for mockup */
}

.btn-gold-outline:hover {
    background: var(--color-gold);
    color: var(--color-primary-blue);
}

.btn-gold-solid {
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
    text-transform: uppercase;
    box-shadow: 0 6px 20px -5px rgba(252, 163, 17, 0.5);
    font-weight: 800;
    letter-spacing: 0.8px;
}

.btn-gold-solid:hover {
    background-color: var(--color-gold-hover);
    box-shadow: 0 8px 25px -5px rgba(252, 163, 17, 0.6);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    padding: clamp(14px, 2vw, 18px);
    font-size: clamp(14px, 1.7vw, 17px);
}

.btn-large {
    padding: clamp(14px, 2.4vw, 22px) clamp(22px, 5vw, 50px);
    font-size: clamp(15px, 1.9vw, 19px);
}

/* --- Section Standard Styling --- */
.section-title {
    text-align: center;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 900;
    margin-bottom: 75px;
    color: var(--color-primary-dark);
    line-height: 1.2;
}

.section-white {
    padding: var(--section-spacing) 0;
    background-color: #fff;
}

.section-gray {
    padding: var(--section-spacing) 0;
    background-color: var(--color-bg-gray);
}

/* --- Icon wrappers & Overlays (Refined) --- */
.icon-wrapper.icon-dark {
    color: var(--color-primary-dark);
    font-size: 64px;
    margin-bottom: 25px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 80px;
}

.icon-wrapper.icon-dark .icon-svg:not([class*="icon-overlay"]) {
    height: 1em;
    width: auto;
}

.icon-wrapper.icon-dark .icon-svg {
    color: var(--color-primary-dark);
}

.icon-wrapper .icon-svg,
.icon-wrapper .icon-svg path {
    fill: currentColor;
}

/* Specific Icon Overlays */
.icon-wrapper .icon-overlay-padlock {
    position: absolute;
    height: 26px !important;
    width: 26px !important;
    bottom: 0px;
    right: 0px;
    color: var(--color-primary-dark);
    background: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    padding: 3px;
    box-sizing: border-box;
    fill: var(--color-primary-dark);
    stroke: var(--color-primary-dark);
}

.icon-overlay-padlock path {
    fill: currentColor;
    stroke: none;
}

.icon-overlay-scroll {
    position: absolute;
    height: 28px;
    bottom: -5px;
    right: -15px;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
    color: var(--color-primary-dark);
}

.icon-overlay-person-door {
    position: absolute;
    height: 30px;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-primary-dark);
    background: #fff;
    border-radius: 50% 50% 0 0;
    padding: 2px 5px 0 5px;
}

.icon-overlay-house-arrow {
    position: absolute;
    height: 32px;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 3px 3px 0 #fff;
}

.icon-overlay-plus {
    position: absolute;
    height: 28px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 50%;
    padding: 4px;
}

.icon-overlay-check {
    position: absolute;
    height: 30px;
    bottom: -5px;
    right: -10px;
    color: var(--color-gold);
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}

.icon-overlay-chat {
    position: absolute;
    height: 28px;
    top: -5px;
    right: -15px;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    color: var(--color-primary-dark);
}

.icon-overlay-magnify {
    position: absolute;
    height: 30px;
    bottom: -8px;
    right: -12px;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    color: var(--color-primary-dark);
}

.icon-doc-gavel .icon-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Optimized SVG Icons */
.icon-svg, .icon-img {
    display: inline-block;    
    width: auto;
    height: 1em;
    max-width: 100%;
    overflow: visible;
    vertical-align: middle;
    fill: currentColor;
    flex-shrink: 0;
}

/* Allow explicit width/height attributes to override the height: 1em if set */
.icon-svg[width], .icon-img[width] {
    height: auto;
}

.icon-wrapper.icon-dark .icon-img:not([class*="icon-overlay"]) {
    height: 64px;
    width: auto;
}

.icon-wrapper.icon-dark .icon-image,
.icon-wrapper.icon-dark picture img {
    filter: brightness(0) saturate(100%) invert(6%) sepia(7%) saturate(2142%) hue-rotate(184deg) brightness(92%) contrast(96%) !important;
}

/* --- Header --- */
.site-header {
    background-color: var(--color-bg-header);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.header-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-cta-drawer {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(440px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    box-shadow: 0 25px 45px -30px rgba(15, 23, 42, 0.65), 0 10px 25px -15px rgba(15, 23, 42, 0.22);
    padding: 18px 16px 14px;
    z-index: 50;
}

.header-cta-drawer.is-open {
    display: block;
}

.header-cta-title {
    margin: 4px 0 14px;
    font-size: 18px;
    font-weight: 900;
    color: var(--color-primary-dark);
    text-align: center;
    line-height: 1.1;
}

.header-cta-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--color-primary-dark);
    font-size: 22px;
    line-height: 32px;
    cursor: pointer;
}

.header-cta-close:hover {
    background: rgba(15, 23, 42, 0.10);
}

.header-cta-drawer .input-group input,
.header-cta-drawer .input-group select {
    padding: 14px 16px;
}

.header-cta-drawer .security-note {
    margin-top: 14px;
}

@media (max-width: 700px) {
    .header-content {
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap; /* Changed to wrap to prevent overflow */
    }
    .site-header {
        padding: 10px 0;
    }
    .site-header .btn {
        min-width: 0;
        width: auto;
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .site-logo {
        max-width: 180px; /* Limit logo width on mobile */
    }

    .header-cta-drawer {
        right: 0;
        left: auto;
        width: calc(100vw - 40px);
        max-width: 340px; /* Reduced max-width for better mobile fit */
    }
}

@media (max-width: 433px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .header-cta {
        width: 100%;
        justify-content: center;
    }

    .header-cta-drawer {
        right: 50%;
        transform: translateX(50%);
        width: calc(100vw - 30px);
    }
}

.logo {
    display: flex;
    align-items: center;
    color: var(--color-primary-dark);
    gap: 14px;
}

.site-logo {
    display: block;
    height: clamp(70px, 10vw, 110px);
    width: auto;
    max-width: min(680px, 85vw);
    object-fit: contain;
}

.site-header .site-logo {
    aspect-ratio: 180 / 70;
}

/* --- Hero Section (Redesigned Layout) --- */
.hero {
    background-color: var(--color-primary-blue);
    color: var(--color-text-white);
    padding-top: 100px;
    padding-bottom: 120px;
    min-height: 520px;
    background-image:
        linear-gradient(90deg,
            rgba(18, 28, 48, 0) 0%,
            rgba(18, 28, 48, 0) 30%,
            rgba(18, 28, 48, 0.88) 55%,
            rgba(18, 28, 48, 1) 70%),
        url('assets/images/hero-optimized.webp');
    background-size: cover, auto 100%;
    background-position: left center, left center;
    background-repeat: no-repeat, no-repeat;
}

.hero-layout {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4%;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 2% !important;
}

.hero-photo {
    display: none;
}

.hero-photo img {
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 360 / 645; /* Reserve space for mobile photo */
    border-radius: 10px;
    object-fit: cover;
}

.hero-heading-block {
    margin-left: 0;
    min-height: 250px; /* Reserve space for dynamic heading/subtext */
}

/* Middle Column: Text Content */
.hero-text-content {
    flex: 0 0 38%;
    max-width: 38%;
    margin-left: 30%;
    padding-left: 0;
}

.hero-text-content h1 {
    font-size: clamp(34px, 4.8vw, 60px);
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-sub {
    font-size: clamp(16px, 1.8vw, 20px);
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 500;
    max-width: 95%;
    line-height: 1.5;
}

/* Compact desktop (e.g., 1366px): tighten spacing so the headline overlaps less with the photo */
@media (max-width: 1500px) and (min-width: 1281px) {
    :root {
        --hero-bullets-offset: 0;
    }

	    .hero-layout {
	        gap: clamp(18px, 2.5vw, 44px);
	        padding-left: clamp(16px, 3vw, 50px);
	        padding-right: clamp(12px, 2vw, 36px);
	    }

	    .hero-text-content {
	        max-width: 500px;
	        padding-left: clamp(8px, 1vw, 16px);
	    }

    .hero-text-content h1 {
        font-size: clamp(32px, 4.2vw, 54px);
    }

    .hero-sub {
        font-size: clamp(15px, 1.6vw, 18px);
        margin-bottom: 28px;
    }

	    .hero-form-container {
	        max-width: 370px;
	    }

	    .hero-benefits-list li {
	        font-size: clamp(15px, 1.5vw, 18px);
	        margin-bottom: 14px;
	        gap: 5px;
	        white-space: nowrap;
	    }

	    .hero-benefits-list li .icon-svg {
	        height: 12px;
	    }

	    .hero {
	        background-image:
	            linear-gradient(90deg,
	                rgba(18, 28, 48, 0) 0%,
                rgba(18, 28, 48, 0) 24%,
                rgba(18, 28, 48, 0.88) 48%,
                rgba(18, 28, 48, 1) 62%),
            url('assets/images/hero-optimized.webp');
        background-size: cover, auto 100%;
        background-position: left center, left center;
        background-repeat: no-repeat, no-repeat;
	    }
	}

/* Ultra-wide desktops: expand the content cluster so it doesn't feel compressed */
@media (min-width: 1921px) {
    :root {
        --container-width: 1800px;
        --page-edge-offset: 40px;
        --hero-heading-inner-offset: 0;
        --hero-bullets-offset: 0;
    }

    .hero-layout {
        max-width: 1920px;
        justify-content: flex-end;
        gap: 4%;
        padding-left: 0;
        padding-right: 2% !important;
    }

    .hero-text-content {
        flex: 0 0 38%;
        max-width: 38%;
        margin-left: 30%;
        padding-left: 0;
    }

    .hero-form-container {
        flex: 0 0 28%;
        max-width: 28%;
    }

    .hero {
        /* Above 1920px, keep the image anchored to the same 1920px stage instead of the full viewport. */
        background-size: 1920px 100%, auto 100%;
        background-position: center center, left calc((100vw - 1920px) / 2) center;
    }
}

.lawyer-badge {
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 22px;
    border-radius: 5px;
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 700;
    margin-bottom: 40px;
}

.lawyer-badge .lawyer-name,
.lawyer-badge .lawyer-id {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.1;
}

.lawyer-badge .lawyer-id::before {
    content: '|';
    margin-right: 6px;
    color: var(--color-primary-dark);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .lawyer-badge .lawyer-id::before {
        display: none;
    }
}

.hero-form-container {
    flex: 0 0 28%;
    max-width: 28%;
    display: flex;
    justify-content: flex-end;
}

.hero-benefits-list {
    list-style: none;
    margin-top: var(--hero-bullets-vertical-offset);
    transform: translateX(var(--hero-bullets-offset));
}

.hero-benefits-list li {
    margin-bottom: 18px;
    font-size: clamp(16px, 1.9vw, 20px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}


.hero-benefits-list li .icon-svg {
    color: var(--color-text-white);
    height: 12px;
}

.hero-benefits-list li img {
    height: 20px;
    width: 20px;
    flex-shrink: 0;
    display: block;
    margin-bottom: 1px;
    filter: brightness(0) saturate(100%) invert(67%) sepia(64%) saturate(1029%) hue-rotate(357deg) brightness(101%) contrast(98%);
}

.btn .icon-svg,
.btn .icon-img,
.security-note .icon-svg,
.security-note-light .icon-svg {
    height: 20px !important;
    width: 20px !important;
}

.form-box {
    background-color: #fff;
    padding: 30px 28px;
    border-radius: 15px;
    border: 3px solid var(--color-gold);
    /* Updated shadow to match mockup's soft style */
    box-shadow: -8px 8px 20px -10px rgba(15, 23, 42, 0.7), 0 4px 12px -6px rgba(255, 255, 255, 0.25);
    color: var(--color-text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-box:hover {
    transform: translateY(-6px);
    box-shadow: -12px 12px 30px -10px rgba(15, 23, 42, 0.55), 0 25px 40px -20px rgba(255, 255, 255, 0.15);
}

.form-box h2 {
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-primary-dark);
    line-height: 1.1;
    white-space: nowrap;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-weight: 700;
    font-size: clamp(13px, 1.2vw, 14px);
    margin-bottom: 6px;
    color: var(--color-primary-dark);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--color-border-gray);
    border-radius: 8px;
    font-family: var(--font-stack);
    font-size: clamp(15px, 1.4vw, 16px); /* Increased font size */
    color: var(--color-text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.2);
}

.input-group select {
     background-color: var(--color-bg-gray);
     appearance: none;
     /* Custom dropdown arrow */
     background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231A2336%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-13%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2013l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%2E");
     background-repeat: no-repeat;
     background-position: right 18px center;
     background-size: 12px;
     padding-right: 50px; /* Increased padding */
     cursor: pointer;
}

/* Placeholder styling for select */
.input-group select:invalid {
    color: #888;
}
.input-group select option {
    color: var(--color-text-dark);
}

.security-note {
    text-align: center;
    font-size: clamp(12px, 1.2vw, 13px); /* Increased font size */
    color: #595959; /* Increased contrast from #888 to meet WCAG AA */
    margin-top: 25px; /* Increased margin */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.security-note .icon-svg {
    color: inherit;
}

.security-note .icon-svg path {
    fill: currentColor !important;
}

/* --- Social Proof Banner --- */
.social-proof-banner {
    background-color: var(--color-bg-gray);
    padding: 25px 0;
    text-align: center;
    font-size: clamp(15px, 1.8vw, 18px);
    border-bottom: 1px solid #e5e7eb;
    color: var(--color-text-dark);
}
.social-proof-banner strong {
    font-weight: 900;
}

/* --- Problem/Solution Section --- */
.two-col-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
}

.info-card {
    flex: 1;
    padding: 10px;
    border-radius: 15px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.info-card h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-primary-dark);
}

.info-card p {
    font-size: 18px;
    color: #555;
    line-height: 1.5;
}

/* --- Negative Types Section (Cards) --- */
.four-col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    text-align: center;
    padding: 45px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
    border: 2px solid var(--color-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.feature-card h3 {
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 800;
    line-height: 1.3;
    color: var(--color-primary-dark);
    margin-top: 15px;
    white-space: nowrap;
}

.feature-card .icon-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .four-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .four-col-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Disease Cards Section --- */
.diseases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}
.disease-card {
    background: #fff;
    border: 2px solid var(--color-gold);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 8px 30px -8px rgba(0,0,0,0.12);
}
.disease-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}
.disease-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}
.disease-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
@media (max-width: 992px) {
    .diseases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .diseases-grid { grid-template-columns: 1fr; }
    .disease-card { padding: 25px 15px; }
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 2px solid var(--color-gold);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.faq-item[open] {
    box-shadow: 0 8px 25px -10px rgba(0,0,0,0.15);
}

.faq-question {
    padding: 20px 50px 20px 25px;
    font-weight: 700;
    font-size: clamp(15px, 1.6vw, 17px);
    color: var(--color-primary-dark);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gold);
    transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 25px 20px;
    color: #555;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.6;
    border-top: 1px solid #eee;
}

/* --- Steps Section --- */
.steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
    padding: 0 30px;
}

.step-item {
    flex: 1;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-item h3 {
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--color-primary-dark);
}

.step-item p {
    color: #555;
    font-size: clamp(15px, 1.6vw, 17px);
}

.step-arrow {
    flex: 0 0 auto;
    align-self: center;
    margin-top: -60px;
    padding: 0 40px;
    opacity: 0.8;
}

.step-arrow .icon-svg {
    width: clamp(32px, 3vw, 40px);
    height: auto;
    display: block;
    color: var(--color-gold);
}

/* --- Combined Footer CTA --- */
.combined-footer {
    background: linear-gradient(135deg, #1a2a4a 0%, #0B1120 50%, #000000 100%);
    color: #ffffff;
}

.footer-layout {
    display: flex;
    min-height: 500px;
}

.footer-content-column {
    flex: 0 0 32%;
    max-width: 32%;
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-image-column {
    flex: 0 0 68%;
    max-width: 68%;
    position: relative;
    overflow: hidden;
}

.footer-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.footer-direct-title {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--color-gold);
    text-transform: none;
    letter-spacing: 0.5px;
}

.footer-form-inline {
    max-width: 100%;
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.footer-form-inline .input-group {
    margin-bottom: 12px;
}

.footer-form-inline .input-group label {
    display: block;
    color: #fff;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
}

.footer-form-inline .input-group input {
    width: 100%;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.footer-form-inline .input-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

.footer-form-inline .input-group input:focus {
    outline: none;
    background-color: rgba(255,255,255,0.1);
    border-color: var(--color-gold);
}

.footer-form-inline .btn {
    margin-top: 4px;
    font-size: 14px;
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
    border: none;
    box-shadow: 0 6px 20px -5px rgba(252,163,17,0.5);
}

.footer-form-inline .btn:hover {
    background-color: var(--color-gold-hover);
    box-shadow: 0 8px 25px -5px rgba(252,163,17,0.6);
    transform: translateY(-2px);
}

.security-note-light {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-top: 12px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 992px) {
    .footer-layout {
        flex-direction: column;
    }
    .footer-content-column {
        flex: 1 1 auto;
        max-width: 100%;
        padding: 50px 20px;
    }
    .footer-image-column {
        flex: 0 0 300px;
        max-width: 100%;
        height: 300px;
    }
    .footer-form-inline {
        max-width: 400px;
        margin: 0 auto 20px;
    }
}

/* --- Steps Section (icon sizing) --- */
.step-item .icon-wrapper.icon-dark {
    height: 160px;
    width: 160px;
    font-size: 128px;
    margin-bottom: 50px;
}

.step-item .icon-wrapper .icon-img,
.step-item .icon-wrapper .icon-svg {
    height: 64px !important;
    width: auto;
}

.scroll-hint {
    display: block;
    margin-top: 25px;
    font-size: 14px;
    opacity: 0.6;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Site Footer 3-column grid --- */
.site-footer {
    background-color: #05080F;
    color: #d1d5db;
    padding: 60px 0 40px;
    font-size: clamp(13px, 1.4vw, 14px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 32% 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-col-title {
    color: var(--color-gold);
    font-size: clamp(16px, 1.8vw, 20px);
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 5px;
}

.footer-social-link {
    color: #d1d5db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-social-link:hover {
    color: var(--color-gold);
}

.footer-info-section {
    text-align: left;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #d1d5db;
}

.footer-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d1d5db;
}

.footer-hours {
    color: var(--color-gold) !important;
}

.footer-disclaimer {
    margin-top: 20px;
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.5;
    color: #d1d5db;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo-section .site-logo {
    height: clamp(80px, 10vw, 120px);
    width: auto;
    max-width: 220px;
    margin-bottom: 15px;
}

.footer-copyright {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.6;
    color: #d1d5db;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-map {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-info-section {
        text-align: center;
    }
    .footer-contact-item {
        justify-content: center;
    }
    .footer-social {
        align-items: center;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1100px) {
    /* Removed .hero-image-placeholder rule */
}

@media (max-width: 1280px) {
    :root {
        --hero-bullets-offset: 0;
        --page-edge-offset: clamp(20px, 4vw, 44px);
    }

    .hero {
        background-image: none;
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .hero-layout {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-photo {
        display: block;
        flex: 0 1 320px;
        margin: 0;
        text-align: center;
    }
    
    .hero-photo img {
        max-width: 320px;
    }

    .hero-text-content {
        width: 100%;
        max-width: 520px;
        text-align: left;
        padding-top: 0;
        margin: 0 0 10px 0;
        padding-left: 0;
    }

    .hero-text-content h1,
    .hero-sub,
    .lawyer-badge {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Ensure badge centers properly */
    .lawyer-badge {
        display: inline-flex;
    }

    .hero-benefits-list {
        transform: translateX(0);
        margin-left: 0;
        margin-right: 0;
        max-width: none;
        text-align: left;
    }

    .hero-form-container {
        flex: 0 1 420px;
        width: 100%;
        max-width: 420px;
        margin: 0;
    }
}

@media (max-width: 1024px) {
    .hero-text-content {
        flex: 1 1 100%;
        max-width: 680px;
        text-align: center;
    }

    .lawyer-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-benefits-list {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 992px) {
    :root {
        --page-edge-offset: 20px;
        --hero-heading-vertical-offset: 0;
        --hero-bullets-vertical-offset: 0;
        --hero-bullets-offset: 0;
        --hero-heading-inner-offset: 0;
    }

    .two-col-grid, 
    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
        padding: 0;
    }
    
    .form-box {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .hero-photo {
        display: none;
    }

    .hero-layout {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px !important;
        overflow: hidden;
    }

    .hero-text-content,
    .hero-form-container {
        width: 100%;
        max-width: 100%;
        flex: 0 1 auto;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text-content h1,
    .hero-sub,
    .hero-benefits-list {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text-content h1 {
        font-size: clamp(30px, 9vw, 42px);
        overflow-wrap: break-word;
    }

    .hero-sub {
        font-size: 16px;
        overflow-wrap: break-word;
    }

    .hero-benefits-list li {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        align-items: start;
        white-space: normal;
        font-size: 16px;
        line-height: 1.45;
    }

    .hero-form-container {
        justify-content: center;
        display: flex;
    }

    .hero-form-container .form-box {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .form-box h2 {
        white-space: normal;
    }
}

/* --- Practice Areas 3-col + content --- */
.diseases-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.disease-card .disease-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.practice-list {
    list-style: none;
    margin-top: 12px;
    text-align: left;
}

.practice-list li {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.practice-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: 900;
}

/* --- Contact Page --- */
.contact-page .site-header {
    background-color: var(--color-bg-header);
}

.contact-header-content,
.contact-hero-layout,
.contact-services-layout,
.contact-page .site-footer .footer-grid {
    width: min(100%, var(--contact-shell-width));
    max-width: var(--contact-shell-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--contact-shell-padding);
    padding-right: var(--contact-shell-padding);
}

.contact-header-content {
    justify-content: flex-start;
}

.contact-header .logo {
    text-decoration: none;
}

@media (min-width: 901px) {
    .contact-header .logo {
        margin-left: calc(-1 * clamp(44px, 4.3vw, 62px));
    }
}

.contact-hero {
    background-color: var(--color-primary-blue);
    padding-top: 100px;
    padding-bottom: 110px;
}

.contact-hero-layout {
    justify-content: flex-end;
    gap: clamp(22px, 2.8vw, 44px);
    padding-right: var(--contact-shell-padding) !important;
}

.contact-hero-text {
    flex: 0 1 520px;
    max-width: 520px;
    margin-left: 27%;
}

.contact-heading-block {
    min-height: 0;
}

.contact-benefits-list {
    max-width: 620px;
}

.contact-hero-form-container {
    flex: 0 1 380px;
    max-width: 380px;
}

.contact-services-section {
    background:
        linear-gradient(180deg, rgba(243, 245, 248, 0.92) 0%, #fff 100%);
}

.contact-services-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

.contact-page .site-footer .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 72px);
}

.contact-page .footer-map {
    justify-self: start;
}

.contact-page .footer-info-section {
    justify-self: center;
    width: 100%;
    max-width: 430px;
}

.contact-page .footer-logo-section {
    justify-self: end;
    align-items: flex-end;
    text-align: right;
}

.contact-page .footer-logo-section .site-logo {
    margin-left: auto;
    margin-right: 0;
}

.contact-services-copy {
    max-width: none;
    position: static;
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(252, 163, 17, 0.14);
    color: var(--color-primary-dark);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.contact-services-copy h2 {
    color: var(--color-primary-dark);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 18px;
}

.contact-services-copy p {
    color: #4b5563;
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 1.65;
    max-width: 58ch;
}

.contact-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.contact-service-item {
    background: #fff;
    border: 2px solid rgba(252, 163, 17, 0.82);
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 14px 34px -24px rgba(15, 23, 42, 0.28);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.contact-service-item h3 {
    color: var(--color-primary-dark);
    font-size: clamp(17px, 1.7vw, 20px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
}

.contact-service-item p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.55;
}

@media (hover: hover) and (pointer: fine) {
    .info-card:hover {
        background-color: #fff;
        transform: translateY(-5px);
        box-shadow: 0 18px 42px -28px rgba(15, 23, 42, 0.32);
    }

    .disease-card:hover,
    .faq-item:hover,
    .contact-service-item:hover {
        transform: translateY(-5px);
        border-color: var(--color-gold);
        box-shadow: 0 22px 44px -18px rgba(15, 23, 42, 0.24);
    }
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
    .info-card.is-scroll-hover {
        background-color: #fff;
        transform: translateY(-4px);
        box-shadow: 0 16px 38px -28px rgba(15, 23, 42, 0.34);
    }

    .disease-card.is-scroll-hover,
    .faq-item.is-scroll-hover,
    .contact-service-item.is-scroll-hover {
        transform: translateY(-4px);
        border-color: var(--color-gold);
        box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.28);
    }
}

.contact-form-box {
    width: 100%;
    max-width: 520px;
    justify-self: end;
}

.contact-form-box h2 {
    white-space: normal;
}

.optional-label {
    color: #6b7280;
    font-weight: 600;
}

@media (max-width: 1280px) {
    .contact-hero-text {
        flex: 1 1 100%;
        width: 100%;
        max-width: min(680px, 100%);
        margin-left: 0;
        text-align: center;
    }

    .contact-hero-form-container {
        flex: 0 1 420px;
        width: 100%;
        max-width: 420px;
        margin: 0;
    }

    .contact-hero-photo {
        display: none;
    }

    .contact-benefits-list {
        display: inline-block;
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .contact-services-layout {
        grid-template-columns: 1fr;
        max-width: 640px;
    }

    .contact-services-copy {
        position: static;
    }

    .contact-services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-box {
        justify-self: stretch;
        max-width: 100%;
    }

    .contact-page .site-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-page .footer-map,
    .contact-page .footer-info-section,
    .contact-page .footer-logo-section {
        justify-self: stretch;
        max-width: none;
    }

    .contact-page .footer-logo-section {
        align-items: center;
        text-align: center;
    }

    .contact-page .footer-logo-section .site-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-page .footer-contact-item {
        justify-content: center;
    }

    .contact-page .footer-social {
        align-items: center;
    }
}

@media (max-width: 600px) {
    body.contact-page {
        width: 100%;
        overflow-x: hidden;
    }

    .contact-header-content {
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;
    }

    .contact-page .site-header {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .contact-page .site-header .site-logo {
        height: 58px;
    }

    .contact-hero-layout {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px !important;
        gap: 18px;
        overflow: hidden;
    }

    .contact-hero-text {
        flex: 0 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .contact-hero-form-container {
        flex: 0 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .contact-hero {
        padding-top: 36px;
        padding-bottom: 46px;
    }

    .contact-hero .hero-text-content h1 {
        font-size: clamp(30px, 9vw, 42px);
        max-width: 11ch;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-hero .hero-sub {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 18px;
        font-size: 16px;
        overflow-wrap: break-word;
    }

    .contact-hero .lawyer-badge {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        margin-bottom: 0;
    }

    .contact-hero .lawyer-badge .lawyer-name,
    .contact-hero .lawyer-badge .lawyer-id {
        white-space: normal;
    }

    .contact-hero .hero-benefits-list {
        display: none;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-hero .hero-benefits-list li {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        align-items: start;
        white-space: normal;
        font-size: 16px;
        line-height: 1.45;
    }

    .contact-hero-photo {
        display: none;
    }

    .contact-services-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .contact-services-layout {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        overflow: hidden;
    }

    .contact-form-box {
        min-width: 0;
        width: 100%;
        max-width: calc(100vw - 24px);
        margin-left: auto;
        margin-right: auto;
    }

    .contact-form-box h2 {
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 20px;
    }

    .contact-form-box .btn {
        min-width: 0;
        width: 100%;
        white-space: normal;
    }

    .contact-services-copy {
        min-width: 0;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-services-grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-service-item {
        min-width: 0;
        width: 100%;
    }

    .contact-services-copy h2 {
        font-size: 26px;
        overflow-wrap: break-word;
    }

    .contact-form-box .btn {
        font-size: 13px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .contact-kicker {
        font-size: 12px;
    }
}
