/* ==========================================================================
   Deans Do It All — Winchester, VA
   Palette and type are built up from their real logo: a vintage hardware
   badge in barn red (#AA2119) on cream (#F3F2EE) with near-black ink.
   Heavy slab display type echoes the badge wordmark.
   ========================================================================== */

/* ---------- Tokens ---------- */
/* === defensive base — injected by harden_css.py; do not hand-edit === */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: calc(var(--nav-h, 72px) + 1rem); }
img, svg, video, iframe, canvas, table { display: block; max-width: 100%; }
p, li, h1, h2, h3, h4, blockquote, td, dd, dt { overflow-wrap: anywhere; }
/* === end defensive base === */

:root {
  /* sampled directly from the logo artwork */
  --red:        #aa2119;
  --red-dk:     #8b1a13;
  --red-lt:     #c8352c;
  --ink:        #161513;
  --ink-2:      #1f1e1b;
  --ink-3:      #2a2825;
  --cream:      #f3f2ee;
  --cream-2:    #e8e6de;
  --cream-3:    #dcd9cf;

  --line-dark:  #322f2b;
  --line-light: #d5d1c6;

  --on-dark:    #f0efe9;
  --on-dark-dim:#a5a099;
  --on-light:   #161513;
  --on-light-dim:#5f5a52;

  --nav-h:      74px;
  --edge:       clamp(1.15rem, 4vw, 4rem);
  --maxw:       1250px;
  --r:          2px;

  --shadow:     0 16px 40px -20px rgba(0, 0, 0, .55);
  --shadow-lg:  0 34px 70px -30px rgba(0, 0, 0, .6);
  --ease:       cubic-bezier(.2, .7, .3, 1);

  /* paper grain — keeps the flat cream from looking like a blank div */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

@media (max-width: 720px) { :root { --nav-h: 62px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* No `scroll-behavior: smooth` here on purpose: it animates programmatic
   scrolls too, which makes screen-by-screen capture photograph mid-flight.
   Anchor jumps land instantly and `scroll-padding-top` clears the sticky nav. */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--on-light);
  font-family: 'Barlow', 'Helvetica Neue', sans-serif;
  font-size: clamp(1rem, .96rem + .18vw, 1.08rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
  font-family: 'Alfa Slab One', Rockwell, 'Courier Bold', serif;
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.005em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, picture, svg, video { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Shared ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.section-pad { padding-block: clamp(3.75rem, 7.5vw, 7rem); }

section { position: relative; }

.dark  { background: var(--ink);   color: var(--on-dark); }
.light { background: var(--cream); color: var(--on-light); }

.dark::before, .light.grain::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .5;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.light.grain::before { opacity: .28; mix-blend-mode: multiply; }
.dark > .wrap, .light > .wrap { position: relative; }

/* Eyebrow — small ticket-stub label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  font-family: 'Barlow', sans-serif;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}
.dark .eyebrow { color: var(--red-lt); }
.eyebrow::before {
  content: "";
  width: 22px; height: 3px;
  background: currentColor;
  flex: none;
}

/* Hazard/stripe rule in brand red — the workwear signal */
.rule {
  height: 7px;
  background: repeating-linear-gradient(-45deg,
    var(--red) 0 14px, var(--ink) 14px 28px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 60ch;
  margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem);
}
.section-head h2 { font-size: clamp(2.05rem, 5.4vw, 3.5rem); }
.section-head p { font-size: 1.07rem; color: var(--on-light-dim); max-width: 52ch; }
.dark .section-head p { color: var(--on-dark-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .9em 1.55em;
  min-height: 54px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  border-radius: var(--r);
  font-family: 'Barlow', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease),
              border-color .16s var(--ease), color .16s var(--ease),
              box-shadow .16s var(--ease);
  box-shadow: 0 3px 0 var(--red-dk);
}
.btn:hover { background: var(--red-dk); border-color: var(--red-dk); transform: translateY(-2px); box-shadow: 0 5px 0 #6d140f; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--red-dk); }

.btn.ghost {
  background: transparent;
  box-shadow: none;
  color: var(--on-dark);
  border-color: rgba(240, 239, 233, .35);
}
.btn.ghost:hover {
  background: rgba(240, 239, 233, .1);
  border-color: var(--on-dark);
  color: var(--on-dark);
  transform: translateY(-2px);
  box-shadow: none;
}
.light .btn.ghost, .btn.ghost.on-light {
  color: var(--on-light);
  border-color: rgba(22, 21, 19, .3);
}
.light .btn.ghost:hover, .btn.ghost.on-light:hover {
  background: rgba(22, 21, 19, .07);
  border-color: var(--ink);
  color: var(--on-light);
}
.btn.sm { min-height: 46px; padding: .6em 1.15em; font-size: .8rem; }

/* ==========================================================================
   NAV — cream, so the badge logo sits on its own paper stock
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(243, 242, 238, .96);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 2px solid var(--ink);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 1.4rem; }

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; min-width: 0; }
.brand img { height: calc(var(--nav-h) - 22px); width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name {
  font-family: 'Alfa Slab One', serif;
  font-size: 1.08rem;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.brand-sub {
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 4px;
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  position: relative;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--on-light-dim);
  padding-block: .45rem;
  transition: color .16s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width .22s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { flex: none; }

.burger {
  display: none;
  width: 46px; height: 46px;
  flex: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  cursor: pointer;
  padding: 0;
}
.burger span { display: block; position: relative; width: 20px; height: 2.5px; background: var(--ink); transition: background .16s var(--ease); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2.5px; background: var(--ink);
  transition: transform .24s var(--ease), top .24s var(--ease);
}
.burger span::before { top: -6.5px; }
.burger span::after  { top:  6.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Drawer: display:none is the real guard, not just [hidden] */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 55;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  padding: 1.1rem var(--edge) 1.6rem;
  flex-direction: column;
  gap: .1rem;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Alfa Slab One', serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: .9rem; }

@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; }
}

/* ==========================================================================
   HERO — sized to exactly one screen. Type scales to the copy column via cqi.
   ========================================================================== */
.hero {
  min-height: calc(100svh - var(--nav-h));
  overflow: clip;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--on-dark);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .5;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* faint blueprint grid, faded out to the right */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(115deg, #000 0%, transparent 58%);
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 58%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
  padding-block: clamp(1.4rem, 3.5vh, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(1.75rem, 4.5vw, 4rem);
}

.hero-copy {
  container-type: inline-size;   /* headline tracks THIS column's width */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(.8rem, 2.8cqi, 1.45rem);
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 17.5cqi, 6.2rem);
  line-height: .94;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--red-lt); display: block; }

.hero-sub {
  font-size: clamp(.98rem, 3.4cqi, 1.16rem);
  color: #cbc7c0;
  max-width: 44ch;
  text-wrap: pretty;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; width: 100%; }

.hero-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #b0aba3;
}
/* Each item carries its own leading separator, so wrapping can never strand a
   dot at the end of a line. */
.hero-proof .pi { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.hero-proof .pi + .pi::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--red-lt);
  flex: none;
  margin-right: .55em;
}
.hero-proof .stars { color: var(--red-lt); letter-spacing: .06em; font-size: .9rem; }
.hero-proof strong { color: #fff; font-weight: 700; }

/* Photo plate — shown at ~native size so it never upscales into mush */
.hero-plate {
  position: relative;
  border: 8px solid var(--cream);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  background: var(--cream);
  min-width: 0;
  transform: rotate(-1.1deg);
}
/* shown at its natural 4:3 ratio — no cover-crop, so the figcaption below it
   is never mistaken for an unfilled cell */
.hero-plate img { width: 100%; height: auto; }
.hero-plate figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .62rem .3rem .18rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--on-light-dim);
}
.hero-plate figcaption b { color: var(--red); }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-plate { display: none; }
  .hero h1 { font-size: clamp(2.5rem, 15.5cqi, 5rem); }
}
@media (max-width: 430px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
@media (max-height: 640px) {
  .hero h1 { font-size: clamp(1.85rem, 9.5cqi, 2.9rem); }
  .hero-sub { display: none; }
  .hero-copy { gap: .65rem; }
  .btn { min-height: 46px; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.svc-cat + .svc-cat { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.svc-cat-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: .85rem;
  margin-bottom: 1.4rem;
  border-bottom: 2px solid var(--ink);
}
.svc-cat-head h3 { font-size: clamp(1.35rem, 3.2vw, 1.9rem); text-transform: uppercase; }
.svc-cat-head .count {
  margin-left: auto;
  flex: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
}

.svc-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr));
  gap: .55rem;
}
.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--red);
  border-radius: var(--r);
  font-size: .97rem;
  font-weight: 500;
  line-height: 1.4;
  min-width: 0;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.svc-list li:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.svc-list li svg { width: 17px; height: 17px; flex: none; color: var(--red); margin-top: 2px; }

.svc-note {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  padding: 1.5rem 1.7rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r);
  border-left: 6px solid var(--red);
}
.svc-note h3 { font-size: 1.5rem; margin-bottom: .35rem; text-transform: uppercase; }
.svc-note p { color: var(--on-dark-dim); max-width: 56ch; font-size: .99rem; }
.svc-note .btn { flex: none; }

/* ==========================================================================
   STATS — brand red band
   ========================================================================== */
.stats { background: var(--red); color: #fff; padding-block: clamp(2.4rem, 4.5vw, 3.5rem); }
.stats::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .35; mix-blend-mode: overlay; pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 2rem 1.5rem;
}
.stat { min-width: 0; }
.stat dt {
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.02em;
}
.stat dd {
  margin: .5rem 0 0;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  line-height: 1.45;
}

/* ==========================================================================
   WORK GALLERY
   ========================================================================== */
.gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(.55rem, 1vw, .9rem);
}
/* Every tile owns a definite height via aspect-ratio and the image fills it
   absolutely — so a tile can never be stretched by a taller neighbour and
   leave the classic vertical gap under a cover-fit image. Each row is
   internally uniform (same span + same ratio), which keeps that guarantee. */
.shot {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.7rem .9rem .75rem;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 9, 8, .88), transparent);
}
/* the two lead tiles run wider and shallower, on their own uniform row */
.shot.feature { grid-column: span 6; aspect-ratio: 16 / 10; }
/* portrait source — bias the crop up so the subject survives a 4:3 cell */
.shot.crop-top img { object-position: center 32%; }

@media (max-width: 880px) {
  .shot, .shot.feature { grid-column: span 6; aspect-ratio: 4 / 3; }
  /* odd tile count leaves a lone tile in the last row at 2-up — let it run
     full width so it reads as a closing shot rather than a gap */
  .gallery .shot:last-child { grid-column: span 12; aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .shot, .shot.feature { grid-column: span 12; aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.15rem;
}
.rev {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-light);
  border-top: 5px solid var(--red);
  border-radius: var(--r);
  padding: 1.9rem 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  box-shadow: var(--shadow);
}
.rev .stars { color: var(--red); font-size: 1.02rem; letter-spacing: .1em; }
.rev blockquote { margin: 0; font-size: 1.06rem; line-height: 1.62; color: #2c2a26; }
.rev footer {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  padding-top: .3rem;
}
.rev cite {
  font-style: normal;
  font-family: 'Alfa Slab One', serif;
  font-size: 1.02rem;
  color: var(--ink);
}
.rev time { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-light-dim); }

.rev-foot {
  margin-top: 1.6rem;
  font-size: .88rem;
  color: var(--on-light-dim);
}
.rev-foot a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   SERVICE AREA
   ========================================================================== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.area-media {
  position: relative;
  border: 8px solid var(--cream);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  min-width: 0;
  transform: rotate(1deg);
}
.area-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.states {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.states li {
  font-family: 'Alfa Slab One', serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  padding: .4em .9em;
  border: 2px solid rgba(240, 239, 233, .28);
  border-radius: var(--r);
  color: var(--on-dark);
}
.states li span { color: var(--red-lt); }

.info-list { list-style: none; margin: 1.9rem 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.info-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1.2rem;
  padding: 1rem .1rem;
  border-bottom: 1px solid var(--line-dark);
  min-width: 0;
}
.info-list .k {
  flex: none; width: 120px;
  font-size: .71rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-dark-dim);
}
.info-list .v { min-width: 0; font-size: 1.03rem; color: var(--on-dark); }
.info-list .v a { border-bottom: 1px solid var(--red); }
.info-list .v a:hover { color: var(--red-lt); }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.7rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5em;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: .48em 1em;
  font-size: .73rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: #c2bcb3;
  background: rgba(255, 255, 255, .03);
}
.badge svg { width: 14px; height: 14px; flex: none; color: var(--red-lt); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-copy { flex: 1 1 400px; min-width: 0; }
.cta-copy h2 { font-size: clamp(2.05rem, 5.4vw, 3.6rem); text-transform: uppercase; margin-bottom: .7rem; }
.cta-copy p { color: var(--on-light-dim); max-width: 48ch; font-size: 1.06rem; }
/* must be allowed to shrink: with flex:none the two buttons keep their combined
   intrinsic width and blow out the page on a phone */
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; flex: 0 1 auto; min-width: 0; }
@media (max-width: 620px) {
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(3rem, 5.5vw, 4.25rem) 1.9rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 2.4rem;
  padding-bottom: 2.3rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer h3 {
  font-family: 'Barlow', sans-serif;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red-lt);
  margin-bottom: 1.05rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col li, .footer-col a { color: #b3ada5; font-size: .95rem; }
.footer-col a:hover { color: var(--red-lt); }
.footer-brand img { width: 132px; height: auto; border-radius: var(--r); margin-bottom: 1rem; }
.footer-blurb { color: var(--on-dark-dim); font-size: .94rem; max-width: 32ch; }
.footer-bot {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .8rem 1.5rem;
  padding-top: 1.7rem; font-size: .79rem; color: #797168; letter-spacing: .03em;
}
.footer-bot a:hover { color: var(--red-lt); }

/* ==========================================================================
   SCROLL REVEAL — below the fold only, and only once JS is confirmed live
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .06s; }
.js .reveal:nth-child(3) { transition-delay: .12s; }
.js .reveal:nth-child(4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-plate, .area-media { transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .shot:hover img { transform: none; }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-head { padding-block: clamp(2.75rem, 5.5vw, 4.25rem) clamp(1.75rem, 3.5vw, 2.5rem); }
.contact-head .inner { position: relative; max-width: 60ch; }
.contact-head h1 { font-size: clamp(2.35rem, 6.5vw, 4.4rem); text-transform: uppercase; margin: .85rem 0 1rem; }
.contact-head p { color: var(--on-dark-dim); font-size: 1.08rem; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
@media (max-width: 940px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.form-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-top: 6px solid var(--red);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow);
  min-width: 0;
}
.form-card h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); text-transform: uppercase; margin-bottom: .55rem; }
.form-card > p { color: var(--on-light-dim); font-size: .99rem; margin-bottom: 1.75rem; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.05rem;
}
.field { display: flex; flex-direction: column; gap: .42rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-light-dim);
}
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-light);
  border-radius: var(--r);
  padding: .8rem .9rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #9c968d; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(170, 33, 25, .16);
}

.turnstile-box { margin: 1.15rem 0 .3rem; min-height: 65px; }

#estimate-form .btn { width: 100%; margin-top: 1.15rem; }
#estimate-form .btn[disabled] {
  opacity: 1; cursor: default; transform: none;
  background: #2f6b3d; border-color: #2f6b3d; color: #eafaee;
  box-shadow: 0 3px 0 #1f4a29;
}

.form-status {
  margin-top: 1.1rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--r);
  font-size: .99rem;
  line-height: 1.55;
  border: 1px solid var(--line-light);
  background: var(--cream);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.form-status.ok  { border-color: #b6d8bf; background: #eef7f0; color: #1e4b2a; }
.form-status.err { border-color: #e5b8b1; background: #fbeeec; color: #7a2118; }
.form-status a { color: var(--red); font-weight: 700; text-decoration: underline; }
.form-fine { margin-top: 1rem; font-size: .81rem; color: var(--on-light-dim); line-height: 1.5; }

.contact-side { display: grid; gap: 1rem; min-width: 0; }
.side-card {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem;
  min-width: 0;
}
.side-card.cream { background: #fff; color: var(--on-light); border: 1px solid var(--line-light); }
.side-card h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: .95rem; }
.side-card p { font-size: .95rem; color: var(--on-dark-dim); }
.side-card.cream p { color: var(--on-light-dim); }
.side-card .big-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  letter-spacing: -.01em;
  color: #fff;
  word-break: break-word;
}
.side-card .big-link:hover { color: var(--red-lt); }
.side-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.side-card li { display: flex; gap: .65rem; align-items: baseline; font-size: .95rem; color: #bdb7ae; }
.side-card.cream li { color: var(--on-light-dim); }
.side-card li::before {
  content: ""; width: 6px; height: 6px; flex: none;
  background: var(--red-lt); transform: translateY(-2px) rotate(45deg);
}
.side-card.cream li::before { background: var(--red); }
