/* ==========================================================================
   Brochure flip book (/brochure) + teaser on /dwaraka-369
   ========================================================================== */

.fb-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(30px, 4vw, 50px); background: radial-gradient(900px 500px at 85% 0%, var(--sage), transparent 70%), var(--ivory); text-align: center; }
.fb-hero .mandala { width: 720px; left: 50%; top: -260px; translate: -50% 0; opacity: .12; }
.fb-hero__inner { position: relative; display: grid; justify-items: center; }
.fb-hero .crumbs { justify-content: center; }
.fb-hero__logo { width: clamp(200px, 22vw, 300px); margin-bottom: 18px; }
.fb-hero__title { font-size: clamp(40px, 5.4vw, 80px); font-weight: 700; letter-spacing: -.02em; }
.fb-hero .lede { margin: 18px auto 0; }

/* Stage */
.fb-stage { position: relative; padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(60px, 7vw, 100px);
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(255,255,255,.9), transparent 70%),
    linear-gradient(180deg, var(--ivory) 0%, var(--sage) 100%); }
.fb-wrap { position: relative; max-width: 1240px; margin: 0 auto; min-height: 420px; display: grid; place-items: center; }
.fb-book { width: 100%; max-width: 1200px; margin: 0 auto; filter: drop-shadow(0 40px 50px rgba(10,44,27,.25)); }
.fb-page { background: #fff; overflow: hidden; }
.fb-page img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.fb-page--cover { background: var(--emerald); }
.fb-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; z-index: 2; }
.fb-spinner { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold-soft); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.fb-stage:not(.is-ready) .fb-book { visibility: hidden; }

/* Fallback when the flip library cannot load: pages in a simple column */
.fb-book--static { visibility: visible !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; filter: none; }
.fb-book--static .fb-page { aspect-ratio: 825 / 1200; box-shadow: var(--shadow-1); }

/* Controls */
.fb-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 30px auto 0; max-width: 760px; }
.fb-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-gold); background: var(--white); color: var(--emerald); font-size: 18px; display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease); flex-shrink: 0; }
.fb-btn--lg { width: 54px; height: 54px; font-size: 20px; background: var(--emerald); color: var(--ivory); border-color: var(--emerald); }
.fb-btn:hover { background: var(--gold); color: var(--emerald-3); border-color: var(--gold); transform: translateY(-2px); }
.fb-progress { flex: 1; display: flex; align-items: center; gap: 14px; padding: 0 8px; }
.fb-progress input { flex: 1; accent-color: var(--gold); height: 44px; cursor: pointer; }
.fb-progress output { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); min-width: 64px; text-align: right; }
.fb-hint { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.fb-stage.is-end .fb-btn[data-fb="next"] { opacity: .4; }

/* Full screen */
.fb-stage.is-full { position: fixed; inset: 0; z-index: 960; overflow: auto; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: radial-gradient(70% 60% at 50% 45%, #1B5A3B, var(--emerald-3)); }
.fb-stage.is-full .fb-hint { color: rgba(250,248,243,.7); }
.fb-stage.is-full .fb-progress output { color: var(--ivory); }
.fb-stage:fullscreen { overflow: auto; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(70% 60% at 50% 45%, #1B5A3B, var(--emerald-3)); }
.fb-stage:fullscreen .fb-book { max-width: min(1400px, calc((100vh - 140px) * 1.375)); }

/* Closing CTA spread */
.fb-cta { position: relative; background: var(--ivory); }
.fb-cta--left img { position: absolute; inset: 0; }
.fb-cta__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,30,19,.15) 30%, rgba(8,30,19,.85) 100%); }
.fb-cta__quote { position: absolute; left: 8%; right: 8%; bottom: 8%; color: var(--ivory); }
.fb-cta__quote p { font-family: var(--serif); font-size: clamp(22px, 3.2vw, 44px); line-height: 1.05; margin: 8px 0 12px; }
.fb-cta__quote em { color: var(--gold-2); }
.fb-cta__quote small { font-size: clamp(10px, 1vw, 13px); letter-spacing: .14em; text-transform: uppercase; color: rgba(250,248,243,.8); }
.fb-cta--right { background:
  radial-gradient(90% 70% at 100% 0%, rgba(234,219,181,.5), transparent 60%),
  linear-gradient(180deg, var(--ivory), var(--sage)); }
.fb-cta--right::before { content: ""; position: absolute; inset: 4%; border: 1px solid var(--line-gold); pointer-events: none; }
.fb-cta__inner { position: absolute; inset: 0; padding: 12% 11%; display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 1.6vw, 18px); container-type: inline-size; }
.fb-cta__logo { width: 62%; }
.fb-cta__inner h2 { font-size: clamp(22px, 11cqi, 52px); line-height: 1; }
.fb-cta__inner h2 em { font-style: italic; font-weight: 400; color: var(--gold-3); }
.fb-cta__inner p { font-size: clamp(11px, 3.6cqi, 16px); color: var(--muted); margin: 0; line-height: 1.5; }
.fb-cta__actions { display: flex; flex-direction: column; gap: 8px; }
.fb-cta__actions .btn { --h: clamp(34px, 9cqi, 50px); font-size: clamp(9.5px, 2.6cqi, 13px); padding: 0 14px; width: 100%; }
.fb-cta__list { display: grid; gap: 4px; font-size: clamp(10px, 3cqi, 14px); color: var(--ink); }
.fb-cta__list li { border-bottom: 1px solid var(--line); padding: 4px 0; }
.fb-cta__list b { font-family: var(--serif); color: var(--emerald); margin-right: 6px; }
.fb-cta__mail { font-size: clamp(10px, 3cqi, 14px); color: var(--gold-3); display: inline-flex; align-items: center; gap: 6px; }

/* Teaser on /dwaraka-369 */
.d-brochure { background: var(--emerald); color: var(--ivory); padding: clamp(70px, 9vw, 130px) 0; overflow: hidden; }
.d-brochure__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.d-brochure h2 { color: var(--ivory); }
.d-brochure p { color: rgba(250,248,243,.8); margin: 18px 0 28px; max-width: 44ch; }
.d-brochure__book { position: relative; display: block; aspect-ratio: 1.375; perspective: 1600px; max-width: 560px; margin-inline: auto; width: 100%; }
.d-brochure__book img { position: absolute; top: 0; width: 50%; height: 100%; object-fit: cover; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transition: transform .9s var(--ease); }
.d-brochure__book img:first-child { right: 0; z-index: 2; transform-origin: left center; transform: rotateY(-8deg); border-radius: 0 4px 4px 0; }
.d-brochure__book img:last-child { left: 0; transform-origin: right center; transform: rotateY(8deg); opacity: .9; border-radius: 4px 0 0 4px; }
.d-brochure__book:hover img:first-child { transform: rotateY(-28deg); }
.subnav__ext { white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--gold-3); padding: 10px 6px; }

@media (max-width: 960px) {
  .d-brochure__grid { grid-template-columns: 1fr; text-align: center; }
  .d-brochure p { margin-inline: auto; }
  .d-brochure .eyebrow { justify-content: center; }
}
@media (max-width: 640px) {
  .fb-controls { gap: 6px; }
  .fb-btn[data-fb="first"], .fb-btn[data-fb="last"] { display: none; }
  .fb-progress output { min-width: 52px; }
  .subnav__ext { display: none; }
}
