/* ==========================================================================
   Cassidy Builders Group — site styles
   Brand: charcoal / black with warm gold, Playfair Display + Montserrat
   ========================================================================== */

:root {
  --black: #0f0f0f;
  --charcoal: #1a1a1a;
  --charcoal-2: #232323;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #c9a46b;
  --gold-light: #e2c799;
  --copper: #b87b45;
  --cream: #f6f2ea;
  --stone: #e9e3d8;
  --ink: #1b1b1b;
  --muted: #8d8a85;
  --text-light: #d9d5ce;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.2em; }

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--dark { background: var(--charcoal); color: var(--text-light); }
.section--black { background: var(--black); color: var(--text-light); }
.section--stone { background: var(--stone); }
.section--dark h2, .section--black h2,
.section--dark h3, .section--black h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section--dark .section-head p,
.section--black .section-head p { color: #a9a49c; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 34px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn--dark:hover { background: transparent; color: var(--black); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.3s;
}
.link-arrow:hover { border-color: var(--gold); }

/* ---------- Header ---------- */
.topbar {
  background: var(--black);
  color: #a9a49c;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
}
.topbar a:hover { color: var(--gold); }
.topbar__links { display: flex; gap: 26px; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand img { height: 52px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.01em; }
.brand__tag {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 38px; }
.nav a:not(.btn) {
  position: relative;
  color: #d9d5ce;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav a:not(.btn):hover,
.nav a.is-active { color: #fff; }
.nav a:not(.btn):hover::after,
.nav a.is-active::after { width: 100%; }
.nav .btn { padding: 13px 24px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { content: ""; left: 0; top: -7px; }
.nav-toggle span::after { content: ""; left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  min-height: calc(100svh - 120px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--black);
}
.hero__media {
  position: absolute;
  inset: 0;
  background-color: #0f0f0f;
  background-image: radial-gradient(ellipse at 80% 20%, #2b2721 0%, #0f0f0f 60%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.66) 45%, rgba(10,10,10,0.25) 100%);
}
.page-hero .hero__media::after {
  background: linear-gradient(100deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.72) 55%, rgba(10,10,10,0.45) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,164,107,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,164,107,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding: 120px 0 140px; }
.hero__content { max-width: 780px; }
.hero h1 {
  font-size: clamp(2.8rem, 6.6vw, 5.6rem);
  line-height: 1.04;
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: #c9c4bb;
  max-width: 600px;
  margin-bottom: 44px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__badges {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.hero__badge {
  padding: 26px 40px;
  border-right: 1px solid var(--line);
}
.hero__badge:last-child { border-right: 0; }
.hero__badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.1;
}
.hero__badge span {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a9a49c;
}

.page-hero {
  position: relative;
  padding: clamp(110px, 14vw, 180px) 0 clamp(70px, 9vw, 110px);
  color: #fff;
  background: var(--black);
  overflow: hidden;
}
.page-hero .hero__media { animation: none; transform: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); max-width: 900px; }
.page-hero p { max-width: 640px; color: #c9c4bb; font-size: 1.1rem; margin: 0; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--charcoal-2);
  color: #a9a49c;
  border-bottom: 1px solid var(--line);
}
.trust .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 40px;
  padding: 26px 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__item svg { color: var(--gold); flex: none; }

/* ---------- Intro / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.split h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.split__lead { font-size: 1.12rem; color: #4a4741; }

.frame {
  position: relative;
  aspect-ratio: 4 / 5;
}
.frame::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  border: 1px solid var(--gold);
  z-index: 0;
}
.frame .img-slot { position: relative; z-index: 1; height: 100%; }

.signature {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.signature strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; display: block; }
.signature span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Image slots (graceful fallback when a photo is missing) ---------- */
.img-slot {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #2a2723 0%, #161616 100%);
}
.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.img-slot.is-missing img { display: none; }
.img-slot.is-missing::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(201,164,107,0.7);
  background-image:
    linear-gradient(rgba(201,164,107,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,164,107,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- Engagement scale ---------- */
.scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.scale__step {
  position: relative;
  padding: 44px 34px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.scale__step:hover { background: rgba(201,164,107,0.05); }
.scale__num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 26px;
  display: block;
}
.scale__bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 30px;
  position: relative;
}
.scale__bar::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--fill, 25%);
  background: linear-gradient(90deg, var(--copper), var(--gold));
}
.scale__step h3 { font-size: 1.5rem; margin-bottom: 14px; }
.scale__step p { font-size: 0.93rem; color: #a9a49c; margin: 0; }

/* ---------- Services grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.35);
}
.service .img-slot { aspect-ratio: 4 / 3; }
.service:hover .img-slot img { transform: scale(1.06); }
.service__body { padding: 34px 32px 38px; flex: 1; display: flex; flex-direction: column; }
.service__body h3 { font-size: 1.55rem; }
.service__body p { color: #5c5852; font-size: 0.95rem; flex: 1; }
.service__tag {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- Featured work (home) ---------- */
.featured {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}
.featured__item { position: relative; overflow: hidden; display: block; }
.featured__item .img-slot { height: 100%; }
.featured__item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.featured__item:nth-child(2) { grid-column: span 5; }
.featured__item:nth-child(3) { grid-column: span 5; }
.featured__item:nth-child(4) { grid-column: span 4; }
.featured__item:nth-child(5) { grid-column: span 4; }
.featured__item:nth-child(6) { grid-column: span 4; }
.featured__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 28px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  transform: translateY(12px);
  opacity: 0.92;
  transition: transform 0.5s var(--ease), opacity 0.5s;
  z-index: 2;
}
.featured__caption small {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.featured__caption h3 { font-size: 1.35rem; margin: 0; }
.featured__item:hover .featured__caption { transform: translateY(0); opacity: 1; }
.featured__item:hover .img-slot img { transform: scale(1.05); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { background: var(--black); padding: 50px 30px; text-align: center; }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}
.stat span { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: #a9a49c; }

/* ---------- Reviews ---------- */
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.rating {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 26px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
}
.rating__score { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.rating__meta { font-size: 0.78rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1rem; }

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.review {
  position: relative;
  background: #fff;
  padding: 46px 38px 38px;
  display: flex;
  flex-direction: column;
}
.review::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 28px;
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
  color: rgba(201,164,107,0.25);
}
.review blockquote {
  margin: 18px 0 30px;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: #2b2925;
  flex: 1;
}
.review footer { display: flex; align-items: center; gap: 14px; }
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--charcoal);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.1rem;
}
.review cite { font-style: normal; font-weight: 600; font-size: 0.9rem; display: block; }
.review small { font-size: 0.72rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: #fff;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,164,107,0.18), transparent 60%);
}
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 860px; margin-inline: auto; }
.cta p { color: #a9a49c; max-width: 600px; margin: 0 auto 44px; font-size: 1.08rem; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ---------- Portfolio page ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 56px;
}
.filter {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a4741;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--gold); color: var(--ink); }
.filter.is-active { background: var(--black); border-color: var(--black); color: #fff; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.gallery__item .img-slot { width: 100%; aspect-ratio: 4 / 3; }
.gallery__item:hover .img-slot img { transform: scale(1.04); }
.gallery__item .featured__caption { padding: 50px 22px 18px; }
.gallery__item .featured__caption h3 { font-size: 1.12rem; }
.gallery__item.is-hidden { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8,8,8,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 90px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox figcaption { color: #c9c4bb; margin-top: 22px; font-family: var(--serif); font-size: 1.2rem; }
.lightbox figcaption small {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.lightbox button {
  position: absolute;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 54px; height: 54px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.lightbox button:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Services page detail rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding: clamp(50px, 6vw, 80px) 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.service-row:last-child { border-bottom: 0; }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media .img-slot { aspect-ratio: 5 / 4; }
.service-row h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.service-row p { color: #4a4741; }
.checklist { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { position: relative; padding-left: 26px; font-size: 0.93rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
}
.process--four { grid-template-columns: repeat(4, 1fr); }
.process__step {
  padding: 0 26px 0 0;
  position: relative;
}
.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 22px;
}
.process__step::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 70px;
  right: 18px;
  height: 1px;
  background: var(--line);
}
.process__step:last-child::after { display: none; }
.process__step h3 { font-size: 1.3rem; }
.process__step p { font-size: 0.9rem; color: #a9a49c; }

/* ---------- Values (about) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
}
.value { background: var(--cream); padding: 46px 38px; }
.value svg { color: var(--gold); margin-bottom: 22px; }
.value h3 { font-size: 1.4rem; }
.value p { font-size: 0.94rem; color: #5c5852; margin: 0; }

/* ---------- Family story (about) ---------- */
.family-photo { position: relative; }
.family-photo::before {
  content: "";
  position: absolute;
  inset: 24px 24px -24px -24px;
  border: 1px solid var(--gold);
}
.family-photo .img-slot { position: relative; aspect-ratio: 4 / 5; }
.family-photo img { object-position: 50% 72%; }
.story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.facts dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
}
.story__lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.45;
  color: var(--ink);
}
.story__text p:not(.story__lead) { color: #4a4741; font-size: 1.02rem; }
.facts {
  background: var(--black);
  color: var(--text-light);
  padding: 44px 40px;
}
.facts h3 { color: #fff; font-size: 1.5rem; margin-bottom: 26px; }
.facts dl { margin: 0; }
.facts dl > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.promise {
  margin-top: clamp(60px, 8vw, 110px);
  padding-top: clamp(50px, 6vw, 80px);
  border-top: 1px solid rgba(0,0,0,0.1);
  text-align: center;
}
.promise h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 760px; margin: 0 auto 50px; }
.promise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.1);
  text-align: left;
}
.promise__grid > div { background: var(--cream); padding: 38px 34px; }
.promise__grid h4 { font-size: 1.3rem; margin-bottom: 12px; }
.promise__grid h4::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 18px;
}
.promise__grid p { font-size: 0.94rem; color: #5c5852; margin: 0; }
.promise__close {
  max-width: 760px;
  margin: 50px auto 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
}
@media (max-width: 900px) {
  .promise__grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .family-photo { max-width: 520px; }
  .family-photo::before { inset: 14px 14px -14px -14px; }
  .facts dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .facts dl { grid-template-columns: 1fr; }
}

/* ---------- Free guide (lead magnet) ---------- */
.guide-book {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 8.5 / 11;
  margin-inline: auto;
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(201,164,107,0.06) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(201,164,107,0.06) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(160deg, #222 0%, #0f0f0f 70%);
  color: #fff;
  border: 1px solid rgba(201,164,107,0.35);
  box-shadow: 30px 40px 70px -30px rgba(0,0,0,0.6), inset 6px 0 0 rgba(255,255,255,0.04);
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease);
}
.guide-book:hover { transform: rotate(0deg) translateY(-6px); }
.guide-book::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201,164,107,0.4);
  pointer-events: none;
}
.guide-book img { width: 78px; margin-bottom: auto; }
.guide-book__kicker {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.guide-book__title {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1.02;
  margin-bottom: 18px;
}
.guide-book__title em { color: var(--gold); }
.guide-book__sub { font-size: 0.78rem; color: #b5b0a8; line-height: 1.5; }
.guide-book__rule { width: 40px; height: 2px; background: var(--gold); margin: 20px 0 14px; }
.guide-book__brand { font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: #8d8a85; }

.guide-promo {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
}
.guide-promo h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.guide-list { list-style: none; padding: 0; margin: 28px 0 38px; }
.guide-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
}
.guide-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.25em;
  width: 16px; height: 1px;
  background: var(--gold);
}
.guide-list li { border-color: rgba(0,0,0,0.1); }
.section--dark .guide-list li, .section--black .guide-list li { border-color: var(--line); }
.guide-promo > a { display: block; }

.guide-page {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(50px, 6vw, 90px);
  align-items: start;
}
.guide-page__aside { position: sticky; top: 130px; }
.guide-page__aside .guide-book { margin: 0 0 50px; }
.guide-form {
  background: #fff;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,0.4);
  min-height: 600px;
}
.guide-form iframe { display: block; border: 0; width: 100%; }
.guide-form__fallback { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }

.guide-callout {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 40px;
  padding: 24px 26px;
  background: var(--black);
  color: var(--text-light);
}
.guide-callout strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: #fff; font-weight: 500; }
.guide-callout span { font-size: 0.85rem; color: #a9a49c; }
.guide-callout .link-arrow { margin-left: auto; white-space: nowrap; }

@media (max-width: 900px) {
  .guide-promo, .guide-page { grid-template-columns: 1fr; }
  .guide-page__aside { position: static; }
  .guide-book { width: min(100%, 300px); }
  .guide-callout { flex-wrap: wrap; }
  .guide-callout .link-arrow { margin-left: 0; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact-info h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.contact-list { list-style: none; padding: 0; margin: 40px 0; }
.contact-list li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.contact-list svg { color: var(--gold); flex: none; margin-top: 4px; }
.contact-list small {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a, .contact-list span { font-family: var(--serif); font-size: 1.25rem; }
.contact-list a:hover { color: var(--copper); }

.form {
  background: #fff;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,0.4);
}
.form h3 { font-size: 1.8rem; }
.form > p { color: var(--muted); font-size: 0.94rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a4741;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { font-size: 0.78rem; color: var(--muted); margin: 18px 0 0; text-align: center; }
.form__success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__success { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #a9a49c; font-size: 0.9rem; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding: 90px 0 70px;
}
.footer .brand img { height: 64px; }
.footer__about { margin-top: 24px; max-width: 340px; }
.footer h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; }
.footer a:hover { color: var(--gold); }
.social { display: flex; gap: 12px; margin-top: 26px; }
.social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: border-color 0.3s, color 0.3s;
}
.social a:hover { border-color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media { animation: none; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .scale { grid-template-columns: repeat(2, 1fr); }
  .services, .reviews { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
  .process__step::after { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__badge { padding: 22px 28px; }
}

/* Menu: the three-line button and full-screen menu are used at every screen size. */
@media (min-width: 0px) {
  /* Full-screen menu. The header's blur (backdrop-filter) would trap a fixed
     child inside the header bar, so it is switched off while the menu is open. */
  .nav-open { overflow: hidden; }
  .nav-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--black); }
  .nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 110px 32px 40px;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(201,164,107,0.16), transparent 60%),
      var(--black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    z-index: -1;
    overflow-y: auto;
  }
  .nav a:not(.btn) {
    display: block;
    padding: 18px 4px;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav a.is-active { color: var(--gold); }
  .nav a.is-active::before { content: "\2014  "; color: var(--gold); }
  .nav .btn { margin-top: 32px; justify-content: center; padding: 18px 24px; font-size: 0.8rem; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-toggle { display: block; z-index: 2; }
}
@media (min-width: 901px) {
  /* Keep the open menu in a centered column on big screens. */
  .nav { padding: 130px max(32px, calc(50% - 280px)) 40px; }
}

@media (max-width: 900px) {
  .topbar__hours { display: none; }
  .split, .contact-grid, .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .frame { max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .featured__item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .featured__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .hero__badges { position: relative; width: 100%; }
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .hero .wrap { padding: 90px 0 60px; }
}

@media (max-width: 640px) {
  .brand__tag { font-size: 0.46rem; letter-spacing: 0.2em; margin-top: 3px; }
  .topbar__email { display: none; }
  .header .wrap { height: 72px; }
  .brand img { height: 42px; }
  .brand__name { font-size: 1.05rem; }
  .scale, .services, .reviews, .process { grid-template-columns: 1fr; }
  .form__row, .checklist { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; padding-top: 70px; }
  .hero__badges { flex-direction: row; }
  .hero__badge { flex: 1; padding: 18px 14px; text-align: center; }
  .hero__badge strong { font-size: 1.5rem; }
  .hero__badge span { font-size: 0.56rem; letter-spacing: 0.12em; }
  .lightbox { padding: 60px 16px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}
