/* =========================================================
   YourNetworkHelp — design tokens
   Theme: engineered / dispatch-board, built from the boiler
   and pipe world (pressure gauges, spec-sheet codes, mono
   readouts) rather than a generic marketing template.
   ========================================================= */

:root {
    --ink:          #0F1E33;
    --ink-2:        #16294A;
    --ink-3:        #1F3A63;
    --paper:        #F5F1E8;
    --paper-dim:    #ECE6D8;
    --copper:       #C1662F;
    --copper-light: #E08942;
    --charcoal:     #22262B;
    --slate:        #5B6472;
    --ok-green:     #3C8A5B;
    --alert-red:    #B23A2E;
    --line:         rgba(15, 30, 51, 0.12);
    --line-light:   rgba(245, 241, 232, 0.16);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'IBM Plex Mono', monospace;

    --radius: 6px;
    --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.small { font-size: 0.82rem; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--slate); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 24px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
    background: var(--copper);
    color: #fff;
}
.btn-primary:hover { background: var(--copper-light); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline:hover { border-color: var(--copper); color: var(--copper); }
.btn-ghost-light {
    background: transparent;
    border-color: var(--line-light);
    color: var(--paper);
}
.btn-ghost-light:hover { border-color: var(--copper-light); color: var(--copper-light); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--ink);
    color: var(--paper-dim);
    font-size: 0.82rem;
}
.topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.topbar-call { display: inline-flex; align-items: center; gap: 6px; color: var(--copper-light); font-weight: 600; }
.dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok-green);
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(60,138,91,0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(60,138,91,0.55); }
    70% { box-shadow: 0 0 0 6px rgba(60,138,91,0); }
    100% { box-shadow: 0 0 0 0 rgba(60,138,91,0); }
}

/* ---------- Header ---------- */
.site-header {
    background: var(--ink);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line-light);
}
.site-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.brand-mark { color: var(--copper-light); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.brand-strap { font-size: 0.7rem; color: var(--paper-dim); text-transform: uppercase; letter-spacing: 0.08em; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 28px; }
.nav-link {
    color: var(--paper-dim);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover, .nav-link.active { color: var(--paper); border-color: var(--copper); }

.header-cta { white-space: nowrap; }
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    background: transparent;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
}
.nav-toggle span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--paper); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--ink) 0%, var(--ink-3) 100%);
    color: var(--paper);
    padding: 72px 0 88px;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--copper-light);
    border: 1px solid rgba(224,137,66,0.4);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    color: var(--paper);
    max-width: 15ch;
}
.hero-lead {
    font-size: 1.08rem;
    color: var(--paper-dim);
    max-width: 46ch;
    margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust-item { display: flex; flex-direction: column; }
.hero-trust-item .num { font-family: var(--font-mono); font-size: 1.3rem; color: var(--copper-light); font-weight: 600; }
.hero-trust-item .label { font-size: 0.78rem; color: var(--paper-dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- Signature element: dispatch gauge ---- */
.gauge-card {
    background: var(--ink-2);
    border: 1px solid var(--line-light);
    border-radius: 14px;
    padding: 28px;
}
.gauge-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.gauge-card-head span:first-child { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ok-green); text-transform: uppercase; }

.gauge {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 18px;
    aspect-ratio: 1;
}
.gauge svg { width: 100%; height: 100%; }
.gauge-reading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.gauge-reading .num { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; color: var(--paper); line-height: 1; }
.gauge-reading .unit { font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.gauge-foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-dim); text-transform: uppercase; border-top: 1px solid var(--line-light); padding-top: 14px; }
.gauge-foot .v { color: var(--paper); font-weight: 600; }

/* ---------- Section scaffolding ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-dim); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: var(--paper-dim); }
.section-dark h2, .section-dark h3 { color: var(--paper); }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { max-width: 52ch; margin: 12px auto 0; }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 12px 30px rgba(15,30,51,0.08); transform: translateY(-3px); }
.card-code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--copper); letter-spacing: 0.08em; }
.card h3 { font-size: 1.15rem; margin-top: 10px; }
.card p { margin-bottom: 14px; }
.card-link { font-weight: 600; font-size: 0.9rem; color: var(--ink); border-bottom: 1px solid var(--copper); padding-bottom: 2px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step-code { font-family: var(--font-mono); font-size: 0.85rem; color: var(--copper-light); display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.1rem; }

/* ---------- Trust strip ---------- */
.trust-strip {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.trust-strip-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--slate); font-weight: 500; }
.trust-strip-item svg { color: var(--copper); flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.testimonial {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 26px;
}
.testimonial p { color: var(--charcoal); font-style: italic; }
.testimonial-author { font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate); }

/* ---------- Forms ---------- */
.form-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--paper);
    color: var(--charcoal);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: 2px solid var(--copper);
    outline-offset: 1px;
    border-color: var(--copper);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: var(--slate); margin-top: 10px; }

.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.alert-success { background: rgba(60,138,91,0.1); border: 1px solid rgba(60,138,91,0.3); color: var(--ok-green); }
.alert-error { background: rgba(178,58,46,0.08); border: 1px solid rgba(178,58,46,0.3); color: var(--alert-red); }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--ink);
    color: var(--paper);
    border-radius: 14px;
    padding: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--paper-dim); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper-dim); padding: 56px 0 0; }
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 40px;
}
.footer-col p { color: var(--paper-dim); font-size: 0.88rem; }
.footer-heading { display: block; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper-light); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-col a:hover { color: var(--copper-light); }
.footer-bottom {
    border-top: 1px solid var(--line-light);
    padding: 18px 24px;
    text-align: center;
    font-size: 0.78rem;
}
.footer-bottom p { color: var(--paper-dim); margin: 0; }

/* ---------- Mobile sticky call bar ---------- */
.mobile-call-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--copper);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-family: var(--font-display);
    font-weight: 600;
    z-index: 60;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mobile-call-bar .dot { background: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
    background: var(--ink);
    color: var(--paper);
    padding: 52px 0;
}
.page-header h1 { color: var(--paper); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-header p { color: var(--paper-dim); max-width: 60ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.75rem; color: var(--copper-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }

/* ---------- Misc content pages ---------- */
.prose h2 { margin-top: 2em; font-size: 1.3rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.05rem; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose ul li { margin-bottom: 6px; color: var(--slate); }
.prose { max-width: 760px; margin: 0 auto; }

.map-embed {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16/9;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .grid-3, .grid-2, .steps { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; }
    .nav-list {
        display: none;
        flex-direction: column;
        background: var(--ink-2);
        padding: 16px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--line-light);
    }
    .nav-list.open { display: flex; }
    .nav-link { padding: 10px 0; border-bottom: 1px solid var(--line-light); }
    .nav-toggle { display: flex; }
    .header-cta { display: none; }
    .topbar-note { display: none; }

    .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .form-two { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; text-align: center; }
    .mobile-call-bar { display: flex; }
    .site-footer { padding-bottom: 70px; }
    .trust-strip { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
