/* =========================================================
   Coker Construction — Buckeye, AZ (Headquarters)
   Design direction: "Home Base" — Bitter humanist slab serif
   display + Atkinson Hyperlegible body (designed by the Braille
   Institute, distinctive letter shapes). Warm sandy beige +
   fired brick red + cool slate palette. Bold slab serif "1."
   numerals on services. Stamped-tag chunky buttons. Confident,
   working-contractor voice — this is the HQ city.

   Buckeye Canal plan-view (parallel lines with perpendicular
   tick-marks) as the hero signature device.

   First slab serif in the network. Visually unrelated to
   Goodyear, Waddell, Peoria, and Glendale.
   ========================================================= */

:root {
  /* Palette — warm sandy beige + fired brick + cool slate */
  --paper: #F2EAD9;
  --paper-deep: #E0D2B0;
  --ink: #1A1816;
  --ink-soft: #5C544A;
  --brick: #A03B22;
  --brick-bright: #C44E2D;
  --slate: #3D4A4F;
  --slate-soft: #6A7378;
  --tan: #C0A574;
  --rule: rgba(26, 24, 22, 0.15);
  --rule-strong: rgba(26, 24, 22, 0.4);

  /* Type — slab serif display + utility-character body */
  --display: "Bitter", "Roboto Slab", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --max: 1200px;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  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(--brick);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(160, 59, 34, 0.4);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--slate); text-decoration-color: var(--slate); }

/* Eyebrow — bold slab serif uppercase tracked, leading brick bar
   (5th distinct utility style across the network) */
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--brick);
}

/* Display headlines — Bitter slab serif */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1.02; font-weight: 600; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.08; font-weight: 600; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2; font-weight: 600; }
h4 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; }

/* Italic for emphasis — slab serif italic has unique character */
h1 em, h2 em { font-style: italic; color: var(--brick); font-weight: 500; }

p { margin: 0 0 1.15em; }
p.lead {
  font-size: clamp(1.1rem, 1.65vw, 1.28rem);
  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(242, 234, 217, 0.78); }
.section--ink .eyebrow { color: var(--brick-bright); }
.section--ink .eyebrow::before { background: var(--brick-bright); }
.section--ink a { color: var(--brick-bright); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 234, 217, 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.25rem 0;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand strong {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.brand span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-top: 0.3rem;
}
.nav {
  display: flex;
  gap: 2rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brick); color: var(--brick); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  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.85rem 0; border-bottom: 1px solid var(--rule); letter-spacing: 0.1em; }
  .nav-toggle { display: block; }
}

/* Hero — HQ-confident layout */
.hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(2rem, 3vw, 3rem);
  position: relative;
}
.hero__eyebrow { margin-bottom: 1.5rem; }
.hero__title { max-width: 20ch; margin-bottom: 1.75rem; }
.hero__lead { max-width: 56ch; margin-bottom: 2.25rem; }

/* Buckeye Canal signature — parallel lines with perpendicular tick-marks */
.canal {
  width: 100%;
  height: auto;
  margin: 3rem 0;
  color: var(--brick);
}

/* Hero stamp — "headquartered here" stamp-tag */
.hero__stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2rem;
}
.hero__stamp::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--brick);
  border-radius: 50%;
}

/* Hero meta — 4-column with thick top rule */
.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid var(--ink);
}
.hero__meta dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.5rem;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}

@media (max-width: 780px) {
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* CTA buttons — chunky stamped-tag (5th distinct treatment) */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.7rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  box-shadow: 4px 4px 0 0 var(--brick);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--brick);
  text-decoration: none;
  color: var(--paper);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn__arrow { display: inline-block; transition: transform 0.15s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

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

.section__header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__header h2 { margin-top: 0.8rem; max-width: 22ch; }

/* Services — bold slab serif "1." punch-list numerals (5th distinct treatment) */
.services-list { list-style: none; padding: 0; margin: 0; }
.service {
  display: grid;
  grid-template-columns: 64px 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__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.85rem;
  color: var(--brick);
  letter-spacing: -0.02em;
  line-height: 1;
}
.service__title {
  font-family: var(--display);
  font-weight: 600;
  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: 48px 1fr; gap: 0.5rem 1rem; padding: 1.6rem 0; }
  .service__num { font-size: 1.5rem; }
  .service__desc { grid-column: 1 / -1; }
}

/* Neighborhoods — flat list with substantial cards */
.neighborhoods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.neighborhood {
  background: var(--paper);
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--brick);
  transition: border-left-color 0.15s ease;
}
.neighborhood:hover { border-left-color: var(--slate); }
.section--paper-deep .neighborhood { background: var(--paper); }
.neighborhood__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.neighborhood__tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.neighborhood__note {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0.75rem 0 0;
  line-height: 1.55;
}

/* Process — large slab serif numbers, no border boxes */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  counter-reset: phase;
}
.process__step {
  padding: 0;
  counter-increment: phase;
}
.process__step::before {
  content: counter(phase);
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--brick-bright);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.process__step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--paper);
}
.process__step p { font-size: 0.95rem; color: rgba(242, 234, 217, 0.78); margin: 0; }

/* 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.85rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.faq__q::after {
  content: "+";
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brick);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a {
  padding: 0 0 1.85rem;
  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(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-top: 1.75rem;
}
.contact-info dt:first-of-type { margin-top: 0; }
.contact-info dd { margin: 0.45rem 0 0; font-size: 1.05rem; }

.form { display: grid; gap: 1.4rem; }
.field { display: flex; flex-direction: column; }
.field > label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.55rem;
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brick);
  outline-offset: 0;
  border-color: var(--brick);
}
.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(--display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brick);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}
.form__msg--error { color: var(--brick); }

.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(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.8rem;
  padding: 0;
}
.field__hint {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-left: 0.5rem;
  font-family: var(--body);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem 1rem;
  border: 1.5px solid var(--rule-strong);
  padding: 1.15rem;
  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: 2px solid var(--ink-soft);
  background: var(--paper);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
}
.checkbox input[type="checkbox"]:checked {
  background: var(--brick);
  border-color: var(--brick);
}
.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 5px;
  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(--brick);
  outline-offset: 2px;
}

.recaptcha-notice {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  line-height: 1.5;
}
.recaptcha-notice a { color: var(--brick); }
.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(--brick-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(--brick-bright);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.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(242, 234, 217, 0.72); font-size: 0.95rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(242, 234, 217, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 234, 217, 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.2rem; }
.page-intro p.lead { max-width: 60ch; }

/* Pull quote — brick-bordered, slab serif italic */
.pullquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.3;
  color: var(--ink);
  padding: 2rem 0 2rem 2rem;
  border-left: 4px solid var(--brick);
  margin: 2.5rem 0;
  max-width: 38ch;
}
.pullquote cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
}

/* Stats — large slab numerals */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 2.5rem 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
@media (max-width: 700px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); padding: 1.5rem 0; }
  .stat:last-child { border-bottom: 0; }
}
.stat__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brick);
  margin-bottom: 0.4rem;
}
.stat__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--brick);
  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(--brick);
}
