/* ==========================================================================
   On-the-Go Notary Service
   Mobile-first, no dependencies.
   ========================================================================== */

:root {
  --navy: #14273f;
  --navy-deep: #0d1b2e;
  --navy-soft: #24405f;
  --gold: #c9973b;
  --gold-dark: #8a6212;
  --gold-light: #f0d9a8;
  --ink: #1c2530;
  --muted: #55606e;
  --line: #e2ddd2;
  --paper: #fbf9f4;
  --tint: #f3efe6;
  --white: #fff;
  --error: #a3261c;

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

  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 39, 63, .06), 0 8px 24px rgba(20, 39, 63, .08);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 60px; /* room for the mobile action bar */
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.5vw, 3.9rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-soft); }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.container.narrow { width: min(100% - 2rem, 760px); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--navy); padding: .6rem 1rem; border-radius: 6px; }
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .8rem;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .65rem 1.25rem;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 8px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-lg { min-height: 54px; padding: .8rem 1.6rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #d8a94f; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; color: var(--white); text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; display: block; }
.brand-text { font-size: .78rem; line-height: 1.15; letter-spacing: .1em; text-transform: uppercase; }
.brand-text strong { font: 700 1.12rem/1.1 var(--serif); letter-spacing: 0; text-transform: none; }

.nav-toggle { width: 46px; height: 46px; background: none; border: 0; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, background-color .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-deep); padding: .5rem 1rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1);
}
.site-nav.open { display: block; }
.site-nav li a { display: block; padding: .85rem .25rem; color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-nav .header-call { margin-top: 1rem; width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.75rem; position: static; background: none; padding: 0; border: 0; }
  .site-nav ul { display: flex; gap: 1.5rem; }
  .site-nav li a { padding: .4rem 0; border: 0; font-size: .95rem; opacity: .88; }
  .site-nav li a:hover { opacity: 1; box-shadow: 0 2px 0 var(--gold); }
  .site-nav .header-call { margin: 0; width: auto; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201, 151, 59, .22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #dfe6ee; padding: 3rem 0 3.5rem;
}
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--gold-light); }
.lead { font-size: 1.2rem; max-width: 34em; }
.hero-grid { display: grid; gap: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero-actions .btn { flex: 1 1 220px; }

.trust-list { display: grid; gap: .5rem; font-size: .98rem; }
.trust-list li, .checklist li { position: relative; padding-left: 1.7rem; }
.trust-list li::before, .checklist li::before {
  content: ""; position: absolute; left: .15rem; top: .42em; width: .8rem; height: .42rem;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg);
}

.hero-card { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 1.6rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); border-top: 5px solid var(--gold); }
.hero-card h2 { font-size: 1.5rem; }
.hero-facts { margin: 1.2rem 0; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.hero-facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); padding-top: .2rem; }
.hero-facts dd { margin: 0; font-weight: 600; line-height: 1.35; }
.hero-facts dd span { font-weight: 400; color: var(--muted); font-size: .92rem; }

@media (min-width: 900px) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 4rem; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: #dfe6ee; }
.section-navy h2 { color: var(--white); }
.section-navy .eyebrow { color: var(--gold-light); }
.section-head { max-width: 42rem; margin-bottom: 2.25rem; }
.section-head p:last-child { color: var(--muted); margin: 0; }
@media (min-width: 900px) { .section { padding: 5.5rem 0; } }

/* Service cards ---------------------------------------------------------- */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card-icon { width: 34px; height: 34px; margin-bottom: 1rem; fill: none; stroke: var(--gold-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.note { margin: 1.75rem 0 0; padding: 1rem 1.25rem; background: var(--tint); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-size: .98rem; }

/* Steps ------------------------------------------------------------------ */
.steps { display: grid; gap: 1.75rem; counter-reset: step; margin-bottom: 2.5rem; }
.steps li { counter-increment: step; padding-top: 1.1rem; border-top: 2px solid var(--navy); }
.steps li::before { content: "0" counter(step); display: block; font: 700 2.2rem/1 var(--serif); color: var(--gold-dark); margin-bottom: .7rem; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.checklist-panel { display: grid; gap: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.checklist { display: grid; gap: .65rem; }
.checklist li::before { border-color: var(--gold-dark); }
@media (min-width: 760px) { .checklist-panel { grid-template-columns: 1.3fr 1fr; padding: 2.25rem; gap: 3rem; } }

/* Pricing ---------------------------------------------------------------- */
.pricing-grid { display: grid; gap: 1.5rem; }
.price-table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.25rem 1rem; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table caption { text-align: left; font: 700 1.2rem var(--serif); color: var(--navy); padding: 1rem 0 .5rem; }
.price-table th, .price-table td { padding: .85rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.price-table th { text-align: left; font-weight: 400; padding-right: 1rem; }
.price-table td { text-align: right; font-weight: 700; white-space: nowrap; color: var(--navy); font-variant-numeric: tabular-nums; }

.price-aside { background: var(--navy); color: #dfe6ee; border-radius: var(--radius); padding: 1.75rem; }
.price-aside h3 { color: var(--white); font-size: 1.3rem; }
.price-aside ul { margin: 1rem 0; }
.price-aside li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.price-aside li strong { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.fine { font-size: .88rem; color: var(--muted); }
.price-aside .fine { color: #b4c0ce; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }

/* Service area ----------------------------------------------------------- */
.area-grid { display: grid; gap: 2.5rem; }
.area-grid .btn { margin-top: .5rem; }
.city-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.5rem; align-content: start; }
.city-list li { padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: var(--white); font-weight: 600; }
@media (min-width: 900px) { .area-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; } }

/* FAQ -------------------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0; font: 700 1.12rem/1.35 var(--serif); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: .6rem; height: .6rem; margin-top: -.45rem;
  border-right: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.faq details p { color: var(--muted); padding-right: 2rem; margin-bottom: 1.25rem; }

/* Booking ---------------------------------------------------------------- */
.book-grid { display: grid; gap: 2rem; }
.contact-list { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.contact-list li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.contact-list a { font-weight: 700; font-size: 1.15rem; color: var(--navy); overflow-wrap: anywhere; }

.book-form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #b9b3a5; border-radius: 8px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(201, 151, 59, .45); outline-offset: 0; border-color: var(--gold-dark); }
input[aria-invalid="true"] { border-color: var(--error); }
::placeholder { color: #8a8f97; }
.form-error { color: var(--error); font-weight: 600; }
.form-status { margin: 1rem 0 0; padding: .85rem 1rem; background: #eaf3ea; border-radius: 8px; color: #1f4d25; font-weight: 600; }
.book-form .fine { margin: 1rem 0 0; }
@media (min-width: 900px) { .book-grid { grid-template-columns: 1fr 1.25fr; gap: 4rem; } .book-form { padding: 2rem; } }


/* Quote page ------------------------------------------------------------- */
.quote-section { padding-top: 2.5rem; }
.quote-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }
.quote-h1 { font-size: clamp(2rem, 5vw, 3rem); }
.lead-dark { font-size: 1.1rem; color: var(--muted); max-width: 36em; margin-bottom: 1.5rem; }
.help { font-size: .88rem; color: var(--muted); margin: .35rem 0 0; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { font-weight: 600; font-size: .95rem; margin-bottom: .45rem; padding: 0; }
.choice-list { display: grid; gap: .5rem; }
.choice { display: flex; gap: .75rem; align-items: flex-start; margin: 0; padding: .8rem .9rem; border: 1.5px solid #b9b3a5; border-radius: 8px; background: var(--white); cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--gold-dark); background: #fbf3e2; box-shadow: inset 0 0 0 1px var(--gold-dark); }
.choice input, .check input { width: 20px; height: 20px; min-height: 0; margin: .15rem 0 0; flex: none; accent-color: var(--gold-dark); }
.choice span { line-height: 1.4; color: var(--muted); font-size: .95rem; }
.choice strong { display: block; color: var(--ink); font-size: 1rem; }
.checks { display: grid; gap: .25rem; }
.check { display: flex; gap: .7rem; align-items: center; min-height: 44px; margin: 0; font-weight: 400; cursor: pointer; }
.form-error a { color: var(--error); }

.quote-result { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.quote-result h2 { font-size: 1.6rem; }
.quote-result h2:focus { outline: none; }
.quote-place { line-height: 1.45; overflow-wrap: anywhere; }
.quote-miles { display: inline-block; font-weight: 700; color: var(--navy); background: var(--gold-light); border-radius: 999px; padding: .1rem .6rem; margin: .4rem .25rem 0 0; font-variant-numeric: tabular-nums; }
.quote-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.quote-table th, .quote-table td { text-align: left; vertical-align: top; padding: .75rem 0; border-top: 1px solid var(--line); }
.quote-table th { font-weight: 600; padding-right: 1rem; }
.quote-table th span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); line-height: 1.4; margin-top: .15rem; }
.quote-table td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-table tfoot th, .quote-table tfoot td { border-top: 2px solid var(--navy); font-size: 1.25rem; color: var(--navy); font-family: var(--serif); }
.quote-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
@media (min-width: 560px) { .quote-actions { grid-template-columns: 1fr 1fr; } .quote-actions .btn-lg { grid-column: 1 / -1; } }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--tint); }
.quote-callout { background: var(--tint); border-radius: 10px; padding: 1rem; }
.quote-how h2 { color: var(--white); font-size: 1.3rem; }
.quote-how li span { line-height: 1.4; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #b4c0ce; padding-top: 3rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { font: 700 1.25rem var(--serif); color: var(--white); margin-bottom: .5rem; }
.site-footer nav li { margin-bottom: .5rem; }
.disclaimer { font-size: .88rem; }
.disclaimer strong { color: var(--white); }
.footer-bottom { margin-top: 2rem; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr .8fr 1.5fr; gap: 3rem; } }

/* Mobile action bar ------------------------------------------------------ */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.2fr;
  background: var(--navy-deep); border-top: 1px solid rgba(255, 255, 255, .15);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a { display: grid; place-items: center; min-height: 56px; color: var(--white); font-weight: 700; text-decoration: none; }
.mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, .15); }
.mobile-bar .primary { background: var(--gold); color: var(--navy-deep); }
@media (min-width: 900px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .mobile-bar, .book-form, .hero-actions, .quote-actions, .quote-how .btn, .site-footer nav { display: none; }
  .quote-result { box-shadow: none; border: 1px solid #999; }
  .quote-grid { display: block; }
  body { padding: 0; background: #fff; }
}
