/* Granger Construction, Inc. — site styles
   Palette pulled from the GCI logo (orange) and the job-site photos (soil, sand, dusk). */

:root {
  --ink: #16130f;        /* near-black, warm — header, footer, contact */
  --soil: #2a241d;       /* dark surface */
  --paper: #faf6ef;      /* page background */
  --sand: #efe6d8;       /* cream cards (concrete section) */
  --orange: #e17b2e;     /* GCI logo orange (sampled) — buttons, tread marks */
  --rust: #a3460a;       /* orange darkened for text on light backgrounds */
  --stone: #5b5248;      /* secondary text on light */
  --line: #ddd1bf;       /* hairlines on light */
  --dusk: #3c4252;       /* hero sky top, matches the photo */

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* the crawler-track tread from the logo */
  --tread: repeating-linear-gradient(90deg, var(--orange) 0 12px, transparent 12px 18px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 750;
  font-stretch: 110%;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  font-stretch: 105%;
  line-height: 1.2;
  margin-bottom: .4rem;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.lede { font-size: 1.2rem; line-height: 1.55; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--orange); color: var(--ink); padding: .75rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* Eyebrow with a short tread mark */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 650; font-stretch: 125%;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 48px; height: 6px; background: var(--tread); flex: none;
}
.eyebrow-light { color: #f6c79e; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: 6px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-stretch: 105%; font-size: 1rem;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding-inline: 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #f0914a; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--soil); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-solid, .site-header.is-open { background: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: block; flex: none; padding-block: .5rem; }
.brand img { height: 54px; width: auto; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a {
  display: block; padding: .6rem .8rem; color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
}
.nav a:hover { color: var(--orange); }

.header-call { padding-inline: 1rem; min-height: 44px; }
.menu-btn { display: none; }

@media (max-width: 899px) {
  .header-row { min-height: 64px; }
  .brand img { height: 40px; }
  .header-call { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 48px; height: 48px; border: 0; border-radius: 6px;
    background: transparent; color: #fff; cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative;
    transition: transform .2s var(--ease), background-color .2s var(--ease);
  }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -7px; }
  .menu-icon::after { top: 7px; }
  .is-open .menu-icon { background: transparent; }
  .is-open .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .is-open .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.1);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .is-open .nav { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: .85rem 0; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(460px, 80svh, 860px);
  display: flex; flex-direction: column;
  background: var(--dusk);
  color: #fff;
  isolation: isolate;
}
.hero-media, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 46% 100%; } /* ground line sits on the tread */
.hero::before { /* legibility scrim over the sky, darker at the top-left where the text sits */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,19,15,.55) 0%, rgba(22,19,15,.15) 55%, rgba(22,19,15,0) 70%);
}

.hero-inner {
  flex: 1;
  display: flex; flex-direction: column;
  padding-top: clamp(6rem, 13vh, 8.5rem);
  padding-bottom: clamp(9rem, 26vh, 16rem); /* keep the headline in the sky, machines clear */
}

/* Headline + label are centered as one block; the stagger lives inside it */
.hero-title-block { width: fit-content; max-width: 100%; margin-inline: auto; }

/* Terraced headline: each line steps right by --step */
.hero h1 {
  --step: clamp(.9rem, 6vw, 6.5rem);
  font-size: clamp(2rem, 4.9vw, 4.2rem);
  font-weight: 800; font-style: italic; font-stretch: 112%;
  line-height: 1.04; letter-spacing: -0.02em;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.terraced span { display: block; white-space: nowrap; }
.terraced span:nth-child(2) { margin-left: var(--step); }
.terraced span:nth-child(3) { margin-left: calc(var(--step) * 2); }
.terraced span:nth-child(4) { margin-left: calc(var(--step) * 3); }
.terraced span:nth-child(4)::after { /* a short tread mark finishing the last step */
  content: ""; display: inline-block; vertical-align: middle;
  width: 48px; height: .12em; margin-left: .3em; /* 48px = three whole tread blocks */
  background: var(--tread);
}

/* The "nameplate": a solid panel, like the plate riveted on a machine */
.hero-plate {
  position: relative;
  margin-inline: auto;
  width: min(100%, 35rem);
  text-align: center;
  background: var(--soil);
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.5rem;
}
.hero-lede { font-size: 1.1rem; line-height: 1.55; color: #f2ece4; margin-bottom: 1rem; }
.hero-area {
  display: flex; align-items: flex-start; justify-content: center; gap: .45rem;
  font-weight: 600; font-size: .98rem; line-height: 1.4; color: #fff; margin-bottom: 1.25rem;
}
.hero-area svg { color: var(--orange); flex: none; margin-top: .1em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.hero-actions .btn { flex: 1 1 auto; }

@media (max-width: 599px) {
  .hero { min-height: clamp(400px, 56svh, 500px); }
  .hero-inner { padding-top: 5.5rem; padding-bottom: 7rem; }
  .hero-cta { padding-top: 1.75rem; }
  .hero h1 { --step: .85rem; font-size: clamp(1.6rem, 8.4vw, 2.2rem); }
  .terraced span:nth-child(4)::after { display: none; }
  .hero-plate { padding: 1.25rem; }
  .hero-actions .btn { width: 100%; }
}
@media (min-width: 1024px) {
  .hero-lede { font-size: 1.05rem; }
}

/* Call band: dark band under the photo, opened by the tread line */
.hero-cta {
  position: relative;
  background: var(--ink); color: #fff;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.hero-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tread); }

.fact-strip {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,.1);
}
.fact-list {
  list-style: none; margin-block: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  padding-block: 1.6rem 1.25rem;
  gap: 1rem 1.5rem;
}
.fact-list li { display: flex; flex-direction: column; }
.fact-label {
  font-family: var(--font-display); font-size: .72rem; font-weight: 650; font-stretch: 125%;
  letter-spacing: .14em; text-transform: uppercase; color: #b8aea2;
}
.fact-value {
  font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: 1.1rem;
  color: #fff; text-decoration: none;
}
a.fact-value { padding-block: .5rem; margin-block: -.5rem; }
a.fact-value:hover { color: var(--orange); }
@media (min-width: 1024px) {
  .fact-list { grid-template-columns: repeat(4, 1fr); padding-block: 2rem 1.75rem; }
  .fact-list li + li { border-left: 1px solid rgba(255,255,255,.12); padding-left: 1.5rem; }
}

/* Load reveal: the one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .7s var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: .08s; }
  .hero-inner > :nth-child(3) { animation-delay: .16s; }
  .hero-inner > :nth-child(n+4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: start; }
.about-copy > p:not(.eyebrow) { max-width: 52ch; }
.about-cards { display: grid; gap: 1rem; margin-top: 2rem; }
.mini-card {
  background: var(--sand); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
}
.mini-icon { color: var(--rust); margin-bottom: .75rem; }
.mini-card p { margin: 0; color: var(--stone); font-size: 1rem; }

.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 50%; width: 100%; }
figcaption { font-size: .9rem; color: var(--stone); margin-top: .6rem; }

@media (min-width: 600px) { .about-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .about-photo img { aspect-ratio: 4 / 5; }
}

/* ---------- Earthwork ---------- */
.earthwork { background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 30ch; margin-bottom: 2.5rem; }
.section-head h2 { max-width: 22ch; }
@media (min-width: 900px) { .section-head { max-width: none; } .section-head h2 { max-width: 24ch; } }

.work-cards { display: grid; gap: 1.25rem; }
.work-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  color: #fff;
  min-height: 340px; display: flex; align-items: flex-end;
}
.work-card picture, .work-card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-card img { object-fit: cover; transition: transform .6s var(--ease); }
.work-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(22,19,15,.92) 0%, rgba(22,19,15,.55) 38%, rgba(22,19,15,0) 65%);
}
.work-card-body { position: relative; z-index: 1; padding: 1.5rem; }
.work-card-body p { margin: 0; color: #e9e2d8; font-size: 1rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work-card:hover img { transform: scale(1.04); }
}
@media (min-width: 600px) and (max-width: 899px) { .work-card { min-height: 300px; } }
@media (min-width: 900px) { .work-cards { grid-template-columns: repeat(3, 1fr); } .work-card { min-height: 440px; } }
@media (min-width: 1024px) {
  /* staggered heights, like a row of machines on the skyline */
  .work-card:nth-child(2) { margin-top: 3rem; }
  .work-card:nth-child(3) { margin-top: 1.5rem; }
}

.service-list {
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line);
  display: grid; gap: 1rem;
}
.service-list-title {
  font-size: .8rem; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--stone);
}
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
}
.service-note { margin: .5rem 0 0; color: var(--stone); }
.service-note::before { content: "\2192\00a0"; color: var(--rust); }
@media (min-width: 900px) {
  .service-list { grid-template-columns: 200px 1fr; align-items: start; }
  .service-note { grid-column: 2; }
}

/* ---------- Concrete ---------- */
.concrete { background: var(--sand); }
.concrete-grid { display: grid; gap: 2.5rem; }
.concrete-copy .lede { max-width: 38ch; margin-bottom: 1.75rem; }
.concrete-tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
}
.concrete-tiles li {
  position: relative; background: var(--paper); border-radius: 8px;
  padding: 1.5rem 1rem 1rem; min-height: 96px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.concrete-tiles li::before {
  content: ""; position: absolute; top: 1rem; left: 1rem; width: 30px; height: 5px; background: var(--tread);
}
.tile-name { font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: 1.08rem; line-height: 1.2; }
.tile-sub { font-size: .85rem; color: var(--stone); line-height: 1.3; margin-top: .2rem; }

.concrete-photo { margin: 0; }
.concrete-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; border-radius: var(--radius); }
@media (min-width: 600px) { .concrete-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .concrete-grid { grid-template-columns: .9fr 1.1fr; column-gap: clamp(3rem, 6vw, 5rem); row-gap: 2.5rem; }
  .concrete-copy { grid-column: 2; grid-row: 1; }
  .concrete-tiles { grid-column: 2; grid-row: 2; align-self: start; }
  .concrete-photo { grid-column: 1; grid-row: 1 / span 2; }
  .concrete-photo picture { display: block; height: 100%; }
  .concrete-photo img { height: 100%; }
  .concrete-photo img { aspect-ratio: auto; min-height: 420px; object-position: 62% 50%; }
  .concrete-tiles li { min-height: 128px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 3rem; }
.faq-list { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 60px; padding-block: 1rem;
  font-family: var(--font-display); font-weight: 650; font-size: 1.1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--rust), var(--rust)) center / 14px 2px no-repeat,
    linear-gradient(var(--rust), var(--rust)) center / 2px 14px no-repeat;
  transition: transform .2s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--rust); }
.faq-list details p { max-width: 60ch; color: var(--stone); padding-bottom: .5rem; }
.faq-list details a { color: var(--rust); font-weight: 600; }
.faq-photo { margin: 0; }
.faq-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .faq-photo img { aspect-ratio: 4 / 5; }
}

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; position: relative; }
.contact::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tread); }
.contact-grid { display: grid; gap: 3rem; }
.contact .lede { color: #e6dfd5; max-width: 40ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Contact details: one clean list, label column + value column, hairline rules */
.nap { margin: 2.5rem 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.nap > div {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline;
  padding-block: .85rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.nap dt {
  font-family: var(--font-display); font-size: .72rem; font-weight: 650; font-stretch: 125%;
  letter-spacing: .14em; text-transform: uppercase; color: #b8aea2;
}
.nap dd { margin: 0; font-size: 1.05rem; line-height: 1.45; overflow-wrap: anywhere; }
.nap a[href^="tel"], .nap a[href^="mailto"] { white-space: nowrap; }
.nap a { color: #fff; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.nap a:hover { color: var(--orange); }
.nap .nap-primary dd a { font-family: var(--font-display); font-weight: 750; font-size: 1.4rem; text-decoration: none; color: var(--orange); }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .nap { margin-top: 0; }
  .contact-grid { grid-template-columns: 1fr 1.05fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: #0e0c09; color: #cfc6ba; padding-top: 3.5rem; font-size: .98rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 200px; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 28ch; }
.footer-head {
  font-size: .75rem; font-weight: 650; font-stretch: 125%; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin-bottom: .75rem;
}
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer a { color: #fff; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--orange); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding-block: .3rem; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.25rem; font-size: .875rem; color: #a59b8f; }
.footer-bottom p { margin: 0; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .call-bar {
    display: grid; grid-template-columns: 1.6fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.12);
  }
  .call-bar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 64px; font-family: var(--font-display); font-weight: 700; text-decoration: none;
  }
  .call-bar-call { background: var(--orange); color: var(--ink); }
  .call-bar-quote { color: #fff; }
}

@media (max-width: 599px) { .eyebrow-brand { display: none; } }
@media (max-width: 359px) { .btn-lg { font-size: .95rem; padding-inline: .9rem; } }
@media (max-width: 599px) {
  .concrete-tiles li:last-child { grid-column: span 2; min-height: 80px; } /* 9 tiles in 2 columns: no orphan */
  .contact-actions .btn { width: 100%; }
}
