/* ============================================================
   RAMKY FORTUNA WHITEFIELD — project-page.css
   Page-specific styles. Loaded AFTER style.css, reuses the same
   tokens, palette, typography, reveal animations and components.
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.85); border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.breadcrumb a:hover { color: #fff; border-color: var(--gold-2); }
.breadcrumb li[aria-current] { color: var(--gold-2); font-weight: 500; }
.breadcrumb .sep { color: rgba(255,255,255,.4); }

/* ---------- Hero tweaks (shorter than homepage) ---------- */
.project-hero { min-height: 92svh; }
.project-hero .hero-content { max-width: 860px; }
.hero-tagline { margin-top: 1.25rem; font-size: clamp(1.05rem, .98rem + .5vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 640px; }
.hero-note { margin-top: .85rem; font-size: .82rem; color: rgba(255,255,255,.65); letter-spacing: .02em; }

/* ---------- Section intro image pairing ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md);
  object-fit: cover; aspect-ratio: 4/3; background: var(--cream-2);
}
.split-copy p + p { margin-top: 1.1rem; color: var(--ink-soft); }

/* ---------- Configurations & Pricing table ---------- */
.config-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.config-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--paper); }
.config-table th, .config-table td { padding: 1.1rem 1.4rem; text-align: left; border-bottom: 1px solid var(--line); }
.config-table thead th {
  background: var(--green); color: #fff; font-family: var(--sans); font-weight: 600;
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
}
.config-table tbody tr { transition: background .25s; }
.config-table tbody tr:hover { background: var(--cream-2); }
.config-table tbody tr:last-child td { border-bottom: 0; }
.config-table .conf-name { font-family: var(--serif); font-size: 1.15rem; color: var(--green); font-weight: 500; }
.config-table .conf-price { color: var(--gold); font-weight: 600; white-space: nowrap; }
.config-note { margin-top: 1rem; font-size: .82rem; color: var(--muted); }

/* ---------- Amenity category cards (reuses .usp-card look) ---------- */
.amenity-cat-list { margin-top: 1.1rem; display: grid; gap: .55rem; }
.amenity-cat-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; }
.amenity-cat-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .55rem; border-radius: 50%; background: var(--gold); }

/* ---------- Location ---------- */
.location-map { margin-top: 2rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.location-list { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2,1fr); gap: .85rem 1.5rem; }
.location-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; }
.location-list li strong { color: var(--green); }
.location-list li::before { content: "→"; color: var(--gold); font-weight: 700; }

/* ---------- Why invest (stat highlights) ---------- */
.invest-highlights { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.invest-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.invest-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.invest-card p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Gallery + Lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2.5rem; }
.gallery-item { position: relative; border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--cream-2); box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(18,58,44,0); transition: background .3s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { background: rgba(18,58,44,.18); }
.gallery-item .zoom-ic { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--green); border-radius: 50%; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; z-index: 1; }
.gallery-item:hover .zoom-ic { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(8,18,13,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: clamp(1rem, 4vw, 3rem); }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-btn { position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .3s, transform .3s; }
.lightbox-btn:hover { background: rgba(255,255,255,.25); transform: scale(1.05); }
.lightbox-btn svg { width: 24px; height: 24px; }
.lb-close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lb-prev { left: clamp(.5rem,2vw,2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(.5rem,2vw,2rem); top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }
.lb-counter { position: absolute; bottom: clamp(1rem,3vw,2rem); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .85rem; letter-spacing: .1em; }

/* ---------- RERA / Legal disclaimer ---------- */
.rera-disclaimer { background: var(--cream-2); border-top: 1px solid var(--line); }
.rera-disclaimer .container { padding-block: 2.5rem; }
.rera-disclaimer h2 { font-size: 1.1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: .75rem; }
.rera-disclaimer p { color: var(--muted); font-size: .85rem; max-width: 95ch; }
.rera-disclaimer p + p { margin-top: .6rem; }

/* ---------- Sticky mobile enquire bar ---------- */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; gap: .6rem; padding: .7rem clamp(.75rem,3vw,1rem);
  background: rgba(250,247,240,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(18,40,30,.12);
  transform: translateY(110%); transition: transform .45s var(--spring);
}
.mobile-cta-bar.show { transform: none; }
.mobile-cta-bar .btn { flex: 1; padding: .8rem 1rem; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .invest-highlights { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .location-list { grid-template-columns: 1fr; }
  .mobile-cta-bar { display: flex; }
  /* keep floating actions + back-to-top clear of the sticky bar */
  .to-top { bottom: calc(clamp(1rem,3vw,2rem) + 64px); }
  .floating-actions { bottom: calc(clamp(1rem,3vw,1.75rem) + 64px); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
