:root {
    --primary: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary: #1a1a1a;
    --accent: #ffc107;
    --bg-light: #fafafa;
    --bg-dark: #0a0a0a;
    --text-dark: #212121;
    --text-light: #757575;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
  margin-top: 0; 
  padding-left: 0;
  list-style-position: inside;
}

/* Sticky header (mobile-safe) */
.site-header {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1000;
  background: white;
}

/* Navigation */
.site-nav {
  padding: 6px 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Animate a child, not the sticky element */
.site-nav .nav-container {
  animation: slideDown 0.6s ease-out;
}


@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }

}

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

.nav-container a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-container a:hover {
    color: var(--primary);
}

.nav-container a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--secondary);
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links li a {
    padding: 6px 8px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.35) 0%, rgba(45, 45, 45, 0.85) 100%),
    url('/images/ccw_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(211, 47, 47, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    text-align: center;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

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

}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }

}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.hero h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero .cta-button {
    display: inline-block;
    margin: 24px auto 0;
    width: auto;
    max-width: fit-content;
    border-radius: 999px;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: #fff;

    padding: 0.6rem 1.6rem;   /* much tighter */
    font-size: 0.95rem;       /* smaller text */
    font-weight: 600;

    border-radius: 999px;
    text-decoration: none;

    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);

    border: none;
    cursor: pointer;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Content Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.container-bg {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    /* PSI logo watermark */
    background:
      radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.85)
      ),
      url("/images/psi_logo.png");
    background-repeat: no-repeat;
    background-position-x: center;    
}

.section {
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

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

}

.section:nth-child(1) {
    animation-delay: 0.1s;
}
.section:nth-child(2) {
    animation-delay: 0.2s;
}
.section:nth-child(3) {
    animation-delay: 0.3s;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title--dark { color: white; }

.section-subtitle--dark { color: rgba(255,255,255,0.8); }

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* Pricing Section */
.pricing-box {
    background: linear-gradient(135deg, var(--secondary) 0%, #2d2d2d 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.pricing-box .cta-button {
    display: inline-block;
    margin: 24px auto 0;
    width: auto;
    max-width: fit-content;
    border-radius: 999px;
}

.pricing-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,193,7,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }

}

.pricing-box > * {
    position: relative;
    z-index: 1;
}

.price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--accent);
    margin: 1rem 0;
    letter-spacing: 2px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.payment-option {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Schedule Section */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.schedule-card {
    background: white;
    border-left: 5px solid var(--primary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.schedule-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.day-info {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
}

.day-info strong {
    display: block;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(to bottom, var(--bg-light), white);
    padding: 4rem 2rem;
}

.testimonial-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    
    /* smooth scrolling */
    scroll-behavior: smooth;

    /* snap behavior */
    scroll-snap-type: x mandatory;

    /* hide scrollbar (optional) */
    scrollbar-width: none; /* Firefox */
}

.testimonial-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.testimonial-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Viewport wrapper */
.testimonial-viewport {
  overflow: hidden; /* desktop */
}

/* Desktop marquee behavior (your existing animation can stay) */
.testimonial-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollTestimonials 70s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

/* Pause on hover desktop */
.testimonial-viewport:hover .testimonial-track {
  animation-play-state: paused;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    width: 360px;        /* desktop size */
    min-width: 320px;
    max-width: 360px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Pause on hover */
.testimonial-marquee:hover .testimonial-track {
  animation-play-state: paused;
}

@keyframes scrollTestimonials {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* Default (light) */
.testimonials--light .section-title {
  color: var(--secondary);
}

.testimonials--light .section-title::after {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Dark variant (homepage only) */
.testimonials--dark {
  background: linear-gradient(135deg, var(--secondary), #000);
  color: #fff;
}

.testimonials--dark .section-title {
  color: #fff;
}

.testimonials--dark .section-title::after {
  background: linear-gradient(90deg, var(--accent), #fff);
}

.testimonials--dark .section-subtitle {
  color: #757575;
}

/* Optional: make testimonial cards read well on dark bg */
.testimonials--dark .testimonial {
  background: rgba(44,44,44,1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* Text tuning inside dark cards */
.testimonials--dark .testimonial-text {
  color: rgba(255,255,255,0.9);
}

.testimonials--dark .testimonial-author {
  color: #fff;
}

.testimonials--dark .stars {
  color: var(--accent);
}

@keyframes scrollTestimonials {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary);
}

.stars {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    font-size: 1.8rem;
}

.social-links a {
    color: white;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Social Media Icons */
footer a[title*="Instagram"]:hover {
    color: #E4405F;
}

footer a[title*="Facebook"]:hover {
    color: #1877F2;
}

footer a[title*="LinkedIn"]:hover {
    color: #0A66C2;
}

/* ================================
   Footer City Links Enhancement
================================ */

.footer-city-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-city-links .footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 24px;
  margin-top: 1rem;
}

.footer-city-links .footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.footer-city-links .footer-links span {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0.6;
  grid-column: 1 / -1; /* make region label span full width */
  margin-top: 1rem;
}

/* Equipment List */
.equipment-list {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 2rem;
}

.equipment-list ul {
    list-style: none;
    padding: 0;
}

.equipment-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.equipment-list li:last-child {
    border-bottom: none;
}

.equipment-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}
	

/* Logo layout */
.psi-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  vertical-align: middle;
}

.psi-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.psi-logo-text {
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ================================
   Nearby Cities Grid
================================ */

.nearby-cities {
  margin-top: 4rem;
}

.nearby-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

/* Card style */
.nearby-cities-grid li a {
  display: block;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--secondary);
  border-left: 4px solid var(--primary);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

/* Hover effect */
.nearby-cities-grid li a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  background: var(--bg-light);
}

/* "Browse all" link styling */
.nearby-all-link {
  margin-top: 1.5rem;
  font-weight: 600;
}

.nearby-all-link a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nearby-all-link a:hover {
  opacity: 0.75;
}

/* Mobile Quick Nav (hidden by default) */
.mobile-quicknav {
  display: none;
  width: 100%;
  gap: 10px;
  margin-top: 6px;   /* was 10px */
}

/* Quick Nav buttons */
.mobile-quicknav .mq-btn {
  flex: 1;
  text-align: center;
  padding: 6px 10px;
  line-height: 1.2;
  height: auto;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
}


.mobile-quicknav .mq-btn--secondary {
  background: rgba(0, 0, 0, 0.06);
}

/* show on desktop by default */
.desktop-only {
  display: list-item;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .cta-button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.9rem;
        font-size: 1.05rem;
        border-radius: 999px;
        
    }
      
    .container {
        padding: 2rem 1rem;
    }

    .feature-grid,
    .schedule-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

  .desktop-only {
      display: none;
  }

  .site-header{
      position: fixed;
      left: 0;
      right: 0;
      top: 0;
  }
  
  body {
      padding-top: var(--header-height);
  }
  
  .nav-links {
      display: none;
  }
  
  .site-nav {
      padding: 4px 0;
  }
    
  .nav-links li a {
    padding: 5px 6px;
  }
    
  /* Allow nav container to wrap so quicknav becomes a new row */
  .nav-container {
    flex-wrap: wrap;
  }

  /* Show the quick nav row on mobile */
  .mobile-quicknav {
    display: flex;
  }

  /* Optional: reduce logo and hide long text on small screens */
  .psi-logo img {
    height: 32px;
  }

  .psi-logo-text {
    display: none; /* keeps header clean on phones */
  }
  
  /* Make track the scroller */
  .testimonial-viewport {
    overflow: visible;
  }

  .testimonial-track {
    display: flex;
    gap: 16px;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    /* internal padding inside the scroller */
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    transform: translateX(-28px);
    padding-bottom: 12px;

    box-sizing: border-box;
    width: 120%;

    animation: none !important; /* ensure desktop marquee doesn't fight */
    scrollbar-width: none;      /* Firefox */
  }

  .testimonial-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .testimonial {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
  }

  
/* Instructor name + right-aligned social icon */
.instructor-header {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.5rem;

  display: flex;
  align-items: center;
  gap: 10px; /* space between name and icon */
}

.instructor-header .instructor-name {
  display: inline-block;
}

.instructor-header .social-link {
  margin-left: auto;          /* pushes icon to the right */
  display: flex;
  align-items: center;
  line-height: 0;             /* prevents tiny baseline wiggle */
  text-decoration: none;
}

.instructor-header .social-link img {
  height: 22px;
  width: 22px;
  display: block;             /* removes inline-image baseline gap */
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.instructor-header .social-link:hover img {
  opacity: 1;
  transform: scale(1.05);
}

#registration-overlay {
  position: fixed;
  inset: 0;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
  font-family: 'Work Sans', sans-serif;
  text-align: center;
}

.registration-loader p {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 500;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255,255,255,0.2);
  border-top: 5px solid #d32f2f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
