/* ============================================================
   BAR D CONSTRUCTION & LAND SERVICES
   Stephenville, TX - Erath County
   Built by OTM Web Design

   Light / warm variant. Aged-parchment body background, cream
   frames floating on top, espresso type, rust accent. Palette
   sampled from the branded banner: parchment, espresso, rust,
   amber. Ranch Texas, branded leather, timber and steel.
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---------- TOKENS ---------- */
:root {
  --parchment: #e5d9c3;
  --parchment-light: #efe5d2;
  --parchment-deep: #d5c4a6;

  --espresso: #38302a;
  --espresso-deep: #241e1a;

  --rust: #b4522b;
  --rust-deep: #8e3d1e;
  --rust-rgb: 180, 82, 43;
  --amber: #e8a33d;

  --ink: #3e362f;
  --ink-soft: #6e6155;
  --heading: #38302a;

  --frame: #f2e9d8;
  --frame-card: #fbf5e9;
  --frame-deep: #2c2520;
  --frame-deep-text: #f4ecdd;
  /* Body copy on dark cards. 10.3:1 against --frame-deep. */
  --frame-deep-body: #e2d7c6;
  /* Small uppercase labels on dark cards. 7.2:1 against --frame-deep. */
  --frame-deep-soft: #c3b4a1;

  /* Text sitting directly on a photograph. A photo has no single background
     luminance, so no text color is safe across the whole frame. These shadows
     act as a scrim that exists only behind the glyphs: invisible over the dark
     parts of an image, load-bearing over the bright parts. The image itself is
     never dimmed. Tight layer defines the edge, wide layer kills the halo. */
  --text-shadow-photo: 0 1px 2px rgba(20, 16, 13, 0.9), 0 4px 18px rgba(20, 16, 13, 0.5);
  --text-shadow-photo-lg: 0 2px 4px rgba(20, 16, 13, 0.75), 0 6px 28px rgba(20, 16, 13, 0.45);

  --line: rgba(56, 48, 42, 0.16);
  --bg-fallback: #e5d9c3;
  --media-fallback: linear-gradient(140deg, #4a3f37 0%, #241e1a 100%);

  --shadow-soft: 0 6px 20px rgba(56, 48, 42, 0.13);
  --shadow-lift: 0 20px 46px rgba(56, 48, 42, 0.2);

  --container: 1240px;
  --radius: 14px;
  --radius-card: 11px;

  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- BASE ---------- */
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-fallback);
  overflow-x: hidden;
  width: 100%;
}
body.nav-open { overflow: hidden; }

/* Light build: subtle aged-paper background image, no darkening filter.
   Fixed pseudo-element works on iOS where background-attachment: fixed fails. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('assets/body-bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--bg-fallback);
  z-index: -1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--heading);
}
p { text-wrap: pretty; }

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

.lede { font-size: 1.12rem; color: var(--ink-soft); }
.text-rust { color: var(--rust); }

/* ---------- SHARED LAYOUT ---------- */
.inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 90px 0; position: relative; }
section[id] { scroll-margin-top: 92px; }

.container {
  position: relative;
  width: calc(100% - 48px);
  max-width: var(--container);
  margin: 0 auto;
  background: var(--frame);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rust);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 70px 60px;
}
.container--deep { background: var(--frame-deep); border-top-color: var(--amber); }
.container--deep h2, .container--deep h3, .container--deep h4 { color: #fff; }
.container--deep p { color: var(--frame-deep-body); }
.container--prose { max-width: 880px; }

/* ---------- EYEBROW ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rust-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--rust); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 26px; height: 2px; background: var(--rust); }
.hero .eyebrow, .page-hero .eyebrow, .cta .eyebrow, .container--deep .eyebrow, .contact-panel .eyebrow { color: var(--amber); }
.hero .eyebrow, .page-hero .eyebrow { text-shadow: var(--text-shadow-photo); }
.hero .eyebrow::before, .hero .eyebrow::after,
.page-hero .eyebrow::before, .page-hero .eyebrow::after,
.cta .eyebrow::before, .cta .eyebrow::after,
.container--deep .eyebrow::before, .container--deep .eyebrow::after,
.contact-panel .eyebrow::before, .contact-panel .eyebrow::after { background: var(--amber); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 9px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--rust); color: #fff; box-shadow: 0 8px 24px rgba(var(--rust-rgb), 0.34); }
.btn-primary:hover { background: var(--rust-deep); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(var(--rust-rgb), 0.45); }
.btn-outline { border: 2px solid var(--rust); color: var(--rust-deep); }
.btn-outline:hover { background: var(--rust); color: #fff; transform: translateY(-3px); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--espresso-deep); transform: translateY(-3px); }
.cta .btn-outline, .container--deep .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cta .btn-outline:hover, .container--deep .btn-outline:hover { background: #fff; color: var(--espresso-deep); }
.btn-block { width: 100%; }

/* ============================================================
   NAV  (light frame tone, same as the section cards)
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--frame);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(56, 48, 42, 0.14);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--container); margin: 0 auto; padding: 8px 24px; gap: 18px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; transition: transform 0.25s ease; }
.brand:hover img { transform: scale(1.04); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links > a,
.nav-trigger {
  font-family: var(--font-display); font-weight: 500; font-size: 0.94rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  padding: 6px 0; position: relative; white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links > a::after,
.nav-trigger::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--rust); transition: width 0.25s ease;
}
.nav-links > a:hover, .nav-links > a.is-active,
.nav-trigger:hover, .nav-trigger.is-active { color: var(--rust-deep); }
.nav-links > a:hover::after, .nav-links > a.is-active::after,
.nav-trigger:hover::after, .nav-trigger.is-active::after { width: 100%; }
.nav-cta { background: var(--rust); color: #fff !important; padding: 10px 20px; border-radius: 8px; font-weight: 600 !important; transition: background 0.2s ease, transform 0.2s ease; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--rust-deep); transform: translateY(-2px); }

/* ---------- SERVICES DROPDOWN ----------
   No JavaScript. :focus-within opens it for keyboard users the same way
   :hover does for mouse users. The padding-top on .dropdown bridges the gap
   between the trigger and the panel so the pointer does not fall through it
   on the way down. */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; gap: 7px; }
.nav-caret {
  width: 8px; height: 8px; flex-shrink: 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret { transform: translateY(1px) rotate(225deg); }

.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 248px; padding-top: 14px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  z-index: 120;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}
.dropdown-inner {
  background: var(--frame-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rust);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 10px;
  display: flex; flex-direction: column;
}
.dropdown a {
  font-family: var(--font-display); font-weight: 500; font-size: 0.92rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink);
  padding: 11px 14px; border-radius: 7px; white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.dropdown a:hover, .dropdown a.is-active {
  background: rgba(var(--rust-rgb), 0.1); color: var(--rust-deep); padding-left: 20px;
}
.dropdown .dropdown-all {
  border-bottom: 1px solid var(--line);
  border-radius: 7px 7px 0 0;
  margin-bottom: 6px; padding-bottom: 13px;
  color: var(--rust-deep); font-weight: 600;
}
/* Light up the Services trigger when any page inside the dropdown is current */
.nav-item:has(.dropdown a.is-active) > .nav-trigger { color: var(--rust-deep); }
.nav-item:has(.dropdown a.is-active) > .nav-trigger::after { width: 100%; }

/* ---------- HAMBURGER ---------- */
.hamburger { display: none; position: relative; width: 48px; height: 48px; margin-left: auto; z-index: 220; }
.hamburger span { position: absolute; left: 11px; width: 26px; height: 2.5px; background: var(--rust-deep); border-radius: 2px; transition: transform 0.3s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.5, 0, 0.2, 1); }
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22.75px; }
.hamburger span:nth-child(3) { top: 29.5px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

/* ---------- MOBILE MENU ----------
   visibility: hidden while closed pulls the links out of the tab order.
   Without it the panel sits offscreen but stays keyboard focusable, so a
   tabbing user lands inside an invisible menu. The 0.4s visibility delay on
   close lets the slide-out animation finish before it disappears.

   Service pages are indented under Services rather than hidden behind an
   accordion. Always visible, no JavaScript, nothing to make accessible. */
.nav-backdrop { position: fixed; inset: 0; background: rgba(36, 30, 26, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.35s ease; z-index: 200; }
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(82vw, 360px);
  background: var(--frame);
  border-left: 3px solid var(--rust);
  box-shadow: -20px 0 60px rgba(36, 30, 26, 0.35);
  padding: 92px 30px 46px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.5, 0, 0.2, 1), visibility 0s linear 0.4s;
  z-index: 210;
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.5, 0, 0.2, 1), visibility 0s linear 0s;
}
.mobile-menu a { font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--heading); padding: 14px 0; border-bottom: 1px solid var(--line); transition: color 0.3s ease, padding-left 0.3s ease; }
.mobile-menu a:hover, .mobile-menu a.is-active { color: var(--rust-deep); padding-left: 10px; }
.mobile-menu a.mobile-sub {
  font-size: 1rem; padding: 11px 0 11px 20px; color: var(--ink-soft);
  border-bottom: 1px solid rgba(56, 48, 42, 0.08);
  position: relative;
}
.mobile-menu a.mobile-sub::before {
  content: ""; position: absolute; left: 4px; top: 50%;
  width: 8px; height: 2px; background: var(--rust); opacity: 0.55;
}
.mobile-menu a.mobile-sub:hover, .mobile-menu a.mobile-sub.is-active { color: var(--rust-deep); padding-left: 28px; }
.mobile-menu a.mobile-sub:last-of-type { margin-bottom: 8px; }
.mobile-menu .btn { margin-top: 24px; width: 100%; }
.mobile-menu .btn:hover { padding-left: 30px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; padding: 140px 0 90px; background-color: var(--espresso-deep); background-size: cover; background-position: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(36, 30, 26, 0.68) 0%, rgba(36, 30, 26, 0.54) 45%, rgba(36, 30, 26, 0.26) 100%); }
.hero-content { position: relative; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 22px; text-shadow: var(--text-shadow-photo-lg); }
.hero h1 span { color: var(--amber); display: block; }
.hero p { color: #fff; font-size: 1.18rem; max-width: 620px; margin-bottom: 34px; text-shadow: var(--text-shadow-photo); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 38px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-shadow: var(--text-shadow-photo); }
.hero-trust span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(232, 163, 61, 0.8); }

/* ---------- PAGE HERO (accent bar closes every one) ---------- */
.page-hero { position: relative; display: flex; align-items: center; text-align: center; min-height: 46vh; padding: 150px 0 78px; background-color: var(--espresso-deep); background-size: cover; background-position: center; border-bottom: 4px solid var(--rust); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(36, 30, 26, 0.66) 0%, rgba(36, 30, 26, 0.45) 55%, rgba(36, 30, 26, 0.24) 100%); }
.page-hero .inner { position: relative; max-width: 860px; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { color: #fff; margin-bottom: 18px; text-shadow: var(--text-shadow-photo-lg); }
.page-hero h1 span { color: var(--amber); }
.page-hero p { color: #fff; font-size: 1.12rem; max-width: 660px; margin: 0 auto; text-shadow: var(--text-shadow-photo); }
/* Short heroes sit on a flat gradient, not a photo, so they need no scrim */
.page-hero--short { min-height: 28vh; padding: 140px 0 56px; background-image: linear-gradient(135deg, #38302a 0%, #241e1a 100%); }
.page-hero--short::before { background: none; }
.page-hero--short h1, .page-hero--short p, .page-hero--short .eyebrow { text-shadow: none; }

/* ============================================================
   MARQUEE (the only full-bleed band)
   ============================================================ */
.marquee { background: var(--espresso-deep); border-top: 2px solid var(--rust); border-bottom: 2px solid var(--rust); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; padding: 14px 0; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--frame-deep-text); white-space: nowrap; }
.marquee-item::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin: 0 26px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTION HEADS, INTRO, FEATURE
   ============================================================ */
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; color: var(--ink-soft); }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.intro-grid.reverse .intro-media { order: 2; }
/* The intro image is the Bar D logo on the home and about pages, so the whole
   image has to stay visible. The badge used to float over the bottom-left
   corner and covered the business name. It now sits below the image as a
   nameplate strip, part of the same card, so it can never overlap the logo at
   any screen width. object-fit: contain keeps the full logo in frame instead
   of cropping it to fill. */
.intro-media { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-card); background: var(--frame-card); box-shadow: var(--shadow-soft); overflow: hidden; border: 1px solid var(--line); }
.intro-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.intro-badge { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; background: var(--frame-deep); color: #fff; padding: 16px 22px; border-top: 3px solid var(--amber); }
.intro-badge strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--amber); line-height: 1.1; text-transform: uppercase; }
.intro-badge span { display: block; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--frame-deep-soft); }
.intro-copy h2 { margin-bottom: 18px; }
.intro-copy p { color: var(--ink-soft); }
.intro-copy p + p { margin-top: 16px; }
.intro-list { margin-top: 24px; display: grid; gap: 12px; }
.intro-list li { display: flex; gap: 12px; font-weight: 700; color: var(--ink); }
.intro-list li::before { content: "\2713"; color: var(--rust); font-weight: 700; }
.intro-copy .btn { margin-top: 28px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.feature-grid.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--line); min-height: 400px; background: var(--media-fallback); }
.feature-media img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; }
.feature-copy h2 { margin-bottom: 18px; }
.feature-copy p { color: var(--ink-soft); }
.feature-copy p + p { margin-top: 16px; }
.feature-copy .btn { margin-top: 28px; }
.pull-quote { margin: 24px 0 0; padding: 18px 24px; border-left: 4px solid var(--rust); background: var(--frame-card); border-radius: 0 10px 10px 0; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: 0.02em; color: var(--heading); text-transform: uppercase; }

/* ---------- SERVICE CARDS (image flush to top, every card) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.services-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.services-grid.four-up { grid-template-columns: repeat(4, 1fr); }
.service-card { background: var(--frame-card); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--rust); }
.service-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 3px solid var(--rust); }
.services-detail-grid .service-card img { aspect-ratio: 16 / 7; }
.service-card .card-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1 1 auto; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.97rem; }
.service-card .card-link { display: inline-block; margin-top: auto; padding-top: 16px; font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rust-deep); }
.service-card .card-link:hover { color: var(--rust); }
.services-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.services-detail-grid .check-list { margin-top: 16px; }

/* ---------- CHECK LIST ---------- */
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.check-list li::before { content: "\2713"; color: var(--rust); font-weight: 800; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 12px 30px; }

/* ---------- STATS / TRUST BAND (contained deep card) ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.trust-item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--amber); line-height: 1.05; text-transform: uppercase; }
.trust-item span { display: block; margin-top: 10px; font-size: 0.86rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--frame-deep-soft); }

/* ---------- PROCESS STEPS (numbered sub-cards) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; background: var(--frame-card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px 28px; box-shadow: var(--shadow-soft); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--rust); }
.step-num { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; color: var(--rust); line-height: 1; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.24rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

.steps-flow { display: grid; gap: 20px; }
.flow-step { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; background: var(--frame-card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 32px; box-shadow: var(--shadow-soft); }
.flow-step .flow-num { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; color: var(--rust); line-height: 1; }
.flow-step h3 { margin-bottom: 6px; }
.flow-step p { color: var(--ink-soft); }

/* ---------- VALUE / SPEC / USE CARDS ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.values-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.values-grid.four-up { grid-template-columns: repeat(4, 1fr); }
.value-card { background: var(--frame-card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px 28px; box-shadow: var(--shadow-soft); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--rust); }
.value-card h3 { margin-bottom: 10px; font-size: 1.24rem; }
.value-card p { color: var(--ink-soft); font-size: 0.96rem; }
.value-card .value-tag { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; color: var(--rust); line-height: 1; margin-bottom: 10px; text-transform: uppercase; }

/* ---------- AREA CHIPS ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.area-list li { background: var(--frame-card); border: 1px solid var(--line); border-radius: 30px; padding: 9px 22px; color: var(--ink); font-weight: 700; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.07em; transition: border-color 0.2s ease, color 0.2s ease; }
.area-list li:hover { border-color: var(--rust); color: var(--rust-deep); }
.area-note { text-align: center; margin-top: 26px; color: var(--ink-soft); }

/* ---------- BADGE CALLOUT ---------- */
.badge-band { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.badge-mark { width: 132px; height: 132px; border-radius: 50%; background: rgba(var(--rust-rgb), 0.12); border: 3px solid var(--rust); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex-shrink: 0; }
.badge-mark strong { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--rust-deep); line-height: 1; text-transform: uppercase; }
.badge-mark span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px; }
.badge-copy h2 { margin-bottom: 12px; }
/* Capped measure: this paragraph otherwise runs the full card width, and long
   lines make light-on-dark text harder to read regardless of contrast ratio. */
.badge-copy p { color: var(--ink-soft); max-width: 68ch; }

/* ============================================================
   GALLERY CAROUSEL (featured-center coverflow, auto-advancing)
   ============================================================ */
.gallery-carousel { position: relative; }
.gallery-stage { position: relative; height: 460px; overflow: hidden; }
.gallery-slide {
  position: absolute; top: 0; left: 50%;
  width: 60%; height: 100%;
  transform: translateX(-50%) scale(0.7);
  opacity: 0;
  transition: transform 0.55s ease, opacity 0.55s ease;
  pointer-events: none;
}
/* Rust border matches the accent bar every other image block on the site carries */
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-card); border: 3px solid var(--rust); box-shadow: var(--shadow-soft); }
.gallery-slide.is-active { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; pointer-events: auto; }
.gallery-slide.is-prev { transform: translateX(-108%) scale(0.78); opacity: 0.4; z-index: 2; }
.gallery-slide.is-next { transform: translateX(8%) scale(0.78); opacity: 0.4; z-index: 2; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 32px; }
.carousel-btn { background: transparent; border: 2px solid var(--rust); color: var(--rust-deep); width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.carousel-btn:hover { background: var(--rust); color: #fff; transform: translateY(-2px); }
.carousel-dots { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 260px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--rust-rgb), 0.28); transition: background 0.2s ease, transform 0.2s ease; }
.carousel-dot.is-active { background: var(--rust); transform: scale(1.3); }

/* ---------- STATIC PROJECT GRID ----------
   figure is a flex column and figcaption grows to fill. Grid items stretch to
   equal row height, so without this a one-line caption next to a two-line one
   leaves dead space at the bottom of the shorter card, and that space shows the
   dark --media-fallback gradient as a black bar. Letting the cream caption
   block absorb the leftover height kills it. Works with no caption too. */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.photo-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.photo-grid.three-up { grid-template-columns: repeat(3, 1fr); }
.photo-grid figure { display: flex; flex-direction: column; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: var(--frame-card); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.photo-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.photo-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; flex: 0 0 auto; }
.photo-grid figcaption { flex: 1 1 auto; padding: 14px 16px; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); background: var(--frame-card); border-top: 2px solid var(--rust); }
/* Caption-free grids (projects page) still need the rust rule under the photo */
.photo-grid figure:not(:has(figcaption)) img { border-bottom: 2px solid var(--rust); }

/* ============================================================
   BUILD SEQUENCE
   A documented job shown in order, dirt to finished. Numbered steps so the
   sequence reads left to right even when the grid wraps.
   ============================================================ */
.build-story + .build-story { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.build-head { max-width: 760px; margin-bottom: 34px; }
.build-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff; background: var(--rust);
  padding: 6px 14px; border-radius: 30px; margin-bottom: 14px;
}
.build-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.build-head p { color: var(--ink-soft); }
.build-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; counter-reset: step; }
.build-steps.six-up { grid-template-columns: repeat(6, 1fr); }
.build-steps.four-up { grid-template-columns: repeat(4, 1fr); }
.build-step {
  display: flex; flex-direction: column;
  background: var(--frame-card); border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.build-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.build-media { position: relative; }
.build-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 3px solid var(--rust); }
.build-num {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.08em; color: #fff; background: rgba(36, 30, 26, 0.82);
  padding: 4px 10px; border-radius: 6px; border-left: 2px solid var(--amber);
}
.build-caption { flex: 1 1 auto; padding: 14px 16px 18px; }
.build-caption strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.98rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--heading); margin-bottom: 5px;
}
.build-caption span { display: block; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }

/* ============================================================
   SELF-HOSTED VIDEO BLOCK
   ============================================================ */
.video-frame {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  border: 3px solid var(--rust); box-shadow: var(--shadow-soft);
  background: var(--media-fallback);
}
/* The box is sized by aspect-ratio, not by the video's metadata, so it does not
   jump when playback starts. object-fit: cover makes the poster fill that box
   whatever shape the poster happens to be. Change the aspect-ratio below if the
   clip is not square. */
.video-frame video {
  width: 100%;
  height: auto;
  display: block;
  background: #241e1a;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
/* Vertical phone footage: cap the height so a 9:16 clip does not run off the
   screen on desktop, and letterbox it against the dark frame instead. */
.video-frame--portrait { max-width: 420px; margin: 0 auto; }
.video-frame--portrait video { aspect-ratio: 9 / 16; }
.video-frame--square { max-width: 560px; margin: 0 auto; }
.video-frame--square video { aspect-ratio: 1 / 1; }
.video-frame--wide video { aspect-ratio: 16 / 9; }
.video-caption { margin-top: 14px; font-size: 0.94rem; color: var(--ink-soft); text-align: center; }

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.ba-wrap { display: grid; gap: 26px; }
.ba { position: relative; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: var(--media-fallback); touch-action: pan-y; }
.ba img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ba-after { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-after img { width: 100%; height: 100%; object-fit: cover; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 4px; background: var(--amber); transform: translateX(-2px); z-index: 4; pointer-events: none; box-shadow: 0 0 14px rgba(36, 30, 26, 0.5); }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: var(--espresso-deep); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; box-shadow: 0 6px 18px rgba(36, 30, 26, 0.4); }
.ba-label { position: absolute; bottom: 16px; z-index: 5; font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(36, 30, 26, 0.78); padding: 7px 15px; border-radius: 6px; pointer-events: none; }
.ba-label--before { left: 16px; }
.ba-label--after { right: 16px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 6; margin: 0; }
.ba-caption { margin-top: 14px; font-size: 0.94rem; color: var(--ink-soft); text-align: center; }
/* Placeholder note shown while real before/after photos are pending */
.ba-pending { display: block; margin-top: 6px; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust-deep); text-align: center; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--frame-card); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; padding: 22px 26px; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--heading); transition: color 0.2s ease; }
.faq-q:hover { color: var(--rust-deep); }
.faq-q .faq-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(var(--rust-rgb), 0.14); color: var(--rust-deep); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; line-height: 1; transition: transform 0.3s ease, background 0.2s ease; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--rust); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height 0.4s ease, visibility 0s linear 0.4s; }
.faq-answer.open { max-height: 1200px; visibility: visible; transition: max-height 0.4s ease, visibility 0s linear 0s; }
.faq-answer p { padding: 0 26px 24px; color: var(--ink-soft); }
.faq-answer p + p { padding-top: 0; margin-top: -8px; }

/* ============================================================
   DUMPSTER SIZE CARDS
   ============================================================ */
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.size-card { background: var(--frame-card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 34px 30px; box-shadow: var(--shadow-soft); text-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.size-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--rust); }
.size-card .size-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 3.1rem; line-height: 1; color: var(--rust); }
.size-card .size-unit { display: block; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.size-card h3 { margin: 18px 0 10px; font-size: 1.2rem; }
.size-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- SPLIT CALLOUT (dumpster path on home) ---------- */
.split-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split-callout .split-media { border-radius: var(--radius-card); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); min-height: 340px; background: var(--media-fallback); }
.split-callout .split-media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.split-callout h2 { margin-bottom: 16px; }
.split-callout .btn { margin-top: 26px; }

/* ============================================================
   CTA STRIP (contained card, image + overlay)
   Flat 62% overlay across the whole card, so unlike the heroes this one has
   an even background and does not need a per-glyph scrim.
   ============================================================ */
.cta { position: relative; overflow: hidden; text-align: center; color: #fff; background-color: var(--espresso-deep); background-image: linear-gradient(180deg, rgba(36, 30, 26, 0.62), rgba(36, 30, 26, 0.62)), url('assets/cta-bg.jpg'); background-size: cover; background-position: center; border-top-color: var(--amber); }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 16px; }
.cta p { color: var(--frame-deep-body); max-width: 660px; margin: 0 auto 26px; }
.cta-phone { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--amber); letter-spacing: 0.05em; margin-bottom: 24px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ============================================================
   FOOTER (light frame tone, same as the cards)
   ============================================================ */
.footer { background: var(--frame); border-top: 3px solid var(--rust); color: var(--ink-soft); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.footer-brand img { height: 76px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin-top: 6px; font-size: 0.95rem; max-width: 320px; color: var(--ink-soft); }
.footer-tag { font-family: var(--font-display); font-weight: 500; color: var(--rust-deep); letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.02rem; margin-top: 14px !important; }
.footer h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.09em; color: var(--heading); margin-bottom: 18px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a, .footer-contact a, .footer-contact span { color: var(--ink-soft); font-size: 0.95rem; transition: color 0.2s ease; }
.footer ul a:hover, .footer-contact a:hover { color: var(--rust-deep); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-bottom { max-width: var(--container); margin: 50px auto 0; padding: 24px 24px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; font-size: 0.86rem; color: var(--ink-soft); }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-legal-links a { color: var(--ink-soft); }
.footer-legal-links a:hover { color: var(--rust-deep); }
.otm-credit { color: var(--rust-deep) !important; font-weight: 700; border-bottom: 1px solid rgba(var(--rust-rgb), 0.4); }
.otm-credit:hover { color: var(--heading) !important; border-color: var(--heading); }

/* ============================================================
   FORMS / CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: start; }
.contact-panel { background: var(--frame-deep); border-radius: var(--radius-card); padding: 38px 34px; box-shadow: var(--shadow-lift); border-top: 3px solid var(--amber); }
.contact-panel h2 { color: #fff; margin-bottom: 14px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.contact-panel > p { color: var(--frame-deep-body); margin-bottom: 26px; }
.contact-list { display: grid; gap: 16px; margin-bottom: 28px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.contact-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); }
.contact-list a, .contact-value { color: #fff; font-weight: 700; }
.contact-list a:hover { color: var(--amber); }
.contact-panel .btn-block + .btn-block { margin-top: 12px; }

.form-card { background: var(--frame-card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 38px; box-shadow: var(--shadow-soft); }
.form-card h2 { margin-bottom: 8px; }
.form-intro { color: var(--ink-soft); margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field input::placeholder, .field textarea::placeholder { color: #767065; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(var(--rust-rgb), 0.2); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #a5291b; box-shadow: 0 0 0 3px rgba(165, 41, 27, 0.16); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-error { display: none; color: #922b21; font-size: 0.82rem; font-weight: 700; margin-top: 6px; }
.field.has-error .field-error { display: block; }
.form-banner { display: none; margin-bottom: 20px; padding: 14px 18px; border-radius: 8px; background: rgba(165, 41, 27, 0.1); border: 1px solid rgba(165, 41, 27, 0.4); color: #7d241c; font-weight: 700; font-size: 0.94rem; }
.form-banner.show { display: block; }
.form-fineprint { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }

/* ---------- THANK YOU / 404 ---------- */
body[data-page="thank-you"], body[data-page="404"] { display: flex; flex-direction: column; min-height: 100dvh; }
body[data-page="thank-you"] main, body[data-page="404"] main { flex: 1 1 auto; display: flex; flex-direction: column; }
body[data-page="thank-you"] .utility, body[data-page="404"] .utility { flex: 1 1 auto; display: flex; align-items: center; }
.utility { padding: 150px 0 90px; }
.utility-card { max-width: 640px; margin: 0 auto; text-align: center; }
.utility-icon { width: 84px; height: 84px; margin: 0 auto 28px; border-radius: 50%; background: rgba(var(--rust-rgb), 0.14); display: flex; align-items: center; justify-content: center; color: var(--rust-deep); }
.utility-icon svg { width: 42px; height: 42px; }
.utility-card h1 { margin-bottom: 16px; }
.utility-card p { max-width: 520px; margin: 0 auto 24px; color: var(--ink-soft); font-size: 1.06rem; }
.utility-card .cta-actions { justify-content: center; }

/* ---------- PROSE (legal) ---------- */
.prose > p:first-of-type { font-size: 1.04rem; color: var(--ink); margin-bottom: 8px; }
.legal-updated { color: var(--ink-soft); font-size: 0.86rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 30px; }
.prose h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 22px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul { padding-left: 22px; list-style: disc; margin-bottom: 12px; }
.prose a { color: var(--rust-deep); border-bottom: 1px solid rgba(var(--rust-rgb), 0.4); }
.prose a:hover { color: var(--ink); }
.prose .note { background: var(--frame-card); border-left: 4px solid var(--rust); border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 20px 0; }
.prose .note p:last-child { margin-bottom: 0; }

/* ---------- FOCUS VISIBILITY ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1240px) {
  .nav-links { gap: 15px; }
  .nav-links > a, .nav-trigger { font-size: 0.87rem; }
  .brand img { height: 50px; }
}
@media (max-width: 1100px) {
  .container { padding: 50px 36px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid.four-up { grid-template-columns: repeat(2, 1fr); }
  .services-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 30px; }
  .values-grid.four-up { grid-template-columns: repeat(2, 1fr); }
  .photo-grid, .photo-grid.three-up { grid-template-columns: repeat(2, 1fr); }
  .build-steps, .build-steps.six-up, .build-steps.four-up { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .check-list.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  section { padding: 70px 0; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .intro-grid, .feature-grid, .split-callout { grid-template-columns: 1fr; gap: 36px; }
  .intro-grid.reverse .intro-media, .feature-grid.reverse .feature-media { order: 0; }
  .intro-media { max-width: 480px; width: 100%; margin: 0 auto; }
  .services-grid, .services-grid.two-up, .services-grid.four-up { grid-template-columns: 1fr; }
  .services-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-grid, .values-grid.two-up, .values-grid.four-up { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .gallery-stage { height: 340px; }
  .badge-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .badge-copy p { max-width: none; }
  .build-steps, .build-steps.six-up, .build-steps.four-up { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); padding: 36px 22px; }
  .process-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .photo-grid, .photo-grid.two-up, .photo-grid.three-up { grid-template-columns: 1fr; }
  .build-steps, .build-steps.six-up, .build-steps.four-up { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-stage { height: 230px; }
  .gallery-slide { width: 80%; }
  .gallery-slide img { border-width: 2px; }
  .gallery-slide.is-prev { transform: translateX(-116%) scale(0.8); }
  .gallery-slide.is-next { transform: translateX(16%) scale(0.8); }
  .page-hero { padding: 130px 0 60px; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .flow-step { grid-template-columns: 1fr; padding: 24px; gap: 10px; }
  .form-card { padding: 26px 22px; }
  .contact-panel { padding: 30px 24px; }
  .faq-q { padding: 18px 20px; font-size: 1rem; }
  .faq-answer p { padding: 0 20px 20px; }
  .ba-handle::after { width: 38px; height: 38px; font-size: 1rem; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .step, .value-card, .size-card, .photo-grid figure, .build-step { transition: none; }
  .dropdown { transition: none; }
}

/* ============================================================
   DEEP-CARD OVERRIDES (light-frame build, dark contained cards)

   These must stay at the end of the file. .badge-copy p, .section-head p,
   .feature-copy p and .intro-copy p carry the same specificity as
   .container--deep p but sit earlier in the source, so without these the dark
   cards inherit the light-background text color. That is what put the
   licensed-trades paragraph at 2.45:1 against its own background.
   ============================================================ */
.container--deep .check-list li { color: #fff; }
.container--deep .check-list li::before { color: var(--amber); }
.container--deep .badge-mark { border-color: var(--amber); background: rgba(232, 163, 61, 0.14); }
.container--deep .badge-mark strong { color: var(--amber); }
.container--deep .badge-mark span { color: var(--frame-deep-soft); }
.container--deep .badge-copy p,
.container--deep .section-head p,
.container--deep .feature-copy p,
.container--deep .intro-copy p { color: var(--frame-deep-body); }

/* Light cards inside a dark container.
   .container--deep h2/h3/h4 turns every heading white, which is right for
   headings sitting directly on the dark card but wrong for headings inside a
   cream sub-card. White on --frame-card is about 1.05:1, effectively
   invisible. These put the heading color back for every card that carries its
   own light background. Add any new light card class here too. */
.container--deep .value-card h2,
.container--deep .value-card h3,
.container--deep .value-card h4,
.container--deep .service-card h2,
.container--deep .service-card h3,
.container--deep .service-card h4,
.container--deep .step h2,
.container--deep .step h3,
.container--deep .step h4,
.container--deep .size-card h2,
.container--deep .size-card h3,
.container--deep .size-card h4,
.container--deep .flow-step h2,
.container--deep .flow-step h3,
.container--deep .flow-step h4,
.container--deep .faq-item h2,
.container--deep .faq-item h3,
.container--deep .faq-item h4,
.container--deep .form-card h2,
.container--deep .form-card h3,
.container--deep .form-card h4,
.container--deep .build-step h2,
.container--deep .build-step h3,
.container--deep .build-step h4 { color: var(--heading); }

/* Captions that sit directly on the dark card, not on a light one */
.container--deep .ba-caption,
.container--deep .video-caption,
.container--deep .area-note { color: var(--frame-deep-body); }
.container--deep .ba-pending { color: var(--amber); }
.container--deep .pull-quote { background: rgba(255, 255, 255, 0.06); border-left-color: var(--amber); color: #fff; }
.accent-line { color: var(--amber); font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.06em; text-transform: uppercase; }
.section-foot { text-align: center; margin-top: 42px; }
.split-callout .btn { margin-top: 26px; }