/* ---------- Tokens ---------- */
:root {
  --navy: #13293d;
  --navy-2: #1c3a55;
  --bg: #f8f4ed;
  --bg-alt: #efe8dc;
  --surface: #ffffff;
  --ink: #1b1f24;
  --muted: #4a5260;
  --line: #d8cfc0;
  --accent: #f2b544;
  --accent-ink: #13293d;
  --error: #a3261b;
  --focus: #0b63c4;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --gutter: 16px;
  --header-h: 60px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--navy-2); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.section-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #f6c76a; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 12px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: inherit; text-decoration: none; }
.nav-toggle {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6);
  border-radius: 8px; padding: 6px 14px; font: 600 .95rem var(--sans); min-height: 40px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { text-decoration: underline; }

@media (max-width: 859px) {
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,.15);
    padding: 8px var(--gutter) 16px;
  }
  .site-nav.open { display: block; }
  .site-nav li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav .btn { margin-top: 12px; width: 100%; }
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: 22px; }
}

/* ---------- Photo placeholders ---------- */
.photo-ph {
  position: relative; background-color: var(--navy-2);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px);
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
}
.photo-ph::after {
  content: "Photo: " attr(aria-label);
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  color: rgba(255,255,255,.75); font-size: .8rem; line-height: 1.35;
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: auto; border-radius: 0; z-index: -2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(19,41,61,.55) 0%, rgba(19,41,61,.85) 100%);
}
.hero-media.photo-ph::after { left: auto; right: 16px; bottom: 12px; max-width: 60%; text-align: right; z-index: 1; }
.hero-content { padding-top: 64px; padding-bottom: 88px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero-sub { font-size: 1.15rem; max-width: 40ch; color: #e8edf2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}
@media (min-width: 860px) {
  .hero-content { padding-top: 120px; padding-bottom: 140px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.lede { font-size: 1.1rem; max-width: 60ch; color: var(--muted); }
@media (min-width: 860px) { .section { padding: 88px 0; } }

/* Cards */
.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--accent); }
.card p { margin: 0; color: var(--muted); }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.steps li { counter-increment: step; position: relative; padding-left: 60px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font: 600 1.2rem var(--display);
}
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.photo-row { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 600px) { .photo-row { grid-template-columns: 1fr 1fr; } }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-size: 1.08rem; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .35em;
  width: 16px; height: 9px; border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy);
  transform: rotate(-45deg);
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .95rem; }
tbody th { font-weight: 500; }
td { font-weight: 600; color: var(--navy); }
#enough td { white-space: nowrap; }
.offer { background: var(--surface); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 6px; }
.limit { font-weight: 600; }

.reviews-ph { border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; color: var(--muted); margin: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 1.08rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 62ch; }

/* ---------- Form ---------- */
.quote-form { margin-top: 24px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.quote-form label, .quote-form legend { font-weight: 600; }
.req { font-weight: 400; color: #c7d2dc; font-size: .9rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #8fa3b5; border-radius: 8px; padding: 11px 12px; min-height: 48px;
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #69717d; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 2px #ffb4ab; }
.error { margin: 0; color: #ffd3cc; font-size: .95rem; font-weight: 600; min-height: 0; }
.error:empty { display: none; }
fieldset.field { border: 0; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 4px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; min-height: 44px; cursor: pointer; }
.radios input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.is-error { color: #ffd3cc; }
.form-status a, .form-success a, .section-dark a { color: #fff; }
.form-success { margin-top: 24px; background: var(--navy-2); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 24px; }
.form-success:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0d1e2d; color: #d9e1e8; padding: 40px 0 24px; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 6px; }
.site-footer .brand { font-size: 1.25rem; color: #fff; margin-bottom: 8px; }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 600px) { .footer-inner { grid-template-columns: 1fr auto; } }
.fine { margin-top: 24px !important; font-size: .85rem; color: #a9b6c2; }

/* ---------- Simple pages ---------- */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
