/* =========================================================
   Avatar Builders — Homepage
   ========================================================= */

:root {
  --red: #d32f2f;
  --red-dark: #b71c1c;
  --maroon: #4a1114;
  --maroon-dark: #2e0b0d;
  --gold: #ffc107;
  --gold-light: #ffd766;
  --ink: #1a1a1a;
  --charcoal: #232120;
  --cream: #f5f5f5;
  --cream-2: #efe9e1;
  --muted: #7a746c;
  --white: #ffffff;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety net: clip any accidental overflow rather than scroll the page sideways */
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
select { font-family: inherit; }

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

.serif-heading {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 14px 0 18px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.eyebrow .dash { width: 26px; height: 2px; background: currentColor; display: inline-block; }
.eyebrow-light { color: var(--gold-light); }
.eyebrow-red { color: var(--red); }
.eyebrow-gold { color: var(--gold); }

.accent { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }

.btn-solid-red { background: var(--red); color: var(--white); }
.btn-solid-red:hover { background: var(--red-dark); box-shadow: 0 10px 24px rgba(195,31,42,0.35); }

.btn-solid-gold { background: var(--gold); color: #3a1c00; }
.btn-solid-gold:hover { background: var(--gold-light); box-shadow: 0 10px 24px rgba(240,168,59,0.4); }

.btn-outline-light { background: rgba(0,0,0,0.35); color: var(--white); border-color: rgba(195,31,42,0.9); }
.btn-outline-light:hover { background: var(--red); border-color: var(--red); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.link-arrow .arrow { transition: transform 0.25s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow.light { color: var(--white); }

.round-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid #d8d2c8;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.round-btn:hover { border-color: var(--red); color: var(--red); }
.round-btn-solid { background: var(--red); border-color: var(--red); color: var(--white); }
.round-btn-solid:hover { background: var(--red-dark); color: var(--white); }

.i { width: 18px; height: 18px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header.scrolled {
  background: rgba(15, 12, 11, 0.92);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 68px;
  width: auto;
  border-radius: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}
.site-header.scrolled .main-nav {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
.main-nav a {
  color: #f1ede7;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding: 10px 18px;
  border-radius: 30px;
  transition: color 0.25s ease, background 0.25s ease;
}
.main-nav a:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.hamburger {
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span { width: 22px; height: 2px; background: var(--white); transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,8,7,0.92) 0%, rgba(10,8,7,0.72) 28%, rgba(10,8,7,0.22) 55%, rgba(10,8,7,0.05) 75%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.05) 70%, rgba(0,0,0,0.65) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 60px; }
.hero-content { max-width: 620px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  margin: 14px 0 22px;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #e8e2d8;
  max-width: 420px;
  margin: 0 0 34px;
}

.hero-project-card {
  position: absolute;
  right: 40px; bottom: 40px;
  z-index: 1;
  text-align: right;
  border-right: 2px solid var(--gold);
  padding-right: 18px;
}
.hero-project-card h4 { font-family: var(--serif); font-size: 20px; margin: 0 0 4px; }
.hero-project-card p { margin: 0; font-size: 13px; color: #d9d2c6; }
.hero-project-card .spec { margin-top: 4px; font-size: 12px; color: #b7ae9e; }

/* =========================================================
   PROJECTS
   ========================================================= */
/* dark, branded ground (same maroon gradient used on the projects-page CTA
   banner) instead of plain white — makes the showcase cards pop instead of
   blending into the page, and reads as a deliberate "featured" moment. */
.projects { padding: 110px 0 100px; background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%); }
.projects .eyebrow-red { color: var(--gold-light); }
.projects .section-head h2 { color: var(--white); }
.projects .btn-outline-red { color: var(--white); border-color: rgba(255,255,255,0.5); }
.projects .btn-outline-red:hover { background: var(--white); color: var(--maroon-dark); border-color: var(--white); }
.projects-view-all { display: flex; justify-content: center; margin-top: 46px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.carousel-controls { display: flex; gap: 12px; }

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.project-card {
  /* 3-up by default (used by the homepage teaser). flex-grow: 0 keeps every
     card at the same fixed size — a partial last row (e.g. adding a 4th
     card) stays that size instead of stretching to fill the row. */
  flex: 0 1 calc(33.333% - 19px);
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 28px 55px rgba(0,0,0,0.2); }
/* Projects listing page: 2-up (not 3), so e.g. 4 filtered results form a
   clean 2x2 instead of a 3-up row plus a stretched lone card. Also capped
   at that width (flex-grow: 0) so an odd lone card in the last row keeps
   the normal card size instead of stretching to fill the row. */
#projectGrid.project-grid { justify-content: center; }
#projectGrid.project-grid .project-card { flex-basis: calc(50% - 14px); flex-grow: 0; }
.project-card img {
  width: 100%; height: 300px; object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover img { transform: scale(1.08); }

.badge {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  color: var(--white);
  background: var(--red);
}
.badge-ongoing { background: var(--red); }
.badge-upcoming { background: var(--red); }

.project-card-body {
  position: relative;
  margin-top: -90px;
  z-index: 1;
  box-sizing: border-box;
  padding: 60px 22px 22px;
  background: linear-gradient(to top, rgba(10,8,7,0.96) 30%, rgba(10,8,7,0) 100%);
  color: var(--white);
}
/* Projects listing page cards include a description line, so they get a
   fixed body height (with the description clamped) to stay uniform across
   varying description lengths. The homepage teaser cards only show a
   title + location, so they're left at their natural (shorter) height. */
#projectGrid.project-grid .project-card-body { height: 215px; }
.project-card-body h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 4px; }
.project-card-body .loc { font-size: 13px; color: #d6cfc3; margin: 0 0 14px; }
.specs {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: #cfc7b9;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.specs span { display: flex; align-items: center; gap: 6px; }
.specs .i { width: 15px; height: 15px; color: var(--gold); }
.project-card-body .desc {
  font-size: 13px; line-height: 1.6; color: #cfc7b9; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-body .link-arrow { color: var(--white); font-size: 13px; }

/* =========================================================
   WATCH IT HAPPEN (animated build story)
   ========================================================= */
.build-story { padding: 80px 0 40px; background: var(--white); overflow: hidden; }
.build-story-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.build-story-text p { color: var(--muted); line-height: 1.8; max-width: 400px; margin: 16px 0 26px; }

.build-story-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(23,17,14,0.14);
  background: #d8cdb8; /* placeholder while the first photo decodes */
}

/* four real site/project photos cross-fade with a slow Ken Burns zoom,
   advanced by JS (main.js) one .is-active swap at a time — plain opacity
   transitions + a single transform keyframe, so there's no coordinate
   math to keep in sync (unlike the illustration this replaced). */
.bs-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease;
}
.bs-photo-4 { background-position: center 78%; } /* keep the ground-floor signage in frame on this taller shot */

/* shown plainly if JS never runs (disabled) or before it kicks in */
.bs-photo-1 { opacity: 1; transform: scale(1); }

.build-story-stage.bs-playing .bs-photo.is-active {
  opacity: 1;
  animation: bsKenBurns 6.4s ease-out forwards;
}
@keyframes bsKenBurns {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}

.bs-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 30px 26px;
  background: linear-gradient(0deg, rgba(10,8,6,0.82) 0%, rgba(10,8,6,0.4) 65%, rgba(10,8,6,0) 100%);
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.bs-photo-1 .bs-photo-caption { opacity: 1; transform: translateY(0); }
.build-story-stage.bs-playing .bs-photo.is-active .bs-photo-caption {
  opacity: 1;
  transform: translateY(0);
}
.bs-cap-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.bs-photo-caption h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.bs-photo-caption p { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.85); max-width: 380px; }

.bs-progress { position: absolute; top: 20px; right: 20px; z-index: 2; display: flex; gap: 6px; }
.bs-progress-dot { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.4); transition: background 0.3s ease; }
.bs-progress-dot:first-child { background: var(--gold); }
.bs-progress-dot.is-active, .bs-progress-dot.is-done { background: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .bs-photo { transition: none; }
  .build-story-stage.bs-playing .bs-photo.is-active { animation: none; }
}

@media (max-width: 1080px) {
  .build-story-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   OUR BUILDING PROCESS (step timeline)
   ========================================================= */
.build-process { padding: 110px 0; background: var(--cream); }
.section-head-center { width: 100%; }
.build-process .section-head-center { text-align: center; margin-bottom: 70px; }
.build-process .section-head-center h2 { margin: 14px auto 0; }

.steps-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-item {
  position: relative;
  z-index: 1;
  text-align: left;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(23,17,14,0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.step-item:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(23,17,14,0.16); }
.step-photo {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
}
.step-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.step-item:hover .step-photo img { transform: scale(1.08); }
.step-num-badge {
  position: absolute;
  top: 16px; left: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(23,17,14,0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}
.step-item:hover .step-num-badge { background: var(--red-dark); transform: scale(1.1); }
.step-body { padding: 22px 24px 26px; }
.step-item h5 { margin: 0 0 8px; font-size: 17px; }
.step-item p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.process-cta { display: flex; justify-content: center; margin-top: 56px; }

.steps-track .step-item.reveal:nth-child(2) { transition-delay: 0s; }
.steps-track .step-item.reveal:nth-child(3) { transition-delay: 0.05s; }
.steps-track .step-item.reveal:nth-child(4) { transition-delay: 0.1s; }
.steps-track .step-item.reveal:nth-child(5) { transition-delay: 0.15s; }
.steps-track .step-item.reveal:nth-child(6) { transition-delay: 0.2s; }
.steps-track .step-item.reveal:nth-child(7) { transition-delay: 0.25s; }

/* =========================================================
   LOCATIONS
   ========================================================= */
.locations { background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%); padding: 100px 0; color: var(--white); }
.locations-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.locations-text h2 { color: var(--white); }
.locations-map { position: relative; border-radius: 12px; overflow: hidden; grid-row: span 2; }
.locations-map img { width: 100%; height: 340px; object-fit: cover; }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4));
  animation: pinBounce 2.4s ease-in-out infinite;
}
@keyframes pinBounce {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, -112%); }
}

.locations-stats {
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.stat { display: flex; align-items: center; gap: 14px; }
.stat svg { width: 34px; height: 34px; color: var(--gold); flex-shrink: 0; }
.stat strong { display: block; font-size: 16px; font-weight: 700; }
.stat span { display: block; font-size: 12.5px; color: rgba(255,255,255,0.65); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta { position: relative; padding: 130px 0 180px; color: var(--white); overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,6,5,0.9) 0%, rgba(8,6,5,0.55) 55%, rgba(8,6,5,0.75) 100%);
}
.cta-inner { position: relative; z-index: 1; text-align: left; }
.cta-inner h2 { color: var(--white); max-width: 560px; }

.contact-card {
  position: absolute;
  right: 40px; bottom: -1px;
  z-index: 2;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 10px 10px 0 0;
  padding: 26px 30px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.contact-row { display: flex; align-items: center; gap: 12px; }
.contact-row .i { width: 22px; height: 22px; color: var(--white); flex-shrink: 0; }
.contact-row strong { display: block; font-size: 13.5px; }
.contact-row span { display: block; font-size: 12px; color: rgba(255,255,255,0.75); }

/* =========================================================
   IMPACT STATS
   ========================================================= */
.impact-stats { background: var(--ink); padding: 50px 0; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 110px 0; background: var(--cream); }
.faq .section-head-center { text-align: center; margin-bottom: 50px; }
.faq .section-head-center h2 { margin: 14px auto 0; }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.faq-toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(211,47,47,0.1);
  color: var(--red);
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p { margin: 0; padding: 0 26px 24px; font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 680px; }

.faq-item.active .faq-toggle { transform: rotate(45deg); background: var(--red); color: var(--white); }
.faq-item.active .faq-answer { max-height: 220px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #cfc9c1; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 90px 24px 26px;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .logo { margin-bottom: 22px; }
.footer-brand .logo-img { height: 78px; }
.footer-brand h4 { font-family: var(--serif); color: var(--white); font-size: 22px; font-weight: 600; margin: 0 0 16px; line-height: 1.3; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; color: #a49d94; margin-bottom: 22px; max-width: 300px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 32px; height: 32px;
  border: 1.5px solid #4a453f;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: all 0.25s ease;
}
.socials svg { width: 16px; height: 16px; shape-rendering: geometricPrecision; }
.socials a:hover { background: var(--red); border-color: var(--red); }

.footer-col h5 { color: var(--white); font-size: 15px; letter-spacing: 0.03em; margin: 0 0 10px; }
.footer-col .rule { display: block; width: 28px; height: 2px; background: var(--red); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col ul li a {
  font-size: 14px;
  color: #b8b1a8;
  display: flex;
  justify-content: space-between;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-contact .contact-item { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.footer-contact .contact-item svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer-contact .contact-item p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #b8b1a8; }
.footer-contact .muted { color: #8b8479; font-size: 12.5px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item { display: flex; align-items: center; gap: 16px; }
.stat-item svg { width: 46px; height: 46px; color: var(--red); flex-shrink: 0; }
.stat-item strong { display: block; font-family: var(--serif); font-size: 26px; color: var(--white); font-weight: 700; }
.stat-item span { display: block; font-size: 12.5px; color: #a49d94; line-height: 1.4; }

.footer-bottom { padding: 20px 0; border-top: 1px solid #2a2621; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #8b8479;
}
.footer-links a:hover { color: var(--white); }

/* =========================================================
   NAV ACTIVE STATE / SHARED EXTRAS
   ========================================================= */
.main-nav a.active { color: var(--white); background: var(--red); }
.main-nav a.active:hover { background: var(--red-dark); }
.accent-red { color: var(--red); }

.btn-outline-red {
  background: transparent;
  color: var(--ink);
  border-color: var(--red);
}
.btn-outline-red:hover { background: var(--red); color: var(--white); }

/* =========================================================
   ABOUT — HERO
   ========================================================= */
.about-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.about-hero-full { min-height: 100vh; min-height: 100svh; }
.about-hero-bg { position: absolute; inset: 0; z-index: 0; }
.about-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.about-hero-bg-kenburns img { animation: heroKenBurns 16s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  .about-hero-bg-kenburns img { animation: none; }
}
.about-hero-overlay { display: none; }
.about-hero-shape {
  position: absolute;
  right: 0; bottom: 0;
  width: 200px; height: 160px;
  background: var(--red);
  opacity: 0.85;
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
  z-index: 1;
}
.about-hero-inner { position: relative; z-index: 2; padding-top: 70px; }
.about-hero-panel {
  display: block;
  margin-left: auto;
  max-width: 580px;
  background: rgba(8,6,5,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 30px 38px;
  border-radius: 16px;
}
.about-hero-inner h1 {
  font-size: clamp(44px, 6vw, 68px);
  margin: 0 0 14px;
}
.about-hero-inner p { font-size: 16px; color: #e8e2d8; max-width: 480px; margin: 0; }

/* =========================================================
   ABOUT — OUR STORY
   ========================================================= */
.our-story { padding: 110px 0; background: var(--white); overflow: hidden; }
.our-story-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: stretch;
}
.our-story-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.our-story-text p { color: var(--muted); line-height: 1.8; max-width: 440px; }
.our-story-cta { margin-top: 8px; }
.our-story-image {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 30px 60px rgba(23,17,14,0.14);
}
.our-story-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.6s ease; }
.our-story-image:hover img { transform: scale(1.05); }
.our-story-badge {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 1;
  background: rgba(10,8,7,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px 24px;
  color: var(--white);
}
.our-story-badge strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold-light); }
.our-story-badge span { display: block; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-top: 2px; }

/* =========================================================
   ABOUT — STATS BAR
   ========================================================= */
.about-stats { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); padding: 46px 0; }
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.about-stat { display: flex; flex-direction: column; align-items: center; color: var(--white); }
.about-stat svg { width: 38px; height: 38px; color: var(--gold-light); margin-bottom: 10px; }
.about-stat strong { font-family: var(--serif); font-size: 30px; font-weight: 700; margin-bottom: 4px; }
.about-stat span { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.8); }

/* =========================================================
   ABOUT — PHILOSOPHY + APPROACH
   ========================================================= */
.philosophy { padding: 110px 0 100px; background: var(--cream); }
.philosophy-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: stretch;
  margin-bottom: 70px;
}
.philosophy-text { display: flex; flex-direction: column; justify-content: center; }
.philosophy-text p { color: var(--muted); line-height: 1.8; max-width: 420px; margin-bottom: 26px; }
.philosophy-image { position: relative; border-radius: 10px; overflow: hidden; min-height: 380px; box-shadow: 0 24px 50px rgba(23,17,14,0.12); }
.philosophy-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.approach-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.approach-item {
  background: var(--white);
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.approach-item svg { width: 38px; height: 38px; color: var(--red); margin-bottom: 16px; }
.approach-item h5 { margin: 0 0 8px; font-size: 15px; }
.approach-item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* =========================================================
   ABOUT — OUR PROCESS
   ========================================================= */
.process { padding: 110px 0; background: var(--ink); color: var(--white); }
.process .eyebrow-light { color: var(--gold-light); }
.process h2 { color: var(--white); }
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.process-card { border-radius: 10px; overflow: hidden; background: #262422; }
.process-grid .process-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.process-card img { width: 100%; height: 320px; object-fit: cover; }
.process-card h4 { font-family: var(--serif); font-size: 20px; margin: 22px 24px 10px; }
.process-card p { font-size: 13.5px; line-height: 1.7; color: #b8b1a8; margin: 0 24px 24px; }

/* =========================================================
   ABOUT — OUR TEAM
   ========================================================= */
.team-section { padding: 110px 0; background: var(--white); }
.team-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: stretch;
}
.team-text { display: flex; flex-direction: column; justify-content: center; }
.team-image { position: relative; border-radius: 10px; overflow: hidden; min-height: 380px; box-shadow: 0 24px 50px rgba(23,17,14,0.12); }
.team-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.team-text p { color: var(--muted); line-height: 1.8; max-width: 420px; }

/* =========================================================
   HOME — ABOUT (intro, right after hero)
   ========================================================= */
.home-about { padding: 110px 0; background: var(--cream-2); overflow: hidden; }
.home-about-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.home-about-media {
  position: relative;
  min-height: 480px;
}
.ha-img { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(23,17,14,0.16); }
.ha-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.6s ease; }
.ha-img:hover img { transform: scale(1.06); }
.ha-img-main { top: 0; right: 0; width: 78%; height: 84%; z-index: 1; }
.ha-img-secondary { left: 0; bottom: 0; width: 52%; height: 46%; z-index: 2; border: 6px solid var(--white); box-shadow: 0 20px 40px rgba(23,17,14,0.2); }
.ha-badge {
  position: absolute;
  left: 4%; top: 4%;
  z-index: 3;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 16px 32px rgba(179,29,29,0.35);
}
.ha-badge strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold-light); line-height: 1; }
.ha-badge span { display: block; font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase; margin-top: 6px; padding: 0 12px; line-height: 1.35; }

.home-about-text .eyebrow { font-weight: 800; }
.home-about-text .serif-heading { font-weight: 800; }
.home-about-text p { color: var(--muted); line-height: 1.8; max-width: 460px; }
.home-about-points { display: flex; flex-direction: column; gap: 20px; margin: 30px 0 34px; }
.ha-point { display: flex; align-items: flex-start; gap: 16px; }
.ha-point svg { width: 32px; height: 32px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.ha-point strong { display: block; font-size: 15px; margin-bottom: 3px; }
.ha-point span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 767px) {
  /* Large desktop section padding (100-130px) feels excessive once every
     section has stacked to one column on mobile — trim it for a tighter,
     still-premium mobile rhythm without touching desktop/tablet spacing. */
  .home-about, .projects, .build-process, .our-story, .philosophy,
  .process, .team-section, .what-we-do, .why-choose, .testimonials,
  .faq, .contact-info-section, .projects-listing {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .locations { padding: 64px 0; }
  .final-cta { padding-top: 70px; }
  .section-head { margin-bottom: 32px; }
}

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .steps-track { grid-template-columns: repeat(2, 1fr); }
  .lifestyle-inner { grid-template-columns: 1fr; }
  .locations-inner { grid-template-columns: 1fr; }
  .locations-stats { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .our-story-inner, .philosophy-inner, .team-inner { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .home-about-inner { grid-template-columns: 1fr; }
  .home-about-media { min-height: 420px; margin-bottom: 10px; }
  /* Homepage "Our Projects" teaser: 2-up on tablet instead of squeezing
     3 image-heavy cards into narrow columns (the listing page's #projectGrid
     already gets this same treatment further up). */
  #sec-projects_teaser .project-grid { justify-content: center; }
  #sec-projects_teaser .project-card { flex-basis: calc(50% - 14px); flex-grow: 0; }
}

@media (max-width: 860px) {
  .contact-card { position: relative; z-index: 2; margin-top: 40px; flex-direction: column; gap: 18px; border-radius: 10px; }
  .final-cta { padding-bottom: 60px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 767px) {
  .hero-project-card { display: none; }
  .hero-title { font-size: 40px; }
  .steps-track { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .locations-stats { grid-template-columns: 1fr; }
  .gallery-main img { min-height: 220px; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .about-hero-shape { width: 120px; height: 100px; }
  .home-about-media { min-height: 320px; }
  .ha-badge { width: 92px; height: 92px; left: 2%; top: 2%; }
  .ha-badge strong { font-size: 20px; }
  .ha-badge span { font-size: 9px; }
  /* Text+image sections already stack to one column at tablet width (see the
     1080px block above); on phones the fixed 380-420px image min-heights
     produce an unnecessarily tall, narrow crop, so shrink them here. */
  .our-story-image, .philosophy-image, .team-image { min-height: 280px; }
}

/* =========================================================
   CONTACT — HERO
   ========================================================= */
.contact-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.contact-hero-full { min-height: 100vh; min-height: 100svh; }
.contact-hero-bg { position: absolute; inset: 0; z-index: 0; }
.contact-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-hero-overlay { display: none; }
.contact-hero-inner { position: relative; z-index: 1; padding-top: 70px; }
.contact-hero-inner > * { max-width: 620px; }
.contact-hero-inner .eyebrow, .contact-hero-inner .breadcrumb, .contact-hero-title, .contact-hero-desc {
  text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 6px 24px rgba(0,0,0,0.55);
}
.contact-hero-title {
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.18;
}
.contact-hero-desc { font-size: 16px; line-height: 1.7; color: #e8e2d8; max-width: 440px; margin: 0 0 30px; }
/* Lets a single line (e.g. "Projects Built To Last.") stay unbroken and
   overflow past the 620px hero column at its natural size, without
   widening the column itself — so line 1's own wrapping is untouched. */
.hero-line-fit { display: inline-block; white-space: nowrap; max-width: none; }
@media (max-width: 767px) {
  .hero-line-fit { white-space: normal; }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.action-cards .action-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.action-cards .action-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.action-cards .action-card.reveal:nth-child(3) { transition-delay: 0.25s; }

/* =========================================================
   CONTACT — GET IN TOUCH + FORM
   ========================================================= */
.contact-info-section { padding: 100px 0 90px; background: var(--cream); scroll-margin-top: 100px; }

.git-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(23,17,14,0.14);
}
.git-panel { padding: 56px 48px; }
.git-panel-dark {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.git-panel-dark::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,47,47,0.35) 0%, rgba(211,47,47,0) 70%);
}
.git-panel-dark h2 { color: var(--white); margin-bottom: 14px; }
.git-intro { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.72); max-width: 340px; margin: 0 0 34px; position: relative; z-index: 1; }

.git-list { display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 1; }
.git-item { display: flex; align-items: flex-start; gap: 16px; transition: transform 0.3s ease; }
.git-item:hover { transform: translateX(6px); }
.git-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  transition: background 0.3s ease, transform 0.3s ease;
}
.git-item:hover .git-icon { background: var(--red); border-color: var(--red); color: var(--white); transform: scale(1.08) rotate(-4deg); }
.git-icon svg { width: 20px; height: 20px; }
.git-item h5 { margin: 0 0 4px; font-size: 14.5px; color: var(--white); }
.git-item p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.85); }
.git-item .muted { display: block; font-size: 11.5px; color: rgba(255,255,255,0.5); margin-top: 3px; }

.git-panel-light { display: flex; flex-direction: column; background: var(--white); }
.git-panel-light h2 { margin-bottom: 22px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }

.field { position: relative; margin-bottom: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid #ddd7cd;
  background: var(--white);
  border-radius: 8px;
  padding: 22px 16px 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; padding-top: 24px; }
.field label {
  position: absolute;
  left: 16px; top: 16px;
  font-size: 14px;
  color: #a49d94;
  pointer-events: none;
  transition: all 0.2s ease;
  background: var(--white);
  padding: 0 2px;
}
.field textarea + label { top: 18px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237a746c' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  color: var(--ink);
  cursor: pointer;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  top: -8px;
  left: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--red);
}
.form-row .field { margin-bottom: 0; }
.contact-form > .field { margin-bottom: 18px; }

.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-shine:hover::after { left: 130%; }

.git-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #eee7db;
}
.git-trust-item { text-align: center; }
.git-trust-item strong { display: block; font-family: var(--serif); font-size: 20px; color: var(--red); font-weight: 700; }
.git-trust-item span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }


/* =========================================================
   CONTACT — MAP + LOCATIONS
   ========================================================= */
.map-locations { padding: 0 0 100px; background: var(--white); }
.map-locations-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.map-panel { position: relative; border-radius: 16px; overflow: hidden; min-height: 480px; min-width: 0; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.map-embed { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(0.15) contrast(1.05); }

.map-badge {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: rgba(15,12,11,0.85);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 30px;
  pointer-events: none;
}
.map-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 rgba(46,204,113,0.6);
  animation: mapDotPulse 2s infinite;
}
@keyframes mapDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

.map-overlay-card {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}
.map-overlay-pin {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(211,47,47,0.1);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  animation: pinBounce 2.4s ease-in-out infinite;
}
.map-overlay-pin svg { width: 22px; height: 22px; }
.map-overlay-card strong { display: block; font-size: 14px; color: var(--ink); }
.map-overlay-card span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.map-overlay-card > div { flex: 1; min-width: 0; }
.map-overlay-link {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.map-overlay-link:hover { background: var(--red-dark); transform: translateX(3px); }
.map-overlay-link svg { width: 18px; height: 18px; }

.locations-panel {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-radius: 16px;
  padding: 44px 38px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  min-width: 0; /* let the grid column shrink below the nowrap "View All Locations" button's natural width instead of the button forcing the whole row (and page) wider */
}
.locations-panel h2 { color: var(--white); margin-bottom: 22px; }
.location-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin: 0 0 28px;
}
.location-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,0.9); }
.location-list li svg { width: 17px; height: 17px; color: var(--gold-light); flex-shrink: 0; }

.locations-teaser {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  height: 150px;
}
.locations-teaser img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.locations-teaser:hover img { transform: scale(1.08); }
.locations-teaser::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,6,5,0.85) 0%, rgba(8,6,5,0.1) 60%);
}
.locations-teaser-tag {
  position: absolute;
  left: 16px; bottom: 14px; right: 16px;
  z-index: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.locations-teaser-tag .arrow { transition: transform 0.25s ease; }
.locations-teaser:hover .locations-teaser-tag .arrow { transform: translateX(4px); }

/* =========================================================
   CONTACT — CTA BANNER
   ========================================================= */
.contact-cta-banner { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); padding: 44px 0; }
.cta-banner-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.cta-banner-icon {
  width: 58px; height: 58px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.cta-banner-icon svg { width: 26px; height: 26px; }
.cta-banner-text { flex: 1; min-width: 260px; }
.cta-banner-text .eyebrow-gold { margin-bottom: 6px; }
.cta-banner-text h3 { color: var(--white); font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 6px; }
.cta-banner-sub { margin: 0; color: rgba(255,255,255,0.85); font-size: 14px; }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: var(--white); color: var(--red-dark); border-color: var(--white); }

/* =========================================================
   CONTACT PAGE — ANIMATIONS
   ========================================================= */

/* hero: slow continuous Ken Burns zoom on the background photo */
.contact-hero-bg-kenburns img { animation: heroKenBurns 16s ease-in-out infinite alternate; }
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-hero-bg-kenburns img { animation: none; }
}

/* hero: staggered entrance for eyebrow / heading / copy / button on load */
.hero-animate > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s cubic-bezier(.16,.84,.44,1) forwards;
}
.hero-animate > *:nth-child(1) { animation-delay: 0.15s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.32s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.5s; }
.hero-animate > *:nth-child(4) { animation-delay: 0.68s; }
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* get in touch: cascading reveal for each contact method */
.git-list .git-item.reveal:nth-child(1) { transition-delay: 0.08s; }
.git-list .git-item.reveal:nth-child(2) { transition-delay: 0.18s; }
.git-list .git-item.reveal:nth-child(3) { transition-delay: 0.28s; }
.git-list .git-item.reveal:nth-child(4) { transition-delay: 0.38s; }

/* form: fields cascade in after the card settles */
.contact-form .form-row.reveal:nth-child(1) { transition-delay: 0.15s; }
.contact-form .form-row.reveal:nth-child(2) { transition-delay: 0.25s; }
.contact-form .field.reveal { transition-delay: 0.35s; }
.contact-form .btn-shine.reveal { transition-delay: 0.45s; }

/* form fields: soft glow on focus, in addition to the border-color change */
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(211,47,47,0.1);
}

/* map: badge and overlay card settle in just after the map itself fades in */
.map-badge.reveal { transition-delay: 0.2s; }
.map-overlay-card.reveal { transition-delay: 0.35s; }

/* locations: pins cascade in left to right */
.location-list li.reveal:nth-child(1) { transition-delay: 0.1s; }
.location-list li.reveal:nth-child(2) { transition-delay: 0.18s; }
.location-list li.reveal:nth-child(3) { transition-delay: 0.26s; }
.location-list li.reveal:nth-child(4) { transition-delay: 0.34s; }
.locations-teaser.reveal { transition-delay: 0.45s; }

/* cta banner: gentle breathing pulse on the phone icon to draw the eye */
.cta-icon-pulse { animation: ctaIconPulse 2.6s ease-in-out infinite; }
@keyframes ctaIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-icon-pulse { animation: none; }
}

@media (max-width: 1080px) {
  .git-card { grid-template-columns: 1fr; }
  .git-panel { padding: 44px 34px; }
  .map-locations-grid { grid-template-columns: 1fr; }
  .map-panel { min-height: 320px; }
}

@media (max-width: 767px) {
  .form-row { grid-template-columns: 1fr; }
  .location-list { grid-template-columns: 1fr; }
  .git-panel { padding: 34px 22px; }
  .map-overlay-card { flex-wrap: wrap; }
  .cta-banner-inner { text-align: center; justify-content: center; }
  .cta-banner-icon { display: none; }
}

/* =========================================================
   SERVICES — HERO
   ========================================================= */
.services-hero .contact-hero-overlay,
.projects-hero .contact-hero-overlay,
.contact-page-hero .contact-hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(10,8,7,0.92) 0%, rgba(10,8,7,0.72) 28%, rgba(10,8,7,0.22) 55%, rgba(10,8,7,0.05) 75%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.05) 70%, rgba(0,0,0,0.65) 100%);
}
.hero-cta-group { display: flex; gap: 18px; flex-wrap: wrap; }

/* =========================================================
   SERVICES — WHAT WE DO
   ========================================================= */
.what-we-do { padding: 100px 0 110px; background: var(--cream); }
.what-we-do .section-head { align-items: flex-start; }
.section-head-desc { max-width: 360px; font-size: 14.5px; line-height: 1.8; color: var(--muted); margin: 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}
.service-card { text-align: center; }
.service-card-img { border-radius: 10px; overflow: hidden; }
.service-card-img img { width: 100%; height: 190px; object-fit: cover; }
.service-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  margin: -28px auto 0;
  position: relative;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  color: var(--red);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h4 { font-size: 16.5px; margin: 16px 0 10px; line-height: 1.35; }
.service-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0; max-width: 260px; margin-left: auto; margin-right: auto; }

/* =========================================================
   SERVICES — WHY CHOOSE US
   ========================================================= */
.why-choose { padding: 100px 0 110px; background: var(--white); }
.why-choose-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}
.why-choose-text { display: flex; flex-direction: column; justify-content: center; }
.why-choose-text h2 { margin-bottom: 30px; }
.why-choose-media { display: flex; flex-direction: column; }
.why-choose-media .why-choose-image { flex: 1; }
.why-choose-media .why-choose-image img { height: 100%; min-height: 260px; }
.choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}
.choose-item { display: flex; gap: 14px; align-items: flex-start; }
.choose-icon { flex-shrink: 0; width: 34px; height: 34px; color: var(--red); }
.choose-icon svg { width: 100%; height: 100%; }
.choose-item h5 { margin: 0 0 6px; font-size: 15px; }
.choose-item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; }

.why-choose-image { border-radius: 10px 10px 0 0; overflow: hidden; }
.why-choose-image img { width: 100%; height: 300px; object-fit: cover; }
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 0 0 10px 10px;
  padding: 26px 18px;
}
.stats-strip-item { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--white); gap: 8px; }
.stats-strip-item svg { width: 26px; height: 26px; color: var(--gold-light); }
.stats-strip-item strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.stats-strip-item span { display: block; font-size: 11px; color: rgba(255,255,255,0.8); line-height: 1.3; }

/* =========================================================
   SERVICES — TESTIMONIALS
   ========================================================= */
.testimonials { padding: 90px 0 100px; background: var(--cream); }
.testimonials .section-head { margin-bottom: 44px; }
.testimonials .link-arrow { margin-top: 14px; display: inline-flex; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 14px;
  padding: 42px 30px 30px;
  box-shadow: 0 10px 28px rgba(23,17,14,0.06);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.16,.84,.44,1), box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid transparent;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -18px; left: 22px;
  font-family: var(--serif);
  font-size: 100px;
  font-weight: 700;
  color: rgba(211,47,47,0.07);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(23,17,14,0.14);
  border-color: rgba(211,47,47,0.12);
}
.testimonial-card:hover::after { transform: scaleX(1); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; margin-bottom: 16px; position: relative; z-index: 1; }
.testimonial-card p { font-size: 13.5px; line-height: 1.8; color: var(--ink); margin: 0 0 24px; position: relative; z-index: 1; }
.testimonial-person { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; margin-top: auto; }
.avatar-initials {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: 0 6px 16px rgba(211,47,47,0.3);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-person strong { display: block; font-size: 13.5px; }
/* .role-text, not a bare "span" selector — a generic descendant selector here
   would also match .avatar-initials (it's a span too) and silently override
   its flex-centering with this rule's display:block, which is exactly the
   bug that made the avatar-initials render above the circle instead of
   inside it. */
.testimonial-person .role-text { display: block; font-size: 12px; color: var(--muted); }

@media (max-width: 1080px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SERVICES PAGE — ANIMATIONS
   ========================================================= */
.service-grid .service-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.service-grid .service-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.service-grid .service-card.reveal:nth-child(3) { transition-delay: 0.19s; }
.service-grid .service-card.reveal:nth-child(4) { transition-delay: 0.05s; }
.service-grid .service-card.reveal:nth-child(5) { transition-delay: 0.12s; }
.service-grid .service-card.reveal:nth-child(6) { transition-delay: 0.19s; }

.testimonial-grid .testimonial-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.testimonial-grid .testimonial-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.testimonial-grid .testimonial-card.reveal:nth-child(3) { transition-delay: 0.25s; }
.testimonials .carousel-controls.reveal { transition-delay: 0.1s; }
.cta-banner-actions.reveal { transition-delay: 0.12s; }

@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-choose-inner { grid-template-columns: 1fr; }
  .what-we-do .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  .service-grid { grid-template-columns: 1fr; }
  .choose-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   PROJECTS PAGE — FAQ (chevron toggle variant)
   ========================================================= */
.faq-toggle-chevron {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(211,47,47,0.1);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}
.faq-toggle-chevron svg { width: 15px; height: 15px; transition: transform 0.3s ease; }
.faq-item.active .faq-toggle-chevron { background: var(--red); color: var(--white); }
.faq-item.active .faq-toggle-chevron svg { transform: rotate(180deg); }
.faq-list .faq-item.reveal:nth-child(1) { transition-delay: 0.04s; }
.faq-list .faq-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.faq-list .faq-item.reveal:nth-child(3) { transition-delay: 0.12s; }
.faq-list .faq-item.reveal:nth-child(4) { transition-delay: 0.16s; }
.faq-list .faq-item.reveal:nth-child(5) { transition-delay: 0.2s; }
.faq-list .faq-item.reveal:nth-child(6) { transition-delay: 0.24s; }

/* =========================================================
   PROJECTS PAGE — HERO BREADCRUMB
   ========================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 18px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .arrow { color: var(--gold); }
.breadcrumb span:last-child { color: var(--white); font-weight: 600; }

/* =========================================================
   PROJECTS PAGE — STATS BAR
   ========================================================= */
.projects-stats { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); padding: 46px 0; }
.projects-stats .stat-item svg { color: var(--gold-light); }
.projects-stats .stat-item strong { color: var(--white); }
.projects-stats .stat-item span { color: rgba(255,255,255,0.8); }

/* =========================================================
   PROJECTS PAGE — LISTING + FILTERS
   ========================================================= */
.projects-listing { padding: 90px 0 110px; background: var(--cream); }
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-tab {
  border: 1.5px solid #ddd7cd;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 11px 20px;
  border-radius: 30px;
  transition: all 0.25s ease;
}
.filter-tab:hover { border-color: var(--red); color: var(--red); }
.filter-tab.active { background: var(--red); border-color: var(--red); color: var(--white); }

.filter-sort select {
  border: 1.5px solid #ddd7cd;
  background: var(--white);
  border-radius: 30px;
  padding: 11px 40px 11px 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237a746c' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  cursor: pointer;
}
.filter-sort select:focus { outline: none; border-color: var(--red); }

.project-card { transition: opacity 0.3s ease, transform 0.3s ease; }
.project-card.hidden { display: none; }

.filter-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 0 0; }
.filter-empty a { color: var(--red); font-weight: 600; }

/* =========================================================
   PROJECTS PAGE — CTA BANNER
   ========================================================= */
.projects-cta-banner { background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 100%); padding: 56px 0; }
.projects-cta-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
}
.projects-cta-text h2 { color: var(--white); font-size: clamp(24px, 2.8vw, 32px); margin: 10px 0 0; }
.projects-cta-features { display: flex; gap: 30px; flex-wrap: wrap; }
.cta-feature { display: flex; align-items: center; gap: 12px; max-width: 190px; }
.cta-feature svg { width: 34px; height: 34px; color: var(--gold-light); flex-shrink: 0; }
.cta-feature strong { display: block; color: var(--white); font-size: 13.5px; }
.cta-feature span { display: block; color: rgba(255,255,255,0.7); font-size: 12px; line-height: 1.4; margin-top: 2px; }

@media (max-width: 1200px) {
  .projects-cta-inner { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .projects-cta-features { gap: 20px; }
  .cta-feature { max-width: none; }
}

@media (max-width: 767px) {
  .project-card, #projectGrid.project-grid .project-card { flex-basis: 100%; }
  .filter-tabs { gap: 8px; }
  .filter-tab { padding: 9px 16px; font-size: 12px; }
  .filter-sort, .filter-sort select { width: 100%; }
}

/* =========================================================
   SITE MODAL (form success/error popup — replaces alert())
   ========================================================= */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.site-modal.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,8,6,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.site-modal-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 16px;
  padding: 44px 36px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.32);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.35s cubic-bezier(.2,.8,.3,1.2);
}
.site-modal.is-open .site-modal-card { transform: scale(1) translateY(0); }

.site-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.05);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.site-modal-close:hover { background: rgba(0,0,0,0.1); }
.site-modal-close svg { width: 16px; height: 16px; }

.site-modal-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  background: var(--red);
  transition: background 0.2s ease;
}
.site-modal-icon svg { width: 30px; height: 30px; }
.site-modal-icon-error { display: none; }
.site-modal.is-error .site-modal-icon { background: var(--maroon-dark); }
.site-modal.is-error .site-modal-icon-success { display: none; }
.site-modal.is-error .site-modal-icon-error { display: block; }

.site-modal-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.site-modal-message { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0 0 26px; }
.site-modal-card .btn { width: 100%; justify-content: center; }

@media (max-width: 480px) {
  .site-modal-card { padding: 38px 26px 28px; }

  /* Smallest phones: trim container padding for a bit more usable width,
     and shrink the header so logo + Enquire Now + hamburger all fit
     comfortably in one row without crowding. */
  .container { padding: 0 16px; }
  .header-inner { gap: 10px; }
  .logo-img { height: 48px; }
  .header-actions { gap: 10px; }
  .header-actions .btn { padding: 11px 16px; font-size: 11.5px; }
  .hamburger { width: 34px; height: 34px; }

  /* Grids that still read fine at 2 columns down to ~480px get cramped
     narrower than that — drop to a single column only here. */
  .approach-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }

  /* Full-width, easier-to-tap CTAs once buttons no longer sit side by side. */
  .hero-cta-group .btn,
  .cta-banner-actions .btn,
  .contact-form .btn-shine {
    width: 100%;
    justify-content: center;
  }

  /* "View All Locations" is a nowrap button inside a narrow flex column —
     let it wrap here instead of forcing the row (and page) wider. */
  .locations-panel .btn { white-space: normal; text-align: center; }
}

/* =========================================================
   LEGAL MODALS — Privacy Policy / Terms & Conditions
   ========================================================= */
body.legal-modal-open { overflow: hidden; }
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.legal-modal.is-open { opacity: 1; visibility: visible; }
.legal-modal-backdrop { position: absolute; inset: 0; background: rgba(20,15,13,0.68); }
.legal-modal-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  max-width: 780px;
  width: 100%;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s ease;
}
.legal-modal.is-open .legal-modal-card { transform: scale(1) translateY(0); }
.legal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  z-index: 2;
  transition: background 0.2s ease;
}
.legal-modal-close:hover { background: rgba(0,0,0,0.12); }
.legal-modal-close svg { width: 16px; height: 16px; }

/* Header band uses the logo's own gold-to-amber gradient, with the logo's
   cream wordmark tone for the title text — ties the popup back to the
   brand mark itself instead of the site's usual red accent. */
.legal-modal-header {
  flex-shrink: 0;
  padding: 34px 56px 22px 40px;
  background: linear-gradient(135deg, #fed168 0%, #f8b550 55%, #f29c3b 100%);
}
.legal-modal-header h2 { font-size: 26px; margin: 0 0 4px; color: #4a2c05; }
.legal-updated { color: #6b4715; font-size: 13.5px; margin: 0; opacity: 0.85; }

.legal-modal-body { overflow-y: auto; padding: 30px 40px 40px; }
.legal-modal-body h3 {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 30px 0 12px;
}
.legal-modal-body h3:first-of-type { margin-top: 0; }
.legal-modal-body p { font-size: 14.5px; line-height: 1.7; color: #3d3a36; margin: 0 0 14px; }
.legal-modal-body ul { margin: 0 0 16px; }
.legal-modal-body ul li {
  position: relative;
  list-style: none;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #3d3a36;
  margin-bottom: 6px;
}
.legal-modal-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9822c;
}
.legal-modal-body strong { color: var(--ink); }
.legal-modal-body a { color: #b5651d; text-decoration: underline; }
.legal-modal-body a:hover { color: #8a4c14; }

@media (max-width: 600px) {
  .legal-modal-card { max-height: 90vh; }
  .legal-modal-header { padding: 30px 46px 18px 22px; }
  .legal-modal-body { padding: 22px 22px 30px; }
}
