/* ============================================================
   180 OUT SECURITY CONSULTING — shared styles
   Palette: Olive drab + Coyote tan + bone. Tactical, professional.
   Used by every page (index, courses, about, faq, contact).
   ============================================================ */

:root {
  /* base */
  --bg:          #14160f;
  --bg-2:        #191c12;
  --surface:     #1e2216;
  --surface-2:   #262b1b;
  --border:      #3a3f2b;
  --line:        #2c3020;

  /* text */
  --text:        #ece7d6;
  --muted:       #a9a892;
  --faint:       #7c7c64;
  --ink:         #14160f;   /* dark text on light buttons */

  /* accents */
  --olive:       #4d5a34;
  --olive-brt:   #6d7d45;
  --coyote:      #b8945f;
  --coyote-soft: #cea877;
  --brass:       #c9a24a;

  --radius:      4px;       /* squared-off, tactical */
  --radius-lg:   8px;
  --content:     1180px;
  --transition:  160ms ease;

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  /* subtle tactical grid + vignette */
  background-image:
    radial-gradient(1200px 600px at 70% -10%, rgba(109,125,69,.10), transparent 60%),
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(100% - 2rem, var(--content)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.2rem); letter-spacing: .012em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--text); max-width: 60ch; }
strong { color: var(--text); }

/* eyebrow / stencil label */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--coyote); }
.eyebrow--plain::before { display: none; }

.mono { font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; color: var(--faint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .75rem 1.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.btn-primary { background: var(--coyote); color: var(--ink); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--coyote-soft); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--coyote); color: #fff; background: rgba(184,148,95,.08); }
.btn-ghost { background: transparent; color: var(--muted); min-height: auto; padding: .4rem 0; }
.btn-ghost:hover { color: var(--coyote); }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(20,22,15,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-accent { height: 3px; background: linear-gradient(90deg, var(--olive), var(--coyote) 55%, var(--brass)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; padding: .75rem 0; }
.brand { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.brand-mark {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  border: 1.5px solid var(--coyote); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--coyote);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.brand-text { line-height: 1; }
.brand-text b { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text); display: block; white-space: nowrap; }
.brand-text small { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- brand logo assets ---------- */
.brand-logo { display: block; height: 64px; width: auto; flex-shrink: 0; }
@media (max-width: 1180px) { .brand-logo { height: 58px; } }
@media (max-width: 900px)  { .brand-logo { height: 54px; }
  .brand { gap: .6rem; }
  .brand-text b { font-size: 1rem; }
  .brand-text small { font-size: .5rem; letter-spacing: .12em; } }
@media (max-width: 400px)  { .brand-logo { height: 48px; }
  .brand-text b { font-size: .92rem; }
  .brand-text small { font-size: .46rem; letter-spacing: .08em; } }

.footer-logo { display: block; height: 96px; width: auto; margin: 0 0 .25rem -4px; }
@media (max-width: 760px) { .footer-logo { height: 78px; } }


.nav { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 1.1rem; }
.nav-links { flex: 1; display: flex; align-items: center; justify-content: space-evenly; gap: .25rem; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(.8rem, .58rem + .5vw, .98rem);
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
  padding-bottom: 5px; border-bottom: 2px solid transparent; transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom-color: var(--coyote); }
.header-inner .btn-primary { padding: .85rem 1.5rem; font-size: .92rem; letter-spacing: .09em; }

.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--text); position: relative; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background:
    linear-gradient(180deg, rgba(20,22,15,.35), var(--bg) 92%),
    linear-gradient(120deg, rgba(77,90,52,.35), transparent 55%),
    url("assets/hero.jpg") center/cover no-repeat;
}
@media (max-width: 760px) {
  .hero::before { background-image:
    linear-gradient(180deg, rgba(20,22,15,.35), var(--bg) 92%),
    linear-gradient(120deg, rgba(77,90,52,.35), transparent 55%),
    url("assets/hero-sm.jpg"); }
}
.hero-inner { position: relative; z-index: 1; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- hero video (desktop only) ---------- */
.hero-video { display: none; }
@media (min-width: 761px) {
  .hero--video::before { display: none; }              /* video replaces the still */
  .hero--video .hero-video {
    display: block; position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; object-fit: cover;
  }
  .hero--video::after {                                 /* scrim so the headline stays readable */
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      linear-gradient(180deg, rgba(20,22,15,.58), var(--bg) 94%),
      linear-gradient(120deg, rgba(77,90,52,.26), transparent 55%);
  }
  .hero--video .hero-inner { z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--video .hero-video { display: none; }
  .hero--video::before { display: block; }
  .hero--video::after { display: none; }
}

/* trust / stat strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.strip > div { background: var(--surface); padding: 1.1rem 1.2rem; }
.strip .k { font-family: var(--font-head); font-size: 1.6rem; color: var(--coyote); text-transform: uppercase; }
.strip .l { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-top: .2rem; }

/* ---------- layout helpers ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { margin-top: .6rem; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: border-color var(--transition), transform var(--transition); }
.card:hover { border-color: var(--olive-brt); transform: translateY(-3px); }
/* corner tick */
.card::before { content: ""; position: absolute; top: 10px; left: 10px; width: 12px; height: 12px; border-top: 2px solid var(--coyote); border-left: 2px solid var(--coyote); opacity: .8; }
.card h3 { margin-bottom: .5rem; }
.card .tag { display: inline-block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: .8rem; }

/* price card */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--font-head); font-size: 2rem; color: var(--text); }
.price-card .price span { font-size: .8rem; color: var(--faint); font-family: var(--font-mono); letter-spacing: .1em; }
.price-card .btn { margin-top: auto; }

/* checklist */
.checks { display: grid; gap: .7rem; margin: 1.1rem 0; }
.checks li { display: flex; gap: .7rem; color: var(--muted); font-size: .95rem; }
.checks li::before { content: "▸"; color: var(--coyote); font-weight: 700; }

/* image panel (graceful without a real photo) */
.panel { border: 1px solid var(--border); border-radius: var(--radius); min-height: 300px; background: linear-gradient(150deg, var(--surface-2), var(--surface)); position: relative; overflow: hidden; }
.panel[data-img] { background-image: linear-gradient(150deg, rgba(30,34,22,.4), rgba(20,22,15,.55)); background-size: cover; background-position: center; }
.panel .panel-note { position: absolute; bottom: 12px; left: 12px; }

/* ---------- photo panels ---------- */
.panel--photo { min-height: 380px; background-size: cover; background-position: center; }
.panel--photo::after { content:""; position:absolute; inset:0;
  background:
    linear-gradient(160deg, rgba(20,22,15,.26), rgba(20,22,15,.48) 60%),
    linear-gradient(0deg, rgba(20,22,15,.88), rgba(20,22,15,0) 30%); }
.panel--photo .panel-note { z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.panel--coach    { background-image: url("assets/panel-coach.jpg"); }
.panel--operator { background-image: url("assets/panel-operator.jpg"); }
.panel--sop      { background-image: url("assets/panel-sop.jpg"); }
.panel--hosted   { background-image: url("assets/panel-hosted.jpg"); }

/* ---------- photo cards ---------- */
.card--photo { padding: 0; overflow: hidden; }
.card--photo .card-body { padding: 1.6rem; }
.card--photo::before { z-index: 2; }
.card-img { display: block; width: 100%; aspect-ratio: 1.34; object-fit: cover;
  border-bottom: 1px solid var(--border); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem; background: var(--surface); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--text); }
.faq-item p { font-size: .95rem; }

/* ---------- forms ---------- */
form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coyote); }
.field textarea { min-height: 140px; resize: vertical; }
.grid-2.form-row { gap: 1.1rem; }
.form-status { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; min-height: 1.2em; color: var(--coyote); }

/* info tiles */
.info-tile { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; background: var(--surface); }
.info-tile .k { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.info-tile .v { margin-top: .3rem; color: var(--text); }

/* ---------- page banner (interior pages) ---------- */
.banner { position: relative; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.banner::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 3px; background: var(--coyote); }
.banner-inner { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.crumb { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: .7rem; }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(120deg, var(--olive), #2f3820); border: 1px solid var(--olive-brt); border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #e6e4d2; max-width: 52ch; margin: .6rem auto 1.6rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 2rem; }
.footer-stripe { height: 6px; background: repeating-linear-gradient(45deg, var(--coyote) 0 14px, var(--ink) 14px 28px); opacity: .5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; }
.footer-grid a { color: var(--muted); font-size: .95rem; display: block; padding: .2rem 0; }
.footer-grid a:hover { color: var(--coyote); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .split, .footer-grid, .strip { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .nav .btn { display: none; }
}
/* The call to action belongs in the menu, not beside it: below 900px the
   header button is hidden, and a phone had no way to reach the form. Shown
   only at the widths where the menu is the collapsing kind. */
.nav-cta { display: none; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: .5rem 1rem 1rem;
    max-height: 0; overflow: hidden;
    /* visibility, not just height. A menu closed with height alone still has
       every link in the tab order, so tabbing from the logo walked invisibly
       through six links nobody could see. It is held visible for the length
       of the close so the collapse is still animated. */
    visibility: hidden;
    transition: max-height var(--transition), visibility 0s linear 160ms;
  }
  .nav-links.open { max-height: 480px; visibility: visible; transition: max-height var(--transition), visibility 0s; }
  .nav-links a { width: 100%; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a.active { border-bottom-color: var(--line); color: var(--coyote); }
  .nav .nav-links .nav-cta {
    display: block; width: 100%; margin-top: 1rem; padding: .9rem 1rem;
    text-align: center; border-bottom: none; color: var(--ink);
  }
  .nav .nav-links .nav-cta:hover, .nav .nav-links .nav-cta:focus-visible { color: var(--ink); transform: none; }
}

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

/* ---------- Where We'll Be (schedule) ---------- */
.sched-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4rem; align-items: start; }
.where-map { height: 380px; border: 1px solid var(--border); border-radius: var(--radius); background: #0f110b; }
.leaflet-container { background: #0f110b !important; border-radius: var(--radius); font-family: var(--font-body); }
.cal { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 1rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.cal-nav { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); color: var(--text); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.cal-nav:hover { border-color: var(--coyote); }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-dow span { text-align: center; font-family: var(--font-mono); font-size: .6rem; color: var(--faint); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .82rem; color: var(--muted); border-radius: 3px; background: var(--bg-2); }
.cal-cell.empty { background: transparent; }
.cal-cell.today { outline: 2px solid var(--brass); outline-offset: -2px; color: var(--text); }
.cal-cell.booked { background: var(--coyote); color: var(--ink); font-weight: 600; }
.cal-cell.avail { background: rgba(109,125,69,.55); color: #fff; }
.cal-legend { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.cal-legend .dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.cal-legend .dot.booked { background: var(--coyote); }
.cal-legend .dot.avail { background: rgba(109,125,69,.75); }
.sched-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.sched-item { border: 1px solid var(--border); border-left: 3px solid var(--coyote); border-radius: var(--radius); background: var(--surface); padding: 1rem 1.1rem; }
.sched-item.avail { border-left-color: var(--olive-brt); }
.sched-item .t { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; color: var(--text); }
.sched-item .r { font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.sched-item .d { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--brass); margin-top: .5rem; text-transform: uppercase; }
.sched-empty { border: 1px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; color: var(--faint); font-family: var(--font-mono); font-size: .8rem; }
@media (max-width: 900px) { .sched-grid { grid-template-columns: 1fr; } .where-map { height: 300px; } }

/* ===========================================================================
   READABILITY PASS — 2026-09-18
   The body copy was already right (17px / 1.65 / ~65 characters a line). The
   problem was everywhere else: the condensed uppercase micro-labels that give
   the site its tactical feel were set between 7px and 11px, and on a phone
   they stopped being words. Nothing below is a redesign — the labels keep
   their family, colour and spacing, they are just big enough to read, and the
   things you tap are big enough to hit.
   =========================================================================== */

/* 12px is the floor for a letter-spaced uppercase label; below that the
   tracking that makes it look deliberate is what makes it unreadable. */
@media (max-width: 900px) {
  .eyebrow,
  .mono,
  .crumb,
  .card .tag,
  .strip .l,
  .info-tile .k,
  .field label,
  .sched-item .d,
  .footer-bottom p { font-size: .78rem; letter-spacing: .1em; }

  .cal-legend { font-size: .74rem; letter-spacing: .08em; }
  .cal-dow span { font-size: .72rem; }
  .footer-grid h4 { font-size: .86rem; }

  /* "Security Consulting LLC" under the wordmark was rendering at 7.4px.
     It is the legal name of the business; it should not be a texture. */
  .brand-text small { font-size: .66rem; letter-spacing: .1em; }
}

@media (max-width: 400px) {
  /* The 400px breakpoint shrank the lockup again, which is what produced the
     7.4px. Hold the floor instead and let the mark do the shrinking. */
  .brand-text small { font-size: .72rem; letter-spacing: .04em; }
}

/* Anything you tap with a thumb gets 44px, the size Apple and Google both
   ask for. The footer links were 31px and sat directly on top of each other. */
@media (max-width: 900px) {
  .footer-grid a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: .1rem 0;
  }
  .btn-ghost { min-height: 44px; display: inline-flex; align-items: center; }
  .cal-nav { min-width: 44px; min-height: 44px; }
}

/* Footer legal links (privacy / terms) */
.footer-bottom p a { color: var(--faint); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-bottom p a:hover { color: var(--coyote); border-color: var(--coyote); }
