*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
}

/* Hero Background */
.hero-bg {
  will-change: transform;
}

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

/* Hero Scrim */
.hero-scrim {
  background: linear-gradient(
    180deg,
    rgba(28, 31, 38, 0.55) 0%,
    rgba(28, 31, 38, 0.70) 50%,
    rgba(28, 31, 38, 0.92) 100%
  );
}

/* Hero Grain Overlay */
.hero-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* Section Labels */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #F97583;
}

/* Section Titles */
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

/* Navbar */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(28, 31, 38, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hero Animations */
.hero-badge {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-badge span:first-child {
  animation: pulse 2s ease-in-out infinite;
}

.hero-badge .animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.hero-badge span {
  display: inline-block;
}

.hero-badge .anim-dot {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.5s;
}

.hero-badge .anim-text {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.6s;
}

.hero-badge .anim-sep {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.55s;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero Content */
.hero-content h1,
.hero-content p,
.hero-content .flex {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero-content h1 { animation-delay: 0.5s; }
.hero-content p { animation-delay: 0.7s; }
.hero-content .flex { animation-delay: 0.9s; }

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state: visible for accessibility / no-JS */
.reveal[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed[data-reveal] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Menu Cards */
.menu-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.menu-card:hover {
  border-color: rgba(249, 117, 131, 0.2);
  transform: translateY(-2px);
}

/* Mobile Menu */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

#mobile-menu.closed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Hamburger Animation */
.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
  margin-right: 0;
}

/* Smooth Scroll Offset */
section[id] {
  scroll-margin-top: 80px;
}

/* Selection */
::selection {
  background: rgba(249, 117, 131, 0.3);
  color: #ffffff;
}

/* Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #F97583;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image Placeholder Fallback */
img {
  background: linear-gradient(135deg, #2a2d34 0%, #3a3d45 100%);
}
