/* ============================================================
   ShuttleZ Badminton Academy — style.css
   Design source: Figma "ShuttleZ B" (1920w light)
   ============================================================ */

:root {
  --color-primary: #2f88a6;      /* teal */
  --color-yellow: #f3f24c;       /* heading / hero yellow */
  --color-yellow-bright: #faf904;/* nav link yellow */
  --color-text: #404040;
  --color-dark: #000000;
  --color-white: #ffffff;

  --font-heading: 'Yanone Kaffeesatz', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-button: 'Oswald', sans-serif;
  --font-logo: 'Archivo Black', sans-serif;
  --font-nav: 'Assistant', sans-serif;

  --radius: 20px;
  --container: 1200px;
  --header-height: 86px;
}

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

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: var(--header-height); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Shared ---------- */

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 0.95;
  text-transform: uppercase;
  text-align: center;
}

.text-yellow { color: var(--color-yellow); }
.text-primary { color: var(--color-primary); }
.text-dark { color: var(--color-dark); }
.text-center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 32px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-button);
  font-size: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-yellow { background: var(--color-yellow); color: var(--color-primary); }
.btn-primary { background: var(--color-primary); color: var(--color-white); }

.btn-whatsapp-icon { width: 18px; height: 18px; }

.divider {
  border: none;
  border-top: 1px solid var(--color-primary);
  width: 36px;
  margin: 16px 0;
}

.divider-center { margin: 16px auto 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  height: var(--header-height);
}

.header-inner {
  max-width: 1420px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo { height: 62px; width: auto; }

.brand-name {
  font-family: var(--font-logo);
  font-size: 20px;
  line-height: 1.25;
  color: var(--color-white);
  text-transform: capitalize;
}

.main-nav ul {
  display: flex;
  gap: 48px;
  list-style: none;
}

.main-nav a {
  font-family: var(--font-nav);
  font-size: 18px;
  color: var(--color-yellow-bright);
  text-decoration: none;
  transition: opacity .2s ease;
}

.main-nav a:hover { opacity: .8; }

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

.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-yellow-bright);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background: url('../assets/images/hero-bg.png') center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: #7e7e7e;
  opacity: .4;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(48px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-yellow);
  max-width: 560px;
}

.hero-subtitle {
  margin-top: 24px;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--color-white);
}

.hero .btn { margin-top: 28px; }

/* ---------- Badminton For All ---------- */

.for-all {
  position: relative;
  padding: 90px 0 110px;
  background: url('../assets/images/forall-bg.png') center / cover no-repeat;
}

.for-all-overlay {
  position: absolute;
  inset: 0;
  background: #7e7e7e;
  opacity: .65;
}

.for-all-content { position: relative; z-index: 1; }

.for-all-grid {
  margin-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.for-all-text p {
  color: var(--color-white);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.35;
}

.for-all-text p + p { margin-top: 32px; }

.for-all-media video {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* ---------- Badminton Training ---------- */

.training {
  padding: 74px 0 60px;
  background: url('../assets/images/texture-bg.png') top left / 600px 600px repeat;
}

.training .section-title { margin-bottom: 50px; }

.training-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 30px 0;
}

.training-row-reverse .training-media { order: 2; }
.training-row-reverse .training-text { order: 1; }

.training-media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.training-text h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-dark);
}

.training-tag {
  margin-top: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--color-primary);
}

.training-text p { line-height: 1.75; }

.training-text .btn { margin-top: 28px; }

/* ---------- Packages ---------- */

.packages {
  padding: 90px 0 100px;
  background: url('../assets/images/texture-bg.png') top left / 600px 600px repeat;
}

.packages .section-title { margin-bottom: 60px; }

.packages-intro .training-tag { margin-top: 0; }

.packages-subtitle {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(28px, 2.5vw, 36px);
  text-transform: uppercase;
  text-align: center;
  color: var(--color-dark);
}

.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 50px;
}

.feature { text-align: center; }

.feature-icon,
.feature-icon-img {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  color: var(--color-primary);
}

.feature p {
  font-size: 18px;
  text-transform: capitalize;
  color: var(--color-dark);
}

.packages-posters { display: grid; gap: 0; }

.packages-posters img { width: 100%; }

.packages-note {
  margin-top: 50px;
  font-size: 14px;
  text-align: center;
}

.packages-cta-text {
  margin: 24px 0 26px;
  font-size: 14px;
  text-align: center;
}

/* ---------- Environment ---------- */

.environment {
  position: relative;
  background: var(--color-primary);
  padding: 120px 0 160px;
}

.environment-content { position: relative; }

.environment .section-title { max-width: 720px; margin: 0 auto 48px; }

.environment-art {
  position: absolute;
  top: -40px;
  right: 0;
  width: 113px;
  height: 193px;
}

.environment-grid {
  list-style: none;
  max-width: 955px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 40px;
}

.environment-grid li {
  color: var(--color-white);
  font-size: 18px;
  text-align: center;
  text-transform: capitalize;
  line-height: 1.35;
  padding: 24px 0;
}

.environment-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.environment-wave img {
  width: 100%;
  height: 66px;
  transform: rotate(180deg);
}

/* ---------- Testimonials ---------- */

.testimonials {
  background: var(--color-white);
  padding: 150px 0;
}

.slider { position: relative; text-align: center; }

.slide { display: none; }

.slide.is-active { display: block; animation: fadeIn .5s ease; }

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

.slide blockquote {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--color-dark);
  max-width: 1040px;
  margin: 0 auto;
}

.cite-name {
  margin-top: 44px;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--color-primary);
}

.cite-role { font-size: 15px; }

.slider-dots {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dot {
  width: 6px;
  height: 6px;
  border: none;
  border-radius: 3px;
  background: rgba(0, 0, 0, .2);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease;
}

.dot.is-active { background: var(--color-primary); }

/* ---------- Join CTA ---------- */

.join {
  position: relative;
  padding: 170px 0;
  background: url('../assets/images/join-bg.png') center / cover no-repeat;
}

.join-overlay {
  position: absolute;
  inset: 0;
  background: #7e7e7e;
  opacity: .6;
}

.join-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.join-content p {
  margin: 32px auto 40px;
  max-width: 840px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-white);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--color-primary); }

.footer-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
}

.footer-whatsapp img { width: 18px; height: 18px; }

.footer-nav ul {
  display: flex;
  gap: 38px;
  list-style: none;
}

.footer-nav a {
  position: relative;
  font-family: var(--font-button);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  padding-bottom: 4px;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-yellow-bright);
  opacity: 0;
  transition: opacity .2s ease;
}

.footer-nav a:hover::after { opacity: 1; }

.footer-copy {
  font-size: 12px;
  color: var(--color-white);
  text-transform: capitalize;
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
  .for-all-grid,
  .training-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .for-all-grid { margin-top: 120px; }

  .training-row-reverse .training-media { order: 0; }
  .training-row-reverse .training-text { order: 1; }

  .environment-grid { grid-template-columns: repeat(2, 1fr); }

  .environment-art { display: none; }

  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    display: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 24px;
  }

  .features { grid-template-columns: 1fr; }

  .environment-grid { grid-template-columns: 1fr; }

  .environment-grid li { padding: 8px 0; }

  .testimonials { padding: 90px 0; }

  .join { padding: 110px 0; }

  .footer-nav ul { flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
}
