/* ==========================================================================
   Bradley Public Safety Group — design system
   Dark, high-contrast, built for reading on a phone at 6am on a job site.
   ========================================================================== */

:root {
  /* Surfaces: deep blue-black through slate */
  --ink:        #070A0E;
  --ink-2:      #0B1016;
  --surface:    #10171F;
  --surface-2:  #16202B;
  --surface-3:  #1D2937;
  --line:       rgba(255, 255, 255, .085);
  --line-strong:rgba(255, 255, 255, .16);

  /* Type */
  --text:       #EAF0F7;
  --text-2:     #AFBECF;
  --muted:      #7E8FA3;

  /* Signal colours */
  --gold:       #D8A63D;
  --gold-hi:    #F2C765;
  --gold-dim:   rgba(216, 166, 61, .14);
  --alert:      #E04B4B;

  --radius:     4px;
  --radius-lg:  8px;
  --maxw:       1200px;
  --gutter:     clamp(1.25rem, 4vw, 3rem);

  --shadow:     0 18px 48px rgba(0, 0, 0, .45);
  --ease:       cubic-bezier(.22, .61, .36, 1);

  --font-display: 'Barlow Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

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

::selection { background: var(--gold); color: #0B0F14; }

/* ---------- Typography ---------------------------------------------------- */

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .012em;
  line-height: 1.02;
  margin: 0 0 .5em;
  color: #fff;
}

h1 { font-size: clamp(2.15rem, 6.6vw, 5rem); letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: .02em; }
h4 { font-size: 1.05rem; letter-spacing: .06em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.06rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }

/* ---------- Layout -------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 820px; }

section { position: relative; }

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-alt { background: var(--ink-2); }
.section-surface { background: var(--surface); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* auto-fit will happily make four cards into a row of three plus an orphan.
   Use this where the count is fixed and the pairing is the point. */
@media (min-width: 900px) {
  .grid-2-strict { grid-template-columns: 1fr 1fr; }
}

/* A column of panels with even spacing, rather than margins on each. */
.stack { display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.5rem); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
.split > * { min-width: 0; }
/* Columns of unequal height should align to the top, not float mid-gap. */
.split.top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split.reverse > :first-child { order: 2; }
}

/* ---------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
  /* Not nowrap: a label like "Call Dispatch — (866) 692-7741" is wider than a
     320px phone, and nowrap made it push its whole column off-screen rather
     than wrap. Buttons are sized by content, so this never wraps when there
     is room. */
  white-space: normal;
  text-align: center;
  text-wrap: balance;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--gold); color: #0B0F14; }
.btn-primary:hover { background: var(--gold-hi); color: #0B0F14; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); background: var(--gold-dim); }

.btn-solid { background: #fff; color: #0B0F14; }
.btn-solid:hover { background: var(--gold-hi); color: #0B0F14; }

.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* On a phone, side-by-side buttons leave neither enough room. Stack them
   full width — easier to read and a bigger tap target. */
@media (max-width: 520px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--gold-hi);
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  transition: transform .2s var(--ease);
}
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Top bar + header --------------------------------------------- */

.topbar {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  color: var(--text-2);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: var(--text-2); text-decoration: none; }
.topbar a:hover { color: var(--gold-hi); }
.topbar-creds { display: flex; gap: 1.4rem; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; color: var(--muted); }
.topbar-creds span { white-space: nowrap; }
@media (max-width: 780px) { .topbar-creds { display: none; } }

.topbar-dispatch {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3FCF77;
  box-shadow: 0 0 0 0 rgba(63, 207, 119, .6);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 207, 119, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(63, 207, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 207, 119, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 14, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 10, 14, .96);
  border-bottom-color: var(--line-strong);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: #fff;
  flex: none;
}
/* The brand is a wordmark only for now — a new mark is being designed. If one
   is added back as an <svg> or <img> inside .brand, this sizes it. */
.brand svg, .brand img { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a.nav-link {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-2);
  text-decoration: none;
  padding: .55rem .8rem;
  border-radius: var(--radius);
  transition: color .16s var(--ease), background .16s var(--ease);
  white-space: nowrap;
}
.nav a.nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav a.nav-link[aria-current="page"],
.nav a.nav-link.is-active { color: var(--gold-hi); }

.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: .5rem; }

/* Services dropdown */
.has-menu { position: relative; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-2);
  padding: .55rem .8rem;
  border-radius: var(--radius);
}
.menu-toggle:hover { color: #fff; background: rgba(255,255,255,.05); }
.menu-toggle.is-active { color: var(--gold-hi); }
.menu-toggle svg { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.has-menu[data-open="true"] .menu-toggle svg { transform: rotate(180deg); }

.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(560px, 88vw);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: .6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-menu[data-open="true"] .menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.menu a {
  display: block;
  padding: .7rem .8rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background .15s var(--ease);
}
.menu a:hover { background: var(--surface-3); }
.menu strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}
.menu span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }

@media (max-width: 1040px) {
  .nav, .nav-actions { display: none; }
}

/* Mobile nav */
.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1040px) { .burger { display: flex; } }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  padding: 7.5rem var(--gutter) 3rem;
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .32s var(--ease), visibility .32s;
}
body.nav-open .mobile-nav { transform: translateY(0); visibility: visible; }
body.nav-open { overflow: hidden; }
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text);
  text-decoration: none;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--gold-hi); }
.mobile-nav .mobile-label {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 .4rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.mobile-nav .btn { width: 100%; margin-top: 1.5rem; }

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 12vw, 9.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(216, 166, 61, .16), transparent 58%),
    radial-gradient(90% 70% at 10% 100%, rgba(48, 86, 130, .22), transparent 60%),
    linear-gradient(180deg, #0A1017 0%, #070A0E 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 80%);
}
.hero-inner { max-width: 940px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .gold { color: var(--gold-hi); }
.hero .lede { max-width: 58ch; font-size: clamp(1.1rem, 1.9vw, 1.38rem); }

.hero-sub {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
}
.hero-sub li {
  list-style: none;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: .55rem;
}
.hero-sub li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.hero-sub { padding-left: 0; }

/* Page hero (interior) */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(216, 166, 61, .13), transparent 60%),
    linear-gradient(180deg, #0A1017, #070A0E);
}
.page-hero h1 { font-size: clamp(2rem, 5.2vw, 4rem); }
.page-hero .lede { max-width: 60ch; }

.crumbs {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs span { color: var(--line-strong); }

/* ---------- Stats band ---------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.stat {
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.25rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-hi);
  display: block;
}
.stat-label {
  margin-top: .7rem;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Cards --------------------------------------------------------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  transition: border-color .22s var(--ease), transform .22s var(--ease),
              background .22s var(--ease);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-2); font-size: .96rem; }

a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover {
  border-color: rgba(216, 166, 61, .5);
  background: var(--surface-2);
  transform: translateY(-3px);
}
a.card:hover h3 { color: var(--gold-hi); }

.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--gold-dim);
  border: 1px solid rgba(216, 166, 61, .28);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--gold-hi); fill: none; stroke-width: 1.6; }

.card-more {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.card-more::after { content: "→"; transition: transform .2s var(--ease); }
a.card:hover .card-more::after { transform: translateX(5px); }

.card-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.tag {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .25rem .65rem;
}

/* Numbered / feature list cards */
.feature {
  border-left: 2px solid var(--gold);
  padding-left: 1.4rem;
}
.feature h3 { font-size: 1.18rem; }
.feature p { color: var(--text-2); font-size: .95rem; margin: 0; }

.step { position: relative; padding-top: 2.6rem; }
.step-num {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
}
.step::before {
  content: "";
  position: absolute;
  top: 1.75rem; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-2); font-size: .93rem; margin: 0; }

/* ---------- Checklists ---------------------------------------------------- */

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text-2);
  line-height: 1.55;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .5rem;
  width: 12px; height: 6px;
  border: 2px solid var(--gold);
  border-top: 0; border-right: 0;
  border-radius: 1px;
  transform: rotate(-45deg);
}
.checks strong { color: var(--text); font-weight: 600; }

.checks-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .85rem 2rem; }

/* ---------- Panels / callouts -------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
}
.panel-gold {
  background: linear-gradient(150deg, rgba(216,166,61,.12), rgba(216,166,61,.03));
  border-color: rgba(216, 166, 61, .32);
}
.panel-alert { border-left: 3px solid var(--alert); }

.quote {
  border-left: 3px solid var(--gold);
  padding: .4rem 0 .4rem 1.6rem;
  margin: 0;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.22;
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
  font-weight: 600;
}
.quote footer {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

/* ---------- Credentials strip -------------------------------------------- */

.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cred {
  background: var(--ink-2);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.cred svg { width: 30px; height: 30px; margin: 0 auto .8rem; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.cred strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
}
.cred span { display: block; font-size: .78rem; color: var(--muted); margin-top: .3rem; line-height: 1.45; }

/* ---------- Coverage / areas --------------------------------------------- */

.area-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-top: 3px solid var(--gold);
}
.area-card h3 { margin-bottom: .3rem; }
.area-card .area-state {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

/* ---------- FAQ ----------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .3rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--gold-hi); }
.faq .faq-body { padding: 0 2.5rem 1.5rem 0; color: var(--text-2); max-width: 74ch; }

/* ---------- CTA band ------------------------------------------------------ */

.cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 140% at 20% 0%, rgba(216, 166, 61, .18), transparent 62%),
    linear-gradient(180deg, #0C1219, #070A0E);
}
.cta-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .cta-inner { grid-template-columns: 1.3fr .7fr; }
  .cta-inner .btn-row { margin-top: 0; justify-content: flex-end; }
}
.cta h2 { margin-bottom: .4rem; }

/* ---------- Forms --------------------------------------------------------- */

.form-grid { display: grid; gap: 1.15rem; }
/* Grid and flex children default to min-width:auto, so a <select> with long
   options or a <textarea>'s cols can inflate the track past the viewport. */
.form-grid > *, .field { min-width: 0; }
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: .45rem;
  font-weight: 600;
}
.field .req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: .8rem .9rem;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: #5D6B7D; }
.field select { appearance: none; cursor: pointer; background-image: none; }
.field select option { background: var(--surface); color: var(--text); }

.field-hint { font-size: .8rem; color: var(--muted); margin-top: .4rem; }

.form-note {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 1.2rem;
  line-height: 1.55;
}

.form-status {
  display: none;
  margin-top: 1.2rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .92rem;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(63, 207, 119, .12); border: 1px solid rgba(63, 207, 119, .4); color: #97E9B8; }
.form-status.err { background: rgba(224, 75, 75, .1); border: 1px solid rgba(224, 75, 75, .4); color: #F2A2A2; }

/* ---------- Contact rows -------------------------------------------------- */

.contact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.contact-row {
  background: var(--surface);
  padding: 1.4rem 1.5rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: background .16s var(--ease);
}
a.contact-row:hover { background: var(--surface-2); }
.contact-row > div { min-width: 0; }
.contact-row svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.6; flex: none; margin-top: .25rem; }
.contact-row .contact-label {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: .25rem;
}
.contact-row .contact-value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  overflow-wrap: anywhere;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  text-transform: uppercase;
}
.contact-row .contact-note { font-size: .85rem; color: var(--muted); margin-top: .2rem; }

/* Addresses and domains read better in their own case, and the extra width
   uppercase costs is what forces a long one to break mid-word in a narrow
   column. */
a.contact-row[href^="mailto:"] .contact-value,
a.contact-row[href^="http"] .contact-value {
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Footer -------------------------------------------------------- */

.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-bottom: 3rem;
}
.footer-brand { grid-column: span 2; max-width: 360px; }
@media (max-width: 640px) { .footer-brand { grid-column: span 1; } }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 1.1rem; }

.footer-col h4 {
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a { color: var(--text-2); text-decoration: none; }
.footer-col a:hover { color: var(--gold-hi); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: .82rem;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-hi); }

/* ---------- Mobile sticky call bar --------------------------------------- */

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  background: rgba(7, 10, 14, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
  gap: .6rem;
}
.callbar .btn { flex: 1; padding: .8rem .5rem; font-size: .92rem; }
@media (max-width: 700px) {
  .callbar { display: flex; }
  body { padding-bottom: 4.5rem; }
  body.nav-open .callbar { display: none; }
}

/* ---------- Reveal on scroll --------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Photography --------------------------------------------------- */

/* Every photo slot reserves its space before the file loads, so nothing on the
   page jumps. Slots that are still empty render as a labelled plate rather
   than a broken image. */

.photo {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--surface-2);
}

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.photo-frame .photo { height: 100%; border-radius: 0; }
.photo-frame.tall { aspect-ratio: 3 / 4; }
.photo-frame.wide { aspect-ratio: 16 / 9; }
.photo-frame.square { aspect-ratio: 1 / 1; }

/* The ratios above describe the *empty* plate. Once a real photo is in the
   slot it sizes itself, so nothing is ever cropped to fit a shape the page
   guessed at — the width/height attributes the build writes onto the <img>
   still reserve the right space, so there is no layout shift either. */
.photo-frame:has(> .photo) { aspect-ratio: auto; }
.photo-frame:has(> .photo) .photo { height: auto; }

/* Portraits beside body copy shouldn't tower over it. */
.split .photo-frame:has(> .photo[data-orient="portrait"]),
.card .photo-frame:has(> .photo[data-orient="portrait"]),
.panel .photo-frame:has(> .photo[data-orient="portrait"]) {
  max-width: 420px;
}

/* Slots that sit side by side need to match each other, even when the photos
   in them don't. Crop to a shared portrait ratio, biased upward so faces stay
   in frame. Declared after the portrait cap above, which it ties with on specificity. */
.panel .photo-frame.matched:has(> .photo),
.card .photo-frame.matched:has(> .photo),
.split .photo-frame.matched:has(> .photo) { aspect-ratio: 4 / 5; max-width: 300px; }
.photo-frame.matched .photo { height: 100%; object-fit: cover; object-position: 50% 20%; }


/* Browsers without :has() keep the authored ratio and crop — acceptable, and
   vanishingly rare now. Hero backgrounds always cover, photo or not. */
.hero-media .photo { height: 100%; }

/* A caption strip that sits over the bottom of a photo. */
.photo-frame figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.2rem .9rem;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  background: linear-gradient(to top, rgba(7, 10, 14, .92), transparent);
}

.photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 100%;
  min-height: 200px;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 12px, transparent 12px 24px),
    var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.photo-frame .photo-empty { border: 0; border-radius: 0; }
.photo-empty svg { width: 34px; height: 34px; color: var(--gold); opacity: .55; }
.photo-slot {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--gold);
}
.photo-hint { font-size: .84rem; max-width: 34ch; line-height: 1.45; }

/* Hero background photography sits behind the gradient, never over it. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero-media .photo {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  opacity: .34;
  filter: grayscale(.35) contrast(1.05);
}
.hero:has(.hero-media .photo)::before,
.page-hero:has(.hero-media .photo)::before {
  opacity: .88;
}

/* Media beside copy in a .split — keeps a sane height on tall viewports. */
.split .photo-frame { max-height: 560px; }

/* ---------- Founder block (homepage "why" section) ------------------------ */

/* Portrait and credit sit side by side, so the column reads as one block
   rather than a heading, a button, and a photo floating below them. */
.founder {
  display: flex;
  align-items: flex-end;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
}
.founder .photo-frame { flex: 0 0 auto; width: min(260px, 46%); }
.founder figcaption {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-bottom: .35rem;
}
.founder figcaption strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  line-height: 1.05;
}
.founder figcaption span {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.founder figcaption .link-arrow { margin-top: .9rem; font-size: .92rem; }

@media (max-width: 560px) {
  .founder { flex-direction: column; align-items: stretch; }
  .founder .photo-frame { width: min(260px, 70%); }
  .founder figcaption { padding-bottom: 0; }
}

/* ---------- Utilities ----------------------------------------------------- */

/* Manual line breaks are art direction for wide screens only. */
@media (max-width: 720px) {
  br.br-lg { display: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #0B0F14;
  padding: .8rem 1.2rem;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  /* clip-path also clips descendants; the legacy clip property does not, which
     left the honeypot input measuring wider than the viewport. */
  clip-path: inset(50%);
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Clipping is paint-only, so a field inside still lays out at full width.
   Shrink the box itself — this is the spam honeypot, never seen or focused. */
.sr-only input { width: 1px; min-width: 0; padding: 0; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
