/* ================================================
   ACADEMIA DE TENIS JORDI MELERO
   Shared Design System — styles.css
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Raleway:wght@300;400;600;700&family=Nunito:wght@300;400;700&display=swap');

/* ------------------------------------------------
   TOKENS
   ------------------------------------------------ */
:root {
  --brand-green:  #CCFF00;
  --brand-dark:   #080808;
  --brand-white:  #FFFFFF;
  --brand-gray:   #888;

  --nav-h: 96px;
  --max-w: 1180px;
  --gap:   clamp(64px, 9vw, 120px);
  --px:    clamp(20px, 5vw, 64px);

  --ease:    cubic-bezier(.16,1,.3,1);
  --spring:  cubic-bezier(.34,1.56,.64,1);
  --t:       .36s var(--ease);

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  36px;
}

/* ------------------------------------------------
   RESET
   ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--brand-dark);
  color: var(--brand-white);
  opacity: 0;
  transition: opacity .42s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.65;
}
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ------------------------------------------------
   NAVBAR
   ------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  transition: background .4s ease, box-shadow .4s ease;
}
.navbar.scrolled {
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 82px;
  width: auto;
  display: block;
  object-fit: contain;
  background: none;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  padding: 7px 12px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .3px;
  color: rgba(255,255,255,.82);
  border-radius: 100px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a:hover             { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a.active            { color: var(--brand-dark); background: var(--brand-green); font-weight: 700; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 201;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--t);
}

/* ------------------------------------------------
   FOOTER
   ------------------------------------------------ */
.site-footer {
  background: #030303;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 52px var(--px) 32px;
  text-align: center;
}
.footer-logo-img {
  height: 72px;
  width: auto;
  margin: 0 auto 14px;
  display: block;
  opacity: .85;
  object-fit: contain;
  background: none;
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2.5px;
  margin-bottom: 4px;
}
.footer-location {
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-green);
  font-weight: 600;
  margin-bottom: 24px;
}
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-bottom: 28px;
}
.footer-links-row a {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-links-row a:hover { color: var(--brand-green); }
.footer-divider {
  width: 40px; height: 1px;
  background: rgba(255,255,255,.12);
  margin: 24px auto;
}
.footer-copy {
  font-size: .72rem;
  color: rgba(255,255,255,.2);
}

/* ------------------------------------------------
   CONTAINER
   ------------------------------------------------ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ------------------------------------------------
   SCROLL REVEAL
   ------------------------------------------------ */
.reveal, .reveal-l, .reveal-r {
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal   { opacity: 0; transform: translateY(30px); }
.reveal-l { opacity: 0; transform: translateX(-30px); }
.reveal-r { opacity: 0; transform: translateX(30px); }
.reveal.in, .reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }

[data-d="1"] { transition-delay: .08s; }
[data-d="2"] { transition-delay: .16s; }
[data-d="3"] { transition-delay: .24s; }
[data-d="4"] { transition-delay: .32s; }
[data-d="5"] { transition-delay: .40s; }
[data-d="6"] { transition-delay: .48s; }

/* ------------------------------------------------
   BUTTONS
   ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .3px;
  transition: var(--t);
  white-space: nowrap;
}
.btn-green { background: var(--brand-green); color: #000; }
.btn-green:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 6px 30px rgba(204,255,0,.3); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-outline:hover { border-color: var(--brand-green); color: var(--brand-green); transform: translateY(-2px); }

/* ------------------------------------------------
   SECTION LABEL
   ------------------------------------------------ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(204,255,0,.1);
  border: 1px solid rgba(204,255,0,.22);
  color: var(--brand-green);
  margin-bottom: 18px;
}

/* ------------------------------------------------
   MOBILE
   ------------------------------------------------ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.35rem; padding: 13px 32px; letter-spacing: 1px; }
  .nav-burger { display: flex; }
}

/* ------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
