/* =========================================================
   Coker Construction — Waddell, AZ
   Design direction: "Grove & Range" — Newsreader humanist serif
   display, Public Sans humanist body, italic small-caps utility
   labels (no mono), warm citrus-cream palette with harvest gold
   + clay + water-sage. White Tank horizon as the hero signature,
   orchard-row vertical dividers between sections.

   Built to read like a land-and-build studio for rural acreage,
   not a city contractor. Visually unrelated to Goodyear's site.
   ========================================================= */

:root {
  /* Palette — warm citrus undertone, agrarian */
  --paper: #F0E8D2;
  --paper-deep: #E2D2A0;
  --ink: #1F1A11;
  --ink-soft: #4B3D2A;
  --harvest: #B5862A;
  --harvest-bright: #D49E2C;
  --clay: #8C3D1F;
  --water: #5C6F6B;
  --water-soft: #7A8C88;
  --rule: rgba(31, 26, 17, 0.18);
  --rule-strong: rgba(31, 26, 17, 0.4);

  /* Type — humanist, warmer than Goodyear */
  --serif: "Newsreader", "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing — more breathing room than Goodyear */
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --max: 1180px;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(140, 61, 31, 0.4);
}
a:hover { text-decoration-color: var(--clay); }

/* Type scale — display uses Newsreader italic for personality */
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-variant: small-caps;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--clay);
}
.eyebrow--water { color: var(--water); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.1; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.22; }
h4 { font-size: 1.1rem; line-height: 1.3; }

/* Italic in headlines pulls personality from Newsreader */
h1 em, h2 em { font-style: italic; color: var(--harvest); font-weight: 400; }

p { margin: 0 0 1.1em; }
p.lead {
  font-size: clamp(1.1rem, 1.65vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  font-weight: 400;
}

/* Layout primitives */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section--paper-deep { background: var(--paper-deep); }
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink p { color: rgba(240, 232, 210, 0.78); }
.section--ink .eyebrow { color: var(--harvest-bright); }
.section--ink a { color: var(--harvest-bright); }

/* Orchard-row divider — signature device */
.orchard {
  width: 100%;
  height: 32px;
  margin: 0;
  display: block;
  color: var(--water);
  opacity: 0.6;
}

.rule { border: 0; height: 1px; background: var(--rule); margin: 2.5rem 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 232, 210, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
}
.brand {
  font-family: var(--serif);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand strong { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.brand span {
  font-style: italic;
  font-variant: small-caps;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--water);
  margin-top: 0.2rem;
}
.nav {
  display: flex;
  gap: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--harvest); color: var(--ink); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
  .nav-toggle { display: block; }
}

/* Hero — different layout than Goodyear (centered headline, then split below) */
.hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: left;
  position: relative;
}
.hero__title { max-width: 22ch; margin-bottom: 1.75rem; }
.hero__lead { max-width: 56ch; margin-bottom: 2.25rem; }

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-strong);
}
.hero__split dl { margin: 0; }
.hero__split dt {
  font-family: var(--serif);
  font-style: italic;
  font-variant: small-caps;
  font-size: 0.85rem;
  color: var(--water);
  margin-bottom: 0.35rem;
}
.hero__split dd { margin: 0; font-size: 1rem; }

@media (max-width: 700px) {
  .hero__split { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* White Tank horizon signature — full-bleed below hero copy */
.horizon {
  width: 100%;
  height: auto;
  margin: 3rem 0 0;
  color: var(--clay);
}

/* CTA buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.6rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn__arrow { display: inline-block; transition: transform 0.15s ease; font-style: italic; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Two-column layouts — used variably */
.cols-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (max-width: 820px) { .cols-2 { grid-template-columns: 1fr; } }

.section__header { margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.section__header h2 { margin-top: 0.6rem; max-width: 24ch; }

/* Services — different from Goodyear (no spec-sheet, no monospace).
   Roman numerals, italic descriptions. */
.services-list { list-style: none; padding: 0; margin: 0; }
.service {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.service:last-child { border-bottom: 1px solid var(--rule); }
.service__roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--harvest);
  letter-spacing: 0;
  text-align: left;
  font-feature-settings: "lnum";
}
.service__title { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.service__desc { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin: 0; }

@media (max-width: 700px) {
  .service { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
  .service__roman { font-size: 1.2rem; }
}

/* Neighborhoods — card-grid feel, different from Goodyear's table cells */
.neighborhoods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.neighborhood {
  background: var(--paper);
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  position: relative;
  transition: border-color 0.15s ease;
}
.neighborhood:hover { border-color: var(--harvest); }
.neighborhood__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.neighborhood__tag {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-variant: small-caps;
  font-size: 0.78rem;
  color: var(--water);
  padding: 0.15rem 0;
}
.neighborhood__note {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0.7rem 0 0;
  line-height: 1.55;
}
.section--paper-deep .neighborhood { background: var(--paper); }

/* Process — Roman-numbered phases (different rhythm from Goodyear's "PHASE 01") */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
  counter-reset: phase;
}
.process__step {
  padding: 1.75rem 1.5rem 1.5rem;
  border-top: 2px solid var(--harvest);
  counter-increment: phase;
}
.process__step::before {
  content: counter(phase, upper-roman) ".";
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--harvest);
  display: block;
  margin-bottom: 0.75rem;
}
.process__step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.process__step p { font-size: 0.95rem; color: rgba(240, 232, 210, 0.78); margin: 0; }
.section--ink .process__step { border-top-color: var(--harvest-bright); }
.section--ink .process__step::before { color: var(--harvest-bright); }

/* FAQ */
.faq { }
.faq__item {
  border-top: 1px solid var(--rule);
}
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 1.75rem 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.faq__q::after {
  content: "→";
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--harvest);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq__item[open] .faq__q::after { transform: rotate(90deg); }
.faq__a {
  padding: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 68ch;
}
.faq__a p:last-child { margin-bottom: 0; }
.faq__item summary { list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dl { margin: 0; }
.contact-info dt {
  font-family: var(--serif);
  font-style: italic;
  font-variant: small-caps;
  font-size: 0.85rem;
  color: var(--water);
  margin-top: 1.75rem;
}
.contact-info dt:first-of-type { margin-top: 0; }
.contact-info dd { margin: 0.4rem 0 0; font-size: 1.05rem; }

.form { display: grid; gap: 1.4rem; }
.field { display: flex; flex-direction: column; }
.field > label {
  font-family: var(--serif);
  font-style: italic;
  font-variant: small-caps;
  font-size: 0.85rem;
  color: var(--water);
  margin-bottom: 0.55rem;
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--harvest);
  outline-offset: 0;
  border-color: var(--harvest);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 580px) { .field-row { grid-template-columns: 1fr; } }
.form__submit { justify-self: start; margin-top: 0.5rem; }
.form__msg {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--water);
  margin-top: 1rem;
}
.form__msg--error { color: var(--clay); }

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Services checkbox group */
.field--services { border: 0; padding: 0; margin: 0; }
.field--services legend {
  font-family: var(--serif);
  font-style: italic;
  font-variant: small-caps;
  font-size: 0.85rem;
  color: var(--water);
  margin-bottom: 0.8rem;
  padding: 0;
}
.field__hint {
  font-style: normal;
  font-variant: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-left: 0.5rem;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem 1rem;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 1.1rem;
  background: var(--paper);
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.96rem;
  padding: 0.3rem 0;
}
.checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--ink-soft);
  background: var(--paper);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
}
.checkbox input[type="checkbox"]:checked {
  background: var(--harvest);
  border-color: var(--harvest);
}
.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--harvest);
  outline-offset: 2px;
}

.recaptcha-notice {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  line-height: 1.5;
}
.recaptcha-notice a { color: var(--water); }
.grecaptcha-badge { visibility: hidden !important; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4.5rem 0 2rem;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--harvest-bright); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.footer-col h4 {
  color: var(--harvest-bright);
  font-family: var(--serif);
  font-style: italic;
  font-variant: small-caps;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; font-size: 0.96rem; }
.footer-brand p { color: rgba(240, 232, 210, 0.72); font-size: 0.95rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(240, 232, 210, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(240, 232, 210, 0.6);
}

/* Page-specific intro (subpages) */
.page-intro {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}
.page-intro h1 { max-width: 20ch; margin-bottom: 1.15rem; }
.page-intro p.lead { max-width: 60ch; }

/* Pull quote / story breakout */
.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.25;
  font-style: italic;
  color: var(--ink);
  padding: 2.2rem 0;
  border-top: 2px solid var(--harvest);
  border-bottom: 1px solid var(--rule);
  margin: 2.5rem 0;
  max-width: 36ch;
}
.pullquote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: italic;
  font-variant: small-caps;
  font-size: 0.85rem;
  color: var(--water);
}

/* Stat block — different look than Goodyear's grid */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 2.5rem 0;
}
.stat {
  padding: 1.5rem 1.5rem 1.75rem;
  border-left: 2px solid var(--harvest);
}
.stat:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 700px) {
  .stat { border-left: 0; border-top: 2px solid var(--harvest); padding-left: 0; padding-top: 1.5rem; }
  .stat:first-child { padding-top: 0; border-top: 0; }
}
.stat__num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.stat__label {
  font-family: var(--serif);
  font-style: italic;
  font-variant: small-caps;
  font-size: 0.85rem;
  color: var(--water);
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--harvest);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ──────────────────────────────────────────────────────────────
   SEO upgrade — split hero hierarchy
   .hero__h1 is the new keyword-targeted H1 (smaller, top of hero)
   .hero__tagline carries the original display copy (large, italic)
   ────────────────────────────────────────────────────────────── */
.hero__h1 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: var(--ink-soft, var(--ink));
}

.hero__tagline {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0 0 1.75rem;
  color: var(--ink);
  max-width: 18ch;
}

.hero__tagline em {
  font-style: italic;
  color: var(--harvest);
}
