/* ═══════════════════════════════════════════
   Meadows At 5300 — Custom Styles
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::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;
}

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

/* ── Navigation ── */
.nav {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

.nav.scrolled {
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(196, 112, 75, 0.08);
}

.nav.scrolled .nav-link,
.nav.scrolled a {
  color: #3a2a20;
}

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:first-child {
  transform: translateY(5px) rotate(45deg);
}

#menu-toggle.active .menu-line:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-link {
  font-size: 1.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}

/* ── Hero ── */
.hero-gradient {
  background: linear-gradient(
    135deg,
    #2a1e18 0%,
    #3a2a20 20%,
    #5a3a28 40%,
    #C4704B 70%,
    #e2b870 100%
  );
}

.hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-headline {
  animation: heroFadeUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-eyebrow {
  animation: heroFadeUp 1s ease 0.2s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-sub {
  animation: heroFadeUp 1s ease 0.4s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-ctas {
  animation: heroFadeUp 1s ease 0.6s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-scroll {
  animation: heroFadeUp 1s ease 1s forwards;
  opacity: 0;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-circle {
  animation: float 8s ease-in-out infinite;
}

.hero-circle-2 {
  animation-delay: -3s;
  animation-duration: 10s;
}

.hero-circle-3 {
  animation-delay: -5s;
  animation-duration: 12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: white;
  color: #3a2a20;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  border: 1px solid white;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
  background: transparent;
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover {
  background: white;
  color: #3a2a20;
  border-color: white;
}

/* ── Section Labels ── */
.section-label {
  display: block;
}

/* ── Dividers ── */
.divider-container {
  max-width: 6rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.divider-line {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #C4704B 20%,
    #C4704B 80%,
    transparent
  );
}

/* ── Sections ── */
.section {
  position: relative;
}

/* ── Menu Cards ── */
.menu-card {
  padding: 2rem;
  border: 1px solid rgba(196, 112, 75, 0.1);
  border-radius: 2px;
  transition: all 0.4s ease;
}

.menu-card:hover {
  border-color: rgba(196, 112, 75, 0.25);
  box-shadow: 0 20px 60px rgba(58, 42, 32, 0.06);
  transform: translateY(-4px);
}

.menu-card li {
  transition: all 0.3s ease;
}

.menu-card li:hover {
  padding-left: 0.5rem;
}

.menu-card li:hover .font-medium {
  color: #C4704B;
}

/* ── Gallery ── */
.gallery-item {
  overflow: hidden;
  border-radius: 2px;
}

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

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

/* ── Footer ── */
.footer {
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 1px;
  background: linear-gradient(to right, transparent, #C4704B, transparent);
}

/* ── Scroll Reveal (progressive enhancement) ── */
.reveal-text,
.reveal-card,
.reveal-image {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* When JS is enabled, these start hidden and animate in */
.js-enabled .reveal-text,
.js-enabled .reveal-card,
.js-enabled .reveal-image {
  opacity: 0;
  transform: translateY(40px);
}

.js-enabled .reveal-text.revealed,
.js-enabled .reveal-card.revealed,
.js-enabled .reveal-image.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for cards */
.js-enabled .reveal-card:nth-child(1) { transition-delay: 0.1s; }
.js-enabled .reveal-card:nth-child(2) { transition-delay: 0.25s; }

/* ── 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;
  }

  .js-enabled .reveal-text,
  .js-enabled .reveal-card,
  .js-enabled .reveal-image {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .hero-headline {
    font-size: 2.5rem !important;
  }

  .hero-headline span:last-child {
    font-size: 1.25rem !important;
  }

  .section-label {
    font-size: 0.7rem !important;
  }

  .stats-row {
    gap: 8px !important;
  }

  .stats-row > div {
    flex: 1;
  }
}

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

@media (min-width: 1024px) {
  .nav-link {
    color: rgba(255, 255, 255, 0.85);
  }
}
