/* =========================================================
   TB Construction — Stylesheet
   Fonts: Cormorant Garamond (display) + Montserrat (body)
   ========================================================= */

:root {
  --ink: #15171a;          /* near-black */
  --charcoal: #22252a;     /* dark section background */
  --stone: #f5f2ed;        /* warm off-white */
  --stone-deep: #ece7df;   /* alternate light section */
  --sand: #e3ddd2;         /* subtle dividers */
  --mist: #ffffff;
  --gold: #ab9b7f;         /* TB Construction brand tan (from brand guideline) */
  --gold-dark: #8a7b61;
  --text: #2b2e33;
  --muted: #6d7078;
  --muted-light: #b9bcc3;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

p { margin: 0 0 1.2em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }
.section-pad-bottom { padding-bottom: 0; }

.section-dark { background: var(--charcoal); color: #d8d9dd; }
.section-dark h2, .section-dark h3 { color: var(--mist); }
.section-dark .section-sub { color: var(--muted-light); }
.section-stone { background: var(--stone-deep); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-sub { font-size: 1.15rem; color: var(--muted); margin: 0; }

.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1em;
}
.eyebrow-gold { color: var(--gold); }

.text-link {
  display: inline-block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.text-link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: #bfb094; border-color: #bfb094; }
.btn-dark { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.btn-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--mist); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(21, 23, 26, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
/* The logo shrinks slightly once the header goes solid. The transition runs on
   the same curve and duration as the header padding so both move together. */
.brand img { height: 40px; width: auto; display: block; transition: height .4s var(--ease); }
.site-header.scrolled .brand img { height: 34px; }

/* ---------- Social icon links ---------- */
.social-links { display: flex; align-items: center; gap: 8px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: var(--mist);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.social-links svg { width: 18px; height: 18px; display: block; }
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.social-links-lg { margin-top: 28px; }
.social-links-lg a {
  width: auto; height: auto;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  border-color: var(--sand);
  color: var(--ink);
  font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.social-links-lg a:hover { background: var(--ink); border-color: var(--ink); color: var(--mist); }
.site-footer .social-links { margin-top: 24px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a:not(.btn) {
  font-size: .78rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255,255,255,.85);
  position: relative;
  transition: color .3s var(--ease);
}
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s var(--ease);
}
.site-nav > a:not(.btn):hover { color: var(--mist); }
.site-nav > a:not(.btn):hover::after { width: 100%; }
.site-nav > .nav-phone { display: none; font-weight: 500; color: var(--mist); letter-spacing: .06em; }
.nav-cta { padding: 12px 22px; white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 26px; height: 1.5px; margin: 0 auto;
  background: var(--mist); transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--mist);
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute; inset: 0;
  background:
    url("../images/hero.webp") center / cover no-repeat,
    linear-gradient(135deg, #2c2f35 0%, #15171a 60%, #0d0e10 100%);
  transform: scale(1.04);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,11,13,.55) 0%, rgba(10,11,13,.35) 50%, rgba(10,11,13,.2) 100%),
    linear-gradient(to top, rgba(10,11,13,.75) 0%, rgba(10,11,13,0) 40%),
    linear-gradient(to bottom, rgba(10,11,13,.45) 0%, rgba(10,11,13,0) 30%);
}
.hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  padding-top: 120px; padding-bottom: 120px;
}
.hero-inner .eyebrow { color: rgba(255,255,255,.92); margin-bottom: 1.6em; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero h1 {
  /* Matches the logo wordmark: Montserrat 600 */
  font-family: var(--font-body);
  color: var(--mist);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.05;
  margin: 0 0 .3em;
}
.hero-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  color: rgba(255,255,255,.9);
  letter-spacing: .02em;
  margin: 0 0 2em;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 32px; z-index: 1;
  width: 1px; height: 56px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.25);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ---------- Trust bar (sits directly under the hero) ----------
   Four equal cells, each centred, figure stacked above its label, so the
   dividers and text line up regardless of how long each label is. */
.trust-bar { background: var(--ink); color: var(--mist); border-top: 1px solid rgba(255,255,255,.08); }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.trust-item {
  padding: 34px 24px 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.trust-item:last-child { border-right: 0; }
.trust-item strong {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 500; line-height: 1;
  color: var(--gold);
}
.trust-item span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); line-height: 1.5; }

/* ---------- Intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.intro-text h2 { max-width: 18ch; }
.intro-text p { color: var(--muted); max-width: 56ch; }
.intro-text .text-link { margin-top: .5em; }
.intro-media {
  aspect-ratio: 4 / 5;
  background-color: #d9d2c6;
  background-image: url("../images/about.jpg"), linear-gradient(160deg, #d3cbbd, #b5ac9c);
  background-size: cover; background-position: center;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service-tile {
  display: flex; flex-direction: column;
  background: #2a2d33;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.service-tile:hover { transform: translateY(-6px); border-color: rgba(184,151,90,.5); }
.service-media {
  aspect-ratio: 16 / 10;
  background-color: #34373e;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.service-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(21,23,26,.45), transparent 60%);
  transition: opacity .5s var(--ease);
}
.service-tile:hover .service-media::after { opacity: .2; }
.service-media-renovations { background-image: url("../images/service-renovations.jpg"), linear-gradient(160deg, #40434a, #26282d); }
.service-media-extensions  { background-image: url("../images/service-extensions.jpg"),  linear-gradient(160deg, #3c4047, #25272c); }
.service-media-granny      { background-image: url("../images/service-granny-flats.jpg"), linear-gradient(160deg, #43443f, #27282a); }
.service-media-homes       { background-image: url("../images/service-custom-homes.webp"), linear-gradient(160deg, #3a3d44, #24262b); }
.service-media-rebuild     { background-image: url("../images/service-rebuilds.webp"),     linear-gradient(160deg, #3e3f42, #252628); }
.service-media-joinery     { background-image: url("../images/service-joinery.jpg"),      linear-gradient(160deg, #46423b, #28262a); }
.service-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.service-index {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--gold);
  letter-spacing: .1em; margin-bottom: 12px;
}
.service-body h3 { margin-bottom: .55em; font-size: 1.55rem; }
.service-body p { color: var(--muted-light); font-size: .95rem; flex: 1; }
.service-body .text-link { color: var(--gold); align-self: flex-start; }
.service-tile:hover .text-link { color: var(--mist); }

.services-cta {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.services-cta p { margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--mist); }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--sand);
  border-left: 1px solid var(--sand);
}
.why-item {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  background: var(--stone);
  transition: background .4s var(--ease);
}
.why-item:hover { background: var(--mist); }
.why-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem; color: var(--gold);
  margin-bottom: 22px;
}
.why-item h3 { font-size: 1.5rem; margin-bottom: .55em; }
.why-item p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Process ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--sand);
}
.process-step {
  padding: 40px 28px 40px 0;
  border-right: 1px solid var(--sand);
  margin-right: 28px;
  position: relative;
}
.process-step:last-child { border-right: 0; margin-right: 0; }
.step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 400; line-height: 1;
  color: var(--gold); margin-bottom: 22px;
}
.process-step h3 { font-size: 1.4rem; margin-bottom: .6em; }
.process-step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 30vw;
  gap: 8px;
  padding: 0 8px 8px;
}
/* Each tile is a link to its case-study page */
.project { position: relative; display: block; overflow: hidden; background: var(--sand); color: var(--mist); }
.project-1 { grid-column: span 7; }
.project-2 { grid-column: span 5; }
.project-3 { grid-column: span 5; }
.project-4 { grid-column: span 7; }
.project-media {
  position: absolute; inset: 0;
  background-color: #d9d2c6;
  background-size: cover; background-position: center;
  transition: transform 1.2s var(--ease);
}
.project-1 .project-media { background-image: url("../images/project-1.webp"), linear-gradient(145deg, #cfc6b7, #b7ae9f); }
.project-2 .project-media { background-image: url("../images/project-2.webp"), linear-gradient(145deg, #c5bdb0, #a39a8b); }
.project-3 .project-media { background-image: url("../images/project-3.jpg"), linear-gradient(145deg, #d6cfc2, #bcb3a3); }
.project-4 .project-media { background-image: url("../images/project-4.jpg"), linear-gradient(145deg, #cbc3b5, #ada48f); }
.project:hover .project-media, .project:focus-visible .project-media { transform: scale(1.05); }
.project-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 32px;
  color: var(--mist);
  background: linear-gradient(to top, rgba(10,11,13,.8), transparent);
  display: flex; flex-direction: column; gap: 4px;
}
.project-caption span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.project-caption strong { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; }
.project-caption em {
  font-style: normal; font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin-top: 8px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.project:hover .project-caption em, .project:focus-visible .project-caption em { opacity: 1; transform: none; }

/* ---------- Service areas ---------- */
.areas-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: stretch;
}
.areas-inner h2 { max-width: 14ch; }
.areas-text .section-sub { margin-bottom: 32px; }
.areas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--sand);
}
.areas-map {
  position: relative; min-height: 420px;
  background: var(--stone-deep);
  border: 1px solid var(--sand);
}
.areas-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(1) contrast(.92) brightness(1.02); /* keeps the map in the site palette */
}
.areas-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--sand);
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  position: relative; padding-left: 26px;
}
.areas-list li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 12px; height: 1px; background: var(--gold);
}

/* ---------- FAQ ---------- */
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.faq-inner .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--sand); }
.faq-list details { border-bottom: 1px solid var(--sand); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body); font-weight: 300;
  font-size: 1.6rem; color: var(--gold);
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.contact-info h2 { max-width: 14ch; }
.contact-info > p { color: var(--muted); max-width: 44ch; }

.next-steps { margin: 32px 0 8px; display: grid; gap: 18px; counter-reset: step; }
.next-steps li {
  position: relative; padding-left: 52px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: .95rem;
}
.next-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--font-display);
  font-size: 1.25rem; color: var(--gold);
}
.next-steps strong { font-weight: 500; color: var(--ink); }
.next-steps span { color: var(--muted); }

.contact-details { margin-top: 32px; border-top: 1px solid var(--sand); }
.contact-details li {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--sand);
  font-size: .98rem;
}
.contact-details a:hover { color: var(--gold-dark); }
.contact-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }

.contact-form { background: var(--mist); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--sand); }
.hidden-field { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-field label {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 300;
  color: var(--ink);
  background: var(--stone);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 14px 16px;
  outline: none;
  width: 100%;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  appearance: none; -webkit-appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d7078' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field textarea::placeholder { color: #a7a9af; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold); background: var(--mist);
}
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 18px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding: clamp(60px, 7vw, 90px) 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { margin-top: 22px; max-width: 36ch; font-size: .95rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.footer-heading {
  font-family: var(--font-body); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 8px; font-size: .72rem;
}
.footer-col a { transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; font-size: .82rem; color: #9a9da5; /* passes contrast on the dark footer */
}
.footer-bottom p { margin: 0; }
.licence { letter-spacing: .06em; }

/* ---------- Case study pages (projects/*.html) ----------
   Hero with the finished home, a facts strip, then brief / process / result,
   a gallery, a CTA and links to the other projects. */
.case-hero {
  position: relative;
  min-height: 72vh; min-height: 72svh;
  display: flex; align-items: flex-end;
  color: var(--mist); background: var(--ink); overflow: hidden;
}
.case-hero-media {
  position: absolute; inset: 0;
  background-color: #2a2d33; background-size: cover; background-position: center;
}
.case-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,11,13,.88) 0%, rgba(10,11,13,.3) 55%, rgba(10,11,13,.1) 100%),
    linear-gradient(to bottom, rgba(10,11,13,.5) 0%, rgba(10,11,13,0) 30%);
}
.case-hero-inner { position: relative; z-index: 1; padding-top: 160px; padding-bottom: clamp(48px, 6vw, 80px); }
.case-hero .eyebrow { color: var(--gold); margin-bottom: 1em; }
.case-hero h1 { color: var(--mist); font-size: clamp(2.4rem, 5.2vw, 4.4rem); max-width: 16ch; margin-bottom: .25em; }
.case-hero-sub {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.4;
  color: rgba(255,255,255,.88); max-width: 46ch; margin: 0;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 28px;
}
.breadcrumb a { transition: color .3s var(--ease); }
.breadcrumb a:hover { color: var(--mist); }
.breadcrumb span::before { content: "/"; margin-right: 10px; color: var(--gold); }
.breadcrumb [aria-current] { color: var(--mist); }

.case-facts { background: var(--ink); color: var(--mist); border-top: 1px solid rgba(255,255,255,.08); }
.case-facts-inner { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.case-fact {
  padding: 28px 22px 26px;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 8px;
}
.case-fact:first-child { padding-left: 0; }
.case-fact:last-child { border-right: 0; }
.case-fact span { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); }
.case-fact strong { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; color: var(--mist); }

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.case-grid .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.case-prose p { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.case-outcomes { margin-top: 32px; border-top: 1px solid var(--sand); max-width: 62ch; }
.case-outcomes li {
  padding: 14px 0 14px 28px; border-bottom: 1px solid var(--sand);
  position: relative; font-size: .98rem; color: var(--ink);
}
.case-outcomes li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 12px; height: 1px; background: var(--gold);
}

.case-timeline { border-top: 1px solid var(--sand); }
.stage {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--sand);
}
.stage-number {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 400; line-height: 1;
  color: var(--gold);
}
.stage-text h3 { font-size: 1.5rem; margin-bottom: .5em; }
.stage-text p { font-size: .98rem; color: var(--muted); margin: 0; max-width: 52ch; }
.stage-photo {
  aspect-ratio: 4 / 3;
  background-color: var(--sand); background-size: cover; background-position: center;
}

.case-gallery { padding: var(--section) 0 0; }
.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 28vw;
  gap: 8px; padding: 0 8px;
}
.gallery-item { background-color: var(--sand); background-size: cover; background-position: center; }
.gallery-item:nth-child(4n+1), .gallery-item:nth-child(4n+4) { grid-column: span 7; }
.gallery-item:nth-child(4n+2), .gallery-item:nth-child(4n+3) { grid-column: span 5; }

.case-cta { background: var(--ink); color: var(--mist); padding: clamp(60px, 7vw, 96px) 0; margin-top: 8px; }
.case-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.case-cta-inner h2 { color: var(--mist); margin: 0; }
.case-cta-inner .eyebrow { margin-bottom: .6em; }
.case-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.case-related { padding-bottom: 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 24vw;
  gap: 8px; padding: 0 8px 8px;
}

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  grid-template-columns: 1fr 1.4fr;
  box-shadow: 0 -8px 24px rgba(0,0,0,.25);
}
.mobile-bar-icon { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; }
.mobile-bar a {
  padding: 18px 12px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
}
.mobile-bar-call { background: var(--ink); color: var(--mist); }
.mobile-bar-book { background: var(--gold); color: var(--ink); }

/* ---------- Reveal on scroll ----------
   Only active when JS is running (html.js), so content is never hidden
   without it. The hero uses a short fade so the largest text paints fast. */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
html.js .reveal.in-view { opacity: 1; transform: none; }
html.js .hero-inner .reveal { transform: translateY(12px); transition-duration: .5s; }
html.js .hero-inner .reveal:nth-child(2) { transition-delay: .08s; }
html.js .hero-inner .reveal:nth-child(3) { transition-delay: .16s; }
html.js .hero-inner .reveal:nth-child(4) { transition-delay: .24s; }
.service-grid .reveal:nth-child(3n+2), .why-grid .reveal:nth-child(3n+2) { transition-delay: .12s; }
.service-grid .reveal:nth-child(3n+3), .why-grid .reveal:nth-child(3n+3) { transition-delay: .24s; }
.process-steps .reveal:nth-child(2) { transition-delay: .1s; }
.process-steps .reveal:nth-child(3) { transition-delay: .2s; }
.process-steps .reveal:nth-child(4) { transition-delay: .3s; }
.process-steps .reveal:nth-child(5) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media { animation: none; transform: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav { gap: 22px; }
  .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-step { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--sand); padding-right: 28px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet widths only: hide text links, keep icons and CTA. Scoped with a
   min-width so it can never override the phone menu below. */
@media (min-width: 901px) and (max-width: 1000px) {
  .site-nav > a:not(.btn):not(.nav-cta) { display: none; }
}
@media (max-width: 1250px) {
  .site-nav { gap: 16px; }
  .site-nav > a:not(.btn) { font-size: .72rem; letter-spacing: .1em; }
  .nav-cta { padding: 11px 16px; font-size: .72rem; }
}

@media (max-width: 600px) {
  .brand img { height: 32px; }
  .site-header.scrolled .brand img { height: 28px; }
}

@media (max-width: 900px) {
  .site-header { padding: 16px 0; }
  .site-header.scrolled { padding: 12px 0; }

  /* Full-screen menu. It must scroll on short screens, and the header must
     drop its backdrop blur while open, otherwise the fixed overlay is clipped
     to the header's height and most links become unreachable. */
  .site-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh; height: 100dvh;
    background: rgba(21,23,26,.98);
    flex-direction: column; align-items: center;
    justify-content: flex-start; justify-content: safe center;
    gap: 6px;
    padding: 96px 24px 40px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav > a:not(.btn) {
    display: block;
    font-size: 1.1rem; letter-spacing: .16em;
    padding: 12px 16px; min-height: 48px;
    width: 100%; max-width: 360px; text-align: center;
  }
  .site-nav > a:not(.btn)::after { display: none; }
  .site-nav > .nav-phone {
    display: block; margin-top: 10px;
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 500;
    text-transform: none; letter-spacing: .02em; color: var(--gold);
  }
  .nav-cta { margin-top: 18px; width: 100%; max-width: 360px; padding: 18px 22px; font-size: .85rem; }
  .nav-toggle { display: flex; position: relative; z-index: 101; }
  .site-header.menu-open {
    background: transparent; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .site-header.menu-open .brand { position: relative; z-index: 101; }

  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-media {
    background-image: url("../images/hero-mobile.webp"), linear-gradient(135deg, #2c2f35 0%, #15171a 60%, #0d0e10 100%);
    animation: none; transform: none;
  }
  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(10,11,13,.5) 0%, rgba(10,11,13,.4) 50%, rgba(10,11,13,.85) 100%);
  }
  .hero-inner { padding-top: 100px; padding-bottom: 110px; }
  .hero h1 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .hero-slogan { font-size: clamp(1.25rem, 5.5vw, 1.7rem); margin-bottom: 1.8em; }
  .scroll-cue { bottom: calc(76px + env(safe-area-inset-bottom)); height: 40px; }

  /* Comfortable tap targets */
  .social-links a { width: 44px; height: 44px; }
  .btn { padding: 17px 28px; }
  .faq-list summary { padding: 20px 44px 20px 0; font-size: 1.3rem; }
  .text-link { padding: 6px 0; }
  .mobile-bar a { min-height: 58px; display: flex; align-items: center; justify-content: center; }

  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .trust-item:nth-child(2n) { border-right: 0; }
  .trust-item:nth-child(n+3) { border-bottom: 0; }

  .intro-grid, .contact-grid, .areas-inner, .faq-inner { grid-template-columns: 1fr; }
  .areas-map { min-height: 320px; }

  /* Case study pages */
  .case-hero { min-height: 60vh; min-height: 60svh; }
  .case-hero-inner { padding-top: 120px; }
  .case-facts-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-fact { padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .case-fact:first-child { padding-left: 18px; }
  .case-fact:nth-child(3n) { border-right: 0; }
  .case-fact:nth-child(n+4) { border-bottom: 0; }
  .case-grid { grid-template-columns: 1fr; gap: 24px; }
  .case-grid .section-head { position: static; }
  .stage { grid-template-columns: 48px minmax(0, 1fr); align-items: start; }
  .stage-photo { grid-column: 2; }
  .case-gallery-grid { grid-auto-rows: 56vw; }
  .gallery-item:nth-child(n) { grid-column: span 12; }
  .related-grid { grid-template-columns: 1fr; grid-auto-rows: 56vw; }
  .case-cta-actions .btn { width: 100%; }
  .intro-media { aspect-ratio: 16 / 10; }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .project-grid { grid-auto-rows: 60vw; }
  .project-1, .project-2, .project-3, .project-4 { grid-column: span 12; }
  .process-steps { grid-template-columns: 1fr 1fr; }

  .mobile-bar { display: grid; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  .hero-actions .btn { width: 100%; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .section-sub { font-size: 1.02rem; }
  .why-item { padding: 28px 22px 32px; }
  .service-body { padding: 22px 22px 26px; }
  .process-step { padding: 28px 0; }
  .contact-form { padding: 24px 18px; }
  .project-grid { grid-auto-rows: 64vw; }
  .project-caption { padding: 20px 20px; }
  .project-caption strong { font-size: 1.35rem; }
  .project-caption em { opacity: 1; transform: none; } /* no hover on touch screens */
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { gap: 6px; padding: 20px 16px; }
  .trust-item strong { font-size: 1.9rem; }
  .case-facts-inner { grid-template-columns: 1fr 1fr; }
  .case-fact:nth-child(3n) { border-right: 1px solid rgba(255,255,255,.08); }
  .case-fact:nth-child(2n) { border-right: 0; }
  .case-fact:nth-child(n+4) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .case-fact:nth-child(n+5) { border-bottom: 0; }
  .stage { grid-template-columns: 1fr; gap: 14px; }
  .stage-photo { grid-column: 1; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .areas-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .contact-details li { grid-template-columns: 1fr; gap: 4px; }
  .services-cta { flex-direction: column; align-items: flex-start; }
}
