/* ===========================================================================
   FUSION THE BROOK & RIVULET — page extras (builds on jkg / anandita / ajnara /
   strings CSS). Flowing-water hero · twin-community switch · club mosaic
   =========================================================================== */

/* ---------- Hero: two gold streams flowing across the foot ---------- */
.fb-flow { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: -1; pointer-events: none; opacity: .55; }
.fb-flow svg { width: 100%; height: 100%; }
.fb-flow path { fill: none; stroke: rgba(241, 198, 74, .55); stroke-width: 1.2; stroke-dasharray: 6 14; animation: fbFlow 9s linear infinite; }
.fb-flow path + path { stroke: rgba(241, 198, 74, .3); animation-duration: 13s; }
@keyframes fbFlow { to { stroke-dashoffset: -400; } }
.fb-hero .jk-price { font-size: clamp(38px, 4.2vw, 56px); }

/* ---------- Twin-community switch ---------- */
.fb-twin-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(212, 175, 55, .25); margin-bottom: 22px; }
.fb-twin-tabs button { display: grid; gap: 2px; padding: 12px 26px; border-radius: 999px; border: 0; background: transparent; color: #DDE2DC; font: inherit; cursor: pointer; text-align: left; transition: background .4s, color .4s; }
.fb-twin-tabs b { font: 400 20px 'Fraunces', Georgia, serif; }
.fb-twin-tabs small { font-size: 11.5px; font-style: italic; color: var(--text-dim); }
.fb-twin-tabs button.is-on { background: var(--grad-gold); color: #0A0D0B; }
.fb-twin-tabs button.is-on small { color: rgba(10, 13, 11, .7); }
.fb-twin-tabs button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.fb-twin-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: 18px; border-radius: 28px; background: linear-gradient(160deg, rgba(20, 24, 20, .9), rgba(10, 13, 11, .95)); border: 1px solid rgba(212, 175, 55, .22); }
.fb-twin-panel[hidden] { display: none; }
.fb-twin-panel.is-on { animation: fbIn .7s var(--ease-lux) both; }
@keyframes fbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fb-twin-img { border-radius: 20px; overflow: hidden; aspect-ratio: 1; max-height: 520px; }
.fb-twin-img img { width: 100%; height: 100%; object-fit: cover; }
.fb-twin-copy { padding: 8px 18px 8px 0; }
.fb-twin-copy h3 { font: 400 clamp(30px, 3.4vw, 46px)/1.1 'Fraunces', Georgia, serif; color: #fff; margin: 8px 0 14px; }
.fb-twin-copy > p { color: var(--text-dim); line-height: 1.7; margin-bottom: 20px; }
.fb-twin-copy b { color: var(--gold-bright); font-weight: 500; }
.fb-facts { display: grid; gap: 0; }
.fb-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.fb-facts dt { font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.fb-facts dd { margin: 0; font-size: 14px; color: #fff; text-align: right; }

/* ---------- Four unit cards ---------- */
.fb-unit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fb-unit-grid .an-twin-body h3 { font-size: clamp(22px, 1.8vw, 26px); }
.fb-unit-grid .an-twin-price strong { font-size: clamp(22px, 1.8vw, 26px); }
.fb-plan-media { background: #F6EEE3 !important; }
.fb-plan-media img { object-fit: contain !important; padding: 8px 8px 50px !important; }
.fb-plan-img { background: #F6EEE3 !important; }

/* ---------- Club mosaic ---------- */
.fb-club-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.fb-ph { position: relative; overflow: hidden; padding: 0; border: 1px solid rgba(212, 175, 55, .2); border-radius: 20px; background: #0C100D; cursor: zoom-in; font: inherit; color: inherit; text-align: left; }
.fb-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-lux); }
.fb-ph:hover img { transform: scale(1.06); }
.fb-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 7, 5, .88)); pointer-events: none; }
.fb-ph span { position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 2; font: 400 18px/1.2 'Fraunces', Georgia, serif; color: #fff; }
.fb-ph:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.fb-ph-tall { grid-row: span 2; }
.fb-ph-wide { grid-column: span 3; }

/* ---------- Terrace garden ---------- */
.fb-terrace-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.fb-terrace-media { border-radius: 26px; overflow: hidden; border: 1px solid rgba(212, 175, 55, .25); aspect-ratio: 4 / 3; }
.fb-terrace-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.fb-terrace-copy > p { color: var(--text-dim); margin: 14px 0 20px; line-height: 1.7; }
.fb-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.fb-pills li { padding: 8px 14px; border-radius: 999px; font-size: 13px; color: #DDE2DC; background: rgba(212, 175, 55, .06); border: 1px solid rgba(212, 175, 55, .28); transition: background .3s, color .3s; }
.fb-pills li:hover { background: var(--grad-gold); color: #0A0D0B; }

/* ---------- Auxiliary benefits ---------- */
.fb-aux-grid { grid-template-columns: repeat(3, 1fr); }
.fb-aux-grid .an-spec-card p { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }

/* ---------- Site plan + gallery ---------- */
.fb-site-grid { grid-template-columns: 1.6fr 1fr; }
.fb-site-grid .jk-site-img { height: 420px; background: #fff; }
.fb-site-grid .jk-site-img img { object-fit: contain; object-position: center; }
.fb-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.fb-gallery .fb-ph { aspect-ratio: 1; }

/* ---------- High street ---------- */
.fb-arcade-card { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid rgba(212, 175, 55, .25); min-height: 380px; display: flex; align-items: flex-end; }
.fb-arcade-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb-arcade-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 7, 5, .92) 0%, rgba(5, 7, 5, .55) 45%, rgba(5, 7, 5, .05) 80%); }
.fb-arcade-copy { position: relative; z-index: 2; max-width: 520px; padding: clamp(24px, 4vw, 48px); }
.fb-arcade-copy p { color: #C9CFC8; margin-top: 10px; }

/* ---------- Partners ---------- */
.fb-partners { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 22px; }
.fb-partners li { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.fb-partners b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.fb-partners small { font-size: 12.5px; color: var(--text-dim); }

/* Brochure band */
.fb-cta { background:
    linear-gradient(100deg, rgba(8, 11, 9, .96) 0%, rgba(8, 11, 9, .8) 55%, rgba(8, 11, 9, .35) 100%),
    url('fusion/twin-towers.jpg') right center / cover !important; }

@media (max-width: 1100px) {
    .fb-unit-grid { grid-template-columns: 1fr 1fr; }
    .fb-club-grid { grid-template-columns: repeat(3, 1fr); }
    .fb-ph-wide { grid-column: span 2; }
    .fb-terrace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .fb-twin-panel { grid-template-columns: 1fr; }
    .fb-twin-copy { padding: 0 6px 6px; }
    .fb-aux-grid { grid-template-columns: 1fr 1fr; }
    .fb-site-grid { grid-template-columns: 1fr; }
    .fb-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .fb-twin-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 20px; }
    .fb-twin-tabs button { padding: 10px 14px; border-radius: 16px; }
    .fb-twin-tabs b { font-size: 17px; }
    .fb-twin-img { aspect-ratio: 4 / 3; }
    .fb-unit-grid { grid-template-columns: 1fr; }
    .fb-club-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
    .fb-ph-tall { grid-row: span 1; }
    .fb-ph-wide { grid-column: 1 / -1; }
    .fb-aux-grid { grid-template-columns: 1fr; }
    .fb-site-grid .jk-site-img { height: 260px; }
    .fb-partners { grid-template-columns: 1fr; }
    .fb-arcade-card { min-height: 320px; }
    .fb-arcade-card::after { background: linear-gradient(0deg, rgba(5, 7, 5, .94) 0%, rgba(5, 7, 5, .5) 60%, rgba(5, 7, 5, .1) 100%); }
}
@media (prefers-reduced-motion: reduce) {
    .fb-flow path { animation: none; }
    .fb-twin-panel.is-on { animation: none; }
    .fb-ph img { transition: none; }
}
