/**
 * Voyagera Theme - Cinematic Premium Footer Styles
 * Version: 2.0.0
 * 
 * Integrates with existing Voyagera design system
 * Uses CSS Variables: --color-primary, --color-blue-deep, --color-yellow-warm
 * 
 * @package Voyagera
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Theme Integration)
   Extend existing design system
   ============================================ */

:root {
  /* Cinematic Footer Colors - integrates with existing theme */
  --footer-bg-dark: var(--color-blue-deep, #0a0e1a);
  --footer-bg-darker: #050810;
  --footer-glow: var(--color-primary, #3b82f6);
  --footer-warm: var(--color-yellow-warm, #f59e0b);
  --footer-sunset: #f97316;
  --footer-ocean: #0ea5e9;
  --footer-text: rgba(255, 255, 255, 0.9);
  --footer-text-muted: rgba(255, 255, 255, 0.6);
  --footer-text-subtle: rgba(255, 255, 255, 0.4);
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-border-hover: rgba(255, 255, 255, 0.15);
  
  /* Cinematic Animation Timing */
  --footer-duration-fast: 0.3s;
  --footer-duration-normal: 0.6s;
  --footer-duration-slow: 0.9s;
  --footer-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --footer-easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Spacing (integrates with theme spacing system) */
  --footer-section-padding: clamp(4rem, 10vw, 8rem);
  --footer-grid-gap: clamp(2rem, 5vw, 4rem);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

/* Fade Up Animation */
@keyframes voyagera-footer-fade-up {
  0% {
    opacity: 0;
    transform: translateY(40px) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

/* Scale In Animation */
@keyframes voyagera-footer-scale-in {
  0% {
    opacity: 0;
    transform: scale(0.92) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateZ(0);
  }
}

/* Glow Pulse Animation */
@keyframes voyagera-footer-glow-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Gradient Shift Animation */
@keyframes voyagera-footer-gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Float Animation for Shapes */
@keyframes voyagera-footer-float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) translateX(8px) rotate(1deg);
  }
  50% {
    transform: translateY(-8px) translateX(-8px) rotate(-1deg);
  }
  75% {
    transform: translateY(-20px) translateX(5px) rotate(0.5deg);
  }
}

/* Particle Rise Animation */
@keyframes voyagera-footer-particle {
  0% {
    transform: translateY(100%) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90%) translateX(10px) scale(1);
  }
  90% {
    opacity: 0.6;
    transform: translateY(10%) translateX(-10px) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0);
  }
}

/* Horizon Glow Animation */
@keyframes voyagera-footer-horizon {
  0%, 100% {
    opacity: 0.4;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.8;
    transform: scaleX(1.02);
  }
}

/* Star Twinkle Animation */
@keyframes voyagera-footer-twinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Button Shine Sweep */
@keyframes voyagera-footer-btn-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* Line Draw Animation */
@keyframes voyagera-footer-line-draw {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

/* ============================================
   SITE FOOTER - BASE STRUCTURE
   ============================================ */

.site-footer {
  position: relative;
  background: var(--footer-bg-dark);
  color: var(--footer-text);
  overflow: hidden;
}

/* ============================================
   CINEMATIC BACKGROUND LAYERS
   ============================================ */

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(var(--color-primary-rgb, 59, 130, 246), 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 30%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 70%, rgba(14, 165, 233, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Particle Container */
.footer-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.footer-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--footer-warm) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  animation: voyagera-footer-particle linear infinite;
}

/* Floating Shapes */
.footer-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: voyagera-footer-float 20s ease-in-out infinite;
}

.footer-shape--primary {
  width: 400px;
  height: 400px;
  background: var(--footer-glow);
  top: 10%;
  left: 10%;
}

.footer-shape--warm {
  width: 300px;
  height: 300px;
  background: var(--footer-sunset);
  top: 20%;
  right: 15%;
  animation-delay: -5s;
}

.footer-shape--ocean {
  width: 250px;
  height: 250px;
  background: var(--footer-ocean);
  bottom: 30%;
  left: 30%;
  animation-delay: -10s;
}

/* Stars Layer */
.footer-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.footer-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: voyagera-footer-twinkle ease-in-out infinite;
}

/* ============================================
   LAYER 1: CINEMATIC TOP SECTION
   ============================================ */

.footer-top {
  position: relative;
  z-index: 10;
  padding: var(--footer-section-padding) 0;
  text-align: center;
  overflow: hidden;
}

/* Cinematic Gradient Background */
.footer-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--footer-bg-darker) 0%,
    rgba(10, 14, 26, 0.95) 30%,
    rgba(15, 23, 42, 0.9) 60%,
    var(--footer-bg-dark) 100%
  );
  z-index: -1;
}

/* Cinematic Gradient Animation Layer */
.footer-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb, 59, 130, 246), 0.15) 0%,
    rgba(249, 115, 22, 0.1) 25%,
    rgba(14, 165, 233, 0.12) 50%,
    rgba(var(--color-primary-rgb, 59, 130, 246), 0.1) 100%
  );
  background-size: 400% 400%;
  animation: voyagera-footer-gradient-shift 20s ease infinite;
  z-index: -1;
  opacity: 0.5;
}

/* Newsletter Content */
.footer-newsletter-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Headline Styles */
.newsletter-content .newsletter-title,
.footer-cinematic-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.9) 40%,
    var(--footer-glow) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-content .newsletter-text,
.footer-cinematic-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--footer-text-muted);
  line-height: 1.7;
  max-width: 550px;
}

/* Newsletter Form */
.newsletter-form-wrapper {
  width: 100%;
  max-width: 500px;
}

.newsletter-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 480px) {
  .newsletter-subscribe-form {
    flex-direction: row;
  }
}

.newsletter-subscribe-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid var(--footer-border);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--footer-text);
  font-size: 1rem;
  transition: all var(--footer-duration-fast) var(--footer-easing-smooth);
}

.newsletter-subscribe-form input[type="email"]::placeholder {
  color: var(--footer-text-subtle);
}

.newsletter-subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--footer-glow);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 59, 130, 246), 0.2);
}

/* ============================================
   3D CTA BUTTON
   ============================================ */

.btn.btn-primary,
.footer-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: all var(--footer-duration-normal) var(--footer-easing);
  
  /* Gradient Background */
  background: linear-gradient(
    135deg,
    var(--footer-glow) 0%,
    var(--footer-ocean) 100%
  );
  color: #ffffff;
  box-shadow: 
    0 4px 15px rgba(var(--color-primary-rgb, 59, 130, 246), 0.3),
    0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Shine Effect */
.btn.btn-primary::before,
.footer-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-15deg);
  transition: left 0.6s ease;
}

.btn.btn-primary:hover::before,
.footer-cta-btn:hover::before {
  animation: voyagera-footer-btn-shine 0.8s ease-out;
}

/* 3D Hover Effect */
.btn.btn-primary:hover,
.footer-cta-btn:hover {
  transform: translateY(-4px) rotateX(5deg);
  box-shadow: 
    0 20px 40px rgba(var(--color-primary-rgb, 59, 130, 246), 0.4),
    0 0 30px rgba(var(--color-primary-rgb, 59, 130, 246), 0.2);
}

.btn.btn-primary:active,
.footer-cta-btn:active {
  transform: translateY(-2px) rotateX(2deg);
}

.btn.btn-primary:focus-visible,
.footer-cta-btn:focus-visible {
  outline: 2px solid var(--footer-warm);
  outline-offset: 3px;
}

/* ============================================
   HORIZON GLOW LINE
   ============================================ */

.footer-horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 10;
}

.footer-horizon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--footer-glow) 20%,
    var(--footer-warm) 50%,
    var(--footer-glow) 80%,
    transparent 100%
  );
  opacity: 0.5;
  animation: voyagera-footer-horizon 4s ease-in-out infinite;
}

.footer-horizon::after {
  content: '';
  position: absolute;
  top: -30px;
  left: 15%;
  right: 15%;
  height: 60px;
  background: radial-gradient(
    ellipse 50% 100% at 50% 100%,
    rgba(var(--color-primary-rgb, 59, 130, 246), 0.1) 0%,
    transparent 70%
  );
}

/* ============================================
   LAYER 2: MAIN FOOTER GRID
   ============================================ */

.footer-middle {
  position: relative;
  z-index: 10;
  padding: var(--footer-section-padding) 0;
  background: linear-gradient(
    180deg,
    var(--footer-bg-dark) 0%,
    var(--footer-bg-darker) 100%
  );
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--footer-grid-gap);
}

@media (min-width: 640px) {
  .footer-widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-widgets-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   FOOTER COLUMNS - Reveal Animation
   ============================================ */

.footer-col {
  opacity: 0;
  transform: translateY(30px);
  transition: 
    opacity var(--footer-duration-normal) var(--footer-easing),
    transform var(--footer-duration-normal) var(--footer-easing);
}

.footer-col.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.footer-col:nth-child(1) { transition-delay: 0ms; }
.footer-col:nth-child(2) { transition-delay: 100ms; }
.footer-col:nth-child(3) { transition-delay: 200ms; }
.footer-col:nth-child(4) { transition-delay: 300ms; }

/* ============================================
   FOOTER BRAND COLUMN
   ============================================ */

.footer-widget-about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-block;
  text-decoration: none;
  transition: opacity var(--footer-duration-fast) ease;
}

.footer-logo:hover {
  opacity: 0.9;
}

.footer-logo .logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  transition: color var(--footer-duration-fast) ease;
}

.footer-logo:hover .logo-text {
  color: var(--footer-glow);
}

.footer-logo .dot {
  color: var(--footer-glow);
}

.footer-widget-about p {
  color: var(--footer-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   SOCIAL ICONS WITH GLOW
   ============================================ */

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--footer-border);
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: all var(--footer-duration-fast) var(--footer-easing-smooth);
}

.footer-social a:hover {
  color: var(--footer-glow);
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.1);
  border-color: rgba(var(--color-primary-rgb, 59, 130, 246), 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--color-primary-rgb, 59, 130, 246), 0.2);
  text-shadow: 0 0 20px var(--footer-glow);
}

.footer-social a:focus-visible {
  outline: 2px solid var(--footer-glow);
  outline-offset: 2px;
}

.footer-social a i {
  font-size: 1.125rem;
}

/* Social Icons Reveal */
.footer-social {
  opacity: 0;
  transform: translateY(10px);
  transition: 
    opacity var(--footer-duration-normal) var(--footer-easing),
    transform var(--footer-duration-normal) var(--footer-easing);
  transition-delay: 400ms;
}

.footer-col.revealed .footer-social {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FOOTER WIDGET TITLES
   ============================================ */

.footer-widget-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--footer-glow), transparent);
  border-radius: 2px;
}

/* ============================================
   FOOTER LINKS
   ============================================ */

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.25rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: 
    opacity var(--footer-duration-fast) var(--footer-easing-smooth),
    transform var(--footer-duration-fast) var(--footer-easing-smooth);
}

.footer-col.revealed .footer-links li {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger link reveals */
.footer-links li:nth-child(1) { transition-delay: 150ms; }
.footer-links li:nth-child(2) { transition-delay: 200ms; }
.footer-links li:nth-child(3) { transition-delay: 250ms; }
.footer-links li:nth-child(4) { transition-delay: 300ms; }
.footer-links li:nth-child(5) { transition-delay: 350ms; }

.footer-links a {
  display: inline-block;
  position: relative;
  padding: 0.5rem 0;
  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--footer-duration-fast) ease;
}

/* Underline effect */
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--footer-glow), var(--footer-warm));
  transition: width var(--footer-duration-fast) var(--footer-easing-smooth);
}

.footer-links a:hover {
  color: var(--footer-text);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--footer-glow);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ============================================
   FOOTER CONTACT INFO
   ============================================ */

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: 
    opacity var(--footer-duration-fast) var(--footer-easing-smooth),
    transform var(--footer-duration-fast) var(--footer-easing-smooth);
}

.footer-col.revealed .contact-item {
  opacity: 1;
  transform: translateY(0);
}

.contact-item:nth-child(1) { transition-delay: 150ms; }
.contact-item:nth-child(2) { transition-delay: 200ms; }
.contact-item:nth-child(3) { transition-delay: 250ms; }
.contact-item:nth-child(4) { transition-delay: 300ms; }

.contact-item .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--footer-border);
  color: var(--footer-glow);
  transition: all var(--footer-duration-fast) ease;
}

.contact-item:hover .icon-wrapper {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.1);
  border-color: rgba(var(--color-primary-rgb, 59, 130, 246), 0.2);
}

.contact-item .icon-wrapper i {
  font-size: 1rem;
}

.contact-item span,
.contact-item a {
  color: var(--footer-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: color var(--footer-duration-fast) ease;
}

.contact-item a {
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--footer-glow);
}

.contact-item:hover span {
  color: var(--footer-text);
}

/* ============================================
   FOOTER OPENING HOURS
   ============================================ */

.footer-hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--footer-border);
  opacity: 0;
  transform: translateX(-10px);
  transition: 
    opacity var(--footer-duration-fast) var(--footer-easing-smooth),
    transform var(--footer-duration-fast) var(--footer-easing-smooth);
}

.footer-col.revealed .hours-item {
  opacity: 1;
  transform: translateX(0);
}

.hours-item:nth-child(1) { transition-delay: 150ms; }
.hours-item:nth-child(2) { transition-delay: 200ms; }
.hours-item:nth-child(3) { transition-delay: 250ms; }

.hours-item:last-child {
  border-bottom: none;
}

.hours-item .day {
  color: var(--footer-text-muted);
  font-size: 0.9375rem;
}

.hours-item .time {
  color: var(--footer-text);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ============================================
   LAYER 3: FOOTER BOTTOM BAR
   ============================================ */

.footer-bottom {
  position: relative;
  z-index: 10;
  padding: 1.5rem 0;
  background: var(--footer-bg-darker);
  border-top: 1px solid var(--footer-border);
}

/* Animated Divider Line */
.footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--color-primary-rgb, 59, 130, 246), 0.3) 20%,
    rgba(var(--color-primary-rgb, 59, 130, 246), 0.5) 50%,
    rgba(var(--color-primary-rgb, 59, 130, 246), 0.3) 80%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: 
    opacity var(--footer-duration-normal) var(--footer-easing),
    transform var(--footer-duration-normal) var(--footer-easing);
}

.footer-bottom.revealed::before {
  opacity: 1;
  transform: scaleX(1);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.copyright-text {
  font-size: 0.875rem;
  color: var(--footer-text-subtle);
}

.copyright-reserved {
  opacity: 0.7;
}

/* Footer Navigation Menu */
.footer-navigation {
  display: flex;
  align-items: center;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li a {
  color: var(--footer-text-subtle);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--footer-duration-fast) ease;
}

.footer-menu li a:hover {
  color: var(--footer-text);
}

.footer-menu li a:focus-visible {
  outline: 2px solid var(--footer-glow);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Language Selector */
.footer-language-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--footer-border);
  border-radius: 50px;
  background: transparent;
  color: var(--footer-text-subtle);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--footer-duration-fast) ease;
}

.footer-language-selector:hover {
  border-color: var(--footer-border-hover);
  color: var(--footer-text);
}

.footer-language-selector:focus-visible {
  outline: 2px solid var(--footer-glow);
  outline-offset: 2px;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--footer-glow);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--footer-duration-normal) var(--footer-easing);
  box-shadow: 
    0 4px 15px rgba(var(--color-primary-rgb, 59, 130, 246), 0.4),
    0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 25px rgba(var(--color-primary-rgb, 59, 130, 246), 0.5),
    0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--footer-warm);
  outline-offset: 3px;
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* ============================================
   REVEAL ANIMATION STATES
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 
    opacity var(--footer-duration-normal) var(--footer-easing),
    transform var(--footer-duration-normal) var(--footer-easing);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for reveal elements */
.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }
.reveal[data-delay="3"] { transition-delay: 300ms; }
.reveal[data-delay="4"] { transition-delay: 400ms; }
.reveal[data-delay="5"] { transition-delay: 500ms; }
.reveal[data-delay="6"] { transition-delay: 600ms; }

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal,
  .footer-col,
  .footer-links li,
  .contact-item,
  .hours-item,
  .footer-social {
    opacity: 1;
    transform: none;
  }
  
  .footer-shape,
  .footer-particle,
  .footer-star {
    animation: none;
  }
}

/* ============================================
   RTL SUPPORT
   ============================================ */

[dir="rtl"] .footer-links a::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer-widget-title::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-menu {
  justify-content: flex-start;
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 2rem;
}

/* ============================================
   DARK MODE ENHANCEMENTS
   (If theme uses .dark class)
   ============================================ */

.dark .site-footer {
  background: #000;
}

.dark .footer-top::before {
  background: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.98) 100%
  );
}

.dark .footer-middle {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.98) 0%,
    #000 100%
  );
}

.dark .footer-bottom {
  background: #000;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 640px) {
  .footer-social {
    justify-content: center;
  }
  
  .footer-widget-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  [dir="rtl"] .footer-widget-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
  }
}

/* ============================================
   WORDPRESS WIDGET OVERRIDES
   Ensure widgets integrate smoothly
   ============================================ */

.site-footer .widget {
  margin-bottom: 0;
  padding: 0;
}

.site-footer .widget-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.site-footer .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .widget ul li {
  margin-bottom: 0.25rem;
}

.site-footer .widget ul li a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: color var(--footer-duration-fast) ease;
}

.site-footer .widget ul li a:hover {
  color: var(--footer-text);
}
