/* ===== Fonts =====
   ES Rebond Grotesque: trial weights supplied locally (fonts/).
   ABC Normal: not sourced yet — @font-face below is ready for it,
   but nothing loads until you drop real files in ./fonts/, so the
   stack falls through to Inter (Google Fonts) as a live stand-in,
   same as withallo.com's own fallback. */
@font-face {
  font-family: "ES Rebond Grotesque";
  src: url("fonts/ESRebondGrotesque-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ES Rebond Grotesque";
  src: url("fonts/ESRebondGrotesque-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ES Rebond Grotesque";
  src: url("fonts/ESRebondGrotesque-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ES Rebond Grotesque";
  src: url("fonts/ESRebondGrotesque-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Normal";
  src: url("fonts/ABCNormal-Regular.woff2") format("woff2"),
       url("fonts/ABCNormal-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Normal";
  src: url("fonts/ABCNormal-Medium.woff2") format("woff2"),
       url("fonts/ABCNormal-Medium.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Normal";
  src: url("fonts/ABCNormal-Bold.woff2") format("woff2"),
       url("fonts/ABCNormal-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #17181a;
  --paper: #ffffff;
  --stone: #f6f6f4;
  --line: #e6e6e3;
  --muted: #6b6b67;
  --accent: #414a44;
  --accent-dark: #2b322d;
  --radius: 2px;
  --radius-btn: 999px;
  --maxw: 1180px;
  --font-heading: "ES Rebond Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "ABC Normal", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: #0A2120;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .75rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }

p { color: var(--muted); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section[id] { scroll-margin-top: 100px; }

.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .6rem;
}
.eyebrow.center { text-align: center; }

.section { padding: 88px 0; }
.section.services, .section.blog, .section.detailed-services { background: var(--stone); }

/* ===== Placeholder media (stand-in for real photography) ===== */
.placeholder-media {
  background: repeating-linear-gradient(135deg, #d8d3c8, #d8d3c8 10px, #cfc9bc 10px, #cfc9bc 20px);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-media { min-height: 180px; margin-bottom: 20px; background-size: cover; background-position: center; background-repeat: no-repeat; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  font-size: .9rem;
  letter-spacing: .04em;
  font-weight: 600;
  border: 1px solid transparent;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .85; }
.btn-primary { background: var(--ink); color: #fff; }

.hero-actions .btn-primary {
  background: linear-gradient(180deg, #fff34d 0%, #ffd400 100%);
  color: #0A2120;
  border: none;
  box-shadow: 0 6px 16px rgba(255, 212, 0, 0.45);
  transition: box-shadow .15s ease, opacity .15s ease;
}
.hero-actions .btn-primary:hover {
  opacity: 1;
  box-shadow: 0 8px 18px rgba(255, 212, 0, 0.55);
}
.hero-actions .btn-primary:active {
  box-shadow: 0 3px 8px rgba(250, 199, 46, 0.4);
}
.btn-outline-light { border-color: var(--line); color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }

.text-link {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: .92rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent;
  transition: transform .3s ease;
  transform: translateY(0);
}
.site-header.hide { transform: translateY(-100%); }
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.header-bar {
  display: flex; align-items: center; gap: 32px;
  padding: 18px 24px;
}

.menu-circle {
  width: 52px; height: 52px; min-width: 52px; border-radius: 50%;
  background: var(--ink); border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-circle span { width: 18px; height: 2px; background: #fff; display: block; }

.logo { display: flex; align-items: center; gap: 4px; }
.logo-mark-img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.logo-text {
  font-family: var(--font-heading); font-size: 1.45rem; letter-spacing: .01em;
  font-weight: 700; white-space: nowrap; color: var(--ink);
}

/* Nav lives behind the menu-circle button — hidden until toggled, at every width */
.main-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); border-top: 1px solid var(--line);
  z-index: 40; box-shadow: 0 16px 32px rgba(0,0,0,.1);
}
.main-nav.open { display: block; }
.main-nav > ul {
  list-style: none; display: flex; flex-direction: column;
  max-width: var(--maxw); margin: 0 auto; padding: 8px 24px;
}
.main-nav > ul > li { border-bottom: 1px solid var(--line); }
.main-nav > ul > li:last-child { border-bottom: none; }
.main-nav a { display: block; padding: 16px 4px; font-size: .9rem; letter-spacing: .03em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  padding: 0 0 12px 16px;
  background: transparent; border: none;
}
.has-dropdown.open .dropdown { display: block; }
.dropdown li { border-bottom: none !important; }
.dropdown li a { padding: 8px 4px; text-transform: none; font-weight: 400; color: var(--muted); }
.dropdown li a:hover { color: var(--ink); }

.header-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.btn-pill-yellow {
  border-radius: 999px; padding: 12px 22px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .85rem;
  background: linear-gradient(180deg, #fff34d 0%, #ffd400 100%);
  color: #0A2120;
  border: none;
  box-shadow: 0 6px 16px rgba(255, 212, 0, 0.45);
  transition: box-shadow .15s ease, opacity .15s ease;
}
.btn-pill-yellow:hover { opacity: 1; box-shadow: 0 8px 18px rgba(255, 212, 0, 0.55); }

.btn-pill-green {
  border-radius: 999px; padding: 12px 22px;
  white-space: nowrap; font-size: .85rem;
  background: #0A2120;
  color: #fff;
  border: none;
}

/* ===== Hero (pinned scroll-reveal layout) ===== */
.hero-pin { position: relative; height: 680vh; }
.hero {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--stone);
}
.hero-word-bg {
  position: absolute; inset: 0;
  background: #ffffff;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-photo {
  position: absolute; inset: 0;
  background-image: url("images/hero-home.jpg?v=5");
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  transform-origin: 0% 30%;
  z-index: 1;
  will-change: transform;
}
.hero-reno-photo-b {
  position: absolute; z-index: 1;
  left: 28vw; top: 4vh;
  width: 18vw; height: 60vh;
  border-radius: 16px;
  opacity: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-reno-photo-c {
  position: absolute; z-index: 1;
  left: 12vw; top: 40vh;
  width: 26vw; height: 48vh;
  border-radius: 16px;
  opacity: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-word {
  position: absolute; inset: 0; z-index: 4;
  padding: 0 64px;
  pointer-events: none;
}
.hero-word h2 {
  position: absolute;
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.8rem, 5.2vw, 4rem);
  color: #0A2120; text-transform: uppercase;
  margin: 0;
  opacity: 0;
}
.hero-word .word-reno { top: 7%; left: 64px; }
.hero-word-cta {
  position: absolute; top: calc(7% + 78px); left: 64px;
  opacity: 0; pointer-events: auto;
  z-index: 5;
}

/* Innovation: photo, process list and word grouped in one flex layout so
   they reflow together instead of overlapping at odd viewport sizes. */
.hero-innov-group {
  position: absolute; z-index: 3;
  right: 12vw; bottom: 8vh; left: 52vw;
  display: flex; flex-direction: column; align-items: flex-end; gap: 28px;
  opacity: 0;
  transform: translateY(65vh);
  pointer-events: none;
}
.hero-innov-photo { width: 100%; min-height: 220px; border-radius: 16px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-innov-row {
  display: flex; align-items: flex-end; justify-content: flex-end;
  gap: 64px; flex-wrap: wrap;
}
.hero-innov-process {
  max-width: 220px;
  border-left: 2px solid rgba(10,33,32,.3);
  padding-left: 20px;
}
.hero-innov-process .eyebrow { color: #0A2120; margin-bottom: 8px; }
.hero-innov-process ol { list-style: none; }
.hero-innov-process li { color: var(--muted); padding: 2px 0; font-size: .85rem; }
.hero-process-cta { display: inline-flex; margin-top: 18px; }
.word-innov {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  color: #0A2120; text-transform: uppercase;
  margin: 0; white-space: nowrap;
  pointer-events: none;
}

/* Interior: crossfades from the settled group into a full-bleed photo,
   with its own "Interior" label settling top-left, like Renovation did. */
.hero-interior-expand {
  position: absolute; inset: 0; z-index: 5;
  background-image: url("images/interior.jpg");
  background-size: cover;
  background-position: center;
  transform-origin: 50% 0%;
  transform: translateY(65vh);
  opacity: 0;
  pointer-events: none;
}
.hero-interior-expand::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(10,33,32,.6) 0%, rgba(10,33,32,.25) 38%, rgba(10,33,32,0) 62%);
  pointer-events: none;
}
.hero-interior-copy {
  position: absolute; z-index: 1;
  top: 50%; right: 64px;
  transform: translateY(-50%);
  max-width: 420px;
  pointer-events: auto;
}
.hero-interior-copy .eyebrow { color: #fff; }
.hero-interior-copy h2 { color: #fff; font-weight: 700; margin-bottom: 18px; }
.hero-interior-copy p { color: rgba(255,255,255,.85); margin-bottom: 22px; }
.hero-interior-link { color: #fff; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.22) 45%, rgba(255,255,255,.02) 70%),
              linear-gradient(0deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 55%);
  opacity: var(--overlay-opacity, 1);
  z-index: 2;
  pointer-events: none;
}
.hero-copy {
  position: absolute; inset: 0 auto 0 0; width: 50%; isolation: isolate;
  padding: 160px 56px 72px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, #F9F0E1 0%, #E2C291 100%);
  color: var(--ink);
  z-index: 3;
  will-change: transform, opacity;
}
.hero-reveal {
  position: absolute; z-index: 3;
  left: 0; top: 0; max-width: 520px;
  padding: 160px 64px 64px; color: #fff;
  opacity: 0; transform: translateY(65vh);
  pointer-events: none;
  will-change: transform, opacity;
  background: radial-gradient(120% 100% at 0% 100%, rgba(10,33,32,.97) 0%, rgba(10,33,32,.85) 45%, rgba(10,33,32,0) 78%);
}
.hero-reveal h2 { color: #fff; font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 20px; }
.hero-reveal p { color: rgba(255,255,255,.8); }
.showcase-link { color: #ffd400; display: inline-block; margin-top: 20px; font-weight: 600; }

.hero-copy::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(#8fa9c2 1px, transparent 1.5px);
  background-size: 6px 6px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 42%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 42%, black 100%);
  z-index: -1;
  pointer-events: none;
}
.hero .eyebrow { color: var(--accent-dark); }
.hero-rating {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  font-size: .95rem; font-weight: 500; color: var(--ink);
}
.hero-rating-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  background: #0A2120; color: #fff;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.hero h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 600; }
.hero h1 .accent { color: #0A2120; }
.hero-sub { color: var(--muted); margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-checklist {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 12px 28px; margin-bottom: 44px;
}
.hero-checklist li {
  display: flex; align-items: center; gap: 8px;
  font-size: .92rem; color: var(--muted);
}
.hero-checklist-icon {
  color: var(--accent-dark); font-weight: 700;
}
.btn-ghost-light { background: #0A2120; border-color: #0A2120; color: #fff; }

/* ===== Split layout (latest project, founder) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ===== Services banner ===== */
/* Sticky wrapper: Services banner holds fully in place while the user
   keeps scrolling — the video only starts rising up to cover it after
   that hold, tracked below via .video-pin's negative margin-top. */
.services-pin { position: relative; height: 200vh; }
.services-banner {
  position: sticky; top: 0; height: 100vh; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.services-banner-media-stack { position: absolute; inset: 0; }
.services-banner-media {
  position: absolute; inset: 0;
  border-radius: 0;
  min-height: 0;
  opacity: 0;
  transition: opacity .5s ease;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.services-banner-media.is-active { opacity: 1; }
.services-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,33,32,.55) 0%, rgba(10,33,32,.1) 40%, rgba(10,33,32,.25) 100%);
}
.services-banner-columns {
  position: absolute; inset: 0; z-index: 1;
  display: flex; pointer-events: none;
}
.services-banner-columns span { flex: 1; border-left: 1px solid rgba(255,255,255,.35); }
.services-banner-columns span:first-child { border-left: none; }
.services-banner-content {
  position: relative; z-index: 1;
  padding: 64px 64px 0;
  max-width: 640px;
}
.services-banner-content .eyebrow { color: #fff; }
.services-banner-content h2 {
  color: #fff; font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.35; margin-top: 14px;
}
.services-banner-tabs {
  position: relative; z-index: 1;
  display: flex;
}
.services-banner-tab-col {
  flex: 1;
  display: flex; justify-content: flex-end;
}
.services-banner-tab {
  flex: none; width: 42px; height: 280px;
  background: #fff;
  padding: 20px 6px;
  display: flex; align-items: flex-end;
}
.services-banner-tab span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  color: var(--ink); font-family: var(--font-heading); font-weight: 500;
  font-size: 1.05rem; letter-spacing: .02em;
  white-space: nowrap;
}

/* ===== Showcase video =====
   Same technique as the pinned Interior photo: a tall wrapper holds a
   sticky full-viewport panel; the video itself fades in and rises up
   (translateY 65vh -> 0, eased) tied directly to scroll progress. */
.video-pin {
  position: relative; height: 200vh;
  /* Starts 100vh "early" — right where Services' own hold begins — so
     once Services has held in place for a beat, the video rises up on
     top of it via its own sticky handoff, just like Interior -> What We Do.
     200vh total (100vh sticky child + 100vh of its own hold) so Recent
     Projects, which overlaps 100vh into THIS section's flow, only starts
     rising after the video has actually held for a beat too. */
  margin-top: -100vh;
}
.showcase-video-wrap {
  position: sticky; top: 0; height: 100vh; z-index: 3;
  overflow: hidden;
}
.showcase-video {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}

/* ===== Recent Projects =====
   Same technique again: Video holds fully in place while the user keeps
   scrolling, then Recent Projects rises up on top of it. */
.projects-pin {
  position: relative; height: 100vh;
  /* Height matches the sticky child exactly (no extra "hold" scroll
     room) so the footer follows right after this section settles —
     the negative margin still overlaps it onto the video for the rise. */
  margin-top: -100vh;
}
.recent-projects {
  position: sticky; top: 0; height: 100vh; z-index: 4;
  display: flex; align-items: center;
  background: var(--paper);
  overflow: hidden;
}
.recent-projects .container { width: 100%; }
.recent-projects h2 {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: .01em;
  text-align: center;
  margin-bottom: 44px;
}
.recent-projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.recent-project-media {
  aspect-ratio: 4 / 3; min-height: 0;
  position: relative;
  display: block;
  overflow: hidden;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.recent-project-discover {
  position: absolute; top: 16px; left: 16px;
  width: 112px; height: 36px;
  background: #fff; border-radius: 999px;
  overflow: hidden;
}
.discover-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-65%, -50%);
  transition: transform .3s ease;
  font-family: var(--font-heading); font-size: .85rem; font-weight: 500;
  letter-spacing: .01em; color: var(--ink);
  white-space: nowrap;
}
.discover-arrow {
  position: absolute; top: 50%; right: 14px;
  transform: translateY(-50%);
  transition: transform .3s ease, opacity .3s ease;
}
.recent-project-discover:hover .discover-text {
  transform: translate(-50%, -50%);
}
.recent-project-discover:hover .discover-arrow {
  transform: translateY(-50%) translateX(20px);
  opacity: 0;
}
.recent-project-date {
  display: block; margin-top: 18px;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.recent-project-card h3 {
  font-size: 1.15rem; font-weight: 600; margin-top: 8px; line-height: 1.35;
}

/* ===== Capabilities (scroll words + sticky panel) ===== */
.capabilities { background: var(--ink); color: #fff; padding: 100px 0; }
.capabilities-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }

.capabilities-words { display: flex; flex-direction: column; }
.cap-word-row {
  display: flex; align-items: center; gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding: 56px 0;
}
.cap-word-row:first-child { padding-top: 0; }
.cap-word {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  color: #eddcb0; text-transform: uppercase; letter-spacing: .01em;
  margin: 0; white-space: nowrap;
}
.cap-thumb { flex: 1; min-height: 120px; }

.cap-word-row--interior { flex-direction: column; align-items: stretch; gap: 32px; }
.cap-interior-photo { width: 100%; min-height: 280px; }
.cap-interior-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; flex-wrap: wrap;
}
.cap-interior-process { border-left: 2px solid rgba(255,255,255,.3); padding-left: 20px; }
.cap-interior-process .eyebrow { color: #eddcb0; margin-bottom: 10px; }
.cap-interior-process ol { list-style: none; }
.cap-interior-process li { color: rgba(255,255,255,.85); padding: 3px 0; font-size: .95rem; }

.capabilities-sticky { position: sticky; top: 120px; }
.capabilities-sticky .eyebrow { color: #eddcb0; }
.capabilities-sticky h2 { color: #fff; }
.capabilities-sticky p { color: #cfc9bd; margin: 16px 0 20px; }
.capabilities-sticky .text-link { color: #eddcb0; }

.founder-photo { min-height: 420px; }

/* ===== What We Do ===== */
.what-we-do {
  position: relative; z-index: 2;
  background: var(--paper); padding: 90px 0;
  margin-top: -40px;
  will-change: transform;
}
.what-we-do-grid {
  display: grid; grid-template-columns: .9fr 1.4fr; gap: 56px; align-items: center;
}
.what-we-do-copy {
  border-left: 1px solid var(--line); padding-left: 40px;
}
.what-we-do-copy p:not(.eyebrow) { font-size: 1.15rem; color: var(--ink); line-height: 1.5; }
.what-we-do-photos { overflow: hidden; }
.what-we-do-track { display: flex; gap: 24px; }
.what-we-do-photo {
  flex: 0 0 calc(50% - 12px);
  aspect-ratio: 16 / 10; min-height: 0; max-height: 220px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* ===== Grids ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }

.service-card, .blog-card { background: #fff; padding: 20px; border: 1px solid var(--line); }
.service-card { padding: 36px 30px; border-top: 3px solid #0A2120; }
.blog-date { font-size: .78rem; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }

/* ===== Process ===== */
.process-steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 48px;
}
.process-steps li { border-top: 2px solid var(--accent); padding-top: 18px; }
.step-num { font-family: var(--font-heading); font-size: 1.6rem; color: var(--accent); }

/* ===== Detailed services ===== */
.detail-row {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.detail-row.reverse { direction: rtl; }
.detail-row.reverse > * { direction: ltr; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid .placeholder-media {
  min-height: 240px; aspect-ratio: 4 / 3;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* ===== CTA band ===== */
.cta-band { background: var(--stone); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band p { color: var(--muted); margin: 12px 0 28px; }

/* ===== Footer ===== */
.site-footer { background: #001F1D; color: #b3b3b3; }

.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  padding: 64px 24px 40px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-brand { max-width: 620px; }
.logo-big { gap: 14px; }
.logo-big .logo-mark-img { width: 48px; height: 48px; }
.logo-text-big {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; letter-spacing: 0;
}
.logo-text-big em { font-style: italic; font-weight: 400; }
.footer-tagline { color: #b3b3b3; margin-top: 16px; font-size: 14px; line-height: 1.55; }

.social-icons { display: flex; gap: 12px; flex-shrink: 0; }
.social-icons a {
  display: flex; align-items: center; justify-content: center; color: #fff;
  opacity: .78; transition: opacity .15s ease;
}
.social-icons a:hover { opacity: 1; }
.social-icons a svg { width: 26px; height: 26px; }
.social-icons a.icon-houzz { font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; }

.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding: 48px 24px 40px;
}
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px;
  color: #b3b3b3;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #fff; font-size: 14px; transition: color .15s ease; }
.footer-col a:hover { color: #b3b3b3; }

.footer-bottom { padding: 20px 24px; font-size: 14px; color: #b3b3b3; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ===== Subpage hero (e.g. Renovation) — solid dark banner, no photo ===== */
.page-hero {
  position: relative;
  background: #0A2120;
  padding: 200px 0 96px;
  overflow: hidden;
}
.page-hero-content { position: relative; z-index: 1; max-width: 760px; }
.page-hero .eyebrow { color: #b3b3b3; }
.page-hero-content h1 { color: #fff; }
.page-hero-sub { color: #b3b3b3; margin: 20px 0 32px; font-size: 1.1rem; max-width: 580px; }
.page-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-outline-white { border-color: #fff; color: #fff; }

/* Header sits transparently over the dark hero on subpages like Renovation —
   swap the logo/quote-button to light so they stay readable over dark green,
   then back to the normal dark styling once scrolled past it onto light sections. */
.dark-hero-page .logo-text { color: #fff; }
.dark-hero-page .btn-pill-green { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; }
.dark-hero-page .site-header.scrolled .logo-text { color: var(--ink); }
.dark-hero-page .site-header.scrolled .btn-pill-green { background: #0A2120; border-color: #0A2120; color: #fff; }
.dark-hero-page .menu-circle { background: #fff; }
.dark-hero-page .menu-circle span { background: var(--ink); }
.dark-hero-page .site-header.scrolled .menu-circle { background: var(--ink); }
.dark-hero-page .site-header.scrolled .menu-circle span { background: #fff; }

/* ===== Generic section heading ===== */
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 44px; }

/* ===== Renovation intro: photo collage + stat + copy ===== */
.reno-intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.reno-intro-collage { position: relative; min-height: 460px; }
.reno-intro-photo-main {
  position: absolute; top: 0; right: 0;
  width: 78%; height: 340px;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
}
.reno-intro-photo-sub {
  position: absolute; left: 0; bottom: 0;
  width: 58%; height: 220px;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
  border: 6px solid var(--paper);
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
}
.reno-intro-stat {
  position: absolute; left: 0; top: 20px;
  background: #0A2120; color: #fff;
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.reno-intro-stat-num {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 2.4rem; line-height: 1;
}
.reno-intro-stat-label {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #b3b3b3;
}
.reno-intro-copy h2 { margin-bottom: 20px; }
.reno-intro-copy p { font-size: 1.05rem; line-height: 1.6; margin-bottom: 28px; }

/* ===== Big statement paragraph ("What We Do") ===== */
.reno-statement-text {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.4; color: var(--ink);
  max-width: 980px; margin: 0 auto;
}
.reno-statement-text .accent-text { color: #0A2120; font-weight: 600; }

/* ===== Numbered service cards ===== */
.service-card { position: relative; transition: border-color .15s ease; }
.service-card:hover { border-top-color: var(--accent); }
.service-num {
  display: block;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 2.8rem; line-height: 1;
  color: var(--line);
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; }

/* ===== Stats band ===== */
.reno-stats { background: #0A2120; padding: 80px 0; }
.reno-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.reno-stat-num {
  display: block;
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  color: #fff; line-height: 1;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 16px; margin-bottom: 16px;
}
.reno-stat-label { display: block; font-weight: 600; color: #fff; margin-bottom: 8px; }
.reno-stat p { color: #b3b3b3; font-size: .92rem; }

/* ===== FAQ accordion ===== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-size: 1.1rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex-shrink: 0; font-size: 1.4rem; color: var(--accent); transition: transform .2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { margin-top: 16px; max-width: 780px; }

/* ===== Quote page ===== */
.quote-header .logo-mark-img { width: 26px; height: 26px; }
.quote-header .logo-text { font-size: 1.05rem; }
.quote-hero-section { padding: 120px 0 60px; }
.quote-hero-section .container { padding: 0 140px; }
.quote-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start;
}
.quote-intro { border-right: 1px solid var(--line); padding-right: 56px; }
.quote-intro h1 { font-size: 32px; line-height: 32px; font-weight: 600; max-width: 620px; margin: 0 0 20px; color: var(--ink); }
.quote-checklist { list-style: none; margin-bottom: 28px; }
.quote-checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px; font-size: 16px; line-height: 20px; color: var(--ink);
}
.quote-checklist-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--ink);
}
.quote-checklist-icon svg { width: 100%; height: 100%; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-family: var(--font-heading); font-size: .88rem; font-weight: 700;
  color: var(--ink); margin-bottom: 6px;
}
.required-mark { color: #d92d20; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid #d8d8d4; border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #9a9a94; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #0A2120;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.quote-submit {
  width: 100%; justify-content: center; padding: 15px; font-size: 1rem; border: none; cursor: pointer;
  border-radius: 10px; background: #028F63; color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.form-note { font-size: .8rem; color: var(--muted); margin-top: 16px; }

.quote-side-heading { font-weight: 600; font-size: 1.1rem; margin-bottom: 20px; }
.quote-side-card {
  display: block;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; margin-bottom: 24px;
  transition: border-color .15s ease;
}
.quote-side-card:hover { border-color: #0A2120; }
.quote-side-card-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.quote-side-card-head h3 { margin: 0; font-size: 1.1rem; }
.quote-side-arrow { font-size: 1.2rem; color: var(--muted); }
.quote-side-card p { font-size: .9rem; margin-bottom: 20px; }
.quote-phone-block {
  display: flex; align-items: center; justify-content: center;
  height: 160px; border-radius: 8px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0A2120 0%, #143a36 100%);
  color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem;
}
.quote-phone-block::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 40px);
}
.quote-phone-block span { position: relative; }
.quote-side-preview {
  display: block; height: 160px; border-radius: 8px;
  background-size: cover; background-position: center;
}

.form-success { display: none; text-align: left; padding: 20px 0; }
.form-success.is-visible { display: block; }
.form-success .check-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #0A2120; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 24px;
}
.form-success p { max-width: 440px; margin: 12px 0 28px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .split, .detail-row { grid-template-columns: 1fr; }
  .split.reverse, .detail-row.reverse { direction: ltr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .what-we-do-grid { grid-template-columns: 1fr; gap: 32px; }
  .what-we-do-copy { border-left: none; padding-left: 0; }
  .reno-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .reno-intro-collage { min-height: 380px; }
  .reno-stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .quote-intro { border-right: none; padding-right: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quote-hero-section { padding: 140px 0 64px; }
  .quote-hero-section .container { padding: 0 24px; }
}

@media (max-width: 960px) {
  /* Scroll-pin reveal is a desktop trick — stack normally on smaller screens */
  .hero-pin { height: auto; }
  .hero { position: static; height: auto; overflow: visible; display: block; }
  .hero-photo { position: relative; inset: auto; min-height: 340px; }
  .hero-reno-photo-b, .hero-reno-photo-c { display: none; }
  .hero-copy {
    position: static; width: 100%; inset: auto;
    transform: none !important; opacity: 1 !important;
    padding: 48px 28px;
  }
  .hero-reveal {
    position: static; max-width: 100%;
    opacity: 1 !important; transform: none !important;
    padding: 40px 28px; background: var(--ink);
  }
  .hero-word-bg { display: none; }
  .hero-word {
    position: static; padding: 32px 28px; background: #ffffff;
  }
  .hero-word h2 {
    position: static; opacity: 1 !important; transform: none !important;
  }
  .hero-word-cta {
    position: static; opacity: 1 !important; margin-top: 16px;
  }
  .hero-innov-group {
    position: static; opacity: 1 !important; transform: none !important;
    pointer-events: auto !important;
    align-items: stretch; padding: 0 28px 32px; gap: 20px;
  }
  .hero-innov-photo { min-height: 200px; }
  .hero-innov-row { justify-content: space-between; align-items: flex-start; }
  .hero-innov-process { max-width: 60%; }
  .hero-interior-expand { display: none; }
  .what-we-do { margin-top: 0; transform: none !important; }
  .services-pin { height: auto; margin-top: 0; }
  .services-banner { position: static; height: auto; min-height: 520px; }
  .video-pin { height: auto; margin-top: 0; }
  .showcase-video-wrap { position: static; height: 360px; }
  .showcase-video { opacity: 1 !important; transform: none !important; }
  .projects-pin { height: auto; margin-top: 0; }
  .recent-projects { position: static; height: auto; padding: 56px 0; }
  .recent-projects-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-banner-content { padding: 48px 28px 32px; }
  .services-banner-columns { display: none; }
  .services-banner-tabs { flex-wrap: wrap; }
  .services-banner-tab-col { flex: 1 1 50%; padding-left: 0; }
  .services-banner-tab {
    flex: none; width: auto; height: auto; padding: 12px;
  }
  .services-banner-tab span {
    writing-mode: horizontal-tb; transform: none;
    white-space: normal;
  }
  .capabilities-grid { grid-template-columns: 1fr; gap: 48px; }
  .capabilities-sticky { position: static; transform: none !important; }
  .cap-word-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cap-thumb { width: 100%; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 84px; }
  .header-bar { flex-wrap: nowrap; padding: 12px 16px; gap: 8px; }
  .logo-mark-img { width: 30px; height: 30px; }
  .logo-text { font-size: .95rem; }
  .header-right { flex-wrap: nowrap; width: auto; order: 0; gap: 8px; }
  .btn-pill-green { display: none; }
  .btn-pill-yellow { padding: 9px 12px; font-size: .78rem; white-space: nowrap; }
  .phone-num { display: none; }
  .menu-circle { width: 40px; height: 40px; min-width: 40px; gap: 3px; }
  .menu-circle span { width: 15px; }
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 48px 24px 24px; }
  .page-hero { padding: 120px 0 56px; }
}

/* ===== Floating chat bubble ===== */
.chat-bubble {
  position: fixed; bottom: 28px; right: 28px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); border: none; color: #fff;
  font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
