/* ── Custom Properties ── */
:root {
  --terra-400: #E07A5F;
  --terra-500: #C1694F;
  --terra-600: #A8553F;
  --sand-400: #E2C494;
  --cream: #FDF8F0;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ── Section Padding ── */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* ── Eyebrow ── */
.eyebrow {
  letter-spacing: 0.2em;
}

/* ── CTA Buttons ── */
.cta-btn {
  position: relative;
  overflow: hidden;
}

.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.cta-btn:hover::after {
  opacity: 1;
}

/* ── Hero ── */
.hero {
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 20, 15, 0.55) 0%,
    rgba(30, 20, 15, 0.35) 40%,
    rgba(30, 20, 15, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-eyebrow {
  animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}

.hero-title {
  animation: fadeUp 0.8s var(--ease-out) 0.5s both;
}

.hero-subtitle {
  animation: fadeUp 0.8s var(--ease-out) 0.7s both;
}

.hero-actions {
  animation: fadeUp 0.8s var(--ease-out) 0.9s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-btn-hero {
  position: relative;
  transition: all 0.35s var(--ease-out);
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}

.scroll-indicator::before {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

/* ── Reveal Animations ── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s var(--ease-out);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Menu Cards ── */
.menu-card {
  position: relative;
}

.menu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(193,105,79,0.2), transparent, rgba(226,196,148,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.menu-card:hover::before {
  opacity: 1;
}

/* ── Gallery ── */
.gallery-item {
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ── Visit Cards ── */
.visit-card {
  position: relative;
}

/* ── Header ── */
#header {
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

#header.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

#header.scrolled .nav-link {
  color: rgba(45, 35, 30, 0.75);
}

#header.scrolled .nav-link:hover {
  color: var(--terra-500);
}

#header.scrolled .cta-btn {
  background: var(--terra-500);
}

#header.scrolled .font-display {
  color: #1e140f;
}

/* ── Mobile Menu ── */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.open .mobile-nav {
  animation: mobileNavIn 0.5s var(--ease-out) both;
}

#mobileMenu.open .mobile-nav:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-nav:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-nav:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-nav:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-nav:nth-child(5) { animation-delay: 0.25s; }

@keyframes mobileNavIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Back to Top ── */
#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--terra-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
