@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   CSS CUSTOM PROPERTIES (LIGHT & DARK THEMES)
   ========================================================================== */
:root {
  --primary-pink: #FFC0CB;
  --primary-pink-dark: #f096a6;
  --primary-pink-light: #fff0f3;
  --bg-color: #FFFAFA;
  --card-bg: #FFFFFF;
  --surface-subtle: #fcf6f7;
  --text-dark: #000000;
  --text-muted: #5a5a5a;
  --border-subtle: #eed5d9;
  --navbar-bg: rgba(255, 250, 250, 0.96);
  --footer-bg: #FFFFFF;
  --input-bg: #FFFFFF;
}

[data-theme="dark"] {
  --primary-pink: #FFC0CB;
  --primary-pink-dark: #f096a6;
  --primary-pink-light: #2c1a20;
  --bg-color: #121214;
  --card-bg: #1a1a1e;
  --surface-subtle: #222228;
  --text-dark: #f5f5f7;
  --text-muted: #a1a1aa;
  --border-subtle: #34343d;
  --navbar-bg: rgba(18, 18, 20, 0.96);
  --footer-bg: #161619;
  --input-bg: #222228;
}

/* ==========================================================================
   GLOBAL RESETS & TYPOGRAPHY
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
}

.font-sans {
  font-family: 'Montserrat', sans-serif;
}

.card, .bg-white {
  background-color: var(--card-bg) !important;
  color: var(--text-dark) !important;
}

.text-dark {
  color: var(--text-dark) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.border, .border-top, .border-bottom, .border-end {
  border-color: var(--border-subtle) !important;
}

footer.bg-white {
  background-color: var(--footer-bg) !important;
}

.form-control, .form-select {
  background-color: var(--input-bg);
  border-color: var(--border-subtle);
  color: var(--text-dark);
}

.form-control:focus, .form-select:focus {
  background-color: var(--input-bg);
  border-color: var(--primary-pink-dark);
  color: var(--text-dark);
  box-shadow: 0 0 0 0.25rem rgba(255, 192, 203, 0.25);
}

/* ==========================================================================
   NAVBAR & LOGO
   ========================================================================== */
.navbar-custom {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  z-index: 1050;
}

.navbar-logo-img {
  /* Remove height restrictions entirely so the 3000px height can bleed out */
  height: auto !important;
  max-height: none !important;
  
  /* Force the layout based on horizontal scale instead */
  width: 180px !important; 
  max-width: 220px !important;
  
  /* Pull the image up and down to mask the massive invisible top/bottom margins */
  margin-top: -45px !important;
  margin-bottom: -45px !important;
  
  object-fit: contain;
  display: block;
}

/* Ensure the navbar wrapper doesn't clip your negative margin adjustments */
.navbar-brand-wrapper {
  display: flex !important;
  align-items: center;
  overflow: visible !important; 
}



.brand-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dark) !important;
  white-space: nowrap;
  line-height: 1.2;
  margin: 0;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-pink-dark) !important;
}

.nav-link.active {
  color: var(--text-dark) !important;
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--primary-pink);
  border-radius: 2px;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-dark);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  background: var(--surface-subtle);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-pink {
  background-color: var(--primary-pink) !important;
  color: #000000 !important;
  border: 1px solid var(--primary-pink) !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  transition: all 0.25s ease-in-out;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  pointer-events: auto !important;
}

.btn-pink:hover {
  background-color: var(--primary-pink-dark) !important;
  border-color: var(--primary-pink-dark) !important;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 192, 203, 0.45);
}

.btn-outline-theme {
  border: 1.5px solid var(--text-dark);
  color: var(--text-dark) !important;
  background: transparent;
  border-radius: 30px;
  font-weight: 600;
  padding: 8px 20px;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.btn-outline-theme:hover {
  background: var(--text-dark);
  color: var(--bg-color) !important;
}

/* ==========================================================================
   CLICKABLE & CRISP HERO CAROUSEL
   ========================================================================== */
.hero-media-container {
  position: relative;
  height: 72vh;
  min-height: 480px;
  max-height: 640px;
  width: 100%;
  overflow: hidden;
  background-color: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Inactive slides will not block clicks */
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Active slide is fully clickable */
  z-index: 5;
}

.hero-slide video, 
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
  pointer-events: none;
}

.hero-slide.active video,
.hero-slide.active img {
  transform: scale(1.06);
}

/* Overlay gradient set to ignore pointer events so clicks pass directly through */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.70) 100%);
  z-index: 2;
  pointer-events: none !important;
}

/* Content Container */
.hero-content {
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}

.hero-content a, 
.hero-content button {
  pointer-events: auto !important;
  cursor: pointer;
}

.hero-badge {
  background-color: var(--primary-pink);
  color: #000000 !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #FFFFFF !important;
  max-width: 620px;
  margin: 0 auto 20px auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 8px;
  pointer-events: auto !important;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--primary-pink);
}

/* ==========================================================================
   FLOATING ACTION BUTTON
   ========================================================================== */
.fab-book {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  background-color: var(--primary-pink) !important;
  color: #000000 !important;
  border-radius: 50px !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
  z-index: 9999 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.88rem !important;
  transition: transform 0.25s ease, background-color 0.25s ease !important;
}

.fab-book:hover {
  background-color: var(--primary-pink-dark) !important;
  color: #000000 !important;
  transform: scale(1.06) !important;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MOBILE VIEWPORT TUNING
   ========================================================================== */
@media (max-width: 991px) {
  .hero-media-container {
    height: 60vh;
    min-height: 420px;
  }
  .hero-title {
    font-size: 1.65rem;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 4px 12px;
  }
  .brand-logo-text {
    font-size: 1rem;
  }
  .nav-link.active::after {
    display: none;
  }
  .fab-book {
    bottom: 18px !important;
    right: 18px !important;
    padding: 10px 18px !important;
    font-size: 0.82rem !important;
  }
}