/* ===========================================================
   VILLAS MONCIEL — design system
   =========================================================== */

:root {
  /* Brand palette */
  --navy: #1a2a4a;
  --navy-deep: #0f1d36;
  --navy-soft: #2d4063;
  --gold: #9c8b65;
  --gold-light: #b8a780;
  --gold-pale: #d4c8a8;
  --beige: #e8dfd0;
  --beige-light: #f4eee2;
  --cream: #faf6ec;
  --ink: #14213d;
  --muted: #6b6b6b;
  --line: rgba(26, 42, 74, 0.12);
  --line-gold: rgba(156, 139, 101, 0.3);

  /* Type */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Quicksand", system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container: 1240px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============== Type system ============== */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 300;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 400;
}

p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2c3550;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #2c3550;
  font-weight: 400;
  max-width: 60ch;
}

/* ============== Layout primitives ============== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ============== Header / Nav ============== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  background: rgba(250, 246, 236, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}

.site-header.scrolled {
  padding: 0.85rem 0;
  background: rgba(250, 246, 236, 0.95);
  border-bottom-color: var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav-logo .mark {
  height: 46px;
  width: auto;
  display: block;
  transition: height 0.4s var(--ease);
}

.site-header.scrolled .nav-logo .mark {
  height: 36px;
}

.nav-logo-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.25;
  white-space: nowrap;
}

.nav-logo-text strong {
  font-weight: 500;
  display: block;
}

@media (max-width: 480px) {
  .nav-logo-text { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--navy);
  color: var(--cream) !important;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--navy);
  transition: all 0.35s var(--ease);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    padding: 2rem;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1rem;
  }
}

/* ============== Buttons ============== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.05rem 2.1rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn-gold {
  background: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.btn-arrow {
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============== Hero ============== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 7rem;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(15, 29, 54, 0.45) 0%,
      rgba(15, 29, 54, 0.55) 45%,
      rgba(15, 29, 54, 0.85) 100%
    ),
    linear-gradient(
      90deg,
      rgba(15, 29, 54, 0.55) 0%,
      rgba(15, 29, 54, 0.15) 55%,
      rgba(15, 29, 54, 0) 80%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 760px;
  color: var(--cream);
}

.hero .eyebrow {
  color: var(--gold-pale);
}

.hero h1 {
  color: var(--cream);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}

.hero-tagline {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(250, 246, 236, 0.88);
  max-width: 56ch;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero .btn-ghost {
  color: var(--cream);
  border-color: rgba(250, 246, 236, 0.55);
}

.hero .btn-ghost:hover {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 4rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(212, 200, 168, 0.25);
  max-width: 760px;
}

.hero-meta-item {
  color: var(--cream);
}

.hero-meta-item .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 0.5rem;
}

.hero-meta-item .value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--cream);
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-pale);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--gold-pale), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============== Page hero (interior pages) ============== */

.page-hero {
  position: relative;
  padding-top: 11rem;
  padding-bottom: 5rem;
  background: var(--navy-deep);
  color: var(--cream);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(156, 139, 101, 0.18), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(45, 64, 99, 0.5), transparent 50%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-hero .eyebrow {
  color: var(--gold-light);
}

.page-hero h1 {
  color: var(--cream);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.page-hero p {
  color: rgba(250, 246, 236, 0.85);
  font-size: 1.15rem;
  max-width: 60ch;
}

/* ============== Section intros ============== */

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 768px) {
  .section-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}

.section-intro-text p {
  font-size: 1.1rem;
}

/* ============== Two column ============== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.two-col-flip .two-col-text {
  order: 2;
}

@media (max-width: 880px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .two-col-flip .two-col-text {
    order: 0;
  }
}

.two-col-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.two-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.two-col-img:hover img {
  transform: scale(1.04);
}

.two-col-img.is-wide {
  aspect-ratio: 5 / 4;
}

.two-col-text h2 {
  margin-bottom: 1.5rem;
}

.two-col-text p {
  margin-bottom: 1.25rem;
}

.two-col-text .btn {
  margin-top: 1.5rem;
}

/* ============== Feature grid ============== */

.features {
  background: var(--beige-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-gold);
}

@media (max-width: 880px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: clamp(2rem, 4vw, 3rem);
  border-right: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  background: var(--cream);
  transition: background 0.4s var(--ease);
}

.feature:hover {
  background: var(--beige);
}

.feature:nth-child(3n) {
  border-right: none;
}

@media (max-width: 880px) {
  .feature {
    border-right: 1px solid var(--line-gold);
  }
  .feature:nth-child(3n) { border-right: 1px solid var(--line-gold); }
  .feature:nth-child(2n) { border-right: none; }
}

@media (max-width: 560px) {
  .feature {
    border-right: none !important;
  }
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.feature p {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #4a5570;
}

/* ============== Plans ============== */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 980px) {
  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px -20px rgba(15, 29, 54, 0.18);
  border-color: var(--gold-light);
}

.plan-card-img {
  aspect-ratio: 4 / 3;
  background: var(--beige);
  position: relative;
  overflow: hidden;
}

.plan-card-img svg {
  width: 100%;
  height: 100%;
  display: block;
}

.plan-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.plan-tag {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.plan-card h3 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.plan-meta {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.plan-meta strong {
  display: block;
  color: var(--navy);
  font-weight: 500;
  font-size: 1rem;
  font-family: var(--font-display);
  margin-bottom: 0.15rem;
}

.plan-card p {
  font-size: 0.97rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.plan-card .plan-link {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.4rem;
  align-self: flex-start;
  transition: gap 0.3s var(--ease);
}

.plan-card .plan-link:hover {
  gap: 0.85rem;
  color: var(--gold);
}

/* ============== Numbered stat row ============== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}

@media (max-width: 768px) {
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

.stat {
  padding: 2rem 1.25rem;
  text-align: left;
  border-right: 1px solid var(--line-gold);
}

.stat:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  .stat:nth-child(2n) { border-right: none; }
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-num em {
  color: var(--gold);
  font-style: normal;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============== CTA band ============== */

.cta-band {
  background: var(--navy-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(156, 139, 101, 0.22), transparent 50%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.cta-band h2 {
  color: var(--cream);
  font-weight: 300;
}

.cta-band p {
  color: rgba(250, 246, 236, 0.82);
  margin-top: 1rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-actions {
    justify-content: flex-start;
  }
}

.cta-band .btn-ghost {
  color: var(--cream);
  border-color: rgba(250, 246, 236, 0.5);
}

.cta-band .btn-ghost:hover {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

/* ============== Neighborhood ============== */

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.amenity {
  position: relative;
  overflow: hidden;
  background: var(--beige);
  aspect-ratio: 4 / 3;
}

.amenity img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.amenity:hover img {
  transform: scale(1.06);
}

.amenity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(15, 29, 54, 0.75) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
}

.amenity-overlay-text {
  color: var(--cream);
}

.amenity-overlay-text .eyebrow {
  color: var(--gold-pale);
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
}

.amenity-overlay-text h3 {
  color: var(--cream);
  font-size: 1.4rem;
  font-weight: 400;
}

.amenity.span-7 { grid-column: span 7; }
.amenity.span-5 { grid-column: span 5; }
.amenity.span-4 { grid-column: span 4; }
.amenity.span-8 { grid-column: span 8; }
.amenity.span-6 { grid-column: span 6; }
.amenity.span-12 { grid-column: span 12; }

@media (max-width: 880px) {
  .amenity { grid-column: span 12 !important; aspect-ratio: 16/10; }
}

/* ============== Map ============== */

.map-section {
  background: var(--beige-light);
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

@media (max-width: 880px) {
  .map-grid {
    grid-template-columns: 1fr;
  }
}

.map-list {
  list-style: none;
  margin: 2rem 0;
}

.map-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}

.map-list li:last-child {
  border-bottom: none;
}

.map-list .place {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--navy);
  font-weight: 500;
}

.map-list .icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex-shrink: 0;
}

.map-list .distance {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.map-vis {
  background: var(--cream);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.map-vis svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============== Footer ============== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 246, 236, 0.7);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo-mark {
  width: 64px;
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
}

.footer-brand .footer-wordmark {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0.6rem 0 1.5rem;
  line-height: 1.4;
}

.footer-brand p {
  color: rgba(250, 246, 236, 0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 30ch;
}

.footer-col h4 {
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.85rem;
}

.footer-col a, .footer-col p {
  color: rgba(250, 246, 236, 0.7);
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 200, 168, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(250, 246, 236, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============== Reveal animations ============== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ============== Decorative divider ============== */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 1rem 0;
}

.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 80px;
  background: var(--gold);
  opacity: 0.5;
}

.divider svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* ===========================================================
   THEME TOGGLE + LANGUAGE TOGGLE controls
   =========================================================== */

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.5rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: transparent;
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--gold);
}

.lang-btn.is-active {
  background: var(--navy);
  color: var(--cream);
}

.theme-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.theme-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

.theme-btn .icon-sun { display: none; }
.theme-btn .icon-moon { display: block; }
[data-theme="dark"] .theme-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-btn .icon-moon { display: none; }

@media (max-width: 880px) {
  .nav-controls {
    margin-left: auto;
    margin-right: 0.5rem;
  }
  .lang-btn { padding: 0.4rem 0.55rem; font-size: 0.68rem; }
  .theme-btn { width: 34px; height: 34px; }
}

/* ===========================================================
   DARK MODE
   =========================================================== */

html {
  transition: background 0.4s var(--ease);
}

body, .site-header, .nav-links, .hero-bg img,
.feature, .plan-card, .plan-card-img, .amenity-overlay,
.cta-band, .site-footer, .map-section, .features,
.section-tight, .form-section, .form-aside, input, textarea, button {
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

[data-theme="dark"] {
  /* Brand palette for dark mode — keep gold as accent, swap surfaces */
  --navy: #e8dfd0;          /* now used as primary text — flipped */
  --navy-deep: #1a2a4a;
  --navy-soft: #c2b89e;
  --gold: #c4ad7a;          /* warmer for dark bg */
  --gold-light: #d4c8a8;
  --gold-pale: #4a3f2c;
  --beige: #2a3552;
  --beige-light: #1f2942;
  --cream: #0e1729;         /* deep navy as page background */
  --ink: #ece4d2;
  --muted: #9a9a9a;
  --line: rgba(232, 223, 208, 0.15);
  --line-gold: rgba(196, 173, 122, 0.35);
}

[data-theme="dark"] body {
  background: var(--cream);
  color: var(--ink);
}

[data-theme="dark"] .site-header {
  background: rgba(14, 23, 41, 0.85);
}
[data-theme="dark"] .site-header.scrolled {
  background: rgba(14, 23, 41, 0.95);
  border-bottom-color: var(--line);
}

/* Mobile menu overlay only — desktop nav must stay transparent so it blends
   with the header band. Without this scope a dark rectangle appears behind
   the desktop nav links in dark mode. */
@media (max-width: 880px) {
  [data-theme="dark"] .nav-links {
    background: var(--cream);
  }
}

/* Logo monogram swap — show gold version, hide navy version */
[data-theme="dark"] .nav-logo .mark[src*="mark-navy"],
[data-theme="dark"] .footer-brand .logo-mark[src*="mark-gold"] {
  /* We keep the gold mark in footer; navigation needs the gold mark too */
}

[data-theme="dark"] .nav-logo .mark {
  filter: brightness(0) saturate(100%) invert(72%) sepia(22%) saturate(596%) hue-rotate(11deg) brightness(94%) contrast(85%);
}

/* Hero overlay needs more contrast in dark */
[data-theme="dark"] .hero::after {
  background: linear-gradient(180deg, rgba(14,23,41,0.65) 0%, rgba(14,23,41,0.85) 100%);
}

/* Feature cards, plan cards — surface elevation */
[data-theme="dark"] .feature,
[data-theme="dark"] .plan-card {
  background: var(--beige-light);
  border-color: var(--line);
}

[data-theme="dark"] .plan-card-img {
  background: var(--beige);
}

[data-theme="dark"] .plan-card-img svg rect[fill="#f4eee2"] {
  fill: #1a2540;
}

[data-theme="dark"] .plan-card-img svg g[stroke="#1a2a4a"] {
  stroke: #c4ad7a;
}

[data-theme="dark"] .features {
  background: var(--beige-light);
}

[data-theme="dark"] .section-tight {
  background: var(--cream);
}

/* Stat row */
[data-theme="dark"] .stat {
  border-color: var(--line);
}

/* CTA band — keep navy/gold contrast but adjust */
[data-theme="dark"] .cta-band {
  background: var(--beige-light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Footer */
[data-theme="dark"] .site-footer {
  background: #050b18;
  border-top: 1px solid var(--line);
}

/* Form */
[data-theme="dark"] .form-section,
[data-theme="dark"] .tf-input,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"] {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] .tf-input:focus,
[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="tel"]:focus {
  border-color: var(--gold);
}

[data-theme="dark"] .form-aside {
  background: var(--beige-light);
}

/* Map */
[data-theme="dark"] .map-section {
  background: var(--beige-light);
}

[data-theme="dark"] .map-vis svg rect[fill="#faf6ec"] {
  fill: #1a2540;
}

[data-theme="dark"] .map-vis svg path[fill="#d4c8a8"] {
  fill: #c4ad7a;
  opacity: 0.18;
}

/* Page hero text colors */
[data-theme="dark"] .page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--beige-light) 100%);
}

/* Buttons — ghost stays subtle */
[data-theme="dark"] .btn-ghost {
  border-color: var(--gold);
  color: var(--ink);
}
[data-theme="dark"] .btn-ghost:hover {
  background: var(--gold);
  color: var(--cream);
}

/* Nav CTA — sit inside the dark header band cleanly */
[data-theme="dark"] .nav-cta {
  background: transparent;
  color: #ece4d2 !important;
  border-color: rgba(196, 173, 122, 0.55);
}
[data-theme="dark"] .nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0e1729 !important;
}

/* Nav toggle bars */
[data-theme="dark"] .nav-toggle span {
  background: var(--ink);
}

/* Body text — override hardcoded #2c3550 paragraph color */
[data-theme="dark"] p,
[data-theme="dark"] .lead {
  color: #cfc6b3;
}

/* Feature card paragraph — override hardcoded #4a5570 */
[data-theme="dark"] .feature p {
  color: #b8b09c;
}

/* Page hero — h1 used var(--cream) which is now the dark page background */
[data-theme="dark"] .page-hero h1 {
  color: #ece4d2;
}
[data-theme="dark"] .page-hero p {
  color: rgba(236, 228, 210, 0.85);
}
[data-theme="dark"] .page-hero .eyebrow {
  color: var(--gold-light);
}

/* Hero text — pin to light tokens regardless of theme.
   The hero photo is always the backdrop, so text must stay legible-on-image
   even when the surrounding page is in dark mode and var(--cream) flips. */
.hero-content,
.hero h1,
.hero-meta-item,
.hero-meta-item .value,
.hero .btn-ghost {
  color: #faf6ec;
}
.hero h1 em {
  color: #d4c8a8;
}
.hero .eyebrow {
  color: #d4c8a8;
}
.hero-meta-item .label {
  color: #d4c8a8;
}
.hero .btn-ghost {
  border-color: rgba(250, 246, 236, 0.55);
}
.hero .btn-ghost:hover {
  background: #faf6ec;
  color: #1a2a4a;
  border-color: #faf6ec;
}
[data-theme="dark"] .hero .btn-ghost:hover {
  background: #faf6ec;
  color: #0e1729;
  border-color: #faf6ec;
}

/* CTA band — text uses var(--cream) which now equals dark bg; restore legible text */
[data-theme="dark"] .cta-band h2 {
  color: #ece4d2;
}
[data-theme="dark"] .cta-band p {
  color: rgba(236, 228, 210, 0.78);
}
[data-theme="dark"] .cta-band .btn-ghost {
  color: #ece4d2;
  border-color: rgba(236, 228, 210, 0.45);
}
[data-theme="dark"] .cta-band .btn-ghost:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0e1729;
}

/* Footer text — also relies on --cream being light */
[data-theme="dark"] .site-footer,
[data-theme="dark"] .site-footer p,
[data-theme="dark"] .site-footer a,
[data-theme="dark"] .site-footer h4,
[data-theme="dark"] .site-footer li {
  color: #cfc6b3;
}
[data-theme="dark"] .site-footer a:hover {
  color: var(--gold);
}

/* Subtle adjustments */
[data-theme="dark"] .map-vis svg circle[fill="#1a2a4a"] {
  fill: var(--gold);
}
[data-theme="dark"] .map-vis svg text[fill="#faf6ec"] {
  fill: var(--cream);
}
[data-theme="dark"] .map-vis svg text[fill="#1a2a4a"] {
  fill: var(--ink);
}
[data-theme="dark"] .map-vis svg circle[stroke="#1a2a4a"] {
  stroke: var(--gold);
}

/* SVG floor plan label color */
[data-theme="dark"] .plan-card-img svg text[fill="#9c8b65"],
[data-theme="dark"] .plan-card-img svg g[fill="#9c8b65"] text {
  fill: #d4c8a8;
}
[data-theme="dark"] .plan-card-img svg g[stroke="#9c8b65"] {
  stroke: #d4c8a8;
}
