/* ══════════════════════════════════════
   SITE 37 — "Signal Path"
   Steel blue + tangerine, white canvas
   Chillax (display) + Erode (body)
   Asymmetric sidebar layout
   ══════════════════════════════════════ */

:root {
    --steel: #3B5998;
    --steel-light: #5B7EC2;
    --steel-pale: #EDF1F8;
    --tangerine: #E87830;
    --tangerine-light: #F59952;
    --charcoal: #1C1C1E;
    --text-main: #2C2C2E;
    --text-dim: #8E8E93;
    --bg: #FFFFFF;
    --bg-off: #F8F8F6;
    --border: #E5E5EA;
}

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

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

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

/* ── Sidebar layout ── */
.page-layout {
    display: grid;
    grid-template-columns: minmax(280px, 38%) 1fr;
    min-height: 100vh;
}
.sidebar-panel {
    background: var(--steel);
    color: white;
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    overflow: hidden;
}
.sidebar-panel::after {
    content: ''; position: absolute;
    bottom: -20%; right: -30%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(232, 120, 48, 0.15), transparent 70%);
    border-radius: 50%;
}
.sidebar-logo {
    font-family: 'Chillax', sans-serif;
    font-size: 1.4rem; font-weight: 600;
    letter-spacing: -0.02em;
}
.sidebar-logo span { color: var(--tangerine); }
.sidebar-nav { list-style: none; padding: 0; }
.sidebar-nav li { margin-bottom: 0.25rem; }
.sidebar-nav a {
    display: block; padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.5); text-decoration: none;
    font-family: 'Chillax', sans-serif;
    font-size: 0.85rem; font-weight: 500;
    letter-spacing: 0.04em;
    border-left: 2px solid transparent;
    transition: all 0.3s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: white; border-left-color: var(--tangerine);
    background: rgba(255,255,255,0.05);
}
.sidebar-contact {
    font-size: 0.8rem; color: rgba(255,255,255,0.4);
    line-height: 1.8;
}
.sidebar-contact a { color: var(--tangerine); text-decoration: none; }

.main-content {
    padding: 0;
    overflow-y: auto;
}

/* ── Hero (right panel) ── */
.hero-signal {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem;
    position: relative;
    background: linear-gradient(160deg, var(--bg) 60%, var(--steel-pale) 100%);
}
.hero-eyebrow {
    font-family: 'Chillax', sans-serif;
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--steel); margin-bottom: 2rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
    content: ''; width: 3rem; height: 2px;
    background: linear-gradient(to right, var(--tangerine), var(--steel));
}
.hero-h1 {
    font-family: 'Chillax', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600; line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--charcoal); margin-bottom: 1.5rem;
}
.hero-h1 .highlight {
    background: linear-gradient(135deg, var(--tangerine), var(--steel-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.1rem; color: var(--text-dim);
    line-height: 1.75; max-width: 500px; margin-bottom: 2.5rem;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--tangerine); color: white;
    padding: 1rem 2.25rem; font-family: 'Chillax', sans-serif;
    font-size: 0.85rem; font-weight: 600; text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none; cursor: pointer;
}
.hero-cta:hover {
    background: var(--steel);
    box-shadow: 0 10px 30px rgba(59, 89, 152, 0.25);
    transform: translateY(-2px);
}
.hero-cta svg { transition: transform 0.3s; }
.hero-cta:hover svg { transform: translateX(4px); }

/* ── Bento grid services ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1px;
    background: var(--border);
}
.bento-cell {
    background: var(--bg);
    padding: 2.5rem;
    transition: all 0.4s;
    position: relative;
}
.bento-cell::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; width: 0; height: 3px;
    background: linear-gradient(to right, var(--tangerine), var(--steel));
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.bento-cell:hover { background: var(--steel-pale); }
.bento-cell:hover::after { width: 100%; }
.bento-cell.featured {
    grid-column: span 2;
    background: var(--steel);
    color: white;
}
.bento-cell.featured:hover { background: var(--charcoal); }
.bento-num {
    font-family: 'Chillax', sans-serif;
    font-size: 3rem; font-weight: 700;
    color: var(--border); line-height: 1; margin-bottom: 1rem;
}
.bento-cell.featured .bento-num { color: rgba(255,255,255,0.1); }
.bento-title {
    font-family: 'Chillax', sans-serif;
    font-size: 1.25rem; font-weight: 600;
    margin-bottom: 0.75rem;
}
.bento-desc {
    font-size: 0.9rem; line-height: 1.7;
    color: var(--text-dim);
}
.bento-cell.featured .bento-desc { color: rgba(255,255,255,0.6); }

/* ── About / Vision cards ── */
.vision-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.v-card {
    border: 1px solid var(--border); padding: 2.5rem 2rem;
    position: relative; overflow: hidden;
    transition: all 0.4s;
}
.v-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; width: 100%; height: 0;
    background: linear-gradient(to bottom, var(--steel-pale), transparent);
    transition: height 0.5s;
}
.v-card:hover::before { height: 100%; }
.v-card:hover { border-color: var(--steel); transform: translateY(-4px); }
.v-card-title {
    font-family: 'Chillax', sans-serif;
    font-size: 1.1rem; font-weight: 600;
    color: var(--steel); margin-bottom: 0.75rem;
    position: relative;
}
.v-card-text {
    font-size: 0.9rem; color: var(--text-dim);
    line-height: 1.7; position: relative;
}

/* ── Section basics ── */
.sec-pad { padding: 5rem; }
.sec-bg-off { background: var(--bg-off); }
.sec-bg-steel { background: var(--steel); color: white; }

.sec-label {
    font-family: 'Chillax', sans-serif;
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--tangerine); margin-bottom: 0.75rem;
}
.sec-title {
    font-family: 'Chillax', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600; line-height: 1.15;
    letter-spacing: -0.02em; margin-bottom: 1rem;
}
.sec-subtitle {
    font-size: 1rem; color: var(--text-dim);
    line-height: 1.7; max-width: 550px;
}
.sec-bg-steel .sec-subtitle { color: rgba(255,255,255,0.6); }

/* ── QEHS tabs ── */
.qehs-tabs {
    display: flex; gap: 0; border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}
.qehs-tab {
    padding: 1rem 2rem; cursor: pointer;
    font-family: 'Chillax', sans-serif;
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-dim); border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.qehs-tab:hover, .qehs-tab.active {
    color: var(--steel); border-bottom-color: var(--tangerine);
}
.qehs-content {
    font-size: 1rem; line-height: 1.8;
    color: var(--text-dim); max-width: 700px;
}

/* ── Partners inline ── */
.partners-inline {
    display: flex; gap: 3rem; align-items: center;
    flex-wrap: wrap;
}
.partner-name {
    font-family: 'Chillax', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--border);
    transition: color 0.3s; cursor: default;
}
.partner-name:hover { color: var(--tangerine); }
.sec-bg-steel .partner-name { color: rgba(255,255,255,0.15); }
.sec-bg-steel .partner-name:hover { color: var(--tangerine); }

/* ── Footer (in main content) ── */
.footer-right {
    padding: 3rem 5rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--text-dim);
}

/* ── Responsive: collapse sidebar ── */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-panel {
        position: relative; height: auto;
        flex-direction: row; align-items: center;
        padding: 1rem 1.5rem;
    }
    .sidebar-nav { display: none; }
    .sidebar-contact { display: none; }
    .hero-signal { padding: 3rem 2rem; min-height: 80vh; }
    .sec-pad { padding: 3rem 2rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-cell.featured { grid-column: span 1; }
    .vision-cards { grid-template-columns: 1fr; }
    .footer-right { padding: 2rem; flex-direction: column; gap: 1rem; }
}
@media (max-width: 640px) {
    .hero-signal { padding: 2.5rem 1.25rem; }
    .sec-pad { padding: 2.5rem 1.25rem; }
    .partners-inline { gap: 1.5rem; }
    .partner-name { font-size: 1.1rem; }
    .qehs-tabs { overflow-x: auto; }
    .qehs-tab { padding: 0.75rem 1.25rem; white-space: nowrap; }
}

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