/* ==========================================================================
   Andreea Pavlov Real Estate — site styles
   Palette: warm black with bone text and brushed-gold accents.
   Sections alternate white and warm black (.theme-light / .theme-dark).
   Change colours and fonts here only.
   ========================================================================== */

:root {
  --ink: #181513;        /* warm black: main background */
  --ink-2: #211D1A;      /* raised panels, alternate sections */
  --ink-3: #0F0D0B;      /* deepest sections, footer */
  --bone: #EFE9DF;       /* main text on warm black */
  --stone: #A89F92;      /* secondary text on warm black */
  --gold: #C9A66B;       /* brushed gold: accents, buttons, rules */
  --gold-soft: #DDBF8A;  /* gold hover */
  --white: #FFFFFF;      /* light pages and header */
  --line: rgba(239, 233, 223, .16);
  --accent-text: var(--gold); /* gold used as text; darker on white so it stays readable */
  --error: #F0A08F;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif; /* large display words, wordmark */
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;                            /* body text, labels, buttons */

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.3rem;
  --fs-lg: 1.8rem;
  --fs-xl: clamp(2.2rem, 4.6vw, 3.4rem);
  --fs-giant: clamp(3.2rem, 10vw, 9rem);
  --fs-statement: clamp(2rem, 4.8vw, 4.2rem);

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 100px;

  --page-muted: var(--stone);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--bone);
  background: var(--ink);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
strong { font-weight: 500; }

h1, h2, h3 { font-family: var(--sans); font-weight: 400; line-height: 1.05; margin: 0 0 .45em; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: 1.35rem; font-weight: 500; line-height: 1.2; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--page-muted); }
.label { display: block; color: var(--accent-text); font-size: .95rem; font-weight: 400; letter-spacing: .04em; margin-bottom: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 14px; font-weight: 500; }
.skip-link:focus { top: 8px; }

/* ---------- Logo lockup (the monogram is inline SVG in currentColor) ---------- */
.logo { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; color: inherit; }
.logo:hover { color: inherit; }
.logo-mark { width: 68px; height: auto; flex: none; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.logo-sub { font-weight: 300; font-size: .74rem; letter-spacing: .5em; text-transform: uppercase; margin-top: 9px; }
@media (max-width: 600px) {
  .logo { gap: 12px; }
  .logo-mark { width: 50px; }
  .logo-name { font-size: 1.1rem; letter-spacing: .22em; }
  .logo-sub { font-size: .6rem; letter-spacing: .4em; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 28px;
  font-family: var(--sans); font-weight: 400; font-size: .95rem; letter-spacing: .08em;
  border: 1px solid transparent; border-radius: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--white); color: var(--ink);   /* always white, with the logo and name in black */
  border-bottom: 1px solid rgba(24, 21, 19, .1);
  transition: background-color .45s ease, border-color .45s ease;
}
/* Header matches the page behind it (set in main.js) */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.header-right { display: flex; align-items: center; gap: 12px; transition: margin .45s ease; }
.header-cta { min-height: 44px; padding: 9px 22px; white-space: nowrap; transition: margin .45s ease, background-color .2s, border-color .2s, color .2s; }
/* Tablets: slightly more compact logo so both buttons fit */
@media (min-width: 761px) and (max-width: 1023px) {
  .site-header .logo-mark { width: 54px; }
  .site-header .logo { gap: 14px; }
  .site-header .logo-name { font-size: 1.25rem; letter-spacing: .2em; }
  .site-header .logo-sub { font-size: .64rem; letter-spacing: .42em; }
  .header-cta { padding: 9px 16px; font-size: .9rem; letter-spacing: .05em; }
}
/* Phones: logo plus Contact only */
@media (max-width: 760px) {
  .header-valuation { display: none; }
  .header-cta { padding: 8px 14px; font-size: .85rem; letter-spacing: .05em; }
  .site-header .wrap { gap: 10px; }
}
@media (max-width: 400px) {
  .logo-mark { width: 42px; }
  .logo { gap: 10px; }
  .logo-name { font-size: .98rem; letter-spacing: .16em; }
  .logo-sub { font-size: .54rem; letter-spacing: .36em; }
}
@media (max-width: 350px) {
  .logo-name { font-size: .86rem; letter-spacing: .1em; }
  .logo-sub { letter-spacing: .28em; }
  .header-cta { padding: 8px 10px; }
}

/* Home: header floats over the full-screen slideshow, then turns solid once you scroll past it */
/* Larger logo and name while floating over the photos (larger screens); shrinks back once you scroll */
.logo-mark, .logo-name, .logo-sub, .site-header .wrap { transition: width .45s ease, font-size .45s ease, letter-spacing .45s ease, min-height .45s ease; }
@media (min-width: 1024px) {
  body.has-hero.at-top .site-header .wrap { min-height: 132px; }
  body.has-hero.at-top .logo-mark { width: 96px; }
  body.has-hero.at-top .logo-name { font-size: 2.15rem; }
  body.has-hero.at-top .logo-sub { font-size: .92rem; }
  body.has-hero.at-top .header-right { margin-right: clamp(24px, 4vw, 64px); }
}
@media (prefers-reduced-motion: reduce) { .logo-mark, .logo-name, .logo-sub, .site-header .wrap { transition: none; } }
body.has-hero .site-header { position: fixed; left: 0; right: 0; }
body.has-hero.at-top .site-header {
  background: linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.35) 60%, rgba(255,255,255,0));
  background-origin: border-box; border-bottom-color: transparent; color: var(--ink);
}

/* ---------- Home: white header + full-width slideshow (Maggie Lind-style), headline on white below ---------- */
.hero-media { position: relative; height: 100vh; height: 100svh; min-height: 480px; }
.slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; overflow: hidden; background: #E9E4DC; }
.slides li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease-in-out; }
.slides li.active { opacity: 1; }
.slides picture { display: block; width: 100%; height: 100%; }
.slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); }
@media (prefers-reduced-motion: no-preference) {
  .slides li.active img { animation: drift 9s ease-out both; }
  @keyframes drift { from { transform: scale(1.08); } to { transform: scale(1.001); } }
}
.hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 1; background: linear-gradient(transparent, rgba(24,21,19,.35)); pointer-events: none; }
.slide-controls { position: absolute; z-index: 3; right: var(--gutter); bottom: 20px; display: flex; align-items: center; gap: 12px; }
.slide-dots { display: flex; gap: 6px; }
.slide-dots button { width: 28px; height: 28px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.slide-dots button::before { content: ""; width: 22px; height: 2px; background: rgba(255,255,255,.7); box-shadow: 0 0 4px rgba(0,0,0,.35); transition: background-color .3s; }
.slide-dots button[aria-current="true"]::before { background: var(--gold); }
.slide-pause { background: rgba(24,21,19,.6); color: var(--white); border: 1px solid rgba(255,255,255,.6); font: inherit; font-size: .8rem; letter-spacing: .08em; padding: 6px 12px; cursor: pointer; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.slide-caption { font-size: .95rem; color: var(--page-muted); margin: 0 0 18px; }
.slide-caption a { color: inherit; }
.intro h1 { font-size: clamp(3.4rem, 9vw, 9rem); font-weight: 400; line-height: .92; letter-spacing: -0.01em; margin: 0; }
.intro h1 span { display: inline; }
.hero-lede { font-size: var(--fs-md); max-width: 30ch; color: var(--page-muted); margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .intro h1 span { display: block; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; }
/* Alternating pages */
.theme-dark { background: var(--ink); color: var(--bone); }
.theme-light {
  background: var(--white); color: var(--ink);
  --page-muted: #5E564D; --stone: #5E564D; --line: rgba(24, 21, 19, .14); --accent-text: #8A6A33;
}
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px)); }
.intro { padding: clamp(110px, 12vw, 160px) 0 clamp(64px, 8vw, 120px); }

.statement { font-family: var(--serif); font-weight: 400; font-size: calc(var(--fs-statement) * 1.08); line-height: 1.1; letter-spacing: -0.005em; max-width: 21ch; margin: 0; }
.statement-wide { max-width: 25ch; }
.statement em { font-style: italic; color: var(--accent-text); }

.statement .w { transition: opacity .25s linear, color .25s linear; }
.js-fill .statement .w { opacity: .2; }
.js-fill .statement .w.on { opacity: 1; }

.giant { font-family: var(--serif); font-weight: 400; font-size: var(--fs-giant); line-height: .9; letter-spacing: -0.015em; margin: 0 0 .3em; }
.rise { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(60px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
  .js .rise.in { opacity: 1; transform: none; }
}
.rule { width: 72px; height: 1px; background: var(--gold); border: 0; margin: 0 0 32px; }

/* ---------- Featured listing ---------- */
#listing .giant { font-size: clamp(3rem, 7vw, 6.6rem); }
.listing-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 2.1 / 1; margin-bottom: clamp(40px, 6vw, 72px); }
.listing-gallery img { width: 100%; height: 100%; object-fit: cover; background: var(--ink-2); }
.listing-gallery img:first-child { grid-row: 1 / 3; }
@media (max-width: 760px) { .listing-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; } .listing-gallery img:first-child { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 3 / 2; } .listing-gallery img:not(:first-child) { aspect-ratio: 1; } }
.listing-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.specs div { border-top: 1px solid var(--line); padding: 14px 0 16px; }
.specs dt { color: var(--stone); font-size: .9rem; }
.specs dd { margin: 2px 0 0; font-size: 1.7rem; font-weight: 300; line-height: 1.2; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 32px; }
.feature-list li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 16px; height: 1px; background: var(--gold); }
@media (max-width: 860px) { .listing-body { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.about-photo { position: relative; isolation: isolate; }
.about-photo { max-width: 600px; margin: 0 20px 20px 0; }
/* Large portrait photo (2:3) with an offset gold frame */
.about-photo picture, .about-photo img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; }
.about-photo::after { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--gold); z-index: -1; opacity: .8; }
.about-long { align-items: start; }
@media (min-width: 861px) { .about-long .about-photo { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); aspect-ratio: 2 / 3; } .about-long .about-photo picture, .about-long .about-photo img { height: 100%; width: auto; max-width: 100%; } }
/* Name on one line, in the logo's serif */
.about-name { font-family: var(--serif); font-weight: 400; white-space: nowrap;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem); letter-spacing: 0; line-height: 1.05; margin: 0 0 32px; }
.pillars { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px 32px; }
.pillars li { border-top: 1px solid var(--gold); padding-top: 14px; }
.pillars strong { display: block; font-size: 1.5rem; font-weight: 400; line-height: 1.15; margin-bottom: 4px; }
.pillars span { color: var(--stone); font-size: .95rem; }
.facts { margin: 8px 0 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; max-width: 560px; }
.facts strong { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 300; color: var(--accent-text); }
.facts span { font-size: .9rem; line-height: 1.4; display: block; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 460px; } }
.bio p { max-width: 62ch; }
.bio-close { font-size: var(--fs-md); line-height: 1.55; margin-top: 1.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }

/* ---------- Selling / Buying ---------- */
.chapter-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.chapter-head p { font-size: var(--fs-md); margin: 0; }
@media (max-width: 860px) { .chapter-head { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 18px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 2.4rem; font-weight: 200; line-height: 1; color: var(--accent-text); margin-bottom: 14px; }
.steps p { margin: 0; font-size: .98rem; color: var(--page-muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Neighbourhoods ---------- */
.hood-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.hood-list li { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0 10px; }
.hood-list .name { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: 1.05; letter-spacing: -0.01em; }
.hood-list .note { color: var(--stone); font-size: .95rem; text-align: right; max-width: 28ch; }
@media (max-width: 640px) { .hood-list li { flex-direction: column; gap: 0; } .hood-list .note { text-align: left; } }

/* ---------- Closing band ---------- */
.closing { position: relative; overflow: hidden; }
.closing .watermark { position: absolute; right: -4%; bottom: -12%; width: min(56vw, 640px); opacity: .08; pointer-events: none; }
.closing .wrap { position: relative; }

/* ---------- Forms (on warm black) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9rem; font-weight: 400; letter-spacing: .03em; color: var(--stone); }
input, select, textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--bone);
  width: 100%; min-height: 50px; padding: 11px 14px;
  border: 1px solid rgba(239,233,223,.35); border-radius: 0; background: var(--ink);
}
select option { background: var(--ink); color: var(--bone); }
input::placeholder, textarea::placeholder { color: #7D756B; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--fs-sm); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--stone); }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; }
.form-status.error { color: var(--error); }
.form-panel { background: var(--ink-2); color: var(--bone); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line);
  --stone: #A89F92; --page-muted: #A89F92; --line: rgba(239, 233, 223, .16); --accent-text: var(--gold); } /* stays dark on white pages too */
.form-panel h2 { font-size: var(--fs-lg); margin-bottom: .2em; }
.form-panel .muted { color: var(--stone); }
.form-note { font-size: var(--fs-sm); color: var(--stone); margin-top: 14px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact-lines { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-lines li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-lines span { display: block; font-size: .85rem; letter-spacing: .06em; color: var(--stone); }
.contact-lines .brokerage { margin: 2px 0 0; font-size: 1.05rem; line-height: 1.55; }
.contact-lines a { font-size: clamp(1.15rem, 4.6vw, 1.6rem); font-weight: 300; text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Landing page ---------- */
.lp-header { background: var(--white); color: var(--ink); border-bottom: 1px solid rgba(24, 21, 19, .1); }
.lp-header .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 88px; gap: 16px; }
.lp-header a.phone { font-size: 1.3rem; font-weight: 300; text-decoration: none; white-space: nowrap; }
.phone-short { display: none; }
@media (max-width: 600px) {
  .lp-header .phone-full { display: none; }
  .lp-header .phone-short { display: inline-block; border: 1px solid currentColor; padding: 8px 16px; font-size: 1rem; letter-spacing: .06em; }
}
.lp-hero { position: relative; overflow: hidden; }
.lp-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.lp-hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 8vw, 110px); }
.lp-hero h1 { font-size: clamp(3rem, 7.2vw, 6.4rem); font-weight: 400; line-height: .95; letter-spacing: -0.01em; }
.lp-hero .lede { font-size: var(--fs-md); max-width: 36ch; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; }
.ticks li { padding: 12px 0 12px 34px; position: relative; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 18px; height: 1px; background: var(--gold); }
@media (max-width: 900px) { .lp-hero .wrap { grid-template-columns: 1fr; } }
.what-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.what-grid > div { border-top: 1px solid var(--gold); padding-top: 18px; }
.what-grid p { color: var(--stone); }
@media (max-width: 800px) { .what-grid { grid-template-columns: 1fr; } }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 400; font-size: 1.35rem; padding: 18px 0; }
.faq summary::marker { color: var(--accent-text); }
.faq details p { margin: 0 0 20px; color: var(--stone); }

/* ---------- Simple pages ---------- */
.page-head { background: var(--ink-3); padding: clamp(48px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--fs-xl); margin: 0; font-weight: 400; }
.page-head p { color: var(--stone); margin: 12px 0 0; }
.prose { padding: 56px 0 96px; }
.prose h2 { font-size: var(--fs-lg); margin-top: 1.5em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: var(--stone); font-size: var(--fs-sm); padding: 64px 0 36px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.site-footer a { overflow-wrap: anywhere; }
.site-footer .logo { color: var(--bone); margin-bottom: 20px; }
.site-footer h2 { font-family: var(--sans); font-size: .85rem; font-weight: 400; letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: var(--bone); }
.site-footer a:hover { color: var(--accent-text); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 10px; }
.site-footer .legal p { max-width: none; margin-bottom: 6px; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr; } }
@media (max-width: 350px) {
  .logo-name { font-size: .86rem; letter-spacing: .1em; }
  .logo-sub { letter-spacing: .28em; }
  .header-cta { padding: 8px 10px; }
}

/* ---------- Testimonials ---------- */
.reviews { position: relative; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; }
.review { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.review.active { opacity: 1; visibility: visible; }
.review blockquote { margin: 0; }
.review-quote { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.8vw, 3.4rem); line-height: 1.18; max-width: 30ch; margin: 0 0 32px; }
.review-quote::before { content: "\201C"; display: block; font-size: 2.2em; line-height: .6; color: var(--accent-text); margin-bottom: .1em; }
.review-quote.review-long { font-size: clamp(1.3rem, 2vw, 1.85rem); line-height: 1.3; max-width: 52ch; }
.review-quote.review-xlong { font-size: clamp(1.15rem, 1.7vw, 1.6rem); max-width: 60ch; }
#testimonials .giant { font-size: clamp(3rem, 7vw, 6.4rem); }
.review-controls { margin-top: 32px; }
.review-by { font-size: 1.05rem; font-weight: 400; letter-spacing: .04em; }
.review-by .muted { display: block; font-weight: 300; font-size: .95rem; margin-top: 4px; }
.review-controls { display: flex; align-items: center; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 420px; }
.review-controls button { width: 48px; height: 48px; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 1.2rem; cursor: pointer; transition: border-color .2s, color .2s; }
.review-controls button:hover { border-color: var(--accent-text); color: var(--accent-text); }
.review-count { margin: 0; font-size: .95rem; color: var(--page-muted); min-width: 5ch; text-align: center; }
@media (prefers-reduced-motion: reduce) { .review { transition: none; } }
/* Client Stories: tighter spacing so even the longest review fits on one screen */
#testimonials.section { padding-top: calc(var(--header-h) + 28px); padding-bottom: 56px; }
#testimonials .giant { margin-bottom: .2em; }
