/* ═══════════════════════════════════════════════
   PGM FIRE SYSTEMS — Shared Stylesheet
   ═══════════════════════════════════════════════ */

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

:root {
  --navy:  #111111;
  --navy2: #1a1a1a;
  --red:   #C8102E;
  --off:   #F8F9FB;
  --gray:  #E5E7EB;
  --muted: #5B6472;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }
body { font-family: "Inter", sans-serif; color: var(--navy); background: var(--white); overflow-x: hidden; }

/* ── HEADER ─────────────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 28px 0;
}
#header.scrolled { background: var(--navy); box-shadow: 0 2px 24px rgba(0,0,0,.35); padding: 14px 0; }
#header.solid { background: var(--navy); padding: 18px 0; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 110px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.logo-text { color: var(--white); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.logo-text span { display: block; font-weight: 400; letter-spacing: .06em; opacity: .7; font-size: 10px; }
nav { display: flex; align-items: center; gap: 36px; }
nav a { white-space: nowrap; color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .02em; transition: color .2s; }
nav a:hover { color: var(--white); }
nav a.active { color: var(--white); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.nav-whatsapp { background: transparent; color: var(--white) !important; padding: 10px 18px; font-size: 13px !important; font-weight: 600 !important; letter-spacing: .04em; border: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3) !important; padding-bottom: 10px !important; display: inline-flex; align-items: center; gap: 7px; transition: border-color .2s, background .2s !important; }
.nav-whatsapp:hover { border-color: white !important; background: rgba(255,255,255,.08) !important; }
.nav-whatsapp::before { content: ''; display: inline-block; width: 15px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center/contain; flex-shrink: 0; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.burger span { width: 24px; height: 2px; background: white; transition: .3s; }

/* ── PAGE HEADER ─────────────────────────────────── */
.page-header {
  position: relative; padding: 160px 0 80px;
  background: var(--navy);
  overflow: hidden;
}
.page-header-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .18;
}
.page-header-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 12px; color: rgba(255,255,255,.4); letter-spacing: .06em; text-transform: uppercase; }
.breadcrumb a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: rgba(255,255,255,.7); }
.breadcrumb span { color: var(--red); }
.page-header h1 { font-family: "Space Grotesk", sans-serif; font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -0.02em; color: var(--white); line-height: 1.05; }
.page-header p { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 600px; margin-top: 16px; }

/* ── CONTAINER ───────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ── SECTION TYPOGRAPHY ──────────────────────────── */
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--red); }
.section-h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--navy); text-wrap: pretty; }
.section-lead { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 600px; margin-top: 16px; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary { background: var(--red); color: var(--white); padding: 15px 32px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none; border: 2px solid var(--red); transition: background .2s, transform .15s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: #a00e25; border-color: #a00e25; transform: translateY(-1px); }
.btn-outline-navy { background: transparent; color: var(--navy); padding: 15px 32px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none; border: 2px solid var(--navy); transition: background .2s, color .2s, transform .15s; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline-navy:hover { background: var(--navy); color: white; transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: var(--white); padding: 15px 32px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none; border: 2px solid rgba(255,255,255,.45); transition: border-color .2s, background .2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,.08); }
.btn-whatsapp { background: #25D366; color: white; padding: 15px 32px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none; border: 2px solid #25D366; transition: background .2s, transform .15s; display: inline-flex; align-items: center; gap: 8px; }
.btn-whatsapp:hover { background: #1eba57; border-color: #1eba57; transform: translateY(-1px); }

/* ── CTA FINAL ───────────────────────────────────── */
#cta-final { background: var(--navy); padding: 120px 0; position: relative; overflow: hidden; }
#cta-final::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,.12) 0%, transparent 70%); top: 50%; right: -100px; transform: translateY(-50%); pointer-events: none; }
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; position: relative; }
.cta-inner .section-eyebrow { justify-content: center; }
.cta-inner .section-eyebrow::before { display: none; }
.cta-inner .section-h2 { color: var(--white); margin-bottom: 20px; }
.cta-sub { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.6); margin-bottom: 48px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────────── */
#footer { background: #0a0a0a !important; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo img { height: 48px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.footer-desc { font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.4); max-width: 280px; }
.footer-col h4 { font-family: "Space Grotesk", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.55); font-size: 14px; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: white; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact-item svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.5; }
.footer-socials { display: flex; gap: 12px; margin-top: 24px; }
.footer-social { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); text-decoration: none; transition: border-color .2s, color .2s; }
.footer-social:hover { border-color: var(--red); color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.25); }

/* ── WHATSAPP FLOAT ──────────────────────────────── */
.wa-float { position: fixed; bottom: 32px; right: 32px; z-index: 200; width: 52px; height: 52px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: transform .2s, box-shadow .2s; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.wa-float svg { color: white; }

/* ── ANIMATIONS ──────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }
.fade-up.d3 { transition-delay: .3s; }
.fade-up.d4 { transition-delay: .4s; }

/* ── MOBILE NAV ──────────────────────────────────── */
#mobile-nav { display: none; position: fixed; inset: 0; z-index: 99; background: var(--navy); flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
#mobile-nav.open { display: flex; }
#mobile-nav a { color: white; font-size: 22px; text-decoration: none; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
#mobile-nav .close-btn { position: absolute; top: 28px; right: 28px; cursor: pointer; color: white; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .header-inner { padding: 0 24px; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .burger { display: flex; }
  .container { padding: 0 24px; }
  .page-header { padding: 130px 0 60px; }
  .page-header-content { padding: 0 24px; }
  #cta-final { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 1100px) { .logo-text { display: none; } nav { gap: 24px; } }

/* ── TYPE RHYTHM ── */
body .section-eyebrow{margin-bottom:20px}
body .section-h2{line-height:1.12}
body .section-h2 + p,body .section-h2 + .section-lead,body .section-h2 + .historia-body{margin-top:24px}
body .section-h2 ~ p{line-height:1.8;max-width:62ch;text-wrap:pretty}
body .section-h2 ~ p + p{margin-top:16px}
body .page-hero h1 + p,body .page-hero-sub{margin-top:20px}
.breadcrumb{flex-wrap:wrap}.breadcrumb a,.breadcrumb span{white-space:nowrap}
.page-header p{margin-top:20px}
