/* ============================================================
   SALA — Hệ thống nhận diện 2025.1 · "Hội tụ tinh hoa cuộc sống"
   Shared stylesheet for the Sala urban-district website
   ============================================================ */

:root {
  /* === Màu chủ đạo === */
  --sala-yellow: #BC8E49;
  --sala-red:    #C82254;
  --sala-cream:  #EADCC2;
  --sala-dark:   #3D312A;
  --sala-chestnut: #6C3D2C;

  /* === Tokens === */
  --color-primary: #BC8E49;
  --color-secondary: #C82254;
  --color-bg: #EADCC2;            /* tone nền — tweakable */
  --color-bg-alt: #F5EFE2;
  --color-bg-dark: #2A211C;       /* charcoal điện ảnh, đậm hơn để cinematic */
  --color-bg-dark-2: #3D312A;
  --color-surface: #FFFFFF;
  --color-surface-warm: #FAF6EF;

  --color-text-primary: #3D312A;
  --color-text-secondary: #6C3D2C;
  --color-text-muted: rgba(61,49,42,0.5);
  --color-text-inverse: #EADCC2;
  --color-text-gold: #BC8E49;
  --color-text-red: #C82254;

  --color-border: rgba(188,142,73,0.22);
  --color-border-strong: rgba(188,142,73,0.5);
  --color-border-dark: rgba(61,49,42,0.15);

  --gradient-gold-metalic: linear-gradient(135deg,#D4A853 0%,#BC8E49 25%,#E8C875 45%,#BC8E49 65%,#9A6E2E 85%,#BC8E49 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(28,22,18,0) 0%, rgba(28,22,18,0.25) 45%, rgba(28,22,18,0.82) 100%);
  --gradient-dark-veil: linear-gradient(180deg, rgba(28,22,18,0.55) 0%, rgba(28,22,18,0.35) 50%, rgba(28,22,18,0.75) 100%);

  /* === Fonts (tweakable) === */
  --font-heading: 'Lora', 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Optima', 'Palatino Linotype', sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  /* === Type scale === */
  --text-caption: 0.75rem;
  --text-small: 0.875rem;
  --text-body: 1rem;
  --text-lead: 1.125rem;
  --text-h4: 1.375rem;
  --text-h3: 1.75rem;
  --text-h2: 2.25rem;
  --text-h1: 3rem;
  --text-display: 4rem;
  --text-hero: 5.5rem;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.12em;
  --tracking-widest: 0.2em;

  --leading-tight: 1.12;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --leading-relaxed: 1.78;

  /* === Spacing & layout === */
  --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --space-8: 64px; --space-9: 96px; --space-10: 128px; --space-11: 160px;
  --sala-pad: clamp(24px, 5vw, 80px);
  --sala-max-w: 1440px;
  --sala-grid-gap: clamp(20px, 2.5vw, 32px);
  --section-padding: clamp(88px, 11vw, 168px);

  /* === Motion (tweakable) === */
  --ease-sala: cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-reveal: cubic-bezier(0.16,1,0.3,1);
  --dur-fast: 200ms; --dur-normal: 350ms; --dur-slow: 700ms; --dur-slower: 1100ms;
  --motion-scale: 1;        /* scroll/parallax intensity */
  --pattern-opacity: 0.14;  /* flower pattern visibility */
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: var(--leading-normal);
}
img, svg, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--sala-yellow); color: #fff; }

/* ============================================================
   LAYOUT
   ============================================================ */
.sala-container {
  max-width: var(--sala-max-w);
  margin: 0 auto;
  padding-inline: var(--sala-pad);
}
.sala-container--wide { max-width: 1680px; }
.sala-section { padding-block: var(--section-padding); position: relative; }
.sala-section--sm { padding-block: clamp(48px, 6vw, 80px); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.sala-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--sala-red);
  display: inline-block;
}
.sala-eyebrow--gold { color: var(--sala-yellow); }
.sala-eyebrow--inverse { color: var(--sala-yellow); }

.sala-title {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}
.sala-title em { font-style: italic; color: var(--sala-yellow); }
.sala-title--inverse { color: var(--color-text-inverse); }

.sala-en {
  font-family: var(--font-heading);
  font-style: italic;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
}
.sala-lead {
  font-size: var(--text-lead);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 58ch;
}

.gold-text {
  background: var(--gradient-gold-metalic);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Divider */
.sala-divider {
  width: 56px; height: 2px;
  background: var(--gradient-gold-metalic);
  margin-block: var(--space-5);
}
.sala-divider--center { margin-inline: auto; }
.sala-divider-pattern {
  display: flex; align-items: center; gap: 18px;
  color: var(--sala-yellow);
}
.sala-divider-pattern::before, .sala-divider-pattern::after {
  content: ''; flex: 1; height: 1px; background: var(--color-border-strong);
}

/* Section header */
.sala-section-header { text-align: center; margin-bottom: clamp(48px, 6vw, 88px); }
.sala-section-header--left { text-align: left; }
.sala-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: 18px;
}
.sala-section-title em { font-style: italic; color: var(--sala-yellow); }
.sala-section-desc {
  font-size: var(--text-lead);
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin-inline: auto;
  line-height: var(--leading-relaxed);
}
.sala-section-header--left .sala-section-desc { margin-inline: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.sala-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 1px;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-sala);
  white-space: nowrap;
}
.sala-btn__arrow { transition: transform var(--dur-normal) var(--ease-sala); }
.sala-btn:hover .sala-btn__arrow { transform: translateX(4px); }
.sala-btn--primary { background: var(--sala-yellow); color: #fff; border-color: var(--sala-yellow); }
.sala-btn--primary:hover { background: #A57B3E; box-shadow: 0 10px 30px rgba(188,142,73,0.32); transform: translateY(-1px); }
.sala-btn--secondary { background: var(--sala-red); color: #fff; border-color: var(--sala-red); }
.sala-btn--secondary:hover { background: #A81B44; box-shadow: 0 10px 30px rgba(200,34,84,0.25); transform: translateY(-1px); }
.sala-btn--outline { background: transparent; color: var(--sala-yellow); border-color: var(--sala-yellow); }
.sala-btn--outline:hover { background: var(--sala-yellow); color: #fff; }
.sala-btn--ghost { background: transparent; color: var(--color-text-inverse); border-color: rgba(234,220,194,0.55); }
.sala-btn--ghost:hover { background: var(--color-text-inverse); color: var(--color-text-primary); border-color: var(--color-text-inverse); }
.sala-btn--full { width: 100%; justify-content: center; }
.sala-btn--sm { padding: 10px 22px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.sala-navbar {
  position: fixed; inset: 0 0 auto; z-index: 90;
  padding: 24px var(--sala-pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  background: transparent;
  transition: background var(--dur-slow) var(--ease-sala), padding var(--dur-normal) var(--ease-sala), box-shadow var(--dur-slow) var(--ease-sala);
}
.sala-navbar.scrolled {
  background: rgba(234,220,194,0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--color-border);
  padding-block: 14px;
}
.sala-nav-logo { display: flex; align-items: center; gap: 12px; color: var(--color-text-inverse); transition: color var(--dur-slow) ease; }
.sala-navbar.scrolled .sala-nav-logo { color: var(--color-text-primary); }
.sala-nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.sala-nav-link {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-inverse);
  position: relative;
  white-space: nowrap;
  transition: color var(--dur-fast) ease;
}
.sala-nav-links li { flex-shrink: 0; }
.sala-navbar.scrolled .sala-nav-link { color: var(--color-text-primary); }
.sala-nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--sala-yellow); transition: width var(--dur-normal) var(--ease-sala);
}
.sala-nav-link:hover { color: var(--sala-yellow); }
.sala-nav-link:hover::after { width: 100%; }
.sala-nav-cta { color: var(--color-text-inverse); border-color: rgba(234,220,194,0.55); }
.sala-navbar.scrolled .sala-nav-cta { color: var(--sala-yellow); border-color: var(--sala-yellow); }
.sala-navbar.scrolled .sala-nav-cta:hover { background: var(--sala-yellow); color: #fff; }
.sala-nav-toggle { display: none; flex-direction: column; gap: 5px; }
.sala-nav-toggle span { width: 24px; height: 1.5px; background: currentColor; display: block; }

/* Logo mark */
.sala-logomark { width: 30px; height: 30px; flex-shrink: 0; }
.sala-wordmark {
  font-family: var(--font-heading);
  font-size: 1.7rem; line-height: 1; letter-spacing: 0.02em;
  color: var(--sala-yellow);
  font-weight: 500;
}

/* ============================================================
   SCROLL PROGRESS + CHAPTER NAV
   ============================================================ */
.sala-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--gradient-gold-metalic); z-index: 100;
}
.sala-chapters {
  position: fixed; right: clamp(16px, 2.5vw, 36px); top: 50%;
  transform: translateY(-50%); z-index: 80;
  display: flex; flex-direction: column; gap: 18px;
}
.sala-chapter-dot {
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  color: var(--color-text-inverse); cursor: pointer; opacity: 0.55;
  transition: opacity var(--dur-normal) ease;
}
.sala-chapter-dot:hover { opacity: 1; }
.sala-chapter-dot.active { opacity: 1; }
.sala-chapter-dot__label {
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  opacity: 0; transform: translateX(8px);
  transition: opacity var(--dur-normal) ease, transform var(--dur-normal) ease;
  white-space: nowrap;
}
.sala-chapter-dot:hover .sala-chapter-dot__label,
.sala-chapter-dot.active .sala-chapter-dot__label { opacity: 1; transform: translateX(0); }
.sala-chapter-dot__tick { width: 22px; height: 1px; background: currentColor; transition: width var(--dur-normal) var(--ease-sala); }
.sala-chapter-dot.active .sala-chapter-dot__tick { width: 40px; background: var(--sala-yellow); }
.sala-chapters[data-theme="light"] .sala-chapter-dot { color: var(--color-text-primary); }
@media (max-width: 900px) { .sala-chapters { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.sala-hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(72px, 10vh, 132px);
  color: var(--color-text-inverse);
  overflow: hidden;
}
.sala-hero__media {
  position: absolute; inset: 0; z-index: 0;
  /* Cinematic dusk base — keeps cream text legible even if canvas/video is absent */
  background: linear-gradient(180deg, #2A211C 0%, #5A3D2E 34%, #8A5638 50%, #3A2D24 66%, #1C1611 100%);
}
.sala-hero__media canvas, .sala-hero__media video, .sala-hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.sala-hero__overlay { position: absolute; inset: 0; background: var(--gradient-hero-overlay); z-index: 1; }
.sala-hero__grain { position: absolute; inset: 0; z-index: 2; opacity: 0.5; pointer-events: none; mix-blend-mode: overlay; }
.sala-hero__content { position: relative; z-index: 3; width: 100%; }
.sala-hero__eyebrow { color: var(--sala-yellow); margin-bottom: 22px; }
.sala-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 400; line-height: 0.98;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 28px;
  max-width: 16ch;
}
.sala-hero__title em {
  font-style: italic;
  background: var(--gradient-gold-metalic);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.sala-hero__sub {
  font-family: var(--font-heading); font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(234,220,194,0.85); margin-bottom: 38px;
  letter-spacing: var(--tracking-wide);
}
.sala-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.sala-hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.sala-hero__scroll-text {
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: rgba(234,220,194,0.7);
}
.sala-hero__scroll-line { width: 1px; height: 56px; background: linear-gradient(to bottom, transparent, var(--sala-yellow)); overflow: hidden; position: relative; }
.sala-hero__scroll-line::after {
  content:''; position:absolute; inset:0; background: var(--sala-yellow);
  animation: sala-scroll-line 2s ease-in-out infinite;
}
@keyframes sala-scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Flower pattern decoration */
.sala-pattern {
  position: absolute; width: clamp(120px, 14vw, 220px); height: auto;
  opacity: var(--pattern-opacity); pointer-events: none; z-index: 2;
}
.sala-pattern--tl { top: 96px; left: 40px; transform: rotate(180deg); }
.sala-pattern--br { bottom: 40px; right: 40px; }

/* ============================================================
   PARALLAX STORY BLOCKS
   ============================================================ */
.sala-parallax {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--color-text-inverse); text-align: center;
}
.sala-parallax__layer { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.sala-parallax__veil { position: absolute; inset: 0; z-index: 1; background: var(--gradient-dark-veil); }
.sala-parallax__content { position: relative; z-index: 2; max-width: 920px; padding-inline: var(--sala-pad); }
.sala-parallax__quote {
  font-family: var(--font-heading); font-style: italic; font-weight: 400;
  font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.25;
  letter-spacing: var(--tracking-tight);
}
.sala-parallax__quote .mark { color: var(--sala-yellow); font-size: 1.1em; vertical-align: -0.08em; }
.sala-parallax__attr {
  margin-top: 28px; font-family: var(--font-body);
  font-size: var(--text-caption); font-weight: 600;
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--sala-yellow);
}

/* ============================================================
   MANIFESTO (vision)
   ============================================================ */
.sala-manifesto { background: var(--color-bg); text-align: center; }
.sala-manifesto__statement {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1.32;
  letter-spacing: var(--tracking-tight); color: var(--color-text-primary);
  max-width: 22ch; margin-inline: auto;
}
.sala-manifesto__statement em { font-style: italic; color: var(--sala-yellow); }
.sala-manifesto__word { display: inline-block; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.sala-stats { background: var(--color-bg-dark); color: var(--color-text-inverse); }
.sala-stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(188,142,73,0.18);
}
.sala-stat { background: var(--color-bg-dark); padding: clamp(40px, 5vw, 76px) 24px; text-align: center; }
.sala-stat__number {
  display: block; font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.4rem); color: var(--sala-yellow);
  line-height: 1; letter-spacing: var(--tracking-tight);
}
.sala-stat__number span { font-size: 0.5em; vertical-align: super; }
.sala-stat__label {
  font-family: var(--font-body); font-size: var(--text-caption);
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: rgba(234,220,194,0.6); margin-top: 12px;
}
@media (max-width: 768px) { .sala-stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   FEATURE ALTERNATING BLOCKS
   ============================================================ */
.sala-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px); align-items: center;
  margin-bottom: clamp(64px, 9vw, 140px);
}
.sala-feature:last-child { margin-bottom: 0; }
.sala-feature--rev .sala-feature__media { order: 2; }
.sala-feature__body { max-width: 30rem; }
.sala-feature__num {
  font-family: var(--font-heading); font-size: 1rem; font-style: italic;
  color: var(--sala-yellow); margin-bottom: 14px; display: block;
}
.sala-feature__title {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.15;
  letter-spacing: var(--tracking-tight); color: var(--color-text-primary);
  margin-bottom: 8px;
}
.sala-feature__title em { font-style: italic; color: var(--sala-yellow); }
.sala-feature__en { font-family: var(--font-heading); font-style: italic; color: var(--color-text-muted); font-size: 1.05rem; margin-bottom: 20px; }
.sala-feature__desc { color: var(--color-text-secondary); line-height: var(--leading-relaxed); }

/* ============================================================
   PLACEHOLDER MEDIA (swap-ready)
   ============================================================ */
.sala-ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(108,61,44,0.05) 0 12px, rgba(108,61,44,0.0) 12px 24px),
    linear-gradient(160deg, #E2D2B5 0%, #D9C4A0 60%, #CDB489 100%);
  border: 1px solid var(--color-border);
}
.sala-ph::after {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(61,49,42,0.55);
  background: rgba(245,239,226,0.7); padding: 5px 10px; border-radius: 1px;
  backdrop-filter: blur(2px);
}
.sala-ph--dark {
  background:
    repeating-linear-gradient(135deg, rgba(234,220,194,0.04) 0 12px, rgba(234,220,194,0) 12px 24px),
    linear-gradient(160deg, #3A2F28 0%, #2C231E 70%);
}
.sala-ph--dark::after { color: rgba(234,220,194,0.6); background: rgba(28,22,18,0.55); }
.sala-feature__media { aspect-ratio: 4/5; border-radius: 2px; }
.sala-feature__media.sala-ph { box-shadow: 0 30px 70px rgba(61,49,42,0.16); }

/* ============================================================
   ECOSYSTEM CARDS
   ============================================================ */
.sala-eco { background: var(--color-bg-alt); }
.sala-eco__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sala-grid-gap); }
.sala-eco-card {
  position: relative; min-height: 540px; overflow: hidden;
  display: flex; align-items: flex-end; border-radius: 2px;
  color: var(--color-text-inverse);
}
.sala-eco-card__media { position: absolute; inset: 0; z-index: 0; transition: transform 1.2s var(--ease-sala); }
.sala-eco-card:hover .sala-eco-card__media { transform: scale(1.06); }
.sala-eco-card__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(28,22,18,0) 30%, rgba(28,22,18,0.85) 100%); }
.sala-eco-card__body { position: relative; z-index: 2; padding: clamp(28px, 3vw, 44px); width: 100%; }
.sala-eco-card__name { font-family: var(--font-heading); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.05; margin-bottom: 10px; }
.sala-eco-card__name em { font-style: italic; color: var(--sala-yellow); }
.sala-eco-card__desc { color: rgba(234,220,194,0.8); max-width: 38ch; margin-bottom: 20px; font-size: var(--text-small); line-height: var(--leading-relaxed); }
.sala-eco-card__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--sala-yellow); }
.sala-eco-card__link .sala-btn__arrow { transition: transform var(--dur-normal) var(--ease-sala); }
.sala-eco-card:hover .sala-eco-card__link .sala-btn__arrow { transform: translateX(5px); }
@media (max-width: 860px) { .sala-eco__grid { grid-template-columns: 1fr; } .sala-eco-card { min-height: 420px; } }

/* ============================================================
   GALLERY
   ============================================================ */
.sala-gallery__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, clamp(220px, 26vw, 340px));
  gap: 4px;
}
.sala-gallery__item { position: relative; overflow: hidden; border-radius: 1px; }
.sala-gallery__item--large { grid-row: span 2; }
.sala-gallery__item .sala-ph { position: absolute; inset: 0; transition: transform 1s var(--ease-sala); }
.sala-gallery__item:hover .sala-ph { transform: scale(1.05); }
@media (max-width: 768px) {
  .sala-gallery__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .sala-gallery__item { height: 200px; }
  .sala-gallery__item--large { grid-column: span 2; height: 280px; }
}

/* ============================================================
   INQUIRY FORM
   ============================================================ */
.sala-inquiry { background: var(--color-bg); position: relative; overflow: hidden; }
.sala-inquiry__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.sala-inquiry__info { position: relative; }
.sala-inquiry__desc { color: var(--color-text-secondary); line-height: var(--leading-relaxed); max-width: 42ch; margin-top: 8px; }
.sala-inquiry__contacts { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.sala-inquiry__contact { display: flex; align-items: baseline; gap: 14px; }
.sala-inquiry__contact-label { font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--sala-yellow); min-width: 92px; }
.sala-inquiry__contact-val { font-family: var(--font-heading); font-size: 1.35rem; color: var(--color-text-primary); }
.sala-form { background: var(--color-surface-warm); border: 1px solid var(--color-border); border-radius: 2px; padding: clamp(28px, 3.5vw, 48px); }
.sala-form__group { margin-bottom: 22px; }
.sala-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sala-form__label { display: block; font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--color-text-secondary); margin-bottom: 8px; }
.sala-form__input {
  width: 100%; padding: 14px 16px; font-family: var(--font-body); font-size: var(--text-body);
  color: var(--color-text-primary); background: var(--color-surface);
  border: 1px solid var(--color-border-dark); border-radius: 1px; outline: none;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; appearance: none;
}
.sala-form__input::placeholder { color: rgba(61,49,42,0.35); }
.sala-form__input:focus { border-color: var(--sala-yellow); box-shadow: 0 0 0 3px rgba(188,142,73,0.12); }
.sala-form__select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C3D2C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.sala-form__note { font-size: var(--text-caption); color: var(--color-text-muted); text-align: center; margin-top: 14px; }
.sala-form__success {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; min-height: 320px;
}
.sala-form__success-icon { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--sala-yellow); display: grid; place-items: center; color: var(--sala-yellow); }
.sala-form.is-sent .sala-form__success { display: flex; }
.sala-form.is-sent .sala-form__fields { display: none; }
@media (max-width: 820px) { .sala-inquiry__layout { grid-template-columns: 1fr; } .sala-form__row { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.sala-footer { background: var(--color-bg-dark); color: var(--color-text-inverse); padding-block: clamp(64px, 8vw, 120px) 40px; }
.sala-footer__top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 56px; padding-bottom: 56px; }
.sala-footer__tagline { font-family: var(--font-heading); font-style: italic; font-size: var(--text-lead); color: var(--sala-yellow); margin-top: 16px; opacity: 0.85; }
.sala-footer__about { color: rgba(234,220,194,0.55); margin-top: 18px; max-width: 38ch; font-size: var(--text-small); line-height: var(--leading-relaxed); }
.sala-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sala-footer__nav-group h4 { font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--sala-yellow); margin-bottom: 18px; }
.sala-footer__nav-group a { display: block; font-size: var(--text-small); color: rgba(234,220,194,0.62); margin-bottom: 12px; transition: color var(--dur-fast) ease; }
.sala-footer__nav-group a:hover { color: var(--color-text-inverse); }
.sala-footer__bottom { border-top: 1px solid rgba(188,142,73,0.2); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: var(--text-caption); color: rgba(234,220,194,0.42); }
@media (max-width: 768px) { .sala-footer__top { grid-template-columns: 1fr; gap: 40px; } .sala-footer__nav { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.sala-reveal { opacity: 0; transform: translateY(calc(30px * var(--motion-scale))); transition: opacity var(--dur-slow) var(--ease-reveal), transform var(--dur-slow) var(--ease-reveal); }
.sala-reveal.in-view { opacity: 1; transform: none; }
.sala-reveal--d1 { transition-delay: 120ms; }
.sala-reveal--d2 { transition-delay: 240ms; }
.sala-reveal--d3 { transition-delay: 360ms; }
.sala-reveal--d4 { transition-delay: 480ms; }
@media (prefers-reduced-motion: reduce) {
  .sala-reveal { opacity: 1 !important; transform: none !important; }
  .sala-hero__scroll-line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE NAV
   ============================================================ */
@media (max-width: 900px) {
  .sala-nav-links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 48px; background: var(--color-bg-dark); transform: translateX(100%); transition: transform var(--dur-normal) var(--ease-sala); z-index: 95; }
  .sala-nav-links.open { transform: translateX(0); }
  .sala-nav-links .sala-nav-link { color: var(--color-text-inverse); font-size: var(--text-body); }
  .sala-navbar.scrolled .sala-nav-links .sala-nav-link { color: var(--color-text-inverse); }
  .sala-nav-toggle { display: flex; z-index: 96; }
  .sala-nav-cta { display: none; }
}
@media (max-width: 700px) {
  .sala-feature, .sala-feature--rev .sala-feature__media { grid-template-columns: 1fr; }
  .sala-feature--rev .sala-feature__media { order: 0; }
  .sala-feature__media { aspect-ratio: 3/2; }
}

/* ============================================================
   PROJECT PAGE
   ============================================================ */
/* Breadcrumb / project hero */
.sala-phero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; padding-bottom: clamp(56px, 8vh, 110px); color: var(--color-text-inverse); overflow: hidden; }
.sala-phero__media { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg,#3A2D24 0%,#6C3D2C 45%,#2A211C 100%); }
.sala-phero__overlay { position: absolute; inset: 0; z-index: 1; background: var(--gradient-hero-overlay); }
.sala-phero__content { position: relative; z-index: 2; width: 100%; }
.sala-breadcrumb { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: var(--text-caption); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: rgba(234,220,194,0.7); margin-bottom: 26px; }
.sala-breadcrumb a { color: var(--sala-yellow); }
.sala-breadcrumb span { opacity: 0.5; }
.sala-phero__title { font-family: var(--font-heading); font-weight: 500; font-size: clamp(2.6rem, 6.5vw, 5.5rem); line-height: 1.0; letter-spacing: var(--tracking-tight); margin-bottom: 18px; }
.sala-phero__title em { font-style: italic; color: var(--sala-yellow); }
.sala-phero__meta { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 30px; }
.sala-phero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.sala-phero__meta-label { font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: rgba(234,220,194,0.55); }
.sala-phero__meta-val { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-text-inverse); }
.sala-phero__meta-val em { font-style: normal; color: var(--sala-yellow); }

/* Sticky sub-nav */
.sala-subnav { position: sticky; top: 0; z-index: 70; background: rgba(234,220,194,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.sala-subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.sala-subnav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); overflow-x: auto; scrollbar-width: none; }
.sala-subnav__links::-webkit-scrollbar { display: none; }
.sala-subnav__link { font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-secondary); white-space: nowrap; transition: color var(--dur-fast) ease; }
.sala-subnav__link:hover { color: var(--sala-yellow); }
.sala-subnav__cta { flex-shrink: 0; }
@media (max-width: 720px) { .sala-subnav__cta { display: none; } }

/* Overview intro split */
.sala-overview__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.sala-overview__lead { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.4; color: var(--color-text-primary); margin-bottom: 22px; }
.sala-overview__lead em { font-style: italic; color: var(--sala-yellow); }
.sala-overview__body { color: var(--color-text-secondary); line-height: var(--leading-relaxed); margin-bottom: 16px; }
.sala-overview__media { aspect-ratio: 3/4; border-radius: 2px; box-shadow: 0 30px 70px rgba(61,49,42,0.18); }
@media (max-width: 820px) { .sala-overview__layout { grid-template-columns: 1fr; } .sala-overview__media { aspect-ratio: 4/3; } }

/* Amenities grid */
.sala-amen__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sala-grid-gap); }
.sala-amen-card { background: var(--color-surface-warm); border: 1px solid var(--color-border); border-radius: 2px; padding: clamp(28px, 3vw, 40px); transition: transform var(--dur-normal) var(--ease-sala), box-shadow var(--dur-normal) var(--ease-sala); }
.sala-amen-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(61,49,42,0.12); }
.sala-amen-card__icon { width: 48px; height: 48px; color: var(--sala-yellow); margin-bottom: 22px; }
.sala-amen-card__num { font-family: var(--font-heading); font-style: italic; font-size: 0.95rem; color: var(--sala-red); display: block; margin-bottom: 6px; }
.sala-amen-card__title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-text-primary); margin-bottom: 10px; }
.sala-amen-card__desc { color: var(--color-text-secondary); font-size: var(--text-small); line-height: var(--leading-relaxed); }
@media (max-width: 860px) { .sala-amen__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sala-amen__grid { grid-template-columns: 1fr; } }

/* Floor plan filter */
.sala-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.sala-filter-btn { padding: 10px 22px; font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-secondary); border: 1px solid var(--color-border-strong); border-radius: 100px; background: transparent; transition: all var(--dur-fast) ease; }
.sala-filter-btn:hover { border-color: var(--sala-yellow); color: var(--sala-yellow); }
.sala-filter-btn.active { background: var(--sala-yellow); color: #fff; border-color: var(--sala-yellow); }
.sala-plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sala-grid-gap); }
.sala-plan-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--dur-normal) var(--ease-sala); }
.sala-plan-card:hover { box-shadow: 0 18px 44px rgba(61,49,42,0.14); }
.sala-plan-card__media { aspect-ratio: 4/3; position: relative; border-bottom: 1px solid var(--color-border); }
.sala-plan-card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--sala-red); color: #fff; font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.sala-plan-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.sala-plan-card__name { font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-text-primary); margin-bottom: 4px; }
.sala-plan-card__type { font-family: var(--font-body); font-size: var(--text-caption); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--sala-yellow); margin-bottom: 18px; }
.sala-plan-card__specs { display: flex; gap: 20px; padding-top: 16px; border-top: 1px solid var(--color-border); margin-top: auto; }
.sala-plan-card__spec { display: flex; flex-direction: column; gap: 2px; }
.sala-plan-card__spec-val { font-family: var(--font-heading); font-size: 1.25rem; color: var(--color-text-primary); }
.sala-plan-card__spec-label { font-size: 10px; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-muted); }
@media (max-width: 860px) { .sala-plans__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sala-plans__grid { grid-template-columns: 1fr; } }

/* Gallery tabs */
.sala-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.sala-tab { padding: 10px 24px; font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-secondary); border-bottom: 2px solid transparent; transition: all var(--dur-fast) ease; }
.sala-tab:hover { color: var(--sala-yellow); }
.sala-tab.active { color: var(--sala-yellow); border-bottom-color: var(--sala-yellow); }
.sala-panel { display: none; }
.sala-panel.active { display: block; }

/* Location */
.sala-location { background: var(--color-bg-dark); color: var(--color-text-inverse); }
.sala-location__layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.sala-location__map { aspect-ratio: 4/3; border-radius: 2px; position: relative; overflow: hidden; }
.sala-conn { display: flex; flex-direction: column; gap: 0; margin-top: 30px; }
.sala-conn__item { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(188,142,73,0.2); }
.sala-conn__place { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-text-inverse); }
.sala-conn__dist { font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--sala-yellow); white-space: nowrap; }
@media (max-width: 820px) { .sala-location__layout { grid-template-columns: 1fr; } }

/* Timeline */
.sala-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 20px; }
.sala-timeline::before { content: ''; position: absolute; top: 11px; left: 8%; right: 8%; height: 1px; background: var(--color-border-strong); }
.sala-tl-step { text-align: center; padding: 0 12px; position: relative; }
.sala-tl-step__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sala-yellow); background: var(--color-bg); margin: 0 auto 22px; position: relative; z-index: 1; }
.sala-tl-step--done .sala-tl-step__dot { background: var(--sala-yellow); }
.sala-tl-step__date { font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--sala-yellow); margin-bottom: 8px; }
.sala-tl-step__title { font-family: var(--font-heading); font-size: 1.25rem; color: var(--color-text-primary); margin-bottom: 6px; }
.sala-tl-step__desc { font-size: var(--text-small); color: var(--color-text-secondary); }
@media (max-width: 760px) { .sala-timeline { grid-template-columns: 1fr 1fr; gap: 36px 0; } .sala-timeline::before { display: none; } }

/* Price / CTA band */
.sala-priceband { background: var(--gradient-gold-metalic); color: #fff; text-align: center; }
.sala-priceband__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sala-priceband__label { font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600; letter-spacing: var(--tracking-widest); text-transform: uppercase; color: rgba(255,255,255,0.8); }
.sala-priceband__price { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
.sala-priceband__price em { font-style: normal; font-size: 0.5em; opacity: 0.85; }
.sala-priceband .sala-btn--light { background: #fff; color: var(--sala-yellow); border-color: #fff; }
.sala-priceband .sala-btn--light:hover { background: var(--color-bg-dark); color: #fff; border-color: var(--color-bg-dark); }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.sala-tweaks {
  position: fixed; top: 84px; right: 22px; z-index: 1000;
  width: 320px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 110px); overflow-y: auto;
  background: #241C18; color: var(--color-text-inverse);
  border: 1px solid rgba(188,142,73,0.35); border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  font-family: var(--font-body);
  display: none;
}
.sala-tweaks.open { display: block; }
.sala-tweaks__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(188,142,73,0.2);
  position: sticky; top: 0; background: #241C18; z-index: 1;
}
.sala-tweaks__title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--sala-yellow); }
.sala-tweaks__close { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: rgba(234,220,194,0.7); transition: background var(--dur-fast) ease, color var(--dur-fast) ease; }
.sala-tweaks__close:hover { background: rgba(188,142,73,0.18); color: var(--color-text-inverse); }
.sala-tweaks__body { padding: 8px 20px 22px; }
.sala-tweaks__group { padding: 16px 0; border-bottom: 1px solid rgba(188,142,73,0.12); }
.sala-tweaks__group:last-child { border-bottom: none; }
.sala-tweaks__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: rgba(234,220,194,0.65); margin-bottom: 12px; }
.sala-tweaks__val { color: var(--sala-yellow); font-family: var(--font-mono); letter-spacing: 0; text-transform: none; }
.sala-tweaks__seg { display: flex; flex-wrap: wrap; gap: 6px; }
.sala-tweaks__seg button {
  flex: 1 1 auto; min-width: 0; padding: 9px 8px; font-family: var(--font-body);
  font-size: 12px; color: rgba(234,220,194,0.7); white-space: nowrap;
  border: 1px solid rgba(188,142,73,0.3); border-radius: 2px; background: transparent;
  transition: all var(--dur-fast) ease;
}
.sala-tweaks__seg button.active { background: var(--sala-yellow); color: #1C1611; border-color: var(--sala-yellow); }
.sala-tweaks__seg button:hover:not(.active) { border-color: var(--sala-yellow); color: var(--color-text-inverse); }
.sala-tweaks__seg--font button { font-family: var(--tw-font, var(--font-heading)); font-size: 15px; }
.sala-tweaks__swatches { display: flex; gap: 10px; }
.sala-tweaks__swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease; position: relative; }
.sala-tweaks__swatch.active { border-color: var(--sala-yellow); }
.sala-tweaks__swatch:hover { transform: scale(1.08); }
.sala-tweaks__range { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 3px; background: rgba(188,142,73,0.25); outline: none; }
.sala-tweaks__range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--sala-yellow); cursor: pointer; border: none; }
.sala-tweaks__range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--sala-yellow); cursor: pointer; border: none; }
.sala-tweaks__hint { font-size: 11px; color: rgba(234,220,194,0.4); margin-top: 14px; line-height: 1.5; }
@media (max-width: 600px) { .sala-tweaks { top: auto; bottom: 0; right: 0; left: 0; width: 100%; max-width: 100%; max-height: 70vh; border-radius: 12px 12px 0 0; } }
