/* ==========================================================================
   Timeless Modernism - Hyper-Premium Wedding Venue (Bootstrap Enhanced)
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
  /* Color Palette */
  --warm-cream: #FAF9F6;
  --deep-charcoal: #1A1A1A;
  --muted-gold: #D4AF37;
  --warm-cream-rgb: 250, 249, 246;
  --deep-charcoal-rgb: 26, 26, 26;
  --muted-gold-rgb: 212, 175, 55;

  /* Typography */
  --serif-font: 'Playfair Display', Georgia, serif;
  --sans-serif-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Animation */
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-luxury: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans-serif-font);
  font-weight: 300;
  line-height: 1.6;
  color: var(--deep-charcoal);
  background-color: var(--warm-cream);
  overflow-x: hidden;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .display-2, .display-4, .display-5, .h1 {
  font-family: var(--serif-font);
}

.lead, .section-body, .content-body {
  font-family: var(--sans-serif-font);
}

/* ==========================================================================
   Tablet & Below — Hamburger Menu (≤991px)
   ========================================================================== */

@media (max-width: 991.98px) {
  .mobile-menu-toggle {
    border: none !important;
    background: transparent !important;
    transition: color 0.3s ease;
  }

  .nav-container:not(.scrolled) .mobile-menu-toggle {
    color: #ffffff !important;
  }

  .nav-container.scrolled .mobile-menu-toggle {
    color: var(--deep-charcoal) !important;
  }

  .nav-container.scrolled .mobile-menu-toggle:hover {
    color: var(--muted-gold) !important;
  }

  .nav-link-mobile {
    color: var(--deep-charcoal);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .nav-link-mobile:hover {
    color: var(--muted-gold);
  }
}

/* ==========================================================================
   Navigation - Ultra-minimal Glassmorphism
   ========================================================================== */
.nav-container {
  transition: all 0.6s var(--transition-luxury);
  pointer-events: all;
  z-index: 1030 !important;
}

.nav-content {
  background: transparent;
  border-bottom: 1px solid transparent;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s var(--transition-luxury);
  border-radius: 0 0 16px 16px;
}

/* White text for transparent navbar */
.nav-container:not(.scrolled) .brand-text,
.nav-container:not(.scrolled) .nav-link {
  color: #ffffff !important;
}
.nav-container:not(.scrolled) .nav-cta {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.nav-container.scrolled .nav-content {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(var(--warm-cream-rgb), 0.85);
  border-bottom: 1px solid rgba(var(--muted-gold-rgb), 0.2);
}

/* Dark text for scrolled navbar */
.nav-container.scrolled .brand-text,
.nav-container.scrolled .nav-link {
  color: var(--deep-charcoal) !important;
}
.nav-container.scrolled .nav-cta {
  color: var(--deep-charcoal) !important;
  border-color: var(--muted-gold) !important;
}

.brand-text {
  font-family: var(--serif-font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--muted-gold);
  transition: width 0.3s var(--transition-smooth);
}

.nav-container:not(.scrolled) .nav-link::after {
  background-color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta, .primary-cta, .inquire-button {
  font-family: var(--sans-serif-font);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.4s var(--transition-luxury);
}

.nav-cta {
  font-size: 0.875rem;
  background: transparent;
  border: 1px solid var(--muted-gold);
  color: var(--deep-charcoal);
}

.nav-cta:hover {
  background-color: var(--muted-gold);
  color: var(--warm-cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--muted-gold-rgb), 0.2);
}

.primary-cta, .inquire-button {
  background-color: var(--deep-charcoal);
  color: var(--warm-cream);
  border: none;
}

.primary-cta:hover, .inquire-button:hover {
  background-color: var(--muted-gold);
  color: var(--warm-cream);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--muted-gold-rgb), 0.3);
}

.secondary-link {
  font-family: var(--sans-serif-font);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--deep-charcoal);
  letter-spacing: 0.05em;
  position: relative;
  transition: all 0.3s var(--transition-smooth);
}

.secondary-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--muted-gold);
  transition: width 0.3s var(--transition-smooth);
}

.secondary-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   Scrollytelling Container & Canvas
   ========================================================================== */
.scrollytelling-container {
  height: 600vh; /* 6 times viewport height for smooth scrolling */
}

.canvas-container {
  height: 100vh;
  z-index: 1;
}

#hero-canvas {
  will-change: transform;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

#image-fallback {
  z-index: 0;
  background: linear-gradient(135deg, #FAF9F6 0%, #F5E6D3 50%, #E8D5C4 100%);
}

/* ==========================================================================
   Text Overlays
   ========================================================================== */
.text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.2s var(--transition-luxury);
  pointer-events: none;
  z-index: 10;
}

.hero-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.text-overlay.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.text-content {
  background: rgba(var(--warm-cream-rgb), 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--muted-gold-rgb), 0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.hero-title {
  letter-spacing: -0.03em;
}

.section-title, .content-title {
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Scroll Progress (Hidden)
   ========================================================================== */
.scroll-progress {
  width: 1px;
  height: 600vh;
  pointer-events: none;
  visibility: hidden;
}

.progress-section {
  height: 100vh;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.content-section {
  position: relative;
  z-index: 2;
  background-color: var(--warm-cream);
}

.content-section.bg-light {
  background-color: #F8F7F4 !important;
}

/* Hardware Acceleration */
.nav-content, .text-overlay {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ==========================================================================
   Phone View — Comprehensive Mobile Styles (≤767px)
   ========================================================================== */

@media (max-width: 767.98px) {

  /* ── Offcanvas Mobile Menu ── */
  .offcanvas {
    max-width: 85vw;
  }

  .offcanvas-title {
    font-family: var(--serif-font);
    font-size: 1.4rem;
  }

  .nav-link-mobile {
    font-size: 1.05rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* ── Scrollytelling Canvas ── */
  .scrollytelling-container {
    height: 500vh;
  }

  .canvas-container {
    height: 100svh;
  }

  /* ── Text Overlays ── */
  .text-overlay {
    padding-top: 0;
    align-items: flex-end !important;
    padding-bottom: 2.5rem;
  }

  .hero-overlay {
    align-items: center !important;
    padding-bottom: 0;
    padding-top: 0;
  }

  .text-content {
    margin: 0.75rem !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.6rem !important;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1rem) !important;
  }

  .section-title.h1 {
    font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
    margin-bottom: 0.65rem !important;
  }

  .section-body {
    font-size: 0.875rem !important;
    line-height: 1.65 !important;
  }

  .promise-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    margin-bottom: 1rem !important;
  }

  /* Left/right overlays — push to bottom-centre on phone */
  .left-overlay,
  .right-overlay {
    justify-content: center !important;
    align-items: flex-end !important;
    padding-bottom: 2.5rem;
  }

  .left-overlay .col-12,
  .right-overlay .col-12 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* CTA row in the promise overlay */
  .cta-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }

  .primary-cta {
    width: 100%;
    font-size: 0.85rem !important;
    padding: 0.8rem 1rem !important;
  }

  /* ── Venue Card Sections (image background panels only) ── */
  #banquet-hall,
  #luxury-hall,
  #premium-farm-house,
  #premium-glass-house,
  #premium-huts,
  #premium-pool,
  #premium-resort,
  #premium-rooms {
    min-height: 260px !important;
    height: 58vw !important;
    max-height: 400px !important;
  }

  #banquet-hall .display-4,
  #luxury-hall .display-4,
  #premium-farm-house .display-4,
  #premium-glass-house .display-4,
  #premium-huts .display-4,
  #premium-pool .display-4,
  #premium-resort .display-4,
  #premium-rooms .display-4 {
    font-size: clamp(1.4rem, 6vw, 1.9rem) !important;
    margin-bottom: 0.3rem !important;
  }

  #banquet-hall .lead,
  #luxury-hall .lead,
  #premium-farm-house .lead,
  #premium-glass-house .lead,
  #premium-huts .lead,
  #premium-pool .lead,
  #premium-resort .lead,
  #premium-rooms .lead {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #banquet-hall .btn-outline-light,
  #luxury-hall .btn-outline-light,
  #premium-farm-house .btn-outline-light,
  #premium-glass-house .btn-outline-light,
  #premium-huts .btn-outline-light,
  #premium-pool .btn-outline-light,
  #premium-resort .btn-outline-light,
  #premium-rooms .btn-outline-light {
    font-size: 0.78rem !important;
    padding: 0.3rem 1rem !important;
    margin-top: 0.4rem !important;
  }

  #banquet-hall .py-5,
  #luxury-hall .py-5,
  #premium-farm-house .py-5,
  #premium-glass-house .py-5,
  #premium-huts .py-5,
  #premium-pool .py-5,
  #premium-resort .py-5,
  #premium-rooms .py-5 {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  /* ── Features (The Estate) Section ── */
  #features {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  #features .border-end {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
  }

  #features .col-md-4:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
  }

  #features .content-title {
    font-size: 1.1rem !important;
  }

  #features .content-body {
    font-size: 0.875rem !important;
  }

  /* ── Feed Section ── */
  #feed {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  #feed .display-5 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  #feed .lead {
    font-size: 0.9rem !important;
  }

  #feed img {
    height: 240px !important;
    border-radius: 10px !important;
  }

  /* ── Contact Section ── */
  #contact {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  #contact .display-5 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  #contact .lead {
    font-size: 0.9rem !important;
  }

  #contact .contact-info {
    margin-top: 1.5rem !important;
  }

  #contact .contact-info h5 {
    font-size: 0.95rem !important;
  }

  #contact .contact-info p {
    font-size: 0.85rem !important;
  }

  #contact .bg-white {
    padding: 1.5rem !important;
    border-radius: 12px !important;
  }

  #contact .form-control-lg {
    font-size: 0.95rem !important;
    padding: 0.65rem 1rem !important;
  }

  /* Stack first/last-name fields vertically */
  #contact-form .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* ── Inquire / Begin Your Journey Section ── */
  /* Different background so it separates from #contact visually */
  #inquire {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    background-color: var(--deep-charcoal) !important;
  }

  #inquire .content-title,
  #inquire .display-5 {
    color: var(--warm-cream) !important;
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }

  #inquire .lead {
    font-size: 0.9rem !important;
    color: rgba(250, 249, 246, 0.75) !important;
  }

  #inquire .inquire-button {
    width: 100% !important;
    font-size: 0.875rem !important;
    background-color: var(--muted-gold) !important;
    color: var(--deep-charcoal) !important;
  }

  /* ── General Utility ── */
  .border-end {
    border-right: none !important;
  }

  .container {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }
}
