/* shared.css — Fire Safety Fresno */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }

:root {
  --black:  #080808;
  --ash:    #111111;
  --ember:  #181010;
  --border: #2A1A1A;
  --off:    #F0EAE0;
  --muted:  #7A6A60;
  --red:    #C8281A;
  --red-lt: #E53020;
  --red-dk: #8A1A10;
  --orange: #D95A18;
  --gold:   #E5901C;
  --green:  #39B96A;
  --danger: #D95252;
}

html { scroll-behavior: smooth }

body {
  background: var(--black);
  color: var(--off);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1500;
  background: rgba(8,8,8,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 0 6%; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--off);
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name {
  font-family: 'Oswald', sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-logo-name span { color: var(--red); }
.nav-logo-sub {
  font-size: 9px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-top: 2px;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--off); }
.btn-nav {
  padding: 10px 22px;
  background: var(--red); color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background .2s;
}
.btn-nav:hover { background: var(--red-lt); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--off); }

/* ── PAGE HERO ── */
.page-hero {
  padding: 120px 6% 72px;
  background: linear-gradient(135deg, #0D0505 0%, #120808 60%, #080808 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(200,40,26,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .inner { max-width: 860px; position: relative; z-index: 1; }
.page-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.page-label::before { content: ''; display: block; width: 28px; height: 2px; background: var(--red); }
.page-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700; line-height: .92;
  text-transform: uppercase; letter-spacing: -.01em;
  margin-bottom: 22px;
}
.page-hero h1 .acc { color: var(--red); }
.page-hero h1 .acc2 { color: var(--orange); }
.page-hero p {
  font-size: 17px; color: var(--muted);
  max-width: 600px; line-height: 1.75; margin-bottom: 32px;
}
.page-hero p strong { color: var(--off); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary {
  padding: 15px 36px;
  background: var(--red); color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background .2s;
}
.btn-primary:hover { background: var(--red-lt); }
.btn-ghost {
  padding: 15px 36px;
  background: transparent; color: var(--off);
  font-family: 'Oswald', sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(240,234,224,.2); cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: border-color .2s;
}
.btn-ghost:hover { border-color: var(--off); }

/* ── SECTIONS ── */
.sec { padding: 80px 6%; }
.sec-alt { background: #0D0808; }
.sec-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.sec-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700; line-height: .92;
  text-transform: uppercase; margin-bottom: 18px;
}
.sec-title .acc { color: var(--red); }
.sec-title .acc2 { color: var(--orange); }
.sec-body {
  font-size: 15px; color: var(--muted);
  max-width: 520px; line-height: 1.75; margin-bottom: 0;
}
.sec-inner { max-width: 1200px; margin: 0 auto; }

/* ── CARD GRID ── */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1px; background: var(--border); margin-top: 48px;
}
.card {
  background: #110A0A; padding: 28px 24px;
  position: relative; display: flex; flex-direction: column; gap: 12px;
  transition: background .2s;
}
.card:hover { background: #170D0D; }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
}
.card-tag {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
}
.card h3 {
  font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700;
  text-transform: uppercase; line-height: 1.1;
}
.card p { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; }
.card-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 4px 10px;
  display: inline-block; width: fit-content;
}
.badge-critical { background: rgba(200,40,26,.12); color: var(--red); border: 1px solid rgba(200,40,26,.3); }
.badge-advisory { background: rgba(217,90,24,.12); color: var(--orange); border: 1px solid rgba(217,90,24,.3); }
.badge-ok { background: rgba(57,185,106,.1); color: var(--green); border: 1px solid rgba(57,185,106,.3); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 1px; margin-top: 48px; }
.faq-item {
  background: #110A0A; padding: 26px 28px;
  border-left: 3px solid var(--red);
}
.faq-item h4 {
  font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600;
  text-transform: uppercase; margin-bottom: 10px;
}
.faq-item p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── CTA BAND ── */
.cta-band {
  background: #0D0808; padding: 72px 6%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-band .sec-title { margin-bottom: 14px; }
.cta-band .sec-body { max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── BLOG PROSE ── */
.prose {
  max-width: 780px; margin: 0 auto;
  padding: 112px 5% 80px;
}
.prose h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700; text-transform: uppercase;
  line-height: .92; letter-spacing: -.01em; margin-bottom: 20px;
}
.prose h1 .acc { color: var(--red); }
.prose .meta {
  font-size: .8rem; color: var(--muted); margin-bottom: 2.5rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); padding-bottom: 1.25rem;
}
.prose h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700; text-transform: uppercase;
  margin: 2.5rem 0 .75rem; color: var(--off);
}
.prose h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 18px; font-weight: 600; text-transform: uppercase;
  margin: 2rem 0 .5rem;
}
.prose p { color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; }
.prose ul, .prose ol { color: var(--muted); font-size: .95rem; line-height: 1.8; margin: 1rem 0 1.5rem 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--off); }
.fire-tip {
  background: #110A0A; border-left: 3px solid var(--red);
  padding: 1rem 1.25rem; margin: 1.5rem 0;
  font-size: .9rem; color: var(--muted); line-height: 1.7;
}
.fire-tip strong { color: var(--red); }
.blog-back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); text-decoration: none; margin-bottom: 2rem;
}
.blog-back:hover { color: var(--red-lt); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border); padding: 44px 6%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 14px; }
.footer-logo-name {
  font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--off); text-transform: uppercase;
}
.footer-logo-name span { color: var(--red); }
footer p { font-size: 13px; color: var(--muted); }

/* ── RESPONSIVE ── */
@media(max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .page-hero { padding: 100px 5% 56px; }
  .sec { padding: 56px 5%; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media(prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
