/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Outfit:wght@200;300;400;500;600;700;800&display=swap');

/* ── DESIGN SYSTEM TOKENS ── */
:root {
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Outfit', sans-serif;
  /* Spring physics easing — the foundation of premium feel */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-back: cubic-bezier(0.36, 0, 0.66, -0.56);
  --transition-premium: all 0.7s var(--ease-spring);
}

/* ── GLOBAL RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: "Outfit", sans-serif !important;
  background-color: #fcfaf6;
  color: #1a1a1a;
  overflow-x: hidden;
  /* Subtle warm ivory texture via radial gradient */
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(88, 131, 105, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(56, 83, 65, 0.03) 0%, transparent 60%);
}

h1, h2, h3, h4, .font-serif { font-family: "Cormorant Garamond", serif !important; }

/* ── CURSOR GLOW AURA ── */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 131, 105, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.6s var(--ease-out-expo), top 0.6s var(--ease-out-expo);
  will-change: transform;
}

/* ── FILM GRAIN NOISE OVERLAY (fixed, never scrolling) ── */
.film-grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: multiply;
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f5eedf; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #588369, #2d3f32);
  border-radius: 3px;
}

/* ── SMOOTH PREMIUM TRANSITIONS ── */
.transition-premium { transition: var(--transition-premium); }

/* ── DOUBLE-BEZEL CARD HOVER (Doppelrand) ── */
.double-bezel-card { transition: var(--transition-premium); }
.double-bezel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(45, 63, 50, 0.10);
}

/* ── MAGNETIC BUTTON PHYSICS ── */
.btn-magnetic {
  transition: transform 0.6s var(--ease-spring), background-color 0.4s var(--ease-spring), box-shadow 0.6s var(--ease-spring);
}
.btn-magnetic:hover {
  box-shadow: 0 12px 32px rgba(45, 63, 50, 0.18);
}
.btn-magnetic:active { transform: scale(0.97); }

.btn-icon-circle {
  transition: transform 0.6s var(--ease-spring), background-color 0.4s var(--ease-spring);
}
.btn-magnetic:hover .btn-icon-circle {
  transform: scale(1.10) translate(2px, -1px);
}

/* ── BENTO CARD ELEVATED HOVER ── */
.bento-card {
  transition: transform 0.8s var(--ease-spring), box-shadow 0.8s var(--ease-spring), border-color 0.6s var(--ease-spring);
  will-change: transform;
}
.bento-card:hover {
  transform: translateY(-8px) scale(1.008);
  border-color: rgba(88, 131, 105, 0.28) !important;
  box-shadow: 0 32px 64px rgba(45, 63, 50, 0.10);
}

/* ── PARALLAX TILT (applied via JS) ── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
  will-change: transform;
}

/* ── SCROLL REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(5px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo),
    filter 0.9s var(--ease-out-expo);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered children delay for bento grids */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }

/* ── HERO TEXT MASK REVEAL ── */
.hero-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-word span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 1.0s var(--ease-spring),
    opacity 0.8s var(--ease-out-expo);
}
.hero-word.animate span {
  transform: translateY(0);
  opacity: 1;
}

/* ── STAT COUNTER ANIMATION ── */
.stat-number {
  display: inline-block;
  transition: transform 0.6s var(--ease-spring);
}
.stat-item:hover .stat-number {
  transform: scale(1.12) translateY(-2px);
}

/* ── NAVIGATION LINK UNDERLINE WIPE ── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #3a5442, #588369);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-spring);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── LIGHTBOX ── */
.lightbox {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-spring);
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── HOVER SCALE IMAGE ── */
.hover-scale-img { overflow: hidden; }
.hover-scale-img img {
  transition: transform 1.2s var(--ease-spring);
  will-change: transform;
}
.hover-scale-img:hover img { transform: scale(1.06); }

/* ── GALLERY IMAGE HOVER OVERLAY ── */
.gallery-item {
  break-inside: avoid;
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
  transition: transform 0.6s var(--ease-spring);
}
.gallery-item:hover {
  transform: translateY(-4px);
  z-index: 2;
}
.gallery-item .gallery-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 32, 23, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-spring);
  border-radius: inherit;
}
.gallery-item:hover .gallery-img-overlay { opacity: 1; }

/* ── MASONRY GALLERY COLUMNS LAYOUT (explicit override) ── */
#masonry-gallery {
  display: block !important;
  column-gap: 1.5rem;
  column-fill: balance;
  column-count: 1;
}
@media (min-width: 640px) { #masonry-gallery { column-count: 2; } }
@media (min-width: 768px) { #masonry-gallery { column-count: 3; } }
@media (min-width: 1024px) { #masonry-gallery { column-count: 4; } }

/* ── SLIDE TRANSITIONS ── */
.slide-active {
  opacity: 1;
  transition: opacity 1.6s var(--ease-out-expo);
}
.slide-inactive {
  opacity: 0;
  transition: opacity 1.6s var(--ease-out-expo);
}

/* ── REVIEW CARD HOVER ── */
.review-card {
  transition: transform 0.7s var(--ease-spring), box-shadow 0.7s var(--ease-spring);
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(45, 63, 50, 0.07);
}

/* ── SECTION SEPARATOR LINE ── */
.section-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(88, 131, 105, 0.6) 0%, transparent 100%);
  transition: width 1.4s var(--ease-out-expo);
}
.section-divider.active { width: 120px; }

/* ── BOOKING FORM INPUTS ── */
.form-input {
  transition:
    border-color 0.4s var(--ease-spring),
    box-shadow 0.4s var(--ease-spring),
    background-color 0.4s var(--ease-spring);
}
.form-input:focus {
  outline: none;
  border-color: rgba(88, 131, 105, 0.5);
  box-shadow: 0 0 0 3px rgba(88, 131, 105, 0.10);
  background-color: rgba(88, 131, 105, 0.04);
}

/* ── GRADIENT TEXT UTILITY ── */
.text-gradient-sage {
  background: linear-gradient(135deg, #3a5442 0%, #7aa48a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── GLOWING AMBIENT ORBS (fixed, GPU-safe) ── */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  will-change: opacity;
}

/* ── FOOTER LINK HOVER ── */
footer a {
  transition: color 0.3s var(--ease-spring);
}

/* ── GALLERY HOVER ANIMATIONS ── */
.gallery-item {
  transition: opacity 0.3s ease;
}

.gallery-item.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Gallery caption overlay */
.gallery-item .gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3), transparent);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: calc(1.5rem - 0.375rem);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ── MOBILE GALLERY: hide extra items below md ── */
@media (max-width: 767px) {
  .gallery-extra {
    display: none;
  }
  .gallery-extra.expanded {
    display: block;
  }
}



/* OVERRIDE TEXT SIZES TO BE LARGER FOR BETTER READABILITY (AS REQUESTED) */
.text-xs { font-size: 16px !important; line-height: 1.6 !important; }
.text-sm { font-size: 18px !important; line-height: 1.7 !important; }
.text-base { font-size: 20px !important; line-height: 1.7 !important; }
