:root {
  --bg: #181434;
  --bg-light: #211c3f;
  --accent: #e07060;
  --salmon: #f37869;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.35);
  --title-size: 3.15rem;
  --subtitle-size: 1.3rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", -apple-system, Arial, sans-serif;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: "Glegoo", Georgia, "Times New Roman", serif;
  font-weight: 400;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Header / Nav ── */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: "Glegoo", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a.active {
  border-bottom-color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
}

/* ── Hero ── */
.hero {
  padding: 60px 0 40px;
}

.hero h1 {
  font-size: var(--title-size);
  line-height: 1.15;
  max-width: 900px;
}

@media (max-width: 700px) {
  :root { --title-size: 2.1rem; }
}

/* ── Stats (extracted from live site) ── */
.aod-stats-wrap {
  background-color: transparent;
  padding: 25px 25px 0 25px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
}

.aod-stat {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 20px 10px;
}

.aod-stat-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1.1;
}

.aod-stat-label {
  font-size: 16px;
  color: var(--accent);
  margin-top: 14px;
  font-family: sans-serif;
  letter-spacing: 0.03em;
}

@media (max-width: 767px) {
  .aod-stats-wrap { padding: 10px 10px 0 10px; }
  .aod-stat { padding: 10px 15px; }
  .aod-stat-number { font-size: 36px; }
}

/* ── Wave divider ── */
.wave-divider {
  display: block;
  width: 100%;
  height: 80px;
  margin-top: 40px;
}

/* Used when the section immediately above the wave has a white/light
   background — fills the SVG's transparent gaps so they match, instead
   of showing the navy body background through. */
.wave-divider--onlight {
  background: #ffffff;
  margin-top: 0;
}

/* ── Services (light section) ── */
.services {
  background: #ffffff;
  color: #181434;
  padding: 70px 0 80px;
}

.services h2 {
  font-size: var(--title-size);
  margin-bottom: 40px;
}

.service-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(24, 20, 52, 0.12);
}

.service-item:last-child {
  border-bottom: 1px solid rgba(24, 20, 52, 0.12);
}

.service-item h3 {
  color: var(--salmon);
  font-weight: 700;
  font-size: var(--subtitle-size);
  line-height: 1.3;
}

.service-item p {
  margin: 0;
  color: #181434;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .service-item { grid-template-columns: 1fr; gap: 10px; }
}

/* ── Licensed states ── */
.states {
  background: var(--bg);
  padding: 60px 0;
  text-align: center;
}

.states h2 {
  font-size: var(--title-size);
  margin-bottom: 40px;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 18px 20px;
  max-width: 980px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  color: var(--text);
  font-family: "Glegoo", Georgia, serif;
  font-size: var(--subtitle-size);
}

.states-grid li {
  white-space: nowrap;
}

@media (max-width: 540px) {
  .states-grid li {
    white-space: normal;
  }
}

.states-grid li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.states-grid.in-view li {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ── */
.site-footer {
  padding: 32px 0 40px;
  text-align: center;
  color: var(--text-faint);
  font-family: "Glegoo", Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-faint);
  margin: 0 8px;
}

.footer-links a:hover { color: var(--text); }

/* ── Legal content pages (Terms, Privacy) ── */
.legal-content {
  padding: 10px 0 80px;
  max-width: 820px;
}

.legal-content h1 { font-size: var(--title-size); margin-bottom: 8px; }

.legal-content .legal-meta {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  margin: 40px 0 14px;
}

.legal-content h3 {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 24px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 16px;
}

.legal-content a { color: var(--accent); text-decoration: underline; }

.legal-content ul,
.legal-content ol {
  padding-left: 20px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 14px;
}

.legal-content table td,
.legal-content table th {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 10px;
  text-align: left;
  color: var(--text-dim);
  vertical-align: top;
}

/* ── Page header (non-home pages) ── */
.page-hero {
  padding: 56px 0 20px;
}

.page-hero h1 {
  font-size: var(--title-size);
}

.section-pad-top {
  padding-top: 48px;
}

/* ── Contact page (white section, matches live site) ── */
.contact-section {
  background: #ffffff;
  color: #181434;
  padding: 56px 0 80px;
}

.contact-title {
  font-size: var(--title-size);
  margin-bottom: 28px;
}

.contact-intro {
  color: #181434;
  max-width: 720px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  padding: 24px 0 0;
}

@media (max-width: 800px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}

.contact-info p {
  color: #181434;
  margin: 0 0 14px;
  line-height: 1.7;
}

.contact-info strong { color: var(--salmon); }

.contact-info a {
  color: #181434;
  text-decoration: underline;
}

.map-embed {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(24, 20, 52, 0.15);
  scroll-margin-top: 100px;
  transition: box-shadow 0.3s ease;
}

.map-embed:target {
  box-shadow: 0 0 0 3px var(--salmon);
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.15);
}

.contact-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(24, 20, 52, 0.55);
  margin: 18px 0 6px;
}

.contact-form label:first-child { margin-top: 0; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(24, 20, 52, 0.25);
  border-radius: 6px;
  padding: 12px 14px;
  color: #181434;
  font-family: inherit;
  font-size: 15px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input[data-fs-field][aria-invalid="true"],
.contact-form textarea[data-fs-field][aria-invalid="true"],
.contact-form select[data-fs-field][aria-invalid="true"] {
  border-color: #d1493a;
}

.form-field-error {
  display: block;
  color: #d1493a;
  font-size: 12px;
  margin-top: 4px;
}

.contact-form .name-row,
.contact-form .city-state-zip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .city-state-zip-row {
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-top: 18px;
}

.contact-form .city-state-zip-row label {
  min-height: 34px;
  line-height: 1.3;
}

@media (max-width: 500px) {
  .contact-form .name-row,
  .contact-form .city-state-zip-row { grid-template-columns: 1fr; }
}

.contact-form button {
  margin-top: 26px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

@media (max-width: 800px) {
  .contact-form button {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

.contact-form button:hover { opacity: 0.85; }

/* ── File drop zone ── */
.file-drop-zone {
  border: 1px dashed rgba(24, 20, 52, 0.5);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
  background: rgba(24, 20, 52, 0.04);
  border-color: var(--salmon);
}

.file-drop-zone label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.file-drop-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-drop-icon {
  font-size: 20px;
  line-height: 1;
  color: #181434;
}

.file-drop-text {
  font-size: 14px;
  color: #181434;
}

.file-drop-filename {
  font-size: 13px;
  color: var(--salmon);
  margin-top: 4px;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
}

.form-status.success,
.form-status.error {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.form-status.success { color: #7fd88f !important; }
.form-status.error { color: #ff8c7a !important; }

/* ── Cookie consent banner ── */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.cookie-banner-ok {
  background: #eab308;
  color: #14110a;
  border: none;
  border-radius: 4px;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.cookie-banner-ok:hover { opacity: 0.85; }

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
