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

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

body {
  overflow-x: hidden;
}

::selection {
  background: #F7CABB;
  color: #2D1F16;
}

/* ===== NAVIGATION ===== */
#nav {
  background: rgba(254, 252, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(193, 105, 79, 0.08);
  transition: box-shadow 0.3s ease;
}

#nav.scrolled {
  box-shadow: 0 4px 30px rgba(45, 31, 22, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* Hamburger */
.hamburger-line {
  display: block;
}

#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 5px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: #C1694F;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #C1694F;
  display: inline-block;
}

.btn-primary:hover {
  background: #A8543F;
  border-color: #A8543F;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(193, 105, 79, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #2D1F16;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(45, 31, 22, 0.2);
  display: inline-block;
}

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

.btn-terra {
  background: #C1694F;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #C1694F;
  display: inline-block;
}

.btn-terra:hover {
  background: #A8543F;
  border-color: #A8543F;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(193, 105, 79, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
}

.btn-outline-light:hover {
  border-color: #F3A893;
  color: #F3A893;
  transform: translateY(-2px);
}

/* ===== REVEAL TAG ===== */
.reveal-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C1694F;
  background: #FBE4DA;
  padding: 0.4rem 1rem;
  border-radius: 100px;
}

/* ===== STAT CARDS ===== */
.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(193, 105, 79, 0.12);
  border-radius: 16px;
  padding: 14px 18px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(193, 105, 79, 0.12);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FBE4DA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #C1694F;
}

.stat-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: #2D1F16;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: #2D1F16/60;
  margin-top: 2px;
  font-weight: 500;
}

/* ===== HERO IMAGE ===== */
.hero-img-card {
  box-shadow: 0 25px 60px rgba(45, 31, 22, 0.15);
  transition: transform 0.5s ease;
}

.hero-img-card:hover {
  transform: scale(1.01);
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

.floating-card-delayed {
  animation: float 4s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ===== MENU ===== */
.menu-tab {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

.menu-tab.active {
  background: #C1694F;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(193, 105, 79, 0.3);
}

.menu-tab:not(.active):hover {
  color: #C1694F !important;
  background: #FDF2EE;
}

.menu-panel {
  animation: fadeIn 0.4s ease;
}

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

.menu-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(193, 105, 79, 0.08);
  transition: all 0.4s ease;
  box-shadow: 0 2px 10px rgba(45, 31, 22, 0.04);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(193, 105, 79, 0.12);
}

.menu-card-img {
  height: 200px;
}

.menu-card-img img {
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.06);
}

.menu-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* ===== INFO CARDS ===== */
.info-card {
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 25px rgba(193, 105, 79, 0.08);
}

/* ===== FORM ===== */
.input-field {
  background: #fff;
  border: 1.5px solid rgba(193, 105, 79, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: #2D1F16;
  transition: all 0.3s ease;
  width: 100%;
  outline: none;
}

.input-field::placeholder {
  color: #2D1F16/30;
}

.input-field:focus {
  border-color: #C1694F;
  box-shadow: 0 0 0 3px rgba(193, 105, 79, 0.1);
}

.input-field:hover:not(:focus) {
  border-color: rgba(193, 105, 79, 0.4);
}

/* ===== SCROLL REVEAL ===== */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

.reveal-tag {
  display: inline-block;
  transform: translateY(0);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-tag,
  .reveal-feature {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .floating-card,
  .floating-card-delayed {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #C1694F;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .stat-card {
    flex: 1 1 100%;
  }

  .floating-card,
  .floating-card-delayed {
    display: none;
  }

  .menu-card-img {
    height: 180px;
  }

  #hero h1 {
    font-size: 2.75rem;
  }

  #about h2,
  #menu h2,
  #story h2,
  #visit h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2.25rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-terra,
  .btn-outline-light {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
