/* Insurance Aggregators LLC, Lutz FL
   Signature: survey grade elevation contours. Florida insurance is
   fundamentally about reading storm and flood risk. Chart-room
   palette, editorial serif plus technical mono, no stock photo tropes. */

:root {
  --ink:        #0E1F2B;   /* deep chart navy, dark panels and text */
  --ink-deep:   #081319;
  --paper:      #F6F3EC;   /* warm chart paper */
  --paper-dim:  #ECE7DA;
  --barometer:  #C4501F;   /* the one warm accent, low pressure red */
  --barometer-soft: #E0895A;
  --seaglass:   #4C7A6E;   /* muted green, secondary accent */
  --slate:      #9FB4BD;   /* instrument grey blue */
  --slate-line: #5E7883;   /* contour line grey on light */
  --muted:      #5B6B66;
  --muted-lt:   #B7C3C9;   /* muted on dark */
  --hair:       #DAD4C4;   /* hairline on paper */
  --hair-dark:  rgba(159, 180, 189, 0.22);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --wrap: 1160px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --sec-y: clamp(4.5rem, 9vw, 8rem);
  --r: 3px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--barometer); color: var(--paper);
  padding: 0.7rem 1.2rem; font-weight: 600;
  border-radius: 0 0 var(--r) var(--r);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

:focus-visible {
  outline: 2.5px solid var(--barometer);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Background chart canvas ─────────────────────────────────── */
#chart-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  #chart-bg { display: none; }
}

/* ── Eyebrow ──────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--barometer);
  margin: 0 0 1.1rem;
  display: block;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
  max-width: 32ch;
}

.section-lede {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn--solid {
  background: var(--barometer);
  color: var(--paper);
}
.btn--solid:hover { background: var(--ink); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--slate-line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(14, 31, 43, 0.04); }

.btn--small { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn--wide { width: 100%; }

/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 236, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.brand-sub { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a { text-decoration: none; color: var(--muted); transition: color 0.15s var(--ease); }
.nav a:hover { color: var(--ink); }

.header-email {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.header-email:hover { color: var(--barometer); }

.header-cta { margin-left: 0.5rem; }

@media (max-width: 1080px) {
  .header-email { display: none; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem var(--gut) 1.5rem;
  border-top: 1px solid var(--hair);
  background: var(--paper);
}
.mobile-nav a {
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--hair);
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.is-open { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(4rem, 11vw, 8rem) clamp(3rem, 7vw, 5rem);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--barometer); }

.hero-lede {
  max-width: 52ch;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  flex-wrap: wrap;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--hair);
}
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}

/* ── Reveal-on-scroll ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Coverage ─────────────────────────────────────────────────── */
.coverage { padding-block: var(--sec-y); }

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.coverage-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.coverage-card:hover {
  border-color: var(--slate-line);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -18px rgba(14, 31, 43, 0.28);
}

.coverage-icon { color: var(--seaglass); margin-bottom: 1.25rem; }

.coverage-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.coverage-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ── Approach ─────────────────────────────────────────────────── */
.approach {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--sec-y);
}
.approach .eyebrow { color: var(--barometer-soft); }

.approach-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.approach-copy p { color: var(--muted-lt); max-width: 50ch; }

.approach-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.approach-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.98rem;
}
.approach-mark { color: var(--barometer-soft); font-family: var(--font-mono); }

.approach-panel {
  background: rgba(246, 243, 236, 0.05);
  border: 1px solid rgba(159, 180, 189, 0.28);
  border-radius: var(--r);
  padding: 1.75rem;
}
.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--hair-dark);
  font-size: 0.92rem;
}
.panel-row:last-child { border-bottom: none; }
.panel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-lt);
  flex-shrink: 0;
}
.panel-value { text-align: right; color: var(--paper); }
.panel-row--note { padding-top: 1rem; margin-top: 0.25rem; border-top: 1px dashed var(--hair-dark); }
.panel-value--pending { color: var(--barometer-soft); font-size: 0.85rem; }

/* ── Service area ─────────────────────────────────────────────── */
.service-area { padding-block: var(--sec-y); }

.area-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 2.5rem;
}

.area-map {
  height: clamp(260px, 32vw, 380px);
  border-radius: var(--r);
  border: 1px solid var(--hair);
  overflow: hidden;
  filter: saturate(0.75) contrast(1.02);
}
.area-map .leaflet-control-attribution {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(246, 243, 236, 0.85);
}
.area-map .leaflet-tooltip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  box-shadow: 0 4px 14px -6px rgba(14, 31, 43, 0.4);
}
.area-map .leaflet-tooltip-top::before { border-top-color: var(--ink); }

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.9rem 2.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.area-list li {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hair);
}

@media (max-width: 700px) {
  .area-grid { grid-template-columns: 1fr; }
  .area-map { height: 280px; }
}

/* ── Contact ──────────────────────────────────────────────────── */
.contact {
  padding-block: var(--sec-y);
  background: var(--paper-dim);
  border-top: 1px solid var(--hair);
}

.contact-inner { max-width: 640px; }

.inline-link {
  color: var(--barometer);
  font-weight: 600;
  text-decoration-color: var(--barometer-soft);
}
.inline-link:hover { text-decoration-thickness: 2px; }

.contact-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row--split {
  flex-direction: row;
  gap: 1.25rem;
}
.form-row--split > div { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--hair);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--barometer);
}
textarea { resize: vertical; min-height: 100px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
  text-align: center;
}
.form-note--hours { margin-top: 0.6rem; }

@media (max-width: 560px) {
  .form-row--split { flex-direction: column; }
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--muted-lt);
  padding-block: 3rem;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand .brand-name {
  font-family: var(--font-display);
  color: var(--paper);
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand address { font-style: normal; }
.footer-brand address a { color: var(--muted-lt); text-decoration: none; }
.footer-brand address a:hover { color: var(--paper); }

.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--muted-lt); }
.footer-nav a:hover { color: var(--paper); }

.footer-legal {
  flex-basis: 100%;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair-dark);
  font-size: 0.78rem;
  color: var(--muted-lt);
}
