/* ==============================================
   KALIBER SOLUTIONS — STRATIGRAPHIC SPINE SYSTEM
   Palette drawn from the Navajo Sandstone / Kayenta /
   Moenave rock column visible across southern Utah's
   canyon country (Zion, Bryce, the Vermilion Cliffs).
   ============================================== */

:root {
    /* rock layers, top of the cliff to the canyon floor */
    --navajo-white: #f0e2c8;
    --navajo-blush: #e8b799;
    --kayenta: #7a3b32;
    --moenave: #b5583f;
    --sage: #6b7455;

    /* ink / neutrals */
    --basalt: #221d1a;
    --paper: #f6efe2;
    --paper-line: #ddd0b8;
    --charcoal: #4a4038;
    --charcoal-light: #7d7364;
    --white: #ffffff;
    --danger: #a8321f;

    --shadow-sm: 0 1px 2px rgba(34, 29, 26, 0.10);
    --shadow: 0 6px 20px rgba(34, 29, 26, 0.16);

    --font-display: 'Big Shoulders', sans-serif;
    --font-body: 'Atkinson Hyperlegible', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --spine-w: 72px;

    --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
    --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem;
    --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--basalt);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

/* Layout */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s-8); }
.container-sm { max-width: 760px; }

.section-header { max-width: 640px; margin: 0 0 var(--s-10); }
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.98;
    letter-spacing: 0.005em;
    color: var(--basalt);
}

h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); margin-bottom: var(--s-6); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: var(--s-6); }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.625rem); margin-bottom: var(--s-3); text-transform: none; font-weight: 700; }
h4 { font-size: 1.0625rem; margin-bottom: var(--s-2); font-weight: 700; }

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--navajo-white); }

p { font-size: 1.0625rem; line-height: 1.7; color: var(--charcoal); margin-bottom: var(--s-4); }
.on-dark p { color: rgba(240, 226, 200, 0.82); }

.lead { font-size: 1.25rem; font-weight: 700; color: var(--basalt); }
.on-dark .lead { color: var(--navajo-white); }

.coord-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--moenave);
    margin-bottom: var(--s-5);
}
.on-dark .coord-tag { color: var(--navajo-blush); }

.accent { color: var(--moenave); }
.on-dark .accent { color: var(--navajo-blush); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    text-align: center;
    border: 2px solid var(--basalt);
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-sm { padding: var(--s-2) var(--s-4); font-size: 0.8125rem; }

.btn-primary { background: var(--moenave); color: var(--white); border-color: var(--moenave); }
.btn-primary:hover { background: var(--basalt); border-color: var(--basalt); transform: translate(-2px, -2px); }

.btn-outline { background: transparent; color: var(--basalt); border-color: var(--basalt); }
.btn-outline:hover { background: var(--basalt); color: var(--navajo-white); }

.btn-ghost { background: transparent; color: var(--navajo-white); border-color: rgba(240, 226, 200, 0.5); }
.btn-ghost:hover { border-color: var(--navajo-white); background: rgba(240, 226, 200, 0.08); }

.w-full { width: 100%; }

/* Site header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(34, 29, 26, 0.94);
    border-bottom: 1px solid rgba(240, 226, 200, 0.12);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-8); position: relative; }

.nav-logo { text-decoration: none; }
.wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.375rem;
    letter-spacing: 0.01em;
    color: var(--navajo-white);
}
.wordmark-accent { color: var(--moenave); }

.nav-links { display: flex; align-items: center; gap: var(--s-6); }

.nav-link {
    color: rgba(240, 226, 200, 0.8);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--s-1) 0;
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.is-active { color: var(--navajo-white); border-bottom-color: var(--moenave); }

.nav-cta { margin-left: var(--s-2); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px; height: 32px;
    background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navajo-white); }

main { display: block; padding-top: 68px; }

/* Site footer */
.site-footer { background: var(--basalt); color: rgba(240, 226, 200, 0.7); padding: var(--s-16) 0 var(--s-8); }
.footer-inner { text-align: center; }
.footer-logo { display: inline-block; margin: 0 auto var(--s-6); font-size: 1.5rem; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-6); margin-bottom: var(--s-6); font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-links a { color: rgba(240, 226, 200, 0.75); text-decoration: none; }
.footer-links a:hover { color: var(--navajo-blush); }
.footer-meta { font-size: 0.875rem; color: rgba(240, 226, 200, 0.5); }
.service-area { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(240, 226, 200, 0.4); margin-top: var(--s-2); letter-spacing: 0.03em; }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--basalt);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-links.is-open { max-height: 320px; }
    .nav-links .nav-link { padding: var(--s-4) var(--s-8); width: 100%; border-bottom: none; border-left: 3px solid transparent; }
    .nav-links .nav-link.is-active, .nav-links .nav-link:hover { border-left-color: var(--moenave); }
    .nav-cta { margin: var(--s-4) var(--s-8); }
}

/* ==============================================
   STRATIGRAPHIC SPINE
   Each .stratum is a two-column grid: a colored rock
   band on the left (its height simply matches the
   row, since band + content share one grid row) and
   the section content on the right. No JS required.
   ============================================== */
.stratum {
    display: grid;
    grid-template-columns: minmax(var(--s-8), 1fr) var(--spine-w) minmax(0, 1048px) minmax(var(--s-8), 1fr);
    background: var(--stratum-bg, var(--paper));
}
.stratum.on-dark { background: var(--stratum-bg, var(--basalt)); }

.stratum-band {
    grid-column: 2;
    background: var(--formation, var(--sage));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--s-4) 0;
}
.band-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--band-ink, var(--basalt));
    white-space: nowrap;
}

.stratum-content { grid-column: 3; padding: var(--s-16) var(--s-8); min-width: 0; }
.stratum-content.pad-lg { padding-top: var(--s-24); padding-bottom: var(--s-24); }

@media (max-width: 720px) {
    .stratum { grid-template-columns: 1fr; }
    .stratum-band { grid-column: 1; height: 10px; padding: 0; align-items: stretch; }
    .band-label { display: none; }
    .stratum-content { grid-column: 1; padding: var(--s-12) var(--s-5); }
    .stratum-content.pad-lg { padding-top: var(--s-12); padding-bottom: var(--s-12); }
}

/* ==============================================
   HERO
   ============================================== */
h1 { max-width: 780px; }
.lead-body { max-width: 560px; font-size: 1.1875rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-8); }

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--s-6);
    margin-top: var(--s-16);
    border-top: 1px solid rgba(240, 226, 200, 0.18);
    padding-top: var(--s-8);
}
.stat .stat-number { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--navajo-blush); line-height: 1; margin-bottom: var(--s-2); }
.stat .stat-label { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(240, 226, 200, 0.65); text-transform: uppercase; letter-spacing: 0.06em; }

/* ==============================================
   CAPABILITY / SERVICE CARDS
   ============================================== */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); }

.cap-card { background: var(--paper); padding: var(--s-6); }
.cap-card h3 { font-size: 1.0625rem; }
.cap-card p { font-size: 0.9375rem; margin-bottom: 0; }
.cap-card .cap-tag { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--moenave); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-3); display: block; }

/* ==============================================
   PROCESS TIMELINE
   ============================================== */
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-8); }
.process-step { border-left: 3px solid var(--kayenta); padding-left: var(--s-4); }
.process-step .step-num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--moenave); margin-bottom: var(--s-2); }
.process-step h4 { font-size: 1rem; }
.process-step p { font-size: 0.9375rem; margin-bottom: 0; }

@media (max-width: 860px) {
    .process-timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .process-timeline { grid-template-columns: 1fr; }
}

/* ==============================================
   DIFFERENTIATION CHECKLIST
   ============================================== */
.check-list { list-style: none; margin: var(--s-6) 0; }
.check-list li { position: relative; padding-left: var(--s-6); margin-bottom: var(--s-3); font-size: 0.9688rem; }
.check-list li::before { content: '›'; position: absolute; left: 0; color: var(--moenave); font-weight: 700; font-family: var(--font-mono); }
.on-dark .check-list li { color: rgba(240, 226, 200, 0.88); }

/* ==============================================
   TRUST ROW / SERVICE AREA
   ============================================== */
.trust-row { display: flex; flex-wrap: wrap; gap: var(--s-6); margin: var(--s-8) 0 0; }
.trust-row span { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--charcoal-light); text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--paper-line); padding: var(--s-2) var(--s-3); }

/* ==============================================
   PRICING
   ============================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); align-items: start; }

.price-card { background: var(--white); border: 2px solid var(--basalt); padding: var(--s-8) var(--s-6); }
/* price cards are always white, regardless of the section's on-dark rhythm */
.on-dark .price-card h3 { color: var(--basalt); }
.on-dark .price-card p { color: var(--charcoal); }
.on-dark .price-card .check-list li { color: var(--charcoal); }
.on-dark .price-card .price-for { color: var(--charcoal-light); }
.on-dark .price-card .price-note { color: var(--charcoal-light); }
.price-card.is-featured { border-color: var(--moenave); box-shadow: var(--shadow); }
.price-card.is-featured .price-tag { display: block; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--moenave); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-3); }

.price-for { font-size: 0.9375rem; color: var(--charcoal-light); min-height: 3.5em; }
.price-amount { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--basalt); margin: var(--s-4) 0 var(--s-2); }
.price-amount .price-period { font-family: var(--font-body); font-size: 0.875rem; font-weight: 400; color: var(--charcoal-light); }
.price-highlight { color: var(--moenave); font-weight: 700; }
.price-card hr { border: none; border-top: 1px solid var(--paper-line); margin: var(--s-5) 0; }
.price-note { font-size: 0.8125rem; color: var(--charcoal-light); margin-top: var(--s-3); }

@media (max-width: 940px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ==============================================
   FAQ ACCORDION
   ============================================== */
.faq-list { max-width: 100%; }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-item:first-child { border-top: 1px solid var(--paper-line); }

.faq-trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    background: none; border: none; cursor: pointer;
    padding: var(--s-5) 0;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem; font-weight: 700; color: var(--basalt);
}
.faq-trigger-icon { flex-shrink: 0; color: var(--moenave); font-family: var(--font-mono); font-size: 1.25rem; transition: transform 0.2s ease; }
.faq-item.is-open .faq-trigger-icon { transform: rotate(45deg); }

.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.is-open .faq-panel { max-height: 480px; padding-bottom: var(--s-5); }
.faq-panel p { font-size: 0.9688rem; margin-bottom: var(--s-3); }
.faq-panel p:last-child { margin-bottom: 0; }

/* ==============================================
   CONTACT
   ============================================== */
.contact-card { background: var(--white); border: 2px solid var(--basalt); padding: var(--s-10) var(--s-8); text-align: center; }
.contact-card .coord-tag { display: block; color: var(--moenave); }
.contact-email {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1.125rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--basalt);
    word-break: break-word;
    margin: var(--s-3) 0 var(--s-6);
    text-decoration-color: var(--moenave);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.contact-email:hover { color: var(--moenave); }
.contact-note { font-size: 0.9688rem; color: var(--basalt); opacity: 0.72; max-width: 480px; margin: var(--s-5) auto 0; }

@media (max-width: 600px) {
    .btn { width: 100%; }
    .hero-actions .btn { width: 100%; }
}

/* ==============================================
   STAT / VALUE CARDS (about page)
   ============================================== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-6); }
.stat-card { border: 2px solid var(--basalt); padding: var(--s-6); }
.stat-card .stat-number { font-family: var(--font-mono); font-size: 2.25rem; font-weight: 700; color: var(--moenave); line-height: 1; margin-bottom: var(--s-2); }
.stat-card .stat-label { font-size: 0.8125rem; color: var(--charcoal); text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-mono); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.value-card { border-top: 4px solid var(--moenave); padding: var(--s-6) 0 0; }

@media (max-width: 860px) {
    .value-grid { grid-template-columns: 1fr; }
}

/* ==============================================
   CTA CARD
   ============================================== */
.cta-card { border: 2px solid var(--basalt); padding: var(--s-10) var(--s-8); }
