/* =====================================================
   LARA PINTO ESTATE — Design System
   Inspired by ERA Residence (era-residence.com)
   ===================================================== */

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

/* ─── CSS Custom Properties ──────────────────────────── */
:root {
  /* Colors */
  --c-bg:        #F5F0E8;
  --c-bg-dark:   #1A1510;
  --c-text:      #1A1510;
  --c-text-muted:#6B5F52;
  --c-gold:      #C9A96E;
  --c-gold-light:#E8D5B0;
  --c-cream:     #FAF7F2;
  --c-border:    rgba(26,21,16,0.12);
  --c-white:     #FFFFFF;

  /* Typography */
  --f-serif:  'Cormorant Garamond', Georgia, serif;
  --f-sans:   'Inter', system-ui, sans-serif;

  /* Easing (ERA Residence system) */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out:    cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in:     cubic-bezier(0.5, 0, 0.75, 0);
  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Duration */
  --dur-s: 0.4s;
  --dur-m: 0.8s;
  --dur-l: 1.2s;

  /* Spacing */
  --gutter: clamp(1.5rem, 4vw, 5rem);
  --section-gap: clamp(6rem, 12vw, 14rem);
}

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

html {
  font-size: clamp(14px, 1vw, 18px);
  scroll-behavior: smooth;
  background-color: var(--c-bg);
}

body {
  font-family: var(--f-sans);
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
  cursor: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ─── Custom Cursor ──────────────────────────────────── */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--c-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              background 0.3s var(--ease-out), opacity 0.3s;
  mix-blend-mode: normal;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(201,169,110,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-out), height 0.6s var(--ease-out),
              border-color 0.3s, opacity 0.3s;
}

body.cursor-hover #cursor {
  width: 6px; height: 6px;
  background: var(--c-gold);
}
body.cursor-hover #cursor-ring {
  width: 60px; height: 60px;
  border-color: rgba(201,169,110,0.8);
}
body.cursor-text #cursor {
  width: 4px; height: 4px;
}
body.cursor-text #cursor-ring {
  width: 80px; height: 80px;
  border-color: rgba(201,169,110,0.4);
}

/* ─── Preloader ──────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--c-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
}

.preloader-logo {
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
}

.preloader-line {
  width: 0;
  height: 1px;
  background: var(--c-gold);
  transition: width 1.4s var(--ease-in-out);
}

.preloader-count {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
}

/* ─── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 2rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--dur-m) var(--ease-out),
              padding var(--dur-m) var(--ease-out),
              backdrop-filter var(--dur-m);
}

.nav.scrolled {
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.2rem var(--gutter);
  border-bottom: 1px solid var(--c-border);
}

.nav-logo {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-white);
  transition: color var(--dur-s) var(--ease-out);
}

.nav.scrolled .nav-logo { color: var(--c-text); }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--c-white);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.nav-logo-badge img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--c-white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.footer-logo-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
}

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

.nav-link {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
  transition: color var(--dur-s) var(--ease-out);
}

.nav.scrolled .nav-link { color: var(--c-text-muted); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--c-gold);
  transition: width var(--dur-m) var(--ease-out);
}
.nav-link:hover::after,
.nav.scrolled .nav-link:hover { color: var(--c-text); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text);
  background: var(--c-gold);
  padding: 0.75rem 1.75rem;
  border-radius: 0;
  transition: background var(--dur-s) var(--ease-out),
              color var(--dur-s) var(--ease-out);
}
.nav-cta:hover {
  background: var(--c-text);
  color: var(--c-white);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}
.lang-btn {
  display: flex;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out);
}
.lang-btn svg { display: block; border-radius: 2px; }
.lang-btn:hover { opacity: 0.75; }
.lang-btn.is-active {
  opacity: 1;
  border-color: var(--c-gold);
}
.lang-toggle-mobile { margin: 0.5rem 0 0; }

/* Hamburger mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--c-white);
  transition: transform var(--dur-s) var(--ease-out),
              opacity var(--dur-s),
              background var(--dur-s);
}
.nav.scrolled .nav-hamburger span { background: var(--c-text); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--c-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-m) var(--ease-out);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: 0.1em;
  transition: color var(--dur-s) var(--ease-out);
}
.mobile-menu a:hover { color: var(--c-gold); }

/* ─── Split Text Masks ───────────────────────────────── */
.split-mask {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  padding: 0.1em 0;
  margin: -0.1em 0;
}
.split-line {
  display: inline-block;
  will-change: transform;
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: clamp(5.5rem, 10vh, 8.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

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

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,21,16,0.35) 0%,
    rgba(26,21,16,0.1) 35%,
    rgba(26,21,16,0.6) 75%,
    rgba(26,21,16,0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  width: 100%;
  max-width: 950px;
  margin-top: auto;
}

.hero-label {
  font-family: var(--f-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
}
.hero-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--c-gold);
}

.hero-title {
  font-family: var(--f-serif);
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--c-white);
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--c-gold-light);
}

.hero-desc {
  font-family: var(--f-sans);
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin-bottom: 2.25rem;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
}

.btn-primary {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-bg-dark);
  background: var(--c-gold);
  padding: 1rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: color var(--dur-m) var(--ease-in-out);
  display: inline-block;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-bg-dark);
  transform: translateY(100%);
  transition: transform var(--dur-m) var(--ease-in-out);
}
.btn-primary:hover { color: var(--c-white); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color var(--dur-s) var(--ease-out),
              gap var(--dur-m) var(--ease-out);
}
.btn-ghost:hover { color: var(--c-white); gap: 1.25rem; }
.btn-ghost svg { transition: transform var(--dur-m) var(--ease-out); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
}
.hero-scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-gold);
  animation: scrollDown 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollDown {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ─── Sections ───────────────────────────────────────── */
section {
  padding: var(--section-gap) var(--gutter);
}

/* ─── About / Vision ─────────────────────────────────── */
.about-s {
  background: var(--c-cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: center;
}

.about-tag {
  font-family: var(--f-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.about-tag::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--c-gold);
}

.about-title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.about-title em { font-style: italic; color: var(--c-gold); }

.about-text {
  font-family: var(--f-sans);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}
.stat-num {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  color: var(--c-gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: 0.4rem;
}

.about-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform var(--dur-l) var(--ease-out), opacity var(--dur-l) var(--ease-out);
}
.about-image-wrap:hover img.about-image-day,
.about-image-wrap:hover img.about-image-night { transform: scale(1.12); }

.about-image-night { opacity: 0; }
.about-image-wrap[data-view="night"] .about-image-day { opacity: 0; }
.about-image-wrap[data-view="night"] .about-image-night { opacity: 1; }

.day-night-toggle {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.day-night-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--f-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: color var(--dur-m) var(--ease-out), background var(--dur-m) var(--ease-out);
}
.day-night-btn:hover { color: #fff; }
.day-night-btn.is-active {
  background: var(--c-gold);
  color: var(--c-bg-dark);
}

.about-image-tag {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--c-gold);
  color: var(--c-bg-dark);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  font-family: var(--f-sans);
}

/* ─── Gallery / Project ──────────────────────────────── */
.gallery-s {
  background: var(--c-bg-dark);
  padding: var(--section-gap) 0;
  overflow: hidden;
}

.gallery-header {
  padding: 0 var(--gutter);
  margin-bottom: 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.gallery-title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  color: var(--c-white);
  line-height: 1.1;
}
.gallery-title em { font-style: italic; color: var(--c-gold); }

.gallery-count {
  font-family: var(--f-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.gallery-track-wrap {
  overflow: hidden;
  cursor: grab;
}
.gallery-track-wrap:active { cursor: grabbing; }

.gallery-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 auto;
  width: clamp(280px, 35vw, 520px);
  position: relative;
  overflow: hidden;
}

.gallery-item-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.gallery-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform var(--dur-l) var(--ease-out);
}
.gallery-item:hover .gallery-item-img img { transform: scale(1.08); }

.gallery-item-caption {
  padding: 1.25rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.gallery-item-num {
  font-family: var(--f-serif);
  font-size: 0.8rem;
  color: var(--c-gold);
  font-style: italic;
}
.gallery-item-name {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Gallery Nav */
.gallery-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 3rem var(--gutter) 0;
}
.gallery-btn {
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-s) var(--ease-out),
              color var(--dur-s) var(--ease-out),
              background var(--dur-s) var(--ease-out);
}
.gallery-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.gallery-progress-bar {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
  max-width: 200px;
}
.gallery-progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--c-gold);
  width: 20%;
  transition: width var(--dur-m) var(--ease-out);
}

/* Location block (Lote 119) */
.location-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 3rem 0 0;
  padding: 1.75rem var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.location-pin {
  color: var(--c-gold);
  flex-shrink: 0;
}
.location-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-right: auto;
}
.location-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.location-coords {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--c-white);
}
.location-link {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-bg-dark);
  background: var(--c-gold);
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  transition: background var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out);
}
.location-link:hover {
  background: var(--c-white);
  color: var(--c-bg-dark);
}

/* ─── Features / Details ─────────────────────────────── */
.features-s {
  background: var(--c-bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.features-visual {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}
.features-visual img,
.features-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform: scale(1.1);
  transition: transform var(--dur-l) var(--ease-out);
}
.features-visual.in-view img,
.features-visual.in-view video { transform: scale(1); }

.features-content {
  padding: clamp(4rem, 8vw, 9rem) clamp(2rem, 5vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
}

.features-tag {
  font-family: var(--f-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.features-tag::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--c-gold);
}

.features-title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}
.features-title em { font-style: italic; color: var(--c-gold); }

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feature-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.feature-item:first-child { border-top: 1px solid var(--c-border); }

.feature-num {
  font-family: var(--f-serif);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--c-gold);
  min-width: 1.5rem;
  padding-top: 0.1rem;
}
.feature-name {
  font-family: var(--f-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.feature-desc {
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ─── Marquee ────────────────────────────────────────── */
.marquee-s {
  background: var(--c-gold);
  padding: 1.5rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeAnim 25s linear infinite;
}
.marquee-item {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--c-bg-dark);
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.marquee-item::after {
  content: '◆';
  font-style: normal;
  font-size: 0.4rem;
  opacity: 0.5;
}
@keyframes marqueeAnim {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Full Image Section ─────────────────────────────── */
.fullimg-s {
  padding: 0;
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}
.fullimg-s img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 2s var(--ease-out);
}
.fullimg-s.in-view img { transform: scale(1); }

.fullimg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,21,16,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  padding: var(--gutter);
}
.fullimg-quote {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--c-white);
  max-width: 700px;
  line-height: 1.4;
}
.fullimg-author {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-gold);
}

/* ─── Grapes / Vine Banner ───────────────────────────── */
.grapes-banner-s {
  padding: 0;
  background: var(--c-cream);
  position: relative;
  /* Negative margin to pull in the whitespace from the PNG edges */
  overflow: hidden;
}

.grapes-vine {
  position: relative;
  width: 100%;
  /* uvas para site 2.png (880×1184) has the vine/leaves band between 40%–65%
     of its height, edge-to-edge horizontally (no side margins, unlike the
     first PNG). Window height is tied to viewport width (38vw) so it scales
     in lockstep with the image's own width-driven height — this keeps the
     full hanging clusters in view at any screen size instead of clipping
     them mid-cluster. */
  height: clamp(195px, 35vw, 705px);
  overflow: hidden;
  line-height: 0;
}

.grapes-vine-img {
  display: block;
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 50%;
  /* -40.5% (own height) pulls the image up so the vine band starts flush
     with the top of the window, instead of centering on the whole tall PNG. */
  transform: translate(-50%, -40.5%);
  transform-origin: center center;
  filter: drop-shadow(0 6px 18px rgba(26, 21, 16, 0.10));
  animation-play-state: paused;
}

.grapes-banner-s.grapes-motion-active .grapes-vine-img {
  animation: vineSway 7.5s ease-in-out infinite alternate;
  animation-play-state: running;
  will-change: transform;
}

@keyframes vineSway {
  0%   { transform: translate(-50%, -40.5%) rotate(-0.4deg) translate3d(-2px, 0, 0); }
  25%  { transform: translate(-50%, -40.5%) rotate(0.2deg)  translate3d(1px, 2px, 0); }
  50%  { transform: translate(-50%, -40.5%) rotate(-0.15deg) translate3d(-1px, -1px, 0); }
  75%  { transform: translate(-50%, -40.5%) rotate(0.3deg)  translate3d(1.5px, 1px, 0); }
  100% { transform: translate(-50%, -40.5%) rotate(-0.4deg) translate3d(-1px, 1px, 0); }
}

@media (max-width: 768px) {
  .grapes-vine {
    height: clamp(170px, 43vw, 325px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .grapes-vine-img {
    animation: none !important;
  }
}


/* ─── Contact ────────────────────────────────────────── */
.contact-s {
  background: var(--c-cream);
  padding-top: clamp(0.5rem, 1.2vw, 1.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-tag {
  font-family: var(--f-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-tag::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--c-gold);
}

.contact-title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
}
.contact-title em { font-style: italic; color: var(--c-gold); }

.contact-text {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--c-text-muted);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}
.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-detail-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.contact-detail-val {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 300;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.form-input,
.form-textarea {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--c-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-border);
  padding: 0.75rem 0;
  outline: none;
  transition: border-color var(--dur-s) var(--ease-out);
  resize: none;
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(26,21,16,0.3);
}
.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--c-gold);
}
.form-textarea { min-height: 120px; }

.form-submit {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-bg-dark);
  background: var(--c-gold);
  border: none;
  padding: 1rem 2.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--dur-m) var(--ease-in-out);
  margin-top: 0.5rem;
  align-self: flex-start;
}
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-bg-dark);
  transform: translateY(100%);
  transition: transform var(--dur-m) var(--ease-in-out);
}
.form-submit:hover { color: var(--c-white); }
.form-submit:hover::before { transform: translateY(0); }
.form-submit span { position: relative; z-index: 1; }

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--c-bg-dark);
  padding: clamp(3rem, 5vw, 5rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-white);
}
.footer-logo span { color: var(--c-gold); }

.footer-center {
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.08);
  text-align: center;
  letter-spacing: 0.05em;
}

.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}
.footer-link {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color var(--dur-s) var(--ease-out);
}
.footer-link:hover { color: var(--c-gold); }

/* ─── Reveal animations (JS-driven) ─────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-l) var(--ease-out),
              transform var(--dur-l) var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="slow"] {
  transition-duration: 1.6s;
}
[data-reveal="delay-1"] { transition-delay: 0.15s; }
[data-reveal="delay-2"] { transition-delay: 0.3s; }
[data-reveal="delay-3"] { transition-delay: 0.45s; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .about-s {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image-wrap { order: -1; aspect-ratio: 16/10; }

  .features-s {
    grid-template-columns: 1fr;
  }
  .features-visual { min-height: 400px; }

  .contact-s {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-center { display: none; }
  .footer-right { text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 600px) {
  :root { --gutter: 1.25rem; }
  .about-stats { gap: 2rem; }
  .gallery-item { width: clamp(250px, 75vw, 350px); }
  .hero-content { padding-bottom: 4rem; }
}

@media (max-height: 800px) and (min-width: 768px) {
  .hero {
    padding-top: 5.5rem;
    padding-bottom: 2rem;
  }
  .hero-label {
    margin-bottom: 0.75rem;
  }
  .hero-title {
    font-size: clamp(2rem, 5.5vh, 3.6rem);
    margin-bottom: 1.25rem;
    line-height: 1.08;
  }
  .hero-desc {
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .hero-scroll {
    bottom: 1.2rem;
  }
}

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

::selection {
  background: var(--c-gold);
  color: var(--c-bg-dark);
}

/* Smooth scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-gold); border-radius: 3px; }
