/* ==========================================================================
   DWARAKA 369 — project microsite (#/dwaraka-369)
   ========================================================================== */

/* Hero */
.d-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--ivory); background: var(--emerald-3); }
.d-hero__media { position: absolute; inset: -8% 0; }
.d-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.d-hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(8,30,19,.78) 0%, rgba(8,30,19,.45) 38%, rgba(8,30,19,0) 65%),
  linear-gradient(0deg, rgba(8,30,19,.85) 0%, rgba(8,30,19,0) 45%); }
.d-hero__inner { position: relative; z-index: 2; width: min(1480px, 100% - 2 * var(--gutter)); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding: calc(var(--header-h) + 60px) 0 clamp(48px, 7vw, 90px); }
.d-hero__copy { max-width: 760px; }
.d-hero__logo { width: clamp(220px, 26vw, 380px); margin-bottom: 30px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.d-hero__title { font-family: var(--serif); font-weight: 700; color: var(--ivory); font-size: clamp(48px, 7vw, 116px); line-height: .95; letter-spacing: -.02em; }
.d-hero__title .dot { color: var(--gold-2); }
.d-hero__lede { margin: 26px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: rgba(250,248,243,.86); max-width: 52ch; }
.d-hero .hero__actions { margin-top: 34px; }
.d-hero__by { margin: 0; text-align: right; font-size: 14px; color: rgba(250,248,243,.8); line-height: 1.5; }
.d-hero__by strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--gold-2); }
.d-hero__by span { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; margin-top: 4px; }

/* Sticky in-page navigation */
.subnav { position: sticky; top: 0; z-index: 300; background: rgba(250,248,243,.92); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.subnav__brand { width: 120px; flex-shrink: 0; }
.subnav__links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.subnav__links::-webkit-scrollbar { display: none; }
.subnav__links a { white-space: nowrap; padding: 10px 14px; font-size: 13.5px; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .3s, background .3s; }
.subnav__links a:hover { color: var(--emerald); }
.subnav__links a.is-active { color: var(--ivory); background: var(--emerald); }
body[data-page="d369"] .header:not(.is-hidden) ~ main .subnav { top: 70px; }
body[data-page="d369"] .subnav { transition: top .5s var(--ease); }

/* Facts band */
.d-facts { position: relative; overflow: hidden; background: var(--emerald); color: var(--ivory); }
.d-facts .mandala { width: 900px; right: -300px; top: 50%; translate: 0 -50%; opacity: .08; }
.d-facts__grid { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.d-fact { padding: clamp(34px, 4vw, 56px) clamp(10px, 1.2vw, 22px); border-left: 1px solid rgba(250,248,243,.12); }
.d-fact:first-child { border-left: 0; padding-left: 0; }
.d-fact b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 2.6vw, 44px); line-height: 1; white-space: nowrap; }
.d-fact:nth-child(4) b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-fact span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.d-fact small { display: block; margin-top: 6px; font-size: 13px; color: rgba(250,248,243,.7); }

/* 3·6·9 concept */
.d-concept__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 100px); align-items: center; margin-bottom: clamp(50px, 6vw, 80px); }
.d-concept__img { aspect-ratio: 16 / 10; }
.d-369 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.d-369__card { position: relative; background: var(--white); border: 1px solid var(--line); padding: 40px 34px 36px; overflow: hidden; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.d-369__card:hover { border-color: var(--line-gold); transform: translateY(-6px); box-shadow: var(--shadow-2); }
.d-369__n { position: absolute; right: 18px; top: -18px; font-family: var(--serif); font-weight: 700; font-size: 170px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold-soft); }
.d-369__card:hover .d-369__n { -webkit-text-stroke-color: var(--gold); }
.d-369__card h3 { position: relative; font-size: 26px; max-width: 12ch; margin-bottom: 14px; }
.d-369__card p { position: relative; color: var(--muted); font-size: 15.5px; }
.d-369__card ul { position: relative; display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.d-369__card li { display: flex; gap: 10px; font-size: 14.5px; }
.d-369__card li::before { content: ""; width: 6px; height: 6px; margin-top: .55em; transform: rotate(45deg); background: var(--gold); flex-shrink: 0; }

/* Arrival */
.d-arrival { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 640px; }
.d-arrival__img { position: relative; overflow: hidden; }
.d-arrival__img img { width: 100%; height: 100%; object-fit: cover; }
.d-arrival__panel { background: var(--emerald); color: var(--ivory); padding: clamp(50px, 6vw, 90px) clamp(30px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.d-arrival__panel h2 { color: var(--ivory); }
.d-arrival__panel p { color: rgba(250,248,243,.8); margin: 20px 0 0; }
.d-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.d-chips li { padding: 8px 14px; border: 1px solid rgba(217,184,103,.45); border-radius: 999px; font-size: 13px; color: var(--ivory); }

/* Amenity tabs */
.d-tabs__list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.d-am { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.d-am[hidden] { display: none; }
.d-am__mosaic { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
.d-am__mosaic--3 > :first-child { grid-column: 1 / -1; grid-row: span 2; }
.d-am__mosaic--2 > * { grid-column: 1 / -1; }
.d-am__img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sage-2); cursor: zoom-in; display: block; width: 100%; }
.d-am__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.d-am__img:hover img { transform: scale(1.05); }
.d-am__img span { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; background: rgba(250,248,243,.92); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--emerald); }
.d-am__copy .h3 { margin: 4px 0 14px; }
.d-am__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin-top: 24px; }
.d-am__list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.d-am__list li::before { content: ""; width: 6px; height: 6px; margin-top: .5em; transform: rotate(45deg); background: var(--gold); flex-shrink: 0; }

/* Gallery strip */
.d-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), calc((100vw - 1240px) / 2)) 24px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.d-strip:focus-visible { outline-offset: -3px; }
.d-strip__item { position: relative; flex: 0 0 auto; width: clamp(280px, 36vw, 560px); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: var(--sage); cursor: zoom-in; }
.d-strip__item:nth-child(3n+2) { width: clamp(220px, 24vw, 380px); aspect-ratio: 3 / 4; }
.d-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.d-strip__item:hover img { transform: scale(1.05); }
.d-strip__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; text-align: left; color: var(--ivory); font-family: var(--serif); font-size: 18px; background: linear-gradient(transparent, rgba(10,44,27,.8)); }

/* Units */
.d-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.d-unit { display: flex; flex-direction: column; text-align: left; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.d-unit:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-2); }
.d-unit.is-hidden { display: none; }
.d-unit__plan { aspect-ratio: 4 / 3; background: var(--white); display: block; overflow: hidden; }
.d-unit__plan img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.d-unit__meta { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 18px; border-top: 1px solid var(--line); }
.d-unit__meta b { font-family: var(--serif); font-size: 19px; color: var(--emerald); font-weight: 600; }
.d-unit__meta span { grid-column: 1; font-size: 13px; color: var(--muted); }
.d-unit__meta strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--serif); font-size: 22px; color: var(--gold-3); font-weight: 600; }
.d-unit__meta strong small { font-family: var(--sans); font-size: 11px; color: var(--muted); font-weight: 500; }

/* Master plan */
.d-plan { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.d-plan__img { aspect-ratio: 1 / 1; cursor: zoom-in; padding: 0; }
.d-plan__img img { width: 100%; height: 100%; object-fit: cover; }
.d-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.d-legend h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); background: var(--emerald); display: inline-block; padding: 6px 12px; margin-bottom: 14px; }
.d-legend div:last-child h4 { background: var(--gold); color: var(--emerald-3); }
.d-legend ol { list-style: decimal; padding-left: 22px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.d-legend li::marker { color: var(--gold-3); font-weight: 600; }

/* Specs */
.d-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.d-spec { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s; }
.d-spec[open] { border-color: var(--line-gold); }
.d-spec summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--serif); font-size: 19px; color: var(--emerald); min-height: 44px; }
.d-spec summary::-webkit-details-marker { display: none; }
.d-spec summary span { font-family: var(--sans); font-size: 12px; color: var(--gold-3); font-weight: 600; letter-spacing: .1em; }
.d-spec summary::after { content: "+"; margin-left: auto; font-family: var(--sans); font-size: 22px; color: var(--gold-3); transition: transform .3s; }
.d-spec[open] summary::after { transform: rotate(45deg); }
.d-spec p { margin: 0; padding: 0 22px 20px 58px; font-size: 15px; color: var(--muted); }
.d-interiors { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; margin-top: 40px; }
.d-interiors .d-am__img { aspect-ratio: 4 / 3; }

/* Location */
.d-loc { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.d-loc__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 36px; }
.d-loc__g h4 { font-family: var(--serif); font-size: 21px; margin-bottom: 10px; }
.d-loc__g li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.d-loc__g li b { color: var(--gold-3); font-weight: 600; white-space: nowrap; }
.d-loc__map { position: sticky; top: calc(var(--header-h) + 90px); }
.d-loc__map iframe { width: 100%; aspect-ratio: 4 / 3.4; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-2); background: var(--sage); }
.d-loc__addr { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.d-loc__addr b { display: block; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }

/* Team */
.d-team { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 24px; border-top: 1px solid var(--line); }
.d-team div { padding: 22px 16px 4px; border-left: 1px solid var(--line); text-align: center; }
.d-team div:first-child { border-left: 0; }
.d-team span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); font-weight: 600; }
.d-team b { display: block; margin-top: 8px; font-family: var(--serif); font-weight: 500; color: var(--emerald); font-size: 16.5px; }

/* Enquiry */
.d-pick { grid-template-columns: repeat(3, 1fr); }
.d-contact { display: grid; gap: 16px; margin: 0; }
.d-contact dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); font-weight: 600; }
.d-contact dd { margin: 4px 0 0; font-size: 16px; }
.d-contact a:hover { color: var(--gold-3); }
.d-disclaimer { font-size: 12.5px; color: var(--muted); padding-block: 26px 40px; text-align: center; }

/* Group nav highlight for the flagship */
.nav__link[href="#/dwaraka-369"] { color: var(--gold-3); font-weight: 600; }

/* Responsive */
@media (max-width: 1180px) {
  .d-facts__grid { grid-template-columns: repeat(4, 1fr); }
  .d-fact:nth-child(5) { border-left: 0; padding-left: 0; }
  .d-units { grid-template-columns: repeat(3, 1fr); }
  .d-team { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .d-hero__inner { flex-direction: column; align-items: flex-start; }
  .d-hero__by { text-align: left; }
  .d-concept__head, .d-369, .d-arrival, .d-am, .d-plan, .d-loc, .d-specs { grid-template-columns: 1fr; }
  .d-arrival__img { aspect-ratio: 16 / 10; }
  .d-loc__map { position: static; }
  .subnav__brand { display: none; }
}
@media (max-width: 640px) {
  .d-facts__grid { grid-template-columns: 1fr 1fr; }
  .d-fact { border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid rgba(250,248,243,.12); }
  .d-units { grid-template-columns: 1fr 1fr; gap: 12px; }
  .d-unit__meta { grid-template-columns: 1fr; }
  .d-unit__meta strong { grid-column: 1; grid-row: auto; font-size: 18px; }
  .d-am__list, .d-loc__groups, .d-legend { grid-template-columns: 1fr; }
  .d-am__mosaic { grid-auto-rows: 150px; }
  .d-interiors { grid-template-columns: 1fr; }
  .d-team { grid-template-columns: 1fr 1fr; }
  .d-pick { grid-template-columns: 1fr; }
  .subnav .btn { display: none; }
}
@media (max-width: 960px) {
  .d-hero__shade { background: linear-gradient(0deg, rgba(8,30,19,.92) 0%, rgba(8,30,19,.7) 55%, rgba(8,30,19,.35) 100%); }
}
