/* 
 * RV Entertainment Group - Components Stylesheet
 * Contains: Header, Mobile Navigation, Footer, Custom Cursor, Floating Buttons, Toast Alerts, Back to Top
 */

/* ==========================================================================
   PREMIUM NAVBAR (HEADER)
   ========================================================================== */
.header-navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(80px, 9vw, 110px);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: var(--bg-accent-opaque);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-glass-light);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.header-navigation.scrolled {
  height: clamp(65px, 7vw, 90px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-img-header {
  height: clamp(55px, 6.5vw, 90px);
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-img-footer {
  height: clamp(80px, 9vw, 120px);
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  background: var(--gradient-maroon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  line-height: 1.1;
  position: relative;
}

.logo-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin-top: 2px;
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary); /* Deep maroon since background is cream by default */
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.header-navigation.scrolled .nav-link {
  color: var(--text-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-maroon);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-maroon-light); /* Pop of maroon on hover over cream background */
}

.header-navigation.scrolled .nav-link:hover, .header-navigation.scrolled .nav-link.active {
  color: var(--color-maroon-light);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Animated Hamburger Button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 2001;
  outline: none;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--color-maroon); /* Dark color by default */
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out, background 0.3s ease;
}

.header-navigation.scrolled .menu-toggle span,
.menu-open .menu-toggle span {
  background: var(--color-maroon);
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.open span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.menu-toggle.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

/* Mobile Screen Fullscreen Overlay Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px;
  transition: right 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  background-image: radial-gradient(circle at 80% 20%, rgba(139, 26, 42, 0.10) 0%, transparent 60%);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin-bottom: 50px;
  width: 100%;
}

.mobile-nav-item {
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.mobile-nav.open .mobile-nav-item {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger mobile menu animations */
.mobile-nav.open .mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open .mobile-nav-item:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open .mobile-nav-item:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open .mobile-nav-item:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open .mobile-nav-item:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.open .mobile-nav-item:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav.open .mobile-nav-item:nth-child(7) { transition-delay: 0.4s; }
.mobile-nav.open .mobile-nav-item:nth-child(8) { transition-delay: 0.45s; }
.mobile-nav.open .mobile-nav-item:nth-child(9) { transition-delay: 0.5s; }

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  padding: 8px;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--color-maroon);
  text-shadow: var(--shadow-maroon-glow);
}

.mobile-nav-cta {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.5s ease 0.55s;
}

.mobile-nav.open .mobile-nav-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PREMIUM GLOBAL FOOTER
   ========================================================================== */
.footer-global {
  background-color: var(--bg-tertiary);
  border-top: var(--border-glass-light);
  padding: 80px 0 30px 0;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 50% 100%, rgba(139, 26, 42, 0.06) 0%, transparent 50%);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 25px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-maroon-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-maroon);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}

.footer-links a i {
  font-size: 0.75rem;
  margin-right: 10px;
  color: var(--color-maroon);
  transition: transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-maroon-light);
  transform: translateX(5px);
}

.footer-links a:hover i {
  transform: translateX(3px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.footer-contact-icon {
  color: var(--color-maroon);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-contact-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-contact-text a {
  display: block;
}

.footer-contact-text a:hover {
  color: var(--color-gold-light);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: var(--border-glass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  background: var(--gradient-maroon);
  color: #FDF5E8;
  border-color: transparent;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: var(--shadow-maroon-glow);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: var(--border-glass-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--color-maroon);
}

/* ==========================================================================
   CUSTOM CURSOR SYSTEM
   ========================================================================== */
.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-maroon);
  box-shadow: 0 0 10px var(--color-maroon);
}

.custom-cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-maroon);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

/* Hover States for Cursor */
body.cursor-hover .custom-cursor-ring {
  width: 70px;
  height: 70px;
  background-color: rgba(139, 26, 42, 0.12);
  border-color: var(--color-maroon-light);
}

body.cursor-hover .custom-cursor-dot {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: var(--color-maroon-light);
}

@media (max-width: 1024px) {
  .custom-cursor-dot, .custom-cursor-ring {
    display: none !important; /* Hide custom cursor on tablets/mobiles */
  }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (CALL & WHATSAPP)
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.floating-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  z-index: -1;
  opacity: 0.4;
  animation: pulseBtn 2s infinite;
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.btn-whatsapp {
  background-color: #25d366;
}

.btn-phone {
  background: var(--gradient-maroon);
  color: #FDF5E8;
}

.btn-whatsapp::before {
  animation-delay: 0.5s;
}

@keyframes pulseBtn {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
  .floating-actions {
    bottom: 20px;
    right: 20px;
  }
  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(253, 245, 232, 0.90);
  border: var(--border-glass);
  color: var(--color-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 998;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gradient-maroon);
  color: #FDF5E8;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-maroon-glow);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
  max-width: 400px;
  width: calc(100% - 60px);
}

.toast-alert {
  padding: 18px 24px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.97);
  border: var(--border-glass-light);
  backdrop-filter: blur(10px);
  border-left: 5px solid var(--color-maroon);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(120%);
  animation: slideInToast 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: all 0.4s ease;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.toast-icon {
  font-size: 1.3rem;
  color: var(--color-maroon);
}

.toast-message {
  font-size: 0.95rem;
  font-weight: 400;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 5px;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* Toast State Variations */
.toast-success {
  border-left-color: #25d366;
}
.toast-success .toast-icon {
  color: #25d366;
}

.toast-error {
  border-left-color: #ff3333;
}
.toast-error .toast-icon {
  color: #ff3333;
}

@keyframes slideInToast {
  0% { transform: translateX(120%); }
  100% { transform: translateX(0); }
}

@keyframes slideOutToast {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVENESS FOR GLOBAL NAVIGATION & FOOTER
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-menu, .nav-actions .btn {
    display: none !important; /* Hide standard nav and cta on mobile/tablet */
  }
  .menu-toggle {
    display: block; /* Show hamburger button */
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }
}
