/* Global layout helpers */
.section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--light {
    background: var(--neutral-100);
}

.section--dark {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
}

.section-heading .eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.4rem);
    margin: 0;
}

.section-heading p {
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(var(--primary-rgb), 0.7);
}

/* Page hero */
.page-hero {
    position: relative;
    padding: clamp(6.5rem, 9vw, 8.5rem) 0 clamp(3rem, 5vw, 5rem);
    color: var(--color-base-00);
    overflow: hidden;
}

.page-hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
}

.page-hero__content {
    grid-column: span 7;
    display: grid;
    gap: 1.5rem;
}

.page-hero__content h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 3.6vw, 2.9rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--color-base-00);
}

.page-hero__content p {
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 60ch;
}

.page-hero__actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.page-hero__media {
    grid-column: span 5;
    display: grid;
    gap: 1.4rem;
}

.hero-metrics {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-metrics .metric {
    min-width: 120px;
    display: grid;
    gap: 0.4rem;
}

.hero-metrics .metric-value {
    font-size: clamp(1.9rem, 2.4vw, 2.4rem);
    color: var(--color-primary);
    font-weight: 600;
}

.hero-metrics .metric-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .page-hero__container {
        grid-template-columns: 1fr;
    }

    .page-hero__content,
    .page-hero__media {
        grid-column: auto;
    }

    .page-hero__media {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 6.5rem 0 4.5rem;
    }

    .page-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-metrics {
        gap: 1.2rem;
    }
}

.text-muted {
    color: var(--text-light);
}

.text-primary {
    color: var(--primary-color);
}

.grid {
    display: grid;
    gap: clamp(1.6rem, 2.5vw, 2.8rem);
}

.grid--cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--split {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.bullet-list li::before {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.75rem;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.35);
}

/* Header & navigation */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(3, 3, 105, 0.08);
}

body.nav-open {
    overflow: hidden;
}

.site-header .container {
    display: grid;
    grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
    align-items: center;
    gap: 2rem;
    min-height: var(--header-height);
    max-width: none;
    width: 100%;
    margin: 0;
    padding-inline: clamp(1rem, 4vw, 3rem);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: var(--text-color);
}

.brand-name {
    font-weight: 700;
    font-size: 1.15rem;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(3, 3, 105, 0.12);
    background: white;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    justify-self: end;
    grid-column: 3;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 999px;
    transform: translateX(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span {
    top: 50%;
}

.nav-toggle::before {
    top: 16px;
}

.nav-toggle::after {
    bottom: 16px;
}

.nav-toggle[aria-expanded="true"]::before {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"]::after {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    justify-self: center;
    width: 100%;
    grid-column: 2;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    gap: clamp(1.1rem, 2vw, 1.75rem);
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(var(--primary-rgb), 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    justify-self: end;
}

.nav-cta--mobile {
    display: none;
}

.nav-cta--desktop {
    justify-self: end;
    grid-column: 3;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(var(--primary-rgb), 0.28);
}

.mobile-sticky-cta {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.85rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: none;
    background: transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 18px 40px rgba(var(--primary-rgb), 0.22);
}

.btn-white {
    background: white;
    color: var(--primary-color);
    border: 1.5px solid white;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.btn-white:hover,
.btn-white:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.btn-soft {
    background: var(--neutral-100);
    color: var(--primary-color);
    border: 1.5px solid rgba(3, 3, 105, 0.16);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.btn-soft:hover,
.btn-soft:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(var(--primary-rgb), 0.3);
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-outline--dark {
    border-color: rgba(3, 3, 105, 0.2);
    color: var(--primary-color);
}

.btn-outline--dark:hover,
.btn-outline--dark:focus-visible {
    background: rgba(3, 3, 105, 0.08);
}

.btn-accent {
    background: var(--accent-color);
    color: #1f2537;
}

.btn-pill {
    border-radius: var(--radius-full);
    padding: 0.5rem 1.25rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 36px 64px rgba(15, 23, 42, 0.12);
}

.card--accent {
    background: linear-gradient(145deg, rgba(3, 3, 105, 0.08), rgba(3, 3, 105, 0.02));
    border: 1px solid rgba(3, 3, 105, 0.14);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.metric-value {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
}

.metric-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background: #0b1120;
    color: rgba(255, 255, 255, 0.86);
    padding: 5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .brand-logo {
    width: 64px;
    height: 64px;
    filter: brightness(0) invert(1);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.95rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.footer-legal a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-header .container {
        grid-template-columns: auto auto;
    }

    .nav-toggle {
        grid-column: 2;
    }

    .site-nav {
        position: fixed;
        inset: 0 0 auto auto;
        width: min(320px, 80vw);
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -20px 0 60px rgba(15, 23, 42, 0.15);
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-cta--desktop {
        display: none;
    }

    .nav-cta--mobile {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }

    body {
        padding-bottom: clamp(4.5rem, 8vw, 5.75rem);
    }

    .mobile-sticky-cta {
        display: inline-flex;
        position: fixed;
        left: 50%;
        bottom: clamp(0.75rem, 4vw, 1.5rem);
        transform: translate(-50%, 0);
        width: min(92vw, 420px);
        justify-content: center;
        z-index: 1200;
        box-shadow: 0 18px 40px rgba(var(--primary-rgb), 0.22);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-sticky-cta:hover,
    .mobile-sticky-cta:focus-visible {
        transform: translate(-50%, 0) scale(1.02);
        box-shadow: 0 24px 50px rgba(var(--primary-rgb), 0.28);
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    }

    .mobile-sticky-cta.is-hidden {
        transform: translate(-50%, 120%);
        opacity: 0;
        pointer-events: none;
    }

    .section-heading p {
        padding: 0 1.5rem;
    }
}
