/* One Insurance Brokers — Main Stylesheet */

:root {
    --color-primary: #0e2d5a;
    --color-primary-dark: #091830;
    --color-primary-light: #0a73bb;
    --color-accent: #00b3e8;
    --color-accent-light: #33c5ee;
    --color-bg: #e8eef4;
    --color-bg-alt: #dfe8f1;
    --color-bg-card: #f3f7fb;
    --color-bg-elevated: #f8fafc;
    --color-bg-dark: #091830;
    --color-text: #0e2040;
    --color-text-muted: #456882;
    --color-text-on-dark: #ffffff;
    --color-border: #c2d3e2;
    --color-success: #059669;
    --color-error: #dc2626;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow: 0 4px 24px rgba(9, 24, 48, 0.1);
    --shadow-lg: 0 12px 48px rgba(9, 24, 48, 0.16);
    --transition: 0.25s ease;
    --container: 1200px;
    --header-h: 112px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.overlay-open {
    overflow: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 1rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    line-height: 1.2;
    color: var(--color-primary-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

.section-title {
    margin-bottom: 1rem;
}

.section-title.accent {
    color: var(--color-accent);
}

.section-lead {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.section-dark .section-lead,
.section-dark .section-title {
    color: var(--color-text-on-dark);
}

.section-dark .section-title.accent {
    color: var(--color-accent-light);
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.eyebrow-dark {
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
}

.text-accent {
    color: var(--color-accent);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--color-accent);
}

.section-dark .link-arrow {
    color: var(--color-accent-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-pill {
    border-radius: var(--radius-pill);
}

.btn-white {
    background: #fff;
    color: var(--color-accent);
    border-color: #fff;
}

.btn-white:hover {
    background: #f0f6fa;
    color: var(--color-primary);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    color: var(--color-accent);
    margin-left: -4px;
}

.btn-arrow svg {
    width: 20px;
    height: 20px;
}

/* Header — always fixed; solid bar after hero (see main.js) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    background: rgba(9, 24, 48, 0.97);
    box-shadow: var(--shadow);
}

.site-header.is-scrolled::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px);
    pointer-events: none;
    z-index: -1;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.site-header .logo-img {
    height: 92px;
    max-height: calc(var(--header-h) - 20px);
    width: auto;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle span:nth-child(1) { width: 28px; }
.nav-toggle span:nth-child(2) { width: 22px; margin-left: auto; }
.nav-toggle span:nth-child(3) { width: 28px; }

/* Slide menu — outside header so backdrop-filter does not clip it */
.site-menu {
    position: fixed;
    inset: 0;
    z-index: 250;
    pointer-events: none;
}

.site-menu:not([hidden]) {
    pointer-events: auto;
}

.site-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 24, 48, 0.7);
    opacity: 0;
    transition: opacity var(--transition);
}

.site-menu:not([hidden]) .site-menu-backdrop {
    opacity: 1;
}

.site-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--color-primary-dark);
    padding: 2rem;
    padding-top: calc(var(--header-h) + 0.5rem);
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 32px rgba(9, 24, 48, 0.35);
}

.site-menu:not([hidden]) .site-menu-panel {
    transform: translateX(0);
}

.site-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.site-menu ul {
    list-style: none;
    margin-top: 0;
}

.site-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-menu a {
    display: block;
    padding: 1rem 0;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 500;
}

.site-menu a:hover {
    color: var(--color-accent-light);
}

/* Hero — diagonal country collage (skewed strips) */
main {
    padding-top: var(--header-h);
}

.hero {
    position: relative;
    margin-top: calc(-1 * var(--header-h));
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-collage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    width: calc(100% + 4vw);
    margin-left: -2vw;
    background: var(--color-primary-dark);
}

.hero-strip {
    flex: 1;
    position: relative;
    overflow: hidden;
    transform: skewX(-7deg) translateY(-108%);
    opacity: 0;
    margin-right: -1.5vw;
}

.hero-collage.is-revealed .hero-strip {
    animation: hero-strip-drop 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--hero-drop-delay, 0s);
}

@keyframes hero-strip-drop {
    from {
        transform: skewX(-7deg) translateY(-108%);
        opacity: 0;
    }
    to {
        transform: skewX(-7deg) translateY(0);
        opacity: 1;
    }
}

.hero-strip:last-child {
    margin-right: 0;
}

.hero-strip-bg {
    position: absolute;
    left: -30%;
    width: 160%;
    height: 130%;
    top: -15%;
    transform: skewX(7deg) translateY(-6%) scale(1.1);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    will-change: transform;
    opacity: 0;
}

.hero-collage.is-revealed .hero-strip-bg {
    opacity: 1;
    transition: opacity 0.35s ease;
    transition-delay: var(--hero-drop-delay, 0s);
    animation: hero-pan 22s ease-in-out infinite alternate;
    animation-delay: calc(var(--hero-drop-delay, 0s) + 0.9s + var(--hero-pan-delay, 0s));
}

@keyframes hero-pan {
    0% {
        transform: skewX(7deg) translateY(-8%) scale(1.1);
    }
    100% {
        transform: skewX(7deg) translateY(8%) scale(1.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-strip {
        transform: skewX(-7deg);
        opacity: 1;
    }

    .hero-collage.is-revealed .hero-strip {
        animation: none;
    }

    .hero-strip-bg {
        opacity: 1;
        height: 100%;
        top: 0;
        transform: skewX(7deg);
        animation: none;
    }

    .hero-collage.is-revealed .hero-strip-bg {
        animation: none;
    }
}

.hero-panel-label {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%) skewX(7deg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(9, 24, 48, 0.65);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(9, 24, 48, 0.55) 0%,
        rgba(9, 24, 48, 0.35) 40%,
        rgba(9, 24, 48, 0.75) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-h) + 2rem);
}

.hero-content h1 {
    color: #fff;
    max-width: 640px;
    margin-bottom: 2rem;
}

.hero-accent {
    display: block;
    color: var(--color-accent-light);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

/* Founder */
.section-founder .eyebrow {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.founder-layout {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    margin-top: 2rem;
}

.founder-photo {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-bg-card);
}

.founder-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.founder-name {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--color-primary);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.founder-role {
    display: block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.founder-bio p {
    color: var(--color-text);
    line-height: 1.7;
}

.founder-bio p + p {
    margin-top: 1rem;
}

.founder-email {
    display: inline-block;
    margin-top: 1.5rem;
}

.founder-layout-overlay {
    margin-top: 1rem;
}

.founder-layout-overlay .founder-photo {
    max-width: 220px;
}

.founder-layout-overlay .founder-name {
    font-size: 1.35rem;
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
    scroll-margin-top: var(--header-h);
}

.section-dark {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-text-on-dark);
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-intro .section-lead {
    color: rgba(255, 255, 255, 0.85);
}

.brand-arcs {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    pointer-events: none;
    opacity: 0.8;
}

/* Why choose us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

.why-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-dark .why-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-text-on-dark);
}

.section-dark .why-card h3 {
    color: #fff;
}

.section-dark .why-card p {
    color: rgba(255, 255, 255, 0.75);
}

.why-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.why-icon svg {
    width: 100%;
    height: 100%;
}

.why-card h3 {
    margin-bottom: 0.5rem;
}

.why-card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    flex: 1;
}

.why-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.why-card-compact {
    background: var(--color-bg-alt);
    border: none;
    padding: 1.5rem;
}

.why-card-compact h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* Services tabs */
.services-tabs {
    margin-top: 2.5rem;
}

.services-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1rem;
}

.services-tab-btn {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.services-tab-btn:hover,
.services-tab-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.services-tab-panel {
    display: none;
}

.services-tab-panel.active {
    display: block;
}

.services-tab-summary {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 680px;
}

.services-tab-heading {
    color: var(--color-accent-light);
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.feature-list-services {
    margin-bottom: 1.5rem;
}

.services-closing {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    max-width: 720px;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-detail-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.service-detail-card h4 {
    color: var(--color-accent-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.service-detail-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.55;
}

.approach-grid-home {
    margin-top: 2rem;
}

.approach-card-home {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.approach-card-home h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.approach-card-home p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.section-planning-centered .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-planning-centered .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.section-planning-centered .planning-list {
    text-align: left;
    width: min(100%, 720px);
}

.section-planning-centered .planning-note {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.planning-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
    max-width: 720px;
}

.planning-list li {
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.planning-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.planning-note {
    margin-top: 1.75rem;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    font-style: italic;
}

.container-narrow {
    max-width: 760px;
}

.service-subsection {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.service-subsection h3 {
    color: var(--color-accent-light);
    margin-bottom: 0.75rem;
}

.service-subsection p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.feature-list li {
    padding-left: 1.25rem;
    position: relative;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.service-subsection .feature-list li {
    color: rgba(255, 255, 255, 0.9);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.services-tab-panel .btn-primary {
    margin-top: 0.5rem;
}

/* CTA window — viewport-fixed backdrop clipped by the card (see main.js) */
.section-cta-window {
    overflow: visible;
    padding-bottom: 7rem;
}

.cta-window {
    position: relative;
    isolation: isolate;
    clip-path: inset(0 round var(--radius-lg));
    border-radius: var(--radius-lg);
    overflow: clip;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 28px 70px rgba(14, 45, 90, 0.28),
        0 0 0 1px rgba(0, 179, 232, 0.12);
    color: var(--color-text-on-dark);
    min-height: clamp(280px, 34vw, 380px);
    transform: none;
}

.cta-window .window-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #0a4a7a 100%);
}

.cta-window .window-backdrop-logo {
    position: absolute;
    right: clamp(1.25rem, 4vw, 2.75rem);
    top: 50%;
    translate: 0 -50%;
    z-index: 2;
    width: auto;
    max-width: min(200px, 34%);
    max-height: 48px;
    height: auto;
    object-fit: contain;
    object-position: center right;
    opacity: 0.38;
    pointer-events: none;
    filter: drop-shadow(0 0 32px rgba(0, 179, 232, 0.5));
}

.cta-window .window-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(6, 20, 40, 0.94) 0%, rgba(6, 20, 40, 0.68) 40%, rgba(6, 20, 40, 0.2) 68%, transparent 100%),
        radial-gradient(ellipse 45% 80% at 88% 50%, rgba(0, 179, 232, 0.55), transparent 60%),
        radial-gradient(circle at 88% 50%, transparent 18%, rgba(0, 179, 232, 0.5) 19%, transparent 20%),
        radial-gradient(circle at 88% 50%, transparent 30%, rgba(0, 179, 232, 0.36) 31%, transparent 32%),
        radial-gradient(circle at 88% 50%, transparent 42%, rgba(0, 179, 232, 0.24) 43%, transparent 44%),
        radial-gradient(circle at 88% 50%, transparent 54%, rgba(0, 179, 232, 0.14) 55%, transparent 56%),
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size:
        auto,
        auto,
        auto,
        auto,
        auto,
        auto,
        40px 40px,
        40px 40px;
}

.cta-window-inner {
    position: relative;
    z-index: 3;
    padding: clamp(2.5rem, 5.5vw, 4.5rem);
    display: grid;
    gap: 1.25rem;
    justify-items: start;
    align-content: center;
    min-height: inherit;
    max-width: 640px;
}

.cta-window-title {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    color: #fff;
    max-width: 16ch;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.cta-window-title::after {
    display: none;
}

.cta-window-lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.7vw, 1.125rem);
    max-width: 36rem;
    margin: 0;
    line-height: 1.65;
}

.cta-window .btn {
    margin-top: 0.25rem;
}

@media (min-width: 900px) {
    .cta-window-inner {
        padding-right: 44%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-window .window-backdrop {
        position: absolute;
        inset: 0;
    }
}

/* Contact block */
.section-contact {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding-top: 5.5rem;
}

.section-contact .section-title,
.section-contact .section-lead {
    color: #fff;
}

.section-contact .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0;
    text-align: left;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.contact-card-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 0.5rem;
}

.contact-card a {
    display: block;
    color: #fff;
    margin-top: 0.25rem;
}

.contact-card a:hover {
    color: var(--color-accent-light);
}

.contact-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

/* Footer */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand .logo-img {
    height: 48px;
    width: auto;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
    max-width: 280px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav a {
    display: block;
    padding: 0.35rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover {
    color: var(--color-accent-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
}

.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--color-accent-light);
}

/* Overlays */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
}

.overlay.is-open {
    pointer-events: auto;
    opacity: 1;
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 24, 48, 0.85);
}

.overlay-panel {
    position: relative;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    max-height: 90vh;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    transform: translateY(20px);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
}

.overlay.is-open .overlay-panel {
    transform: translateY(0);
}

.overlay-panel-scroll {
    max-width: 960px;
    overflow-y: auto;
}

.overlay-panel-form {
    max-width: 520px;
    overflow-y: auto;
}

.overlay-panel-success {
    max-width: 440px;
    text-align: center;
    padding: 3rem 2rem;
}

.overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg-card);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-hero-banner {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
}

.overlay-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.overlay-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(9, 24, 48, 0.85) 100%);
}

.overlay-hero-bg-about {
    background-position: center 35%;
}

.overlay-hero-content {
    position: relative;
    padding: 2rem;
    z-index: 1;
    display: grid;
    gap: 0.85rem;
    justify-items: start;
}

.overlay-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
    padding: 0.4rem 0.8rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.overlay-pdf-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.38);
}

.overlay-pdf-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.overlay-pdf-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.overlay-pdf-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.about-pdf-render-host {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 920px;
    pointer-events: none;
    opacity: 0;
}

.overlay-hero-content h2 {
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    max-width: 520px;
}

.overlay-body {
    padding: 2.5rem 1.5rem 2rem;
}

.overlay-footer {
    padding: 2.5rem 0 3rem;
    margin-top: 0;
}

.overlay-footer .footer-inner {
    padding-bottom: 0;
}

.overlay-section {
    margin-bottom: 2.5rem;
}

.overlay-section h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.overlay-section p {
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.overlay-form-inner {
    padding: 2.5rem 2rem;
}

.overlay-form-inner h2 {
    margin-bottom: 0.5rem;
}

.overlay-form-inner > p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Approach / values / team in overlay */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.approach-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.approach-step {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.value-card {
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
}

.value-card h4 {
    margin-bottom: 0.35rem;
    color: var(--color-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-role {
    display: block;
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-card);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.alert-success {
    background: #ecfdf5;
    color: var(--color-success);
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: var(--color-error);
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-collage {
        flex-wrap: wrap;
        width: 100%;
        margin-left: 0;
    }

    .hero-strip {
        flex: 1 1 50%;
        min-height: 28vh;
        transform: translateY(-108%);
        margin-right: 0;
        border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    }

    .hero-collage.is-revealed .hero-strip {
        animation: hero-strip-drop-mobile 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    @keyframes hero-strip-drop-mobile {
        from {
            transform: translateY(-108%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .hero-strip-bg {
        height: 100%;
        top: 0;
    }

    .hero-collage.is-revealed .hero-strip-bg {
        animation: hero-pan-mobile 20s ease-in-out infinite alternate;
        animation-delay: calc(var(--hero-drop-delay, 0s) + 0.9s + var(--hero-pan-delay, 0s));
    }

    @keyframes hero-pan-mobile {
        0% {
            transform: translateY(-6%) scale(1.08);
        }
        100% {
            transform: translateY(6%) scale(1.12);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .hero-strip {
            transform: none;
            opacity: 1;
        }

        .hero-strip-bg {
            animation: none;
            transform: none;
        }
    }

    .hero-panel-label {
        transform: translateX(-50%);
        opacity: 1;
        font-size: 0.6875rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .services-tab-list {
        flex-direction: column;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .founder-layout,
    .founder-layout-overlay {
        grid-template-columns: 1fr;
    }

    .founder-photo {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-strip {
        flex: 1 1 100%;
        min-height: 22vh;
    }

    .btn-group {
        flex-wrap: wrap;
    }
}

/* Scroll reveal — sections fade up + cyan arc underline on titles */
@keyframes revealFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arcDraw {
    from {
        width: 0;
        opacity: 0.4;
    }
    to {
        width: 4.5rem;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    main .section:not(.hero):not(.is-in-view) .section-title,
    main .section:not(.hero):not(.is-in-view) .section-lead,
    main .section:not(.hero):not(.is-in-view) .eyebrow,
    main .section:not(.hero):not(.is-in-view) .link-arrow,
    main .section:not(.hero):not(.is-in-view) .services-tabs,
    main .section:not(.hero):not(.is-in-view) .services-closing,
    main .section:not(.hero):not(.is-in-view) .planning-note,
    main .section:not(.hero):not(.is-in-view) .founder-layout,
    main .section:not(.hero):not(.is-in-view) .why-grid .why-card,
    main .section:not(.hero):not(.is-in-view) .approach-grid-home .approach-card-home,
    main .section:not(.hero):not(.is-in-view) .service-detail-grid .service-detail-card,
    main .section:not(.hero):not(.is-in-view) .planning-list li,
    main .section:not(.hero):not(.is-in-view) .cta-window-title,
    main .section:not(.hero):not(.is-in-view) .cta-window-lead,
    main .section:not(.hero):not(.is-in-view) .cta-window .btn,
    main .section:not(.hero):not(.is-in-view) .contact-card,
    main .section:not(.hero):not(.is-in-view) .section-contact .btn-pill {
        opacity: 0;
        transform: translateY(28px);
    }

    main .section:not(.hero) .section-title::after {
        content: '';
        display: block;
        width: 0;
        height: 3px;
        margin-top: 0.875rem;
        background: linear-gradient(90deg, var(--color-accent), rgba(0, 179, 232, 0));
        border-radius: 999px;
    }

    .section-contact .section-title::after,
    .section-planning-centered .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    main .section.is-in-view .section-title {
        animation: revealFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    main .section.is-in-view .section-title::after {
        animation: arcDraw 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
    }

    main .section.is-in-view .eyebrow {
        animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
    }

    main .section.is-in-view .section-lead {
        animation: revealFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
    }

    main .section.is-in-view .link-arrow {
        animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
    }

    main .section.is-in-view .services-tabs {
        animation: revealFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
    }

    main .section.is-in-view .services-closing {
        animation: revealFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
    }

    main .section.is-in-view .planning-note {
        animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
    }

    main .section.is-in-view .founder-layout {
        animation: revealFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
    }

    main .section.is-in-view .why-grid .why-card:nth-child(1) { animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards; }
    main .section.is-in-view .why-grid .why-card:nth-child(2) { animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.26s forwards; }
    main .section.is-in-view .why-grid .why-card:nth-child(3) { animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards; }

    main .section.is-in-view .approach-grid-home .approach-card-home:nth-child(1) { animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards; }
    main .section.is-in-view .approach-grid-home .approach-card-home:nth-child(2) { animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.26s forwards; }
    main .section.is-in-view .approach-grid-home .approach-card-home:nth-child(3) { animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards; }

    main .section.is-in-view .service-detail-grid .service-detail-card {
        animation: revealFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    main .section.is-in-view .service-detail-grid .service-detail-card:nth-child(1) { animation-delay: 0.1s; }
    main .section.is-in-view .service-detail-grid .service-detail-card:nth-child(2) { animation-delay: 0.16s; }
    main .section.is-in-view .service-detail-grid .service-detail-card:nth-child(3) { animation-delay: 0.22s; }
    main .section.is-in-view .service-detail-grid .service-detail-card:nth-child(4) { animation-delay: 0.28s; }
    main .section.is-in-view .service-detail-grid .service-detail-card:nth-child(5) { animation-delay: 0.34s; }
    main .section.is-in-view .service-detail-grid .service-detail-card:nth-child(6) { animation-delay: 0.4s; }

    main .section.is-in-view .planning-list li {
        animation: revealFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    main .section.is-in-view .planning-list li:nth-child(1) { animation-delay: 0.12s; }
    main .section.is-in-view .planning-list li:nth-child(2) { animation-delay: 0.18s; }
    main .section.is-in-view .planning-list li:nth-child(3) { animation-delay: 0.24s; }
    main .section.is-in-view .planning-list li:nth-child(4) { animation-delay: 0.3s; }
    main .section.is-in-view .planning-list li:nth-child(5) { animation-delay: 0.36s; }
    main .section.is-in-view .planning-list li:nth-child(6) { animation-delay: 0.42s; }
    main .section.is-in-view .planning-list li:nth-child(7) { animation-delay: 0.48s; }

    main .section.is-in-view .cta-window-title {
        animation: revealFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
    }

    main .section.is-in-view .cta-window-lead {
        animation: revealFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
    }

    main .section.is-in-view .cta-window .btn {
        animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
    }

    main .section.is-in-view .contact-card {
        animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    main .section.is-in-view .contact-card:nth-child(1) { animation-delay: 0.14s; }
    main .section.is-in-view .contact-card:nth-child(2) { animation-delay: 0.24s; }
    main .section.is-in-view .contact-card:nth-child(3) { animation-delay: 0.34s; }

    main .section.is-in-view .section-contact .btn-pill {
        animation: revealFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
    }

    .hero-content h1,
    .hero-content .hero-actions {
        opacity: 0;
        transform: translateY(24px);
    }

    .hero:has(.hero-collage.is-revealed) .hero-content h1 {
        animation: revealFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    }

    .hero:has(.hero-collage.is-revealed) .hero-content .hero-actions {
        animation: revealFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
    }
}

@media (prefers-reduced-motion: reduce) {
    main .section:not(.hero) .section-title::after {
        width: 4.5rem;
        opacity: 1;
    }
}

/* Inner pages & SEO content */
.page-hero {
    padding-top: 7rem;
    padding-bottom: 2rem;
}

.page-hero h1 {
    max-width: 18ch;
}

.content-prose {
    max-width: 42rem;
}

.content-prose p,
.content-prose ul {
    margin-bottom: 1rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
    max-width: 48rem;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-item p {
    margin: 0.75rem 0 0;
    opacity: 0.9;
}

.services-directory-group,
.locations-directory,
.contact-page-grid {
    display: grid;
    gap: 2rem;
}

.services-directory ul,
.content-prose ul {
    list-style: none;
    padding: 0;
}

.services-directory li {
    margin-bottom: 1.25rem;
}

.services-directory a {
    font-weight: 600;
}

.location-card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-page-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .contact-page-grid {
        grid-template-columns: 1fr 1.1fr;
        align-items: start;
    }
}

.contact-office-card {
    margin-bottom: 1rem;
}

.footer-office {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.85;
}
