/* ============================================================
   PADEL CUP — Design System partagé
   padel.haus-level · Bebas Neue + Inter · White-first
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --bg:        #FFFFFF;
  --bg-alt:    #F8F8F8;
  --dark:      #0a0a0a;
  --text:      #111111;
  --muted:     rgba(17,17,17,.52);
  --primary:   #D42B87;
  --soft:      #FFB3C1;
  --accent:    #D4E020;
  --border:    #E8E8E8;
  --ff-title:  'Bebas Neue', sans-serif;
  --ff-body:   'Inter', sans-serif;
  --nav-h:     72px;
  --ease:      cubic-bezier(.4,0,.2,1);
  --t:         .3s cubic-bezier(.4,0,.2,1);
  --shadow:    0 2px 20px rgba(0,0,0,.06);
  --shadow-md: 0 8px 40px rgba(0,0,0,.10);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--ff-body); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--ff-body); border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: var(--ff-body); }

/* ── Grid/Layout ── */
.wrap   { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.wrap-sm{ max-width: 900px;  margin: 0 auto; padding: 0 48px; }
.sec    { padding: clamp(80px,10vw,140px) 0; }
.sec-sm { padding: clamp(48px,6vw,80px) 0; }

/* ── Typography scale ── */
.t-display { font-family: var(--ff-title); font-size: clamp(4.5rem,10vw,9rem);   line-height: .9;  letter-spacing: .02em; text-transform: uppercase; }
.t-h1      { font-family: var(--ff-title); font-size: clamp(2.8rem,6vw,5.5rem);  line-height: .93; letter-spacing: .02em; text-transform: uppercase; }
.t-h2      { font-family: var(--ff-title); font-size: clamp(2rem,4vw,3.5rem);    line-height: .94; letter-spacing: .02em; text-transform: uppercase; }
.t-h3      { font-family: var(--ff-title); font-size: clamp(1.5rem,3vw,2.5rem);  line-height: .95; letter-spacing: .02em; text-transform: uppercase; }
.t-label   { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }

/* ── Section label (pink line + text) ── */
.sec-label { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-label::before { content: ''; width: 24px; height: 2px; background: var(--primary); flex-shrink: 0; }
.sec-label span { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 13px 30px; border-radius: 50px; transition: var(--t); cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(212,43,135,.32); }
.btn-ghost   { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-white   { background: #fff; color: var(--dark); }
.btn-white:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg  { padding: 17px 44px; font-size: .875rem; }
.btn-sm  { padding: 10px 22px; font-size: .75rem; }

/* ── Pills ── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 50px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill-primary { background: var(--primary); color: #fff; }
.pill-light   { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.pill-dark    { background: rgba(17,17,17,.06); border: 1px solid var(--border); color: var(--muted); }
.pill-accent  { background: var(--accent); color: var(--dark); }

/* ── Inline SVG logo ── */
.logo-path { fill: #fff; transition: fill .35s ease; }
.logo-path-dark { fill: #111111; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 130px !important; width: auto !important; max-height: 130px !important; max-width: none !important; }
.footer-brand img { height: 130px !important; width: auto !important; max-height: 130px !important; max-width: none !important; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .75rem; font-weight: 600; letter-spacing: .05em; color: rgba(255,255,255,.72); transition: color var(--t); }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-conn { font-size: .75rem; font-weight: 600; letter-spacing: .05em; color: rgba(255,255,255,.72); transition: color var(--t); }
.nav-conn:hover { color: #fff; }

/* Nav solid (white bg) */
.nav.solid {
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 24px rgba(0,0,0,.06);
}
.nav.solid .logo-path { fill: #111111; }
.nav.solid .nav-links a { color: var(--muted); }
.nav.solid .nav-links a:hover { color: var(--text); }
.nav.solid .nav-conn { color: var(--muted); }
.nav.solid .nav-conn:hover { color: var(--text); }
.nav.solid .burger span { background: var(--text); }
.nav.solid .burger.open span { background: #fff; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; z-index: 201; }
.burger span { display: block; width: 22px; height: 1.5px; background: #fff; transition: var(--t); }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mob-menu {
  position: fixed; inset: 0; background: #111111; z-index: 199;
  display: flex; flex-direction: column; padding: calc(var(--nav-h) + 28px) 40px 48px;
  transform: translateX(100%); transition: transform .45s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mob-menu.open { transform: translateX(0); }
.mob-links { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mob-links a {
  font-family: var(--ff-title); font-size: clamp(36px,9vw,64px);
  letter-spacing: .02em; text-transform: uppercase; color: rgba(255,255,255,.28);
  display: block; padding: 4px 0; line-height: 1.1; transition: color .2s ease;
}
.mob-links a:hover { color: #ffffff; }
.mob-foot { margin-top: auto; padding-top: 36px; }

/* ── FOOTER ── */
.footer { background: var(--dark); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 56px; }
.footer-brand-desc { color: rgba(255,255,255,.38); font-size: .875rem; line-height: 1.75; margin-top: 20px; max-width: 280px; }
.footer-col h5 { font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .875rem; color: rgba(255,255,255,.42); transition: color var(--t); }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.18); }
.footer-socials { display: flex; gap: 10px; }
.soc-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: .75rem; transition: var(--t); }
.soc-btn:hover { background: var(--primary); color: #fff; }

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 16px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transform: translateY(100%); transition: transform .4s ease;
  box-shadow: 0 -4px 32px rgba(0,0,0,.07);
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { font-size: .8125rem; color: var(--muted); max-width: 640px; line-height: 1.6; }
#cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Reveal on scroll ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }

/* ── Back link ── */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); transition: color var(--t);
}
.back-link i { font-size: .75rem; transition: transform var(--t); }
.back-link:hover { color: var(--primary); }
.back-link:hover i { transform: translateX(-3px); }

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .wrap, .wrap-sm { padding: 0 28px; }
  .nav-inner { padding: 0 28px; }
  .nav-links, .nav-conn { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  #cookie-banner { padding: 16px 28px; }
}
@media (max-width: 640px) {
  .wrap, .wrap-sm { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .sec { padding: 64px 0; }
  .sec-sm { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
  .cookie-btns { width: 100%; }
  .cookie-btns .btn { flex: 1; justify-content: center; }
  /* Prevent iOS auto-zoom on form inputs */
  input, select, textarea { font-size: 1rem !important; }
  /* Ensure touch targets are large enough */
  .btn { min-height: 44px; }
  /* Logo size on mobile */
  .nav-logo img { height: 72px !important; max-height: 72px !important; }
  .footer-brand img { height: 90px !important; max-height: 90px !important; }
}
