/* ==========================================================================
   Pierce Volunteer Fire Department — stylesheet
   ========================================================================== */

:root {
  --topbar-height: 37px;
  --site-header-height: 89px;
  --red-900: #5c0a0a;
  --red-800: #7a0e0e;
  --red-700: #971313;
  --red-600: #b8181a;
  --red-500: #d4211f;
  --ember: #f2a03d;
  --ink-900: #14100e;
  --ink-800: #201a17;
  --ink-700: #34281f;
  --paper-050: #fdfaf6;
  --paper-100: #f7f1e8;
  --paper-200: #ede3d4;
  --stone-600: #6b6157;
  --stone-500: #857a6d;
  --line: #e4d9c8;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(20, 16, 14, 0.08);
  --shadow-md: 0 10px 30px rgba(20, 16, 14, 0.14);
  --shadow-lg: 0 24px 60px rgba(20, 16, 14, 0.22);
}

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--paper-050);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: calc(var(--topbar-height) + var(--site-header-height));
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink-900);
}

p {
  margin: 0 0 1.1em;
}

ul {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

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

section {
  padding: 88px 0;
}

.section-tight {
  padding: 56px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-700);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ember);
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.section-head p {
  color: var(--stone-600);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.lede {
  font-size: 1.1rem;
  color: var(--stone-600);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--red-700);
  color: var(--red-700);
}

.btn-outline:hover {
  background: var(--red-700);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--ink-900);
  color: #cfc4b8;
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: var(--ember);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar a:hover {
  color: #fff;
}

.topbar .emergency {
  color: var(--ember);
  font-weight: 700;
  letter-spacing: 0.03em;
}

header.site-header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 119;
  background: rgba(253, 250, 246, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.22s ease, background 0.22s ease;
}

header.site-header.is-stuck {
  background: rgba(253, 250, 246, 0.97);
  box-shadow: 0 14px 34px rgba(20, 16, 14, 0.16);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-600), var(--red-900));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex: none;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--stone-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

nav.primary-nav a {
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--ink-700);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  background: var(--red-700);
  color: #fff;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink-900);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------------------
   Hero (video background)
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 84vh;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 18px 30px rgba(20, 16, 14, 0.22);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: cover;
  object-position: center center;
}

iframe.hero-media {
  inset: 50% auto auto 50%;
  width: max(150vw, 266.7vh);
  height: max(84.375vw, 150vh);
  transform: translate(-50%, -50%);
  object-fit: initial;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 12, 8, 0.55) 0%, rgba(50, 12, 8, 0.62) 45%, rgba(92, 10, 10, 0.82) 100%),
    linear-gradient(100deg, rgba(151, 19, 19, 0.55), rgba(20, 16, 14, 0.35));
}

.hero-content {
  max-width: 980px;
  margin-inline: auto;
  padding-block: 46px 58px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-badge span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(242, 160, 61, 0.25);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  margin-bottom: 22px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 em {
  font-style: normal;
  color: var(--ember);
}

.hero p.lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 22px;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ember);
}

.hero-stat span {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* -------------------------------------------------------------------------
   Page hero (inner pages, no video)
   ------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: 96px 0 64px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(92, 10, 10, 0.92), rgba(20, 16, 14, 0.94)),
    radial-gradient(circle at 15% 20%, rgba(242, 160, 61, 0.18), transparent 45%);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 40px);
  pointer-events: none;
}

.page-hero .eyebrow {
  color: var(--ember);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  font-size: 1.08rem;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.breadcrumb a:hover {
  color: #fff;
}

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

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--stone-600);
  margin-bottom: 0;
  font-size: 0.98rem;
}

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--red-700);
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}

.card a.card-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.card a.card-link:hover svg {
  transform: translateX(4px);
}

/* Section backgrounds */

.section-alt {
  background: var(--paper-100);
  border-block: 1px solid var(--line);
}

.section-dark {
  background: linear-gradient(160deg, var(--ink-900), var(--red-900));
  color: #fff;
}

.section-dark h2,
.section-dark .section-head h2 {
  color: #fff;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.section-dark .eyebrow {
  color: var(--ember);
}

/* -------------------------------------------------------------------------
   About / split layout
   ------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--red-800), var(--ink-900));
}

.split-media img,
.split-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media .media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-800);
}

.checklist li span {
  flex: 1;
  min-width: 0;
}

.checklist svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  fill: var(--red-700);
}

/* Stat strip */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-strip .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--red-700);
}

.section-dark .stat-strip .stat strong {
  color: var(--ember);
}

.stat-strip .stat span {
  font-size: 0.85rem;
  color: var(--stone-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-dark .stat-strip .stat span {
  color: rgba(255, 255, 255, 0.7);
}

/* Timeline (history) */

.timeline {
  position: relative;
  margin-top: 16px;
  padding-left: 32px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ember);
  border: 3px solid var(--paper-050);
  box-shadow: 0 0 0 2px var(--red-700);
}

.timeline-year {
  font-family: var(--font-display);
  color: var(--red-700);
  letter-spacing: 0.04em;
  font-size: 1rem;
  margin-bottom: 6px;
  display: block;
}

.timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--stone-600);
  margin-bottom: 0;
}

/* CTA banner */

.cta-banner {
  border-radius: 20px;
  padding: 56px;
  background:
    linear-gradient(120deg, rgba(92, 10, 10, 0.94), rgba(20, 16, 14, 0.94)),
    radial-gradient(circle at 85% 20%, rgba(242, 160, 61, 0.25), transparent 55%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  max-width: 460px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   Forms (burn permit)
   ------------------------------------------------------------------------- */

.permit-layout {
  align-items: flex-start;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 40px;
}

.permit-sidebar .card {
  overflow-wrap: anywhere;
}

.permit-sidebar .checklist {
  gap: 16px;
}

.permit-sidebar .checklist li {
  line-height: 1.55;
}

.form-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 44px;
}

.form-shell .notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: #fff6ea;
  border: 1px solid #f0dcae;
  border-radius: 10px;
  margin-bottom: 34px;
  font-size: 0.95rem;
  color: #6b4d13;
}

.form-shell .notice svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: var(--ember);
  margin-top: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.form-field label .req {
  color: var(--red-700);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--paper-050);
  color: var(--ink-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red-600);
  box-shadow: 0 0 0 4px rgba(184, 24, 26, 0.12);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkbox-row input {
  margin-top: 3px;
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--red-700);
}

.checkbox-row label {
  font-size: 0.92rem;
  color: var(--ink-700);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
  background: var(--paper-050);
}

.checkbox-pill input {
  accent-color: var(--red-700);
  width: 16px;
  height: 16px;
}

.form-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-fineprint {
  font-size: 0.82rem;
  color: var(--stone-500);
}

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

footer.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(135px, 0.55fr) minmax(170px, 0.7fr) minmax(250px, 1.15fr);
  gap: 28px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-text strong,
.footer-brand .brand-text span {
  color: #fff;
}

.footer-brand {
  text-align: left;
}

.footer-brand .brand {
  justify-content: flex-start;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--red-700);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

footer h5 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 0.92rem;
}

footer ul a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  fill: var(--ember);
  flex: none;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   Utility
   ------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 98px;
  bottom: 18px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--red-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red-600);
  box-shadow: var(--shadow-lg);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(242, 160, 61, 0.8);
  outline-offset: 4px;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mike-chat-fab {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 96;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mike-chat-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(20, 16, 14, 0.28);
}

.mike-chat-fab:focus-visible {
  outline: 3px solid rgba(242, 160, 61, 0.85);
  outline-offset: 4px;
}

.mike-chat-fab img {
  width: 88%;
  height: 88%;
  margin: 6%;
  object-fit: contain;
}

.mike-chat-fab::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22a35a;
}

.mike-chat {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 95;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 126px));
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(228, 217, 200, 0.9);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mike-chat.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mike-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--red-800), var(--ink-900));
  color: #fff;
}

.mike-chat-avatar {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex: none;
}

.mike-chat-title {
  min-width: 0;
  flex: 1;
}

.mike-chat-title strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mike-chat-title span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.25;
}

.mike-chat-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.mike-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background: var(--paper-050);
}

.mike-message {
  max-width: 86%;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  line-height: 1.45;
  font-size: 0.95rem;
}

.mike-message.bot {
  border-bottom-left-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-800);
}

.mike-message.user {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  background: var(--red-700);
  color: #fff;
}

.mike-message a {
  color: var(--red-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mike-message.user a {
  color: #fff;
}

.mike-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: var(--paper-050);
}

.mike-suggestion {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--red-700);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 10px;
}

.mike-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mike-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink-800);
  background: var(--paper-050);
}

.mike-chat-input:focus {
  outline: none;
  border-color: var(--red-600);
  box-shadow: 0 0 0 4px rgba(184, 24, 26, 0.12);
}

.mike-chat-send {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--red-700);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mike-chat-send svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .back-to-top {
    transition: none;
  }
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.badge-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper-100);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-700);
  font-weight: 600;
}

.callout {
  background: var(--paper-100);
  border-left: 4px solid var(--red-700);
  border-radius: 0 10px 10px 0;
  padding: 22px 26px;
  margin: 28px 0;
  color: var(--ink-700);
}

.callout strong {
  color: var(--red-800);
}

.figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ink-900);
}

.figure img {
  width: 100%;
}

.figure figcaption {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--stone-500);
  background: var(--paper-100);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .permit-layout { grid-template-columns: 1fr; }
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .nav-wrap {
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .brand-text span {
    font-size: 0.68rem;
  }

  nav.primary-nav {
    gap: 2px;
  }

  nav.primary-nav a {
    padding: 9px 7px;
    font-size: 0.8rem;
  }

  .header-cta .btn {
    padding: 12px 16px;
    font-size: 0.82rem;
  }

  .header-cta .btn-primary-label {
    display: none;
  }

  .header-cta .btn-mobile-label {
    display: inline !important;
  }
}

@media (max-width: 860px) {
  .topbar .topbar-links { display: none; }

  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-050);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  nav.primary-nav.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  nav.primary-nav a {
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .header-cta .btn-primary-label {
    display: none;
  }

  .header-cta .btn-mobile-label {
    display: inline !important;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .form-grid,
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 36px 28px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-wrap {
    gap: 12px;
  }

  .header-cta .btn {
    display: none;
  }
}

@media (max-width: 640px) {
  :root { --site-header-height: 75px; }
  section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  iframe.hero-media {
    width: max(180vw, 320vh);
    height: max(101.25vw, 180vh);
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-top-color: rgba(255, 255, 255, 0.18);
    padding-top: 16px;
  }
  .hero-stat {
    min-height: 82px;
    padding: 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(20, 16, 14, 0.18);
    text-align: center;
  }
  .hero-stat strong {
    font-size: 1.65rem;
    line-height: 1;
  }
  .hero-stat span {
    display: block;
    margin-top: 9px;
    font-size: 0.68rem;
    line-height: 1.25;
    letter-spacing: 0.03em;
  }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .hero-content {
    padding-block: 64px 48px;
    text-align: left;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-shell { padding: 26px; }
  .checkbox-row label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.55;
    letter-spacing: 0;
    text-transform: none;
  }
  .back-to-top {
    right: 76px;
    bottom: 12px;
    width: 52px;
    height: 52px;
  }
  .mike-chat-fab {
    right: 14px;
    bottom: 12px;
    width: 52px;
    height: 52px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }
  .mike-chat-fab.is-visible,
  .mike-chat-fab[aria-expanded="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mike-chat {
    right: 12px;
    bottom: 76px;
    width: calc(100vw - 24px);
    height: min(560px, calc(100vh - 104px));
  }
  .cta-banner { border-radius: 14px; }
  .page-hero { padding: 84px 0 48px; }
}
