/* ══════════════════════════════════════════════════════════════════
   CHANDARA — SHARED DESIGN SYSTEM
   All pages import this file. index.html also has inline overrides.
══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Montserrat:wght@200;300;400&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --white:      #ffffff;
  --off-white:  #f9f8f6;
  --pale:       #f3f1ed;
  --cream:      #f7f0e5;

  --ink:        #1a1714;
  --ink-2:      #2e2b26;
  --ink-3:      #3a3428;

  --gold:       #83754d;
  --gold-light: #c9b98a;
  --gold-pale:  rgba(131,117,77,0.18);

  --deep:       #2a2218;
  --deep-2:     #3a3020;

  --display: 'Cormorant Garamond', Georgia, serif;
  --ui:      'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--ui); }

/* ── NAVIGATION ──────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(249,248,246,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(131,117,77,0.12);
  transition: padding 400ms ease, background 400ms ease;
}
/* Hero pages override with transparent start */
#nav.hero-nav {
  background: transparent;
  box-shadow: none;
  padding: 24px 56px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#nav.hero-nav.scrolled {
  background: rgba(249,248,246,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(131,117,77,0.12);
  padding: 8px 56px;
}
#nav.scrolled { padding: 8px 56px; }

.nav-logo {
  height: 165px;
  width: auto;
  transition: opacity 400ms ease;
}
nav a:has(.nav-logo) {
  display: flex;
  align-items: center;
  text-decoration: none;
  outline: none;
  border: none;
}
/* On non-hero pages: logo always visible */
#nav.hero-nav .nav-logo { opacity: 0; }
#nav.hero-nav.scrolled .nav-logo { opacity: 1; }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: var(--ui);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 350ms ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* On transparent hero-nav */
#nav.hero-nav .nav-links a {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
#nav.hero-nav .nav-links a:hover { color: rgba(255,255,255,0.75); text-shadow: none; }
#nav.hero-nav.scrolled .nav-links a { color: var(--ink); text-shadow: none; }
#nav.hero-nav.scrolled .nav-links a:hover { color: var(--gold); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-lang {
  font-family: var(--ui);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 350ms ease;
  background: none;
  border: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
#nav.hero-nav .nav-lang { color: rgba(255,255,255,0.6); }
#nav.hero-nav.scrolled .nav-lang { color: var(--ink-3); }

/* Active language indicator */
.nl-on { color: var(--gold); font-weight: 400; }
#nav.hero-nav .nl-on { color: rgba(255,255,255,0.95); }
#nav.hero-nav.scrolled .nl-on { color: var(--gold); }

/* Lang toggle inside mobile menu */
#mobile-menu .nav-lang {
  display: block !important;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  margin-top: -16px;
}
#mobile-menu .nav-lang .nl-on { color: var(--gold); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: background 350ms ease;
}
#nav.hero-nav .nav-hamburger span { background: rgba(255,255,255,0.9); }
#nav.hero-nav.scrolled .nav-hamburger span { background: var(--ink); }

.nav-enquire {
  font-family: var(--ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 10px 24px;
  border-radius: 0;
  border: none;
  transition: background 350ms ease;
}
.nav-enquire:hover { background: var(--deep); }

/* ── MOBILE MENU ─────────────────────────────────────────────── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu a {
  font-family: var(--display);
  font-weight: 300;
  font-size: 38px;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: color 300ms;
}
#mobile-menu a:hover { color: var(--gold); }
.menu-close {
  position: absolute;
  top: 28px; right: 40px;
  font-size: 28px;
  font-weight: 200;
  color: var(--ink);
  background: none;
  border: none;
  line-height: 1;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms ease, transform 900ms ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity 1200ms ease;
}
.reveal-fade.visible { opacity: 1; }

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease, transform 800ms ease;
}
.stagger.visible > *:nth-child(1)  { opacity:1; transform:none; transition-delay:0ms; }
.stagger.visible > *:nth-child(2)  { opacity:1; transform:none; transition-delay:80ms; }
.stagger.visible > *:nth-child(3)  { opacity:1; transform:none; transition-delay:160ms; }
.stagger.visible > *:nth-child(4)  { opacity:1; transform:none; transition-delay:240ms; }
.stagger.visible > *:nth-child(5)  { opacity:1; transform:none; transition-delay:320ms; }
.stagger.visible > *:nth-child(6)  { opacity:1; transform:none; transition-delay:400ms; }
.stagger.visible > *:nth-child(7)  { opacity:1; transform:none; transition-delay:480ms; }
.stagger.visible > *:nth-child(8)  { opacity:1; transform:none; transition-delay:560ms; }
.stagger.visible > *:nth-child(9)  { opacity:1; transform:none; transition-delay:640ms; }
.stagger.visible > *:nth-child(10) { opacity:1; transform:none; transition-delay:720ms; }
.stagger.visible > *:nth-child(11) { opacity:1; transform:none; transition-delay:800ms; }
.stagger.visible > *:nth-child(12) { opacity:1; transform:none; transition-delay:880ms; }
.stagger.visible > *:nth-child(13) { opacity:1; transform:none; transition-delay:960ms; }
.stagger.visible > *:nth-child(14) { opacity:1; transform:none; transition-delay:1040ms; }

/* ── MICRO ELEMENTS ──────────────────────────────────────────── */
.overline {
  display: block;
  font-family: var(--ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.overline-light { color: rgba(201,185,138,0.75); }

.rule {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold);
}
.rule-light { background: rgba(255,255,255,0.3); }

.arrow-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 400ms ease;
}
.arrow-cta::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  transition: width 400ms ease;
}
.arrow-cta:hover { gap: 20px; }
.arrow-cta:hover::after { width: 56px; }

.pill-btn {
  display: inline-block;
  font-family: var(--ui);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 18px 52px;
  border-radius: 0;
  border: none;
  transition: background 350ms ease, transform 200ms ease;
}
.pill-btn:hover { background: var(--deep); transform: translateY(-1px); }

.outline-btn {
  display: inline-block;
  font-family: var(--ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 14px 40px;
  border: 1px solid var(--gold);
  border-radius: 0;
  transition: background 350ms ease, color 350ms ease;
}
.outline-btn:hover { background: var(--gold); color: #fff; }

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
  padding-left: 64px;
  margin-top: 148px; /* clear fixed nav */
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,23,20,0.55) 0%, rgba(26,23,20,0.1) 60%, transparent 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero-overline {
  display: block;
  font-family: var(--ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.page-hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 62px);
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

/* ── SECTION DEFAULTS ────────────────────────────────────────── */
.section-std {
  padding: 120px 64px;
}
.section-pale  { background: var(--pale); }
.section-cream { background: var(--cream); }
.section-off   { background: var(--off-white); }
.section-white { background: var(--white); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 42px);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.section-body {
  font-family: var(--ui);
  font-weight: 300;
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

/* ── FEATURE LIST ────────────────────────────────────────────── */
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feat-list li {
  font-family: var(--ui);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
}
.feat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ── EDITORIAL SPLITS ────────────────────────────────────────── */
.ed-split {
  display: grid;
  min-height: 82vh;
  margin: 64px 0;
}
.ed-split.img-left  { grid-template-columns: 62fr 38fr; }
.ed-split.img-right { grid-template-columns: 38fr 62fr; }

.ed-split-img { overflow: hidden; }
.ed-split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.4,0,0.2,1);
}
.ed-split-img:hover img { transform: scale(1.03); }

.ed-split-text {
  padding: 80px 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  background: var(--white);
}
.ed-split.img-right .ed-split-text { background: var(--off-white); }

/* ── FULL BLEED IMAGE ────────────────────────────────────────── */
.full-bleed {
  position: relative;
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
  margin: 64px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.full-bleed img {
  position: absolute;
  inset: 0;
  width: 100%; height: 116%;
  object-fit: cover;
  top: -8%;
  will-change: transform;
}
.full-bleed-wash {
  position: absolute;
  inset: 0;
  background: rgba(26,23,20,0.36);
}
.full-bleed-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 48px;
}
.full-bleed-verse {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(26px, 4vw, 54px);
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid rgba(131,117,77,0.18);
  padding: 108px 64px 56px;
  text-align: center;
}
.ft-logo {
  height: 160px;
  width: auto;
  margin: 0 auto 36px;
}
.ft-location {
  font-family: var(--ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 44px;
}
.ft-rule { margin: 0 auto 44px; }
.ft-links {
  display: flex;
  justify-content: center;
  gap: 44px;
  list-style: none;
  margin-bottom: 40px;
}
.ft-links a {
  font-family: var(--ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 300ms;
}
.ft-links a:hover { color: var(--gold); }
.ft-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 40px;
}
.ft-contact a {
  font-family: var(--ui);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  transition: color 300ms;
}
.ft-contact a:hover { color: var(--gold); }
.ft-social {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 40px;
}
.ft-social a { color: var(--ink-3); transition: color 300ms; }
.ft-social a:hover { color: var(--gold); }
.ft-social svg { width: 16px; height: 16px; }
.ft-credit {
  font-family: var(--ui); font-weight: 300;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3); margin-bottom: 10px;
}
.ft-credit a { color: var(--ink-2); transition: color 300ms; }
.ft-credit a:hover { color: var(--gold); }
.ft-copy {
  font-family: var(--ui); font-weight: 300;
  font-size: 10px; letter-spacing: 0.08em;
  color: rgba(122,114,104,0.5);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (min-width: 1101px) {
  .nav-enquire { display: block; }
}
@media (max-width: 1100px) {
  .nav-enquire { display: none; }
  .ed-split { grid-template-columns: 1fr !important; min-height: auto; margin: 32px 0; }
  .ed-split-img { min-height: 60vw; }
  .ed-split.img-right .ed-split-text { order: 2; }
  .ed-split.img-right .ed-split-img  { order: 1; }
  .ed-split-text { padding: 64px 48px; }
  .page-hero { padding-left: 40px; }
  .section-std { padding: 96px 40px; }
}
@media (max-width: 768px) {
  #nav, #nav.hero-nav { padding: 16px 24px; }
  #nav.scrolled, #nav.hero-nav.scrolled { padding: 12px 24px; }
  .nav-links, .nav-lang { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo { height: 120px; }
  .page-hero { padding-left: 28px; margin-top: 110px; }
  .section-std { padding: 72px 28px; }
  .ed-split-text { padding: 52px 28px; }
  footer { padding: 72px 28px 44px; }
  .ft-logo { height: 120px; }
  .ft-links { gap: 20px; flex-wrap: wrap; }
}

/* ── TOUCH-ACTIVE PINS ───────────────────────────────────────── */
/* floor plan */
.fp-pin.active .fp-label { opacity: 1 !important; }
/* masterplan */
.mp-marker.active .mp-tooltip { opacity: 1 !important; pointer-events: auto; }

/* ── MOBILE: floor plan pins ─────────────────────────────────── */
@media (max-width: 768px) {
  /* Larger touch target */
  .fp-dot { width: 14px !important; height: 14px !important; }
  /* Show label below pin (avoids top-edge overflow) */
  .fp-label {
    bottom: auto !important;
    top: 130% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: normal !important;
    max-width: 120px !important;
    min-width: 90px !important;
    font-size: 10px;
    z-index: 20;
  }
  /* Masterplan tooltip below marker */
  .mp-tooltip {
    bottom: auto !important;
    top: 110% !important;
  }
}

/* ── SHARED NAV JS ───────────────────────────────────────────── */
/* Applied via JS; styles above cover the states */
