/* ======================================================
   BRAINY SERIES — SHARED STYLESHEET
   Dark/Light Mode, Navbar, Footer, Animations, Modals
   ====================================================== */

/* ===== THEME VARIABLES ===== */
:root {
  --gold: #C8730A;
  --gold-light: #E8921A;
  --gold-glow: rgba(200,115,10,0.25);

  /* Dark Mode (default) */
  --bg: #0D0D0D;
  --bg2: #080808;
  --bg3: #1A1A1A;
  --card: #141414;
  --text: #F5F0E8;
  --text-muted: #999;
  --text-light: #ccc;
  --border: rgba(255,255,255,0.07);
  --nav-bg: rgba(10,10,10,0.97);
  --scrollbar-bg: #080808;
  --input-bg: rgba(255,255,255,0.05);
  --input-border: rgba(255,255,255,0.1);
  --footer-bg: #080808;
}

[data-theme="light"] {
  --bg: #F8F5EF;
  --bg2: #FFFFFF;
  --bg3: #EDE8DF;
  --card: #FFFFFF;
  --text: #1A1100;
  --text-muted: #666;
  --text-light: #444;
  --border: rgba(0,0,0,0.08);
  --nav-bg: rgba(255,252,245,0.97);
  --scrollbar-bg: #EDE8DF;
  --input-bg: rgba(0,0,0,0.04);
  --input-border: rgba(0,0,0,0.12);
  --footer-bg: #1A1A1A;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 90px; right: 28px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  animation: waPulse 2s ease-in-out infinite;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.12); }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 36px rgba(37,211,102,0.85); }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 18px var(--gold-glow);
  transition: background 0.3s, transform 0.3s;
}
.theme-toggle:hover { background: var(--gold-light); transform: rotate(20deg); }

/* ===== NAVBAR ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
}
.header.scrolled {
  background: var(--nav-bg);
  box-shadow: 0 2px 30px var(--gold-glow);
  backdrop-filter: blur(14px);
}
.navbar { padding: 16px 0; }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold);
}
.nav-logo-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.nav-logo-text .brand { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 700; color: var(--gold); letter-spacing: 2px; }
.nav-logo-text .sub { font-size: 9px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-list { list-style: none; display: flex; gap: 2px; }
.nav-link {
  font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 1.5px;
  color: var(--text-light); text-decoration: none;
  padding: 6px 11px; border-radius: 4px; transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.btn-order-nav {
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 2px;
  background: var(--gold); color: #fff; border: none; padding: 9px 20px;
  border-radius: 4px; cursor: pointer; transition: background 0.3s;
  text-decoration: none; white-space: nowrap;
}
.btn-order-nav:hover { background: var(--gold-light); }
/* inline theme toggle in nav */
.nav-theme-btn {
  background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; transition: all 0.3s;
  margin-left: 4px;
}
.nav-theme-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ===== MOBILE DRAWER ===== */
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; z-index: 1100;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: 0.35s;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer overlay */
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 1050;
  backdrop-filter: blur(4px);
}
.drawer-overlay.open { display: block; }

/* Drawer panel */
.mobile-drawer {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
  background: var(--bg3); z-index: 1060;
  transition: right 0.38s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; padding: 0;
  box-shadow: -6px 0 30px rgba(0,0,0,0.5);
}
.mobile-drawer.open { right: 0; }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--border);
}
.drawer-logo { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 700; color: var(--gold); letter-spacing: 2px; }
.drawer-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  color: var(--text); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.drawer-close:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.drawer-nav { list-style: none; padding: 20px 0; flex: 1; }
.drawer-nav li a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 22px; font-family: 'Oswald', sans-serif;
  font-size: 15px; letter-spacing: 2px; color: var(--text-light);
  text-decoration: none; transition: all 0.3s;
}
.drawer-nav li a:hover, .drawer-nav li a.active {
  color: var(--gold); background: rgba(200,115,10,0.08);
  padding-left: 28px;
}
.drawer-nav li a i { width: 18px; color: var(--gold); }
.drawer-footer-btn {
  margin: 0 22px 28px;
  display: block; text-align: center;
  background: var(--gold); color: #fff;
  font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 2px;
  padding: 13px; border-radius: 6px; text-decoration: none;
  transition: background 0.3s;
}
.drawer-footer-btn:hover { background: var(--gold-light); }

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative; height: 500px; overflow: hidden;
}
@media(max-width:600px) { .hero-slider { height: 420px; } }

.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }

/* Wipe color overlay — animates left→right→left */
.slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(200,115,10,0.7) 0%,
    rgba(8,8,8,0.82) 60%,
    rgba(8,8,8,0.92) 100%);
  z-index: 1;
}
/* Wipe shimmer */
.slide::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200,115,10,0.18), transparent);
  animation: wipeShimmer 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes wipeShimmer {
  0%   { left: -60%; }
  50%  { left: 110%; }
  100% { left: -60%; }
}

.slide-content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.slide-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 5vw, 56px);
  font-weight: 900; color: #fff;
  line-height: 1.1; max-width: 720px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.9s 0.3s ease, opacity 0.9s 0.3s ease;
}
.slide.active .slide-title { transform: translateY(0); opacity: 1; }
.slide-sub {
  font-size: clamp(12px, 2vw, 16px); color: rgba(255,255,255,0.8);
  margin-top: 12px; letter-spacing: 1px;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.9s 0.5s ease, opacity 0.9s 0.5s ease;
}
.slide.active .slide-sub { transform: translateY(0); opacity: 1; }
.slide-btn {
  margin-top: 28px;
  font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 2px;
  background: var(--gold); color: #fff; padding: 13px 32px;
  border-radius: 4px; text-decoration: none; border: none; cursor: pointer;
  transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.9s 0.7s ease, opacity 0.9s 0.7s ease, background 0.3s;
}
.slide.active .slide-btn { transform: translateY(0); opacity: 1; }
.slide-btn:hover { background: var(--gold-light); transform: translateY(-2px) !important; box-shadow: 0 6px 20px var(--gold-glow); }

/* Slider dots */
.slider-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all 0.3s; padding: 0;
}
.slider-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ===== SECTION COMMONS ===== */
section { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-tag {
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 3px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 10px; display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 44px); font-weight: 700; line-height: 1.15; margin-bottom: 14px;
}
.section-lead { color: var(--text-muted); font-size: 15px; line-height: 1.85; }
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 16px 0 22px;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.from-left  { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.from-bottom{ transform: translateY(40px); }
.reveal.zoom-in    { transform: scale(0.88); }
.reveal.visible    { opacity: 1; transform: none; }

/* ===== PARALLAX / STATIC BG SECTIONS ===== */
.bg-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}
.bg-parallax::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8,8,8,0.78);
  z-index: 0;
}
.bg-parallax > * { position: relative; z-index: 1; }

/* ===== BUTTONS ===== */
.btn-primary {
  font-family: 'Oswald', sans-serif; letter-spacing: 2px; font-size: 13px;
  background: var(--gold); color: #fff; padding: 12px 28px;
  border-radius: 4px; text-decoration: none; transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 22px var(--gold-glow); }
.btn-outline {
  font-family: 'Oswald', sans-serif; letter-spacing: 2px; font-size: 13px;
  border: 1.5px solid rgba(200,115,10,0.6); color: var(--gold); padding: 12px 28px;
  border-radius: 4px; text-decoration: none; transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px; background: transparent; cursor: pointer;
}
.btn-outline:hover { background: rgba(200,115,10,0.12); border-color: var(--gold); }

/* ===== PAGE HERO BANNER (inner pages) ===== */
.page-hero-banner {
  padding: 140px 0 80px; position: relative;
  background-size: cover; background-position: center;
  text-align: center; overflow: hidden;
}
.page-hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,115,10,0.55) 0%, rgba(8,8,8,0.88) 100%);
}
/* wipe shimmer on page heroes */
.page-hero-banner::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200,115,10,0.15), transparent);
  animation: wipeShimmer 5s ease-in-out infinite;
  z-index: 1;
}
.page-hero-banner > * { position: relative; z-index: 2; }
.page-hero-banner .breadcrumb { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.page-hero-banner .breadcrumb a { color: var(--gold); text-decoration: none; }
.page-hero-banner h1 { font-family: 'Playfair Display', serif; font-size: clamp(32px, 5vw, 58px); font-weight: 900; color: #fff; }
.page-hero-banner h1 span { color: var(--gold); }
.page-divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); margin: 18px auto; }
.page-hero-banner p.lead { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto; line-height: 1.8; font-size: 15px; }

/* ===== SWEET ALERT CUSTOM ===== */
.swal2-popup { background: var(--bg3) !important; color: var(--text) !important; border: 1px solid var(--gold-glow) !important; border-radius: 12px !important; }
.swal2-title { color: var(--text) !important; font-family: 'Playfair Display', serif !important; }
.swal2-html-container { color: var(--text-muted) !important; font-family: 'Nunito', sans-serif !important; }
.swal2-confirm { background: var(--gold) !important; font-family: 'Oswald', sans-serif !important; letter-spacing: 1.5px !important; }
.swal2-cancel { background: transparent !important; border: 1px solid var(--border) !important; color: var(--text-muted) !important; font-family: 'Oswald', sans-serif !important; letter-spacing: 1.5px !important; }

/* ===== ORDER MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 9998; display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg3); border: 1px solid rgba(200,115,10,0.3);
  border-radius: 12px; width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; padding: 36px 32px; position: relative;
  animation: modalIn 0.32s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.94) translateY(22px); } to { opacity: 1; transform: none; } }
.modal-close-btn {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  color: var(--text-muted); width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.modal-close-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.modal-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.modal-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px; font-weight: 700; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--input-bg); border: 1px solid var(--input-border);
  color: var(--text); padding: 11px 15px; border-radius: 6px;
  font-family: 'Nunito', sans-serif; font-size: 14px; transition: border-color 0.3s; outline: none;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }
.form-select option { background: var(--bg3); color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
  width: 100%; background: var(--gold); color: #fff; border: none;
  font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 2px;
  padding: 14px; border-radius: 6px; cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px;
}
.btn-submit:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ===== FOOTER ===== */
.footer { background: var(--footer-bg); }
.footer-top { padding: 60px 0 36px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.footer-logo-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.footer-brand { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 700; color: var(--gold); letter-spacing: 2px; }
.footer-about { font-size: 13px; color: #888; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: #888;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; text-decoration: none; transition: all 0.3s;
}
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-heading { font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 2px; color: #fff; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 13px; color: #888; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: 13px; color: #888; margin-bottom: 9px; display: flex; align-items: flex-start; gap: 9px; }
.footer-contact p i { color: var(--gold); margin-top: 2px; min-width: 13px; }
.footer-contact a { color: #888; text-decoration: none; transition: color 0.3s; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05); padding: 18px 0;
  text-align: center; font-size: 12px; color: #666;
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-right .nav-list,
  .nav-right .btn-order-nav { display: none; }
  .mobile-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}


/* ================================================
   FIXES: Static background images + Nav text color
   ================================================ */

/* 1. Fix for unstable background images (growing/shrinking) */
/* Remove any transform or scale animations from background containers */
.books-section,
.cta-section,
.coming-soon-section,
.bg-parallax {
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  /* Prevent any transform that could cause movement */
  transform: none !important;
  transition: none !important;
}

/* Specifically target any background image containers that might have scale animations */
[class*="section"][style*="background-image"],
[class*="hero"][style*="background-image"],
section[style*="background-image"] {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Remove any wipe animations that cause visual instability on background sections */
.books-section::before,
.cta-section::before,
.coming-soon-section::before {
  animation: none !important;
  left: 0 !important;
}

/* Ensure hero slider backgrounds are stable */
.hero-slider .slide {
  background-attachment: scroll !important;
  background-size: cover !important;
  background-position: center !important;
  transform: translate3d(0, 0, 0);
}

/* Disable any background movement on parallax elements */
@media (prefers-reduced-motion: reduce), (max-width: 768px) {
  .books-section,
  .cta-section,
  .coming-soon-section,
  .bg-parallax {
    background-attachment: scroll !important;
  }
}

/* 2. Navigation text color fix for ALL pages */
/* Header navigation - default state (before scroll, any theme) */
.nav-list .nav-link {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

/* Hover state - gold color */
.nav-list .nav-link:hover,
.nav-list .nav-link.active {
  color: var(--gold, #C8730A) !important;
}

/* After scroll - text becomes dark for better visibility */
.header.scrolled .nav-list .nav-link {
  color: var(--text-light, #444) !important;
}

.header.scrolled .nav-list .nav-link:hover,
.header.scrolled .nav-list .nav-link.active {
  color: var(--gold, #C8730A) !important;
}

/* Light mode specific - default white before scroll */
[data-theme="light"] .nav-list .nav-link {
  color: #ffffff !important;
}

/* Light mode after scroll - dark text */
[data-theme="light"] .header.scrolled .nav-list .nav-link {
  color: #444444 !important;
}

[data-theme="light"] .header.scrolled .nav-list .nav-link:hover,
[data-theme="light"] .header.scrolled .nav-list .nav-link.active {
  color: var(--gold, #C8730A) !important;
}

/* Dark mode - white text always before scroll, after scroll becomes lighter */
[data-theme="dark"] .nav-list .nav-link {
  color: #ffffff !important;
}

[data-theme="dark"] .header.scrolled .nav-list .nav-link {
  color: #cccccc !important;
}

/* Logo text (brand and sub) - always white on hero sections before scroll */
.nav-logo-text .brand,
.nav-logo-text .sub {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

/* After scroll - adjust logo text color based on theme */
.header.scrolled .nav-logo-text .brand {
  color: var(--gold, #C8730A) !important;
}

.header.scrolled .nav-logo-text .sub {
  color: var(--text-muted, #666) !important;
}

/* Light mode after scroll logo text */
[data-theme="light"] .header.scrolled .nav-logo-text .brand {
  color: var(--gold, #C8730A) !important;
}

[data-theme="light"] .header.scrolled .nav-logo-text .sub {
  color: #888888 !important;
}

/* Dark mode after scroll logo text */
[data-theme="dark"] .header.scrolled .nav-logo-text .brand {
  color: var(--gold, #C8730A) !important;
}

[data-theme="dark"] .header.scrolled .nav-logo-text .sub {
  color: #aaaaaa !important;
}

/* Mobile drawer - ensure text is always visible */
.mobile-drawer .drawer-nav li a {
  color: var(--text-light, #ccc) !important;
}

.mobile-drawer .drawer-nav li a:hover,
.mobile-drawer .drawer-nav li a.active {
  color: var(--gold, #C8730A) !important;
}

[data-theme="light"] .mobile-drawer .drawer-nav li a {
  color: #444444 !important;
}

/* Ensure the ORDER NOW button text stays visible */
.btn-order-nav,
.drawer-footer-btn {
  color: #ffffff !important;
}

.btn-order-nav:hover,
.drawer-footer-btn:hover {
  color: #ffffff !important;
}

/* 3. Additional stability fixes for page rendering */
html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Prevent any layout shift from animations */
* {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Make sure hero section doesn't cause scroll issues */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

@media (max-width: 600px) {
  .hero-slider {
    min-height: 420px;
  }
}

/* Disable problematic animations on scroll */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}