/* =========================================================================
   Adelaide Heritage Renovations — homepage styles
   Refined editorial heritage. Charcoal + taupe on white/off-white.
   Palette wired as CSS custom properties so it's easy to re-theme.
   ========================================================================= */

:root {
  /* Brand palette (approximate — adjust here only) */
  --charcoal: #2a2a2a;        /* headings, body text, dark bg, primary buttons */
  --taupe: #8f8877;           /* eyebrows, accents, dividers, decorative text  */
  --white: #ffffff;           /* primary background, negative space            */

  /* Supporting tints (derived) */
  --cream: #f6f4f0;           /* warm off-white section background */
  --border: #e7e3dc;          /* soft border */
  --taupe-dark: #736d5f;      /* darker taupe — hover / better contrast */
  --muted: #5a564f;           /* muted text (passes AA on white/cream) */
  --charcoal-700: #353433;    /* slightly lifted charcoal for dark panels */
  --charcoal-900: #1f1f1e;    /* deepest charcoal */
  --star: #fbbc04;            /* Google review star gold */

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing / rhythm */
  --section-y: clamp(4rem, 9vw, 8rem);
  --container: 1180px;
  --radius: 4px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html { scroll-padding-top: 110px; } /* sticky header breathing room on anchor jumps */

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.text-link {
  color: var(--taupe-dark);
  font-weight: 600;
  text-decoration-color: rgba(115, 109, 95, 0.5);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}
.text-link:hover { color: var(--charcoal); }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ------------------------------------------------------------- Headings */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }

p { text-wrap: pretty; }

/* ----------------------------------------------------------- Utilities */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.container--narrow { max-width: 820px; }
.muted { color: var(--muted); }

.eyebrow {
  display: none;              /* kickers removed site-wide */
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--taupe-dark);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--taupe); }

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Accessible focus ring everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--taupe-dark);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--charcoal);
  --btn-fg: var(--white);
  --btn-bd: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--charcoal); --btn-fg: #fff; --btn-bd: var(--charcoal); }
.btn--primary:hover { --btn-bg: #000; box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--charcoal); --btn-bd: var(--charcoal); }
.btn--ghost:hover { --btn-bg: var(--charcoal); --btn-fg: #fff; }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--charcoal); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: var(--cream); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5); }

.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }

/* ============================================================ HEADER */
.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(231,227,220,0.88);
  box-shadow: 0 10px 30px -28px rgba(42,42,42,0.45);
  backdrop-filter: blur(10px);
}
.site-header .brand-name { color: var(--charcoal); }
.site-header .brand-name__line:last-child { color: var(--taupe-dark); }
.site-header .brand-mark { filter: none; }
.site-header .nav-list > li > a,
.site-header .nav-dropdown__summary { color: var(--charcoal); }
.site-header .nav-phone { color: var(--charcoal); }
.site-header .nav-phone svg { color: var(--taupe-dark); }
.site-header .nav-toggle { border-color: var(--border); }
.site-header .nav-toggle__bar { background: var(--charcoal); }
.site-header .nav-cta { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.site-header .nav-cta:hover { background: #000; color: #fff; border-color: #000; }

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 95px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
  flex: 0 0 auto;
}
.brand-mark { width: 74px; height: 74px; object-fit: contain; transition: filter 0.3s var(--ease); }
.brand-name,
.nav-list > li > a,
.nav-dropdown__summary,
.nav-phone,
.nav-cta { transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease); }
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.brand-name__line:last-child { color: var(--taupe-dark); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: nowrap;
}
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-dropdown__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--charcoal);
  padding: 0.4rem 0;
  position: relative;
  white-space: nowrap;
  list-style: none;
}
.nav-dropdown__summary {
  border: 0;
  background: transparent;
}
.nav-dropdown__summary::-webkit-details-marker { display: none; }
.nav-dropdown__arrow {
  width: 14px;
  height: 14px;
  color: var(--taupe-dark);
  transition: transform 0.2s var(--ease);
}
.nav-list > li > a:focus-visible,
.nav-dropdown__summary:focus-visible {
  outline: 2px solid rgba(143,136,119,0.45);
  outline-offset: 6px;
}
.nav-list > li > a::after,
.nav-dropdown__summary::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--taupe);
  transition: width 0.25s var(--ease);
}
.nav-list > li > a:hover::after,
.nav-dropdown:hover .nav-dropdown__summary::after,
.nav-dropdown:focus-within .nav-dropdown__summary::after,
.nav-dropdown__details[open] .nav-dropdown__summary::after { width: 100%; }

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: -0.75rem;
  z-index: 130;
  display: grid;
  gap: 0.1rem;
  min-width: 320px;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 22px 42px -24px rgba(42,42,42,0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s var(--ease);
}
.nav-dropdown__menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 1.55rem;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown__details[open] .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown:hover .nav-dropdown__arrow,
.nav-dropdown:focus-within .nav-dropdown__arrow,
.nav-dropdown__details[open] .nav-dropdown__arrow { transform: rotate(180deg); }
.nav-dropdown__menu a {
  display: block;
  position: relative;
  z-index: 1;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-dropdown__menu a::after { display: none; }
.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
  background: var(--cream);
  color: var(--charcoal);
  outline: 0;
}
.nav-dropdown__overview {
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.nav-dropdown__heading {
  display: block;
  margin: 0.55rem 0.65rem 0.15rem;
  color: rgba(115,109,95,0.78);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}
.nav-dropdown__child { padding-left: 1rem; color: var(--muted); }

.nav-actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-phone:hover { color: var(--taupe-dark); }
.nav-phone svg { color: var(--taupe-dark); flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.nav-toggle__bar {
  width: 22px; height: 2px;
  background: var(--charcoal);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 1rem clamp(1.25rem, 5vw, 2.5rem) 1.75rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: block;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
}
.mobile-services details { border-bottom: 1px solid var(--border); }
.mobile-services summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding: 0.7rem 0;
  color: var(--charcoal);
}
.mobile-services summary::-webkit-details-marker { display: none; }
.mobile-services__arrow {
  width: 18px;
  height: 18px;
  color: var(--taupe-dark);
  transition: transform 0.2s var(--ease);
}
.mobile-services details[open] .mobile-services__arrow { transform: rotate(180deg); }
.mobile-services details:not([open]) > .mobile-services__list { display: none; }
.mobile-services__list {
  display: grid;
  gap: 0.05rem;
  padding: 0.05rem 0 0.85rem;
}
.mobile-menu nav .mobile-services__list a {
  border-bottom: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.35;
  padding: 0.45rem 0 0.45rem 0.75rem;
}
.mobile-menu nav .mobile-services__overview {
  margin-bottom: 0.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.mobile-services__heading {
  display: block;
  padding: 0.65rem 0 0.2rem 0.75rem;
  color: rgba(115,109,95,0.78);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}
.mobile-menu__actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; }

/* ============================================================== HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 90vh;
  padding-block: clamp(3rem, 8vh, 6rem);
  background: var(--charcoal-900) url(../assets/ahr-hero.png) center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  /* dark scrim for legibility — heavier on the left where the copy sits */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(20,20,19,0.92) 0%,
    rgba(20,20,19,0.70) 32%,
    rgba(20,20,19,0.34) 60%,
    rgba(20,20,19,0.08) 100%);
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: block; }
.hero-copy { max-width: 640px; }
.hero-title { margin: 0.4rem 0 1.4rem; max-width: 16ch; color: #fff; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,0.86); max-width: 48ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin: 2rem 0 1.6rem;
}
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
}
.hero-phone svg { color: var(--taupe); }
.hero-phone:hover { opacity: 0.82; }

/* Hero buttons sit on a dark photo — flip them for contrast */
.hero .btn--primary { background: #fff; color: var(--charcoal); border-color: #fff; }
.hero .btn--primary:hover { background: var(--cream); border-color: var(--cream); box-shadow: 0 14px 32px -14px rgba(0,0,0,0.65); }
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.hero .btn--ghost svg { color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--charcoal); border-color: #fff; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.proof-logos { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-logo { height: 26px; width: 26px; display: block; }
.brand-logo--houzz { height: 34px; width: 32px; }
.proof-score { color: var(--star); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.hero-proof .stars { font-size: 1.5rem; }
.proof-pill {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}
.proof-pill strong { color: #fff; }
.proof-rating { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: rgba(255,255,255,0.8); }
.stars { color: var(--star); letter-spacing: 0.12em; font-size: 1rem; }
.proof-rating__text em { font-style: italic; }

/* Hero media — arched frame */
.hero-media { position: relative; }
.hero-frame { position: relative; }
.arch-frame {
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream);
  box-shadow: 0 40px 80px -50px rgba(42,42,42,0.55);
}
.arch-frame .house-illo { width: 100%; height: auto; }
.hero-frame__tag {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.hero-media::after {
  /* taupe accent block peeking behind the frame */
  content: "";
  position: absolute;
  right: -18px; bottom: -18px;
  width: 60%; height: 55%;
  background: var(--taupe);
  opacity: 0.14;
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* Rooftop divider — echoes the logo geometry */
.rooftop-divider {
  height: 22px;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  background-image:
    linear-gradient(135deg, var(--taupe) 25%, transparent 25%),
    linear-gradient(225deg, var(--taupe) 25%, transparent 25%);
  background-size: 22px 22px;
  background-position: 0 0;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

/* ---------------------------------------------------------- Page hero */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: 9rem 0 clamp(4rem, 8vw, 6rem);
  background: var(--charcoal-900) url(../assets/adelaide-verandah-renovation.jpg) center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20,20,19,0.82), rgba(20,20,19,0.58) 48%, rgba(20,20,19,0.28));
}
.page-hero--about { background-image: url(../assets/heritage-home-restoration-adelaide.jpg); }
.page-hero--services { background-image: url(../assets/adelaide-full-heritage-home-restoration.jpg); }
.page-hero--contact { background-image: url(../assets/adelaide-home-kitchen-renovation.jpg); }
.page-hero--not-found {
  align-items: center;
  background: var(--charcoal-900);
  text-align: center;
}
.page-hero--not-found::before {
  background: linear-gradient(180deg, rgba(20,20,19,0.72), rgba(20,20,19,0.88));
}
.page-hero--not-found .page-hero__copy { margin-inline: auto; }
.page-hero--not-found .page-intro { margin-inline: auto; }
.page-hero--thank-you { background-image: url(../assets/adelaide-heritage-home-renovation.jpg); }
.page-hero__copy { max-width: 760px; }
.page-title { margin: 0 0 1.2rem; color: #fff; }
.page-intro {
  max-width: 58ch;
  color: rgba(255,255,255,0.86);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

/* -------------------------------------------------------- Project hub */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 1.8rem);
}
.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  color: var(--charcoal);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--taupe);
  box-shadow: 0 24px 50px -36px rgba(42,42,42,0.45);
}
.project-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}
.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.project-card:hover .project-card__image img { transform: scale(1.035); }
.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem;
}
.project-card__meta {
  color: var(--taupe-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-card h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}
.project-card p {
  color: var(--muted);
  font-size: 0.98rem;
}
.project-card__link {
  margin-top: auto;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.9rem;
}
.project-note {
  max-width: 760px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  color: var(--muted);
  text-align: center;
}

/* -------------------------------------------------------- Service pages */
.service-hero {
  position: relative;
  min-height: min(760px, calc(100svh - 95px));
  display: flex;
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  color: #fff;
  background: var(--charcoal-900) var(--service-hero-image, url(../assets/ahr-hero.png)) center / cover no-repeat;
  isolation: isolate;
}
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(20,20,19,0.9) 0%,
    rgba(20,20,19,0.72) 42%,
    rgba(20,20,19,0.32) 74%,
    rgba(20,20,19,0.12) 100%);
}
.service-hero__copy { max-width: 720px; }
.service-hero .eyebrow {
  display: block;
  color: rgba(255,255,255,0.82);
}
.service-hero h1 {
  max-width: 13ch;
  margin-bottom: 1.2rem;
  color: #fff;
}
.service-hero__sub {
  max-width: 54ch;
  color: rgba(255,255,255,0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}
.service-hero .hero-actions { margin-bottom: 1.35rem; }
.service-hero .btn--primary { background: #fff; color: var(--charcoal); border-color: #fff; }
.service-hero .btn--primary:hover { background: var(--cream); border-color: var(--cream); }
.service-hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.68); }
.service-hero .btn--ghost:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.service-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}
.service-proof li {
  padding: 0.48rem 0.72rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
}
.service-copy {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.service-copy p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.service-copy p + p { margin-top: 1rem; }
.pain-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
}
.pain-card,
.why-card {
  min-height: 100%;
  padding: 1.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.pain-card h3,
.why-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.16rem;
}
.pain-card p,
.why-card p {
  color: var(--muted);
  font-size: 0.97rem;
}
.include-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.include-list li {
  position: relative;
  min-height: 100%;
  padding: 0.95rem 1rem 0.95rem 2.4rem;
  color: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
}
.include-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.35rem;
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 50%;
  background: var(--taupe-dark);
}
.service-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.service-work-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: var(--charcoal);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.service-work-card:hover {
  transform: translateY(-4px);
  border-color: var(--taupe);
  box-shadow: 0 24px 50px -36px rgba(42,42,42,0.45);
}
.service-work-card figure { margin: 0; }
.service-work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service-work-card figcaption {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem;
}
.service-work-card strong {
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.2;
}
.service-work-card span {
  color: var(--muted);
  font-size: 0.96rem;
}
.service-quote-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.service-quote-note .stars { font-size: 1.2rem; }
.footer-related {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.related-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.related-services a {
  color: #ece9e3;
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
}
.related-services a:hover {
  color: #fff;
  border-color: var(--taupe);
}
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--border);
  box-shadow: 0 -18px 40px -30px rgba(42,42,42,0.5);
}
.mobile-cta-bar .btn { min-height: 48px; padding-inline: 0.9rem; }

/* ----------------------------------------------------- Project detail */
.project-detail-hero {
  position: relative;
  padding: 9rem 0 clamp(4rem, 7vw, 5.5rem);
  background: var(--charcoal-900);
  color: #fff;
  isolation: isolate;
}
.project-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20,20,19,0.86), rgba(20,20,19,0.96));
}
.project-detail-hero .page-hero__copy {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.project-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.76);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-overview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.project-copy {
  max-width: 720px;
}
.project-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}
.project-copy h2 + p { margin-top: 1.4rem; }
.project-copy p + p { margin-top: 1.1rem; }
.project-facts {
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.project-fact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border);
}
.project-fact:last-child { border-bottom: 0; }
.project-fact span {
  color: var(--taupe-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.project-fact strong {
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
}
.project-scope {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.project-scope__item {
  padding: 1.45rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.project-scope__item h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
}
.project-scope__item p {
  color: var(--muted);
  font-size: 0.96rem;
}
.project-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.project-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--cream);
  border-radius: var(--radius);
}
.project-gallery img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.project-gallery figure:first-child { grid-row: span 2; }
.project-gallery figure:first-child img { min-height: 540px; }
.project-gallery--hero figure {
  background: var(--charcoal-700);
  border: 1px solid rgba(255,255,255,0.12);
}
.project-gallery--six {
  grid-template-columns: repeat(3, 1fr);
}
.project-gallery--six figure:first-child { grid-row: auto; }
.project-gallery--six figure:first-child img,
.project-gallery--six img {
  min-height: clamp(360px, 42vw, 560px);
}
.project-gallery--seven {
  grid-template-columns: repeat(4, 1fr);
}
.project-gallery--seven figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.project-gallery--seven figure:first-child img { min-height: clamp(420px, 48vw, 620px); }
.project-gallery--seven img { min-height: clamp(220px, 22vw, 300px); }
.project-gallery--five {
  grid-template-columns: repeat(4, 1fr);
}
.project-gallery--five figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.project-gallery--five figure:first-child img { min-height: clamp(420px, 50vw, 660px); }
.project-gallery--five img { min-height: clamp(240px, 24vw, 320px); }
.project-gallery--single {
  grid-template-columns: 1fr;
}
.project-gallery--single figure:first-child { grid-row: auto; }
.project-gallery--single figure:first-child img,
.project-gallery--single img {
  min-height: clamp(420px, 52vw, 660px);
}
.project-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ------------------------------------------------------------- 404 */
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.not-found-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.not-found-link {
  display: block;
  min-height: 100%;
  padding: 1.5rem;
  color: var(--charcoal);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.not-found-link:hover {
  transform: translateY(-3px);
  border-color: var(--taupe);
  box-shadow: 0 20px 42px -34px rgba(42,42,42,0.5);
}
.not-found-link strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.not-found-link span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------- Thank you */
.thank-you-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.thank-you-panel p {
  color: var(--muted);
  font-size: 1.1rem;
}
.thank-you-panel p + p { margin-top: 0.8rem; }
.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ========================================================= TRUST BAR */
.trust-bar {
  background: var(--charcoal);
  color: #f0eee9;
  padding: clamp(1.5rem, 3vw, 2rem) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.35;
}
.trust-item p { color: #d9d6cf; }
.trust-item strong { color: #fff; }
.trust-item svg { color: var(--taupe); flex-shrink: 0; }
.trust-item .stars { font-size: 1.15rem; }
.trust-item .muted { color: #a39e93; }
.trust-item + .trust-item { border-left: 1px solid rgba(255,255,255,0.12); padding-left: 1.5rem; }
.trust-item--badge .badge--sm { width: 68px; height: 68px; flex-shrink: 0; object-fit: contain; }

/* =========================================================== SECTIONS */
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }

.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-intro { color: var(--muted); font-size: 1.1rem; margin-top: 0.9rem; }

.section-cta { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* ----------------------------------------------------------- Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.pillar {
  padding: 2rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  position: relative;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--taupe);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.pillar h3 { margin-bottom: 0.6rem; }
.pillar p { color: var(--muted); font-size: 0.98rem; }

/* ---------------------------------------------------------- Services */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.2vw, 1.75rem);
}
.service-card {
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--taupe); box-shadow: 0 24px 50px -36px rgba(42,42,42,0.45); }
.service-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--taupe-dark);
  border: 1px solid var(--border);
  margin-bottom: 0.4rem;
}
.service-card p { color: var(--muted); }

/* ------------------------------------------------ Heritage difference (dark) */
.difference {
  background: var(--charcoal);
  color: #ece9e3;
  position: relative;
  overflow: hidden;
}
.difference::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(143,136,119,0.22), transparent 55%);
  pointer-events: none;
}
.difference-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
}
.difference-copy { max-width: 760px; }
.difference h2 { color: #fff; }
.difference-body { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #d6d2ca; max-width: 58ch; margin: 0.5rem auto 0; }
.difference-media { width: 100%; max-width: 920px; }
.home-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.9rem 0 2.2rem;
}
.home-types li {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: #ece9e3;
}
.arch-frame--dark { background: var(--charcoal-700); border-color: rgba(255,255,255,0.12); box-shadow: 0 40px 90px -50px rgba(0,0,0,0.8); }
.video-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--charcoal-900);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.8);
}
.tour-video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;         /* full landscape video, no cropping */
  object-fit: cover;
  background: var(--charcoal-900);
}

/* ------------------------------------------------------------- Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 1rem; }
.step::before {
  /* connecting line */
  content: "";
  position: absolute;
  top: 36px; left: 56px; right: -1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--taupe), transparent);
}
.steps .step:last-child::before { display: none; }
.step-num {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.step h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* -------------------------------------------------------- Our work */
/* Full-bleed gallery — 3 images per row until the mobile breakpoint */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}
.work-card { position: relative; margin: 0; }
.work-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.work-card__link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}
.work-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.work-frame img,
.work-frame .house-illo { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
}
.work-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 2.75rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: linear-gradient(to top, rgba(20,20,19,0.9), rgba(20,20,19,0.45) 55%, transparent);
  color: #fff;
}
.work-suburb { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; }
.work-caption { color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.work-caption .muted { color: rgba(255,255,255,0.6); }

/* --------------------------------------------------------- Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.review-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;                  /* equal height comes from the fixed 5-line quote */
}
.review-quote {
  flex: none;
  height: 7.6em;                 /* 5 lines max at line-height 1.5 (+tiny buffer) */
  overflow: hidden;              /* JS trims text to ~5 lines, ending with " . . ." */
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--charcoal);
  quotes: "\201C" "\201D";
}
.review-quote::before { content: open-quote; }
.review-quote::after  { content: close-quote; }
.review-by { font-weight: 600; font-size: 0.95rem; color: var(--charcoal); }

/* ----------------------------------------------------------- About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-copy p { font-size: 1.12rem; color: var(--charcoal); }
.about-copy p + p { margin-top: 1.2rem; }
.about-founder { color: var(--muted) !important; font-size: 1rem !important; }
.founder-slot {
  color: var(--taupe-dark);
  font-weight: 600;
  border-bottom: 1px dashed var(--taupe);
}
.founder-name { color: var(--charcoal); font-weight: 600; }
.about-aside {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  text-align: center;
}
.about-aside .badge--md { width: 120px; height: 120px; margin: 0 auto 1.5rem; }
.about-facts { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.about-facts li { display: flex; flex-direction: column; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.about-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.about-facts strong { font-family: var(--font-display); font-size: 1.15rem; }
.about-facts span { color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------- Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-copy p { color: var(--muted); font-size: 1.1rem; }
.contact-phone-text { margin-top: 1.8rem; }
.contact-phone-text a {
  color: var(--charcoal);
  text-decoration: none;
}
.contact-phone-text a:hover { color: var(--taupe-dark); }

/* Form */
.quote-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 70px -55px rgba(42,42,42,0.5);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--taupe-dark);
  box-shadow: 0 0 0 3px rgba(143,136,119,0.22);
}
.field textarea { resize: vertical; }
.field input:user-invalid, .field select:user-invalid {
  border-color: #b3261e;
}
.form-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1rem;
  margin-top: 1rem;
}
.form-proof .stars { font-size: 1.35rem; }
.form-status {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: #eef3ec;
  border: 1px solid #cfe0c8;
  color: #234d1c;
  font-weight: 500;
  font-size: 0.95rem;
}
.form-status:empty { display: none; }

/* Two-step form: step 2 reveals once step 1 is complete */
.form-step { display: flex; flex-direction: column; }
.form-step--more[hidden] { display: none; }
.form-step--more.is-revealed { animation: stepReveal 0.5s var(--ease); }
@keyframes stepReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn:disabled:hover { transform: none; box-shadow: none; }

/* ------------------------------------------------------------- FAQ */
.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2px solid var(--taupe-dark);
  border-bottom: 2px solid var(--taupe-dark);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-answer { padding: 0 1.4rem 1.3rem; }
.faq-answer p { color: var(--muted); }
.faq-item[open] summary { color: var(--taupe-dark); }

/* =========================================================== FOOTER */
.site-footer {
  background: var(--charcoal-900);
  color: #cfccc4;
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-logo-chip {
  display: inline-flex;
  background: var(--white);
  padding: 0.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
}
.footer-tagline { font-family: var(--font-display); font-size: 1.3rem; color: #fff; max-width: 22ch; margin-bottom: 1.4rem; line-height: 1.25; }
.footer-cta { }
.footer-h {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--taupe);
  margin-bottom: 1.1rem;
}
.footer-nav ul, .footer-contact ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a, .footer-contact a { text-decoration: none; color: #cfccc4; transition: color 0.2s var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.2rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #cfccc4;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-social a:hover { background: var(--taupe); color: var(--charcoal-900); border-color: var(--taupe); }
.site-footer .footer-social-soon { margin-top: 1.2rem; font-size: 0.9rem; color: #a39e93; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
}
.footer-bottom .muted { color: #8d8a82; }
.built-by { color: #8d8a82; }
.built-by a {
  position: relative;
  text-decoration: none;
  color: var(--taupe);
  font-weight: 600;
}
.built-by a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.built-by a:hover { color: #fff; }
.built-by a:hover::after { transform: scaleX(1); }
.built-by a:focus-visible::after { transform: scaleX(1); }
.site-footer .founder-slot { color: var(--taupe); border-bottom-color: rgba(143,136,119,0.5); }


/* ======================================================= REVEAL MOTION */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children within a group */
.pillars .reveal.is-visible,
.services .reveal.is-visible,
.steps .reveal.is-visible,
.work-grid .reveal.is-visible,
.project-grid .reveal.is-visible { transition-delay: calc(var(--i, 0) * 80ms); }

/* ======================================================= RESPONSIVE */
@media (max-width: 1180px) {
  .nav-list, .nav-phone, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 1024px) {
  .project-overview { grid-template-columns: 1fr; }
  .project-scope { grid-template-columns: repeat(2, 1fr); }
  .pain-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .include-list, .service-work-grid { grid-template-columns: repeat(2, 1fr); }
  .project-gallery--six { grid-template-columns: repeat(2, 1fr); }
  .project-gallery--seven { grid-template-columns: repeat(2, 1fr); }
  .project-gallery--five { grid-template-columns: repeat(2, 1fr); }
  .not-found-links { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars, .steps { grid-template-columns: repeat(2, 1fr); }
  .step::before { display: none; }
}

@media (max-width: 880px) {
  .brand-mark { width: 64px; height: 64px; }
  .brand-name { font-size: 1.08rem; }
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(20,20,19,0.5), rgba(20,20,19,0.82)); }
  .hero-title { max-width: 18ch; }
  .service-hero {
    min-height: calc(100svh - 85px);
    align-items: flex-start;
    padding-top: clamp(2.4rem, 7vh, 4rem);
  }
  .service-hero::before { background: linear-gradient(180deg, rgba(20,20,19,0.52), rgba(20,20,19,0.86)); }
  .service-hero h1 { max-width: 14ch; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
  .trust-item + .trust-item { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); padding-right: 1rem; }
  body.has-mobile-cta { padding-bottom: 86px; }
  .mobile-cta-bar.is-visible { display: grid; }
}

@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service-hero h1 { font-size: clamp(2.25rem, 11vw, 3.15rem); }
  .service-hero .hero-actions .btn { flex: 1 1 100%; }
  .pain-grid, .why-grid, .include-list, .service-work-grid { grid-template-columns: 1fr; }
  .service-proof li { flex: 1 1 100%; }
  .project-scope, .project-gallery { grid-template-columns: 1fr; }
  .project-gallery figure:first-child { grid-row: auto; }
  .project-gallery figure:first-child img { min-height: 300px; }
  .not-found-links { grid-template-columns: 1fr; }
  .pillars, .steps, .work-grid, .project-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item:nth-child(odd) { border-right: 0; padding-right: 0; }
  .trust-item { border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 1rem; }
  .trust-item:last-child { border-bottom: 0; padding-bottom: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ======================================================= REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pillar, .service-card { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; }
}
