/* ------------------------------------
   Fonts & Root Variables
------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Playfair+Display:wght@700;900&display=swap');

:root {
  --purple: #3B2E71;
  --bright-blue: #73C5E8;
  --soft-blue: #9CD7E7;
  --cream: #FDF8DC;
  --white: #FEFEFC;

  --max-width: 1100px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--purple);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--purple);
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 1rem;
}

.section--alt {
  background: var(--cream);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #444;
}

/* ------------------------------------
   Navbar
------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--purple);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

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

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

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 25px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
}

/* ------------------------------------
   News Banner
------------------------------------ */
.news-banner {
  background: var(--bright-blue);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.banner-link {
  color: var(--cream);
  font-weight: 700;
  text-decoration: underline;
}

/* ------------------------------------
   Hero
------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--purple), var(--bright-blue));
  color: var(--white);
  padding: 5rem 1rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 2.8rem;          /* keep your size */
  line-height: 1.2;
  margin-bottom: 1rem;

  /* NEW: high-contrast + readability on gradient */
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.08); /* subtle micro-outline (WebKit) */
  letter-spacing: 0.3px;       /* tiny spacing for clarity */
}


.slogan {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--cream);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

.hero-art {
  flex: 1 1 250px;
  text-align: center;
}

.mascot {
  width: 200px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--bright-blue);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--purple);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ------------------------------------
   About
------------------------------------ */
.about {
  /* keep the section spacing; make the CARD live inside the container */
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, var(--cream), var(--white));
}

/* Card that “pops” inside the section */
.about .container {
  background: linear-gradient(to bottom right, #fffdf5, #fdf8dc);
  border-radius: 0; /* 👈 changed from 16px */
  box-shadow: 0 8px 28px rgba(59, 46, 113, 0.12);
  padding: 2rem 1.75rem;
}


/* Heading polish + accent underline only in About */
.about .section-head h2 {
  font-weight: 900;
  position: relative;
}

.about .section-head h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: var(--bright-blue);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

.about .section-head .section-subtitle {
  color: #555;
  margin-top: 0.6rem;
}

/* Content layout used by your current HTML */
.about-grid {
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1rem;
  color: #2d2461;
}

.about-grid p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Bullet list styling */
.about-points {
  margin: 1rem 0 1.5rem 2rem;
  list-style: disc;
}

.about-points li {
  margin-bottom: 0.8rem;
  font-weight: 500;
  line-height: 1.6;
}

.about-points li::marker {
  color: var(--bright-blue);
}

/* ------------------------------------
   Mission
------------------------------------ */
.pillars {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pillar {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  flex: 1 1 250px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ------------------------------------
   Impact / Stats
------------------------------------ */
.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--bright-blue);
}

/* ------------------------------------
   Events
------------------------------------ */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.event-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.section-cta {
  text-align: center;
  margin-top: 2rem;
}
.section-cta .btn-outline {
  border: 2px solid var(--bright-blue);
  color: var(--bright-blue);
  font-weight: 600;
  background: rgba(115, 197, 232, 0.08); /* subtle blue tint behind text */
  transition: all 0.3s ease;
}

.section-cta .btn-outline:hover {
  background: var(--bright-blue);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(115, 197, 232, 0.35);
}

/* ------------------------------------
   Training
------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

/* ------------------------------------
   Gallery Carousel
------------------------------------ */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel img {
  width: 100%;
  max-width: 800px;   /* keeps them consistent */
  height: 400px;      /* fixed height */
  object-fit: cover;  /* crops instead of stretching */
  border-radius: 12px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.carousel-dots {
  text-align: center;
  margin-top: 1rem;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
}

.carousel-dots .dot.is-active {
  background: var(--bright-blue);
}

.slide figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--purple);
  text-align: center;
}


.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  text-align: center;
  margin-top: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  margin: 0 4px;
  border: none;
  cursor: pointer;
}

.dot.is-active {
  background: var(--bright-blue);
}

/* ------------------------------------
   Team
------------------------------------ */
/* ------------------------------------
   Team Grid Adjustments
------------------------------------ */
/* ------------------------------------
   Team Grid Adjustments (7 per row)
------------------------------------ */
/* ------------------------------------
   Team Grid Adjustments (7 per row)
------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.team-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  image-rendering: -webkit-optimize-contrast; /* ? improves sharpness in Chrome/Safari */
  image-rendering: crisp-edges; /* ? fallback for other browsers */
  transform: translateZ(0); /* ? fixes GPU scaling blur */
  backface-visibility: hidden;
}


.team-card img:hover {
  box-shadow: 0 0 16px var(--soft-blue);
}

.team-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.role {
  font-weight: 600;
  color: var(--bright-blue);
  font-size: 0.9rem;
}

.team-card .bio {
  font-size: 0.85rem;
  color: #333;
}

/* === Team rows (explicit per-row layout) === */
.team-rows {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Base card grid for each row */
.team-row {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

/* Row presets */
.team-row--1 {               /* single, centered */
  grid-template-columns: 1fr;
  justify-content: center;
}

.team-row--2 {               /* two across */
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.team-row--3 {               /* three across */
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .team-row--3 {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 600px) {
  .team-row--2,
  .team-row--3,
  .team-row--1 {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
  .team-card img { width: 80px; height: 80px; }
  .team-card .bio { display: none; } /* keep rows tight on phones */
}

/* Larger screens */
@media (min-width: 1024px) {
  .team-card h3 { font-size: 0.95rem; }
  .team-card .role { font-size: 0.9rem; }
  .team-card .bio  { font-size: 0.85rem; }
}

/* Small screens: give each card more room */
@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .team-card img {
    width: 120px;
    height: 120px;
  }
}



.role {
  font-weight: 600;
  color: var(--bright-blue);
}

/* ------------------------------------
   Testimonials
------------------------------------ */
.quotes {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote {
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* ------------------------------------
   Resources
------------------------------------ */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.link-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  color: var(--bright-blue);
}

/* ------------------------------------
   FAQ Accordion
------------------------------------ */
.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-trigger {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.accordion-trigger::after {
  content: '+';
  position: absolute;
  right: 0;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: '–';
}

.accordion-panel {
  padding: 0 0 1rem 0;
}

/* ------------------------------------
   Contact
------------------------------------ */
/* ------------------------------------
   Contact
------------------------------------ */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: #fdf8dc;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(59, 46, 113, 0.15);
  font-family: 'Montserrat', sans-serif;
}

.contact-title {
  color: #3b2e71;
  font-weight: 700;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.contact-intro {
  text-align: center;
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #3b2e71;
}

/* ✅ Scoped only to the contact form */
.contact-form input,
.contact-form textarea {
  border: 2px solid #9cd7e7;
  border-radius: 10px;
  padding: 0.7rem;
  font-size: 1rem;
  background-color: #fefefc;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #73c5e8;
  outline: none;
  box-shadow: 0 0 6px rgba(115, 197, 232, 0.3);
}

/* ✅ Scoped button class, doesn't affect hero buttons */
.contact-form .btn-primary {
  background-color: #3b2e71;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  width: 100%;
}

.contact-form .btn-primary:hover {
  background-color: #73c5e8;
  transform: scale(1.02);
}

.contact-form .form-note {
  text-align: center;
  margin-top: 1rem;
  color: #777;
  font-size: 0.85rem;
}


.contact-socials {
  text-align: center;
  margin-top: 1.5rem;     /* space above socials */
  margin-bottom: 2.5rem;  /* space before footer */
}


.contact-socials a {
  margin: 0 0.5rem;
  font-weight: 600;
  color: var(--purple);
  transition: color 0.3s ease;
}

.contact-socials a:hover {
  color: var(--bright-blue);
}

/* ------------------------------------
   Footer
------------------------------------ */
.site-footer {
  background: var(--purple);
  color: var(--cream);
  padding: 2rem 1rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.footer-nav a {
  color: var(--cream);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--soft-blue);
}

.footer-actions .btn {
  border: 2px solid var(--cream);
  color: var(--cream);
}

.footer-actions .btn:hover {
  background: var(--cream);
  color: var(--purple);
}

/* ------------------------------------
   Animations / Scroll
------------------------------------ */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------
   Responsive
------------------------------------ */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    position: absolute;
    right: 1rem;
    top: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .about-flex {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 200px;
  }
}
/* ------------------------------------
   Bottom Mascot Row
------------------------------------ */
.mascot-row {
  text-align: center;          /* centers the mascots */
  margin: 2rem 0 1rem;         /* spacing above/below the row */
}

.mascot-row .mascot--float-1 {
  display: inline-block;       /* allows them to sit side by side */
  width: 70px;                 /* adjust size as needed */
  height: auto;
  margin: 0 10px;              /* space between mascots */
  vertical-align: middle;
  animation: float 4s ease-in-out infinite; /* optional floating effect */
}

/* optional subtle hover animation for fun */
.mascot-row .mascot--float-1:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}


@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* =======================================================
   ?? EXTRA RESPONSIVE ENHANCEMENTS (ADDED ONLY)
   Keep desktop the same; these just scale things nicely.
   ======================================================= */

/* Tighten vertical rhythm a bit on tablets */
@media (max-width: 1024px) {
  .section { padding: 3.5rem 1rem; }
  .hero { padding: 4.5rem 1rem; }
  .carousel img { height: 340px; }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  .navbar { padding: 0.85rem 0; }
  .logo { font-size: 1.35rem; }
  .news-banner { font-size: 0.85rem; }

  .hero-content { gap: 1.75rem; }
  .hero .mascot { width: 170px; }
  .slogan { font-size: 1.1rem; }

  .event-grid,
  .cards,
  .link-grid { gap: 1.25rem; }

  .event-card,
  .card { padding: 1.25rem; }

  .carousel img { height: 300px; }
  .footer-grid { gap: 1.25rem; }
}

/* Phones */
@media (max-width: 560px) {
  .container { padding: 0 0.9rem; }
  .section { padding: 3rem 1rem; }

  .hero { padding: 3.5rem 1rem; }
  .hero-text h1 { font-size: 1.9rem; }
  .slogan { font-size: 1rem; }
  .hero-ctas { flex-wrap: wrap; justify-content: center; }
  .hero-ctas .btn { min-width: 44%; text-align: center; }

  .event-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }

  .carousel img { height: 240px; }
  .footer-nav ul { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
  .footer-actions .btn { padding: 0.6rem 1.1rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .logo { font-size: 1.2rem; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero .mascot { width: 150px; }
  .news-banner { padding: 0.2rem 0.4rem; font-size: 0.8rem; }
  .carousel img { height: 210px; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .mascot, .carousel-track { animation: none !important; transition: none !important; }
}

/* iOS safe-area love */
@supports (padding: max(0px)) {
  body { padding-bottom: max(0px, env(safe-area-inset-bottom)); }
}
