/* ===========================
   LIPA TALAY VILLAS — STYLES
   Palette: deep ocean navy, warm sand, sea glass teal
   =========================== */

:root {
  --navy: #0d1f2d;
  --navy-light: #1a3345;
  --teal: #4a9b8e;
  --teal-light: #6bbfb3;
  --sand: #e8d9c4;
  --sand-light: #f5ede0;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #5a6572;
  --gold: #c9a96e;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== SPLASH ===== */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { text-align: center; color: var(--white); }
.splash-logo {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.splash-sub {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--teal-light);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.splash-wave {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 0 auto;
  animation: waveGrow 1s ease forwards;
}
@keyframes waveGrow { from { width: 0 } to { width: 60px } }

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,31,45,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74,155,142,0.2);
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--white);
  cursor: pointer;
  font-weight: 400;
}
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--teal);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.hamburger {
  display: none;
  background: none; border: none;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
}

/* Mobile Menu */
#mobileMenu {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.5rem;
}
#mobileMenu.open { display: flex; }
#mobileMenu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.1em;
}
#closeMenu {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--white); font-size: 2rem; cursor: pointer;
}

/* ===== PAGES ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: slowZoom 12s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,31,45,0.75) 0%, rgba(13,31,45,0.3) 60%, transparent 100%);
  display: flex; align-items: center;
}
.hero-text {
  max-width: 1300px; margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  padding-top: 70px;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--sand);
}
.hero-desc {
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
}
.btn-hero {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-hero:hover { background: var(--teal-light); transform: translateY(-2px); }

/* ===== INTRO SECTION ===== */
.intro-section {
  padding: 100px 2rem;
  background: var(--white);
}
.intro-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
}
.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.intro-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.intro-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.btn-outline {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 2rem;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  background: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.intro-images {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.intro-images img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
}
.intro-images img:first-child { margin-top: 40px; }

/* ===== FEATURES STRIP ===== */
.features-strip {
  background: var(--navy);
  padding: 3rem 2rem;
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 2rem 3rem;
}
.feature {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.feat-icon { font-size: 1.6rem; }

/* ===== VILLA CARDS (HOME PREVIEW) ===== */
.villas-preview {
  padding: 80px 2rem;
  background: var(--sand-light);
}
.section-header {
  text-align: center;
  max-width: 600px; margin: 0 auto 3rem;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--navy);
}
.villa-cards {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.villa-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 20px rgba(13,31,45,0.08);
}
.villa-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(13,31,45,0.15); }
.villa-card-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.villa-card-body { padding: 1.5rem; }
.villa-card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
  display: block;
}
.villa-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.villa-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.villa-card-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex; align-items: center; gap: 0.5rem;
}
.villa-card-link::after { content: '→'; transition: transform 0.2s; }
.villa-card:hover .villa-card-link::after { transform: translateX(4px); }

/* ===== VILLAS FULL PAGE ===== */
.villas-full { padding: 60px 2rem 100px; }
.villa-cards-full {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem;
}
.villa-card-full {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 30px rgba(13,31,45,0.1);
}
.villa-card-full:hover { transform: translateY(-6px); box-shadow: 0 16px 50px rgba(13,31,45,0.15); }
.villa-card-full-img {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover; display: block;
}
.villa-card-full-body { padding: 2rem; }
.villa-card-full-body h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem; font-weight: 400;
  color: var(--navy); margin-bottom: 0.5rem;
}
.villa-card-full-body p {
  font-size: 0.9rem; color: var(--text-light);
  line-height: 1.7; margin-bottom: 1.5rem;
}
.villa-meta { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.villa-meta-item {
  display: flex; flex-direction: column;
  font-size: 0.8rem; color: var(--text-light);
}
.villa-meta-item strong { font-size: 1.1rem; color: var(--navy); font-family: var(--font-serif); }

/* ===== VILLA DETAIL ===== */
.detail-hero {
  position: relative;
  height: 70vh; min-height: 400px;
  overflow: hidden;
  margin-top: 70px;
}
.detail-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,31,45,0.8) 0%, transparent 60%);
  display: flex; align-items: flex-end;
}
.detail-hero-text {
  padding: 3rem;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.detail-hero-text .back-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); cursor: pointer; background: none; border: none;
  margin-bottom: 1rem;
}
.detail-hero-text .back-btn:hover { color: var(--white); }
.detail-hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300; color: var(--white);
}
.detail-hero-text .villa-unit {
  font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--teal-light); text-transform: uppercase;
  margin-bottom: 0.5rem; display: block;
}

.detail-body { max-width: 1200px; margin: 0 auto; padding: 60px 2rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; }
.detail-desc h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem; font-weight: 400;
  color: var(--navy); margin-bottom: 1rem;
}
.detail-desc p {
  font-size: 0.95rem; line-height: 1.8;
  color: var(--text-light); margin-bottom: 1rem;
}
.detail-amenities { margin-top: 2rem; }
.detail-amenities h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem; color: var(--navy);
  margin-bottom: 1rem;
}
.amenity-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.amenity-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-light);
}
.amenity-item::before { content: '✓'; color: var(--teal); font-weight: bold; }

.detail-sidebar { position: sticky; top: 90px; }
.enquiry-box {
  background: var(--navy);
  border-radius: 8px;
  padding: 2rem;
  color: var(--white);
}
.enquiry-box h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 300;
  margin-bottom: 0.5rem;
}
.enquiry-box p { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.enquiry-box .btn-hero { width: 100%; text-align: center; display: block; }
.enquiry-wa {
  margin-top: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-decoration: none;
}
.enquiry-wa span { font-size: 0.8rem; color: #25D366; }

/* Gallery */
.detail-gallery { margin-top: 3rem; }
.detail-gallery h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem; font-weight: 400;
  color: var(--navy); margin-bottom: 1.5rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.gallery-grid img:hover { opacity: 0.85; transform: scale(1.02); }
.load-more-btn {
  display: block; margin: 2rem auto 0;
  padding: 0.85rem 2.5rem;
  background: none; border: 1.5px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.2s;
}
.load-more-btn:hover { background: var(--teal); color: var(--white); }

/* ===== PAGE HERO SMALL ===== */
.page-hero-small {
  background: var(--navy);
  padding: 120px 2rem 60px;
  text-align: center;
}
.page-hero-small h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300; color: var(--white);
  margin-bottom: 0.75rem;
}
.page-hero-small p {
  font-size: 0.9rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal-light);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  padding: 80px 2rem;
  text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--white);
  margin-bottom: 1rem;
}
.cta-inner p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 0.95rem; line-height: 1.7; }

/* ===== LOCATION ===== */
.location-section { padding: 80px 2rem; }
.location-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.location-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 300; color: var(--navy); margin-bottom: 1rem;
}
.location-text p { font-size: 0.95rem; line-height: 1.8; color: var(--text-light); margin-bottom: 1rem; }
.location-facts { display: flex; gap: 2rem; margin-top: 2rem; }
.loc-fact { display: flex; flex-direction: column; }
.loc-fact strong { font-family: var(--font-serif); font-size: 2rem; color: var(--teal); }
.loc-fact span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); }

/* ===== CONTACT ===== */
.contact-section { padding: 80px 2rem; }
.contact-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 300; color: var(--navy); margin-bottom: 1rem;
}
.contact-info p { font-size: 0.9rem; line-height: 1.7; color: var(--text-light); margin-bottom: 1.5rem; }
.contact-item { margin-bottom: 1rem; }
.contact-label { display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.25rem; }
.contact-item a { font-size: 0.95rem; color: var(--navy); text-decoration: none; }
.contact-item a:hover { color: var(--teal); }
.contact-img img { width: 100%; border-radius: 8px; aspect-ratio: 3/4; object-fit: cover; }

/* WhatsApp Block */
.whatsapp-block {
  margin-top: 2rem;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #f0faf5;
  border: 1px solid #c3e6d4;
  border-radius: 10px;
}
.wa-text strong { display: block; font-size: 0.9rem; color: var(--navy); }
.wa-text p { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.wa-qr img { width: 80px; height: 80px; }

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.95);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lbImg { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lb-close {
  position: fixed; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: white;
  font-size: 2.5rem; cursor: pointer; line-height: 1;
}
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none;
  color: white; font-size: 2rem; cursor: pointer;
  padding: 1rem 1.2rem; border-radius: 4px;
  transition: background 0.2s;
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem; letter-spacing: 0.25em;
  color: var(--white); margin-bottom: 1rem;
}
footer p { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.8; }
footer a { color: var(--teal-light); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .villa-cards { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .villa-cards, .villa-cards-full { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-images { grid-template-columns: 1fr; }
  .intro-images img:first-child { margin-top: 0; }
  .detail-hero { height: 50vh; }
  .features-strip { gap: 1.5rem 2rem; }
  .amenity-list { grid-template-columns: 1fr; }
}
