/* =========================================================
   Knox Jefferson Facility Services
   Brand colors and fonts live in the :root block below.
   ========================================================= */

:root {
  --navy: #08111F;
  --navy-2: #0E1A2D;       /* slightly lighter navy for cards */
  --navy-line: rgba(245, 241, 232, 0.12);
  --gold: #C9A54C;         /* gold on dark backgrounds */
  --gold-dark: #B08D3A;    /* gold on light backgrounds */
  --gold-text-light: #8A6D27; /* small gold text on cream (passes contrast) */
  --cream: #F5F1E8;
  --cream-2: #EDE7DA;
  --ink: #08111F;
  --ink-soft: #3A4352;
  --cream-soft: rgba(245, 241, 232, 0.74);

  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 12vw, 160px);
  --radius: 4px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Insured & bonded on/off switch (see top of index.html) */
html[data-insured="no"] .if-insured { display: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text-light);
  margin-bottom: 1.25rem;
}
.section-dark .eyebrow { color: var(--gold); }
.display {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.7; color: var(--ink-soft); font-weight: 300; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px;
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D8B65E; }
.btn-gold:active { transform: translateY(1px); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 0.75rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--cream);
  transition: background-color .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled { background: rgba(8, 17, 31, 0.96); box-shadow: 0 1px 0 var(--navy-line); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(8, 17, 31, 0.86); backdrop-filter: blur(10px); }
}
.header-inner {
  height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-script { font-family: var(--script); font-size: 1.45rem; color: var(--gold); line-height: 1; }
.brand-caps { font-size: 0.56rem; letter-spacing: 0.34em; text-transform: uppercase; margin-top: 4px; }
/* Hide the wordmark until the hero logo scrolls away, so the name isn't shown twice */
.site-header:not(.is-scrolled) .brand-text { opacity: 0; }
.brand-text { transition: opacity .35s ease; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em;
}
.header-phone svg { color: var(--gold); }
.header-phone:hover span { color: var(--gold); }

@media (max-width: 719px) {
  .header-cta { display: none; }
  .header-phone {
    min-height: 44px; padding: 0 14px; border: 1px solid rgba(201,165,76,.55); border-radius: var(--radius);
    font-size: 0.875rem;
  }
}
@media (max-width: 380px) {
  .brand-text { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 32px) var(--gutter) 96px;
  color: var(--cream); text-align: center; overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 80% at 50% 30%, #13233C 0%, var(--navy) 62%),
  var(--navy); }
.hero-video, .hero-media::before {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.is-ready { opacity: 1; }
/* Poster still is applied as background so it shows on mobile, slow
   connections and reduced-motion even when the video never loads. */
.hero-media::before {
  content: ""; background: url("/assets/hero/hero-poster.jpg") center / cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,17,31,.78) 0%, rgba(8,17,31,.55) 40%, rgba(8,17,31,.72) 75%, rgba(8,17,31,.96) 100%);
}
.hero-content { max-width: 900px; width: 100%; }
.hero h1 { margin: 0 auto; }
.hero-logo { width: min(100%, 680px); height: auto; margin: 0 auto; filter: drop-shadow(0 2px 24px rgba(0,0,0,.35)); }
/* On phones the small line inside the logo is hard to read, so repeat it larger */
.hero-kicker {
  display: none; margin: 18px 0 0;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
@media (max-width: 599px) { .hero-kicker { display: block; } }
.hero-promise {
  max-width: 560px; margin: clamp(28px, 4vw, 44px) auto 0;
  font-size: clamp(1.05rem, 2.1vw, 1.25rem); font-weight: 300; line-height: 1.65; color: var(--cream);
}
.hero-actions { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-call { text-decoration: none; font-size: 0.95rem; color: var(--cream-soft); }
.hero-call strong { color: var(--cream); font-weight: 500; letter-spacing: 0.03em; }
.hero-call:hover strong { color: var(--gold); }
.hero-tagline {
  margin-top: clamp(40px, 7vh, 72px);
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold);
}
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 28px;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(8,17,31,.5); color: var(--cream);
  border: 1px solid var(--navy-line); border-radius: 50%; cursor: pointer;
}
.video-toggle .icon-play { display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.video-toggle.is-paused .icon-pause { display: none; }

@media (min-width: 720px) {
  .hero-actions { flex-direction: row; justify-content: center; gap: 28px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-light { background: var(--cream); color: var(--ink); }
.section-dark { background: var(--navy); color: var(--cream); }
.section-dark p { color: var(--cream-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head.center { margin-left: auto; margin-right: auto; }

.sparkle-rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 36px auto; color: var(--gold-dark);
}
.sparkle-rule span { width: 72px; height: 1px; background: currentColor; opacity: .7; }
.sparkle-rule svg { width: 16px; height: 16px; }

/* Intro */
.pillars {
  display: grid; gap: 40px;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid rgba(8,17,31,.12);
}
.pillars h3 {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 12px;
}
.pillars p { color: var(--ink-soft); }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 56px; } }

.trust-line {
  margin-top: 48px; text-align: center;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-text-light);
}
.section-dark .trust-line { color: var(--gold); text-align: left; margin-top: 28px; }

/* Who we serve */
.serve-grid {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--navy-line);
}
.serve-grid li {
  padding: 32px 0; border-bottom: 1px solid var(--navy-line);
  display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: baseline;
}
.serve-num { grid-row: span 2; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gold); font-weight: 500; }
.serve-grid h3 { font-size: 1.25rem; font-weight: 400; color: var(--cream); margin-bottom: 6px; }
.serve-grid p { font-size: 0.95rem; }
@media (min-width: 720px) {
  .serve-grid { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
}
@media (min-width: 1040px) {
  .serve-grid { grid-template-columns: repeat(3, 1fr); }
  .serve-grid li { padding: 40px 0; }
}

/* What's included */
.split { display: grid; gap: 56px; }
.split-head p:not(.eyebrow) { color: var(--ink-soft); margin-top: 24px; max-width: 420px; }
.checklist li {
  display: grid; grid-template-columns: 22px 1fr; gap: 20px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid rgba(8,17,31,.12);
}
.checklist li:first-child { border-top: 1px solid rgba(8,17,31,.12); }
.checklist svg { width: 16px; height: 16px; color: var(--gold-dark); margin-top: 6px; }
.checklist h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: 4px; }
.checklist p { color: var(--ink-soft); font-size: 0.975rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 96px; align-items: start; }
  .split-head { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* How it works */
.steps { display: grid; gap: 48px; counter-reset: step; }
.steps li { text-align: center; max-width: 340px; margin: 0 auto; }
.step-num {
  display: block; font-family: var(--script); font-size: 4.5rem; line-height: 1;
  color: var(--gold); margin-bottom: 12px;
}
.steps h3 { font-size: 1.125rem; font-weight: 500; color: var(--cream); margin-bottom: 10px; }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
  .steps::before {
    content: ""; position: absolute; top: 40px; left: 18%; right: 18%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,165,76,.4), transparent);
  }
  .step-num { background: var(--navy); width: 96px; margin: 0 auto 12px; position: relative; }
}

/* Later sections (hidden until there is real content) */
.reviews { display: grid; gap: 32px; }
@media (min-width: 820px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 36px; background: #fff; border-radius: var(--radius); }
.review blockquote { margin: 0 0 20px; font-size: 1.05rem; font-weight: 300; }
.review figcaption { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text-light); }
.results-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.results-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.logos-section { padding: 64px 0; border-top: 1px solid rgba(8,17,31,.08); }
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 56px; }
.client-logos img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .7; }

/* ---------- Quote ---------- */
.quote { background:
  radial-gradient(90% 60% at 0% 0%, rgba(201,165,76,.07), transparent 60%),
  var(--navy); }
.quote-grid { display: grid; gap: 56px; }
.big-phone {
  display: inline-block; margin: 28px 0 8px;
  font-size: clamp(2rem, 6vw, 3rem); font-weight: 300; letter-spacing: 0.02em;
  color: var(--gold); text-decoration: none;
}
.big-phone:hover { color: #D8B65E; }
.quote-info .display { margin-bottom: 24px; }
.quote-email { display: block; color: var(--cream); font-size: 0.95rem; text-underline-offset: 4px; }
.quote-area { margin-top: 28px; font-size: 0.95rem; max-width: 380px; }
@media (min-width: 960px) {
  .quote-grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
}

.quote-form {
  background: var(--cream); color: var(--ink);
  padding: clamp(24px, 4vw, 48px); border-radius: var(--radius);
  display: grid; gap: 20px;
}
.field-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  padding: 0;
}
.req { color: var(--gold-text-light); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #CFC7B6; border-radius: var(--radius);
  padding: 12px 14px; min-height: 50px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2308111F' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(176,141,58,.25);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #A3341F; }

.visits legend { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; letter-spacing: 0; text-transform: none; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 50px; min-height: 50px; padding: 0 16px;
  background: #fff; border: 1px solid #CFC7B6; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all .2s ease;
}
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.chips input:focus-visible + span { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); text-align: center; }
.form-status { margin: -4px 0 0; font-size: 0.95rem; font-weight: 500; color: #A3341F; text-align: center; }
.form-status:empty { display: none; }
.btn:disabled { opacity: .7; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer { background: #050B15; color: var(--cream-soft); padding: 80px 0 40px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { width: 260px; height: auto; }
.footer-parent { margin-top: 16px; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-col h2 {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col p { margin-bottom: 6px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--navy-line);
  display: flex; flex-direction: column; gap: 8px; font-size: 0.8rem;
}
.footer-tagline { font-family: var(--script); font-size: 1.6rem; color: var(--gold); letter-spacing: 0; }
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 2fr 1.3fr 1.3fr; gap: 56px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Mobile sticky bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 719px) {
  body { padding-bottom: 64px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1.4fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--navy); border-top: 1px solid var(--navy-line);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a {
    display: grid; place-items: center; min-height: 64px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  }
  .mobile-bar-call { color: var(--cream); }
  .mobile-bar-quote { background: var(--gold); color: var(--navy); }
}

/* ---------- Gentle reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
