/* =========================================================
   Coker Construction — Avondale, AZ
   Design direction: "Family Grid" — Archivo variable-width
   grotesque display (clean, modern, athletic) + DM Sans body.
   First navy-dominant palette in the network: warm cream
   background + deep racing navy + sunset orange accent.

   Hero signature: stylized road grid pattern. "/01" slash-
   prefix section labels and service markers. Medium-rounded
   navy buttons with sunset-orange hover transitions.

   Direct, modern, family-suburban voice — distinct from
   Goodyear, Waddell, Peoria, Glendale, Buckeye, and
   Litchfield Park.
   ========================================================= */

:root {
  /* Palette — warm cream + deep racing navy + sunset orange */
  --paper: #EFEAE0;
  --paper-deep: #DDD6C5;
  --ink: #13151D;
  --ink-soft: #4D5366;
  --navy: #152841;
  --navy-bright: #234876;
  --orange: #D86B2C;
  --orange-bright: #E8853F;
  --tan: #B89773;
  --rule: rgba(19, 21, 29, 0.15);
  --rule-strong: rgba(19, 21, 29, 0.38);

  /* Type — first Archivo variable display + DM Sans body */
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --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.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(21, 40, 65, 0.4);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--orange); text-decoration-color: var(--orange); }

/* Eyebrow — leading sunset-orange square + bold tracked uppercase
   (7th distinct utility style across the network) */
.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange);
}
.eyebrow--orange { color: var(--orange); }
.eyebrow--orange::before { background: var(--navy); }

/* Display headlines — Archivo with wide variable axis */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  font-stretch: 110%;
}
h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-stretch: 115%;
}
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.022em;
  font-stretch: 112%;
}
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2; font-weight: 600; font-stretch: 105%; }
h4 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; }

/* Italic carries emphasis */
h1 em, h2 em {
  font-style: italic;
  color: var(--orange);
  font-weight: 600;
}

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--navy {
  background: var(--navy);
  color: var(--paper);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--paper); }
.section--navy p { color: rgba(239, 234, 224, 0.8); }
.section--navy .eyebrow { color: var(--orange-bright); }
.section--navy .eyebrow::before { background: var(--paper); }
.section--navy a { color: var(--orange-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(239, 234, 224, 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.015em;
  font-stretch: 110%;
}
.brand span {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 0.3rem;
}
.nav {
  display: flex;
  gap: 2.25rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  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(--orange); color: var(--navy); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  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.12em; }
  .nav-toggle { display: block; }
}

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

/* Road grid hero signature — intersecting hairlines */
.grid-signature {
  width: 100%;
  height: auto;
  margin: 3rem 0;
  color: var(--navy);
}

/* Hero meta — 4-column with orange top accent */
.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--navy);
  position: relative;
}
.hero__meta::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--orange);
}
.hero__meta dt {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

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

/* CTA buttons — medium-rounded navy → orange (7th distinct treatment) */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.7rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  border-radius: 6px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.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 — /01 slash-prefix (7th distinct treatment) */
.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__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--orange);
  letter-spacing: -0.01em;
  line-height: 1;
  font-stretch: 100%;
}
.service__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  font-stretch: 108%;
}
.service__desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 700px) {
  .service { grid-template-columns: 56px 1fr; gap: 0.5rem 1rem; padding: 1.7rem 0; }
  .service__num { font-size: 1.2rem; }
  .service__desc { grid-column: 1 / -1; }
}

/* Neighborhoods — flat clean cards */
.neighborhoods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}
.neighborhood {
  background: var(--paper);
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--rule-strong);
  border-bottom: 4px solid var(--navy);
  transition: border-bottom-color 0.15s ease, transform 0.15s ease;
}
.neighborhood:hover { border-bottom-color: var(--orange); }
.section--paper-deep .neighborhood { background: var(--paper); }
.neighborhood__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
  font-stretch: 108%;
}
.neighborhood__tag {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.neighborhood__note {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0.75rem 0 0;
  line-height: 1.6;
}

/* Process — slash-numbered phases */
.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: "/ 0" counter(phase);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--orange-bright);
  display: block;
  margin-bottom: 0.85rem;
  line-height: 1;
}
.process__step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--paper);
  font-weight: 700;
}
.process__step p { font-size: 0.95rem; color: rgba(239, 234, 224, 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: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-stretch: 108%;
}
.faq__q::after {
  content: "+";
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--orange);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  line-height: 1;
}
.faq__item[open] .faq__q::after { content: "−"; color: var(--navy); }
.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(--body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  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(--body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  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: 4px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 0;
  border-color: var(--orange);
}
.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(--body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}
.form__msg--error { color: var(--orange); }

.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(--body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  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;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem 1rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: 4px;
  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: 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(--orange);
  border-color: var(--orange);
}
.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(--orange);
  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(--navy); }
.grecaptcha-badge { visibility: hidden !important; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding: 4.5rem 0 2rem;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--orange-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(--orange-bright);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  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(239, 234, 224, 0.72); font-size: 0.95rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(239, 234, 224, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, 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 — orange-bordered, Archivo italic */
.pullquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.3;
  color: var(--ink);
  padding: 2rem 0 2rem 2rem;
  border-left: 4px solid var(--orange);
  margin: 2.5rem 0;
  max-width: 38ch;
  letter-spacing: -0.015em;
  font-stretch: 105%;
}
.pullquote cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 2.5rem 0;
  border-top: 2px solid var(--navy);
  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.8rem;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 0.5rem;
  font-stretch: 110%;
  letter-spacing: -0.025em;
}
.stat__label {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

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