/* ========================================
   GLOBAL LUXURY THEME & VARIABLES
   ======================================== */
:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --text-main: #1a1a1a;
  --text-light: #666666;
  --accent: #d4af37;
  --accent-hover: #b5952f;
  --border: #eaeaea;
}

/* DARK MODE VARIABLES & FIXES */
body.dark-mode {
  --bg: #0a0a0a;
  --surface: #141414;
  --text-main: #f8fafc;
  --text-light: #94a3b8;
  --border: #262626;
}
body.dark-mode .navbar { background: rgba(10, 10, 10, 0.4); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
body.dark-mode .dropdown-menu { background: rgba(20, 20, 20, 0.95); }
body.dark-mode .top-bar { background-color: #050505; color: var(--accent); border-bottom: 1px solid #262626; }
body.dark-mode .footer { background-color: #050505; color: var(--text-light); border-top: 1px solid #262626; }
body.dark-mode .footer-logo { color: var(--text-main); }
body.dark-mode .mobile-sidebar { background: #0a0a0a; border-right: 1px solid #262626; }
body.dark-mode .cart-drawer { background: #0a0a0a; border-left: 1px solid #262626; }
body.dark-mode .cart-footer { background: #141414; }
body.dark-mode .nav-brand img { filter: brightness(0) invert(1); }
body.dark-mode .search-overlay { background: rgba(10, 10, 10, 0.85); }
body.dark-mode .fab-btn { background: #050505; color: var(--accent); border-color: var(--accent); }
body.dark-mode .fab-btn:hover { background: var(--accent); color: #000; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .serif { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }

/* ========================================
   TOP BAR & NAVBAR
   ======================================== */
.top-bar { background-color: var(--text-main); color: #fff; text-align: center; padding: 0.5rem; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease; max-height: 40px; overflow: hidden; }
.top-bar.hidden { max-height: 0; padding: 0; opacity: 0; border: none; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 4rem; background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-bottom: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); }
.nav-brand { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-main); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links li a { font-size: 0.95rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--text-main); position: relative; padding-bottom: 4px; }
.nav-links li a:hover { color: var(--accent); }
.nav-links > li > a::after { content: ''; position: absolute; width: 0; height: 1px; bottom: 0; left: 0; background-color: var(--accent); transition: width 0.3s ease; }
.nav-links > li > a:hover::after { width: 100%; }

.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: -50%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.05); min-width: 400px; padding: 2rem; z-index: 100; grid-template-columns: 1fr 1fr; gap: 2rem; border-radius: 8px; }
.dropdown:hover .dropdown-menu { display: grid; animation: fadeIn 0.3s ease; }
.dropdown-col h4 { font-size: 1.1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 1rem; color: var(--accent); }
.dropdown-col ul li { margin-bottom: 0.8rem; }
.dropdown-col ul li a { font-size: 0.9rem; text-transform: capitalize; color: var(--text-light); }
.dropdown-col ul li a:hover { color: var(--accent); padding-left: 5px; }

.nav-icons { display: flex; gap: 1.5rem; align-items: center; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--text-main); transition: 0.3s; }
.icon-btn:hover { color: var(--accent); transform: translateY(-2px); }
.icon-btn svg { width: 22px; height: 22px; }

/* Mobile Sidebar & Menu */
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text-main); padding: 5px; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; opacity: 0; pointer-events: none; transition: 0.3s; backdrop-filter: blur(4px); }
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-sidebar { position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; background: var(--bg); z-index: 2001; transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 2rem; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-sidebar.active { left: 0; }
.close-sidebar-btn { align-self: flex-end; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); margin-bottom: 2rem; }
.mobile-sidebar a { display: block; font-size: 1.1rem; color: var(--text-main); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.mobile-sidebar .sidebar-contact { margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--border); color: var(--text-light); font-size: 0.9rem; }

/* ========================================
   FULLSCREEN SEARCH OVERLAY
   ======================================== */
.search-overlay { position: fixed; inset: 0; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.search-overlay.active { opacity: 1; pointer-events: auto; }
.search-close-btn { position: absolute; top: 2rem; right: 3rem; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-main); transition: 0.3s; }
.search-close-btn:hover { color: var(--accent); transform: scale(1.1); }
.search-container { width: 100%; max-width: 600px; padding: 0 2rem; position: relative; }
.search-input { width: 100%; padding: 1rem 0; font-size: 2.5rem; font-family: 'Playfair Display', serif; border: none; border-bottom: 2px solid var(--text-main); background: transparent; color: var(--text-main); outline: none; transition: border-color 0.3s; }
.search-input::placeholder { color: var(--text-light); opacity: 0.5; }
.search-input:focus { border-bottom-color: var(--accent); }

/* ========================================
   CART DRAWER
   ======================================== */
.cart-icon-wrapper { position: relative; display: inline-flex; }
.cart-badge { position: absolute; top: -5px; right: -8px; background: var(--accent); color: #000; font-size: 0.7rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); display: none; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 4000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.cart-overlay.active { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: -450px; width: 100%; max-width: 400px; height: 100vh; background: var(--bg); z-index: 4001; transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1); border-left: 1px solid var(--border); }
.cart-drawer.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); }
.cart-header h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--text-main); }
.cart-close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); transition: 0.3s; }
.cart-close-btn:hover { color: var(--accent); transform: scale(1.1); }
.cart-items-container { flex: 1; overflow-y: auto; padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cart-item { display: flex; gap: 1rem; align-items: center; }
.cart-item-img { width: 80px; height: 80px; border-radius: 6px; object-fit: cover; background: var(--surface); border: 1px solid var(--border); }
.cart-item-info { flex: 1; display: flex; flex-direction: column; }
.cart-item-title { font-size: 0.95rem; font-weight: 500; color: var(--text-main); margin-bottom: 0.2rem; }
.cart-item-price { font-size: 0.95rem; color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; }
.cart-qty-controls { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 4px; width: fit-content; padding: 2px 8px; }
.cart-qty-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-main); }
.cart-qty-btn:hover { color: var(--accent); }
.cart-qty-num { font-size: 0.9rem; font-weight: 500; min-width: 20px; text-align: center; color: var(--text-main); }
.cart-remove-btn { background: none; border: none; color: var(--text-light); cursor: pointer; transition: 0.3s; margin-left: auto; }
.cart-remove-btn:hover { color: #ff4d4d; }
.cart-footer { padding: 2rem; border-top: 1px solid var(--border); background: var(--surface); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 600; color: var(--text-main); margin-bottom: 0.5rem; font-family: 'Playfair Display', serif;}
.cart-taxes-text { font-size: 0.8rem; color: var(--text-light); margin-bottom: 1.5rem; }
.cart-checkout-btn { width: 100%; background: var(--text-main); color: var(--bg); border: 1px solid var(--text-main); padding: 1.2rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.cart-checkout-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.empty-cart-msg { text-align: center; color: var(--text-light); margin-top: 2rem; font-size: 1.1rem; }

/* ========================================
   FLOATING ACTION BUTTON (Book Consult)
   ======================================== */
.fab-btn { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; background: var(--text-main); color: var(--accent); border: 1px solid var(--accent); border-radius: 50px; width: 60px; height: 60px; padding: 0; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.1rem; letter-spacing: 1px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); overflow: hidden; white-space: nowrap; gap: 0; cursor: pointer; }
.fab-btn:hover { width: 250px; background: var(--accent); color: #000; box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3); padding: 0 1.5rem; justify-content: flex-start; gap: 12px; }
.fab-text { opacity: 0; transition: all 0.3s ease; display: inline-block; max-width: 0; overflow: hidden; }
.fab-btn:hover .fab-text { opacity: 1; transition-delay: 0.1s; max-width: 200px; }

/* ========================================
   DYNAMIC SIDE-BOTTOM POPUP
   ======================================== */
.side-popup-container { position: fixed; bottom: 2rem; left: 2rem; z-index: 5000; transform: translateX(-150%); opacity: 0; pointer-events: none; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease; }
.side-popup-container.active { transform: translateX(0); opacity: 1; pointer-events: auto; }
.side-popup-card { background: var(--bg); border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); overflow: hidden; position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: 0.3s ease; cursor: pointer; }
.dp-action-link { display: inline-block; margin-top: 1rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-weight: 600; transition: 0.3s; }
.side-popup-card:hover .dp-action-link { transform: translateX(5px); color: #fff; }
.side-popup-close { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.2); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; z-index: 20; display: flex; align-items: center; justify-content: center; transition: 0.3s; font-size: 14px; font-family: sans-serif; }
.side-popup-close:hover { background: var(--accent); color: #000; }
.dp-img { width: 100%; object-fit: cover; display: none; }
.side-popup-card.size-small { width: 300px; } .side-popup-card.size-small .dp-img { height: 120px; } .side-popup-card.size-small .dp-content { padding: 1rem; } .side-popup-card.size-small .dp-text { font-size: 1.1rem; }
.side-popup-card.size-medium { width: 450px; } .side-popup-card.size-medium .dp-img { height: 250px; }
.side-popup-card.size-large { width: 680px; } .side-popup-card.size-large .dp-img { height: 400px; }
.dp-content { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 1.5rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); }
.dp-content.no-img { position: relative; background: var(--bg); padding: 2rem; border-top: none; }
.dp-text { font-size: 1.25rem; font-family: 'Playfair Display', serif; margin: 0; line-height: 1.3; }
.dp-timer { font-size: 1.4rem; font-weight: 600; color: var(--accent); font-family: monospace; display: none; margin-top: 0.5rem; }

/* ========================================
   FOOTER
   ======================================== */
.footer { background-color: var(--text-main); color: #fff; padding: 4rem 2rem 2rem; text-align: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 2rem; letter-spacing: 2px; margin-bottom: 1.5rem; color: var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: #ccc; }
.footer-links a:hover { color: var(--accent); }
.social-icons { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #555; transition: 0.3s; color: #fff; }
.social-icons a:hover { border-color: var(--accent); background: var(--accent); color: #000; }
.contact-info { margin-bottom: 2rem; color: #aaa; font-size: 0.95rem; }
.contact-info p { margin-bottom: 0.5rem; }
.copyright { border-top: 1px solid #333; padding-top: 1.5rem; font-size: 0.85rem; color: #777; }

/* RESPONSIVE QUERIES */
@media (max-width: 900px) {
  .navbar { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .desktop-only-icon { display: none !important; }
}

@media (max-width: 768px) {
  .fab-btn { width: 55px; height: 55px; bottom: 1.5rem; right: 1.5rem; }
  .fab-btn:hover { width: 55px; padding: 0; justify-content: center; gap: 0; }
  .fab-btn:hover .fab-text { opacity: 0; display: none; }
  .fab-text { display: none; }
  
  .side-popup-container { bottom: 1rem; left: 1rem; right: 1rem; transform: translateY(150%); }
  .side-popup-container.active { transform: translateY(0); }
  .side-popup-card { width: 100% !important; max-width: 100%; } 
  .side-popup-card.size-small .dp-img { height: 100px; }
  .side-popup-card.size-medium .dp-img { height: 220px; }
  .side-popup-card.size-large .dp-img { height: 350px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Container to hide the cropped edges */
.yt-cover-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Keeps it behind your text and overlays */
}

/* Force the iframe to scale up and center, simulating object-fit: cover */
.yt-cover-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw; /* Scales to viewport width */
  height: 56.25vw; /* Maintains exact 16:9 aspect ratio (9/16 = 0.5625) */
  min-height: 100vh; /* Ensures it is always tall enough */
  min-width: 177.77vh; /* Maintains ratio if height is the limiting factor */
  transform: translate(-50%, -50%); /* Centers the oversized video */
  pointer-events: none; /* Crucial: stops users from accidentally pausing it */
}

/* Container for the cinematic effect */
.yt-cinematic-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* 1. The Blurred Glowing Background */
.yt-blur-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vw; /* Massive width to cover the whole screen */
  height: 150vh;
  transform: translate(-50%, -50%);
  filter: blur(60px) brightness(0.5); /* Heavy blur and slightly darkened */
  z-index: 0;
  pointer-events: none;
}

.yt-blur-bg iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 2. The Main Sharp Video in the Center */
.yt-main-vid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none; /* Stops accidental pausing */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forces the foreground video to stay exactly 16:9 and fit inside the box */
.yt-main-vid iframe {
  width: 100vw;
  height: 56.25vw;
  max-height: 100%;
  max-width: 177.77vh;
  border: none;
}