/* ============ Blue Padel Club — base styles ============ */

:root {
  --bg: #0a0a0c;
  --blue: #2323e0;
  --green: #2fe07a;
  --green-dark: #27c96a;
  --green-ink: #06210f;
  --teal: #2dc9c4;
  --red: #e02323;
  --ink: #0a0a0c;
  --white: #ffffff;
}

* { box-sizing: border-box; }


body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

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

::selection { background: var(--green); color: var(--ink); }

a { color: inherit; }

button { font-family: inherit; }

html {
  scroll-behavior: smooth;
}

/* ---------- NAV ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  background: transparent;
  backdrop-filter: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.nav.scrolled {
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(10px);
}

.nav.nav--compact {
  padding: 10px 6vw;
  background: rgba(8, 8, 16, 0.55);
  opacity: 0.85;
  backdrop-filter: blur(6px);
}


.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}

.nav-logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
.nav-brand-text span {
  font-size: 8px;
  opacity: 0.7;
  letter-spacing: 2px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--green); }

.nav-links a:active { 
  color: var(--green); 
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.social-btn:hover { 
  transform: scale(1.1); 
}
.social-btn svg { 
  color: var(--blue);
  width: 24px; 
  height: 24px; 
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ---------- MOBILE MENU ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.97);
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }

.mobile-menu-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute;
  inset: -8% -8%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,40,0.55) 0%, rgba(10,10,60,0.35) 45%, rgba(6,6,20,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 5.4vw, 58px);
  line-height: 1.15;
  margin: 0 0 32px;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0.6;
  animation: bounce 2s infinite;
  z-index: 2;
}
.hero-scroll-cue .line { width: 1px; height: 36px; background: #fff; }

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

.hero--short {
  height: 52vh;
  min-height: 400px;
  padding: 0 6vw 60px;
  justify-content: flex-start;
  align-items: flex-end;
}
.hero--short .hero-content { text-align: left; max-width: none; padding: 0; }
.hero--short h1 { font-size: clamp(30px, 5.4vw, 58px); margin: 0; }

/* ---------- BUTTONS ---------- */

.btn {
  background: var(--green);
  color: var(--green-ink);
  border: none;
  padding: 18px 40px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-block;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); background: var(--green-dark); }

.btn--block { width: 100%; padding: 13px; font-size: 12.5px; letter-spacing: 1px; }

/* ---------- CLUB / GRID ---------- */

.section-club {
  background: var(--bg);
  padding: 90px 6vw 100px;
}

.section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(34px, 6vw, 72px);
  color: var(--blue);
  margin: 0;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-title.visible { opacity: 1; transform: translateY(0); }
.section-title span { color: #fff; }

.card-grid {
  max-width: 1400px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.fac-card {
  display: block;
  text-decoration: none;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease;
}
.fac-card.visible { opacity: 1; transform: translateY(0); }
.fac-card:hover { transform: translateY(-4px); }
.fac-card:hover .fac-card-img { transform: scale(1.06); }
.fac-card:hover .fac-card-arrow { transform: translateX(4px); }

.fac-card-media { position: relative; height: 280px; overflow: hidden; }
.fac-card-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.fac-card-body { background: var(--green); padding: 22px 26px; }
.fac-card-label { font-family: 'Archivo Black', sans-serif; font-size: 20px; color: var(--green-ink); letter-spacing: 0.5px; }
.fac-card-cta { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--green-ink); font-weight: 600; }
.fac-card-arrow { display: inline-block; transition: transform 0.25s ease; }

/* ---------- MARQUEE ---------- */

.marquee {
  background: var(--teal);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 18s linear infinite;
}
.marquee-track span.item {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  color: var(--green-ink);
  letter-spacing: 1px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.marquee-track span.item .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green-ink);
  display: inline-block;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- PARALLAX BAND ---------- */

.parallax-band {
  position: relative;
  height: 60vh;
  min-height: 420px;
  overflow: hidden;
}
.parallax-band-bg {
  position: absolute;
  inset: -10% -8%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.parallax-band-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,20,0.3), rgba(6,6,20,0.6));
}

/* ---------- TOURNAMENTS ---------- */

.section-tournaments {
  background: var(--blue);
  padding: 90px 6vw 100px;
}

.tour-grid {
  max-width: 1400px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.tour-card {
  background: var(--bg);
  padding: 28px 24px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease, background 0.25s ease;
}
.tour-card.visible { opacity: 1; transform: translateY(0); }
.tour-card:hover { background: #000; }

.tour-card-name { font-family: 'Archivo Black', sans-serif; font-size: 19px; line-height: 1.3; letter-spacing: 0.3px; }
.tour-card-date { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 500; }
.tour-card .btn--block { margin-top: 26px; }

/* ---------- SUBSCRIBE ---------- */

.section-subscribe {
  background: #fff;
  color: var(--ink);
  padding: 90px 6vw 100px;
}

.subscribe-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.subscribe-left {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.subscribe-left.visible { opacity: 1; transform: translateY(0); }

.subscribe-left h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--blue);
  margin: 0 0 28px;
}

.subscribe-rule { height: 1px; background: #ddd; margin-bottom: 28px; }

.subscribe-form { display: flex; gap: 0; max-width: 420px; }
.subscribe-form input {
  flex: 1; border: 1px solid #ddd; border-right: none; padding: 16px;
  font-size: 14px; font-family: 'Inter', sans-serif; outline: none;
  border-radius: 4px 0 0 4px;
}
.subscribe-form button {
  background: var(--blue); color: #fff; border: none; padding: 16px 26px;
  font-family: 'Archivo Black', sans-serif; font-size: 12px; letter-spacing: 1px;
  cursor: pointer; border-radius: 0 4px 4px 0; white-space: nowrap;
  transition: background 0.2s ease;
}
.subscribe-form button:hover { background: #1a1ab8; }

.subscribe-msg { margin-top: 12px; font-size: 13px; font-weight: 600; min-height: 18px; }
.subscribe-msg.error { color: var(--red); }
.subscribe-msg.success { color: #1a9e4e; }

.subscribe-socials { display: flex; gap: 14px; margin-top: 32px; }
.subscribe-socials a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--blue);
  display: flex; align-items: center; justify-content: center; color: #fff;
  text-decoration: none; font-weight: 700; transition: transform 0.2s ease;
}
.subscribe-socials a:hover { transform: scale(1.1); }
.subscribe-socials a svg { width: 17px; height: 17px; }

.contact-list { display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
}
.contact-text { font-size: 14px; font-weight: 600; line-height: 1.5; }

/* ---------- FOOTER ---------- */

.footer {
  background: var(--bg);
  padding: 48px 6vw;
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr auto;
  gap: 32px;
  align-items: start;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo Black', sans-serif; font-size: 13px;
}
.footer-heading { font-family: 'Archivo Black', sans-serif; font-size: 12px; letter-spacing: 1px; margin-bottom: 10px; }
.footer-text { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { color: #fff; text-decoration: none; font-size: 18px; display: flex; }
.footer-socials svg { width: 18px; height: 18px; }

/* ---------- MODALS ---------- */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(6,6,20,0.75);
  z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: #fff; color: var(--ink);
  width: 100%; max-width: 440px;
  border-radius: 8px; padding: 36px;
  position: relative;
  max-height: 90vh; overflow: auto;
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 22px; cursor: pointer; color: #666;
}

.modal-title { font-family: 'Archivo Black', sans-serif; font-size: 22px; color: var(--blue); margin-bottom: 22px; }

.modal-form { display: flex; flex-direction: column; gap: 16px; }
.form-field label { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: #444; display: block; margin-bottom: 6px; }
.form-field input, .form-field select {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px;
  font-family: 'Inter', sans-serif; font-size: 14px;
}
.form-field input.error, .form-field select.error { border-color: var(--red); }
.form-error { color: var(--red); font-size: 12.5px; font-weight: 600; }
.modal-submit { margin-top: 8px; background: var(--green); color: var(--green-ink); border: none; padding: 15px; font-family: 'Archivo Black', sans-serif; font-size: 13px; letter-spacing: 1px; border-radius: 4px; cursor: pointer; }

.modal-success { text-align: center; padding: 20px 0; }
.modal-success-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  font-size: 28px; color: var(--green-ink);
}
.modal-success-title { font-family: 'Archivo Black', sans-serif; font-size: 20px; margin-bottom: 10px; }
.modal-success-text { font-size: 14px; color: #666; line-height: 1.6; }
.modal-success .btn { margin-top: 26px; background: var(--blue); color: #fff; padding: 14px 30px; font-size: 12px; }
.modal-success .btn:hover { background: #1a1ab8; }

.modal-tour-date { font-size: 13px; color: #888; margin-bottom: 22px; }

/* ---------- FACILITIES GALLERY ---------- */

.gallery-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 6vw 100px;
}

.gallery-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.gallery-reveal.visible { opacity: 1; transform: translateY(0); }

.gallery-stage {
  position: relative;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  height: min(56vw, 640px);
  min-height: 300px;
  background: #111;
}

.gallery-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.gallery-slide.active { opacity: 1; pointer-events: auto; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: none; z-index: 5;
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.gallery-arrow:hover { transform: translateY(-50%) scale(1.08); }
.gallery-arrow--prev { left: 24px; background: var(--blue); }
.gallery-arrow--next { right: 24px; background: var(--green); color: var(--green-ink); }

.gallery-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: all 0.3s ease; padding: 0;
}
.gallery-dot.active { width: 22px; background: var(--green); }

.gallery-copy {
  background: #111; padding: 48px 6vw; text-align: center; border-radius: 0 0 4px 4px;
}
.gallery-copy p {
  max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.85);
}
.gallery-copy p + p { margin-top: 20px; }

.gallery-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .subscribe-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-socials { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer { grid-template-columns: 1fr; }
  .gallery-arrow { width: 42px; height: 42px; font-size: 16px; }
  .gallery-arrow--prev { left: 12px; }
  .gallery-arrow--next { right: 12px; }
}
