/* ==========================================================================
   R.Q. Construction Concrete — revamp
   Design system. Impeccable-clean: Archivo (not Roboto/Inter), tinted warm
   grays (never pure black/gray), flat color (no purple gradients), real
   hierarchy, section-driven layout (no card-soup).
   ========================================================================== */

:root {
  /* Cool concrete neutrals — a deliberate palette, never pure black/gray */
  --ink:        #1a1d1d;
  --ink-2:      #3b4140;
  --muted:      #616968;
  --faint:      #939a99;
  --line:       #d9dcdb;
  --paper:      #eceeed;
  --paper-2:    #e1e4e3;
  --white:      #fbfcfb;

  /* Concrete + a single deep rust accent (white on it clears 4.5:1) */
  --concrete:   #c4cac9;
  --steel:      #4d5758;
  --accent:     #a63a0c;
  --accent-ink: #83300a;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --gut: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; }
/* Gutter lives on the shells so full-bleed backgrounds never sit flush */
/* Inset is set per shell below — every colored section pads all four sides. */

/* --- Type scale ---------------------------------------------------------- */
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); }

/* Eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent-ink);
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--accent); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 4px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .14s var(--ease), background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--paper-2); }
.btn svg { width: 18px; height: 18px; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(236, 238, 237, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px var(--gut);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; flex-shrink: 0; }
.brand-name { font-weight: 900; letter-spacing: -0.03em; font-size: 1.15rem; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px; border-radius: 4px; font-weight: 600; font-size: 0.98rem; color: var(--ink-2);
  transition: background-color .16s ease, color .16s ease;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
@media (max-width: 820px) {
  .nav { display: none; }
  .header-phone { display: none; }
  .brand img { height: 40px; }
}
@media (max-width: 400px) { .brand img { height: 34px; } }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; padding: clamp(64px, 12vw, 128px) var(--gut); }
.hero-banner { position: absolute; inset: 0; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: grayscale(0.3) contrast(1.05); }
.hero-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25,21,16,.55), rgba(25,21,16,.88));
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; }
.hero .lede { color: #d8d2c6; max-width: 52ch; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-contact { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #cdc6b8; font-weight: 600; }
.hero-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Hero video + sound toggle */
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media video { position: absolute; top: 0; right: 0; width: min(64%, 820px); height: 100%; object-fit: cover; object-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(20,18,15,.94) 30%, rgba(20,18,15,.52) 58%, rgba(20,18,15,.06) 100%); }
.sound-toggle { position: absolute; right: var(--gut); bottom: clamp(16px, 3vw, 30px); z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(15,13,11,.5); color: #f3ede2;
  font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.sound-toggle:hover { border-color: #fff; background: rgba(15,13,11,.72); }
.sound-toggle svg { width: 18px; height: 18px; display: block; }
.sound-toggle .ico-on { display: none; }
.sound-toggle.is-on .ico-off { display: none; }
.sound-toggle.is-on .ico-on { display: block; }
@media (max-width: 760px) {
  .hero-media video { width: 100%; height: 100%; top: 0; bottom: auto; opacity: 1; object-fit: cover; object-position: center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(20,18,15,.66) 0%, rgba(20,18,15,.74) 52%, rgba(20,18,15,.88) 100%); }
}

/* --- Section shells ------------------------------------------------------ */
.section { padding: clamp(56px, 9vw, 104px) var(--gut); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--dark  { background: var(--ink); color: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-top: 14px; }

/* --- Services (numbered list, no cards) ---------------------------------- */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li {
  display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 20px;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
}
.services .n { font-weight: 800; font-size: 1.1rem; color: var(--accent); letter-spacing: -0.02em; }
.services .t { font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.7rem); letter-spacing: -0.015em; }
.services .t small { display: block; font-weight: 500; font-size: 0.98rem; color: var(--muted); margin-top: 6px; letter-spacing: 0; }

/* --- Split (image + copy) ------------------------------------------------ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--flip .split-media { order: 2; }
.split-media img { width: 100%; border-radius: 6px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip .split-media { order: 0; } }

/* --- Stats --------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 0; }
.stat .num { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -0.03em; }
.stat .lbl { color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 16px; } }

/* --- CTA band ------------------------------------------------------------ */
.band {
  background: var(--accent); color: #fff;
  padding: clamp(48px, 8vw, 88px) var(--gut);
}
.band h2 { color: #fff; max-width: 20ch; }
.band p { color: #ffe6d6; max-width: 54ch; margin-top: 14px; }
.band .btn { margin-top: 26px; }

/* --- Portfolio gallery --------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.work { margin: 0; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.work figcaption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-weight: 700; letter-spacing: -0.01em;
}
.work figcaption span { color: var(--muted); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b9b1a2; padding: 56px var(--gut) 28px; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand .brand-name { color: var(--paper); }
.footer-col h4 { margin: 0 0 14px; color: var(--paper); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.footer-col a { display: block; padding: 5px 0; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem;
}
.footer-bottom .credit { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.32); transition: border-color .18s, color .18s; }
.footer-bottom .credit:hover { color: #fff; border-color: #fff; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 26px; } }

/* --- Utility ------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- "What we do" + rotating service (refined) -------------------------- */
.rotator-band { background: var(--ink); color: var(--paper); text-align: center; position: relative; overflow: hidden; padding: clamp(48px, 7vw, 84px) var(--gut); border-block: 1px solid rgba(255,255,255,.10); }
.rotator-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 130% at 50% 0%, rgba(240,161,121,.16), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.040) 0 2px, rgba(255,255,255,0) 2px 12px),
    repeating-linear-gradient(45deg, rgba(240,161,121,.055) 0 1px, rgba(240,161,121,0) 1px 30px); }
.rotator-band::after { content: "CONCRETE"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(4rem, 16vw, 11.5rem); font-weight: 900; letter-spacing: -0.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.075); pointer-events: none; user-select: none; }
.rotator-band .wrap { position: relative; z-index: 1; }
.rotator-band .lead { display: block; font-size: clamp(1.9rem, 6vw, 3.3rem); font-weight: 800; letter-spacing: -0.02em; color: var(--paper); text-shadow: 0 2px 26px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.5); }
.rotator-band .lead::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 2px; background: #f0a179; margin: 16px auto 0; opacity: .9; }
.rotator { display: inline-flex; overflow: hidden; height: 1.5em; margin-top: 20px; font-size: clamp(1rem, 2.3vw, 1.45rem); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0,0,0,.65); }
.rotator [data-rotator] { display: flex; flex-direction: column; will-change: transform; }
.rotator [data-rotator] > span { height: 1.5em; line-height: 1.5em; display: flex; align-items: center; justify-content: center; white-space: nowrap; color: #f0a179; }
.rotator .sep { margin-left: .5ch; opacity: .55; }

/* Reduced motion: keep everything legible, drop the movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
