/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 164, 90, 0.3);
  color: #faf8f0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== NAVBAR ========== */
.nav {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

.nav.scrolled {
  background: rgba(3, 18, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(200, 164, 90, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c8a45a;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #c8a45a !important;
}

/* ========== MOBILE MENU ========== */
.mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-menu.open #bar1 {
  transform: translateY(5.5px) rotate(45deg);
}

.mobile-menu.open #bar2 {
  opacity: 0;
}

.mobile-menu.open #bar3 {
  transform: translateY(-5.5px) rotate(-45deg);
  width: 1.25rem;
}

body.menu-open {
  overflow: hidden;
}

.mobile-link {
  position: relative;
}

/* ========== HERO ========== */
.hero {
  position: relative;
}

.hero-bg {
  will-change: transform;
}

/* Gold accent line animation */
@keyframes growLine {
  from { height: 0; opacity: 0; }
  to { height: 80px; opacity: 1; }
}

.hero-gold-line {
  animation: growLine 0.8s ease-out 0.5s forwards;
}

/* Scroll line animation */
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

/* Hero entrance animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-headline {
  animation: fadeUp 0.9s ease-out 0.5s both;
}

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

.hero-buttons {
  animation: fadeUp 0.8s ease-out 0.9s both;
}

.hero-scroll {
  animation: fadeUp 0.8s ease-out 1.3s both;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #b8923e;
  color: #03120d;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #d4b452;
  box-shadow: 0 0 30px rgba(200, 164, 90, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(250, 248, 240, 0.3);
  color: #faf8f0;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-secondary:hover {
  border-color: #c8a45a;
  color: #c8a45a;
  transform: translateY(-2px);
}

/* ========== FEATURES STRIP ========== */
.feature-item {
  position: relative;
}

.feature-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c8a45a, transparent);
  transition: width 0.4s ease;
}

.feature-item:hover::after {
  width: 60%;
}

/* ========== MENU CARDS ========== */
.menu-card {
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c8a45a, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

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

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(200, 164, 90, 0.05);
}

.menu-card-img {
  position: relative;
  overflow: hidden;
}

.menu-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(3, 18, 13, 0.6), transparent);
}

.menu-card-img-inner {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== GALLERY ========== */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 13, 0);
  transition: background 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  background: rgba(3, 18, 13, 0.2);
}

.gallery-img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== VISIT SECTION ========== */
.visit-bg {
  will-change: transform;
}

/* ========== CONTACT FORM ========== */
.input-field {
  background: rgba(250, 248, 240, 0.04);
  border: 1px solid rgba(250, 248, 240, 0.1);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: #faf8f0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}

.input-field::placeholder {
  color: rgba(250, 248, 240, 0.25);
}

.input-field:focus {
  border-color: rgba(200, 164, 90, 0.5);
  background: rgba(250, 248, 240, 0.06);
  box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.1);
}

.input-field:hover:not(:focus) {
  border-color: rgba(250, 248, 240, 0.2);
}

textarea.input-field {
  resize: none;
  line-height: 1.6;
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reduced motion: keep everything visible */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
  .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:not(.visible) {
  transform: translateY(10px);
}

/* ========== SECTION SPACING ========== */
.section {
  position: relative;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .hero-headline {
    font-size: 3rem;
  }

  .hero-headline br {
    display: none;
  }

  .hero-headline::after {
    content: 'Life';
  }

  /* Better mobile headline handling */
  .hero-headline {
    font-size: 2.75rem;
    line-height: 1.1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-headline {
    font-size: 4.5rem;
  }
}

/* ========== FOCUS VISIBLE ========== */
*:focus-visible {
  outline: 2px solid #c8a45a;
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #c8a45a;
  outline-offset: 2px;
}

/* ========== SMOOTH SCROLL OFFSET FOR FIXED NAV ========== */
section[id] {
  scroll-margin-top: 80px;
}

/* ========== LOADING STATE ========== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #03120d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-leaf {
  width: 48px;
  height: 48px;
  animation: loaderSpin 1.2s ease-in-out infinite;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg) scale(1); opacity: 0.8; }
  50% { transform: rotate(180deg) scale(1.1); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.8; }
}
