/* Cooper City Sprinkler Solutions — design tokens from build spec */
:root {
  --background: #FCFCFD;
  --foreground: #1D2530;
  --card: #FFFFFF;
  --primary: #0F7CB3;
  --primary-foreground: #FFFFFF;
  --secondary: #EDF1F3;
  --muted: #F3F5F7;
  --muted-foreground: #65758B;
  --accent: #0DA2E7;
  --border: #E0E5EB;
  --radius: 0.5rem;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-50: #F8FAFC;
  --sky-500: #0EA5E9;
  --sky-600: #0284C7;
  --sky-300: #7DD3FC;
}

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

body {
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 1024px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.header-top {
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}
.header-top .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; align-items: center;
}
.header-top .right { display: flex; gap: 1rem; align-items: center; }
.header-top a { color: #fff; font-weight: 600; }
.header-top a:hover { text-decoration: none; opacity: .9; }
.badge-highlight { color: var(--sky-300); font-weight: 600; }

@media (max-width: 640px) {
  .header-top .container { flex-direction: column; align-items: center; text-align: center; gap: 0.2rem; padding: 0.55rem 1.5rem; }
  .header-top .serving-text { display: none; }
  .header-top .phone-link { display: none; }
  .header-top .right { justify-content: center; gap: 0; font-size: 0.75rem; }
  .badge-highlight { margin: 0; }
}

.header-main {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-main .container { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-icon {
  width: 38px; height: 38px; border-radius: 8px; background: var(--secondary);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.brand-text { line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--foreground); }
.brand-sub { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

nav.main-nav { display: flex; align-items: center; gap: 1.75rem; }
nav.main-nav a { color: var(--foreground); font-weight: 500; font-size: 0.95rem; }
nav.main-nav a:hover { color: var(--primary); text-decoration: none; }
nav.main-nav a.active { color: var(--primary); }

.services-dropdown { position: relative; }
.services-dropdown > button {
  background: none; border: none; font: inherit; color: var(--foreground); font-weight: 500; font-size: 0.95rem;
  display: flex; align-items: center; gap: 0.3rem; cursor: pointer; padding: 0;
}
.services-dropdown > button:hover { color: var(--primary); }
.dropdown-menu {
  position: absolute; top: calc(100% + 0.75rem); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgba(15,23,42,0.12); min-width: 260px; padding: 0.5rem;
  display: none; flex-direction: column;
}
.services-dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a { padding: 0.6rem 0.75rem; border-radius: 0.375rem; color: var(--foreground); font-size: 0.9rem; }
.dropdown-menu a:hover { background: var(--muted); color: var(--primary); text-decoration: none; }

.btn-header-cta {
  background: var(--primary); color: #fff; font-weight: 600; padding: 0.65rem 1.25rem;
  border-radius: 0.375rem; font-size: 0.9rem; white-space: nowrap;
}
.btn-header-cta:hover { background: #0d6c9c; text-decoration: none; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; gap: 0.25rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: #fff; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.6rem 0; color: var(--foreground); font-weight: 500; }

@media (max-width: 900px) {
  nav.main-nav, .btn-header-cta.desktop-only { display: none; }
  .mobile-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--slate-900); color: #fff; overflow: hidden;
  padding: 4rem 0;
}
.hero.home-hero { padding: 4.5rem 0 4rem; }
.hero-bg-image {
  position: absolute; inset: 0; opacity: 0.18; background-size: cover; background-position: center;
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2); color: var(--sky-300); font-size: 0.8125rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.hero p.lede { font-size: 1.05rem; color: #cbd5e1; max-width: 42rem; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.75rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 0.375rem; font-weight: 700; padding: 0.85rem 1.6rem; font-size: 0.95rem; border: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--sky-500); color: #fff; }
.btn-primary:hover { background: var(--sky-600); text-decoration: none; }
.btn-outline-dark { background: var(--slate-800); color: #fff; border: 1px solid var(--slate-700); }
.btn-outline-dark:hover { background: var(--slate-700); border-color: #64748b; text-decoration: none; }
.btn-block { width: 100%; }

.compliance-box {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 0.5rem;
  padding: 1.1rem 1.25rem; display: flex; gap: 0.75rem; align-items: flex-start; max-width: 34rem;
}
.compliance-box strong { display: block; margin-bottom: 0.25rem; }
.compliance-box p { font-size: 0.875rem; color: #cbd5e1; }
.compliance-icon { flex-shrink: 0; color: #facc15; margin-top: 0.15rem; }

/* small hero title block used on inner pages */
.hero-simple .badge-focus {
  display: inline-block; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: var(--sky-300); font-size: 0.8125rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero-simple h1 { font-size: 2.1rem; font-weight: 800; max-width: 44rem; margin-bottom: 0.75rem; }
.hero-simple p { color: #cbd5e1; max-width: 42rem; font-size: 1rem; }

/* ---------- Quote Form ---------- */
.quote-card {
  background: #fff; border-radius: 0.75rem; padding: 1.75rem; box-shadow: 0 20px 50px rgba(15,23,42,0.25);
  color: var(--foreground);
}
.quote-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.35rem; }
.quote-card > p.sub { color: var(--muted-foreground); font-size: 0.875rem; margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 0.375rem; padding: 0.65rem 0.75rem;
  font: inherit; font-size: 0.9rem; color: var(--foreground); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.field { margin-bottom: 0.9rem; }
.field textarea { resize: vertical; min-height: 5rem; }
.privacy-note { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.75rem; text-align: center; }
.success-state { text-align: center; padding: 1rem 0; }
.success-state h4 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.5rem; }
.success-state p { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ---------- Trust bar ---------- */
.trust-bar { padding: 2rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { border: 1px solid var(--border); border-radius: 0.5rem; padding: 1.1rem; display: flex; gap: 0.75rem; align-items: flex-start; background: #fff; }
.trust-card .icon-wrap { width: 34px; height: 34px; border-radius: 50%; background: var(--muted); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.trust-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.15rem; }
.trust-card p { font-size: 0.8125rem; color: var(--muted-foreground); }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--slate-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.section-head p { color: var(--muted-foreground); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; background: #fff; }
.service-card .icon-wrap { width: 44px; height: 44px; border-radius: 0.6rem; background: var(--muted); display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 1rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 0.9rem; }
.service-card .link { font-weight: 600; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.3rem; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; }
.step-number { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-card p { color: var(--muted-foreground); font-size: 0.875rem; }

.expert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .expert-grid { grid-template-columns: 1fr; } }
.expert-grid h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.01em; }
.expert-grid p.body { color: var(--muted-foreground); margin-bottom: 1.25rem; }
.check-list { list-style: none; margin-bottom: 1.5rem; }
.check-list li { display: flex; gap: 0.6rem; margin-bottom: 0.75rem; font-size: 0.925rem; }
.check-list .check-icon { color: var(--primary); flex-shrink: 0; margin-top: 0.15rem; }
.expert-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.expert-ctas a.secondary { align-self: center; font-weight: 600; }

.image-card { border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.image-card .art { width: 100%; aspect-ratio: 4/3; }
.image-card figcaption { padding: 0.9rem 1.1rem; font-size: 0.85rem; color: var(--muted-foreground); }

/* ---------- Article layout (service pages) ---------- */
.article-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; padding: 3rem 0; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.article-layout .sidebar { position: sticky; top: 6.5rem; }
.article h2 { font-size: 1.55rem; font-weight: 800; margin: 1.75rem 0 0.9rem; letter-spacing: -0.01em; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.article p { color: var(--muted-foreground); margin-bottom: 1rem; font-size: 0.95rem; }
.symptom-card { background: var(--muted); border-radius: 0.6rem; padding: 1.25rem; margin: 1rem 0 1.5rem; }
.symptom-card .item { margin-bottom: 0.9rem; }
.symptom-card .item:last-child { margin-bottom: 0; }
.symptom-card strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.symptom-card span { font-size: 0.875rem; color: var(--muted-foreground); }
.related-box { background: var(--slate-50); border: 1px solid var(--border); border-radius: 0.6rem; padding: 1.25rem; margin: 1.75rem 0; }
.related-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.related-box p { font-size: 0.875rem; margin-bottom: 0.9rem; }
.related-links { display: flex; flex-direction: column; gap: 0.5rem; }
.related-links a { font-weight: 600; font-size: 0.9rem; }
.mini-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 2rem 0; }
@media (max-width: 500px) { .mini-trust { grid-template-columns: 1fr; } }

/* ---------- Neighborhood cards ---------- */
.neighborhood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .neighborhood-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .neighborhood-grid { grid-template-columns: 1fr; } }
.n-card { border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.4rem; background: #fff; display: flex; flex-direction: column; }
.n-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem; }
.n-card p { color: var(--muted-foreground); font-size: 0.875rem; flex: 1; margin-bottom: 1rem; }
.n-card .n-footer { display: flex; justify-content: flex-end; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.pill-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; background: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.8125rem; font-weight: 600; float: right;
}

/* ---------- FAQ ---------- */
.faq-block { background: #fff; border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; margin-bottom: 2rem; }
.faq-block-head { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); padding-bottom: 1.1rem; }
.faq-num { width: 30px; height: 30px; border-radius: 0.4rem; background: var(--secondary); color: var(--primary); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; }
.faq-block-head h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.2rem; }
.faq-block-head p { color: var(--muted-foreground); font-size: 0.875rem; }
.faq-item { border: 1px solid var(--border); border-radius: 0.6rem; margin-bottom: 0.75rem; overflow: hidden; }
.faq-item:last-child { margin-bottom: 0; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; font: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 1rem 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--foreground);
}
.faq-q .chev { transition: transform .15s; flex-shrink: 0; color: var(--muted-foreground); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.faq-item.open .faq-a { max-height: 20rem; }
.faq-a p { padding: 0 1.1rem 1.1rem; color: var(--muted-foreground); font-size: 0.9rem; }
.faq-close-cta { background: var(--slate-900); color: #fff; border-radius: 0.75rem; padding: 2.5rem 2rem; text-align: center; }
.faq-close-cta h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.6rem; }
.faq-close-cta p { color: #cbd5e1; margin-bottom: 1.5rem; max-width: 32rem; margin-left: auto; margin-right: auto; }
.faq-close-cta .ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white-outline { background: #fff; color: var(--foreground); border: 1px solid var(--border); }
.btn-white-outline:hover { background: var(--muted); text-decoration: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.contact-info > p { color: var(--muted-foreground); margin-bottom: 1.75rem; }
.info-row { display: flex; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.info-row .icon-wrap { width: 36px; height: 36px; border-radius: 0.5rem; background: var(--muted); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.info-row .label { font-weight: 700; font-size: 0.85rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 0.15rem; }
.info-row .value { font-size: 0.95rem; }
.guarantee-box { background: var(--muted); border-radius: 0.6rem; padding: 1.25rem; margin-top: 1.75rem; }
.guarantee-box h4 { font-weight: 700; margin-bottom: 0.4rem; font-size: 0.95rem; }
.guarantee-box p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }

/* ---------- Neighborhood detail page hero variant already covered by hero-simple ---------- */
.local-coverage { background: var(--muted); color: var(--foreground); border-radius: 999px; display: inline-flex; padding: 0.4rem 1rem; font-size: 0.8125rem; font-weight: 700; align-items: center; gap: 0.4rem; margin-bottom: 1.25rem; }

/* ---------- Footer ---------- */
footer { background: var(--slate-900); color: #e2e8f0; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid #1e293b; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; }
.footer-brand .brand-name { color: #fff; font-weight: 800; }
footer p { color: #94a3b8; font-size: 0.875rem; }
footer h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
footer .flinks { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
footer .flinks a { color: #94a3b8; font-size: 0.875rem; }
footer .flinks a:hover { color: #fff; text-decoration: none; }
.footer-note { background: rgba(13,162,231,0.08); border: 1px solid rgba(13,162,231,0.25); border-radius: 0.5rem; padding: 0.9rem; margin-top: 1rem; }
.footer-note strong { display: block; color: var(--sky-300); font-size: 0.8125rem; margin-bottom: 0.3rem; }
.footer-note p { font-size: 0.8125rem; }
.n-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.9rem; font-size: 0.875rem; color: #94a3b8; }
.contact-list .hours-title { color: #fff; font-weight: 700; margin-bottom: 0.3rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding-top: 1.5rem; font-size: 0.8125rem; color: #64748b; }
.footer-bottom .flinks-inline { display: flex; gap: 1.25rem; }
.footer-bottom a { color: #94a3b8; }

/* ---------- generic icon svg sizing ---------- */
svg.ico { width: 20px; height: 20px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
