/* =========================================================
   MIAMI FIRE EXTINGUISHERS — style.css
   Palette: steel navy + signal red + clean white
   Fonts: Barlow Condensed (display) + DM Sans (body)
   ========================================================= */

/* ── Tokens ── */
:root {
  --red:      #C0272D;
  --red-dark: #8B1A1E;
  --navy:     #1E2D3D;
  --navy-mid: #2C3E50;
  --silver:   #F2F4F7;
  --white:    #FFFFFF;
  --txt:      #1A1A1A;
  --txt-mid:  #4A5568;
  --txt-light:#8A9BAD;
  --border:   #DDE1E6;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--txt);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--red);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav-links { display: flex; gap: 32px; list-style: none; flex: 1; justify-content: center; }
.nav-links a {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 4px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active {
  color: var(--white);
  border-bottom: 2px solid var(--red);
}

/* ── Nav right buttons ── */
.nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-btn-email {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
}
.nav-btn-email:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.nav-btn-email svg { flex-shrink: 0; }
.nav-btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
  border: none;
  white-space: nowrap;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.nav-btn-phone:hover { background: var(--red-dark); color: var(--white); }
.nav-btn-phone svg { flex-shrink: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  background: transparent;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-red {
  border: 2px solid var(--red);
  color: var(--red);
  background: transparent;
}
.btn-outline-red:hover { background: var(--red); color: var(--white); }

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 96px 24px 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,39,45,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 760px;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(192,39,45,0.4);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--red); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin-bottom: 38px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── CTA Strip ── */
.cta-strip {
  background: var(--silver);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
}
.cta-strip-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--txt);
}
.cta-strip-text strong { color: var(--red); }
.cta-strip .btn { white-space: nowrap; }

.cta-strip--dark {
  background: var(--navy-mid);
  border-color: transparent;
}
.cta-strip--dark .cta-strip-text { color: var(--white); }
.cta-strip--dark .cta-strip-text strong { color: #f4a7aa; }

/* ── Section base ── */
.section { padding: 80px 24px; }
.section--alt { background: var(--silver); }
.container { max-width: 1140px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--navy);
}
.section-lead {
  font-size: 1.05rem;
  color: var(--txt-mid);
  max-width: 600px;
  margin-bottom: 52px;
  line-height: 1.7;
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.service-card {
  background: var(--white);
  padding: 34px 30px;
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  transition: background 0.2s;
}
.service-card:hover { background: #fafbfc; }
.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--red);
}
.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p { font-size: 0.95rem; color: var(--txt-mid); line-height: 1.7; }

/* ── Why grid ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
}
.why-item { display: flex; gap: 18px; }
.why-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 7px;
}
.why-item h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 7px;
  color: var(--navy);
}
.why-item p { font-size: 0.93rem; color: var(--txt-mid); line-height: 1.65; }

/* ── FAQ ── */
.faq-list { max-width: 780px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); overflow: hidden; }
.faq-question {
  width: 100%;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left;
  padding: 22px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  outline: none;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--red); }
.faq-item.is-open .faq-question { color: var(--red); }
.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.3s;
  background: transparent;
}
.faq-item.is-open .faq-icon {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(45deg);
}
.faq-icon svg {
  width: 13px;
  height: 13px;
  stroke: #888;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: stroke 0.25s;
  display: block;
}
.faq-item.is-open .faq-icon svg { stroke: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.is-open .faq-answer { max-height: 600px; }
.faq-answer-inner {
  padding: 0 0 22px;
  font-size: 0.97rem;
  color: var(--txt-mid);
  line-height: 1.75;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
  border-bottom: 3px solid var(--red);
}
.page-hero-inner { max-width: 1140px; margin: 0 auto; }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  font-size: 1.05rem;
  max-width: 600px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ── About layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.img-block {
  background: var(--silver);
  border-radius: 4px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.img-block svg { width: 80px; height: 80px; color: var(--border); }
.check-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--txt-mid);
}
.check-list li svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* ── Contact layout ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}
.contact-detail { display: flex; gap: 16px; margin-bottom: 32px; }
.contact-detail svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.contact-detail h4 { font-weight: 700; margin-bottom: 4px; font-size: 0.95rem; color: var(--navy); }
.contact-detail p { font-size: 0.93rem; color: var(--txt-mid); line-height: 1.6; }

.form-wrap {
  background: var(--silver);
  border-radius: 4px;
  padding: 44px;
  border: 1px solid var(--border);
}
.form-wrap h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-wrap p { font-size: 0.9rem; color: var(--txt-mid); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--txt);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--red); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: var(--txt-light); margin-top: 12px; text-align: center; }

/* ── Final CTA ── */
.final-cta {
  background: var(--navy);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.final-cta h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.final-cta p { color: rgba(255,255,255,0.72); font-size: 1.05rem; margin-bottom: 36px; }
.final-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  background: #141e28;
  color: rgba(255,255,255,0.55);
  padding: 52px 24px 28px;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand-name svg { width: 20px; height: 20px; color: var(--red); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { font-size: 0.8rem; text-align: center; }

/* ── Service areas grid ── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.area-group h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.area-group ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.area-group li { font-size: 0.9rem; color: var(--txt-mid); }

/* ── Card learn more link ── */
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.card-link:hover { color: var(--red-dark); }

/* ── Related services ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  transition: border-color 0.2s, background 0.2s;
}
.related-card:hover { border-color: var(--red); background: #fdf9f9; color: var(--navy); }
.related-arrow { color: var(--red); font-size: 1.1rem; }

/* ── Map embed ── */
.map-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── Hidden SEO links ── */
a.seo-link {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: none !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* ── Mobile nav ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.82);
  font-size: 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--white); }
.mobile-menu-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.mobile-menu-contact a {
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(255,255,255,0.6);
}
.mobile-menu-contact a.phone-link {
  color: var(--white);
  background: var(--red);
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 1rem;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 1060px) {
  .nav-btns { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 24px; }
  .hero { padding: 72px 24px 64px; }
}
@media (max-width: 680px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; }
  .form-wrap { padding: 28px 20px; }
  .cta-strip .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .final-cta-btns { flex-direction: column; align-items: center; }
  .final-cta-btns .btn { width: 100%; justify-content: center; }
  .section { padding: 48px 20px; }
  .hero { padding: 56px 20px 48px; }
  .page-hero { padding: 44px 20px; }
  .faq-question { font-size: 0.95rem; padding: 18px 0; }
  .contact-grid { gap: 32px; }
  .nav-inner { height: 72px; padding: 0 20px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .areas-grid { grid-template-columns: 1fr; }
}
