@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ─── Variables ──────────────────────────────────────────────────── */
:root {
  --bg:           #F7F5F0;
  --surface:      #FFFFFF;
  --text:         #2C2C2A;
  --text-muted:   #5F5E5A;
  --text-light:   #888780;
  --border:       #D3D1C7;
  --border-light: #E8E6E0;
  --green:        #0F6E56;
  --green-dark:   #085041;
  --green-mid:    #1D9E75;
  --green-light:  #5DCAA5;
  --green-tint:   #F0FAF5;
  --green-border: #9FE1CB;
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   8px;
  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'DM Sans', system-ui, -apple-system, sans-serif;
  --max-w:  860px;
}

/* ─── Base ───────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
h4 { font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: .5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 500; }

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .3rem; }

.serif { font-family: var(--serif); }

/* ─── Layout ─────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--wide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-light);
}
section:last-child { border-bottom: none; }

/* ─── Navigation ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--green-dark);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: .35rem .65rem;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.nav-links a:hover {
  color: var(--green);
  background: var(--green-tint);
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border-light);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.hero-copy .eyebrow {
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--green);
  margin-bottom: .6rem;
}
.hero-copy h1 { margin-bottom: .75rem; }
.hero-copy .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── Calculator Card ────────────────────────────────────────────── */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.calc-card h2 {
  font-size: 1.15rem;
  font-family: var(--sans);
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.field select {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: .95rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235F5E5A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.25rem;
  transition: border-color .15s;
}
.field select:focus {
  outline: none;
  border-color: var(--green);
}
.field select:hover { border-color: var(--text-light); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.calc-btn {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  margin-top: .5rem;
  transition: background .15s;
}
.calc-btn:hover { background: var(--green-dark); }
.calc-btn:active { transform: scale(.99); }

/* Calculator Result */
.calc-result {
  display: none;
  margin-top: 1.25rem;
  background: var(--green-tint);
  border: 1px solid var(--green-border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
}
.calc-result.visible { display: block; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: .75rem;
}
.result-item { }
.result-label {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-dark);
  margin-bottom: .2rem;
}
.result-value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.result-value.serif {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--green-dark);
}
.result-note {
  font-size: .85rem;
  color: var(--green-dark);
  padding-top: .6rem;
  border-top: 1px solid var(--green-border);
  margin-bottom: .6rem;
}
.result-cta {
  display: inline-block;
  margin-top: .5rem;
  padding: .55rem 1.1rem;
  background: var(--green);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.result-cta:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.result-cta:active { transform: scale(.99); }
.calc-error {
  color: #993C1D;
  font-size: .9rem;
}

/* ─── Summary Price Table (Section 1) ───────────────────────────── */
.price-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}
.price-summary table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.price-summary th {
  background: var(--bg);
  padding: .65rem 1rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.price-summary td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.price-summary tr:last-child td { border-bottom: none; }
.price-summary tr:hover td { background: var(--bg); }
.size-badge {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
  border-radius: var(--r-sm);
  font-size: .78rem;
  font-weight: 500;
  padding: .2rem .55rem;
}
.price-range { font-weight: 500; color: var(--text); }

/* ─── Factor List (Section 2) ────────────────────────────────────── */
.factors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.factor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.factor-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--green-tint);
  border: 1px solid var(--green-border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.factor-icon svg { width: 18px; height: 18px; }
.factor-body h3 {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: .2rem;
}
.factor-body p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ─── Regional Pricing Tables (Section 3) ───────────────────────── */
.region-block { margin-bottom: 2.5rem; }
.region-block:last-child { margin-bottom: 0; }
.region-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.region-tag {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--green-dark);
  background: var(--green-tint);
  border: 1px solid var(--green-border);
  padding: .25rem .65rem;
  border-radius: 20px;
}
.region-block p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.region-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.region-table th {
  background: var(--bg);
  padding: .55rem .85rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.region-table td {
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}
.region-table tr:last-child td { border-bottom: none; }
.region-table tr:hover td { background: var(--bg); }
.region-table .note-col {
  font-size: .8rem;
  color: var(--text-light);
}

/* City Callout */
.city-callout {
  background: var(--surface);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: .85rem 1.1rem;
  margin: .9rem 0;
  font-size: .9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.city-callout strong { color: var(--text); }
.city-callout a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}
.city-callout a:hover { text-decoration: underline; }

/* ─── Fair Price Tips (Section 4) ───────────────────────────────── */
.tips-list {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
}
.tips-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border-light);
}
.tips-list li:last-child { border-bottom: none; }
.tip-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .15rem;
}
.tip-text { font-size: .9rem; color: var(--text-muted); line-height: 1.55; }
.tip-text strong { color: var(--text); }

/* ─── Sizing Guide (Section 5) ───────────────────────────────────── */
.size-guide-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}
#size-guide-svg {
  width: 100%;
  height: auto;
  display: block;
}
.share-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .9rem 1.1rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
  align-items: center;
}
.share-label {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-light);
  margin-right: .25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .35rem .7rem;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.share-btn:hover {
  color: var(--green);
  border-color: var(--green-border);
  background: var(--green-tint);
}

/* Embed Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 42, .5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.visible { display: flex; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 520px;
}
.modal-box h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: .75rem;
}
.modal-box p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.embed-code-wrap { position: relative; margin-bottom: 1rem; }
.embed-code-wrap textarea {
  width: 100%;
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .75rem;
  resize: none;
  height: 72px;
  line-height: 1.5;
}
.modal-footer {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}
.btn-secondary {
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  transition: border-color .15s, color .15s;
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }
.btn-primary {
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.btn-primary:hover { background: var(--green-dark); }

/* ─── Prohibited (Section 6) ─────────────────────────────────────── */
.allowed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.allowed-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
}
.allowed-box h3 {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.allowed-box h3 svg { width: 16px; height: 16px; flex-shrink: 0; }
.h3-yes { color: var(--green); }
.h3-no  { color: #993C1D; }
.allowed-box ul {
  padding-left: 1.1rem;
  margin: 0;
}
.allowed-box ul li {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: .25rem;
}

/* ─── FAQ (Section 7) ────────────────────────────────────────────── */
.faq-list { margin-top: 1.25rem; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: .6rem;
  overflow: hidden;
}
details.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 500;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-light);
  transition: transform .2s;
}
details.faq-item[open] summary .chevron { transform: rotate(180deg); }
details.faq-item[open] summary { border-bottom: 1px solid var(--border-light); }
.faq-answer {
  padding: .9rem 1.25rem 1rem;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-answer strong { color: var(--text); }

/* ─── City Directory (Section 8) ────────────────────────────────── */
.city-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.state-group h3 {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  margin-bottom: .6rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border-light);
}
.state-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.state-group ul li { margin-bottom: 0; }
.state-group ul li a {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  color: var(--green);
  text-decoration: none;
  padding: .3rem 0;
  font-weight: 500;
}
.state-group ul li a:hover { color: var(--green-dark); text-decoration: underline; }
.state-group ul li a svg { width: 12px; height: 12px; flex-shrink: 0; }
.city-coming {
  font-size: .875rem;
  color: var(--text-light);
  padding: .3rem 0;
  font-style: italic;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: #C4C3C0;
  padding: 2.5rem 0;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: .35rem;
}
.footer-brand p {
  font-size: .8rem;
  color: #888780;
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li { margin-bottom: 0; }
.footer-nav a {
  font-size: .85rem;
  color: #C4C3C0;
  text-decoration: none;
  padding: .2rem 0;
  display: block;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #444441;
  font-size: .78rem;
  color: #5F5E5A;
  text-align: center;
}

/* ─── Section Intro ──────────────────────────────────────────────── */
.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 680px;
}

/* ─── Info Callout ───────────────────────────────────────────────── */
.info-callout {
  background: var(--green-tint);
  border: 1px solid var(--green-border);
  border-radius: var(--r-md);
  padding: .85rem 1.1rem;
  font-size: .9rem;
  color: var(--green-dark);
  margin: 1.25rem 0;
  display: flex;
  gap: .65rem;
  align-items: flex-start;
}
.info-callout svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .15rem; }

/* ─── Responsive ─────────────────────────────────────────────────── */

/* Tables — horizontal scroll at any width where they'd overflow */
.price-summary {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.price-summary table { min-width: 480px; }

.region-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
}
.region-table { min-width: 520px; }

@media (max-width: 860px) {
  .region-table { font-size: .82rem; }
}

@media (max-width: 700px) {
  /* Layout */
  section { padding: 2.5rem 0; }
  .hero { padding: 2rem 0 1.75rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.75rem; }

  /* Nav */
  .nav-links { display: none; }

  /* Calculator */
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .result-grid { grid-template-columns: 1fr 1fr; }

  /* Factors */
  .factors-grid { grid-template-columns: 1fr; }

  /* Pricing tables — reinforce scroll */
  .price-summary table { min-width: 440px; }
  .region-table { min-width: 460px; font-size: .8rem; }

  /* Allowed/prohibited */
  .allowed-grid { grid-template-columns: 1fr; }

  /* Share bar — wrap to two rows, smaller text */
  .share-bar { gap: .4rem; }
  .share-btn { font-size: .75rem; padding: .3rem .55rem; }

  /* City directory */
  .city-directory { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 1.25rem; }
}

@media (max-width: 480px) {
  .result-grid { grid-template-columns: 1fr; }
  .city-directory { grid-template-columns: 1fr; }
  .share-bar { gap: .35rem; }
}
