/* Pinoy Finance NZ — original design system
   Logo palette: Navy #092a91 | Blue #204199 | Red #ed1c24 | Gold #f6cc16 */

:root {
    --primary: #092a91;
    --primary-dark: #061d66;
    --primary-light: #e8ecf7;
    --secondary: #204199;
    --accent-red: #ed1c24;
    --accent-gold: #f6cc16;
    --text: #1a2332;
    --text-light: #4a5568;
    --muted: #6b7280;
    --bg: #f4f5f9;
    --bg-warm: #faf8f5;
    --white: #ffffff;
    --border: #dde1ea;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(9, 42, 145, 0.07);
    --shadow-lg: 0 8px 32px rgba(9, 42, 145, 0.12);
    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'Inter', system-ui, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --bg-service: #faf8f6;
    --bg-service-alt: #ffffff;
    --transition: 0.2s ease;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .journey-content h2, .page-hero h1, .cta-banner h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--primary); }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }

/* ── Brand stripe (logo colours) ───────────────────── */
.brand-stripe {
    display: flex; height: 4px; line-height: 0;
}
.brand-stripe span { flex: 1; }
.brand-stripe span:nth-child(1) { background: var(--accent-red); max-width: 38%; }
.brand-stripe span:nth-child(2) { background: var(--accent-gold); max-width: 22%; }
.brand-stripe span:nth-child(3) { background: var(--primary); flex: 1; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 68px; gap: 1rem; position: relative;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; line-height: 0; }
.logo-linked { cursor: pointer; position: relative; z-index: 2; }
.logo-linked:hover { opacity: 0.9; text-decoration: none; }
.logo-img {
    height: 50px; width: auto;
    max-width: min(240px, 38vw); display: block;
    pointer-events: none;
}
.footer-logo .logo-img {
    height: 48px; max-width: 220px;
    background: white; border-radius: var(--radius);
    padding: 0.35rem 0.55rem;
}

.main-nav { display: flex; align-items: center; gap: 1.35rem; }
.main-nav a {
    color: var(--text); font-weight: 500; font-size: 0.9rem;
    text-decoration: none; transition: color var(--transition);
    position: relative; padding-bottom: 2px;
}
.main-nav a:not(.btn):not(.header-phone)::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px; background: var(--accent-red);
    transition: width var(--transition);
}
.main-nav a:not(.btn):not(.header-phone):hover::after,
.main-nav a.active:not(.btn)::after { width: 100%; }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.main-nav a:hover { color: var(--primary); }
.header-phone {
    font-weight: 600; color: var(--primary) !important;
    font-size: 0.875rem; white-space: nowrap;
    padding: 0.4rem 0.75rem;
    background: var(--primary-light); border-radius: 999px;
}
.header-phone:hover { background: #dce3f5; text-decoration: none; }
.main-nav .nav-cta {
    margin-left: 0.15rem;
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #ffffff !important;
}
.main-nav .nav-cta:hover { background: #c8161d; border-color: #c8161d; color: #ffffff !important; }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 2.5rem; height: 2.5rem; background: none; border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer; padding: 0.5rem;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%; background: var(--primary);
    border-radius: 2px; transition: transform var(--transition);
}

/* ── Trust strip ────────────────────────────────────── */
.trust-strip {
    background: var(--primary-dark);
    color: white; padding: 0.45rem 0; font-size: 0.75rem;
}
.trust-strip-inner {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 0.5rem 1.75rem;
}
.trust-strip-item {
    display: inline-flex; align-items: center; gap: 0.45rem; opacity: 0.92;
}
.trust-strip-item svg { width: 0.9rem; height: 0.9rem; color: var(--accent-gold); flex-shrink: 0; }
.trust-strip-item a { color: white; font-weight: 600; }
.trust-strip-item a:hover { color: var(--accent-gold); text-decoration: none; }
.trust-strip-divider { width: 1px; height: 0.85rem; background: rgba(255,255,255,0.2); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
    background-color: var(--primary-dark);
    background-image:
        linear-gradient(105deg, rgba(6,29,102,0.92) 0%, rgba(9,42,145,0.78) 42%, rgba(9,42,145,0.45) 100%),
        url('../img/hero-flag.svg');
    background-repeat: no-repeat, no-repeat;
    background-position: center, center right;
    background-size: cover, min(48vw, 620px);
    color: white;
    padding: clamp(1.5rem, 2.5vw, 2.25rem) 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red) 35%, var(--accent-gold) 35%, var(--accent-gold) 100%);
}
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 320px);
    gap: clamp(1.25rem, 2.5vw, 2rem); align-items: start;
    position: relative; z-index: 1;
}
.hero h1 {
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    line-height: 1.2; margin: 0 0 0.65rem;
    letter-spacing: -0.01em;
}
.hero .lead {
    font-size: clamp(0.9rem, 1.1vw, 0.975rem); line-height: 1.6;
    opacity: 0.9; margin: 0; max-width: 30rem;
}
.eyebrow {
    display: inline-block;
    text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 0.6875rem; font-weight: 700;
    color: var(--accent-gold); margin: 0 0 0.75rem;
    font-family: var(--font-body);
}
.hero-actions { display: flex; gap: 0.65rem; margin-top: 1rem; flex-wrap: wrap; }
.hero-actions .btn-lg { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.hero-trust-badges {
    display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
    list-style: none; padding: 0.85rem 0 0; margin: 0.85rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.75rem;
}
.hero-trust-badges li {
    display: inline-flex; align-items: center; gap: 0.4rem;
    opacity: 0.92;
}
.hero-trust-badges li svg { width: 0.85rem; height: 0.85rem; color: var(--accent-gold); flex-shrink: 0; }

/* ── Community banner ───────────────────────────────── */
.community-banner {
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.community-banner-inner {
    border-left: 4px solid var(--accent-red);
    padding-left: 1.25rem;
}
.community-banner-text {
    margin: 0; font-size: 0.975rem; line-height: 1.7;
    color: var(--text-light); max-width: 900px;
}
.community-banner-text strong { color: var(--primary); font-weight: 600; }

.lead-form-card {
    background: var(--white); color: var(--text);
    border-radius: var(--radius-lg); padding: 1.3rem 1.35rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent-gold);
    width: 100%; max-width: 360px; margin-left: auto;
    font-size: 0.9rem;
}
.lead-form-hero {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-top: 3px solid var(--accent-gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    color: white;
    max-width: 320px;
    padding: 0.95rem 1.05rem;
}
.lead-form-hero .stack-form { gap: 0.6rem; }
.lead-form-hero .form-group input,
.lead-form-hero .form-group textarea {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.35);
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
}
.lead-form-hero .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
}
.lead-form-card h2 {
    margin: 0 0 0.25rem; font-size: 1.05rem; color: var(--primary);
}
.lead-form-card.lead-form-hero h2 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.55rem;
}
.lead-form-card.lead-form-hero .form-group label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8125rem;
}
.lead-form-card .form-subtitle {
    margin: 0 0 0.9rem; font-size: 0.8rem; color: var(--muted);
}
.lead-form-card .form-group { gap: 0.25rem; }
.lead-form-card .form-group input,
.lead-form-card .form-group textarea { padding: 0.55rem 0.7rem; font-size: 0.875rem; }
.lead-form-card .form-group label { font-size: 0.85rem; }
.form-trust-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    background: rgba(9, 42, 145, 0.05);
    border: 1px solid rgba(9, 42, 145, 0.1);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-light);
    text-align: left;
}
.form-trust-note svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.form-trust-note span {
    flex: 1;
}
.form-trust-note-compact {
    margin-top: 0.25rem;
}

.cms-rich-text a,
.consent-option-text a,
.prose a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cms-rich-text a:hover,
.consent-option-text a:hover,
.prose a:hover {
    color: var(--primary);
}
.cms-rich-text ul,
.cms-rich-text ol {
    margin: 0.5rem 0 0.5rem 1.25rem;
    padding: 0;
}
.cms-rich-text p { margin: 0 0 0.75rem; }
.cms-rich-text p:last-child { margin-bottom: 0; }
.lead-form-compact { box-shadow: var(--shadow); }

/* ── Confirmation layout (success / email confirm pages) ─ */
.confirmation-body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.confirmation-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.confirmation-header-inner {
    display: flex;
    align-items: center;
    min-height: 80px;
    padding: 0.75rem 0;
}
.confirmation-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem 0 3rem;
}
.confirmation-main .section {
    width: 100%;
    padding: 0;
}
.confirmation-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    text-align: center;
}
.confirmation-footer p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

/* ── Page hero ──────────────────────────────────────── */
.page-hero {
    background: var(--bg-warm);
    padding: clamp(2.25rem, 4.5vw, 3rem) 0;
    border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 680px; }
.page-hero .eyebrow { color: var(--accent-red); margin-bottom: 0.45rem; }
.page-hero h1 {
    margin: 0 0 0.5rem; color: var(--primary-dark);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -0.01em;
}
.page-hero-subtitle {
    margin: 0; color: var(--text-light);
    font-size: 1.025rem; max-width: 560px; line-height: 1.68;
}

/* ── Sections ───────────────────────────────────────── */
.section { padding: clamp(2.75rem, 5vw, 4rem) 0; }
.section-muted { background: var(--bg); }
.section-compact { padding: 1.15rem 0; }
.section-warm { background: var(--bg-warm); }
.section-intro { padding-top: 1.75rem; padding-bottom: 1.75rem; }

.section-label {
    display: block;
    font-size: 0.6875rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--secondary); margin-bottom: 0.45rem;
}
.section-header { max-width: 640px; margin: 0 auto 2.25rem; text-align: center; }
.section-header-left { margin-left: 0; text-align: left; }
.section-header h2 {
    margin: 0 0 0.65rem; color: var(--primary-dark);
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    letter-spacing: -0.01em; line-height: 1.25;
}
.section-header p { margin: 0; color: var(--text-light); font-size: 1rem; line-height: 1.68; }
.section-cta-link { text-align: center; margin-top: 1.75rem; }
.content-narrow { max-width: 760px; margin: 0 auto; }

/* ── Intro panel ────────────────────────────────────── */
.intro-panel { max-width: 780px; margin: 0 auto; }
.intro-lead {
    margin: 0 0 1.35rem; font-size: 1.0625rem; line-height: 1.75;
    color: var(--text); text-align: center;
}
.intro-points {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
}
.intro-points li {
    display: flex; flex-direction: column; gap: 0.5rem;
    padding: 1.15rem; background: var(--white);
    border-radius: var(--radius); border: 1px solid var(--border);
    font-size: 0.875rem; color: var(--text-light); line-height: 1.55;
    border-top: 3px solid var(--primary);
}
.intro-points li:nth-child(2) { border-top-color: var(--accent-red); }
.intro-points li:nth-child(3) { border-top-color: var(--accent-gold); }
.intro-points li svg {
    width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0;
}

/* ── Trust bar ──────────────────────────────────────── */
.trust-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
}
.trust-bar-item {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 0.45rem; padding: 1.15rem 1rem;
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border);
}
.trust-bar-icon {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: grid; place-items: center;
}
.trust-bar-icon svg { width: 1.15rem; height: 1.15rem; }
.trust-bar-item strong { font-size: 0.875rem; color: var(--primary-dark); }
.trust-bar-item span { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

/* ── Challenge cards ──────────────────────────────────── */
.challenges-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1rem; align-items: stretch;
}
.challenge-card {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.35rem;
    box-shadow: var(--shadow); height: 100%;
}
.challenge-card-icon {
    width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
    background: var(--primary-light); color: var(--primary);
    display: grid; place-items: center; flex-shrink: 0;
    margin-top: 0.1rem;
}
.challenge-card-icon svg { width: 1.15rem; height: 1.15rem; }
.challenge-card-body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.challenge-card-body h3 {
    margin: 0; font-size: 0.975rem; color: var(--primary-dark);
    font-family: var(--font-body); font-weight: 600; line-height: 1.35;
}
.challenge-card-body p {
    margin: 0; color: var(--text-light); font-size: 0.875rem; line-height: 1.58;
}

/* ── Service cards ──────────────────────────────────── */
.service-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    padding: 0;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.service-card:not(.service-card-has-image) {
    padding: 1.5rem;
    border-top: 3px solid var(--primary);
}
.service-card:not(.service-card-has-image):nth-child(2) { border-top-color: var(--accent-red); }
.service-card:not(.service-card-has-image):nth-child(3) { border-top-color: var(--secondary); }
.service-card-image {
    aspect-ratio: 400 / 220;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.service-card-image img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.service-card-body {
    display: flex; flex-direction: column; flex: 1;
    padding: 1.25rem 1.35rem 1.35rem;
}
.service-card-icon {
    width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
    background: var(--primary-light); color: var(--primary);
    display: grid; place-items: center; margin-bottom: 0.85rem;
}
.service-card-icon svg { width: 1.35rem; height: 1.35rem; }
.service-card-body h3 {
    margin: 0 0 0.5rem; color: var(--primary-dark);
    font-size: 1.0625rem;
}
.service-card-body p { margin: 0 0 1rem; color: var(--text-light); font-size: 0.9rem; flex: 1; line-height: 1.6; }
.service-card-link {
    font-weight: 600; font-size: 0.875rem;
    color: var(--accent-red); display: inline-flex; align-items: center; gap: 0.3rem;
    margin-top: auto;
}
.service-card-link:hover { color: var(--primary-dark); text-decoration: none; }

.service-card-featured {
    grid-row: span 2;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}
.service-card-featured .service-card-icon {
    background: rgba(255,255,255,0.12); color: var(--accent-gold);
}
.service-card-featured .service-card-body h3 { color: white; font-size: 1.25rem; }
.service-card-featured .service-card-body p { color: rgba(255,255,255,0.82); }
.service-card-featured .service-card-link { color: var(--accent-gold); }
.service-card-featured .service-card-link:hover { color: white; }

.cards-grid { display: grid; gap: 1.25rem; }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ── Service showcase (detail pages) ───────────────── */
.service-showcase {
    display: flex;
    flex-direction: column;
}
.service-showcase-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.service-showcase-section:nth-child(odd) {
    background: var(--bg-service-alt);
}
.service-showcase-section:nth-child(even) {
    background: var(--bg-service);
}
.service-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}
.service-feature-reverse .service-feature-media { order: 2; }
.service-feature-reverse .service-feature-content { order: 1; }
.service-feature-media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--primary-light);
    box-shadow:
        0 1px 2px rgba(9, 42, 145, 0.04),
        0 8px 24px rgba(9, 42, 145, 0.08);
}
.service-feature-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(9, 42, 145, 0.06);
    pointer-events: none;
}
.service-feature-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.service-feature:hover .service-feature-media img {
    transform: scale(1.03);
}
.service-feature-monochrome .service-feature-media img {
    filter: grayscale(100%) contrast(1.05);
}
.service-feature-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 32rem;
}
.service-feature:not(.service-feature-reverse) .service-feature-content {
    padding-left: clamp(0rem, 2vw, 1rem);
}
.service-feature-reverse .service-feature-content {
    padding-right: clamp(0rem, 2vw, 1rem);
}
.service-feature-header {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.service-feature-num {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-red);
    background: rgba(237, 28, 36, 0.08);
    border: 1px solid rgba(237, 28, 36, 0.12);
}
.service-feature-content h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.875rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--primary-dark);
}
.service-feature-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.service-feature-lead {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text);
}
.service-feature-disclaimer {
    margin: 0;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    background: rgba(9, 42, 145, 0.04);
    border-left: 3px solid var(--accent-red);
}
.service-feature-disclaimer p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--muted);
}
.service-feature-actions {
    padding-top: 0.25rem;
}
.service-feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.35rem;
    font-size: 0.9375rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(237, 28, 36, 0.2);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-feature-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(237, 28, 36, 0.28);
}

/* ── Benefits ───────────────────────────────────────── */
.benefits-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.benefit-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.35rem; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.benefit-item-has-image {
    flex-direction: column; align-items: stretch;
    padding: 0; overflow: hidden; gap: 0;
    transition: box-shadow var(--transition), transform var(--transition);
}
.benefit-item-has-image:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.benefit-item-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--primary-light);
}
.benefit-item-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.benefit-item-has-image:hover .benefit-item-media img { transform: scale(1.04); }
.benefit-item-body {
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex; flex-direction: column; flex: 1;
}
.benefit-item-body h3 {
    margin: 0 0 0.4rem; font-size: 1rem;
    color: var(--primary-dark); font-family: var(--font-body); font-weight: 600;
}
.benefit-item-body p {
    margin: 0; color: var(--text-light); font-size: 0.875rem; line-height: 1.58; flex: 1;
}
.benefit-icon {
    width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
    background: var(--primary); color: white;
    display: grid; place-items: center; flex-shrink: 0;
}
.benefit-icon svg { width: 1rem; height: 1rem; }
.benefit-item:not(.benefit-item-has-image) h3 { margin: 0 0 0.25rem; font-size: 0.975rem; color: var(--primary-dark); font-family: var(--font-body); font-weight: 600; }
.benefit-item:not(.benefit-item-has-image) p { margin: 0; color: var(--text-light); font-size: 0.875rem; line-height: 1.55; }

/* ── Process timeline ───────────────────────────────── */
.process-timeline {
    display: grid; gap: 0; max-width: 720px; margin: 0 auto;
}
.process-timeline .process-step {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.5rem 0; border-bottom: 1px solid var(--border);
    background: none; box-shadow: none; border-radius: 0;
}
.process-timeline .process-step:last-child { border-bottom: 0; padding-bottom: 0; }
.process-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: var(--primary); color: white;
    font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
    font-family: var(--font-body);
}
.process-step-body h3 {
    margin: 0 0 0.35rem; font-size: 1rem; color: var(--primary-dark);
    font-family: var(--font-body); font-weight: 600;
}
.process-step-body p { margin: 0; color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

.process-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.process-steps .process-step {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
    display: block;
}
.process-steps .process-step-num { margin-bottom: 0.85rem; }
.process-steps .process-step h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--primary-dark); font-family: var(--font-body); font-weight: 600; }
.process-steps .process-step p { margin: 0; color: var(--text-light); font-size: 0.875rem; }

/* ── Journey / stat panel ─────────────────────────────── */
.split-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; }
.journey-content h2 {
    margin: 0 0 0.85rem; color: var(--primary-dark);
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}
.journey-content p { margin: 0 0 0.85rem; color: var(--text-light); font-size: 0.975rem; }

.highlight-panel {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.community-quote {
    margin: 0; padding: 1.65rem;
    background: var(--primary-light);
    border-left: 4px solid var(--accent-red); flex: 1;
}
.community-quote p {
    margin: 0 0 0.65rem; font-size: 1rem; line-height: 1.65;
    color: var(--primary-dark);
}
.community-quote cite { font-style: normal; font-size: 0.8rem; color: var(--muted); font-family: var(--font-body); }
.highlight-panel .stat-row {
    padding: 1.15rem; background: var(--bg); border-top: 1px solid var(--border);
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.stat-highlight {
    text-align: center; padding: 1rem 0.75rem;
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border);
}
.stat-highlight strong {
    display: block; font-size: 1.15rem; color: var(--primary);
    font-weight: 700;
}
.stat-highlight span { font-size: 0.78rem; color: var(--muted); display: block; margin-top: 0.2rem; }

/* ── Trust cards ────────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.trust-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}
.trust-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.trust-card-has-image { padding: 0; }
.trust-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--primary-light);
}
.trust-card-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.trust-card:hover .trust-card-media img { transform: scale(1.04); }
.trust-card-media .trust-number {
    position: absolute;
    top: 0.75rem; left: 0.75rem;
    margin: 0;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-red);
    box-shadow: 0 2px 8px rgba(9, 42, 145, 0.12);
}
.trust-card-body {
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex; flex-direction: column; flex: 1;
}
.trust-card-icon {
    width: 2.25rem; height: 2.25rem; border-radius: var(--radius);
    background: var(--primary-light); color: var(--primary);
    display: grid; place-items: center; margin-bottom: 0.85rem;
}
.trust-card-icon svg { width: 1.1rem; height: 1.1rem; }
.trust-number {
    display: block; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.12em; color: var(--accent-red);
    margin-bottom: 0.35rem; font-family: var(--font-body);
}
.trust-card-body h3 {
    margin: 0 0 0.45rem; font-size: 1.0125rem;
    color: var(--primary-dark); line-height: 1.35;
    font-family: var(--font-body); font-weight: 600;
}
.trust-card-body p { margin: 0; color: var(--text-light); font-size: 0.875rem; line-height: 1.58; flex: 1; }

/* ── Testimonials ───────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.testimonial-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.35rem 1.35rem 1.35rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    border-left: 4px solid var(--accent-gold);
}
.testimonial-stars { display: flex; gap: 0.1rem; margin-bottom: 0.65rem; }
.testimonial-stars svg { width: 0.8rem; height: 0.8rem; color: var(--accent-gold); }
.testimonial-quote {
    margin: 0 0 0.85rem; color: var(--text);
    font-size: 0.925rem; line-height: 1.65; flex: 1;
}
.testimonial-author {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.8125rem; margin-top: auto;
}
.testimonial-author strong { display: block; color: var(--primary-dark); font-size: 0.875rem; font-family: var(--font-body); font-style: normal; font-weight: 600; }
.testimonial-location { display: block; font-size: 0.75rem; color: var(--muted); font-style: normal; }
.testimonial-avatar {
    width: 1.85rem; height: 1.85rem; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: grid; place-items: center;
    font-weight: 700; font-size: 0.7rem; font-style: normal;
}

/* ── Reassurance band ───────────────────────────────── */
.reassurance-band {
    background: var(--primary-dark);
    color: white; padding: 2.25rem 0;
    border-top: 4px solid var(--accent-gold);
}
.reassurance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.reassurance-item { padding: 0 0.75rem; }
.reassurance-item svg {
    width: 1.35rem; height: 1.35rem;
    color: var(--accent-gold); margin-bottom: 0.6rem;
}
.reassurance-item strong { display: block; font-size: 0.925rem; margin-bottom: 0.3rem; font-family: var(--font-body); }
.reassurance-item span { font-size: 0.8125rem; opacity: 0.85; line-height: 1.55; }

/* ── CTA banner ─────────────────────────────────────── */
.cta-banner {
    background: var(--primary);
    color: white; padding: clamp(2.25rem, 4.5vw, 3rem) 0;
}
.cta-banner-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.cta-banner h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
.cta-banner p { margin: 0; opacity: 0.88; max-width: 480px; line-height: 1.65; font-size: 0.975rem; }
.cta-phone {
    display: block; margin-top: 0.65rem;
    font-size: 0.9375rem; font-weight: 500;
    font-family: var(--font-body);
}
.cta-phone a { color: var(--accent-gold); font-weight: 600; }
.cta-phone a:hover { color: white; text-decoration: none; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.65rem 1.25rem; border-radius: var(--radius);
    border: 1px solid transparent; font-weight: 600;
    font-size: 0.9rem; cursor: pointer;
    text-decoration: none; transition: background var(--transition), color var(--transition), border-color var(--transition);
    font-family: var(--font-body);
}
.btn-primary { background: var(--accent-red); color: white; }
.btn-primary:hover { background: #c41920; color: white; text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.btn-accent { background: var(--accent-gold); color: var(--primary-dark); }
.btn-accent:hover { background: #e0b814; color: var(--primary-dark); text-decoration: none; }
.btn-outline {
    background: transparent; border-color: rgba(255,255,255,0.45); color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); color: white; text-decoration: none; }
.dashboard-main .btn-outline,
.dashboard-body .btn-outline {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
}
.dashboard-main .btn-outline:hover,
.dashboard-body .btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    text-decoration: none;
}
.btn-danger { background: #dc2626; color: white; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.8rem 1.4rem; }
.btn-block { width: 100%; }

/* ── Forms ──────────────────────────────────────────── */
.stack-form { display: grid; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; }
.form-group { display: grid; gap: 0.3rem; }
.form-group label, .checkbox-label { font-weight: 500; font-size: 0.875rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--border);
    border-radius: var(--radius); font: inherit; background: white;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(9, 42, 145, 0.07);
}
.checkbox-label { display: flex; gap: 0.6rem; align-items: flex-start; }
.application-form fieldset {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.15rem; margin: 0 0 1.25rem;
}
.application-form legend {
    font-weight: 700; color: var(--primary); padding: 0 0.45rem;
    font-size: 0.9rem; font-family: var(--font-display);
}
.application-form fieldset:last-of-type { margin-bottom: 0; }
.application-form fieldset.consent-fieldset {
    border: none;
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}
.application-form fieldset.consent-fieldset legend {
    padding: 0;
    margin-bottom: 0.75rem;
}
.field-label { font-weight: 500; font-size: 0.875rem; }
.field-hint { color: var(--muted); font-size: 0.78rem; }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem 1.15rem; }
.radio-option { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; font-size: 0.875rem; }
.radio-option input { width: auto; }
.checkbox-label input[type="checkbox"] { width: auto; margin-top: 0.15rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ── Consent options (apply form) ───────────────────── */
.consent-options {
    display: grid;
    gap: 0.75rem;
}
.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.consent-option:hover {
    border-color: var(--secondary);
    background: var(--bg);
}
.consent-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px rgba(9, 42, 145, 0.08);
}
.consent-option input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0.1rem 0 0;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}
.consent-option-text {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
}
.consent-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(9, 42, 145, 0.25);
    transition: color var(--transition), border-color var(--transition);
}
.consent-link:hover {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
    text-decoration: none;
}
.required-mark {
    color: var(--accent-red);
    font-weight: 700;
}

/* ── File upload ────────────────────────────────────── */
.file-upload { display: grid; gap: 0.75rem; }
.file-upload-label {
    font-weight: 600; font-size: 0.875rem; color: var(--primary-dark);
}
.file-upload-types {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.file-upload-types span {
    font-size: 0.75rem; font-weight: 500; color: var(--secondary);
    background: var(--primary-light); padding: 0.3rem 0.65rem;
    border-radius: 999px;
}
.file-upload-zone {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 1.75rem 1.25rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.file-upload-zone:hover,
.file-upload-zone:focus-visible {
    border-color: var(--secondary);
    background: var(--primary-light);
    outline: none;
}
.file-upload-zone.is-dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.file-upload-input {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.file-upload-icon {
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    background: white; border: 1px solid var(--border);
    color: var(--primary); display: grid; place-items: center;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
}
.file-upload-icon svg { width: 1.25rem; height: 1.25rem; }
.file-upload-title {
    margin: 0 0 0.35rem; font-size: 0.925rem; color: var(--text);
}
.file-upload-title span { color: var(--secondary); font-weight: 600; }
.file-upload-meta {
    margin: 0; font-size: 0.78rem; color: var(--muted);
}
.file-upload-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 0.45rem;
}
.file-upload-list:not([hidden]) { margin-top: 0.15rem; }
.file-upload-item {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 0.8125rem;
}
.file-upload-item-icon {
    width: 1.75rem; height: 1.75rem; border-radius: 6px;
    background: var(--primary-light); color: var(--primary);
    display: grid; place-items: center; flex-shrink: 0;
}
.file-upload-item-icon svg { width: 0.9rem; height: 0.9rem; }
.file-upload-item-name {
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text); font-weight: 500;
}
.file-upload-item-size { color: var(--muted); font-size: 0.75rem; flex-shrink: 0; }
.file-upload-item-remove {
    background: none; border: none; padding: 0.25rem;
    color: var(--muted); cursor: pointer; line-height: 0;
    border-radius: 4px; flex-shrink: 0;
}
.file-upload-item-remove:hover { color: var(--accent-red); background: #fef2f2; }
.file-upload-list:not([hidden]) + .form-trust-note-compact,
.file-upload-list[hidden] + .form-trust-note-compact {
    margin-top: 0.5rem;
}

/* ── Alerts ─────────────────────────────────────────── */
.alert { padding: 0.9rem 1.15rem; border-radius: var(--radius); margin: 1rem auto; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--primary-dark); color: #b8c4de;
    border-top: 4px solid var(--accent-red);
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.25rem; padding: 2.75rem 0;
}
.footer-brand p {
    margin: 0.85rem 0 0; font-size: 0.875rem;
    line-height: 1.68; max-width: 300px; color: #8fa0c4;
}
.site-footer h4 {
    color: white; margin: 0 0 0.85rem;
    font-size: 0.8125rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    font-family: var(--font-body);
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.45rem; font-size: 0.875rem; }
.site-footer a { color: #c8d4ea; text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 0.9rem 0 1.25rem; font-size: 0.8rem; color: #7a8cb0;
}
.footer-bottom p { margin: 0; }
.footer-trust {
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.15rem;
    margin-top: 1rem; font-size: 0.78rem; color: #7a8cb0;
}
.footer-trust span { display: inline-flex; align-items: center; gap: 0.3rem; }

/* ── Contact & misc ─────────────────────────────────── */
.contact-info-card, .form-panel, .card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow);
}
.contact-info-card h3 { margin: 0 0 0.3rem; color: var(--primary-dark); font-family: var(--font-display); }
.contact-info-card .contact-intro { margin: 0 0 1.25rem; color: var(--text-light); font-size: 0.925rem; }
.contact-details { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.contact-details li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.contact-details li:last-child { border-bottom: 0; }
.contact-details strong {
    display: block; color: var(--muted); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.2rem;
}
.contact-hours {
    background: var(--bg); border-radius: var(--radius);
    padding: 0.9rem 1rem; margin-bottom: 1.25rem;
    font-size: 0.875rem; color: var(--text-light);
}
.contact-hours strong {
    color: var(--primary); display: block; margin-bottom: 0.3rem;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.referral-notice {
    background: var(--primary-light); border: 1px solid rgba(9, 42, 145, 0.15);
    color: var(--primary); border-radius: var(--radius);
    padding: 0.8rem 1rem; margin-bottom: 1.15rem; font-size: 0.925rem;
}
.prose { line-height: 1.72; color: var(--text); }
.prose p { margin: 0 0 0.9rem; }
.prose h3 { color: var(--primary-dark); margin: 1.35rem 0 0.65rem; font-family: var(--font-display); }
.legal-prose { font-size: 0.925rem; }
.text-muted { color: var(--muted); }
.disclaimer-note {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.55;
    padding: 0.85rem 1.15rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius);
    margin-top: 1.25rem;
}
.disclaimer-note--centered {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.disclaimer-note .cms-rich-text p,
.disclaimer-note.cms-rich-text p {
    margin: 0;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    padding: 0.6rem 0 0.6rem 1.65rem; position: relative;
    color: var(--text-light); font-size: 0.925rem;
}
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 0.9rem;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-red);
}

/* ── Success / Auth ─────────────────────────────────── */
.success-icon {
    width: 3.75rem; height: 3.75rem; border-radius: 50%; margin: 0 auto 1.15rem;
    background: #ecfdf5; color: #065f46; font-size: 1.6rem; font-weight: 700;
    display: grid; place-items: center;
}
.success-card h1 { color: var(--primary-dark); margin: 0 0 0.65rem; font-family: var(--font-display); }
.auth-section { min-height: 70vh; display: grid; place-items: center; padding: 2rem; background: var(--bg); }
.auth-card { width: min(420px, 100%); background: white; padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-footer-link { margin: 1rem 0 0; text-align: center; font-size: 0.925rem; }
.auth-footer-link a { color: var(--primary); text-decoration: none; font-weight: 500; }
.auth-footer-link a:hover { text-decoration: underline; }
.success-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow); }
.reference-no { font-size: 1.0625rem; }
.text-center { text-align: center; }
.mt-lg { margin-top: 1.5rem; }
.muted { opacity: 0.6; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ── Dashboard (admin/staff) ────────────────────────── */
.dashboard-body { background: var(--bg); }
.dashboard-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--primary-dark); color: white; padding: 1.5rem 1rem; display: flex; flex-direction: column; }
.sidebar-staff { background: #0a3d5c; }
.sidebar-brand { font-weight: 700; font-size: 1.1rem; margin-bottom: 2rem; }
.sidebar-brand span { display: block; font-size: 0.75rem; opacity: 0.7; font-weight: 500; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; align-content: flex-start; }
.sidebar-nav a { color: #c8d0e8; padding: 0.65rem 0.85rem; border-radius: 8px; text-decoration: none; flex: 0 0 auto; }
.sidebar-nav a.active, .sidebar-nav a:hover { background: rgba(255,255,255,0.08); color: white; }
.sidebar-logout { margin-top: auto; padding-top: 1rem; }
.dashboard-main { padding: 1.5rem; }
.dashboard-topbar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.dashboard-topbar h1 { margin: 0; font-size: 1.5rem; color: var(--primary); flex: 1; min-width: 0; }
.dashboard-nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 2.5rem; height: 2.5rem; background: white; border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer; padding: 0.5rem; flex-shrink: 0;
}
.dashboard-nav-toggle span {
    display: block; height: 2px; width: 100%; background: var(--primary);
    border-radius: 2px; transition: transform var(--transition), opacity var(--transition);
}
.dashboard-overlay {
    display: none; position: fixed; inset: 0; background: rgba(9, 42, 145, 0.45);
    z-index: 44;
}
body.dashboard-nav-open .dashboard-overlay { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.stat-card span { display: block; color: var(--muted); font-size: 0.875rem; }
.stat-card strong { font-size: 2rem; color: var(--primary); }
.stat-green strong { color: #059669; }
.stat-red strong { color: #dc2626; }
.panel { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.panel.narrow { max-width: 640px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.filter-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-bar input, .filter-bar select { padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.925rem; }
.data-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table tr:hover { background: var(--bg); }
.actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.inline { display: inline; }
.status-badge { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; border: 1px solid; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.5rem; }
.detail-list { display: grid; grid-template-columns: 160px 1fr; gap: 0.65rem 1rem; margin: 0; }
.detail-list dt { color: var(--muted); font-weight: 600; }
.detail-list dd { margin: 0; }
.detail-subhead { margin: 1.5rem 0 0.5rem; font-size: 0.95rem; color: var(--primary); border-top: 1px solid var(--border); padding-top: 1rem; }
.document-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.timeline-meta { display: block; color: var(--muted); font-size: 0.875rem; margin-top: 0.35rem; }
.timeline-status { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.timeline-arrow { color: var(--muted); font-weight: 600; }
.timeline-empty { color: var(--muted); font-style: italic; }
.referral-banner { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.report-filters { display: grid; gap: 1rem; }
.period-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.period-tab {
    display: inline-flex; align-items: center; padding: 0.55rem 1rem; border-radius: 6px;
    border: 1px solid var(--border); background: white; color: var(--text);
    font-weight: 600; font-size: 0.875rem; cursor: pointer; text-decoration: none;
}
.period-tab.active, .period-tab:hover { background: var(--primary); color: white; border-color: var(--primary); }
.custom-range { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.custom-range.hidden { display: none; }
.custom-range label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.875rem; }
.report-period-label { color: var(--muted); margin: 0.5rem 0 0; font-size: 0.925rem; }
.block-editor { margin-bottom: 1rem; }
.block-editor textarea { width: 100%; min-height: 100px; }
.pagination { display: flex; gap: 0.35rem; list-style: none; padding: 1rem 0 0; margin: 0; flex-wrap: wrap; }
.pagination li span, .pagination li a {
    display: inline-block; padding: 0.45rem 0.75rem; border: 1px solid var(--border);
    border-radius: 8px; text-decoration: none; color: var(--text); background: white;
}
.pagination li.active span { background: var(--primary); color: white; border-color: var(--primary); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-grid, .trust-grid, .challenges-grid, .benefits-grid, .testimonials-grid,
    .cards-grid.three, .split-content, .footer-grid, .detail-grid,
    .contact-grid, .stats-grid, .dashboard-shell, .trust-bar, .stat-row,
    .process-steps, .reassurance-grid, .intro-points { grid-template-columns: 1fr; }
    .hero-grid { gap: 1.75rem; }
    .lead-form-hero { max-width: none; margin-left: 0; }
    .cta-banner-inner { flex-direction: column; align-items: flex-start; }
    .dashboard-shell { display: block; }
    .dashboard-nav-toggle { display: flex; }
    .sidebar {
        position: fixed; top: 0; left: 0; right: 0; z-index: 45;
        max-height: min(78vh, 520px); overflow-y: auto;
        transform: translateY(-100%); transition: transform 0.25s ease;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    }
    body.dashboard-nav-open .sidebar { transform: translateY(0); }
    body.dashboard-nav-open .dashboard-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.dashboard-nav-open .dashboard-nav-toggle span:nth-child(2) { opacity: 0; }
    body.dashboard-nav-open .dashboard-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .header-phone { display: none; }
    .nav-toggle { display: flex; }
    .main-nav {
        display: none; flex-direction: column; align-items: stretch;
        position: absolute; top: 68px; left: 0; right: 0;
        background: white; padding: 1rem 1.25rem 1.25rem;
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow); gap: 0.25rem;
    }
    .main-nav a { padding: 0.6rem 0; }
    .main-nav .nav-cta { margin: 0.5rem 0 0; text-align: center; }
    body.nav-open .main-nav { display: flex; }
    body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .trust-strip-divider { display: none; }
    .service-feature,
    .service-feature-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-feature-reverse .service-feature-media,
    .service-feature-reverse .service-feature-content { order: unset; }
    .service-feature-content,
    .service-feature:not(.service-feature-reverse) .service-feature-content,
    .service-feature-reverse .service-feature-content {
        padding: 0;
        max-width: none;
    }
    .service-showcase-section { padding: 2.5rem 0; }
    .service-feature-media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
    .container { width: min(1120px, calc(100% - 1.25rem)); }
    .hero-actions .btn { width: 100%; }
    .lead-form-card { padding: 1.25rem; }
    .logo-img { height: 46px; max-width: 190px; }
    .challenges-grid { grid-template-columns: 1fr; }
}

/* Desktop at 100% zoom — keep hero within a comfortable viewport */
@media (min-width: 901px) {
    .hero-trust-badges { display: none; }
    .section-compact .trust-bar-item { padding: 0.8rem 0.65rem; }
    .section-compact .trust-bar-icon { width: 2.1rem; height: 2.1rem; }
}

@media (min-width: 901px) and (max-height: 860px) {
    .hero { padding: 1.1rem 0; }
    .hero h1 { font-size: 1.7rem; margin-bottom: 0.5rem; }
    .hero .lead { font-size: 0.875rem; line-height: 1.55; }
    .hero-actions { margin-top: 0.75rem; }
    .hero-actions .btn-lg { padding: 0.55rem 1rem; font-size: 0.8125rem; }
    .lead-form-hero { padding: 0.8rem 0.95rem; }
    .lead-form-hero .stack-form { gap: 0.5rem; }
    .lead-form-hero .form-group input,
    .lead-form-hero .form-group textarea { padding: 0.42rem 0.55rem; }
    .community-banner { padding: 0.85rem 0; }
}
