/* Beachside Automation — site styles (brand direction G2)
   Palette: navy, atlantic, seafoam, sea glass, sun, slate, shell ground.
   Fonts: Fraunces (soft) for headings, Nunito Sans for text. */

:root {
  --navy-900: #13324B;
  --navy-700: #1F4C6E;
  --atlantic: #2A6F97;
  --atlantic-deep: #1F557A;
  --seafoam: #A9D6E5;
  --sky: #7CC3E3;
  --seaglass: #E6F2F7;
  --seaglass-2: #DDF0F8;
  --sun: #F5CE5C;
  --sun-deep: #E6BC3F;
  --slate: #5C6B78;
  --slate-700: #46535E;
  --slate-100: #EEF1F3;
  --ground: #FAF8F2;
  --white: #FFFFFF;
  --line: #DDE3E8;
  --text: #13324B;
  --muted: #4A5A68;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(19, 50, 75, 0.08);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--atlantic); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100, 'opsz' 72;
  font-weight: 600;
  color: var(--navy-700);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; font-variation-settings: 'SOFT' 100, 'opsz' 24; }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; color: var(--navy-900); }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 44em; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--atlantic); margin-bottom: 0.9em;
}
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }

/* Bands */
.band-seaglass { background: var(--seaglass); }
.band-white { background: var(--white); }
.band-slate { background: var(--slate); color: var(--white); }
.band-slate h2, .band-slate h3 { color: var(--white); }
.band-slate .eyebrow { color: var(--seafoam); }
.band-slate .muted, .band-slate .lede { color: #DCE4EA; }
.band-navy { background: var(--navy-900); color: var(--white); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy .eyebrow { color: var(--seafoam); }
.band-navy .muted, .band-navy .lede { color: #C7D6E0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; line-height: 1.2; transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sun); color: var(--navy-900); border-color: var(--sun); }
.btn-primary:hover { background: var(--sun-deep); border-color: var(--sun-deep); color: var(--navy-900); }
.btn-secondary { background: transparent; color: var(--slate-700); border-color: var(--slate); }
.btn-secondary:hover { background: var(--slate-100); color: var(--navy-900); }
.btn-dark { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.btn-dark:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn-light:hover { background: var(--seaglass); border-color: var(--seaglass); color: var(--navy-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 242, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(19, 50, 75, 0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-700); }
.brand svg { width: 50px; height: 38px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-word {
  font-family: var(--font-display); font-variation-settings: 'SOFT' 100, 'opsz' 48;
  font-weight: 600; font-size: 1.55rem; color: var(--navy-700); letter-spacing: -0.01em;
}
.brand-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.32em; color: var(--slate); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy-900); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--atlantic); }
.nav-links .btn { padding: 11px 18px; font-size: 0.95rem; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--slate); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy-900); align-items: center; justify-content: center;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid rgba(19,50,75,0.06); }
  .nav-links li:last-child { border: none; padding-top: 18px; }
  .nav-links .btn { width: 100%; justify-content: center; }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--navy-900); max-width: 11em; }
.hero .lede { font-size: 1.3rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 420px); height: auto; }
.hero-note { color: var(--slate); font-size: 0.95rem; margin-top: 18px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(70%, 300px); }
}
.wave { display: block; width: 100%; height: 72px; }
.wave-flip { transform: scaleY(-1); }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-accent { border-top: 5px solid var(--sun); }
.card-seaglass { background: var(--seaglass); border-color: transparent; box-shadow: none; }
.stat { font-family: var(--font-display); font-variation-settings: 'SOFT' 100, 'opsz' 96; font-weight: 600; font-size: 3.4rem; line-height: 1; color: var(--navy-700); }
.stat-sun { color: #C9A128; }
.stat-label { color: var(--muted); margin-top: 10px; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--seaglass); color: var(--atlantic);
}
.icon svg { width: 26px; height: 26px; }
.icon-sun { background: #FBEBB4; color: #8A6A0C; }
.icon-slate { background: var(--slate-100); color: var(--slate-700); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); color: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 3px;
}
.checklist .tick svg { width: 14px; height: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 22px 20px; }
.step .num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--navy-900);
  font-weight: 800; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { margin: 0; color: #E3EAEF; font-size: 0.97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Industry tiles */
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tile h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tile ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
.tile li { margin-bottom: 4px; }

/* Sample scorecard mock */
.mock { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mock-head { background: var(--navy-900); color: var(--white); padding: 14px 20px; font-weight: 700; font-size: 0.95rem; display: flex; justify-content: space-between; gap: 12px; }
.mock-head span { color: var(--seafoam); font-weight: 600; }
.mock table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.mock td { padding: 11px 20px; border-top: 1px solid var(--line); }
.mock td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.mock tr:first-child td { border-top: none; }
.mock .note { padding: 12px 20px 16px; background: var(--seaglass); font-size: 0.9rem; color: var(--muted); }
.sample-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin: 10px 0 0; }

/* Proof / coming soon */
.coming {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--slate-100); color: var(--slate-700); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.coming::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.published { background: #E3F3E8; color: #1F6B3A; }
.published::before { background: #2E9E5B; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--atlantic); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 48em; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; color: var(--navy-900); }
input, select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--seafoam); border-color: var(--atlantic); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.honey { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--slate); color: #E3EAEF; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand-word, .site-footer .brand { color: var(--white); }
.site-footer .brand-sub { color: var(--seafoam); }
.site-footer h4 { color: var(--white); margin-bottom: 10px; }
.site-footer a { color: #F1F5F8; }
.site-footer a:hover { color: var(--sun); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 36px; padding-top: 18px; font-size: 0.88rem; color: #CBD5DD; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Insights hub */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.filters input[type="search"], .filters select { width: auto; min-width: 220px; }
.filters input[type="checkbox"] { width: 18px; height: 18px; min-width: 0; padding: 0; margin: 0; accent-color: var(--atlantic); }
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.county {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px; min-height: 118px;
}
.county.is-soon { background: #FBFAF6; }
.county .name { font-weight: 800; color: var(--navy-900); font-size: 1.05rem; }
.county .seat { color: var(--muted); font-size: 0.88rem; }
.county .summary { font-size: 0.92rem; color: var(--muted); }
.county .status { margin-top: auto; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.county.is-live .status { color: #1F6B3A; }
.county a.name { text-decoration: none; }
.county a.name:hover { color: var(--atlantic); }
.progress { height: 10px; background: var(--slate-100); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: var(--atlantic); width: 0; border-radius: 999px; }

.method { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.method dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.method dt { font-weight: 700; color: var(--navy-900); }
.method dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .method dl { grid-template-columns: 1fr; gap: 4px 0; } .method dd { margin-bottom: 10px; } }

/* Utility */
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--seaglass); color: var(--navy-700); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; font-weight: 700; }
.quote {
  font-family: var(--font-display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--navy-700); line-height: 1.3; margin: 0;
}
.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--seaglass-2); border: 2px dashed var(--seafoam);
  display: flex; align-items: center; justify-content: center; color: var(--slate); font-weight: 700; text-align: center; padding: 20px;
}
.skip { position: absolute; left: -9999px; top: 0; background: var(--sun); padding: 8px 12px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; }
