/* ============================================================
   TROIS HOUS — Palm Beach Interior Design
   Brand tokens & global styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  /* ─── Brand palette (Trois Hous) ──────────────────────── */
  --alabaster:   #F5F0E8;  /* primary bg, walls */
  --linen:       #E8DDD0;  /* secondary surface */
  --flax:        #D4B896;  /* mid-tone, dividers */
  --driftwood:   #A87F5A;  /* wood, secondary text */
  --brass:       #B8925A;  /* primary accent */
  --brass-deep:  #957143;  /* hover state */
  --espresso:    #2C2420;  /* primary text, anchor */
  --espresso-90: #3a3128;
  --sage:        #8FA68A;  /* nature accent */
  --terracotta:  #C4724A;  /* warmth accent */

  /* ─── Type ────────────────────────────────────────────── */
  --font-display: 'Cormorant Garamond', 'Hoefler Text', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', system-ui, sans-serif;

  /* ─── Layout ──────────────────────────────────────────── */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 10vw, 128px);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--alabaster);
  color: var(--espresso);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* ─── Type scale ───────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin: 0;
  text-wrap: balance;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--espresso);
  margin: 0;
  text-wrap: balance;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  color: var(--espresso);
  margin: 0;
  text-wrap: balance;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  color: var(--espresso);
  margin: 0;
}

p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--espresso-90);
  margin: 0 0 1em 0;
  text-wrap: pretty;
}

p.lead {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--espresso-90);
}

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ─── Section labels ───────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--brass);
}

.eyebrow-plain {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 18px 36px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0;
}
.btn--solid {
  background: var(--espresso);
  color: var(--alabaster);
}
.btn--solid:hover {
  background: var(--brass);
  color: var(--alabaster);
}
.btn--brass {
  background: var(--brass);
  color: var(--alabaster);
}
.btn--brass:hover { background: var(--brass-deep); }

.btn--ghost {
  background: transparent;
  color: var(--espresso);
  border: 1px solid var(--espresso);
}
.btn--ghost:hover {
  background: var(--espresso);
  color: var(--alabaster);
}

.btn--ghost-light {
  background: transparent;
  color: var(--alabaster);
  border: 1px solid rgba(245,240,232,0.4);
}
.btn--ghost-light:hover {
  background: var(--alabaster);
  color: var(--espresso);
  border-color: var(--alabaster);
}

.btn .arrow { font-size: 14px; letter-spacing: 0; }

/* ─── Layout helpers ───────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section-y) 0;
}
.section--linen { background: var(--linen); }
.section--alabaster { background: var(--alabaster); }
.section--espresso {
  background: var(--espresso);
  color: var(--alabaster);
}
.section--espresso h1,
.section--espresso h2,
.section--espresso h3 { color: var(--alabaster); }
.section--espresso p  { color: rgba(245,240,232,0.78); }
.section--espresso .eyebrow { color: var(--flax); }
.section--espresso .eyebrow::before { background: var(--flax); }

/* Decorative gold rule */
.rule {
  height: 1px;
  background: var(--brass);
  border: 0;
  margin: 0;
  display: block;
}
.rule--soft { background: rgba(184,146,90,0.35); }

/* Three-pillar grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ─── Arch shape (signature) ──────────────────────────── */
.arch {
  border-top-left-radius: 9999px;
  border-top-right-radius: 9999px;
  overflow: hidden;
  position: relative;
}
.arch-tall { aspect-ratio: 3 / 5; }
.arch-soft {
  border-top-left-radius: 50% 35%;
  border-top-right-radius: 50% 35%;
  overflow: hidden;
  position: relative;
}

/* ─── Image slot styling ──────────────────────────────── */
image-slot {
  --slot-bg: var(--linen);
  --slot-border: rgba(184,146,90,0.3);
  --slot-text: var(--driftwood);
  background: var(--linen);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--driftwood);
}

/* ─── Tweaks shows when toggled — class controlled by JS  */
[data-tweak-hide="true"] { display: none !important; }

/* ─── Where We Work strip ─────────────────────────────── */
.reach {
  background: var(--alabaster);
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid rgba(184,146,90,0.25);
  border-bottom: 1px solid rgba(184,146,90,0.25);
}
.reach__head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 800px) { .reach__head { grid-template-columns: 1fr; gap: 24px; } }
.reach__cities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(184,146,90,0.35);
}
@media (max-width: 800px) { .reach__cities { grid-template-columns: 1fr 1fr; } }
.reach__city {
  padding: 28px 22px;
  border-bottom: 1px solid rgba(184,146,90,0.35);
  border-right: 1px solid rgba(184,146,90,0.35);
}
.reach__cities > .reach__city:nth-child(4n) { border-right: none; }
@media (max-width: 800px) {
  .reach__cities > .reach__city:nth-child(4n) { border-right: 1px solid rgba(184,146,90,0.35); }
  .reach__cities > .reach__city:nth-child(2n) { border-right: none; }
}
.reach__city h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 4px 0;
  color: var(--espresso);
}
.reach__city h4.is-home {
  font-style: italic;
  color: var(--brass);
}
.reach__city span {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--driftwood);
}

/* ─── Horizontal Project Rail ─────────────────────────── */
.rail { background: var(--linen); padding: clamp(72px, 10vw, 128px) 0 clamp(80px, 12vw, 140px); overflow: hidden; }
.rail__head { padding: 0 var(--gutter); max-width: var(--max-w); margin: 0 auto 56px; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.rail__head h2 { max-width: 16ch; }
.rail__scroller { display: flex; gap: 28px; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail__scroller::-webkit-scrollbar { display: none; }
.rail__card { flex: 0 0 clamp(280px, 32vw, 420px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.rail__card-media { aspect-ratio: 4/5; background: var(--alabaster); overflow: hidden; }
.rail__card-media image-slot { width: 100%; height: 100%; }
.rail__card-meta { font-family: var(--font-body); font-weight: 500; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); margin-top: 6px; }
.rail__card-title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--espresso); margin: 0; }
.rail__card-loc { font-family: var(--font-body); font-size: 13px; color: var(--driftwood); margin: 0; }
.rail__hint { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--driftwood); display: inline-flex; align-items: center; gap: 12px; }
.rail__hint::after { content: '→'; font-family: var(--font-display); font-size: 18px; color: var(--brass); }

/* ─── Testimonials ────────────────────────────────────── */
.testimonials { background: var(--alabaster); }
.testimonials__head { margin-bottom: 64px; max-width: 56ch; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(184,146,90,0.35); }
@media (max-width: 800px) { .testimonials__grid { grid-template-columns: 1fr; } }
.testimonial { padding: 48px 36px; border-bottom: 1px solid rgba(184,146,90,0.35); border-right: 1px solid rgba(184,146,90,0.35); display: flex; flex-direction: column; gap: 22px; }
.testimonial:nth-child(3n) { border-right: none; }
@media (max-width: 800px) { .testimonial { border-right: none; padding: 40px 0; } }
.testimonial__mark { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 56px; line-height: 0.6; color: var(--brass); height: 24px; }
.testimonial__quote { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 22px; line-height: 1.4; color: var(--espresso); margin: 0; }
.testimonial__cite { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(184,146,90,0.35); display: flex; flex-direction: column; gap: 4px; }
.testimonial__cite strong { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--espresso); }
.testimonial__cite span { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--driftwood); }
