/* ============================================================
   Naples Fire Alarm Pros — shared stylesheet
   Clean contractor-trustworthy theme: navy/slate + amber accent
   No external dependencies. Mobile-first responsive.
   ============================================================ */

:root {
  --navy: #0e2a47;
  --navy-dark: #0a1e35;
  --navy-light: #16395e;
  --slate: #334155;
  --slate-light: #64748b;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: #fff7ed;
  --gold: #fbbf24;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--navy-light); }
a:hover { color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--slate); }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.8rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy); color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; margin-right: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-text { font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.1; }
.brand-text strong { color: var(--gold); font-weight: 800; }
.brand-tag { display: block; font-size: 0.68rem; font-weight: 400; color: #cbd5e1; letter-spacing: 0.06em; text-transform: uppercase; }

.main-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.main-nav a { color: #e2e8f0; text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0.55rem 0.8rem; border-radius: 6px; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.has-sub { position: relative; }
.has-sub > .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow);
  padding: 0.5rem; flex-direction: column; align-items: stretch;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: flex; }
.has-sub .sub a { color: var(--navy); display: block; padding: 0.6rem 0.8rem; font-size: 0.95rem; }
.has-sub .sub a:hover { background: var(--bg-alt); color: var(--accent-dark); }

.header-call { white-space: nowrap; font-size: 0.98rem; padding: 0.7rem 1.2rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; margin: 5px 0; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(249,115,22,0.22), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(56,130,190,0.25), transparent 60%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff; padding: 4rem 0 3.5rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M0 71 L71 0' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: #cbd5e1; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; list-style: none; }
.trust-row li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.93rem; font-weight: 600; color: #e2e8f0; }
.trust-row svg { width: 1.1em; height: 1.1em; color: var(--gold); flex: none; }

.hero-card {
  background: #fff; color: var(--text); border-radius: 14px;
  padding: 1.8rem; box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.hero-card h2 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.hero-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }

/* Slim page hero for interior pages */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, var(--navy-light));
  color: #fff; padding: 3rem 0 2.6rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.6rem; }
.page-hero p { color: #cbd5e1; max-width: 760px; margin-bottom: 0; }
.breadcrumb { font-size: 0.85rem; color: #94a3b8; margin-bottom: 0.8rem; }
.breadcrumb a { color: #cbd5e1; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-accent { background: var(--accent-soft); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: 0 4px 14px rgba(14,42,71,0.06);
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; color: var(--gold); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.card .card-link { font-weight: 700; color: var(--accent-dark); text-decoration: none; margin-top: 0.8rem; }
.card .card-link:hover { text-decoration: underline; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.5rem; position: relative; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; box-shadow: 0 6px 16px rgba(249,115,22,0.35);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.check-list svg { width: 1.25em; height: 1.25em; color: var(--accent-dark); flex: none; margin-top: 0.2em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-tight { gap: 2rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.stars { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 0.7rem; font-size: 1.05rem; }
.testimonial blockquote { font-style: italic; color: var(--slate); flex: 1; margin-bottom: 1rem; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.testimonial cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.disclaimer { font-size: 0.82rem; color: var(--muted); margin-top: 1.5rem; text-align: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.feature h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.6rem; }
.feature p { color: var(--slate); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.8rem; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 1.1rem 1.3rem; font-size: 1.02rem; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: inherit;
}
.faq-q .faq-icon { flex: none; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--bg-alt); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 400; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 1.3rem 1.2rem; color: var(--slate); }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.quote-form { display: grid; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--navy); }
.form-group label .req { color: var(--accent-dark); }
.form-group input, .form-group select, .form-group textarea {
  font: inherit; padding: 0.75rem 0.9rem; border: 1.5px solid var(--border);
  border-radius: 8px; background: #fff; color: var(--text); width: 100%;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid { border-color: #dc2626; }
.field-error { color: #dc2626; font-size: 0.82rem; margin-top: 0.25rem; display: none; }
.field-error.show { display: block; }
.form-note { font-size: 0.83rem; color: var(--muted); }
.form-success {
  display: none; background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46;
  border-radius: var(--radius); padding: 1.4rem; text-align: center;
}
.form-success.show { display: block; }
.form-success h3 { color: #065f46; margin-bottom: 0.4rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: #fff; padding: 3rem 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band p { color: #fff7ed; max-width: 640px; margin: 0 auto 1.6rem; }
.cta-band .btn-outline { border-color: #fff; }
.cta-band .cta-phone { font-size: 1.6rem; font-weight: 800; color: #fff; text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.cta-band .cta-phone:hover { color: #fff; text-decoration: underline; }

/* ---------- Area pills ---------- */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.area-pill {
  display: flex; align-items: center; gap: 0.7rem; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem; text-decoration: none; color: var(--navy); font-weight: 600;
}
.area-pill:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--navy); }
.area-pill svg { width: 1.3em; height: 1.3em; color: var(--accent-dark); flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #cbd5e1; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-col h3 { color: #fff; font-size: 1.02rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #cbd5e1; text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; color: #fff; font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-brand strong { color: var(--gold); }
.footer-col p { font-size: 0.94rem; }
.footer-phone { color: #fff !important; font-weight: 700; font-size: 1.05rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.2rem 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: #94a3b8; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar { display: none; }
@media (max-width: 768px) {
  .call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 -4px 18px rgba(0,0,0,0.3);
  }
  .call-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.95rem 0.5rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem;
  }
  .call-bar a svg { width: 1.2em; height: 1.2em; }
  .call-bar a.call-now { background: var(--accent); }
  .call-bar a.call-now:hover { background: var(--accent-dark); color: #fff; }
  body { padding-bottom: 58px; }
}

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.badge {
  display: inline-block; background: var(--navy); color: #fff; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.badge-accent { background: var(--accent); }
.info-box { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
.info-box p:last-child { margin-bottom: 0; }
.two-col { columns: 2; column-gap: 2rem; }
.two-col li { break-inside: avoid; margin-bottom: 0.5rem; }
ul.tight, ol.tight { padding-left: 1.3rem; margin-bottom: 1rem; }
ul.tight li, ol.tight li { margin-bottom: 0.45rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-call { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-dark); padding: 0.5rem 1rem 1rem; box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { display: block; padding: 0.75rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .has-sub > .sub { position: static; display: flex; background: transparent; box-shadow: none; padding: 0 0 0 1rem; }
  .has-sub .sub a { color: #cbd5e1; border-bottom: none; padding: 0.55rem 0.5rem; }
  .section { padding: 2.8rem 0; }
  .hero { padding: 2.8rem 0 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .two-col { columns: 1; }
}
@media (max-width: 560px) {
  .cards, .cards-3, .cards-2, .testimonials, .area-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
