/* ============================================================
   UNIVERSAL PADEL RATING — STYLESHEET
   Institutional authority: clean white + deep slate + UPR gold
   General Sans (headings) · Inter (body)
   The standard that sits above all platforms.
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&f[]=satoshi@400,500,700&display=swap');

:root {
  --font-display: 'General Sans', 'Inter', system-ui, sans-serif;
  --font-body:    'Satoshi', 'Inter', system-ui, sans-serif;

  /* UPR palette — authoritative light */
  --bg:           #F8F7F4;
  --bg-alt:       #FFFFFF;
  --bg-dark:      #0E1117;
  --bg-dark-2:    #161C26;
  --surface:      #FFFFFF;
  --surface-alt:  #F2F1EE;
  --border:       #E2E0DB;
  --border-dark:  #1E2A38;
  --text:         #12100E;
  --text-muted:   #6B6760;
  --text-faint:   #B5B3AE;
  --text-inverse: #F8F7F4;
  
  /* UPR brand accents */
  --gold:         #C9A84C;   /* the standard — gold like a governing body seal */
  --gold-light:   #F0D080;
  --gold-dark:    #8A6A20;
  --gold-subtle:  rgba(201,168,76,0.10);
  --gold-glow:    rgba(201,168,76,0.20);
  --teal:         #00B8A5;   /* Raydel connection point */
  --teal-subtle:  rgba(0,184,165,0.08);
  --slate:        #1E2D3D;
  --slate-muted:  #4A5568;

  /* Spacing */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-6: 1.5rem;   --sp-8: 2rem;
  --sp-10: 2.5rem;  --sp-12: 3rem;    --sp-16: 4rem;
  --sp-20: 5rem;    --sp-24: 6rem;    --sp-32: 8rem;

  /* Radius */
  --r-sm: 0.375rem; --r-md: 0.625rem; --r-lg: 0.875rem;
  --r-xl: 1.25rem;  --r-2xl: 2rem;    --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-gold: 0 0 32px rgba(201,168,76,0.18);

  /* Layout */
  --content: 1120px;
  --narrow:  640px;

  /* Transitions */
  --fast: 150ms cubic-bezier(0.16,1,0.3,1);
  --smooth: 360ms cubic-bezier(0.16,1,0.3,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container--narrow { max-width: var(--narrow); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248,247,244,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--fast);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--sp-8);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-seal {
  width: 32px; height: 32px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--fast);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav-cta a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
}
.btn-nav-ghost {
  color: var(--text-muted);
  transition: color var(--fast);
  padding: 0.4rem 0;
}
.btn-nav-ghost:hover { color: var(--text); }
.btn-nav-primary {
  background: var(--text);
  color: var(--text-inverse);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  transition: background var(--fast), transform var(--fast);
}
.btn-nav-primary:hover { background: var(--slate); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--fast), opacity var(--fast);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-6);
  flex-direction: column;
  gap: var(--sp-4);
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--fast);
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover, .mobile-link.active { color: var(--text); }
.mobile-link--cta {
  display: inline-block;
  margin-top: var(--sp-2);
  background: var(--text);
  color: var(--text-inverse);
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-full);
  font-weight: 600;
  text-align: center;
}

@media(max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.925rem;
  border-radius: var(--r-full);
  padding: 0.7rem 1.5rem;
  transition: all var(--fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--text-inverse);
}
.btn-primary:hover { background: var(--slate); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold-subtle); transform: translateY(-1px); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--sp-4);
}
.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── SECTION SPACING ── */
.section { padding: var(--sp-24) 0; }
.section-lg { padding: var(--sp-32) 0; }
.section-sm { padding: var(--sp-16) 0; }

/* ── DIVIDERS ── */
.divider { border: none; border-top: 1px solid var(--border); }
.divider-dark { border: none; border-top: 1px solid var(--border-dark); }

/* ── HEADINGS ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
}
.h-hero {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.04;
}
.h-section {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 700;
}
.h-card {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
}

/* ── BODY TEXT ── */
.lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
}
.body-text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── DARK SECTION ── */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--text-inverse); }
.section-dark .lead,
.section-dark .body-text { color: rgba(248,247,244,0.6); }
.section-dark .eyebrow { color: var(--gold-light); }

/* ── UPR SEAL / BADGE ── */
.upr-seal {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--gold-subtle);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--r-full);
  padding: 0.45rem 1rem 0.45rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}
.upr-seal-icon {
  width: 22px; height: 22px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: #fff;
  font-weight: 800;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── FOOTER ── */
.footer {
  background: var(--bg-dark);
  color: rgba(248,247,244,0.5);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
@media(max-width:860px){
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
@media(max-width:520px){
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand-col {}
.footer-logo {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(248,247,244,0.85);
  margin-bottom: var(--sp-4);
}
.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 260px;
  color: rgba(248,247,244,0.35);
}
.footer-col-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.3);
  margin-bottom: var(--sp-4);
}
.footer-col-links {
  display: flex; flex-direction: column; gap: var(--sp-3);
  list-style: none;
}
.footer-col-links a {
  font-size: 0.875rem;
  color: rgba(248,247,244,0.5);
  transition: color var(--fast);
}
.footer-col-links a:hover { color: rgba(248,247,244,0.85); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-8);
  font-size: 0.8rem;
  color: rgba(248,247,244,0.25);
}
.footer-marks {
  font-size: 0.75rem;
  color: rgba(248,247,244,0.2);
  line-height: 1.6;
}

/* ── UTILITY ── */
.text-gold { color: var(--gold); }
.text-gold-dark { color: var(--gold-dark); }
.text-teal { color: var(--teal); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

/* =========================
   Language Switcher (Flag Buttons)
   ========================= */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-right: 0.75rem;
  padding: 0.25rem;
  background: rgba(248, 247, 244, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 999px;
}
.lang-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  opacity: 0.55;
  filter: grayscale(35%);
}
.lang-btn:hover {
  opacity: 1;
  filter: grayscale(0%);
  background: rgba(201, 168, 76, 0.10);
}
.lang-btn.lang-active {
  background: rgba(201, 168, 76, 0.20);
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.45);
}
@media (max-width: 900px) {
  .lang-switcher {
    margin-right: 0.4rem;
    padding: 0.2rem;
  }
  .lang-btn {
    padding: 0.25rem 0.4rem;
    font-size: 1rem;
  }
}

/* Logo image */
.nav-logo-img { display:block; height:44px; width:auto; object-fit:contain; border-radius:6px; }
