/* AssureSQ — Modern, professional, responsive */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    /* AssureSQ brand: logo blue #1E3F6D, logo green #3D9A4C */
    --primary: #1E3F6D;
    --primary-hover: #2a4d7a;
    --accent: #3D9A4C;
    --accent-hover: #358842;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --surface-elevated: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --header-bg: #ffffff;
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 10px 15px -3px rgba(0,0,0,.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.15);
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-spring: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1E3F6D 50%, #162d50 100%);
    --gradient-cta: linear-gradient(135deg, #0f172a 0%, #1a365d 60%, #1E3F6D 100%);
    --gradient-accent: linear-gradient(135deg, #3D9A4C, #2d8a3c);
    --gradient-surface: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    --nav-height: 64px;
    --container: 1200px;
    --section-padding: clamp(3rem, 6vw, 5rem);
    /* Legacy aliases for inline styles on some pages */
    --primary-color: var(--primary);
    --secondary-color: var(--accent);
    --light-bg: var(--surface-alt);
    --border-color: var(--border);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-animate] { transition: none; }
    [data-animate].animated { opacity: 1; transform: none; }
    .back-to-top { transition: opacity 0.2s ease, visibility 0.2s ease; }
    .back-to-top.is-visible { transform: none; }
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Skip link: visible on focus for keyboard/screen reader users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* Focus visible: clear outline for keyboard, none for mouse */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

img { max-width: 100%; height: auto; display: block; }

/* ----- Header ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226,232,240,.7);
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.nav-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-height);
    gap: 1.5rem;
    width: 100%;
}

/* Logo: use transparent PNG (assets/logo.png) so background shows through */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--primary);
    letter-spacing: -0.01em;
    background: transparent;
}
.logo img {
    max-height: 48px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
    background: transparent;
    vertical-align: middle;
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--primary); }
.logo:hover span { color: var(--accent-hover); }

.nav-panel {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
    gap: 1.25rem;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-main > li { position: relative; }

.nav-main > li > a {
    display: block;
    padding: 0.45rem 0.65rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-radius: var(--radius);
}
.nav-main > li { position: relative; }
.nav-main > li > a:hover { color: var(--primary); background: var(--surface-alt); }
.nav-main > li > a.nav-current { color: var(--primary); font-weight: 600; }

/* Login Button */
.nav-login-btn {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 0.4rem 1rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.825rem !important;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.nav-login-btn:hover {
    background: var(--primary-dark, #1a3fd4) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

/* Dropdown: Domains */
.nav-dropdown-trigger {
    cursor: pointer;
    padding-right: 1.15rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.4rem center;
}
.nav-dropdown-trigger[aria-expanded="true"],
.nav-main li:hover .nav-dropdown-trigger { color: var(--primary); }

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    margin-top: 2px;
    padding: 0.5rem 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    list-style: none;
}

.nav-main li:hover .nav-dropdown,
.nav-main li:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--text);
    border-radius: 0;
}
.nav-dropdown a:hover {
    background: var(--surface-alt);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-text {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text);
    padding: 0.5rem 1rem;
}
.btn-text:hover { color: var(--primary); }

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.btn-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-cta:active { transform: translateY(0); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text);
}
.menu-toggle:hover { background: var(--surface-alt); }
.menu-toggle svg { width: 24px; height: 24px; }

/* ----- Mobile nav ----- */
@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .nav-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }
    .nav-panel.is-open {
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        opacity: 1;
    }
    .nav-main { display: block; padding: 0.5rem 0; }
    .nav-actions { padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
    .nav-actions .btn-cta { display: block; text-align: center; }
    .nav-main > li { border-bottom: 1px solid var(--border); }
    .nav-main > li:last-child { border-bottom: none; }
    .nav-main > li > a,
    .nav-dropdown-trigger { padding: 0.75rem 1rem; display: block; }
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0 0 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .nav-main li.dropdown-open .nav-dropdown { max-height: 400px; }
    .nav-dropdown a { padding: 0.5rem 0.75rem; }
}

/* ----- Hero ----- */
.hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: clamp(5rem, 12vw, 8rem) 1.5rem;
    text-align: center;
    min-height: clamp(400px, 55vw, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61,154,76,.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,63,109,.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255,255,255,.8);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.hero-buttons--triple { gap: 1rem; }
.hero-lead {
    font-size: 1.125rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: #6ee7b7;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-buttons { position: relative; z-index: 1; }
.btn-outline-hero { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-hero:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.8); }

.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}
.trust-bar span { white-space: nowrap; }
.footer-global { font-size: 0.8125rem; color: var(--footer-text); margin-top: 0.5rem; }
.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.industry-chip {
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}
.features-grid--six { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.features-grid--four { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.features-grid--three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.feature-card--static { cursor: default; }
.feature-card--static::after { display: none; }
.steps-grid--five { 
    grid-template-columns: repeat(5, minmax(0, 1fr)); 
    gap: 0.5rem;
}
.steps-grid--five .step-card {
    min-width: 0;
    padding: 1.5rem 0.5rem;
    overflow: hidden;
}
.steps-grid--five .step-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.steps-grid--five .step-card p {
    font-size: 0.8125rem;
    line-height: 1.4;
}
.steps-grid--five .step-number {
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
}
@media (max-width: 1024px) {
    .steps-grid--five { grid-template-columns: repeat(3, 1fr); }
    .steps-grid--five .step-card { padding: 1.5rem 1rem; }
    .steps-grid--five .step-card h3 { font-size: 1.125rem; }
    .steps-grid--five .step-card p { font-size: 0.9375rem; }
}
@media (max-width: 768px) {
    .steps-grid--five { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .steps-grid--five { grid-template-columns: 1fr; }
}

/* Scorecard preview (green accent for scores) */
.scorecard-preview-section { background: var(--surface-alt); }
.scorecard-preview { max-width: 520px; margin: 0 auto; }
@media (max-width: 640px) {
    .scorecard-preview-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .scorecard-row { min-width: 260px; }
}
.scorecard-preview-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.scorecard-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}
.scorecard-row:last-child { border-bottom: none; }
.scorecard-row--header { font-weight: 600; color: var(--text-muted); background: var(--surface-alt); }
.scorecard-row--total { font-weight: 700; background: var(--surface-alt); border-top: 2px solid var(--border); }
.score-value { font-weight: 700; color: var(--accent); font-size: 1.125rem; }
.score-value--total { font-size: 1.375rem; color: var(--accent); }
.score-badge {
    font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 999px;
}
.score-badge--good { background: rgba(61, 154, 76, .15); color: var(--accent); }
.score-badge--fair { background: rgba(245, 158, 11, .2); color: #b45309; }
.score-badge--low { background: rgba(239, 68, 68, .15); color: #dc2626; }

/* Domain page: 6 subsections + scoring output */
.domain-subsections .about-content { max-width: 800px; margin: 0 auto; }
.domain-subsection {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.domain-subsection:last-of-type { border-bottom: none; }
.domain-subsection h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.domain-subsection p { color: var(--text-muted); line-height: 1.7; }

/* Domain subdomain grid: 3 columns x 2 rows */
.domain-subdomain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: stretch;
}
@media (max-width: 960px) {
    .domain-subdomain-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .domain-subdomain-grid { grid-template-columns: 1fr; }
}
.domain-subdomain-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.domain-subdomain-card {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.domain-subdomain-link:hover .domain-subdomain-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.domain-subdomain-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    width: 100%;
}
.domain-subdomain-card p {
    color: var(--text-muted);
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 0;
    margin-top: 0;
}
.domain-subdomain-card::after {
    content: "Learn more →";
    display: block;
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
}
.domain-subdomain-link:hover .domain-subdomain-card::after {
    opacity: 1;
}
.scoring-output-box {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 1.5rem 2rem;
    background: rgba(61, 154, 76, .08);
    border: 1px solid rgba(61, 154, 76, .25);
    border-radius: var(--radius-lg);
}
.scoring-output-box h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; }
.scoring-output-box ul { list-style: none; }
.scoring-output-box li { padding: 0.25rem 0; color: var(--text-muted); font-size: 0.9375rem; }
.scoring-output-box strong { color: var(--accent); }
.methodology-list { margin: 0.75rem 0 0 1.25rem; }
.methodology-list li { margin-bottom: 0.5rem; color: var(--text-muted); line-height: 1.6; }
.methodology-list strong { color: var(--text); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    touch-action: manipulation;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(61, 154, 76, .35); }
.btn-primary a { color: inherit; text-decoration: none; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--primary);
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}
.btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-secondary a { color: inherit; text-decoration: none; }
.btn-secondary { touch-action: manipulation; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    min-height: 44px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    touch-action: manipulation;
}
.btn-outline:hover { background: var(--surface-alt); border-color: var(--primary); color: var(--primary); }

/* Thank-you page */
.thank-you-section { text-align: center; padding: var(--section-padding) 1.5rem; }
.thank-you-content {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.thank-you-section .section-title { margin-bottom: 0.75rem; }
.thank-you-lead { font-size: 1.125rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.thank-you-text { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.65; }
.thank-you-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* FAQ section (SEO service pages) */
.faq-section { padding: var(--section-padding) 1.5rem; background: var(--surface-alt); }
.faq-list { max-width: 720px; margin: 0 auto; list-style: none; }
.faq-list li { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.faq-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.faq-list h3 { font-size: 1.0625rem; color: var(--primary); margin-bottom: 0.5rem; font-weight: 600; }
.faq-list p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

.features-grid--two {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .features-grid--two { grid-template-columns: 1fr; }
}

/* ----- Sections ----- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: var(--section-padding) 1.5rem; }
.section--alt { background: var(--gradient-surface); }

/* Mix-and-match: two-column section on desktop, single column on mobile */
.section-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 640px) {
    .section-inner-grid { grid-template-columns: 1fr; }
}
.section-inner-grid .about-section { margin-bottom: 0; }
.section-inner-grid + .section-inner-grid { margin-top: 2rem; }

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

/* Features grid */
.features { background: var(--surface); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}

.feature-link { color: inherit; display: block; height: 100%; text-decoration: none; }
.feature-link:hover .feature-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.feature-link .feature-card::after {
    content: "Learn more →";
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-link:hover .feature-card::after { opacity: 1; }

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* How it works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.steps-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.step-card {
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.step-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.testimonial-position { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.125rem; }

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    text-align: center;
}
.cta-section .section-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); color: #fff; }
.cta-section p { font-size: 1rem; color: rgba(255,255,255,.9); margin-bottom: 1.5rem; }
.cta-section .btn-primary { background: var(--accent); color: #fff; }
.cta-section .btn-primary:hover { background: var(--accent-hover); }

/* ----- Footer ----- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: clamp(3rem, 5vw, 4rem) 1.5rem 1.5rem;
}

.footer-content {
    max-width: var(--container);
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section p,
.footer-section ul { font-size: 0.875rem; line-height: 1.6; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-section a { color: var(--footer-text); transition: color var(--transition); }
.footer-section a:hover { color: #fff; }

/* ----- Footer Offices ----- */
.footer-offices {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 2rem 0 1.5rem;
}
.footer-offices-label {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.footer-offices-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.footer-office-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.footer-office-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 0.75rem;
}
.footer-office-card h4 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.footer-office-card p {
    color: var(--footer-text);
    font-size: 0.8125rem;
    line-height: 1.6;
}
@media (max-width: 1024px) {
    .footer-offices-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .footer-offices-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .footer-offices-grid { grid-template-columns: 1fr; }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--footer-text);
}
.footer-bottom a { color: var(--footer-text); }
.footer-bottom a:hover { color: #fff; }

/* ----- Page hero (inner pages, encse-style) ----- */
.about-hero {
    background: var(--surface);
    color: var(--text);
    padding: clamp(3.5rem, 8vw, 5rem) 1.5rem;
    text-align: center;
}
.about-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.about-hero p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.65;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Content pages: prose + offer grid (encse-style) ----- */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Prose blocks: no card box, clean typography */
.about-content { max-width: 800px; margin: 0 auto; }
.about-section {
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.about-section h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

/* Certificate showcase (methodology / trust) */
.certificate-showcase-section { background: var(--surface); }
.certificate-showcase-section .section-lead { max-width: 640px; margin: 0 auto 2rem; color: var(--text-muted); }
.certificate-showcase { display: flex; justify-content: center; align-items: center; padding: 1rem 0; }
.certificate-frame {
    max-width: 560px;
    width: 100%;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 4px 20px rgba(30, 63, 109, .12);
}
.certificate-inner { text-align: center; }
.certificate-logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); letter-spacing: 0.05em; display: block; margin-bottom: 1rem; }
.certificate-type { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.certificate-issued, .certificate-scope, .certificate-valid { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.certificate-valid { font-size: 0.8125rem; margin-top: 1rem; }
.about-section p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
}
.about-section p:last-of-type { margin-bottom: 0.5rem; }
.about-section ul {
    margin: 0.5rem 0 0 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.about-section ul li { margin-bottom: 0.5rem; }

/* Alternate section background for rhythm */
.section.page-section--alt { background: var(--surface-alt); }
.section.page-section--alt .about-content { padding: 0.5rem 0; }

/* Offer/cards grid (encse "What we offer" style) */
.page-offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.page-offer-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.page-offer-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.page-offer-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.page-offer-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 640px) {
    .page-offer-grid { grid-template-columns: 1fr; }
}

/* Contact form & layout */
.contact-container { max-width: 560px; margin: 2rem auto; padding: 0 1.5rem; }

.zoho-form-wrap,
.contact-container {
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.9375rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 63, 109, 0.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.btn-submit {
    width: 100%;
    padding: 0.6rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}
.btn-submit:hover { background: var(--primary-hover); }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}
.pricing-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(61, 154, 76, .15);
}
.pricing-card.featured:hover { border-color: var(--accent-hover); }
.plan-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.plan-price { font-size: 2rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0; }
.plan-price span { font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); }
.plan-description { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.plan-features { list-style: none; margin: 1rem 0; flex: 1; }
.plan-features li { padding: 0.35rem 0; font-size: 0.9375rem; color: var(--text-muted); padding-left: 1.5rem; position: relative; }
.plan-features li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.pricing-card .btn-primary { width: 100%; margin-top: auto; padding: 0.75rem 1.5rem; }
.pricing-card .btn-primary a { color: inherit; text-decoration: none; }

/* Scroll reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Utilities */
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* Contact page two-column layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-form-title {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 600;
}

/* Zoho CRM form — overrides to match site (do not remove Zoho’s own style block) */
.zoho-form-wrap #crmWebToEntityForm {
    background: transparent !important;
    padding: 0 !important;
    max-width: 100%;
}
.zoho-form-wrap .zcwf_title {
    font-family: inherit !important;
    font-size: 0.9375rem !important;
    color: var(--text-muted) !important;
    padding-bottom: 0.75rem !important;
}
.zoho-form-wrap .zcwf_col_lab label {
    font-family: inherit !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--text) !important;
}
.zoho-form-wrap .zcwf_col_fld input[type=text],
.zoho-form-wrap .zcwf_col_fld input[type=password],
.zoho-form-wrap .zcwf_col_fld textarea {
    width: 100% !important;
    max-width: 100%;
    padding: 0.5rem 0.65rem !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    font-family: inherit !important;
    font-size: 0.9375rem !important;
}
.zoho-form-wrap .zcwf_col_fld input:focus,
.zoho-form-wrap .zcwf_col_fld textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(30, 63, 109, 0.12);
}
.zoho-form-wrap .zcwf_row {
    margin: 1rem 0 !important;
}
.zoho-form-wrap .zcwf_col_lab {
    width: 100% !important;
    float: none !important;
    margin-bottom: 0.25rem;
}
.zoho-form-wrap .zcwf_col_fld {
    width: 100% !important;
    float: none !important;
}
.zoho-form-wrap .formsubmit.zcwf_button {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.55rem 1.15rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border-radius: var(--radius) !important;
    cursor: pointer !important;
    font-family: inherit !important;
}
.zoho-form-wrap .formsubmit.zcwf_button:hover {
    background: var(--primary-hover) !important;
}
.zoho-form-wrap .zcwf_button[type=reset] {
    margin-left: 0.5rem;
    border-color: var(--border) !important;
    color: var(--text) !important;
    padding: 0.6rem 1rem !important;
    font-family: inherit !important;
}
@media (max-width: 600px) {
    .zoho-form-wrap .zcwf_col_lab,
    .zoho-form-wrap .zcwf_col_fld { width: 100% !important; float: none !important; }
}

/* Responsive */
/* Tablet: keep 2 columns where minmax allows; single column only on mobile */
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .features-grid,
    .steps-grid,
    .testimonials-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .section-title { font-size: 1.375rem; }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { background: var(--primary-hover); }
.back-to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.back-to-top svg { width: 24px; height: 24px; }
@media (max-width: 640px) {
    .back-to-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
}

/* ----- Mobile-first enhancements ----- */
.menu-toggle {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}
@media (max-width: 900px) {
    .nav-main > li > a,
    .nav-dropdown-trigger {
        min-height: 44px;
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
    }
    .nav-dropdown a {
        min-height: 40px;
        padding: 0.6rem 0.75rem;
        display: block;
    }
}
@media (max-width: 640px) {
    .hero { padding: clamp(2.5rem, 8vw, 4rem) 1rem; text-align: center; }
    .hero-content { text-align: center; }
    .hero h1 { font-size: clamp(1.5rem, 5vw, 2rem); text-align: center; }
    .hero p,
    .hero-lead,
    .hero-tagline { text-align: center; }
    .section { padding: clamp(2rem, 5vw, 3rem) 1rem; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary,
    .hero-buttons .btn-outline {
        min-height: 48px;
        width: 100%;
        justify-content: center;
    }
    .map-embed-wrap iframe { height: 280px; }
}
/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .site-footer .footer-bottom {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    .back-to-top {
        right: max(1rem, env(safe-area-inset-right));
        bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* ----- Stats Banner ----- */
.stats-banner { background: var(--gradient-hero); color: #fff; padding: 3rem 1rem; position: relative; overflow: hidden; }
.stats-banner::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E"); pointer-events: none; }
.stats-banner .container { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat-item { text-align: center; min-width: 140px; }
.stat-number { font-size: 2.5rem; font-weight: 700; line-height: 1.1; color: #fff; position: relative; }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,.75); margin-top: 0.25rem; }
@media (max-width: 640px) {
    .stats-banner .container { gap: 1.5rem; }
    .stat-item { min-width: 100px; }
    .stat-number { font-size: 1.75rem; }
}

/* ----- Testimonials ----- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-lg); padding: 1.75rem; position: relative; transition: all var(--transition-spring); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card::before { content: open-quote; font-size: 3rem; color: var(--primary); opacity: .15; position: absolute; top: 0.5rem; left: 1rem; line-height: 1; }
.testimonial-text { font-style: italic; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.testimonial-author { font-weight: 600; color: var(--text); font-size: 0.9375rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--text-light); }

/* ----- Client Logos ----- */
.client-logos { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; padding: 1rem 0; }
.client-logo-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0.7; transition: opacity var(--transition); }
.client-logo-item:hover { opacity: 1; }
.client-logo-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--primary); border: 1px solid var(--border); }
.client-logo-label { font-size: 0.75rem; color: var(--text-light); font-weight: 500; text-align: center; max-width: 100px; }



/* ----- Score Estimator ----- */
.estimator-wrap { max-width: 720px; margin: 0 auto; }
.estimator-question { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem; }
.estimator-question h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--text); }
.estimator-options { display: flex; flex-direction: column; gap: 0.5rem; }
.estimator-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all var(--transition); font-size: 0.9375rem; }
.estimator-option:hover { border-color: var(--primary); background: rgba(30,63,109,.04); }
.estimator-option.selected { border-color: var(--primary); background: rgba(30,63,109,.08); font-weight: 500; }
.estimator-option input { accent-color: var(--primary); }
.estimator-result { background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: 2rem; text-align: center; margin-top: 1.5rem; display: none; }
.estimator-result.show { display: block; }
.estimator-score { font-size: 3.5rem; font-weight: 700; line-height: 1; }
.estimator-rating { font-size: 1.25rem; margin-top: 0.5rem; opacity: .85; }
.estimator-bar { height: 8px; background: rgba(255,255,255,.2); border-radius: 4px; margin: 1rem auto; max-width: 300px; overflow: hidden; }
.estimator-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.8s ease; }
.estimator-cta { margin-top: 1.5rem; }

/* ----- FAQ Accordion ----- */
.faq-section { margin-top: 2rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 0.75rem; background: var(--surface); transition: border-color var(--transition), box-shadow var(--transition); }
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow); border-left: 3px solid var(--accent); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; background: none; border: none; cursor: pointer; font-size: 0.9375rem; font-weight: 600; color: var(--text); text-align: left; font-family: inherit; line-height: 1.4; gap: 1rem; transition: background var(--transition); }
.faq-question:hover { background: var(--surface-alt); border-radius: var(--radius-lg); }
.faq-question::after { content: '\25BE'; font-size: 1.1rem; color: var(--text-light); flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: inline-block; }
.faq-item.open .faq-question::after { transform: rotate(180deg); color: var(--primary); }
.faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; animation: faqFadeIn 0.35s ease forwards; }
@keyframes faqFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.faq-answer-inner { padding: 0 1.25rem 1.25rem; color: var(--text-muted); line-height: 1.65; font-size: 0.9375rem; border-top: 1px solid var(--border); padding-top: 1rem; margin: 0 0.5rem; }

/* ----- Challenges Grid ----- */
.challenges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.challenge-card { padding: 1.25rem; border-left: 3px solid var(--accent); background: var(--surface-alt); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; transition: all var(--transition); }
.challenge-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.challenge-card h4 { font-size: 0.9375rem; color: var(--text); margin-bottom: 0.35rem; }
.challenge-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.help-card { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: all var(--transition-spring); overflow: hidden; position: relative; }
.help-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-accent); transform: scaleX(0); transition: transform var(--transition-spring); }
.help-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.help-card:hover::before { transform: scaleX(1); }
.help-card h4 { font-size: 0.9375rem; color: var(--primary); margin-bottom: 0.35rem; }
.help-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; }

/* ----- Staggered Grid Animations ----- */
.features-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.features-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.features-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.features-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.features-grid [data-animate]:nth-child(5) { transition-delay: 0.32s; }
.features-grid [data-animate]:nth-child(6) { transition-delay: 0.4s; }
.domain-subdomain-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.domain-subdomain-grid [data-animate]:nth-child(2) { transition-delay: 0.06s; }
.domain-subdomain-grid [data-animate]:nth-child(3) { transition-delay: 0.12s; }
.domain-subdomain-grid [data-animate]:nth-child(4) { transition-delay: 0.18s; }
.domain-subdomain-grid [data-animate]:nth-child(5) { transition-delay: 0.24s; }
.domain-subdomain-grid [data-animate]:nth-child(6) { transition-delay: 0.3s; }
.steps-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.steps-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.steps-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.steps-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.steps-grid [data-animate]:nth-child(5) { transition-delay: 0.4s; }

/* ----- Micro-animations ----- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,154,76,.3); } 50% { box-shadow: 0 0 0 8px rgba(61,154,76,0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Hero floating orbs animation */
.hero::before { animation: floatSlow 8s ease-in-out infinite; }
.hero::after { animation: floatSlow 10s ease-in-out infinite 1s; }

/* Score values animate in */
.score-value { transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.scorecard-preview:hover .score-value--total { transform: scale(1.08); }

/* Stats numbers subtle pulse */
.stat-number { transition: transform 0.3s ease; }
.stat-item:hover .stat-number { transform: scale(1.08); }

/* Section subtitle fade */
.section-subtitle { animation: fadeInUp 0.6s ease 0.2s both; }

/* Challenges stagger */
.challenges-grid .challenge-card:nth-child(1) { animation: slideInLeft 0.5s ease 0.05s both; }
.challenges-grid .challenge-card:nth-child(2) { animation: slideInLeft 0.5s ease 0.1s both; }
.challenges-grid .challenge-card:nth-child(3) { animation: slideInLeft 0.5s ease 0.15s both; }
.challenges-grid .challenge-card:nth-child(4) { animation: slideInLeft 0.5s ease 0.2s both; }
.challenges-grid .challenge-card:nth-child(5) { animation: slideInLeft 0.5s ease 0.25s both; }
.challenges-grid .challenge-card:nth-child(6) { animation: slideInLeft 0.5s ease 0.3s both; }

/* Help cards stagger */
.help-grid .help-card:nth-child(1) { animation: fadeInScale 0.5s ease 0.05s both; }
.help-grid .help-card:nth-child(2) { animation: fadeInScale 0.5s ease 0.1s both; }
.help-grid .help-card:nth-child(3) { animation: fadeInScale 0.5s ease 0.15s both; }
.help-grid .help-card:nth-child(4) { animation: fadeInScale 0.5s ease 0.2s both; }
.help-grid .help-card:nth-child(5) { animation: fadeInScale 0.5s ease 0.25s both; }

/* Smooth hover glow for primary buttons in CTA */
.cta-section .btn-primary { animation: pulseGlow 3s ease-in-out infinite; }
.cta-section .btn-primary:hover { animation: none; }

/* Feature icon bounce on card hover */
.feature-card:hover .feature-icon { transform: scale(1.15); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Industry chips slide in */
.industries-grid .industry-chip:nth-child(1) { animation: fadeInUp 0.4s ease 0.05s both; }
.industries-grid .industry-chip:nth-child(2) { animation: fadeInUp 0.4s ease 0.1s both; }
.industries-grid .industry-chip:nth-child(3) { animation: fadeInUp 0.4s ease 0.15s both; }
.industries-grid .industry-chip:nth-child(4) { animation: fadeInUp 0.4s ease 0.2s both; }
.industries-grid .industry-chip:nth-child(5) { animation: fadeInUp 0.4s ease 0.25s both; }
.industries-grid .industry-chip:nth-child(6) { animation: fadeInUp 0.4s ease 0.3s both; }

/* Footer office cards stagger */
.footer-offices-grid .footer-office-card { transition: all var(--transition-spring); }

/* Testimonial cards stagger */
.testimonials-grid .testimonial-card:nth-child(1) { animation: fadeInUp 0.5s ease 0.1s both; }
.testimonials-grid .testimonial-card:nth-child(2) { animation: fadeInUp 0.5s ease 0.2s both; }
.testimonials-grid .testimonial-card:nth-child(3) { animation: fadeInUp 0.5s ease 0.3s both; }

/* Reduce all animations for users who prefer */
@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after { animation: none; }
    .cta-section .btn-primary { animation: none; }
    .challenges-grid .challenge-card,
    .help-grid .help-card,
    .industries-grid .industry-chip,
    .testimonials-grid .testimonial-card { animation: none; opacity: 1; transform: none; }
    @keyframes faqFadeIn { from { opacity: 1; transform: none; } to { opacity: 1; transform: none; } }
}
