/* Coconut Creek Pest Control — coastal teal + sand + coral design system.
   Low polish, high credibility. Phone-first, mobile-first.
   Tokens and rationale in builds/coconutcreekpestcontrol/design-direction.md */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  --teal: #0E4A4E;
  --teal-2: #0B3A3D;
  --sea: #1B9E8A;
  --sea-d: #15806F;
  --coral: #E8552B;
  --coral-d: #C8431F;
  --sand: #F6F1E7;
  --sand-2: #EFE8D8;
  --paper: #FFFFFF;
  --ink: #14201F;
  --muted: #5B6B68;
  --line: #E2DCCE;
  --maxw: 1140px;
  --disp: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea-d); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, .disp {
  font-family: var(--disp);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--teal);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: .35em; }
h3 { font-size: 1.32rem; }
p { margin-bottom: 1rem; font-size: 1.06rem; }

.eyebrow {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.5px; font-size: .82rem; color: var(--sea-d);
}

/* ---------- Top utility bar ---------- */
.utilbar {
  background: var(--teal-2); color: #DCEAE7;
  font-size: .85rem; text-align: center; padding: 8px 14px;
}
.utilbar b a { color: var(--coral); }
.beacon {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--coral); margin-right: 7px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(232,85,43,.7); animation: beacon 1.5s infinite;
}
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(232,85,43,.6); }
  70% { box-shadow: 0 0 0 9px rgba(232,85,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,85,43,0); }
}

/* ---------- Header ---------- */
.site-header {
  background: var(--sand); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 22px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 42px; height: 42px; flex: none; }
.brand .name { font-family: var(--disp); font-weight: 700; font-size: 1.24rem; line-height: 1; color: var(--teal); }
.brand .name small { display: block; font-family: var(--body); font-weight: 600; font-size: .62rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-family: var(--body); font-weight: 600; color: var(--teal); font-size: 1rem; }
.nav-links a:hover { color: var(--coral); text-decoration: none; }

.has-sub { position: relative; }
.submenu { display: none; position: absolute; top: 100%; left: 0; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--coral); border-radius: 0 0 8px 8px; min-width: 210px; padding: 6px 0; box-shadow: 0 14px 30px rgba(11,58,61,.14); z-index: 60; }
.submenu a { display: block; padding: 9px 16px; font-size: .95rem; }
.submenu a:hover { background: var(--sand-2); color: var(--coral); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }

.nav-call {
  background: var(--coral); color: #fff !important; padding: 10px 17px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
}
.nav-call:hover { background: var(--coral-d); text-decoration: none; }
.nav-call svg { width: 17px; height: 17px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--teal); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 1.12rem;
  background: var(--coral); color: #fff;
  padding: 14px 28px; border-radius: 8px; border: 0; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { background: var(--coral-d); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.bg-teal .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.bg-teal .btn-outline:hover { background: #fff; color: var(--teal); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(105deg, rgba(11,58,61,.94) 0 46%, rgba(11,58,61,.74) 100%), var(--teal) url('/images/hero.jpg') center/cover; color: #EAF2F0; position: relative; }
.hero .wrap { padding: 66px 22px 70px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.hero-copy { max-width: 34ch; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: #8FD3C6; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lead { font-size: 1.2rem; color: #CFE0DD; margin: 16px 0 26px; }

/* the phone IS the hero */
.phone-block { display: inline-flex; flex-direction: column; gap: 4px; }
.phone-cta {
  display: inline-flex; align-items: center; gap: 15px;
  background: var(--coral); color: #fff; border-radius: 11px;
  padding: 15px 26px; border-bottom: 5px solid var(--coral-d);
  transition: transform .1s ease, background .15s ease;
}
.phone-cta:hover { background: var(--coral-d); text-decoration: none; color: #fff; transform: translateY(-2px); }
.phone-cta .ring { width: 48px; height: 48px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.18); border-radius: 50%; }
.phone-cta .ring svg { width: 25px; height: 25px; }
.phone-cta .txt small { display: block; letter-spacing: 1.5px; text-transform: uppercase; font-size: .7rem; opacity: .9; }
.phone-cta .num { font-family: var(--disp); font-weight: 700; font-size: clamp(1.9rem, 5.2vw, 2.6rem); line-height: 1; }

.creds { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 22px; list-style: none; }
.creds li { font-size: .95rem; color: #BBD2CE; display: flex; align-items: center; gap: 8px; }
.creds svg { width: 17px; height: 17px; color: var(--sea); }

/* hero side card */
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 22px 24px; backdrop-filter: none; }
.hero-card h2 { color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.hero-card ul { list-style: none; }
.hero-card li { padding: 8px 0 8px 28px; position: relative; color: #DCEAE7; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before { content: ""; position: absolute; left: 0; top: 14px; width: 11px; height: 11px; border-radius: 3px; background: var(--sea); }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.bg-teal { background: var(--teal); color: #D9E6E3; }
.bg-teal h2, .bg-teal h3 { color: #fff; }
.bg-teal .eyebrow { color: #8FD3C6; }
.bg-paper2 { background: var(--sand-2); }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: .4rem 0 0; }
.bg-teal .section-head p { color: #AECBC6; }

/* ---------- Pest pressure index (signature element) ---------- */
.pests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pest {
  background: var(--paper); border: 1px solid var(--line); border-radius: 11px;
  padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px;
  border-left: 4px solid var(--sea);
  transition: border-left-color .15s ease, transform .1s ease;
}
.pest:hover { border-left-color: var(--coral); transform: translateY(-2px); }
.pest .ph { display: flex; align-items: center; gap: 11px; }
.pest .ic { width: 30px; height: 30px; color: var(--teal); flex: none; }
.pest h3 { font-size: 1.12rem; }
.pest .tell { color: var(--muted); font-size: .98rem; margin: 0; }
.pest .tell b { color: var(--ink); font-weight: 600; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.svc {
  background: var(--paper); border: 1px solid var(--line); border-radius: 11px;
  padding: 26px 24px; border-top: 4px solid var(--teal);
  transition: border-top-color .15s ease, transform .1s ease;
}
.svc:hover { border-top-color: var(--coral); transform: translateY(-3px); }
.svc .ic { width: 42px; height: 42px; color: var(--teal); margin-bottom: 14px; }
.svc h3 { margin-bottom: 7px; }
.svc p { color: var(--muted); font-size: 1rem; margin-bottom: 14px; }
.svc .call-link { font-weight: 700; color: var(--coral); display: inline-flex; align-items: center; gap: 7px; }
.svc .call-link svg { width: 15px; height: 15px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--paper); }
.step { padding: 28px 24px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--disp); font-weight: 700; font-size: 2.4rem; color: var(--coral); line-height: 1; }
.step h3 { margin: 6px 0; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; text-align: center; }
.stats .v { font-family: var(--disp); font-weight: 700; font-size: 2.4rem; color: #fff; line-height: 1; }
.stats .k { letter-spacing: 1px; font-size: .9rem; color: #AECBC6; margin-top: 6px; }

/* ---------- Checklist ---------- */
.checks { list-style: none; }
.checks li { padding: 9px 0 9px 32px; position: relative; font-size: 1.05rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--sea-d); font-weight: 700; font-size: 1.1rem; }

/* ---------- Call band ---------- */
.callband { background: var(--coral); color: #fff; text-align: center; }
.callband h2 { color: #fff; }
.callband .num { font-family: var(--disp); font-weight: 700; font-size: clamp(2.2rem, 6.5vw, 3.3rem); line-height: 1; margin: 6px 0 4px; }
.callband .num a { color: #fff; }
.callband p { color: #FFE2D8; }
.callband .btn { background: #fff; color: var(--coral); }
.callband .btn:hover { background: var(--teal); color: #fff; }

/* ---------- Area list ---------- */
.area { columns: 4; column-gap: 26px; list-style: none; }
.area li { padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-weight: 500; }

/* city grid */
.citygrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.citycard { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 20px 22px; display: flex; align-items: center; gap: 12px; transition: transform .1s ease, border-color .15s ease; }
.citycard:hover { transform: translateY(-2px); border-color: var(--sea); text-decoration: none; }
.citycard svg { width: 24px; height: 24px; color: var(--coral); flex: none; }
.citycard b { color: var(--teal); font-family: var(--disp); font-size: 1.12rem; }
.citycard span { display: block; color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; font-family: var(--disp); font-weight: 600; font-size: 1.16rem; color: var(--teal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--coral); font-size: 1.6rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--teal); color: #EAF2F0; position: relative; }
.page-hero .wrap { padding: 50px 22px 46px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #CFE0DD; font-size: 1.16rem; max-width: 58ch; margin: 12px 0 22px; }
.crumb { letter-spacing: .5px; font-size: .85rem; color: #8FD3C6; margin-bottom: 12px; }
.crumb a { color: #8FD3C6; }
.page-hero .phone-cta { margin-top: 4px; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6rem; }
.prose h3 { margin: 1.4rem 0 .4rem; color: var(--teal); }
.prose ul { margin: 0 0 1rem 1.1rem; }
.prose ul li { padding: 4px 0; font-size: 1.05rem; }

/* ---------- Photos ---------- */
.photo { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); margin: 0 0 1rem; }
figure.photo-fig { margin: 0 0 1.4rem; }
figure.photo-fig figcaption { letter-spacing: .5px; font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* ---------- Two-col feature ---------- */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.panel { background: var(--teal-2); color: #D9E6E3; border-radius: 14px; padding: 30px; border-top: 5px solid var(--coral); }
.panel h3 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-2); color: #A7C2BE; padding: 52px 0 22px; }
.site-footer h4 { font-family: var(--disp); color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 30px; }
.site-footer a { color: #A7C2BE; }
.site-footer a:hover { color: var(--coral); }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 5px 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand b { font-family: var(--disp); color: #fff; font-size: 1.1rem; }
.footer-call { display: inline-flex; align-items: center; gap: 9px; background: var(--coral); color: #fff !important; font-family: var(--disp); font-weight: 700; font-size: 1.12rem; padding: 11px 20px; border-radius: 8px; margin-top: 12px; }
.footer-call:hover { background: var(--coral-d); text-decoration: none; }
.footer-call svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .82rem; color: #7FA09B; text-align: center; }
.footer-bottom .disc { max-width: 88ch; margin: 8px auto 0; line-height: 1.5; }

/* ---------- Mobile sticky call ---------- */
.mobile-call { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--coral); color: #fff; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; font-family: var(--disp); font-weight: 700; font-size: 1.18rem;
  box-shadow: 0 -4px 16px rgba(11,58,61,.3); }
.mobile-call:hover { color: #fff; text-decoration: none; }
.mobile-call svg { width: 21px; height: 21px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .pests, .citygrid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 26px; }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .area { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; background: var(--sand); padding: 16px 22px; gap: 14px; border-bottom: 1px solid var(--line); max-height: 80vh; overflow-y: auto; }
  .nav-links.open .nav-call { width: 100%; justify-content: center; }
  .has-sub .submenu { position: static; display: block; box-shadow: none; border: 0; border-left: 3px solid var(--coral); border-radius: 0; padding: 4px 0 4px 4px; min-width: 0; margin-top: 6px; }
  .submenu a { padding: 6px 10px; }
  .menu-toggle { display: block; }
  .cols-2, .cols-3, .cols-4, .pests, .citygrid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .area { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 64px; }
  .mobile-call { display: flex; }
  section { padding: 44px 0; }
  .hero .wrap { padding: 44px 22px 46px; }
}
