/* ============================================================
   84 ISLA BAHIA — Design System & Styles
   A luxury single-property website
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-bg: #0d0d0d;
  --color-bg-alt: #141418;
  --color-bg-section: #0a0a0e;
  --color-gold: #c9a96e;
  --color-gold-light: #d4bc8a;
  --color-gold-dark: #a88b4a;
  --color-ivory: #f5f0e8;
  --color-ivory-muted: #b8b0a4;
  --color-midnight: #1a1a2e;
  --color-overlay: rgba(0, 0, 0, 0.55);
  --color-glass: rgba(255, 255, 255, 0.06);
  --color-border: rgba(201, 169, 110, 0.25);
  --color-border-light: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-accent: 'Cormorant Garamond', 'Georgia', serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --content-max: 1200px;
  --gap: clamp(24px, 3vw, 48px);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --duration: 0.8s;
  --duration-fast: 0.4s;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-ivory);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

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

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

ul,
ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.gold-rule {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin: 24px 0;
  border: none;
}

.gold-rule--center {
  margin: 24px auto;
}

.section-label {
  font-family: var(--font-accent);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 400;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

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

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

.reveal-delay-4 {
  transition-delay: 0.6s;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px clamp(24px, 4vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--duration-fast) ease,
    padding var(--duration-fast) ease;
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px clamp(24px, 4vw, 60px);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: 0.25em;
  color: var(--color-ivory);
  font-weight: 500;
  text-transform: uppercase;
}

.nav__cta {
  display: none;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding: 10px 24px;
  border: 1px solid var(--color-gold);
  transition: all var(--duration-fast) ease;
}

.nav__cta:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

.nav.scrolled .nav__cta {
  display: inline-block;
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--color-ivory);
  transition: all var(--duration-fast) var(--ease-out);
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Full-screen overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 14, 0.97);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease-out);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--color-ivory);
  padding: 16px 0;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out),
    color 0.3s ease;
}

.nav-overlay a:hover {
  color: var(--color-gold);
}

.nav-overlay.open a {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.open a:nth-child(1) {
  transition-delay: 0.1s;
}

.nav-overlay.open a:nth-child(2) {
  transition-delay: 0.2s;
}

.nav-overlay.open a:nth-child(3) {
  transition-delay: 0.3s;
}

.nav-overlay.open a:nth-child(4) {
  transition-delay: 0.4s;
}

.nav-overlay.open a:nth-child(5) {
  transition-delay: 0.5s;
}

.nav-overlay.open a:nth-child(6) {
  transition-delay: 0.6s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

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

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 20s var(--ease-out) forwards,
    waterShimmer 8s ease-in-out 3s infinite;
}

@keyframes heroZoom {
  to {
    transform: scale(1.02);
  }
}

@keyframes waterShimmer {

  0%,
  100% {
    transform: scale(1.02) translate(0, 0);
  }

  25% {
    transform: scale(1.025) translate(-2px, 1px);
  }

  50% {
    transform: scale(1.02) translate(1px, -1px);
  }

  75% {
    transform: scale(1.025) translate(2px, 1px);
  }
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.2) 40%,
      rgba(0, 0, 0, 0.1) 70%,
      rgba(0, 0, 0, 0.3) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 4vw, 60px) clamp(60px, 8vh, 100px);
}

.hero__subtitle {
  font-family: var(--font-accent);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
  font-weight: 400;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--color-ivory);
  letter-spacing: 0.02em;
}

.hero__price {
  font-family: var(--font-accent);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--color-gold-light);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollFloat 2s ease-in-out infinite;
}

.hero__scroll span {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ivory-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
}

@keyframes scrollFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ============================================================
   INTRO SECTION
   ============================================================ */
.intro {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.intro__image {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
}

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

.intro__image:hover img {
  transform: scale(1.04);
}

.intro__text {
  padding: 0 clamp(16px, 3vw, 48px);
}

.intro__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--color-ivory);
}

.intro__body {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--color-ivory-muted);
  margin-bottom: 32px;
  line-height: 1.85;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
}

.stat {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 20px 12px;
  border-right: 1px solid var(--color-border);
}

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

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-family: var(--font-accent);
  font-size: clamp(0.65rem, 0.8vw, 0.8rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-ivory-muted);
  font-weight: 400;
}

/* ============================================================
   LIFESTYLE FEATURES
   ============================================================ */
.features {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.features__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.features__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-top: 12px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}

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

.feature-card:hover img {
  transform: scale(1.08);
}

.feature-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.05) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 36px);
  transition: background var(--duration-fast) ease;
}

.feature-card:hover .feature-card__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 60%);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--color-ivory);
}

.feature-card__desc {
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  color: var(--color-ivory-muted);
  line-height: 1.5;
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.gallery {
  padding: var(--section-pad) 0;
  background: var(--color-bg-section);
}

.gallery__header {
  text-align: center;
  margin-bottom: 20px;
}

.gallery__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-top: 12px;
}

/* Category Tabs */
.gallery__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.gallery__tab {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ivory-muted);
  padding: 8px 20px;
  border: 1px solid transparent;
  transition: all var(--duration-fast) ease;
  background: none;
}

.gallery__tab:hover {
  color: var(--color-ivory);
}

.gallery__tab.active {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* Gallery Grid */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border-radius: 1px;
}

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

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

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--duration-fast) ease;
}

.gallery__item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

/* Featured item spans 2 cols */
.gallery__item--featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Load More */
.gallery__more {
  text-align: center;
  margin-top: 48px;
}

.gallery__more-btn {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding: 14px 40px;
  border: 1px solid var(--color-border);
  transition: all var(--duration-fast) ease;
  background: none;
}

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

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--color-ivory);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast) ease;
  background: none;
  border: none;
  cursor: pointer;
}

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

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-ivory);
  font-size: 2.5rem;
  font-weight: 300;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast) ease;
  background: none;
  border: none;
  cursor: pointer;
}

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

.lightbox__nav--prev {
  left: 20px;
}

.lightbox__nav--next {
  right: 20px;
}

.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--color-ivory-muted);
}

/* ============================================================
   THE RESIDENCE (DETAILS)
   ============================================================ */
.residence {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.residence__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.residence__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-top: 12px;
}

.residence__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.residence__detail {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--color-border-light);
  transition: border-color var(--duration-fast) ease,
    background var(--duration-fast) ease;
  border-radius: 2px;
}

.residence__detail:hover {
  border-color: var(--color-border);
  background: var(--color-glass);
}

.residence__detail-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.residence__detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--color-ivory);
}

.residence__detail-text {
  font-size: 0.9rem;
  color: var(--color-ivory-muted);
  line-height: 1.8;
}

.residence__detail-text li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.residence__detail-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 1px;
  background: var(--color-gold);
}

/* ============================================================
   LOCATION
   ============================================================ */
.location {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.location__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.location__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-top: 12px;
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.location__map {
  aspect-ratio: 4/3;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) invert(92%) contrast(85%);
  transition: filter 0.6s ease;
}

.location__map:hover iframe {
  filter: grayscale(30%) invert(92%) contrast(90%);
}

.location__points {
  padding: 16px 0;
}

.location__point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.location__point:last-child {
  border-bottom: none;
}

.location__point-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.location__point-text {
  flex: 1;
}

.location__point-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.location__point-desc {
  font-size: 0.85rem;
  color: var(--color-ivory-muted);
}

/* ============================================================
   LEAD FORM
   ============================================================ */
.contact {
  padding: var(--section-pad) 0;
  background: var(--color-bg-section);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
}

.contact__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 8px;
}

.contact__subtitle {
  font-family: var(--font-accent);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--color-ivory-muted);
  margin-bottom: 48px;
  font-weight: 300;
  font-style: italic;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

.form-group {
  position: relative;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-ivory);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  border-radius: 2px;
  transition: border-color var(--duration-fast) ease,
    background var(--duration-fast) ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-ivory-muted);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.06);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact__submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.btn-gold {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-gold);
  padding: 16px 48px;
  border: 1px solid var(--color-gold);
  transition: all var(--duration-fast) ease;
  font-weight: 500;
  border-radius: 1px;
}

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

/* Agent Card */
.agent {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 32px;
  text-decoration: none;
  transition: transform var(--duration-fast) ease;
}

.agent:hover {
  transform: translateY(-2px);
}

.agent__photo {
  width: 160px;
  height: 200px;
  border-radius: 4px;
  border: 2px solid var(--color-gold);
  overflow: hidden;
  background: var(--color-glass);
  box-shadow: 0 4px 30px rgba(201, 169, 110, 0.15);
  flex-shrink: 0;
}

.agent__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.agent__info {
  text-align: left;
}

.agent__role {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 500;
}

.agent__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-ivory);
  margin-top: 4px;
}

.agent__title {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--color-ivory-muted);
  letter-spacing: 0.15em;
}

.agent__brokerage {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.agent__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.agent__contact span {
  font-size: 0.85rem;
  color: var(--color-ivory-muted);
}

.agent__linkedin {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 12px;
  transition: color var(--duration-fast) ease;
}

.agent:hover .agent__linkedin {
  color: var(--color-ivory);
}

/* Form Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

.form-success.show {
  display: block;
}

.form-success__icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.form-success__text {
  color: var(--color-ivory-muted);
  font-size: 0.95rem;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.video-section__header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.video-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-top: 12px;
}

.video-section__wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.video-section__player {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-section__player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   AS SEEN IN — Press Credibility Bar
   ============================================================ */
.press-bar {
  padding: clamp(32px, 4vw, 56px) 0;
  background: linear-gradient(180deg, rgba(15, 15, 14, 0.95), var(--color-bg-alt));
  border-bottom: 1px solid var(--color-border);
}

.press-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
  justify-content: center;
}

.press-bar__label {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 500;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

.press-bar__items {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) transparent;
  max-width: 100%;
}

.press-bar__items::-webkit-scrollbar {
  height: 4px;
}

.press-bar__items::-webkit-scrollbar-track {
  background: transparent;
}

.press-bar__items::-webkit-scrollbar-thumb {
  background-color: var(--color-gold);
  border-radius: 4px;
}

.press-bar__item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: opacity var(--duration-fast) ease;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.press-bar__item:hover {
  opacity: 0.8;
}

.press-bar__cover {
  width: 120px;
  height: 162px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform var(--duration-fast) ease;
}

.press-bar__item:hover .press-bar__cover {
  transform: scale(1.05);
}

.press-bar__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.press-bar__text {
  text-align: left;
}

.press-bar__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.08em;
  color: var(--color-ivory-muted);
  font-weight: 400;
}

.press-bar__name em {
  font-style: italic;
}

.press-bar__detail {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 4px;
  font-weight: 400;
}

.press-bar__divider {
  width: 1px;
  height: 50px;
  background: var(--color-border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 0 32px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__logo {
  margin-bottom: 8px;
}

.footer__logo-img {
  max-width: 260px;
  height: auto;
  opacity: 0.85;
  transition: opacity var(--duration-fast) ease;
}

.footer__logo-img:hover {
  opacity: 1;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  transition: color var(--duration-fast) ease;
}

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

.footer__legal {
  max-width: 700px;
  font-size: 0.7rem;
  color: rgba(184, 176, 164, 0.5);
  line-height: 1.6;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--color-ivory-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__item--featured {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .intro__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro__image {
    aspect-ratio: 16/10;
  }

  .intro__text {
    padding: 0;
  }

  .stats-bar {
    flex-wrap: wrap;
  }

  .stat {
    min-width: 33.33%;
    border-bottom: 1px solid var(--color-border);
  }

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

  .features__grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    aspect-ratio: 16/10;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--featured {
    grid-column: span 2;
  }

  .residence__grid {
    grid-template-columns: 1fr;
  }

  .location__grid {
    grid-template-columns: 1fr;
  }

  .contact__form {
    grid-template-columns: 1fr;
  }

  .form-group--half {
    grid-column: auto;
  }

  .lightbox__nav {
    display: none;
  }

  .press-bar__label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .press-bar__inner {
    flex-direction: column;
  }

  .press-bar__items {
    flex-direction: column;
    gap: 24px;
  }

  .press-bar__divider {
    width: 60px;
    height: 1px;
  }

  .agent {
    flex-direction: column;
    text-align: center;
  }

  .agent__info {
    text-align: center;
  }

  .agent__contact {
    justify-content: center;
  }
}

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

  .gallery__item--featured {
    grid-column: span 1;
  }

  .stat {
    min-width: 50%;
  }

  .stat:nth-child(2),
  .stat:nth-child(4) {
    border-right: none;
  }

  .hero__title {
    font-size: 2rem;
  }
}

/* ============================================================
   ENHANCED SCROLL EFFECTS — Parallax
   ============================================================ */
.parallax-img {
  will-change: transform;
}

/* Horizontal reveal for feature cards */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale reveal for gallery items */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Smooth section divider lines */
.section-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  margin: 0 auto;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}