/* Derek S Ballard Insurance Inc — Salt Lake Valley / Wasatch Front theme */

:root {
  --stone: #F7F5F0;
  --paper: #FFFFFF;
  --ink: #24303A;
  --ink-soft: #4A5760;
  --rust: #A85438;
  --rust-dark: #8A4029;
  --sage: #5C6E5A;
  --line: #DAD3C3;
  --line-soft: #E9E4D8;
  --focus: #2F6E5E;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--rust-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75em;
  display: block;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--stone);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--rust-dark); }
nav.site-nav a {
  margin-left: 28px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
nav.site-nav a:hover { color: var(--rust-dark); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { padding-bottom: 56px; }
.hero-lede { max-width: 46ch; font-size: 1.05rem; }
.ridgeline { width: 100%; height: auto; display: block; }

/* Coverage grid */
.coverage {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.coverage-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 20px;
}
.coverage-card h3 { margin-bottom: 6px; }
.coverage-card p { margin: 0; font-size: 0.95rem; }

/* Local blurb */
.local {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.local .wrap { max-width: 720px; }

/* Form section */
.quote {
  padding: 64px 0 80px;
}
.quote-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.quote-side h2 { margin-bottom: 14px; }
.quote-side .contact-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

form.quote-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--stone);
  font-family: 'Public Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-required-mark { color: var(--rust-dark); }

.consent-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--stone);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 24px;
}
.consent-field input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--sage);
}
.consent-field label {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-transform: none;
  font-family: 'Public Sans', sans-serif;
  letter-spacing: normal;
}
.consent-field label a { color: var(--rust-dark); }

.honeypot-field { position: absolute; left: -9999px; opacity: 0; }

button.submit-btn {
  background: var(--rust-dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 13px 28px;
  font-size: 1rem;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
}
button.submit-btn:hover { background: var(--rust); }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  background: var(--stone);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-right: 20px;
}
.footer-links a:hover { color: var(--rust-dark); }

/* Legal page layout */
.legal-page { padding: 56px 0 80px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h2 { margin-top: 2em; }
.legal-page section:first-of-type h2 { margin-top: 0.6em; }
.legal-page ul { color: var(--ink-soft); padding-left: 1.3em; }
.legal-page li { margin-bottom: 0.5em; }
.legal-updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.callout {
  border-left: 3px solid var(--sage);
  background: var(--paper);
  padding: 18px 22px;
  border-radius: 0 4px 4px 0;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr 1fr; }
  nav.site-nav a { margin-left: 16px; }
}
@media (max-width: 560px) {
  .coverage-grid { grid-template-columns: 1fr; }
  .header-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  nav.site-nav a { margin-left: 0; margin-right: 18px; }
  form.quote-form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
