/* ============================================================
   Taunton Roofing Company — Somerset Craft art direction
   Self-hosted fonts, vanilla motion, static.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f7f6f2;
  --paper-2: #efece4;
  --ink: #223a4c;
  --slate: #2e4a5f;
  --slate-deep: #1b2e3b;
  --clay: #b3541e;
  --clay-soft: #c46a34;
  --wa: #1f7a4d;
  --wa-dark: #18613d;
  --line: rgba(46, 74, 95, 0.16);
  --line-strong: rgba(46, 74, 95, 0.30);
  --muted: #5c6b74;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Satoshi', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 6px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: 1.18rem; }
p { color: var(--slate); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.5; color: var(--slate); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--clay);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--clay); display: inline-block; }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(3rem, 6vw, 4.75rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.grid { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.92rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:active { transform: scale(0.97); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(31, 122, 77, 0.28); }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); }
.btn-call { background: var(--clay); color: #fff; box-shadow: 0 10px 26px rgba(179, 84, 30, 0.26); }
.btn-call:hover { background: var(--clay-soft); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ondark { border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }
.btn-ondark:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.85rem; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px; border-radius: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding-block: 0.9rem;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header .logo { height: 40px; width: auto; transition: opacity 0.3s; }
.logo-light { display: none; }
.site-header.over-hero { background: transparent; }
.site-header.over-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(20,33,43,0.6), rgba(20,33,43,0)); pointer-events: none; }
.site-header.over-hero .logo-dark { display: none; }
.site-header.over-hero .logo-light { display: block; }
.site-header.over-hero .nav-links a { color: rgba(255,255,255,0.9); }
.site-header.over-hero .nav-links a:hover { color: #fff; }
.site-header.over-hero .menu-toggle span { background: #fff; }
.site-header.scrolled:not(.over-hero) {
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(27, 46, 59, 0.06);
  padding-block: 0.55rem;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { font-size: 0.94rem; font-weight: 500; color: var(--slate); transition: color 0.25s; position: relative; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-4px; height:1.5px; width:0; background: var(--clay); transition: width 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 0.7rem; }
.header-phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.site-header.over-hero .header-phone { color: #fff; }
.header-phone svg { width: 1.05em; height: 1.05em; color: var(--clay); }
.site-header.over-hero .header-phone svg { color: var(--clay-soft); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.25s; }
.menu-toggle span:nth-child(1){ top: 15px; } .menu-toggle span:nth-child(2){ top: 21px; } .menu-toggle span:nth-child(3){ top: 27px; }
body.menu-open .menu-toggle span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2){ opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 55; background: var(--slate-deep);
  padding: 6rem var(--gutter) 2rem; display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform 0.5s var(--ease); visibility: hidden;
}
body.menu-open .mobile-nav { transform: translateY(0); visibility: visible; }
.mobile-nav a { color: var(--paper); font-family: var(--serif); font-size: 1.7rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-nav .m-cta { margin-top: auto; display: grid; gap: 0.7rem; grid-template-columns: 1fr 1fr; padding-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(80svh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.08); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(20,33,43,0.92) 0%, rgba(20,33,43,0.35) 45%, rgba(20,33,43,0.28) 100%),
    linear-gradient(to right, rgba(20,33,43,0.55), rgba(20,33,43,0.05));
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(3rem, 5vw, 4.5rem); padding-top: 7rem; width: 100%; }
.hero-tag { color: var(--clay-soft); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.7rem); margin-top: 1.1rem; }
.hero .lead { color: rgba(255,255,255,0.86); max-width: 46ch; margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-note { margin-top: 1.3rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 0.5rem; }
.hero-note svg { width: 1.1em; height: 1.1em; color: var(--wa); }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 2rem; z-index: 2; writing-mode: vertical-rl; font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 1rem; }
.scroll-hint::after { content:""; width: 1px; height: 46px; background: rgba(255,255,255,0.5); animation: scrollpulse 2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100%{ transform: scaleY(0.3); opacity:0.3;} 50%{ transform: scaleY(1); opacity:1;} }

/* Kinetic line reveal */
.reveal-lines .line { display: block; overflow: hidden; }
.reveal-lines .line > span { display: block; white-space: nowrap; transform: translateY(115%); transition: transform 0.9s var(--ease); }
.reveal-lines.in .line > span { transform: translateY(0); }
.reveal-lines.in .line:nth-child(2) > span { transition-delay: 0.09s; }
.reveal-lines.in .line:nth-child(3) > span { transition-delay: 0.18s; }
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }
[data-delay="1"]{ transition-delay: 0.08s; } [data-delay="2"]{ transition-delay: 0.16s; }
[data-delay="3"]{ transition-delay: 0.24s; } [data-delay="4"]{ transition-delay: 0.32s; }

/* ---------- Trust badges ---------- */
.badges { background: #fff; border-block: 1px solid var(--line); }
.badges .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.badge { display: flex; align-items: center; gap: 0.9rem; padding: 1.5rem 1.2rem; border-left: 1px solid var(--line); }
.badge:first-child { border-left: none; }
.badge .ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); color: var(--clay); }
.badge .ico svg { width: 22px; height: 22px; }
.badge b { display: block; font-size: 0.98rem; color: var(--ink); line-height: 1.2; }
.badge span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Intro / manifesto ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.narrow { grid-template-columns: 0.9fr 1.1fr; }
.chapters { counter-reset: ch; margin-top: 2.5rem; }
.chapter { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.chapter::before { counter-increment: ch; content: "0" counter(ch); font-family: var(--serif); font-size: 1.1rem; color: var(--clay); font-weight: 600; }
.chapter h4 { margin-bottom: 0.4rem; }
.chapter p { font-size: 0.98rem; }

/* Framed photo */
.framed { position: relative; }
.framed img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.framed.clip img { clip-path: inset(0 0 0 0); }
.clip-reveal img { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.clip-reveal.in img { clip-path: inset(0 0 0 0); }
.framed .tagpill { position: absolute; left: -12px; bottom: 24px; background: var(--clay); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.55rem 1rem; border-radius: 4px; box-shadow: 0 10px 30px rgba(179,84,30,0.3); }

/* ---------- Services grid ---------- */
.services { background: var(--paper-2); }
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.svc-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--slate-deep); color: #fff; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem; grid-column: span 3;
  transition: transform 0.5s var(--ease);
}
.svc-card.big { grid-column: span 6; min-height: 340px; }
.svc-card .svc-img { position: absolute; inset: 0; z-index: 0; }
.svc-card .svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); filter: brightness(0.62); }
.svc-card::after { content:""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(20,33,43,0.9), rgba(20,33,43,0.1)); }
.svc-card > * { position: relative; z-index: 2; }
.svc-card:hover .svc-img img { transform: scale(1.07); }
.svc-card:hover { transform: translateY(-4px); }
.svc-card h3 { color: #fff; }
.svc-card p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin-top: 0.5rem; max-width: 42ch; }
.svc-card .svc-link { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.9rem; color: var(--clay-soft); }
.svc-card .svc-link svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.svc-card:hover .svc-link svg { transform: translateX(5px); }
.svc-num { position: absolute; top: 1.2rem; right: 1.4rem; z-index: 2; font-family: var(--serif); font-size: 0.9rem; color: rgba(255,255,255,0.5); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding-block: 1.4rem; border-block: 1px solid rgba(255,255,255,0.08); }
.marquee-track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2.2rem); display: inline-flex; align-items: center; gap: 3rem; color: rgba(247,246,242,0.92); }
.marquee span::after { content: "✦"; color: var(--clay-soft); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Projects gallery ---------- */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.gallery-scroll { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 2.4rem; padding-bottom: 1.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; }
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-scroll.dragging * { pointer-events: none; }
.project { flex: 0 0 clamp(260px, 60vw, 420px); scroll-snap-align: start; }
.project .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.project .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.project:hover .ph img { transform: scale(1.06); }
.project .meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; align-items: baseline; }
.project .meta b { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.project .meta span { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.gallery-progress { height: 2px; background: var(--line); margin-top: 0.5rem; position: relative; }
.gallery-progress i { position: absolute; left: 0; top: 0; height: 100%; background: var(--clay); width: 20%; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--slate-deep); color: #fff; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background-image: url('/assets/img/grain.svg'); opacity: 0.5; pointer-events:none; }
.cta-band .wrap { position: relative; z-index: 1; text-align: center; display: grid; place-items: center; gap: 1.4rem; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------- Guide price tables ---------- */
.price-wrap { margin-top: 2rem; overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.price-table caption { text-align: left; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.8rem; letter-spacing: 0.04em; }
.price-table th { text-align: left; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 0 0 0.8rem; border-bottom: 2px solid var(--line-strong); }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td { padding: 0.95rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td:first-child { font-weight: 500; color: var(--ink); padding-right: 1.5rem; }
.price-table .price { font-family: var(--serif); font-weight: 600; color: var(--clay); white-space: nowrap; font-size: 1.05rem; }
.price-note { font-size: 0.86rem; color: var(--muted); margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; position: relative; font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--ink); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background:
  linear-gradient(var(--clay),var(--clay)) center/16px 2px no-repeat,
  linear-gradient(var(--clay),var(--clay)) center/2px 16px no-repeat;
  transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .answer { padding: 0 3rem 1.5rem 0; }
.faq .answer p { color: var(--slate); }
.faq .answer p + p { margin-top: 0.8rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; counter-reset: st; }
.step { padding: 1.8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.step::before { counter-increment: st; content: counter(st); position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--serif); font-size: 2.4rem; color: var(--paper-2); font-weight: 600; }
.step .ico { width: 52px; height: 52px; color: var(--clay); margin-bottom: 1.1rem; background: var(--paper-2); }
.step .ico svg { width: 26px; height: 26px; }
.step h4 { margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; }

/* ---------- Areas list ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.areas li a, .areas li span { display: inline-block; padding: 0.5rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.9rem; color: var(--slate); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.areas li a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Callout / disclaimer ---------- */
.callout { border-left: 3px solid var(--clay); background: #fff; padding: 1.3rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 1.6rem; }
.callout.warn { border-color: var(--wa); }
.callout p { font-size: 0.96rem; }
.callout b { display:block; margin-bottom: 0.2rem; }

/* ---------- Quote form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem; padding: 0.85rem 1rem; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(179,84,30,0.12); outline: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }

/* Contact aside */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact-card { background: var(--slate-deep); color: #fff; border-radius: var(--radius); padding: 2rem; }
.contact-card h3 { color: #fff; }
.contact-row { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ico { flex:none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: var(--clay-soft); }
.contact-row a, .contact-row span { color: #fff; }
.contact-row small { display:block; color: rgba(255,255,255,0.6); font-size: 0.8rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: rgba(247,246,242,0.75); padding-top: clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.site-footer::before { content:""; position:absolute; inset:0; background-image:url('/assets/img/grain.svg'); opacity:0.4; pointer-events:none; }
.site-footer .wrap { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .logo { height: 46px; margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(247,246,242,0.7); max-width: 40ch; font-size: 0.95rem; }
.footer-col h5 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay-soft); margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(247,246,242,0.78); font-size: 0.95rem; transition: color 0.25s; }
.footer-col a:hover { color: #fff; }
.footer-contact b { color: #fff; font-size: 1.3rem; font-family: var(--serif); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.8rem; font-size: 0.84rem; color: rgba(247,246,242,0.55); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; grid-template-columns: 1fr 1fr; box-shadow: 0 -6px 24px rgba(20,33,43,0.18); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem; font-weight: 700; color: #fff; font-size: 0.98rem; }
.mobile-bar a svg { width: 1.2em; height: 1.2em; }
.mobile-bar .mb-call { background: var(--slate); }
.mobile-bar .mb-wa { background: var(--wa); }

/* ---------- Floating WhatsApp ---------- */
.fab-wa { position: fixed; right: 1rem; bottom: 1.3rem; z-index: 65; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(31,122,77,0.4); transition: transform 0.35s var(--ease); }
.fab-wa:hover { transform: scale(1.1); }
.fab-wa svg { width: 28px; height: 28px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; color: #fff; padding-top: clamp(4.5rem, 8vw, 6.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); overflow: hidden; background: var(--slate-deep); }
.page-hero .ph-media { position: absolute; inset: 0; z-index: 0; }
.page-hero .ph-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content:""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(20,33,43,0.92), rgba(20,33,43,0.55)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 20ch; margin-top: 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.85); max-width: 54ch; margin-top: 1.2rem; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.6); display: flex; gap: 0.5rem; }
.breadcrumb a:hover { color: #fff; }
.page-hero .hero-cta { margin-top: 1.8rem; }

/* prose */
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.6rem; }
.prose p { margin-bottom: 1rem; max-width: 68ch; }
.prose ul.ticks { margin: 1rem 0; max-width: 64ch; }
.prose ul.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; color: var(--slate); }
.prose ul.ticks li::before { content:""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 8px; border-left: 2px solid var(--clay); border-bottom: 2px solid var(--clay); transform: rotate(-45deg); }

/* generic two-col content */
.aside-sticky { position: sticky; top: 100px; }
.mini-quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 12px 40px rgba(27,46,59,0.07); }
.mini-quote h3 { font-size: 1.4rem; }
.mini-quote .btn { width: 100%; justify-content: center; margin-top: 0.7rem; }
.mini-quote .phone-big { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); font-weight: 600; display: block; margin: 0.4rem 0 1rem; }

/* ---------- Reveal defaults for cards ---------- */
.svc-card, .step, .chapter, .project, .badge { }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card, .svc-card.big { grid-column: span 1; }
  .svc-card.big { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .header-cta .header-phone, .header-cta .btn-outline { display: none; }
  .menu-toggle { display: block; }
  .split, .split.narrow, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .badges .wrap { grid-template-columns: 1fr 1fr; }
  .badge:nth-child(3) { border-left: none; }
  .badge { border-top: 1px solid var(--line); }
  .badge:nth-child(1), .badge:nth-child(2) { border-top: none; }
  .prose-cols { display: block; }
  .reveal-lines .line { overflow: visible; }
  .reveal-lines .line > span { white-space: normal; }
  .aside-sticky { position: static; margin-top: 2rem; }
  .mobile-bar { display: grid; }
  .fab-wa { bottom: 4.6rem; }
  body { padding-bottom: 3.4rem; }
  .footer-top { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
@media (max-width: 520px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card.big { grid-column: span 1; }
  .badges .wrap { grid-template-columns: 1fr; }
  .badge { border-left: none; }
  .mobile-nav .m-cta { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal-lines .line > span { transform: none !important; }
  .fade-up { opacity: 1 !important; transform: none !important; }
  .clip-reveal img { clip-path: inset(0 0 0 0) !important; }
  .hero-media img { transform: none; }
  .marquee-track { animation: none; }
}

/* --- services dropdown + gallery (added) --- */
.has-sub{position:relative;display:inline-flex}
.has-sub>a{display:inline-flex;align-items:center;gap:6px}
.has-sub .caret{width:10px;height:7px;opacity:.6}
.has-sub .sub{position:absolute;top:calc(100% + 10px);left:-8px;min-width:240px;background:#fff;border-radius:14px;box-shadow:0 18px 44px rgba(15,23,42,.16);padding:8px;opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s ease;z-index:60}
.has-sub:hover .sub,.has-sub:focus-within .sub{opacity:1;visibility:visible;transform:none}
.has-sub .sub a{display:block;padding:10px 14px;border-radius:9px;white-space:nowrap;font-weight:600}
.has-sub .sub a:hover{background:#f5f2ec;color:#8a3d10}
.site-header.over-hero .has-sub .sub a{color:#223a4c}
.gallery-masonry{columns:280px 3;column-gap:16px;margin-top:2.2rem}
.gallery-masonry figure{break-inside:avoid;margin:0 0 16px}
.gallery-masonry img{width:100%;display:block;border-radius:14px;box-shadow:0 6px 20px rgba(15,23,42,.10)}
.gallery-masonry figcaption{font-size:.82rem;color:#6b7280;margin-top:.45rem}
