/* ══════════════════════════════════════
   SITE 39 — "Latitude"
   Muted indigo + soft terracotta
   Tanker (display) + Cabinet Grotesk (body)
   Alternating full-width bands
   ══════════════════════════════════════ */

:root {
    --indigo: #3730A3;
    --indigo-mid: #4338CA;
    --indigo-pale: #EEF2FF;
    --indigo-deep: #1E1B4B;
    --terra: #C2774A;
    --terra-light: #D4916A;
    --terra-pale: #FBF3ED;
    --text-dark: #111827;
    --text-body: #6B7280;
    --bg: #FAFAFA;
    --white: #FFFFFF;
    --border: #E5E7EB;
}

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

body {
    font-family: 'Cabinet Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.display-font { font-family: 'Tanker', serif; }

/* ── Minimal sticky nav ── */
.nav-slim {
    position: fixed; top: 0; width: 100%; z-index: 100;
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.4s;
}
.nav-slim.scrolled {
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-logo-lat {
    font-family: 'Tanker', serif;
    font-size: 1.6rem; color: var(--text-dark);
}
.nav-logo-lat span { color: var(--terra); }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links-lat {
    display: flex; gap: 2rem; list-style: none; padding: 0;
}
.nav-links-lat a {
    font-size: 0.82rem; font-weight: 500;
    color: var(--text-body); text-decoration: none;
    transition: color 0.3s;
}
.nav-links-lat a:hover { color: var(--indigo); }
.nav-cta-lat {
    background: var(--indigo); color: white;
    padding: 0.6rem 1.5rem; border-radius: 8px;
    font-size: 0.82rem; font-weight: 600;
    text-decoration: none; transition: all 0.3s;
}
.nav-cta-lat:hover {
    background: var(--indigo-mid);
    box-shadow: 0 6px 20px rgba(55, 48, 163, 0.25);
}

/* ── Band system ── */
.band {
    padding: 6rem 2rem;
    position: relative;
}
.band-inner {
    max-width: 1200px; margin: 0 auto;
}
.band-white { background: var(--white); }
.band-off { background: var(--bg); }
.band-indigo { background: var(--indigo); color: white; }
.band-indigo-deep { background: var(--indigo-deep); color: rgba(255,255,255,0.85); }
.band-terra { background: var(--terra); color: white; }
.band-pale { background: var(--indigo-pale); }

/* ── Hero band ── */
.hero-latitude {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(165deg, var(--white) 55%, var(--indigo-pale) 100%);
    position: relative;
}
.hero-latitude::after {
    content: ''; position: absolute;
    top: 15%; right: 8%;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: var(--terra); opacity: 0.06;
    filter: blur(60px);
}
.hero-lat-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
}
.hero-lat-tag {
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--indigo); margin-bottom: 2rem;
}
.hero-lat-h1 {
    font-family: 'Tanker', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95; letter-spacing: -0.02em;
    margin-bottom: 2rem;
}
.hero-lat-h1 .terra { color: var(--terra); }
.hero-lat-desc {
    font-size: 1.15rem; color: var(--text-body);
    line-height: 1.75; max-width: 520px; margin-bottom: 2.5rem;
}
.hero-lat-btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--indigo); color: white;
    padding: 1rem 2.5rem; border-radius: 10px;
    font-weight: 600; font-size: 0.9rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: all 0.35s;
}
.hero-lat-btn:hover {
    background: var(--indigo-mid);
    box-shadow: 0 12px 35px rgba(55, 48, 163, 0.3);
    transform: translateY(-2px);
}
.hero-lat-btn svg { transition: transform 0.3s; }
.hero-lat-btn:hover svg { transform: translateX(4px); }

/* ── Flowing inline content (no cards) ── */
.flow-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem; align-items: baseline;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}
.flow-item:last-child { border-bottom: none; }
.flow-label {
    font-family: 'Tanker', serif;
    font-size: 1.5rem; color: var(--terra);
}
.flow-text {
    font-size: 1.05rem; color: var(--text-body);
    line-height: 1.75;
}
.band-indigo .flow-item { border-color: rgba(255,255,255,0.1); }
.band-indigo .flow-label { color: var(--terra-light); }
.band-indigo .flow-text { color: rgba(255,255,255,0.6); }

/* ── Service strips ── */
.service-strip {
    display: flex; align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    gap: 2rem;
    transition: padding-left 0.3s;
    cursor: default;
}
.service-strip:hover { padding-left: 1.5rem; }
.service-strip:last-child { border-bottom: none; }
.ss-num {
    font-family: 'Tanker', serif;
    font-size: 2rem; color: var(--border);
    min-width: 60px;
    transition: color 0.3s;
}
.service-strip:hover .ss-num { color: var(--terra); }
.ss-content { flex: 1; }
.ss-title {
    font-weight: 600; font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.ss-desc {
    font-size: 0.88rem; color: var(--text-body); line-height: 1.6;
}
.ss-arrow {
    opacity: 0; transform: translateX(-8px);
    transition: all 0.3s; color: var(--terra);
}
.service-strip:hover .ss-arrow { opacity: 1; transform: translateX(0); }

/* ── Band-indigo service strips ── */
.band-indigo .service-strip { border-color: rgba(255,255,255,0.08); }
.band-indigo .ss-num { color: rgba(255,255,255,0.1); }
.band-indigo .service-strip:hover .ss-num { color: var(--terra-light); }
.band-indigo .ss-title { color: white; }
.band-indigo .ss-desc { color: rgba(255,255,255,0.5); }
.band-indigo .ss-arrow { color: var(--terra-light); }

/* ── Partners as text wall ── */
.partner-wall {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: center; align-items: baseline;
}
.pw-name {
    font-family: 'Tanker', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: rgba(255,255,255,0.1);
    transition: color 0.4s; cursor: default;
    line-height: 1;
}
.pw-name:hover { color: var(--terra-light); }
.pw-sep {
    font-size: 2rem; color: rgba(255,255,255,0.05);
    padding: 0 0.5rem;
}

/* ── QEHS inline ── */
.qehs-inline {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.qi-cell {
    padding: 3rem;
    border: 1px solid var(--border);
    margin: -0.5px;
    transition: all 0.3s;
}
.qi-cell:hover { background: var(--indigo-pale); border-color: var(--indigo); z-index: 1; }
.qi-letter {
    font-family: 'Tanker', serif;
    font-size: 3rem; color: var(--indigo); opacity: 0.15;
    line-height: 1; margin-bottom: 1rem;
}
.qi-cell:hover .qi-letter { opacity: 0.6; }
.qi-title {
    font-weight: 600; font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.qi-text {
    font-size: 0.88rem; color: var(--text-body); line-height: 1.65;
}

/* ── Contact band ── */
.contact-band {
    background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 100%);
    padding: 5rem 2rem; color: white;
}
.contact-band-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center;
}
.cb-title {
    font-family: 'Tanker', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1; margin-bottom: 1rem;
}
.cb-text {
    font-size: 1rem; color: rgba(255,255,255,0.55);
    line-height: 1.7; margin-bottom: 2rem;
}
.btn-terra {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--terra); color: white;
    padding: 1rem 2.25rem; border-radius: 10px;
    font-weight: 600; font-size: 0.9rem;
    text-decoration: none; transition: all 0.35s;
}
.btn-terra:hover {
    background: var(--terra-light);
    box-shadow: 0 10px 30px rgba(194, 119, 74, 0.3);
    transform: translateY(-2px);
}
.cb-info { font-size: 0.9rem; line-height: 2; color: rgba(255,255,255,0.5); }
.cb-info strong { color: rgba(255,255,255,0.8); display: block; margin-bottom: 0.25rem; }

/* ── Footer ── */
.footer-lat {
    background: var(--indigo-deep); color: rgba(255,255,255,0.3);
    padding: 2rem; text-align: center; font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Animations ── */
.glide {
    opacity: 0; transform: translateY(30px);
    animation: glideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes glideUp { to { opacity: 1; transform: none; } }
.g1 { animation-delay: 0.1s; } .g2 { animation-delay: 0.2s; }
.g3 { animation-delay: 0.3s; } .g4 { animation-delay: 0.4s; }
.g5 { animation-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .nav-links-lat { display: none; }
    .qehs-inline { grid-template-columns: 1fr; }
    .contact-band-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .flow-item { grid-template-columns: 1fr; gap: 0.5rem; }
}
@media (max-width: 640px) {
    .band { padding: 4rem 1.25rem; }
    .hero-latitude { padding: 6rem 1.25rem 3rem; }
    .service-strip { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .ss-arrow { display: none; }
    .partner-wall { gap: 0.75rem; }
    .pw-name { font-size: 1.8rem; }
    .contact-band { padding: 3.5rem 1.25rem; }
    .qi-cell { padding: 2rem 1.5rem; }
    .hero-lat-btn { width: 100%; justify-content: center; }
}

::selection { background: var(--terra); color: white; }
