/* ============================================================
   Home page — Industrial Yellow layout
   ============================================================ */

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 15, 12, 0.86) 0%,
    rgba(14, 15, 12, 0.55) 48%,
    rgba(14, 15, 12, 0.10) 100%
  );
}
@media (max-width: 880px) {
  .hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(14, 15, 12, 0.72) 0%,
      rgba(14, 15, 12, 0.60) 60%,
      rgba(14, 15, 12, 0.88) 100%
    );
  }
}
.hero__inner { position: relative; z-index: 1; }

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display-xxl);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  margin-top: 20px;
  max-width: 1100px;
  color: var(--paper);
}

.hero__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-9);
  margin-top: 40px;
  align-items: end;
}
.hero__sub {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  max-width: 560px;
  color: var(--paper);
  opacity: 0.88;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .hero__row { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero__ctas { justify-content: flex-start; }
}

/* ============================================================
   Services section
   ============================================================ */
#services {
  background: var(--ink);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.services-grid > a,
.services-grid > div {
  background: var(--ink);
}

@media (max-width: 880px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Process section
   ============================================================ */
#process {
  background: var(--ink-2);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
/* 5 chips balance as 3+2 (centered) on tablet, 2+2+full on small, stack on phone */
@media (max-width: 960px) {
  .process-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .process-grid > * { grid-column: span 2; }
  .process-grid > *:nth-child(4), .process-grid > *:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 640px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid > *, .process-grid > *:nth-child(4), .process-grid > *:nth-child(5) { grid-column: auto; }
  .process-grid > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-grid > *, .process-grid > *:nth-child(4), .process-grid > *:nth-child(5), .process-grid > *:last-child:nth-child(odd) { grid-column: auto; }
}

/* ============================================================
   Service areas — full-bleed aerial band
   ============================================================ */
#areas {
  position: relative;
  overflow: hidden;
}
.area-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/images/area/area-aerial-ribbon.webp');
  background-size: cover;
  background-position: center;
}
.area-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 15, 12, 0.58);
}
.area-band__inner { position: relative; z-index: 1; }
.area-band__cities {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2.1;
  max-width: 760px;
  color: var(--paper);
}
.area-band__city { color: var(--paper); text-decoration: none; }
.area-band__city:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.area-band__sep { color: var(--accent); }

/* ============================================================
   Projects gallery (retained, restyled)
   ============================================================ */
#projects {
  background: var(--ink-2);
}
/* Projects + testimonials section-heads have no body paragraph: let the title span full width */
#projects .section-head,
#testimonials .section-head { grid-template-columns: 1fr; }
.projects-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.project-card {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: block;
  background: var(--ink);
  border: 1px solid var(--line);
  transition: border-color var(--dur-med) var(--ease-out);
}
.project-card:hover { border-color: var(--accent); }
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.project-card:hover img { transform: scale(1.05); }

.projects-placeholder {
  color: var(--paper);
  opacity: 0.7;
  padding: 48px;
  border: 1px dashed var(--line);
  text-align: center;
  grid-column: 1/-1;
  max-width: none;
}

@media (max-width: 760px) {
  .projects-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .projects-gallery { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ section
   ============================================================ */
#faq {
  background: var(--ink-2);
}

/* ============================================================
   Yellow quote section — "Let's pave something."
   ============================================================ */
.quote-section {
  background: var(--accent);
  color: var(--ink);
  padding-block: var(--section-y);
}
.quote-section .eyebrow {
  color: var(--ink);
  opacity: 0.7;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.quote-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display-xl);
  line-height: 0.9;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 12px;
}
.quote-lead {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 46ch;
  color: var(--ink);
}
.quote-contact {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
}
.quote-contact a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(14,15,12,0.3); text-underline-offset: 3px; }
.quote-contact a:hover { text-decoration-color: var(--ink); color: var(--ink); }

/* ---- Nested black card (multi-step form) ---- */
.stepper {
  background: var(--ink);
  color: var(--paper);
  padding: 40px;
  border-radius: var(--r-1);
}
.stepper__progress {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.stepper__bar {
  flex: 1;
}
.stepper__bar-fill {
  height: 4px;
  background: var(--line);
  margin-bottom: 8px;
  transition: background var(--dur-fast);
}
.stepper__bar--active .stepper__bar-fill,
.stepper__bar--done .stepper__bar-fill { background: var(--accent); }
.stepper__bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.55;
  text-transform: uppercase;
  color: var(--paper);
}
.stepper__bar--active .stepper__bar-label { opacity: 1; }

.stepper__step { display: none; }
.stepper__step--active { display: block; }

.stepper__prompt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--paper);
  line-height: 1;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice {
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.choice:hover { border-color: var(--accent); color: var(--accent); }
.choice[aria-pressed="true"] {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.choice--row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  flex-direction: row;
  text-align: left;
}
.choice--row .choice__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
}
.choice--row .choice__detail {
  font-family: var(--font-body);
  font-size: 12px;
  margin-top: 2px;
  opacity: 0.75;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.choice--row .choice__arrow {
  font-family: var(--font-mono);
  font-size: 14px;
}

.size-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stepper__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stepper__fields input,
.stepper__fields textarea {
  padding: 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  font: inherit;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--r-1);
  transition: border-color var(--dur-fast);
}
.stepper__fields input:focus,
.stepper__fields textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.stepper__fields input::placeholder,
.stepper__fields textarea::placeholder { color: var(--paper); opacity: 0.45; }
.stepper__fields textarea {
  grid-column: span 2;
  resize: vertical;
  min-height: 90px;
  margin-top: 10px;
}
.stepper__summary {
  margin-top: 16px;
  padding: 12px;
  border: 1px dashed var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--paper);
  opacity: 0.85;
  text-transform: uppercase;
}

.stepper__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}
.stepper__btn {
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--r-1);
  transition: all var(--dur-fast);
}
.stepper__btn--back {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}
.stepper__btn--back:hover { border-color: var(--paper); }
.stepper__btn--back:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper__btn--next {
  background: var(--accent);
  color: var(--ink);
  border: 0;
}
.stepper__btn--next:hover { background: #FFE043; }

.form-honeypot { position: absolute; left: -9999px; }

/* ---- Quote form honeypot + messaging ---- */
.stepper__msg {
  margin-top: 16px;
  min-height: 1.2em;
}

@media (max-width: 960px) {
  .quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .stepper { padding: 28px; }
  .choice-grid { grid-template-columns: 1fr; }
  .stepper__fields { grid-template-columns: 1fr; }
  .stepper__fields textarea { grid-column: span 1; }
}

/* ============================================================
   "Built by the crew" motif (optional card for testimonials/section)
   ============================================================ */
.crew-motif {
  background: var(--hazard-stripes);
  background-size: 68px 68px;
  padding: 48px;
  position: relative;
  border-radius: var(--r-1);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
}
.crew-motif__inner {
  border: 2px dashed var(--accent);
  padding: 28px;
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.crew-motif__caution {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.crew-motif__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--paper);
  margin-top: 80px;
  letter-spacing: -0.02em;
}

/* ============================================================
   Testimonials
   ============================================================ */
#testimonials {
  background: var(--ink);
}
.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-1);
  transition: border-color var(--dur-med);
}
.testimonial:hover { border-color: var(--accent); }
.testimonial__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.testimonial__stars {
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 16px;
  font-size: 16px;
}
.testimonial__quote {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-transform: none;
  flex: 1;
  max-width: none;
  margin-bottom: 16px;
}
.testimonial__author {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper);
  opacity: 0.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .testimonial-row { grid-template-columns: 1fr 1fr; }
  .testimonial-row > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .testimonial-row { grid-template-columns: 1fr; }
}
