/*
Theme Name: Yaochai Theme
Theme URI: https://yaochaimuaythaigym.com
Author: Antigravity
Description: Custom, high-performance, and SEO-optimized theme for Yaochai Muaythai Gym. No page builders used.
Version: 1.0.0
Text Domain: yaochai-theme
*/

/* Load Custom Fonts */
@font-face {
  font-family: 'IBM Plex Sans Thai';
  src: url('assets/fonts/IBMPlexSansThai-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  src: url('assets/fonts/IBMPlexSansThai-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  src: url('assets/fonts/IBMPlexSansThai-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Thai';
  src: url('assets/fonts/IBMPlexSansThai-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Core Design System Variables */
:root {
  /* Colors - Dark Theme base for a Gym */
  --color-bg-primary: #121212;
  --color-bg-secondary: #1e1e1e;
  --color-text-main: #f5f5f5;
  --color-text-muted: #aaaaaa;
  
  /* Brand Colors - Red and Gold are typical for Muay Thai */
  --color-brand-primary: #d32f2f; /* Muay Thai Red */
  --color-brand-accent: #fbc02d; /* Championship Gold */
  
  /* Typography */
  --font-family-base: 'IBM Plex Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-heading: 'IBM Plex Sans Thai', 'Outfit', 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 3rem;
  --spacing-xl: 10rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
}



/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-bg-primary);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-wrap: break-word;
  word-break: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ==========================================================================
   Header & Glassmorphism Navbar
   ========================================================================== */
.site-header.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  padding: var(--spacing-sm) 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  max-height: 45px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-right-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.main-navigation {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  margin: 0;
  padding: 0;
}

.nav-list li a {
  color: var(--color-text-main);
  font-family: var(--font-family-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
}

.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-brand-primary);
  transition: width var(--transition-fast);
}

.nav-list li a:hover {
  color: var(--color-brand-primary);
}

.nav-list li a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: var(--spacing-md);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family-heading);
  font-size: 0.9rem;
  font-weight: 700;
}

.lang-link {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.lang-link:hover {
  color: var(--color-brand-accent);
}

.lang-link.active {
  color: var(--color-text-main);
  text-decoration: underline;
  text-decoration-color: var(--color-brand-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* Button CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-brand-primary);
  color: #fff !important;
}

.btn-primary:hover {
  background-color: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001; /* Stay above the full-screen overlay */
  padding: 10px;
  width: 44px;
  height: 44px;
  position: relative;
  margin-left: auto;
}

.hamburger-box {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
}

.hamburger-box::before,
.hamburger-box::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
  left: 0;
  transition: top 0.3s 0.3s ease, transform 0.3s ease;
}

.hamburger-box::before { top: -8px; }
.hamburger-box::after { top: 8px; }

/* Hamburger Open State (Turns to X) */
body.menu-open .hamburger-box {
  background: transparent;
}
body.menu-open .hamburger-box::before,
body.menu-open .hamburger-box::after {
  top: 0;
  transition: top 0.3s ease, transform 0.3s 0.3s ease;
}
body.menu-open .hamburger-box::before {
  transform: rotate(45deg);
}
body.menu-open .hamburger-box::after {
  transform: rotate(-45deg);
}

/* Mobile Responsiveness (Full Screen Overlay Menu like Domitur) */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-right-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0a0a0a;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .nav-right-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }

  .nav-list li a {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.02em;
  }

  .nav-list li a::after {
    display: none; /* Hide standard underline on mobile */
  }

  .nav-actions {
    flex-direction: column;
    border-left: none;
    padding-left: 0;
    gap: 2.5rem;
  }
  
  .lang-switcher {
    font-size: 1.5rem;
    gap: 15px;
  }

  .lang-link {
    padding: 10px;
  }

  .btn-join {
    font-size: 1.2rem;
    padding: 1rem 3rem;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: var(--spacing-xl);
  padding-top: 80px; /* Offset for navbar */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.4) 0%, rgba(18, 18, 18, 0.95) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 10;
  color: #fff;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

.hero-title {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: slideUpFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
  animation: slideUpFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
  opacity: 0; /* for animation */
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  animation: slideUpFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
  opacity: 0;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-bg-primary);
}

@keyframes slideUpFade {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    padding: 0 var(--spacing-lg);
  }
}

/* ==========================================================================
   Landing Page Sections
   ========================================================================== */
.section-heading {
  font-family: var(--font-family-heading);
  font-size: clamp(1.5rem, 5vw, 3rem);
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  color: #fff;
}
.section-heading span {
  color: var(--color-brand-accent);
}
.section-subheading {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-md { margin-bottom: var(--spacing-md); }
.mt-md { margin-top: var(--spacing-md); }

/* Glassmorphism Utilities */
.glass-card {
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-border {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}
.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-brand-primary);
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}
.feature-title {
  color: #fff;
  margin-bottom: var(--spacing-sm);
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, #181818 0%, #121212 100%);
  padding-top: var(--spacing-xl);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}
.about-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: var(--color-brand-primary) 10px 10px 0px 0px;
}
.lead-text {
  font-size: clamp(1.1rem, 4vw, 1.25rem);
  color: var(--color-brand-accent);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

/* Classes & Pricing (Modern Dark UI) */
.classes-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background-image: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)), url('assets/images/section-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.pricing-bg-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.modern-pricing-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 80px 100px -50px rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.modern-pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
}

.modern-pricing-card.featured {
  background: #0f0f0f;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 80px 100px -50px rgba(255, 255, 255, 0.15);
}

.mp-title {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.mp-price {
  font-size: clamp(2.2rem, 8vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  font-family: var(--font-family-heading);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  word-break: keep-all;
}
.mp-price small {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}
.mp-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.mp-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}
.mp-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.mp-check {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mp-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mp-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border-radius: 30px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.mp-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.mp-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
.mp-btn-solid {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}
.mp-btn-solid:hover {
  background: #e0e0e0;
}

.pricing-terms {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

/* Trainers */
.trainers-section {
  background: radial-gradient(circle at top, #1e1e1e 0%, #121212 70%);
  padding: 6rem 0;
}
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}
.trainer-card {
  text-align: center;
}
.trainer-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  overflow: hidden;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid transparent;
  transition: border-color var(--transition-fast);
}
.trainer-card:hover .trainer-avatar {
  border-color: var(--color-brand-primary);
}
.avatar-placeholder { color: var(--color-text-muted); }
.trainer-name { color: #fff; margin-bottom: 5px; }
.trainer-role { color: var(--color-brand-accent); font-size: 0.9rem; margin-bottom: var(--spacing-sm); }
.trainer-desc { color: var(--color-text-muted); font-size: 0.9rem; }

/* FAQ Section */
.faq-section {
  background: linear-gradient(to bottom, #121212 0%, rgba(211, 47, 47, 0.05) 100%);
  padding: 6rem 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}
.contact-details {
  list-style: none;
  margin-top: var(--spacing-md);
}
.contact-details li { margin-bottom: 1rem; font-size: 1.1rem; }
/* ==========================================================================
   Floating Chat Widget
   ========================================================================== */
.floating-chat-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floating-chat-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-chat-container.active .floating-chat-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.chat-btn span {
  position: absolute;
  right: 70px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  pointer-events: none;
}

.chat-btn:hover span {
  opacity: 1;
  visibility: visible;
}

.line-color { 
  background-color: #fff; 
  border: 2px solid #06C755;
}
.messenger-color { background-color: #0084FF; }
.phone-color { background-color: #ffffff; border: 2px solid var(--color-brand-accent); }

.floating-toggle-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: var(--color-brand-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-toggle-btn:hover {
  transform: scale(1.05);
  background-color: var(--color-brand-accent);
}

.floating-chat-container.active .floating-toggle-btn {
  background-color: #F44336;
  transform: rotate(90deg);
}

.close-icon { display: none; }
.floating-chat-container.active .chat-icon { display: none; }
.floating-chat-container.active .close-icon { display: block !important; }

/* Tooltip */
.floating-tooltip {
  position: absolute;
  right: 80px;
  bottom: 15px;
  background: #fff;
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  font-family: var(--font-family-base);
}

.floating-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.floating-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .floating-chat-container {
    bottom: 20px;
    right: 20px;
  }
  .floating-toggle-btn {
    width: 55px;
    height: 55px;
  }
  .chat-btn {
    width: 55px;
    height: 55px;
  }
  .chat-btn img, .chat-btn svg { width: 24px !important; height: 24px !important; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .featured-pricing { transform: scale(1); }
  .featured-pricing:hover { transform: translateY(-10px); }
  .contact-grid { padding: var(--spacing-lg); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0a0a0a;
  border-top: 1px solid rgba(211, 47, 47, 0.2);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  max-width: 150px;
  margin-bottom: var(--spacing-md);
}

.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--color-brand-primary);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact-info li {
  margin-bottom: 0.8rem;
}

.footer-contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-brand-accent);
  padding-left: 5px;
}

.mt-md { margin-top: var(--spacing-md); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--spacing-md);
  text-align: center;
}

.site-info {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  font-family: 'Inter', -apple-system, sans-serif; /* Always use standard font */
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-logo {
    margin: 0 auto var(--spacing-md);
  }
  .footer-contact-info li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .footer-social-icons-grid {
    justify-content: center;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 45px;
  height: 45px;
  background-color: #D32F2F;
  border: 2px solid #FFF;
  border-radius: 50%;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

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

.scroll-to-top:hover {
  background-color: #B71C1C;
  transform: scale(1.1);
}

/* Infinite Marquee Gallery */
.gallery-section {
  background: linear-gradient(to bottom, #121212 0%, #1a1a1a 50%, #121212 100%);
  padding: 4rem 0;
}
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.marquee-track {
  display: flex;
  gap: var(--spacing-md);
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: var(--spacing-md);
}

.marquee-track.left .marquee-group {
  animation: scroll-left 35s linear infinite;
}

.marquee-track.right .marquee-group {
  animation: scroll-right 35s linear infinite;
}

.marquee-track:hover .marquee-group {
  animation-play-state: paused;
}

.marquee-item {
  width: 300px;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .marquee-item {
    width: 250px;
    height: 180px;
  }
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.marquee-item:hover img {
  transform: scale(1.05);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - var(--spacing-md))); }
}

@keyframes scroll-right {
  0% { transform: translateX(calc(-100% - var(--spacing-md))); }
  100% { transform: translateX(0); }
}
