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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Sans 3", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.locked {
    overflow: hidden;
}

/* ── Transition delay helpers ─────────────────────────── */
.td-1 {
    transition-delay: .10s;
}

.td-2 {
    transition-delay: .20s;
}

/* ── Hero animations ──────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fi {
    opacity: 0;
    animation: fadeUp .7s ease forwards;
}

.fi:nth-child(1) {
    animation-delay: .05s;
}

.fi:nth-child(2) {
    animation-delay: .15s;
}

.fi:nth-child(3) {
    animation-delay: .25s;
}

.fi:nth-child(4) {
    animation-delay: .35s;
}

.fi-card {
    opacity: 0;
    animation: fadeLeft .8s .3s ease forwards;
}

/* ── Scroll reveal ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}

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

.reveal-kids>* {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
}

.reveal-kids.in>*:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: .04s;
}

.reveal-kids.in>*:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: .14s;
}

.reveal-kids.in>*:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: .24s;
}

.reveal-kids.in>*:nth-child(4) {
    opacity: 1;
    transform: none;
    transition-delay: .34s;
}

/* ── Nav ──────────────────────────────────────────────── */
#main-nav {
    transition: box-shadow .3s;
}

#main-nav.scrolled {
    box-shadow: 0 2px 20px rgba(26, 58, 92, .10);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #C8A96E;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* ── Off-canvas ───────────────────────────────────────── */
#oc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(20, 20, 18, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .32s ease;
    backdrop-filter: blur(3px);
}

#oc-overlay.open {
    opacity: 1;
    pointer-events: all;
}

#offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    width: min(340px, 88vw);
    background: #fff;
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.32, .72, 0, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(26, 58, 92, .12);
}

#offcanvas.open {
    transform: translateX(0);
}

/* Hamburger */
.hline {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #1A3A5C;
    transition: all .26s;
    margin: 4px 0;
}

.ham-open .hline:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.ham-open .hline:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.ham-open .hline:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* ── Services accordion ───────────────────────────────── */
.svc-row {
    border-top: 1px solid rgba(200, 169, 110, 0.2);
    cursor: pointer;
    transition: background .15s;
}

.svc-row:last-of-type {
    border-bottom: 1px solid rgba(200, 169, 110, 0.2);
}

.svc-row:hover {
    background: rgba(26, 58, 92, 0.03);
}

.svc-row.active {
    background: rgba(26, 58, 92, 0.03);
}

.svc-num {
    font-size: 10px;
    color: rgba(26, 26, 22, 0.2);
    letter-spacing: 0.1em;
    margin-top: 3px;
    min-width: 24px;
    transition: color .2s;
}

.svc-row.active .svc-num {
    color: #C8A96E;
}

.svc-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8A96E;
    margin-bottom: 4px;
}

.svc-label {
    font-size: 16px;
    color: rgba(26, 26, 22, 0.5);
    font-weight: 400;
    transition: color .2s, font-weight .15s;
}

.svc-row.active .svc-label {
    color: #1A3A5C;
    font-weight: 600;
}

.svc-arrow {
    color: #1A3A5C;
    opacity: 0;
    transition: opacity .2s;
    font-size: 14px;
}

.svc-row.active .svc-arrow {
    opacity: 1;
}

/* ── Service detail panel ─────────────────────────────── */
.svc-panel {
    display: none;
}

.svc-panel.active {
    display: block;
    /* animation: fadeUp .4s ease forwards; */
}

.panel-card {
    position: relative;
}

.panel-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 40%;
    height: 2px;
    background: #1A3A5C;
}

/* ── Engagements ──────────────────────────────────────── */
.eng-border {
    border-top: 2px solid #1A3A5C;
}

.eng-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .45s cubic-bezier(.4, 0, .2, 1);
}

.eng-body.open {
    max-height: 2000px;
}

.eng-plus {
    display: inline-block;
    transition: transform .25s;
    font-style: normal;
}

.eng-plus.open {
    transform: rotate(45deg);
}

/* ── Platform chips ───────────────────────────────────── */
.platform-chip {
    transition: border-color .15s, background .15s;
    cursor: default;
}

.platform-chip:hover {
    border-color: #1A3A5C;
    background: #EEF2F7;
}

/* ── Process cards ────────────────────────────────────── */
.proc-card {
    transition: transform .2s, box-shadow .18s;
}

.proc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 58, 92, .07);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-navy {
    background: #1A3A5C;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background .18s, transform .14s, box-shadow .18s;
}

.btn-navy:hover {
    background: #153250;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 58, 92, .24);
}

.btn-outline {
    background: transparent;
    color: #1A3A5C;
    border: 1.5px solid #1A3A5C;
    cursor: pointer;
    transition: background .18s, color .18s, transform .14s;
}

.btn-outline:hover {
    background: #1A3A5C;
    color: #fff;
    transform: translateY(-1px);
}

.btn-gold {
    background: #C8A96E;
    color: #1A3A5C;
    border: none;
    cursor: pointer;
    transition: background .18s, transform .14s, box-shadow .18s;
}

.btn-gold:hover {
    background: #b8996e;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(200, 169, 110, .3);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: border-color .18s;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, .65);
}