/*
 * Modern Design System for pilates-aquafit.ch
 * Premium, minimal, fluid, and elegant.
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Tokens */
  --bg-primary: #FAF8F5;
  --bg-secondary: #F3ECE1;
  --bg-card: #FFFFFF;
  --bg-footer: #151C26;
  
  --text-primary: #1C2229;
  --text-muted: #6B7280;
  --text-white: #FFFFFF;
  
  --accent-gold: #C5A880;
  --accent-gold-dark: #A98C64;
  --accent-gold-light: #F0E8DC;
  
  --color-pilates: #A28267;
  --color-pilates-light: #F6F1EC;
  --color-aquafit: #3D7888;
  --color-aquafit-light: #EBF2F4;
  
  --border-light: #E8E2D9;
  --border-dark: #374151;
  
  /* Fonts */
  --font-title: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(28, 34, 41, 0.04);
  --shadow-md: 0 10px 30px rgba(28, 34, 41, 0.06);
  --shadow-lg: 0 20px 40px rgba(28, 34, 41, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(197, 168, 128, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

p {
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

p strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

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

ul, ol {
  list-style: none;
  margin-bottom: 1.5rem;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-dark);
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold-dark) !important; }
.text-uppercase { text-transform: uppercase; }

.section-padding {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.flex { display: flex; }
.grid { display: grid; }

html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

html.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
  border: 1px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-normal);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--text-primary);
  transform: translateY(100%);
  transition: var(--transition-normal);
  z-index: -1;
}

.btn:hover {
  color: var(--bg-primary);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary::before {
  background-color: var(--accent-gold);
}

.btn-primary:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.btn-pilates {
  background-color: var(--color-pilates);
  border-color: var(--color-pilates);
  color: var(--text-white);
}
.btn-pilates::before { background-color: var(--text-primary); }
.btn-pilates:hover { border-color: var(--text-primary); }

.btn-aquafit {
  background-color: var(--color-aquafit);
  border-color: var(--color-aquafit);
  color: var(--text-white);
}
.btn-aquafit::before { background-color: var(--text-primary); }
.btn-aquafit:hover { border-color: var(--text-primary); }

/* Header & Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

.main-header.scrolled {
  background-color: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 70px;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(220, 215, 205, 0.4);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-top: 4px;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--accent-gold-dark);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  transition: var(--transition-normal);
}

.mobile-nav-toggle span:nth-child(1) { top: 2px; }
.mobile-nav-toggle span:nth-child(2) { top: 11px; }
.mobile-nav-toggle span:nth-child(3) { top: 20px; }

.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: var(--transition-smooth);
}

.mobile-nav-overlay.open {
  transform: translateX(0);
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-menu .nav-link {
  font-size: 1.25rem;
  letter-spacing: 0.2em;
}

/* Page Submenu / Navigation */
.sub-navigation {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  margin-top: var(--header-height);
  padding: 1rem 0;
  position: sticky;
  top: var(--header-height);
  z-index: 99;
}

.sub-nav-menu {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.sub-nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.sub-nav-link:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(21, 28, 38, 0.4) 0%, rgba(21, 28, 38, 0.6) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.hero-subtitle {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 1.2s forwards 0.3s;
}

.hero-title {
  color: var(--text-white);
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1.2s forwards 0.6s;
}

.hero-actions {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 1.2s forwards 0.9s;
}

.hero-actions .btn {
  color: var(--text-white);
  border-color: var(--text-white);
}

.hero-actions .btn:hover {
  color: var(--text-primary);
}

.hero-actions .btn::before {
  background-color: var(--text-white);
}

.hero-scroll-btn {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
  animation: bounce 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-white);
}

.hero-scroll-btn svg {
  width: 30px;
  height: 30px;
}

/* Service Presentation Section */
.service-showcase {
  background-color: var(--bg-primary);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  margin-bottom: 8rem;
}

.split-section:last-child {
  margin-bottom: 0;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse .service-content {
  direction: ltr;
}

.service-image-wrapper {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.service-image-wrapper:hover img {
  transform: scale(1.03);
}

.service-image-wrapper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
  pointer-events: none;
}

.service-content {
  padding: 1rem 0;
}

.service-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-tag::before {
  content: '';
  width: 20px;
  height: 1px;
}

.pilates-style .service-tag { color: var(--color-pilates); }
.pilates-style .service-tag::before { background-color: var(--color-pilates); }
.aquafit-style .service-tag { color: var(--color-aquafit); }
.aquafit-style .service-tag::before { background-color: var(--color-aquafit); }

.partner-logo {
  margin-top: 1.5rem;
  display: inline-block;
}

.partner-logo img {
  height: 48px;
  width: auto;
  opacity: 0.85;
  transition: var(--transition-fast);
}

.partner-logo img:hover {
  opacity: 1;
}

/* Workshop Highlights (Beckenboden) */
.workshop-banner {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.workshop-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.workshop-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-gold-dark);
  flex-shrink: 0;
  margin-top: 4px;
}

.feature-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Interactive Schedule Component */
.schedule-section {
  background-color: var(--bg-primary);
}

.schedule-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
  gap: 1rem;
}

.tab-btn {
  background-color: transparent;
  border: none;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.8s ease forwards;
}

.schedule-wrapper {
  display: grid;
  gap: 2.5rem;
}

.schedule-day-group {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.schedule-day-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold-dark);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.schedule-day-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-light);
}

.schedule-grid-items {
  display: grid;
  gap: 1.5rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr 1.5fr;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border-light);
  gap: 1.5rem;
}

.schedule-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-time {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.schedule-course {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
}

.schedule-location {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.schedule-instructor {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Pricing Cards */
.pricing-section {
  background-color: var(--bg-secondary);
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 3.5rem 2.5rem;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background-color: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  padding: 0.4rem 1rem;
}

.pricing-card.pilates-card .pricing-badge {
  background-color: var(--color-pilates-light);
  color: var(--color-pilates);
}

.pricing-card.aquafit-card .pricing-badge {
  background-color: var(--color-aquafit-light);
  color: var(--color-aquafit);
}

.pricing-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.pricing-price {
  font-family: var(--font-title);
  font-size: 3.5rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-unit {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  text-align: center;
}

.pricing-details {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  width: 100%;
  padding: 2rem 0;
  margin-bottom: 2.5rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.pricing-details p {
  margin-bottom: 0.75rem;
}
.pricing-details p:last-child {
  margin-bottom: 0;
}

.pricing-details .subnote {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Gallery Slider Components */
.gallery-section {
  background-color: var(--bg-primary);
  overflow: hidden;
}

.gallery-container {
  position: relative;
  margin-top: 3.5rem;
}

.gallery-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  gap: 1.5rem;
  padding: 1rem 0;
  cursor: grab;
}

.gallery-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.gallery-item {
  flex: 0 0 450px;
  scroll-snap-align: start;
  height: 350px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.zoom-icon {
  width: 48px;
  height: 48px;
  color: var(--text-white);
  opacity: 0.85;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  gap: 1rem;
}

.gallery-nav-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-nav-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.gallery-nav-btn svg {
  width: 18px;
  height: 18px;
}

/* Simple Responsive Room Rental Grid */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.room-card {
  height: 250px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.room-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.room-card:hover img {
  transform: scale(1.04);
}

/* Lightbox overlay modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(21, 28, 38, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 85%;
  max-height: 85%;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
  padding: 1rem;
}

.lightbox-prev:hover, .lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-prev svg, .lightbox-next svg {
  width: 32px;
  height: 32px;
}

/* About / Team Section styles */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.about-image-wrapper {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content {
  padding-right: 2rem;
}

.timeline {
  margin: 3rem 0;
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  border: 2px solid var(--bg-primary);
}

.timeline-year {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-text {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.certifications-logo-block {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 2rem;
  align-items: center;
}

.certifications-logo-block img {
  height: 56px;
  width: auto;
}

/* Map Embed Container */
.map-section {
  padding: 0;
  height: 450px;
  width: 100%;
  position: relative;
  background-color: var(--bg-secondary);
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-card-floating {
  position: absolute;
  top: 3rem;
  left: 3rem;
  background: var(--bg-card);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  z-index: 10;
  max-width: 320px;
}

.map-card-floating h4 {
  margin-bottom: 0.75rem;
}

.map-card-floating p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.map-card-floating .map-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Footer Section */
.main-footer {
  background-color: var(--bg-footer);
  color: #9CA3AF;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-dark);
}

.footer-top {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
}

.footer-logo {
  color: var(--text-white);
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.footer-desc {
  max-width: 320px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-title {
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #9CA3AF;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-white);
}

.footer-contact-item {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

/* Native Modal / Delayed Popup Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(21, 28, 38, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  width: 90%;
  max-width: 520px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-window {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(21, 28, 38, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-primary);
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(21, 28, 38, 0.1);
  transform: rotate(90deg);
}

.modal-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.modal-image-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-normal);
}

.modal-image-link:hover img {
  transform: scale(1.01);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .split-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .split-section.reverse {
    direction: ltr;
  }
  .about-section {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-image-wrapper {
    position: relative;
    top: 0;
    max-width: 500px;
    margin: 0 auto;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-top > div:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .workshop-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
  }
  .schedule-time {
    font-size: 1rem;
  }
  .schedule-course {
    font-size: 1.25rem;
  }
  .schedule-day-group {
    padding: 1.5rem;
  }
  .gallery-item {
    flex: 0 0 300px;
    height: 250px;
  }
  .lightbox-prev, .lightbox-next {
    display: none;
  }
  .map-card-floating {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border-left: none;
    border-right: none;
  }
  .map-section {
    height: 350px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-top > div:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .sub-nav-menu {
    gap: 1.5rem;
  }
  .sub-nav-link {
    font-size: 0.7rem;
  }
  .pricing-card {
    padding: 2.5rem 1.5rem;
  }
}
