/* ============================================
   FOUNDERS PADEL CLUB — Mobile-First Design
   Base styles = phone (375px)
   Scale up with min-width queries
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

:root {
  --black: #000; --cream: #E8E0D0; --cream-dark: #C4BAA8; --off-white: #FAF8F5;
  --white: #FFF; --dark: #1A1A1A; --gray: #6B6B6B; --light-gray: #E5E2DD;
  --purple: #8B5CF6; --purple-hover: #7C3AED; --purple-light: #F0EBFF;
  --font: 'Nunito', -apple-system, sans-serif;
  --max-w: 1100px; --radius: 12px; --pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--dark); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.15; font-weight: 800; }
a { color: var(--purple); text-decoration: none; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section-title { font-size: 1.75rem; text-align: center; margin-bottom: 0.75rem; }
.section-sub { text-align: center; color: var(--gray); font-size: .95rem; margin: -.25rem auto 2rem; max-width: 500px; }


/* ---- Nav (mobile-first) ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .6rem 1.25rem;
}
.nav__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-size: .85rem; font-weight: 800; letter-spacing: .12em;
  color: var(--cream); text-decoration: none;
}
.nav__toggle {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: all 250ms var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(3px, 5px); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(3px, -5px); }

.nav__menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(0,0,0,0.95); padding: 1rem 1.25rem 1.5rem;
  flex-direction: column; gap: .75rem;
}
.nav__menu.is-open { display: flex; }
.nav__menu a {
  color: rgba(255,255,255,0.8); font-size: .9rem; font-weight: 600;
  text-decoration: none; padding: .4rem 0;
}
.nav__menu a:hover { color: var(--white); }
.nav__menu .btn { text-align: center; margin-top: .25rem; }


/* ---- Buttons (mobile-first) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 700; border: none;
  border-radius: var(--pill); cursor: pointer; text-decoration: none;
  transition: all 200ms var(--ease); white-space: nowrap;
  font-size: .9rem; padding: .7rem 1.5rem;
}
.btn--primary { background: var(--purple); color: var(--white); }
.btn--primary:hover { background: var(--purple-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,92,246,0.3); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); }
.btn--cream { background: var(--cream); color: var(--black); border-radius: var(--radius); }
.btn--cream:hover { background: var(--white); transform: translateY(-2px); }
.btn--sm { font-size: .8rem; padding: .5rem 1rem; }
.btn--lg { font-size: .95rem; padding: .85rem 2rem; }


/* ============================================
   HERO — Mobile-first
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 4.5rem 1.25rem 3.5rem;
  background-size: cover; background-position: center;
  color: var(--white);
}

.hero__inner { max-width: 680px; z-index: 1; }

.hero__badge {
  display: inline-block; font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream); border: 1px solid rgba(232,224,208,0.3);
  padding: .6rem 1.4rem; border-radius: var(--pill); margin-bottom: 1.25rem;
}

.hero__headline {
  font-size: 2.5rem; font-weight: 800; color: var(--white);
  letter-spacing: -0.03em; margin-bottom: .75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__sub {
  font-size: .95rem; color: rgba(255,255,255,0.85);
  max-width: 400px; margin: 0 auto 1.75rem; line-height: 1.5;
}

.hero__ctas { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

.hero__stats {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; gap: 1.5rem;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  padding: .75rem 1rem; z-index: 1; flex-wrap: wrap;
}
.hero__stat { font-size: .75rem; color: rgba(255,255,255,0.8); }
.hero__stat strong { color: var(--white); font-size: .95rem; margin-right: .25rem; }


/* ============================================
   PHOTO STRIP — Horizontal scroll
   ============================================ */
.photo-strip { background: var(--black); padding: .4rem 0; overflow: hidden; }

.photo-strip__track {
  display: flex; gap: .4rem; padding: 0 .4rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.photo-strip__track::-webkit-scrollbar { display: none; }

.photo-strip__img {
  flex: 0 0 220px; height: 160px;
  background-size: cover; background-position: center;
  border-radius: 6px; scroll-snap-align: start;
  background-color: var(--dark);
}


/* ============================================
   ABOUT — Quote + values
   ============================================ */
.about { padding: 3rem 0; background: var(--off-white); }

.about__quote {
  text-align: center; max-width: 600px; margin: 0 auto 2rem;
  font-size: 1rem; font-style: italic; line-height: 1.6; color: var(--dark);
  padding: 0 .5rem;
}
.about__quote cite {
  display: block; margin-top: .75rem; font-style: normal;
  font-size: .85rem; font-weight: 700; color: var(--purple);
}

.values {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .4rem; max-width: 800px; margin: 0 auto;
}
.value {
  flex: 0 0 auto; padding: .45rem .9rem;
  background: var(--white); border: 1px solid var(--light-gray);
  border-radius: var(--pill); font-size: .75rem; color: var(--dark);
  text-align: center; line-height: 1.3;
}
.value strong { display: block; }


/* ============================================
   GALLERY — Photo grid
   ============================================ */
.gallery { padding: 0; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  gap: 3px;
}
.gallery__img {
  background-size: cover; background-position: center;
  background-color: var(--light-gray);
}
.gallery__img--tall { grid-row: span 2; }
.gallery__img--wide { grid-column: span 2; }


/* ============================================
   EXPERIENCES — Photo cards
   ============================================ */
.experiences { padding: 3.5rem 0; }

.exp-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.exp-card {
  background-size: cover; background-position: center;
  border-radius: var(--radius); padding: 2rem 1.5rem;
  color: var(--white); min-height: 200px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background-color: var(--dark);
}
.exp-card h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.exp-card p { font-size: .85rem; color: rgba(255,255,255,0.85); max-width: 280px; }


/* ============================================
   STORY — Photo + text
   ============================================ */
.story { padding: 3.5rem 0; background: var(--off-white); }

.story__layout {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
}
.story__image {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background-size: cover; background-position: center;
  background-color: var(--light-gray); min-height: 240px;
}
.story__text h2 { font-size: 1.75rem; margin-bottom: .75rem; }
.story__text p { color: var(--gray); font-size: .95rem; margin-bottom: .6rem; line-height: 1.6; }
.story__text p strong { color: var(--dark); }


/* ============================================
   EVENTS — Upcoming sessions
   ============================================ */
.events { padding: 3.5rem 0; }

.events__cards { display: flex; flex-direction: column; gap: .75rem; max-width: 600px; margin: 0 auto; }

.events__card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; background: var(--off-white);
  border: 1px solid var(--light-gray); border-radius: var(--radius);
}
.events__date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 48px; padding: .5rem; background: var(--purple); border-radius: 8px; color: var(--white);
}
.events__month { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.events__day { font-size: 1.4rem; font-weight: 800; line-height: 1; }

.events__info { flex: 1; min-width: 0; }
.events__info h3 { font-size: .9rem; margin-bottom: .15rem; }
.events__info p { font-size: .75rem; color: var(--gray); }

.events__card .btn { flex-shrink: 0; }

.events__cta { text-align: center; margin-top: 1.25rem; font-size: .9rem; font-weight: 600; }

.events__coming-soon {
  text-align: center; max-width: 400px; margin: 0 auto;
  padding: 2rem 1.5rem; background: var(--off-white);
  border: 1px solid var(--light-gray); border-radius: var(--radius);
}
.events__coming-soon p { color: var(--gray); font-size: .95rem; margin-bottom: 1rem; }


/* ============================================
   PARTNER — Dark
   ============================================ */
.partner { background: var(--black); color: var(--cream); padding: 3.5rem 0; }

.partner__text h2 { font-size: 1.75rem; color: var(--cream); margin-bottom: .75rem; }
.partner__text > p { color: var(--cream-dark); font-size: .95rem; margin-bottom: 1.5rem; line-height: 1.6; }

.partner__grid { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-bottom: 1.5rem; }

.partner__item {
  padding: 1rem; border: 1px solid rgba(232,224,208,0.15);
  border-radius: var(--radius); font-size: .85rem; color: var(--cream-dark);
}
.partner__item strong { color: var(--cream); display: block; margin-bottom: .15rem; }

.partner-form { display: flex; flex-direction: column; gap: .6rem; max-width: 480px; margin-top: 1.25rem; }
.partner-form__row { display: flex; flex-direction: column; gap: .6rem; }
.partner-form__input {
  width: 100%; padding: .7rem .9rem; font-family: var(--font); font-size: 16px;
  border: 1px solid rgba(232,224,208,0.2); border-radius: 8px;
  background: rgba(255,255,255,0.08); color: var(--cream); outline: none;
  transition: border-color 200ms, box-shadow 200ms; -webkit-appearance: none; appearance: none;
}
.partner-form__input::placeholder { color: rgba(232,224,208,0.5); }
.partner-form__input:focus { border-color: var(--cream); }
.partner-form__input option { background: var(--black); color: var(--cream); }
.partner-form select.partner-form__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23E8E0D0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem;
}
.partner-form .btn { align-self: flex-start; margin-top: .25rem; }
.partner-form__success { color: var(--cream); font-weight: 600; margin-top: .75rem; }
.partner-form__error { color: #FCA5A5; font-size: .85rem; margin-top: .5rem; }


/* ============================================
   APPLY — Form
   ============================================ */
.apply { padding: 3.5rem 0; }
.apply__content { text-align: center; margin-bottom: 2rem; }
.apply h2 { font-size: 2rem; margin-bottom: .5rem; }
.apply__content p { color: var(--gray); font-size: .95rem; }

.apply-form {
  max-width: 640px; margin: 0 auto;
  background: var(--off-white); border: 1px solid var(--light-gray);
  border-radius: var(--radius); padding: 1.75rem 1.25rem;
}
.apply-form__row { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.apply-form__field { margin-bottom: 1.1rem; }
.apply-form__field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .35rem; color: var(--dark); }

.apply-form__field input,
.apply-form__field textarea,
.apply-form__field select {
  width: 100%; padding: .75rem .9rem; font-family: var(--font); font-size: 16px;
  border: 1px solid var(--light-gray); border-radius: 8px; background: var(--white);
  color: var(--dark); outline: none; transition: border-color 200ms, box-shadow 200ms;
  -webkit-appearance: none; appearance: none;
}
.apply-form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem;
}
.apply-form__field input:focus,
.apply-form__field textarea:focus,
.apply-form__field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,0.08); }
.apply-form__field textarea { resize: vertical; min-height: 80px; }

/* Error state for required fields */
.field-error { border-color: #EF4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important; }
.field-error:focus { border-color: #EF4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important; }

.apply-form__checks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.check {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; padding: .5rem .75rem;
  background: var(--white); border: 1px solid var(--light-gray);
  border-radius: var(--pill); cursor: pointer; transition: all 200ms;
}
.check:hover { border-color: var(--purple); }
.check:has(input:checked) { border-color: var(--purple); background: var(--purple-light); }
.check input { accent-color: var(--purple); width: 16px; height: 16px; }

.apply-form__submit { width: 100%; margin-top: .75rem; padding: .9rem; font-size: 1rem; }
.apply-form__note { text-align: center; margin-top: .75rem; font-size: .8rem; color: var(--gray); }
.apply-form__error { text-align: center; color: #EF4444; font-size: .85rem; margin-top: .75rem; max-width: 640px; margin-left: auto; margin-right: auto; }

.apply-form__success {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: 2.5rem 1.5rem; background: var(--purple-light); border-radius: var(--radius);
}
.apply-form__success h3 { font-size: 1.35rem; margin-bottom: .4rem; color: var(--purple); }
.apply-form__success p { color: var(--gray); font-size: .9rem; }


/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter { padding: 3rem 0; background: var(--off-white); text-align: center; }
.newsletter h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.newsletter p { color: var(--gray); font-size: .9rem; margin-bottom: 1.25rem; }
.newsletter__content { max-width: 500px; margin: 0 auto; }

.newsletter__row { display: flex; flex-direction: column; gap: .5rem; max-width: 420px; margin: 0 auto; }
.newsletter__row .btn { width: 100%; }
.newsletter__input {
  width: 100%; padding: .7rem 1rem; font-family: var(--font); font-size: 16px;
  border: 1px solid var(--light-gray); border-radius: var(--pill); outline: none;
  background: var(--white); color: var(--dark); transition: border-color 200ms;
}
.newsletter__input:focus { border-color: var(--purple); }
.newsletter__input::placeholder { color: #999; }
.newsletter__success { color: var(--purple); font-weight: 600; margin-top: .75rem; }
.newsletter__error { color: #EF4444; font-size: .8rem; margin-top: .4rem; }


/* ============================================
   FOOTER
   ============================================ */
.footer { border-top: 1px solid var(--light-gray); padding-top: 2rem; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding-bottom: 1.5rem; }
.footer__logo { font-size: .75rem; font-weight: 700; letter-spacing: .15em; }
.footer__tagline { color: var(--gray); font-size: .8rem; margin-top: .15rem; }
.footer__links { display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; }
.footer__links span { color: var(--gray); }
.footer__social { display: flex; gap: .75rem; }
.footer__social a { color: var(--gray); transition: color 200ms; }
.footer__social a:hover { color: var(--purple); }
.footer__bottom { border-top: 1px solid var(--light-gray); padding: .75rem 0; }
.footer__bottom p { font-size: .7rem; color: var(--gray); }


/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--purple); color: var(--white);
  padding: .5rem 1rem; border-radius: var(--pill);
  font-size: .85rem; font-weight: 700; z-index: 200;
  transition: top 200ms;
}
.skip-link:focus { top: .5rem; }


/* ============================================
   FOCUS VISIBLE
   ============================================ */
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }


/* ============================================
   LAZY-LOADED IMAGES
   ============================================ */
[data-bg] { background-color: var(--dark); }


/* ============================================
   BUTTON LOADING STATE
   ============================================ */
.btn--loading {
  position: relative; color: transparent !important; pointer-events: none;
}
.btn--loading::after {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white); border-radius: 50%;
  animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ============================================
   FORM ERROR ANIMATION
   ============================================ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.field-error { animation: shake 300ms ease; }


/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }


/* ============================================
   TABLET (640px+)
   ============================================ */
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
  .section-title { font-size: 2rem; }
  .hero__headline { font-size: 3.5rem; }
  .hero__badge { font-size: 1.15rem; padding: .65rem 1.5rem; }
  .hero__sub { font-size: 1.05rem; }
  .hero__stats { gap: 2.5rem; }
  .btn--lg { font-size: 1rem; padding: .9rem 2.25rem; }

  .nav { padding: .6rem 1.5rem; }
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex; position: static; flex-direction: row;
    background: none; padding: 0; gap: 1.5rem; align-items: center;
  }
  .nav__menu a { font-size: .85rem; padding: 0; }

  .photo-strip__img { flex: 0 0 280px; height: 200px; }

  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .gallery__img--tall { grid-row: span 2; }
  .gallery__img--wide { grid-column: span 2; }

  .exp-grid { grid-template-columns: repeat(3, 1fr); }

  .apply-form__row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .apply-form { padding: 2.5rem; }

  .newsletter__row { flex-direction: row; }
  .newsletter__row .btn { width: auto; }

  .partner__grid { grid-template-columns: 1fr 1fr; }
  .partner-form__row { flex-direction: row; }

  .about__quote { font-size: 1.1rem; }
}


/* ============================================
   DESKTOP (768px+)
   ============================================ */
@media (min-width: 768px) {
  .hero__headline { font-size: 4.2rem; }
  .section-title { font-size: 2.3rem; }
  .hero__stats { gap: 3rem; }

  .photo-strip__img { flex: 0 0 340px; height: 240px; }

  .gallery__grid { grid-auto-rows: 260px; }

  .story__layout { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .story { padding: 5rem 0; }

  .about { padding: 4rem 0; }
  .about__quote { font-size: 1.2rem; }

  .experiences { padding: 5rem 0; }
  .exp-card { padding: 2.5rem 2rem; min-height: 240px; }

  .partner { padding: 5rem 0; }
  .partner__text h2 { font-size: 2.2rem; }

  .apply { padding: 5rem 0; }
  .apply h2 { font-size: 2.5rem; }
  .apply-form { padding: 2.5rem; }

  .footer__inner { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .footer__social { justify-content: flex-end; }
}


/* ============================================
   LARGE DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero__headline { font-size: 4.8rem; }
  .gallery__grid { grid-auto-rows: 300px; }
}
