:root {
    --bg: #ffffff;
    --bg-soft: #f4f6fa;
    --text: #0f2552;
    --text-soft: #3d4f77;
    --brand-navy: #052a63;
    --brand-green: #08a878;
    --line: #d5ddeb;
    --hero-motif-opacity: 0.17;
    --hero-overlay: rgba(255, 255, 255, 0.9);
    --brand-surface: #eff4fb;
    --max: 1180px;
    --header-h: 74px;
    --radius: 18px;
    --ease: 220ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(8, 168, 120, 0.45);
    outline-offset: 2px;
}

.container {
    width: min(var(--max), calc(100% - 3rem));
    margin: 0 auto;
}

.section {
    padding: 7rem 0;
}

.section-alt {
    background: var(--bg-soft);
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-green);
    margin-bottom: 1rem;
}

.section-title {
    max-width: 20ch;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.lead {
    max-width: 52ch;
    color: var(--text-soft);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-h);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid transparent;
    transition: border-color var(--ease);
}

.site-header.scrolled {
    border-color: var(--line);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    line-height: 1;
}

.brand-mark {
    color: var(--brand-green);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 2rem;
}

.brand-divider {
    width: 2px;
    height: 2.1rem;
    background: var(--brand-navy);
    opacity: 0.7;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-text {
    color: var(--brand-navy);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.brand-subtext {
    color: #3d4f77;
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: block;
}

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

.nav-link {
    font-size: 0.95rem;
    color: var(--text-soft);
    transition: color var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-navy);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    color: var(--text-soft);
    font: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.72rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all var(--ease);
}

.btn-primary {
    background: var(--brand-navy);
    color: #fff;
}

.btn-primary:hover {
    background: #042252;
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text-soft);
    background: #fff;
}

.btn-ghost:hover {
    border-color: var(--brand-navy);
    color: var(--brand-navy);
}

.hero {
    position: relative;
    padding-top: 4rem;
    overflow: hidden;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--hero-overlay) 38%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.2) 100%);
    z-index: -1;
}

.hero-motif {
    position: absolute;
    top: 0;
    right: -6%;
    width: clamp(780px, 72vw, 1220px);
    height: clamp(240px, 40vw, 420px);
    background: url("../assets/brand/motif-hero.png") no-repeat right top / contain;
    opacity: var(--hero-motif-opacity);
    pointer-events: none;
    z-index: -2;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: end;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.35rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    max-width: 12ch;
    margin-bottom: 1rem;
}

.hero-logo {
    width: 320px;
    height: 85px;
    object-fit: cover;
    object-position: left center;
    border-radius: 8px;
    margin-bottom: 1.1rem;
    opacity: 0.9;
    border: 1px solid rgba(5, 42, 99, 0.08);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 0.8rem;
}

.hero-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem;
    background: var(--brand-surface);
}

.card-label {
    font-size: 0.8rem;
    color: var(--brand-green);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.hero-card ul {
    list-style: none;
    display: grid;
    gap: 0.8rem;
    color: var(--text-soft);
}

.hero-card li {
    padding-left: 1rem;
    position: relative;
}

.hero-card li::before {
    content: "";
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 999px;
    background: var(--brand-green);
    position: absolute;
    left: 0;
    top: 0.6rem;
}

.services-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    background: var(--brand-surface);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.service-card p {
    color: var(--text-soft);
    line-height: 1.65;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
}

.about-copy p {
    color: var(--text-soft);
    line-height: 1.75;
    max-width: 58ch;
}

.stats {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.stats > div {
    padding: 1.4rem 1.5rem;
    background: var(--brand-surface);
}

.stats > div + div {
    border-top: 1px solid var(--line);
}

.stat-value {
    font-size: 2rem;
    line-height: 1;
    color: var(--brand-green);
    margin-bottom: 0.35rem;
}

.stat-label {
    color: var(--text-soft);
}

.contact-wrap {
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
    background: var(--brand-surface);
    padding: clamp(1.4rem, 3vw, 2.5rem);
}

.contact-wrap > p {
    color: var(--text-soft);
}

.contact-actions {
    margin: 1.8rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.contact-meta {
    color: var(--text-soft);
    display: grid;
    gap: 0.4rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-soft);
    font-size: 0.93rem;
}

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 580ms ease, transform 580ms ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .nav {
        position: fixed;
        right: 1rem;
        top: calc(var(--header-h) + 0.6rem);
        width: min(280px, calc(100% - 2rem));
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 1rem;
        display: grid;
        gap: 0.8rem;
        transform: scale(0.98);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--ease), transform var(--ease);
    }

    .nav.open {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .hero-grid,
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 5rem 0;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .hero-logo {
        width: 270px;
        height: 72px;
    }

    .brand-mark {
        font-size: 1.58rem;
    }

    .brand-divider {
        height: 1.7rem;
    }

    .brand-text {
        font-size: 0.92rem;
    }

    .brand-subtext {
        font-size: 0.41rem;
    }

    .hero-motif {
        right: -22%;
        top: 1.4rem;
        width: clamp(520px, 95vw, 760px);
        height: clamp(170px, 40vw, 260px);
        opacity: 0.14;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--max), calc(100% - 1.4rem));
    }

    .section-title {
        max-width: 100%;
    }

    .hero-actions,
    .contact-actions,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
    }

    .brand {
        gap: 0.35rem;
    }

    .brand-mark {
        font-size: 1.2rem;
    }

    .brand-divider {
        height: 1.25rem;
        width: 1px;
    }

    .brand-text {
        font-size: 0.73rem;
    }

    .brand-subtext {
        font-size: 0.36rem;
        letter-spacing: 0.1em;
    }

    .hero-motif {
        right: -36%;
        top: 2.2rem;
        width: 560px;
        height: 180px;
        opacity: 0.11;
    }

    .hero-logo {
        width: 220px;
        height: 58px;
    }
}
