/* ═══════════════════════════════════════════════════════════════
   OPALINE — POST-HERO SECTIONS
   Villas · Experience Ticker · Testimonials · Final CTA · Footer
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   SECTION A — THE VILLAS
   Warm ivory background · Editorial cards
   ───────────────────────────────────────────── */

.villas {
  background: var(--ivory-light);
  padding: var(--section-v) var(--section-h);
}

.villas .section-overline {
  color: var(--teal-deep);
}

.villas .section-headline {
  color: var(--navy-twilight);
}

.villas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
}

.villa-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  cursor: pointer;
}

.villa-card__image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.villa-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-elegant);
}

.villa-card:hover .villa-card__image-wrap img {
  transform: scale(1.05);
}

.villa-card__reveal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  background: linear-gradient(
    to top,
    rgba(13, 27, 42, 0.92) 0%,
    rgba(13, 27, 42, 0.6) 60%,
    transparent 100%
  );
  transform: translateY(30%);
  transition: transform 0.6s var(--ease-elegant);
}

.villa-card:hover .villa-card__reveal {
  transform: translateY(0);
}

.villa-card__reveal h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ivory-stone);
  margin-bottom: 8px;
}

.villa-card__reveal p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: rgba(232, 222, 202, 0.7);
  line-height: 1.6;
  margin-bottom: 12px;
}

.villa-card__price {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--gold-edge);
  margin-bottom: 12px;
}

.villa-card__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--amber-warm);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.villa-card__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber-warm);
  transition: width 0.4s var(--ease-elegant);
}

.villa-card:hover .villa-card__link::after {
  width: 100%;
}

/* ─────────────────────────────────────────────
   SECTION B — THE OPALINE EXPERIENCE
   Dark navy · Ticker + Philosophy grid
   ───────────────────────────────────────────── */

.experience {
  background: var(--navy-twilight);
  padding: var(--section-v) 0;
  overflow: hidden;
}

/* Ticker */
.ticker-wrap {
  overflow: hidden;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(232, 222, 202, 0.08);
  border-bottom: 1px solid rgba(232, 222, 202, 0.08);
}

.ticker__inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

.ticker__item {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--ivory-stone);
  padding: 0 12px;
  flex-shrink: 0;
}

.ticker__dot {
  font-family: var(--font-body);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--gold-edge);
  padding: 0 12px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* Philosophy Grid */
.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-v) var(--section-h) 0;
}

.philosophy__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.philosophy__icon {
  width: 40px;
  height: 40px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.philosophy__item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ivory-stone);
}

.philosophy__item p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: rgba(232, 222, 202, 0.6);
  line-height: 1.7;
  letter-spacing: 0.02em;
  max-width: 300px;
}

/* ─────────────────────────────────────────────
   SECTION C — GUEST STORIES
   Warm ivory · Editorial testimonials
   ───────────────────────────────────────────── */

.testimonials {
  background: var(--ivory-light);
  padding: var(--section-v) var(--section-h);
}

.testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.testimonial__mark {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 80px);
  color: var(--teal-deep);
  line-height: 0.8;
  opacity: 0.5;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--navy-twilight);
  line-height: 1.7;
}

.testimonial cite {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-style: normal;
  margin-top: 8px;
}

/* ─────────────────────────────────────────────
   SECTION D — FINAL CTA
   Deep teal · Permanent booking form
   ───────────────────────────────────────────── */

.final-cta {
  background: var(--teal-deep);
  padding: var(--section-v) var(--section-h);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay for depth */
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 110, 122, 0.3) 0%,
    rgba(13, 27, 42, 0.4) 100%
  );
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.final-cta__headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 64px);
  color: var(--ivory-stone);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

/* Solid form (not frosted glass — sits on solid teal bg) */
.final-cta .booking-form-permanent {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.final-cta .form-field input,
.final-cta .form-field select {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(232, 222, 202, 0.25);
}

.final-cta .form-field input:focus,
.final-cta .form-field select:focus {
  border-color: var(--gold-edge);
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.2);
}

.final-cta .form-submit {
  background: linear-gradient(135deg, var(--ivory-stone), var(--ivory-light));
  color: var(--navy-twilight);
}

.final-cta .form-submit:hover {
  box-shadow: 0 4px 32px rgba(232, 222, 202, 0.35);
}

/* ─────────────────────────────────────────────
   FOOTER
   Navy · Minimal · Opaline wordmark
   ───────────────────────────────────────────── */

.footer {
  background: var(--navy-twilight);
  padding: var(--space-lg) var(--section-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  border-top: 1px solid rgba(232, 222, 202, 0.06);
}

.footer__brand {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--ivory-stone);
}

.footer__nav {
  display: flex;
  gap: var(--space-md);
}

.footer__nav a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(232, 222, 202, 0.5);
  transition: color 0.3s var(--ease-smooth);
}

.footer__nav a:hover {
  color: var(--ivory-stone);
}

.footer__credit {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: rgba(232, 222, 202, 0.25);
  letter-spacing: 0.08em;
}

/* ─────────────────────────────────────────────
   MOBILE RESPONSIVE — Post-hero sections
   ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .villas__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    /* Horizontal scroll snapping */
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--section-h);
  }

  .villa-card {
    min-width: 85vw;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .villa-card__reveal {
    transform: translateY(0); /* Always shown on mobile */
  }

  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .testimonials-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .villa-card {
    min-width: 92vw;
  }
}
