/* =========================================
   FSI New Mexico — Shared Stylesheet
   ========================================= */

/* --- Variables --- */
:root {
  --navy:        #1B3D6E;
  --navy-mid:    #2A5298;
  --navy-light:  #EEF2F8;
  --red:         #C8102E;
  --red-hover:   #A00D24;
  --gray-bg:     #F5F6F8;
  --gray-border: #E2E8F0;
  --text:        #1A1A2E;
  --text-muted:  #6B7280;
  --white:       #FFFFFF;
  --shadow:      0 2px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.15);
  --radius:      8px;
  --max-width:   1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
html { overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--gray { background: var(--gray-bg); }
.section--navy { background: var(--navy); }
.section--red  { background: var(--red); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* --- Typography --- */
.section-title   { font-size: 2.1rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; line-height: 1.2; }
.section-subtitle{ font-size: 1.05rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 40px; }
.text-center { text-align: center; }
.badge { display: inline-block; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.breadcrumb { font-size: .875rem; color: rgba(255,255,255,.6); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }

/* --- Buttons --- */
.btn { display: inline-block; font-weight: 700; padding: 12px 28px; border-radius: var(--radius); transition: all .2s; cursor: pointer; font-size: .95rem; border: 2px solid transparent; text-align: center; }
.btn-red    { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn-white  { background: #fff; color: var(--red); border-color: #fff; }
.btn-white:hover { background: #f0f0f0; }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- TOP BAR --- */
.topbar { background: var(--navy); color: rgba(255,255,255,.85); font-size: .82rem; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: rgba(255,255,255,.85); transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar svg { vertical-align: middle; margin-right: 4px; }

/* --- HEADER --- */
.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 20px; gap: 20px; max-width: 1400px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 52px; height: 52px; background: transparent; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 2px; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-text-top { font-size: 1.1rem; font-weight: 900; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.logo-text-bottom { font-size: .72rem; font-weight: 500; color: var(--red); font-style: italic; letter-spacing: .01em; }

.main-nav { display: flex; align-items: center; gap: 12px; }
.main-nav a { padding: 8px 16px; border-radius: 6px; font-size: .9rem; font-weight: 600; color: var(--navy); transition: color .2s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { display: none; }
.header-phone:hover { color: var(--red); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--navy); }
.hamburger svg { display: block; }

.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--gray-border); padding: 12px 20px 16px; }
.mobile-menu a { display: block; padding: 10px 12px; font-weight: 600; color: var(--navy); border-radius: 6px; }
.mobile-menu a:hover { background: var(--gray-bg); }
.mobile-menu.open { display: block; }

/* --- HERO --- */
.hero { background: linear-gradient(rgba(27,61,110,.88) 0%, rgba(27,61,110,.92) 100%), url('../images/building-fire-escape.jpg') center/cover no-repeat; padding: 80px 0 72px; }
.hero-img { flex: 0 0 180px; }
.hero-img img { width: 100%; border-radius: 10px; box-shadow: 0 6px 28px rgba(0,0,0,.4); display: block; }
.hero-tag { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); background: rgba(200,16,46,.15); display: inline-block; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: #6C9FD8; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 580px; margin-bottom: 32px; line-height: 1.7; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.hero-check { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.7); }
.hero-check svg { color: #4ADE80; flex-shrink: 0; }

/* Alert bar */
.alert-bar { background: var(--red); padding: 14px 0; }
.alert-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.alert-bar p { color: #fff; font-weight: 700; font-size: 1rem; }
.alert-bar-right { display: flex; align-items: center; gap: 16px; }
.alert-bar-right span { color: rgba(255,255,255,.9); font-size: .88rem; }

/* --- CARDS --- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-icon { width: 60px; height: 60px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon.red  { background: #FEE2E2; color: var(--red); }
.card-icon.yellow { background: #FEF9C3; color: #B45309; }
.card-icon.orange { background: #FFEDD5; color: #C2410C; }
.card h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.card .more-link { font-size: .88rem; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 4px; transition: gap .2s; }
.card .more-link:hover { gap: 8px; }

/* Why-us dark cards */
.dark-card { background: rgba(255,255,255,.07); border-radius: var(--radius); padding: 24px; transition: background .2s; }
.dark-card:hover { background: rgba(255,255,255,.12); }
.dark-card .dc-icon { font-size: 1.8rem; margin-bottom: 10px; }
.dark-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.dark-card p  { font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.6; }

/* Stat cards */
.stat-card { border-radius: var(--radius); padding: 24px; }
.stat-card.orange { background: #FFF7ED; border: 1px solid #FDBA74; }
.stat-card.red    { background: #FEF2F2; border: 1px solid #FCA5A5; }
.stat-card.navy   { background: var(--navy-light); border: 1px solid #BFDBFE; }
.stat-card .stat-num { font-size: 2.2rem; font-weight: 900; margin-bottom: 6px; }
.stat-card.orange .stat-num { color: #EA580C; }
.stat-card.red .stat-num    { color: var(--red); }
.stat-card.navy .stat-num   { color: var(--navy); }
.stat-card h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.stat-card p  { font-size: .83rem; color: var(--text-muted); line-height: 1.55; }

/* Process steps */
.step-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.step-num  { font-size: 2.5rem; font-weight: 900; color: #FEE2E2; line-height: 1; margin-bottom: 8px; }
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-card p  { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* Standard steps with numbered circles */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.numbered-step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; display: flex; gap: 16px; align-items: flex-start; }
.step-circle { width: 32px; height: 32px; background: var(--red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.step-body h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.step-body p  { font-size: .84rem; color: var(--text-muted); line-height: 1.6; }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid var(--gray-border); }
.checklist li:last-child { border-bottom: none; }
.checklist li svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.checklist.white li { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.15); }
.checklist.white li svg { color: #6C9FD8; }

/* Tag grid */
.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: var(--navy-light); color: var(--navy); font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 6px; }
.tag.orange { background: #FFF7ED; color: #C2410C; }

/* FAQ */
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.faq-item h3 { font-size: .98rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.faq-item p  { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* Highlight box */
.highlight-box { border-left: 4px solid var(--red); background: #FEF2F2; padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.highlight-box p { font-size: .9rem; color: #7F1D1D; font-weight: 600; }
.highlight-box.yellow { border-color: #F59E0B; background: #FFFBEB; }
.highlight-box.yellow p { color: #78350F; }

/* NFPA dark boxes */
.nfpa-box { background: rgba(255,255,255,.07); border-radius: var(--radius); padding: 20px; }
.nfpa-box .nfpa-tag { font-size: 1.05rem; font-weight: 900; color: #6C9FD8; margin-bottom: 6px; }
.nfpa-box p { font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.6; }

/* --- ABOUT SNIPPET --- */
.image-placeholder { background: var(--navy-light); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--navy); position: relative; }
.image-placeholder svg { opacity: .2; }
.image-placeholder p { opacity: .4; font-size: .85rem; font-weight: 600; margin-top: 10px; }
.img-badge { position: absolute; bottom: 16px; right: 16px; background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow-lg); text-align: center; }
.img-badge .badge-num { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.img-badge .badge-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.75); margin-top: 3px; }

/* Benefit list */
.benefit-list { list-style: none; padding: 0; margin-bottom: 28px; }
.benefit-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: .94rem; color: var(--text-muted); }
.benefit-list li svg { color: var(--red); flex-shrink: 0; margin-top: 3px; }

/* --- TESTIMONIALS --- */
.testimonial-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.stars { color: #F59E0B; display: flex; gap: 2px; margin-bottom: 14px; }
.testimonial-card blockquote { font-size: .92rem; color: var(--text-muted); font-style: italic; line-height: 1.7; margin-bottom: 18px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar { width: 40px; height: 40px; background: var(--navy-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--navy); font-size: .9rem; flex-shrink: 0; }
.reviewer-name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.reviewer-role { font-size: .78rem; color: var(--text-muted); }

/* --- CTA BANNER --- */
.cta-banner { padding: 64px 0; text-align: center; }
.cta-banner h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; color: #fff; margin-bottom: 14px; }
.cta-banner p  { font-size: 1.05rem; color: rgba(255,255,255,.88); max-width: 580px; margin: 0 auto 32px; }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-border); }
.contact-item:last-child { border-bottom: none; }
.contact-icon { width: 40px; height: 40px; background: #FEE2E2; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--red); }
.contact-label { font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: 3px; }
.contact-value { font-size: .92rem; color: var(--text-muted); line-height: 1.5; }
.contact-value a { color: var(--red); font-weight: 700; }
.contact-value .open { color: #16A34A; font-weight: 700; }
.map-placeholder { background: var(--navy-light); border-radius: var(--radius); height: 180px; display: flex; align-items: center; justify-content: center; margin-top: 24px; color: var(--navy); text-align: center; }
.map-placeholder p { font-size: .82rem; opacity: .5; margin-top: 6px; }

/* Contact form */
.contact-form-wrap { background: var(--gray-bg); border-radius: var(--radius); padding: 36px; }
.contact-form-wrap h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group label .req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; border: 1.5px solid var(--gray-border); border-radius: var(--radius); padding: 10px 14px; font-size: .9rem; font-family: inherit; color: var(--text); background: #fff; transition: border-color .2s; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy-mid); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .78rem; color: var(--text-muted); text-align: center; margin-top: 10px; }
.form-success { background: #F0FDF4; border: 1.5px solid #86EFAC; border-radius: var(--radius); padding: 28px; text-align: center; }
.form-success svg { color: #16A34A; margin-bottom: 10px; }
.form-success h4 { font-weight: 700; color: #15803D; font-size: 1.1rem; margin-bottom: 6px; }
.form-success p  { font-size: .9rem; color: #166534; }

/* Values grid */
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value-card { background: var(--gray-bg); border-radius: var(--radius); padding: 16px; }
.value-card .v-icon { font-size: 1.6rem; margin-bottom: 8px; }
.value-card h4 { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.value-card p  { font-size: .8rem; color: var(--text-muted); line-height: 1.55; }

/* Service links */
.service-link-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; border-top: 4px solid var(--red); transition: transform .2s, box-shadow .2s; display: block; }
.service-link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-link-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.service-link-card .arrow { font-size: .85rem; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 4px; }
.service-link-card.yellow { border-color: #F59E0B; }
.service-link-card.orange { border-color: #F97316; }

/* --- FOOTER --- */
.site-footer { background: #0F2744; color: rgba(255,255,255,.7); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .87rem; line-height: 1.7; color: rgba(255,255,255,.55); margin-top: 14px; }
.footer-brand .cert { font-size: .75rem; color: rgba(255,255,255,.3); margin-top: 10px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-text-top { font-size: .98rem; font-weight: 900; color: #fff; }
.footer-logo-text-bottom { font-size: .72rem; font-weight: 400; color: rgba(255,255,255,.55); font-style: italic; }
.footer-col h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .87rem; color: rgba(255,255,255,.55); transition: color .2s; display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a svg { color: #6C9FD8; flex-shrink: 0; }
.hours-list { font-size: .87rem; }
.hours-row { display: flex; justify-content: space-between; padding: 4px 0; color: rgba(255,255,255,.55); }
.hours-row .val { color: #fff; font-weight: 600; }
.hours-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; margin-top: 12px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .87rem; margin-bottom: 12px; color: rgba(255,255,255,.55); }
.footer-contact li a { color: rgba(255,255,255,.55); transition: color .2s; }
.footer-contact li a:hover { color: #fff; }
.footer-contact li svg { color: #6C9FD8; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom span { font-size: .78rem; color: rgba(255,255,255,.3); }

/* --- STICKY WIDGET --- */
.sticky-widget { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; }
.sticky-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px; color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s; cursor: pointer; text-decoration: none; }
.sticky-btn:hover { transform: translateX(-4px); }
.sticky-btn.schedule { background: var(--red); border-radius: 8px 0 0 0; }
.sticky-btn.call    { background: var(--navy); border-radius: 0 0 0 8px; margin-top: 2px; }
.sticky-btn span { writing-mode: vertical-rl; text-orientation: mixed; }

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .header-actions .btn { display: none; }
  .sticky-widget { display: none; }
  .topbar-left { display: none; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .hero-img { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .values-grid { grid-template-columns: 1fr; }
  .alert-bar .container { flex-direction: column; align-items: flex-start; }
  .image-placeholder { aspect-ratio: 16/9; }
  .img-badge { bottom: 12px; right: 12px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { text-align: center; }
  .hero h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.6rem; }
  .contact-form-wrap { padding: 24px 18px; }
}
