/* ================================================================
   BFPD — MAIN STYLESHEET
   Global reset, variables, typography, layout, shared section styles
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400;1,9..40,500&family=Oswald:wght@400;500;600;700&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --fire: #C8382A;
  --fire-dark: #a82e22;
  --ember: #E07B20;
  --ember-dark: #c06a18;
  --night: #0D1821;
  --steel: #243040;
  --slate: #3A4F60;
  --ash: #EEE9E2;
  --smoke: #8095A5;
  --bone: #F8F6F2;
  --gold: #D4A827;
  --gold-dark: #b8921f;
  --white: #FFFFFF;
  --text: #2C2C2C;
  --text-light: #5A6A78;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-stat: 'Oswald', 'Impact', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 200ms ease-out;
  --transition-smooth: 400ms var(--ease-out-expo);

  --section-pad: clamp(48px, 8vw, 96px);
  --container: min(1280px, 100% - 3rem);

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(200,56,42,0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: var(--font-body); font-size: inherit; }
button { cursor: pointer; }

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0; white-space: nowrap;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400; /* Bebas Neue only has 400 */
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 { font-size: clamp(72px, 12vw, 130px); }
h2 { font-size: clamp(40px, 6vw, 64px); }
h3 { font-size: clamp(22px, 3vw, 30px); }

.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
  display: block;
}

/* ===== CONTAINER ===== */
.container {
  width: var(--container);
  margin: 0 auto;
}

/* ===== SECTION BASES ===== */
.section { padding: var(--section-pad) 0; position: relative; }
.section--bone { background: var(--bone); }
.section--ash { background: var(--ash); }
.section--night { background: var(--night); color: var(--white); }
.section--steel { background: var(--steel); color: var(--white); }
.section--fire { background: var(--fire); color: var(--white); }

/* Diagonal dividers */
.section--clip-top {
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
  margin-top: -40px;
  padding-top: calc(var(--section-pad) + 40px);
}
.section--clip-top-r {
  clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%);
  margin-top: -40px;
  padding-top: calc(var(--section-pad) + 40px);
}
.section--clip-both {
  clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
  margin-top: -40px;
  padding-top: calc(var(--section-pad) + 40px);
  padding-bottom: calc(var(--section-pad) + 40px);
}

/* Section heading block */
.section-head { margin-bottom: 48px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; color: var(--text-light); max-width: 560px; }
.section-head--center { text-align: center; }
.section-head--center p { margin: 0 auto; }
.section-head--light p { color: var(--smoke); }
.section-head .accent-bar {
  width: 48px; height: 4px; background: var(--fire);
  border-radius: 2px; margin-top: 16px;
}
.section-head--center .accent-bar { margin: 16px auto 0; }

/* Decorative watermark text */
.watermark {
  font-family: var(--font-display);
  font-size: clamp(120px, 25vw, 300px);
  color: var(--slate);
  opacity: 0.05;
  position: absolute;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  letter-spacing: 0.05em;
}

/* ===== UTILITY BAR ===== */
.utility-bar {
  background: var(--steel);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  padding: 9px 0;
  position: relative;
  z-index: 1001;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.utility-bar a { color: rgba(255,255,255,0.9); font-weight: 500; }
.utility-bar a:hover { color: var(--gold); }
.utility-bar__right { display: flex; align-items: center; gap: 16px; }
.utility-bar__phone { display: flex; align-items: center; gap: 6px; }
.utility-bar__911 {
  display: flex; align-items: center; gap: 6px;
  color: var(--white); font-weight: 700;
  letter-spacing: 0.04em;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--fire);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  background: var(--night);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero-bg.svg');
  opacity: 0.4;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--smoke);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-hero .breadcrumb a { color: var(--ember); }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb .sep { opacity: 0.4; }

/* ===== GRID UTILITIES ===== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-6 { grid-template-columns: 1fr; }
}

/* ===== SPLIT LAYOUTS ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--night);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--white);
  letter-spacing: 0.04em;
}
.footer-logo img, .footer-logo svg { width: 36px; height: 36px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; max-width: 300px; opacity: 0.6; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-base);
}
.footer-social a:hover { background: var(--ember); }
.footer-social a svg { width: 18px; height: 18px; color: var(--white); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 5px 0;
  opacity: 0.55;
  transition: opacity var(--transition-base), color var(--transition-base);
}
.footer-col a:hover { opacity: 1; color: var(--gold); }

.footer-donate {
  margin-top: 12px;
  padding: 14px 18px;
  background: rgba(224,123,32,0.1);
  border: 1px solid rgba(224,123,32,0.2);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.footer-donate a { color: var(--ember); font-weight: 600; opacity: 1; }
.footer-donate a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  opacity: 0.45;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { opacity: 0.8; }

.footer-badge-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ===== PRINT ===== */
@media print {
  .utility-bar, .site-nav, .hero, .embers, .scroll-chevron,
  .mobile-overlay, .hamburger, .site-footer { display: none !important; }
  .section--night, .section--steel, .section--fire {
    background: #fff !important; color: #000 !important;
  }
  body { font-size: 12pt; }
  .container { max-width: 100%; }
}
