/* Property presentation — luxury brochure design system.
   Three selectable templates (brochure / cinematic / lookbook) over one
   shared token + atom layer. Inspired by the Twins printed property brochure:
   deep navy + warm ivory + muted gold, high-contrast serif display, generous
   whitespace, split-screen editorial compositions. */

.bro {
  --navy: #15273a;
  --navy-2: #1b3148;
  --cream: #f6efe4;
  --cream-2: #efe5d6;
  --gold: #b08a4e;
  --ink: #1c1d1f;
  --muted: #6b7178;
  --muted-on-dark: rgba(255, 255, 255, .72);
  --line: rgba(21, 39, 58, .16);
  --line-on-dark: rgba(255, 255, 255, .22);
  --display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
.bro * { box-sizing: border-box; }
.bro img { display: block; max-width: 100%; }

/* ── shared atoms ─────────────────────────────────────── */
.bro-eyebrow {
  font: 600 .72rem/1.1 var(--sans);
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1.4rem;
}
.bro-display {
  font-family: var(--display);
  font-weight: 500; line-height: 1.04; letter-spacing: .004em;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  margin: 0; color: inherit;
}
.bro-display--sm { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.bro-body {
  font: 400 1.02rem/1.72 var(--sans);
  color: var(--muted); max-width: 46ch; margin: 1.6rem 0 0;
}
.bro-rule { width: 64px; height: 1px; background: var(--gold); opacity: .65; border: 0; margin: 2rem 0; }
.bro-list { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.bro-list li {
  position: relative; padding-left: 1.1rem; margin: .55rem 0;
  font: 400 .98rem/1.5 var(--sans); color: var(--muted);
}
.bro-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.bro-list--cols { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); columns: 2; column-gap: 2rem; }
.bro-panel--navy .bro-list--cols { border-top-color: var(--line-on-dark); }
.bro-logo { font-family: var(--display); font-weight: 600; letter-spacing: .28em; font-size: 1.05rem; line-height: 1; }
.bro-logo small { display: block; font-family: var(--sans); font-weight: 600; letter-spacing: .24em; font-size: .56rem; margin-top: .35rem; opacity: .8; }

.bro-panel { padding: clamp(1.75rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.bro-panel--navy { background: var(--navy); color: #fff; }
.bro-panel--navy .bro-display { color: #fff; }
.bro-panel--navy .bro-body { color: var(--muted-on-dark); }
.bro-panel--navy .bro-rule { background: var(--gold); opacity: .8; }
.bro-panel--cream { background: var(--cream); }
.bro-panel--cream2 { background: var(--cream-2); }
.bro-figure { position: relative; overflow: hidden; background: var(--cream-2); }
.bro-figure img { width: 100%; height: 100%; object-fit: cover; }

.bro-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 86vh; }
.bro-split--tall { min-height: 100svh; }

/* clickable photo = subtle zoom */
.bro-shot { cursor: pointer; overflow: hidden; }
.bro-shot img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.bro-shot:hover img { transform: scale(1.045); }

/* ── stats band ───────────────────────────────────────── */
.bro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 2rem; margin-top: 2.4rem; }
.bro-stat__value { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1; }
.bro-stat__label { font: 600 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }
.bro-panel--navy .bro-stat__label { color: var(--muted-on-dark); }

/* ════════════════════════════════════════════════════════
   TEMPLATE 1 — BROCHURE (editorial split-screen)
   ════════════════════════════════════════════════════════ */
.bro--brochure .bro-section + .bro-section { border-top: 1px solid var(--line); }
.bro--brochure .bro-cover .bro-panel { position: relative; }
.bro--brochure .bro-cover__logo { position: absolute; top: clamp(1.5rem,4vw,3rem); right: clamp(1.5rem,4vw,3rem); text-align: right; }
.bro--brochure .bro-cover__confidential { position: absolute; bottom: clamp(1.5rem,4vw,3rem); left: clamp(1.75rem,5vw,5rem); font: 600 .64rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.bro--brochure .bro-cover .bro-display { font-size: clamp(2.6rem, 5vw, 4.4rem); margin-top: .5rem; }
.bro--brochure .bro-cover__loc { font-family: var(--display); font-size: 1.3rem; margin: 1.6rem 0 0; color: rgba(255,255,255,.92); }

/* a space section: image side + text side, alternating */
.bro-space__media { display: grid; gap: 10px; grid-template-rows: 1fr; }
.bro-space__media--stack { grid-template-rows: 2fr 1fr; }
.bro-space__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bro--brochure .bro-space:nth-child(even) .bro-split { direction: rtl; }
.bro--brochure .bro-space:nth-child(even) .bro-split > * { direction: ltr; }

.bro-corner-logo { margin-top: 2.5rem; opacity: .85; }
.bro-corner-logo .bro-logo { font-size: .9rem; }

/* contact / closing */
.bro-closing__logo { margin-bottom: 2.5rem; }
.bro-contact { margin-top: 1.5rem; font: 400 .98rem/1.7 var(--sans); color: var(--muted-on-dark); }
.bro-contact a { color: var(--gold); text-decoration: none; }
.bro-contact strong { color: #fff; font-weight: 600; }

/* ════════════════════════════════════════════════════════
   TEMPLATE 2 — CINEMATIC (full-bleed vertical deck)
   ════════════════════════════════════════════════════════ */
.bro--cinematic { background: #07101f; scroll-snap-type: y mandatory; }
.bro--cinematic .bro-slide {
  position: relative; min-height: 100svh; scroll-snap-align: start;
  display: flex; align-items: flex-end; overflow: hidden;
}
.bro--cinematic .bro-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bro--cinematic .bro-slide__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,16,31,.15) 0%, rgba(7,16,31,.2) 45%, rgba(7,16,31,.85) 100%); }
.bro--cinematic .bro-slide__inner { position: relative; z-index: 2; width: 100%; max-width: 1100px; margin: 0 auto; padding: clamp(2rem,6vw,5rem); color: #fff; }
.bro--cinematic .bro-slide__inner .bro-display { color: #fff; font-size: clamp(2.6rem,6vw,5rem); text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.bro--cinematic .bro-slide__inner .bro-body { color: rgba(255,255,255,.9); max-width: 52ch; }
.bro--cinematic .bro-slide__count { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; color: rgba(255,255,255,.7); margin-top: 1.5rem; }
.bro--cinematic .bro-cover-slide { align-items: center; text-align: center; }
.bro--cinematic .bro-cover-slide .bro-slide__inner { text-align: center; }
.bro--cinematic .bro-cover-slide .bro-eyebrow { color: var(--gold); }
.bro--cinematic .bro-cover-slide .bro-cover__loc { font-family: var(--display); font-size: 1.4rem; margin-top: 1.2rem; color: rgba(255,255,255,.9); }
.bro--cinematic .bro-cover-slide .bro-hero-cta { margin: 2rem auto 0; }
/* stats slide on cinematic */
.bro--cinematic .bro-slide--stats { align-items: center; }
.bro--cinematic .bro-slide--stats .bro-stat__label { color: rgba(255,255,255,.75); }

/* ════════════════════════════════════════════════════════
   TEMPLATE 3 — LOOKBOOK (light gallery / magazine)
   ════════════════════════════════════════════════════════ */
.bro--lookbook { background: var(--cream); }
.bro--lookbook .bro-look-hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; }
.bro--lookbook .bro-look-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bro--lookbook .bro-look-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,39,58,.1), rgba(21,39,58,.6)); }
.bro--lookbook .bro-look-hero__inner { position: relative; z-index: 2; padding: clamp(2rem,5vw,4.5rem); color: #fff; max-width: 1200px; margin: 0 auto; width: 100%; }
.bro--lookbook .bro-look-hero__inner .bro-display { color: #fff; font-size: clamp(2.6rem,5.5vw,4.6rem); }
.bro--lookbook .bro-look-wrap { max-width: 1240px; margin: 0 auto; padding: clamp(2.5rem,6vw,6rem) clamp(1rem,3vw,2rem); }
.bro--lookbook .bro-look-section { margin-bottom: clamp(3rem,7vw,6rem); }
.bro--lookbook .bro-look-section__head { text-align: center; max-width: 60ch; margin: 0 auto clamp(1.5rem,3vw,2.5rem); }
.bro--lookbook .bro-look-section__head .bro-body { margin-left: auto; margin-right: auto; max-width: 56ch; }
.bro--lookbook .bro-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.bro--lookbook .bro-mosaic__item { overflow: hidden; border-radius: 2px; aspect-ratio: 3/2; grid-column: span 2; }
.bro--lookbook .bro-mosaic__item:nth-child(6n+1) { grid-column: span 4; aspect-ratio: 16/9; }
.bro--lookbook .bro-mosaic__item:nth-child(6n+4) { grid-column: span 4; aspect-ratio: 16/9; }
.bro--lookbook .bro-mosaic__item img { width: 100%; height: 100%; object-fit: cover; }
.bro--lookbook .bro-look-intro { text-align: center; max-width: 60ch; margin: 0 auto clamp(2.5rem,5vw,4.5rem); }

/* ── shared hero CTA (slideshow trigger) ──────────────── */
.bro-hero-cta {
  display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
  padding: .85rem 1.6rem; border: 1px solid var(--gold); border-radius: 0;
  background: transparent; color: inherit;
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.bro-hero-cta:hover { background: var(--gold); color: var(--navy); }
.bro-panel--navy .bro-hero-cta, .bro--cinematic .bro-hero-cta { color: #fff; }
.bro-panel--navy .bro-hero-cta:hover, .bro--cinematic .bro-hero-cta:hover { color: var(--navy); }

/* ── staff template switcher ──────────────────────────── */
.bro-switch {
  position: fixed; z-index: 60; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: .3rem; padding: .35rem;
  background: rgba(21,39,58,.92); backdrop-filter: blur(8px); border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.bro-switch__label { font: 600 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); padding: 0 .6rem 0 .8rem; }
.bro-switch a {
  font: 600 .76rem/1 var(--sans); text-decoration: none; color: rgba(255,255,255,.8);
  padding: .5rem .95rem; border-radius: 999px;
}
.bro-switch a.is-active { background: var(--gold); color: var(--navy); }

/* ── slideshow deck (reused JS, restyled to brochure) ─── */
.pres-deck { position: fixed; inset: 0; z-index: 9999; background: #07101f; color: #fff; display: none; flex-direction: column; }
.pres-deck.is-open { display: flex; }
.pres-deck__stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: env(safe-area-inset-top) 0 0; }
.pres-deck__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pres-deck__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem clamp(1.25rem,5vw,4rem) 1.5rem; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }
.pres-deck__space { font-family: var(--display); font-size: 1.7rem; font-weight: 500; }
.pres-deck__floor { font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-left: .9rem; }
.pres-deck__desc { margin: .5rem 0 0; max-width: 70ch; font: 400 .98rem/1.6 var(--sans); color: rgba(255,255,255,.85); }
.pres-deck__close, .pres-deck__nav { position: absolute; z-index: 2; border: 0; cursor: pointer; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: background .15s ease; }
.pres-deck__close:hover, .pres-deck__nav:hover { background: rgba(255,255,255,.26); }
.pres-deck__close { top: calc(env(safe-area-inset-top) + 1rem); right: 1rem; }
.pres-deck__counter { position: absolute; top: calc(env(safe-area-inset-top) + 1rem); left: 1.25rem; font: 600 .82rem/1 var(--sans); letter-spacing: .1em; color: rgba(255,255,255,.8); z-index: 2; }
.pres-deck__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.pres-deck__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.pres-deck__dots { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom)); }
.pres-deck__dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.3); }
.pres-deck__dot.is-active { background: var(--gold); transform: scale(1.3); }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 880px) {
  .bro-split { grid-template-columns: 1fr; min-height: 0; }
  .bro-split--tall { min-height: 0; }
  .bro--brochure .bro-space:nth-child(even) .bro-split { direction: ltr; }
  /* image always on top, text below, on mobile */
  .bro-split > .bro-figure, .bro-split > .bro-space__media { min-height: 64vh; order: -1; }
  .bro-cover .bro-figure { min-height: 56vh; }
  .bro-stats { grid-template-columns: 1fr 1fr; }
  .bro--lookbook .bro-mosaic { grid-template-columns: 1fr 1fr; }
  .bro--lookbook .bro-mosaic__item,
  .bro--lookbook .bro-mosaic__item:nth-child(6n+1),
  .bro--lookbook .bro-mosaic__item:nth-child(6n+4) { grid-column: span 1; aspect-ratio: 3/2; }
  .bro-switch { bottom: .8rem; }
  .bro-switch__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bro-shot img { transition: none; }
  .bro--cinematic { scroll-snap-type: none; }
}
