/* ──────────────────────────────────────────────────────────────
   SAMBAQUI TOWER HOUSE — Stylesheet
   Mobile-first · Identidade preservada (navy / gold / sand)
   ──────────────────────────────────────────────────────────── */

/* ─── 1. RESET & TOKENS ─── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { list-style: none; }

:root {
  /* Brand */
  --navy:       #0b1f35;
  --navy-2:     #0d2a45;
  --navy-3:     #142d4c;
  --navy-deep:  #060f1a;
  --gold:       #c9a96e;
  --gold-soft:  #e8d5b0;
  --gold-glow:  rgba(201, 169, 110, .22);

  /* Surface */
  --surface:    #ffffff;
  --surface-2:  #f5f0e8;
  --surface-3:  #fbf7f1;
  --line:       rgba(11, 31, 53, .08);
  --line-strong:rgba(11, 31, 53, .16);

  /* Text */
  --ink:        #1a1a2e;
  --ink-soft:   #4f5b6e;
  --ink-muted:  #8893a2;
  --on-dark:    rgba(255, 255, 255, .85);
  --on-dark-soft:rgba(255, 255, 255, .55);
  --on-dark-mute:rgba(255, 255, 255, .35);

  /* Status */
  --green:      #2e7d32;
  --green-bg:   #e8f5e9;
  --red:        #c0392b;
  --red-bg:     #fce8e8;

  /* Type */
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter:    clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius:    6px;
  --radius-lg: 14px;

  /* Motion */
  --ease:    cubic-bezier(.2, .8, .2, 1);
  --ease-out:cubic-bezier(.16, 1, .3, 1);
  --t-fast:  150ms;
  --t-base:  300ms;
  --t-slow:  600ms;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 31, 53, .08);
  --shadow-md: 0 12px 30px rgba(11, 31, 53, .14);
  --shadow-lg: 0 30px 60px rgba(11, 31, 53, .22);
  --shadow-gold: 0 18px 50px rgba(201, 169, 110, .35);
}

/* ─── 2. BASE ─── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(.95rem, 1vw + .65rem, 1.05rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold-glow); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--gold);
  padding: .8rem 1.2rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ─── 3. TYPOGRAPHY HELPERS ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.eyebrow--gold { color: var(--gold); padding: .35rem 1.1rem; border: 1px solid rgba(201,169,110,.4); border-radius: 999px; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw + .5rem, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--navy);
}
.section-title em { font-style: italic; color: var(--gold); }

.section-desc {
  margin-top: 1.2rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-inline: auto;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--left { text-align: left; }
.section-head--left .section-desc { margin-inline: 0; }
.section-head--light .section-title { color: #fff; }
.section-head--light .section-desc { color: var(--on-dark-soft); }

/* Decorative rule with text in middle */
.rule {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin: 2rem 0 1.6rem;
}
.rule::before, .rule::after {
  content: ''; flex: 1; max-width: 100px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,.45), transparent);
}
.rule span {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  font-weight: 300;
  margin-block: 1.2rem;
}

/* ─── 4. BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .85rem 1.8rem;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 4px; }

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(201,169,110,.30);
}
.btn--gold:hover { background: var(--gold-soft); box-shadow: var(--shadow-gold); }

.btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid rgba(255,255,255,.32);
}
.btn--ghost:hover { color: var(--gold); border-color: var(--gold); }

.btn--ghost-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line-strong);
}
.btn--ghost-dark:hover { background: var(--navy); color: var(--gold); border-color: var(--navy); }

.btn--whats {
  background: #25d366; color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .35);
}
.btn--whats:hover { background: #1ebe57; }
.btn--whats svg { width: 18px; height: 18px; fill: currentColor; }

/* ─── 5. SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 1010;
  background: rgba(201,169,110,.12);
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 80ms linear;
}

/* ─── 6. HEADER / NAV ─── */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 31, 53, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              padding var(--t-base) var(--ease);
}
.site-header[data-state="scrolled"] {
  background: rgba(11, 31, 53, .96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(.85rem, 1.4vw, 1.15rem);
}

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none;
  color: var(--gold);
}
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; color: var(--gold); }
.brand-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1;
  display: flex; flex-direction: column;
}
.brand-name small {
  font-size: .65rem; font-weight: 400;
  letter-spacing: .35em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: .25rem;
}

.primary-nav { display: none; }
@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .primary-nav ul { display: flex; gap: clamp(1.2rem, 2vw, 2.2rem); }
  .primary-nav a {
    display: inline-block;
    padding: .4rem 0;
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    position: relative;
    transition: color var(--t-base) var(--ease);
  }
  .primary-nav a::after {
    content: '';
    position: absolute; left: 50%; bottom: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--t-base) var(--ease), left var(--t-base) var(--ease);
  }
  .primary-nav a:hover, .primary-nav a.is-active { color: var(--gold); }
  .primary-nav a:hover::after, .primary-nav a.is-active::after { width: 100%; left: 0; }
}

.nav-cta { display: none; }
@media (min-width: 1024px) {
  .nav-cta { display: inline-flex; padding: .6rem 1.6rem; min-height: 40px; }
}

/* Hamburger */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 4px;
  transition: background-color var(--t-base) var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,.07); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  width: 22px;
}
.hamburger span {
  display: block; height: 2px; width: 100%; background: var(--gold);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto;
  width: min(86%, 360px);
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  z-index: 90;
  padding: 5.5rem 1.8rem 2rem;
  transform: translateX(100%);
  transition: transform .4s var(--ease-out);
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(255,255,255,.06);
  box-shadow: -20px 0 60px rgba(0,0,0,.35);
  overflow-y: auto;
}
.mobile-nav nav { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a {
  padding: 1rem .25rem;
  font-size: .98rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color var(--t-base) var(--ease), padding-left var(--t-base) var(--ease);
}
.mobile-nav a:hover { color: var(--gold); padding-left: .5rem; }
.mobile-nav .btn { margin-top: 1.4rem; padding: .9rem 1.6rem; }
.mobile-nav__footer { margin-top: auto; padding-top: 2rem; }
.mobile-nav__footer a {
  font-size: .8rem; letter-spacing: .08em;
  color: var(--gold); text-decoration: none;
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  z-index: 85;
  transition: opacity .35s var(--ease);
  backdrop-filter: blur(2px);
}
.mobile-nav__backdrop.is-open { opacity: 1; pointer-events: auto; }

body.no-scroll { overflow: hidden; }

/* ─── 7. HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  isolation: isolate;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding-top: 5rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 110%, rgba(20, 90, 130, .55) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 18% 25%, rgba(201,169,110,.18) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 45%, var(--navy) 100%);
}
.hero__noise {
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='1' cy='1' r='.6' fill='rgba(201,169,110,.07)'/%3E%3C/svg%3E");
  opacity: .9;
}
.hero__waves {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .6;
}

.hero__inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding-block: clamp(2rem, 6vh, 5rem);
  animation: rise .9s var(--ease-out) both;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -.012em;
  margin-block: .4rem .25rem;
  color: #fff;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: italic;
  color: var(--gold);
  display: block;
  background: linear-gradient(180deg, var(--gold) 0%, #d6b884 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__address {
  font-size: .9rem;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-top: .6rem;
}
.hero__lead {
  margin: 1.5rem auto 2.4rem;
  max-width: 60ch;
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--on-dark);
  text-wrap: pretty;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  text-align: center;
}
@media (min-width: 720px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -.01em;
}
.stat__label {
  display: block;
  margin-top: .35rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}

.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(7rem, 14vh, 10rem);
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 12px;
  display: none;
  z-index: 2;
}
@media (min-width: 720px) { .hero__scroll { display: block; } }
.hero__scroll span {
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  30%       { opacity: 1; }
  60%       { opacity: 1; transform: translate(-50%, 14px); }
}

.hero__wave-mask {
  position: absolute; left: 0; right: 0; bottom: -1px;
  pointer-events: none;
  z-index: 1;
}
.hero__wave-mask svg { width: 100%; height: clamp(60px, 8vw, 110px); display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── 8. SECTIONS LAYOUT ─── */
section { padding-block: var(--section-y); }

.gallery { background: var(--surface); padding-block: clamp(3rem, 6vw, 5rem); }
.floorplan { background: var(--surface-2); }
.highlights { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-3) 100%); }
.units { background: var(--surface); }
.amenities { background: var(--navy); color: #fff; }
.location { background: var(--surface-2); }
.cta { background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%); color: #fff; position: relative; overflow: hidden; }

.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='1' cy='1' r='.8' fill='rgba(201,169,110,.06)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ─── 9. GALLERY ─── */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  gap: clamp(.5rem, 1.5vw, 1rem);
  margin-bottom: 1rem;
}
@media (min-width: 720px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
  }
  .gallery__grid .g-card--hero {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
}
@media (min-width: 1024px) {
  .gallery__grid { grid-auto-rows: 300px; }
}

.g-card, .g-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  isolation: isolate;
}
.g-card img, .g-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.g-card:hover img, .g-thumb:hover img,
.g-card:focus-visible img, .g-thumb:focus-visible img { transform: scale(1.06); }

.g-card::after, .g-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,31,53,.55) 100%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.g-card:hover::after, .g-thumb:hover::after { opacity: 1; }

.g-card__cap {
  position: absolute; left: 1rem; bottom: .9rem;
  z-index: 1;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.g-card:hover .g-card__cap, .g-card:focus-visible .g-card__cap {
  opacity: 1; transform: translateY(0);
}

.gallery__strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: clamp(.5rem, 1.5vw, 1rem);
  padding-inline: var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}
.gallery__strip .g-thumb {
  height: 130px;
  scroll-snap-align: start;
}
@media (min-width: 720px) {
  .gallery__strip .g-thumb { height: 160px; }
}

/* ─── 10. FLOOR PLAN ─── */
.floorplan__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 1024px) {
  .floorplan__inner { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

.floorplan__tabs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.4rem;
}
.fp-tab {
  padding: .6rem 1.1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  transition: all var(--t-base) var(--ease);
}
.fp-tab:hover { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.fp-tab.is-active { background: var(--navy); color: var(--gold); border-color: var(--navy); }

.fp-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.fp-frame img {
  width: 100%;
  display: block;
  transition: transform .6s var(--ease-out);
}
.fp-frame:hover img { transform: scale(1.03); }
.fp-frame__zoom {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(11,31,53,.78);
  color: var(--gold);
  padding: .4rem .8rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 3px;
  backdrop-filter: blur(6px);
}

.fp-specs {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.fp-specs > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.fp-specs dt {
  color: var(--ink-soft);
  font-weight: 300;
  font-size: .9rem;
}
.fp-specs dd {
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  text-align: right;
}
.fp-specs__price {
  color: var(--gold) !important;
  font-size: 1.05rem !important;
}

.fp-note {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  background: rgba(201,169,110,.1);
  border-left: 3px solid var(--gold);
  border-radius: 0 3px 3px 0;
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ─── 11. HIGHLIGHTS ─── */
.hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  max-width: 1100px;
  margin-inline: auto;
}
.hl-card {
  position: relative;
  padding: 2.2rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease);
  isolation: isolate;
}
.hl-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.hl-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,169,110,.4);
}
.hl-card:hover::before { opacity: 1; }
.hl-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 1.2rem;
  background: rgba(201,169,110,.12);
  border-radius: 50%;
  transition: background-color var(--t-base) var(--ease);
}
.hl-card:hover .hl-card__icon { background: rgba(201,169,110,.22); }
.hl-card__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.hl-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .55rem;
  letter-spacing: -.005em;
}
.hl-card p {
  font-size: .9rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ─── 12. UNITS ─── */
.units-toolbar {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.chip {
  padding: .55rem 1.1rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  transition: all var(--t-base) var(--ease);
}
.chip:hover { color: var(--navy); border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* Desktop table */
.units__table-wrap {
  display: none;
  max-width: 980px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}
@media (min-width: 720px) { .units__table-wrap { display: block; } }

.units__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.units__table thead {
  background: var(--navy);
}
.units__table th {
  padding: 1rem 1.4rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-align: left;
  white-space: nowrap;
}
.units__table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-base) var(--ease);
}
.units__table tbody tr:last-child { border-bottom: 0; }
.units__table tbody tr:hover { background: var(--surface-3); }
.units__table tbody tr.is-hidden { display: none; }
.units__table td {
  padding: 1rem 1.4rem;
  white-space: nowrap;
}
.units__table td:first-child { font-weight: 600; color: var(--navy); }
.price { color: var(--gold); font-weight: 600; }

.badge {
  display: inline-block;
  padding: .25rem .7rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 3px;
}
.badge--avail { background: var(--green-bg); color: var(--green); }
.badge--sold  { background: var(--red-bg); color: var(--red); }

/* Mobile cards */
.units__cards {
  display: grid;
  gap: .75rem;
  max-width: 600px;
  margin-inline: auto;
}
@media (min-width: 720px) { .units__cards { display: none; } }

.u-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem .5rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
  transition: border-color var(--t-base) var(--ease);
}
.u-card.is-hidden { display: none; }
.u-card:hover { border-color: rgba(201,169,110,.4); }
.u-card > div:first-child { display: flex; flex-direction: column; gap: .15rem; }
.u-card > div:nth-child(2) { display: flex; flex-direction: column; gap: .15rem; text-align: right; }
.u-card b { font-size: .95rem; color: var(--navy); }
.u-card span { font-size: .78rem; color: var(--ink-soft); font-weight: 400; }
.u-card .muted { color: var(--ink-muted); }
.u-card .badge { grid-column: 1 / -1; justify-self: start; margin-top: .35rem; }

/* ─── 13. AMENITIES ─── */
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 1000px;
  margin-inline: auto;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 600px) { .amenities__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .amenities__grid { grid-template-columns: repeat(4, 1fr); } }
.amenity {
  background: var(--navy-3);
  padding: 1.6rem 1rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  transition: background-color var(--t-base) var(--ease);
}
.amenity:hover { background: rgba(201,169,110,.12); }
.amenity svg {
  width: 28px; height: 28px;
  fill: none; stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.amenity span {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--on-dark);
}

/* ─── 14. LOCATION ─── */
.location__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .location__inner { grid-template-columns: 1fr 1.1fr; }
}
.location__list {
  margin-top: 1.5rem;
  display: grid; gap: .15rem;
}
.location__list li {
  position: relative;
  padding: .85rem 0 .85rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 300;
  color: var(--ink);
}
.location__list li::before {
  content: '';
  position: absolute; left: 0; top: 1.15rem;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
.location__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  background: var(--navy);
}
.location__map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: contrast(1.05) saturate(.95);
}
.location__pin {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(11,31,53,.92);
  border-left: 3px solid var(--gold);
  padding: .8rem 1.1rem;
  border-radius: 3px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.location__pin strong {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .2rem;
}
.location__pin span { font-size: .75rem; color: var(--on-dark-mute); }
.location__text .btn { margin-top: 1.5rem; }

/* ─── 15. CTA / FORM ─── */
.cta__inner { position: relative; z-index: 1; }
.cta__form {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .cta__form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: .35rem; text-align: left; }
.field label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.field input, .field select, .field textarea {
  padding: .85rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 3px;
  color: #fff;
  font-size: .95rem;
  font-family: var(--sans);
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
  width: 100%;
}
.field input:hover, .field select:hover, .field textarea:hover { background: rgba(255,255,255,.08); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.10);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a96e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 90px; }
.field__error {
  font-size: .78rem;
  color: #ef9a9a;
  min-height: 1em;
  font-weight: 400;
  letter-spacing: .02em;
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #ef5350;
  background: rgba(239, 83, 80, .08);
}

.cta__actions {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
  margin-top: .5rem;
}
.cta__note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .8rem;
  color: var(--on-dark-soft);
  margin-top: .5rem;
}
.cta__note.is-success { color: #a5d6a7; }
.cta__note.is-error   { color: #ef9a9a; }
.cta__note a { color: var(--gold); text-decoration: none; font-weight: 600; }
.cta__note a:hover { text-decoration: underline; }

/* ─── 16. LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(5, 12, 22, .96);
  backdrop-filter: blur(4px);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; align-items: center; justify-content: center; }
.lb-stage {
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
  max-width: 92vw; max-height: 86vh;
}
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 3px;
}
.lb-cap {
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--on-dark-soft);
}
.lb-close, .lb-arrow {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: all var(--t-base) var(--ease);
  z-index: 2;
}
.lb-close { top: 1rem; right: 1rem; font-size: 1.6rem; }
.lb-arrow--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-arrow--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-arrow:hover { color: var(--gold); border-color: var(--gold); background: rgba(201,169,110,.12); }
.lb-counter {
  position: absolute; bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--on-dark-mute);
}

/* ─── 17. FLOATING WHATSAPP ─── */
.float-whats {
  position: fixed; right: 1.1rem; bottom: 1.1rem;
  z-index: 80;
  width: 56px; height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.float-whats:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 40px rgba(37, 211, 102, .55); }
.float-whats svg { width: 28px; height: 28px; fill: currentColor; }
.float-whats::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: .5;
  animation: ripple 2.4s ease-out infinite;
}
@keyframes ripple {
  0%   { transform: scale(.85); opacity: .55; }
  80%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ─── 18. FOOTER ─── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.65);
  padding-block: 3rem 1.5rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
.brand--footer { color: var(--gold); }
.brand--footer .brand-name small { color: rgba(255,255,255,.4); }
.site-footer h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: .8rem;
  letter-spacing: .02em;
}
.site-footer p {
  font-size: .85rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
}
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; transition: color var(--t-base) var(--ease); }
.site-footer a:hover { color: var(--gold); }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer__bottom small {
  font-size: .72rem;
  color: rgba(255,255,255,.32);
  letter-spacing: .04em;
}

/* ─── 19. REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Print-friendly */
@media print {
  .site-header, .mobile-nav, .mobile-nav__backdrop, .float-whats,
  .scroll-progress, .hero__scroll { display: none !important; }
  body { color: #000; background: #fff; }
  section { page-break-inside: avoid; padding-block: 1rem; }
}

/* Optional dark-mode polish (subtle) */
@media (prefers-color-scheme: dark) {
  :root {
    --surface:    #f8f4ec;
    --surface-2:  #efe9de;
    --surface-3:  #f3ede2;
  }
}
