/* Dry Ocala — canonical stylesheet (single source of truth for all pages).
   System fonts only (zero web-font layout shift, top Core Web Vitals).
   One signature: the alarm-red 24/7 call action. Everything else stays calm. */

/* ---- Tokens ---- */
:root {
  --ink: #0A2233;        /* deep water navy — primary text */
  --ink-soft: #22374a;   /* softened heading on light */
  --water: #0E6BA8;      /* trust blue — links, accents */
  --water-deep: #0B4E7A; /* darker blue for hover/edges */
  --alarm: #C8102E;      /* THE action color — call now, emergency */
  --alarm-dark: #9E0C24; /* alarm hover */
  --bg: #EEF3F7;         /* cool light page background */
  --surface: #FFFFFF;    /* cards */
  --muted: #4E6070;      /* secondary text (AA on white/bg) */
  --line: #D5E0E8;       /* hairlines */
  --ok: #0E7C4A;         /* subtle "available" green */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10,34,51,.06), 0 6px 20px rgba(10,34,51,.08);
  --maxw: 1080px;
  --gap: clamp(16px, 3vw, 28px);
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--water-deep); text-underline-offset: 2px; }
a:hover { color: var(--water); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .3em 0; }

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: clamp(40px, 6vw, 72px) 0; }
.section-tight { padding: clamp(28px, 4vw, 44px) 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--water-deep); margin-bottom: .6em;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1) blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; font-size: 1.15rem; }
.brand:hover { color: var(--ink); }
.brand .mark { flex: 0 0 auto; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-nav { display: none; }
.header-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .98rem; }
.header-nav a:hover { color: var(--water-deep); }

/* Availability pulse (the signature, used sparingly) */
.avail { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 700; color: var(--ok); white-space: nowrap; }
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(14,124,74,.5); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14,124,74,.5); }
  70% { box-shadow: 0 0 0 10px rgba(14,124,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(14,124,74,0); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: var(--radius-sm); border: 2px solid transparent;
  transition: background-color .15s ease, transform .05s ease;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--alarm); color: #fff; }
.btn-call:hover { background: var(--alarm-dark); color: #fff; }
.btn-call .num { letter-spacing: .01em; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--water); color: var(--water-deep); }
.btn-lg { font-size: 1.25rem; padding: 18px 30px; }
.btn-block { display: flex; width: 100%; }
.header-call { padding: 10px 16px; font-size: .98rem; }

/* ---- Hero ---- */
.hero { position: relative; background: linear-gradient(180deg, #0A2233 0%, #0B3A5C 100%); color: #fff; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: .5; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero-sub { font-size: 1.2rem; color: #DCE8F1; max-width: 54ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .avail { color: #7ee6b0; margin-bottom: 1em; }
.hero .dot { background: #7ee6b0; box-shadow: 0 0 0 0 rgba(126,230,176,.5); animation: pulse-light 2s infinite; }
@keyframes pulse-light {
  0% { box-shadow: 0 0 0 0 rgba(126,230,176,.5); }
  70% { box-shadow: 0 0 0 12px rgba(126,230,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(126,230,176,0); }
}
.callout-num { color: #fff; font-weight: 800; font-size: 1.35rem; text-decoration: none; }
.callout-num:hover { color: #fff; text-decoration: underline; }

/* Trust chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chips li {
  display: flex; align-items: center; gap: 8px; margin: 0;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  color: #EAF2F8; font-size: .92rem; font-weight: 600;
  padding: 8px 13px; border-radius: 999px;
}
.chips .ic { color: #7ee6b0; flex: 0 0 auto; }

/* Trust chips on light sections */
.chips-light li { background: #fff; border-color: var(--line); color: var(--ink-soft); box-shadow: var(--shadow); }
.chips-light .ic { color: var(--water); }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: .2em; }
.card a.card-link { font-weight: 700; text-decoration: none; }
.card a.card-link:hover { text-decoration: underline; }
.ic-tile {
  width: 44px; height: 44px; border-radius: 10px; background: #E4EFF7; color: var(--water-deep);
  display: grid; place-items: center; margin-bottom: 12px;
}

/* Step list (process / what to do now) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--water); color: #fff;
  font-weight: 800; display: grid; place-items: center; font-size: .95rem;
}
.steps.urgent .n { background: var(--alarm); }
.steps h3 { margin: 0 0 .2em; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }

/* Section variants */
.band-ink { background: var(--ink); color: #fff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .lead { color: #CFE0EC; }
.band-soft { background: var(--surface); }

/* Final CTA band */
.cta-band { background: linear-gradient(180deg, #A00C22 0%, #C8102E 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #FBE3E7; max-width: 48ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-call { background: #fff; color: var(--alarm-dark); }
.cta-band .btn-call:hover { background: #FBE3E7; color: var(--alarm-dark); }

/* ---- Service area ---- */
.town-list { columns: 2; column-gap: 28px; padding-left: 1.1em; }
.town-list li { break-inside: avoid; }

/* ---- FAQ (native details, zero JS) ---- */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 18px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--water); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] { box-shadow: var(--shadow); }
.faq details > p { color: var(--muted); margin: 0 0 14px; }

/* ---- Form ---- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1px solid #B9CAD6; border-radius: var(--radius-sm); background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--water); outline: 2px solid rgba(14,107,168,.25); outline-offset: 0; }
.field textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-or { text-align: center; color: var(--muted); font-weight: 700; margin: 8px 0; }

/* ---- Footer ---- */
.site-footer { background: #071A29; color: #B9CAD6; padding: 48px 0 120px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer a { color: #CFE0EC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .35em 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .82rem; color: #8CA3B4; }
.disclosure { font-size: .82rem; color: #8CA3B4; max-width: 70ch; line-height: 1.5; }

/* ---- Sticky mobile call bar (CSS only) ---- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; gap: 0; background: var(--alarm); box-shadow: 0 -2px 12px rgba(0,0,0,.18);
}
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 800; padding: 15px 10px; font-size: 1.05rem;
}
.callbar a.alt { flex: 0 0 46%; background: var(--ink); }
.callbar a:active { filter: brightness(.92); }

/* ---- Breadcrumb ---- */
.crumb { font-size: .88rem; color: var(--muted); padding-top: 18px; }
.crumb a { color: var(--water-deep); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---- Photos (support the call action, never compete with it) ---- */
.photo { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; height: auto; object-fit: cover; }
/* Hero support image: sits beside the copy on wide screens, below it on mobile. */
.hero-layout { display: grid; gap: clamp(20px, 4vw, 40px); align-items: center; }
.hero-media { position: relative; z-index: 2; }
.hero-media .photo { aspect-ratio: 16 / 9; }
@media (min-width: 860px) {
  .hero-layout { grid-template-columns: 1.5fr .5fr; }
}
/* Inline media block for content sections (services band, process steps). */
.media-figure { margin: 0 auto; max-width: 480px; }
.media-figure .photo { display: block; }
.media-split { display: grid; gap: clamp(20px, 4vw, 36px); align-items: center; }
@media (min-width: 760px) {
  .media-split { grid-template-columns: 1fr 1fr; }
  .media-split.reverse .media-figure { order: 2; }
}

/* ---- Prose helpers ---- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.divider { height: 1px; background: var(--line); border: 0; margin: 8px 0 0; }
.small { font-size: .9rem; color: var(--muted); }

/* ---- Responsive ---- */
@media (min-width: 620px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .callbar { display: none; }         /* room-sized screens use header CTA */
  .site-footer { padding-bottom: 48px; }
}
@media (min-width: 860px) {
  .header-nav { display: flex; gap: 22px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .hero { padding: 8px 0 0; }
}

/* Keep the mobile call bar only on small screens */
@media (max-width: 619px) {
  body { padding-bottom: 0; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
  .dot { box-shadow: 0 0 0 2px rgba(14,124,74,.35); }
}
