/* ═══════════════════════════════════════════
   VILLA MEDITERRANEA — Landing Page
   Colors: verde #1a2e1a, beige #f0e8d8, oro #b8956a
   Fonts: Cormorant Garamond (titles), Jost (body)
═══════════════════════════════════════════ */

:root {
  --verde: #1a2e1a;
  --beige: #f0e8d8;
  --oro: #b8956a;
  --text-dark: #1a2e1a;
  --text-muted: #6b5f4e;
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--verde);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.vm-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
.vm-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.5s, backdrop-filter 0.5s, box-shadow 0.5s;
}
.vm-navbar.scrolled {
  background: rgba(17, 30, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(184, 149, 106, 0.15);
}

.vm-nav-logo { flex-shrink: 0; }
.vm-nav-logo img { height: 36px; width: auto; object-fit: contain; }

.vm-nav-links {
  display: flex;
  gap: 2.2rem;
}
.vm-nav-link {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,232,216,0.75);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.vm-nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--oro);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.vm-nav-link:hover { color: var(--beige); }
.vm-nav-link:hover::after { width: 100%; }
.vm-nav-link--active { color: var(--beige); }
.vm-nav-link--active::after { width: 100%; }

/* Villa badge */
.vm-nav-link--villa { display: inline-flex; align-items: center; gap: 6px; }
.vm-nav-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a2e1a;
  background: var(--oro);
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.4;
  position: relative;
  top: -1px;
  white-space: nowrap;
  animation: vm-badge-pulse 2.8s ease-in-out infinite;
}
@keyframes vm-badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.vm-nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.vm-nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vm-lang-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,232,216,0.5);
  padding: 2px 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.vm-lang-btn.active,
.vm-lang-btn:hover { color: var(--oro); }
.vm-lang-sep { color: rgba(240,232,216,0.3); font-size: 0.6rem; }

/* Burger */
.vm-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.vm-burger span {
  display: block;
  height: 1px;
  background: var(--beige);
  transition: transform 0.3s, opacity 0.3s;
}
.vm-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.vm-burger.open span:nth-child(2) { opacity: 0; }
.vm-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.vm-mobile-menu {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(17, 30, 17, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}
.vm-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}
.vm-mobile-link {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 300;
  color: var(--beige);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.vm-mobile-link:hover { color: var(--oro); }
.vm-mobile-link--villa { display: inline-flex; align-items: center; gap: 10px; }
.vm-mobile-link--villa .vm-nav-badge {
  font-size: 0.55rem;
  padding: 3px 8px;
  border-radius: 4px;
  top: 0;
}
.vm-mobile-lang { display: flex; gap: 8px; margin-top: 8px; }

@media (max-width: 900px) {
  .vm-navbar { padding: 0 24px; }
  .vm-nav-links { display: none; }
  .vm-burger { display: flex; }
}


/* ═══════════════════════════════════
   HERO — compact, not fullscreen
═══════════════════════════════════ */
.vm-hero {
  position: relative;
  height: 80vh;
  max-height: 650px;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vm-hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease;
}
.vm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,46,26,0.3) 0%,
    rgba(26,46,26,0.15) 40%,
    rgba(26,46,26,0.5) 70%,
    rgba(26,46,26,0.85) 100%
  );
}
.vm-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.vm-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 16px;
}
.vm-eyebrow--dark { color: var(--oro); }
.vm-hero-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  color: var(--beige);
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.vm-hero-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 40px;
}
.vm-hero-cta {
  display: inline-block;
  padding: 14px 42px;
  border: 1px solid var(--oro);
  color: var(--beige);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s ease;
}
.vm-hero-cta:hover {
  background: var(--oro);
  color: var(--verde);
}
.vm-hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.vm-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--oro);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}
.vm-hero-counter {
  position: absolute;
  bottom: 24px;
  right: 28px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(240,232,216,0.5);
}


/* ── SECTIONS ── */
.vm-section {
  padding: 88px 0;
}
.vm-section--beige { background: var(--beige); }
.vm-section--dark { background: var(--verde); padding: 64px 0; }
.vm-section--contact { border-top: 1px solid rgba(184,149,106,0.15); }
.vm-section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  color: var(--text-dark);
  margin: 16px 0 40px;
  line-height: 1.2;
}


/* ── TEXT SECTIONS ── */
.vm-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 56px;
}

.vm-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(184,149,106,0.25);
  border-radius: 4px;
  margin-bottom: 56px;
}
.vm-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-right: 1px solid rgba(184,149,106,0.25);
  border-bottom: 1px solid rgba(184,149,106,0.25);
  transition: background 0.3s;
}
.vm-feat:nth-child(3n) { border-right: none; }
.vm-feat:nth-last-child(-n+3) { border-bottom: none; }
.vm-feat svg { color: var(--oro); flex-shrink: 0; }
.vm-feat span {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-dark);
}
.vm-feat:hover { background: rgba(184,149,106,0.06); }

.vm-floor-single {
  background: rgba(184,149,106,0.08);
  border-radius: 4px;
  padding: 32px;
  border-left: 3px solid var(--oro);
}
.vm-floor-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.vm-floor-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}


/* ═══════════════════════════════════
   SLIDESHOW — contained, max 500px
═══════════════════════════════════ */
.vm-slideshow-box {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
}
.vm-ss-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease;
}
.vm-ss-counter {
  position: absolute;
  bottom: 16px;
  right: 20px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(240,232,216,0.5);
}


/* ═══════════════════════════════════
   PHOTO GRID — 3+2 layout, 4:3
═══════════════════════════════════ */
.vm-grid-container {
  margin-top: 56px;
}
.vm-photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.vm-grid-item {
  overflow: hidden;
  border-radius: 8px;
}
/* first 3 photos: each spans 2 cols (= 3 per row) */
.vm-grid-item:nth-child(-n+3) {
  grid-column: span 2;
}
/* last 2 photos: each spans 3 cols (= 2 per row, wider) */
.vm-grid-item:nth-child(n+4) {
  grid-column: span 3;
}
.vm-grid-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.vm-grid-item:hover img {
  transform: scale(1.04);
}


/* ── SERVICES ── */
.vm-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.vm-service {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.vm-service svg {
  color: var(--oro);
  flex-shrink: 0;
  margin-top: 2px;
}
.vm-service-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.vm-service-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}


/* ── REASONS ── */
.vm-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}
.vm-reason-num {
  display: block;
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 300;
  color: rgba(184,149,106,0.25);
  line-height: 1;
  margin-bottom: 8px;
}
.vm-reason-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.vm-reason-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}


/* ── CONTACT ── */
.vm-contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.vm-contact-sub {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 16px;
}
.vm-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vm-field { display: flex; flex-direction: column; gap: 6px; }
.vm-field label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.vm-field input,
.vm-field textarea {
  padding: 12px 16px;
  border: 1px solid rgba(184,149,106,0.35);
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.3s;
  resize: vertical;
}
.vm-field input:focus,
.vm-field textarea:focus {
  outline: none;
  border-color: var(--oro);
}
.vm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.vm-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--oro);
}
.vm-submit {
  padding: 14px 32px;
  background: var(--verde);
  color: var(--beige);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}
.vm-submit:hover { background: #2a4a2a; }
.vm-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.vm-form-msg { font-size: 0.85rem; min-height: 1.2em; }
.vm-form-msg.success { color: #3a7a3a; }
.vm-form-msg.error { color: #a04040; }


/* ── WHATSAPP ── */
.vm-wa-fixed {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}
.vm-wa-fixed:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}


/* ── FOOTER ── */
.vm-footer {
  background: var(--verde);
  border-top: 1px solid rgba(240,232,216,0.08);
  padding: 48px 24px;
  text-align: center;
}
.vm-footer-logo { height: 36px; margin-bottom: 20px; opacity: 0.7; }
.vm-footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
}
.vm-footer-links a {
  color: var(--oro);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.vm-footer-links a:hover { text-decoration: underline; }
.vm-footer-copy {
  font-size: 0.7rem;
  color: rgba(240,232,216,0.3);
  letter-spacing: 0.08em;
}


/* ── TOAST ── */
.vm-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--verde);
  color: var(--beige);
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
  border: 1px solid rgba(184,149,106,0.2);
}
.vm-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}


/* ── REVEAL ── */
.vm-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.vm-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */

@media (max-width: 900px) {
  .vm-features { grid-template-columns: repeat(2, 1fr); }
  .vm-feat:nth-child(3n) { border-right: 1px solid rgba(184,149,106,0.25); }
  .vm-feat:nth-child(2n) { border-right: none; }
  .vm-feat:nth-last-child(-n+3) { border-bottom: 1px solid rgba(184,149,106,0.25); }
  .vm-feat:nth-last-child(-n+2) { border-bottom: none; }
  .vm-contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .vm-services { grid-template-columns: 1fr; gap: 24px; }
  .vm-reasons { grid-template-columns: 1fr; gap: 32px; }
  .vm-slideshow-box { height: 380px; }
}

@media (max-width: 600px) {
  .vm-section { padding: 64px 0; }
  .vm-section--dark { padding: 48px 0; }
  .vm-features { grid-template-columns: 1fr 1fr; }
  .vm-hero { max-height: 500px; }
  .vm-hero-title { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .vm-hero-counter { right: 16px; bottom: 16px; }
  .vm-floor-single { padding: 24px; }
  .vm-submit { align-self: stretch; }
  .vm-slideshow-box { height: 280px; border-radius: 8px; }
  .vm-ss-counter { right: 12px; bottom: 12px; }

  /* Grid: all photos stack to 2 columns */
  .vm-photo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .vm-grid-item:nth-child(-n+3),
  .vm-grid-item:nth-child(n+4) {
    grid-column: span 1;
  }
  /* Hide 5th to keep even */
  .vm-grid-item:nth-child(5) { display: none; }
  .vm-grid-container { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .vm-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
