/* ============================================
   Moonwalk Manor — Modern CSS
   ============================================ */

:root {
  --color-primary: #002254;
  --color-accent: #B51C35;
  --color-accent-hover: #9a1630;
  --color-cream: #FFFCED;
  --color-dark: #0a0a0a;
  --color-gray-50: #f8f9fa;
  --color-gray-100: #f1f3f5;
  --color-gray-200: #e9ecef;
  --color-gray-400: #ced4da;
  --color-gray-600: #868e96;
  --color-gray-800: #343a40;
  --color-white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --transition: 0.3s ease;
  --container: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--color-gray-800); background: var(--color-white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
address { font-style: normal; }

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  padding: 0.75em 1.5em; background: var(--color-primary); color: white;
  border-radius: var(--radius); z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 1em; }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: #003480; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--color-accent); color: white; }
.btn-accent:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border: 2px solid white; color: white; background: transparent; }
.btn-outline:hover { background: white; color: var(--color-primary); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn-link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  color: var(--color-accent); font-weight: 600; font-size: 0.95rem;
  transition: gap var(--transition);
}
.btn-link:hover { gap: 0.5rem; }

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(0, 34, 84, 0.95); backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.navbar.scrolled { background: var(--color-primary); box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-family: var(--font-display); font-size: 1.4rem; color: white; font-weight: 700; }
.logo-text span { font-weight: 400; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 1rem; color: rgba(255,255,255,.8); font-size: 0.95rem;
  font-weight: 500; border-radius: 8px; transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: white; background: rgba(255,255,255,.1); }
.nav-cta { display: none; }

/* Hamburger */
.hamburger { display: none; width: 28px; height: 20px; position: relative; z-index: 1001; }
.hamburger span {
  display: block; width: 100%; height: 2px; background: white;
  position: absolute; left: 0; transition: all var(--transition); border-radius: 2px;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--color-primary); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-nav { text-align: center; }
.mobile-link {
  display: block; padding: 1rem; color: white; font-size: 1.5rem;
  font-family: var(--font-display); font-weight: 700; transition: opacity var(--transition);
}
.mobile-link:hover { opacity: 0.7; }
.mobile-cta { margin-top: 2rem; font-size: 1rem; }

@media (min-width: 900px) {
  .hamburger { display: none !important; }
  .mobile-menu { display: none !important; }
  .nav-cta { display: inline-flex; }
}
@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,34,84,.6) 0%, rgba(0,0,0,.5) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 2rem 1.5rem; max-width: 800px;
}
.hero-badge {
  display: inline-block; padding: 0.5rem 1.5rem;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 50px;
  color: rgba(255,255,255,.9); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem);
  color: white; font-weight: 900; line-height: 1.05; margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem); color: rgba(255,255,255,.85);
  max-width: 550px; margin: 0 auto 2.5rem; line-height: 1.6;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-dots {
  display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.3); border: none; cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active { background: white; transform: scale(1.3); }

/* ============================================
   Sections
   ============================================ */
.section { padding: 6rem 0; }
.section-alt { background: var(--color-gray-50); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  color: var(--color-accent); text-transform: uppercase;
  letter-spacing: 0.15em; margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; color: var(--color-primary); line-height: 1.15;
}
.section-subtitle {
  max-width: 700px; margin: 1.5rem auto 0; font-size: 1.1rem;
  color: var(--color-gray-600); line-height: 1.8;
}

/* About */
.about-text { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.about-text p { font-size: 1.1rem; color: var(--color-gray-600); line-height: 1.8; }
@media (min-width: 768px) { .about-text { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Reason cards */
.reasons-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .reasons-grid { grid-template-columns: repeat(3, 1fr); } }
.reason-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.reason-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.reason-img { overflow: hidden; aspect-ratio: 16/10; }
.reason-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.reason-card:hover .reason-img img { transform: scale(1.05); }
.reason-content { padding: 1.75rem; }
.reason-content h3 {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--color-primary); margin-bottom: 0.75rem;
}
.reason-content p { color: var(--color-gray-600); margin-bottom: 1.25rem; font-size: 0.95rem; }

/* Feature cards */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-img { overflow: hidden; aspect-ratio: 16/9; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.feature-card:hover .feature-img img { transform: scale(1.05); }
.feature-content { padding: 2rem; }
.feature-content h3 {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--color-primary); margin-bottom: 0.75rem;
}
.feature-content p { color: var(--color-gray-600); margin-bottom: 1.5rem; }

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  position: relative; padding: 6rem 0;
  background: var(--color-primary); overflow: hidden;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: url('images/square_bg.svg') repeat;
  opacity: 0.1;
}
.cta-inner { position: relative; text-align: center; }
.cta-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem);
  color: white; font-weight: 900; margin-bottom: 1rem;
}
.cta-text { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 2.5rem; }
.booking-form { max-width: 800px; margin: 0 auto; }
.form-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-input {
  flex: 1; min-width: 200px; padding: 0.9rem 1.25rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); color: white; font-size: 1rem;
  transition: all var(--transition);
}
.form-input::placeholder { color: rgba(255,255,255,.5); }
.form-input option { color: var(--color-dark); }
.form-input:focus { outline: none; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.15); }
.form-row .btn { flex: 0 0 auto; }

/* ============================================
   Stories carousel
   ============================================ */
.stories-carousel { position: relative; overflow: hidden; }
.story-card {
  display: none; border-radius: var(--radius-lg); overflow: hidden;
  background: white; box-shadow: var(--shadow);
}
.story-card.active { display: grid; }
@media (min-width: 768px) { .story-card.active { grid-template-columns: 3fr 2fr; } }
.story-img { overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.story-content { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.story-content h3 {
  font-family: var(--font-display); font-size: 1.8rem;
  color: var(--color-primary); margin-bottom: 0.25rem;
}
.story-author {
  font-size: 0.9rem; color: var(--color-gray-600); margin-bottom: 1.25rem;
  font-weight: 500;
}
.story-content blockquote {
  font-size: 1.1rem; color: var(--color-gray-600); font-style: italic;
  line-height: 1.8; border-left: 3px solid var(--color-accent); padding-left: 1.25rem;
}
.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-top: 2rem;
}
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-primary); color: white;
  font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.carousel-btn:hover { background: var(--color-accent); transform: scale(1.1); }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-gray-300, #ccc); border: none; cursor: pointer;
  transition: all var(--transition);
}
.carousel-dot.active { background: var(--color-accent); transform: scale(1.3); }

/* ============================================
   Footer
   ============================================ */
.footer { background: var(--color-dark); color: rgba(255,255,255,.7); padding: 5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 1rem; line-height: 1.7; font-size: 0.95rem; }
.footer-brand .logo { margin-bottom: 0.5rem; }
.footer-col h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col a {
  display: block; padding: 0.35rem 0; color: rgba(255,255,255,.6);
  transition: all var(--transition); font-size: 0.95rem;
}
.footer-col a:hover { color: white; padding-left: 0.5rem; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex;
  align-items: center; justify-content: center;
  transition: all var(--transition); padding: 0;
}
.social-links a:hover { background: var(--color-accent); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 4rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; font-size: 0.85rem;
}

/* ============================================
   Scroll to top
   ============================================ */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 100;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all var(--transition); box-shadow: var(--shadow);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--color-accent); transform: translateY(-4px); }
.scroll-top svg { width: 20px; height: 20px; }

/* ============================================
   Animations
   ============================================ */
.animate-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}

/* Stagger children */
.reasons-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.reasons-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.features-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.features-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
