/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

/* ── Scroll-reveal base (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ── Typography ── */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; }
p { font-family: 'Inter', system-ui, sans-serif; }

/* ── Label (section headers) ── */
.label-green {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3D7A52;
  background: #DCE8E0;
  padding: 0.4em 1em;
  border-radius: 100px;
}
.label-cream {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #D4A373;
  background: rgba(212, 163, 115, 0.15);
  padding: 0.4em 1em;
  border-radius: 100px;
}

/* ── Pill Button ── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* ── Hero Gradient ── */
.hero-gradient {
  background: linear-gradient(
    135deg,
    #0F3D2E 0%,
    #1a5c40 25%,
    #2E6140 50%,
    #1a4a32 75%,
    #082018 100%
  );
}

/* ── Hero Animations ── */
.hero-badge {
  animation: fadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}
.hero-badge { opacity: 0; }

.hero-badge.revealed { opacity: 1; }

.hero h1 {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.4s;
  opacity: 0;
}
.hero h1.revealed { opacity: 1; }

.hero p {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.6s;
  opacity: 0;
}
.hero p.revealed { opacity: 1; }

.hero .flex {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.8s;
  opacity: 0;
}
.hero .flex.revealed { opacity: 1; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Suite Cards ── */
.suite-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 61, 46, 0.06), 0 8px 24px rgba(15, 61, 46, 0.04);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.suite-card:hover {
  box-shadow: 0 4px 12px rgba(15, 61, 46, 0.1), 0 16px 40px rgba(15, 61, 46, 0.08);
  transform: translateY(-4px);
}

/* ── Stay Cards ── */
.stay-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.stay-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(15, 61, 46, 0.12);
}

/* ── CTA Background ── */
.cta-bg {
  background: linear-gradient(
    135deg,
    #0F3D2E 0%,
    #1a5c40 40%,
    #2E6140 100%
  );
}

/* ── Input Fields ── */
.input-field {
  background: white;
  border: 1.5px solid #DCE8E0;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: #0F3D2E;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  width: 100%;
}
.input-field::placeholder { color: #8FB89E; }
.input-field:focus {
  border-color: #3D7A52;
  box-shadow: 0 0 0 3px rgba(61, 122, 82, 0.12);
}
.input-field:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}

/* ── Navbar transitions ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #D4A373;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile menu links ── */
.mobile-link {
  transition: opacity 0.3s ease;
}
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}
.mobile-menu-closed {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
  .font-serif { line-height: 1.1; }
}

/* ── Selection color ── */
::selection {
  background: rgba(61, 122, 82, 0.2);
  color: #0F3D2E;
}
