/* ============================================================
   STUDENT ATHLETES OF ISRAEL — Brand v1.0 design system
   סטודנטים ספורטאים בישראל · Sport. School. Beyond.
   ------------------------------------------------------------
   Implements the Israel Athletes Brand Book v1.0 (May 17 2026):
   60% Stone Cream backdrop · 30% Tekhelet Blue / Deep Navy
   content · 10% Victory Gold accent. Heebo for display, Assistant
   for body. Pill-shaped buttons, sharp geometric details.
   ============================================================ */

:root {
  /* ---- Brand book v1.0 palette ---- */
  --tekhelet:      #0038B8;          /* Primary brand blue */
  --deep-navy:     #001A5C;          /* Secondary · headlines · text */
  --victory-gold:  #D4A24A;          /* 10% accent */
  --stone-cream:   #F4F1EC;          /* 60% background */
  --charcoal:      #1A1A1A;          /* Body type */
  --court-red:     #C8102E;          /* Reserved / alerts */
  --olive:         #6B8E23;          /* Reserved */
  --pure-white:    #FFFFFF;
  --cream-warm:    #EEEAE2;          /* slight depth over stone */
  --stone-2:       #E9E5DC;          /* divider tint */

  /* ---- Aliases — keep prior variable names so legacy inline ----
       styles re-skin automatically into the new palette.
       Their *role* (foreground vs background) is preserved.    */
  --navy:    var(--deep-navy);       /* was dark bg → now navy content/text */
  --navy2:   var(--cream-warm);      /* was alt dark bg → now alt cream */
  --blue:    var(--tekhelet);        /* unchanged role */
  --gold:    var(--victory-gold);
  --gold-light: #E8C588;
  --gold-dark:  #B8862A;
  --white:   var(--stone-cream);     /* was off-white text on dark → now cream surface */
  --ink:     var(--charcoal);        /* primary text */
  --grey:    #5C6470;                /* muted secondary text */
  --body:    rgba(26,26,26,0.78);
  --card-bg: var(--pure-white);
  --border:  rgba(0,56,184,0.18);    /* hairline tekhelet */
  --border-gold: rgba(212,162,74,0.45);

  --radius-pill: 999px;
  --radius-sm:   3px;
  --radius-md:   6px;

  --shadow-card: 0 6px 24px rgba(0,26,92,0.08), 0 1px 0 rgba(0,26,92,0.04);
  --shadow-lift: 0 14px 36px rgba(0,26,92,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--stone-cream);
  color: var(--charcoal);
  font-family: 'Assistant', 'Heebo', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem;
  padding: 0.75rem 2rem;
  background: rgba(244,241,236,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo-img {
  display: block;
  width: 34px; height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .nav-logo-img { width: 28px; height: 28px; }
}
.nav-wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav-wordmark-sai {
  font-family: 'Heebo', sans-serif;
  font-weight: 900; font-size: 1.15rem; letter-spacing: 0.02em;
  color: var(--deep-navy); text-transform: uppercase;
}
.nav-wordmark-sub {
  font-family: 'Heebo', sans-serif;
  font-weight: 700; font-size: 0.56rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--victory-gold); margin-top: 2px;
}
.nav-links { display: flex; gap: 1.3rem; list-style: none; }
.nav-links a {
  font-family: 'Heebo', sans-serif;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  color: var(--deep-navy);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--tekhelet); }
.nav-cta {
  font-family: 'Heebo', sans-serif;
  font-weight: 700; font-size: 0.76rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  background: var(--tekhelet); color: var(--pure-white);
  padding: 0.5rem 1.2rem; border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,56,184,0.18);
}
.nav-cta:hover {
  background: var(--deep-navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,56,184,0.28);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--deep-navy);
}
.nav-hamburger:focus-visible { outline: 2px solid var(--tekhelet); outline-offset: 2px; }
.nav-mobile-menu {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(82vw, 340px);
  background: var(--pure-white);
  border-left: 1px solid var(--border);
  padding: 5rem 2rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1.6rem;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0,0,0.2,1);
  box-shadow: -20px 0 40px rgba(0,26,92,0.08);
}
.nav-mobile-menu.open { transform: translateX(0); }
.nav-mobile-menu a {
  font-family: 'Heebo', sans-serif;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  color: var(--deep-navy);
}
.nav-mobile-menu a:hover { color: var(--tekhelet); }

@media (max-width: 900px) {
  nav { padding: 0.9rem 1.25rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: inline-flex; align-items: center; }
  .nav-mobile-menu { display: flex; }
}

/* ── BUTTONS — pill-shaped, brand-book spec ──────────────── */
.btn-primary {
  font-family: 'Heebo', sans-serif;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  background: var(--tekhelet); color: var(--pure-white);
  padding: 0.95rem 2.4rem; border-radius: var(--radius-pill);
  display: inline-block; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(0,56,184,0.22);
}
.btn-primary:hover {
  background: var(--deep-navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,56,184,0.30);
}
.btn-primary:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.btn-outline {
  font-family: 'Heebo', sans-serif;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  border: 1.5px solid var(--deep-navy); color: var(--deep-navy);
  padding: 0.95rem 2.4rem; border-radius: var(--radius-pill);
  display: inline-block; cursor: pointer; background: transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.btn-outline:hover {
  background: var(--deep-navy);
  color: var(--pure-white);
  border-color: var(--deep-navy);
}

/* Light variant for use over photography / dark hero overlays */
.btn-on-dark {
  background: var(--pure-white);
  color: var(--deep-navy);
}
.btn-on-dark:hover { background: var(--victory-gold); color: var(--deep-navy); }

/* ── EYEBROW + SECTION TITLE ─────────────────────────────── */
.section-tag {
  font-family: 'Heebo', sans-serif;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--victory-gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Heebo', sans-serif;
  font-weight: 900; font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  text-transform: uppercase; line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--deep-navy);
  margin-bottom: 1.4rem;
}
.section-title em {
  font-style: normal;
  font-family: 'Heebo', sans-serif;
  font-weight: 900;
  color: var(--victory-gold);
}

/* ── GOLD RULE (brand ornament) ──────────────────────────── */
.gold-rule {
  display: block;
  width: 64px; height: 3px;
  background: var(--victory-gold);
  margin: 0 0 1.4rem;
  border: none;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* ── SEAL (footer ornament) ──────────────────────────────── */
.footer-seal {
  display: block;
  width: 80px; height: 80px;
  margin: 0 auto 1rem;
  opacity: 1;
  transition: opacity 0.25s, transform 0.3s;
}
.footer-seal:hover { opacity: 0.85; transform: scale(1.04); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 3px solid var(--victory-gold);
  padding: 3.2rem 4rem 2rem;
  text-align: center;
  background: var(--pure-white);
  color: var(--deep-navy);
}
.footer-wordmark {
  font-family: 'Heebo', sans-serif;
  font-weight: 900; font-size: 1.2rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--deep-navy); margin-bottom: 0.4rem;
}
.footer-sub {
  font-family: 'Heebo', sans-serif;
  font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--victory-gold); margin-bottom: 1.5rem;
}
.footer-links {
  display: flex; justify-content: center; gap: 2rem;
  flex-wrap: wrap; list-style: none; margin-bottom: 1.4rem;
}
.footer-links a {
  font-family: 'Heebo', sans-serif;
  font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--deep-navy); opacity: 0.78;
  text-decoration: none; transition: opacity 0.2s, color 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--tekhelet); }
.footer-copy {
  font-family: 'Assistant', sans-serif;
  font-size: 0.78rem; color: var(--grey); letter-spacing: 0.04em;
}

/* ── ICONS (single-stroke, 2px) ──────────────────────────── */
.icon {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.125em;
  stroke: currentColor; fill: none;
  stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-gold { color: var(--victory-gold); }
.icon-blue { color: var(--tekhelet); }
.icon-navy { color: var(--deep-navy); }
.icon-lg { width: 1.5em; height: 1.5em; }

/* ── ACCESSIBILITY ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--tekhelet);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--tekhelet); color: var(--pure-white);
  padding: 0.75rem 1.25rem;
  font-family: 'Heebo', sans-serif;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius-pill);
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── HEBREW (RTL) helpers ───────────────────────────�
/* WHATSAPP CONTACT BUBBLE */
.whatsapp-bubble{
  position:fixed; right:1.5rem; bottom:1.5rem;
  width:60px; height:60px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--tekhelet); color:var(--pure-white);
  box-shadow:0 6px 20px rgba(0,26,92,0.30), 0 0 0 1px rgba(0,56,184,0.20), 0 0 0 6px rgba(0,56,184,0.10);
  z-index:10001;
  text-decoration:none;
  transition:transform 0.2s cubic-bezier(0,0,0.2,1), box-shadow 0.25s, background 0.2s;
}
.whatsapp-bubble:hover,
.whatsapp-bubble:focus-visible{
  transform:translateY(-2px) scale(1.04);
  background:var(--deep-navy);
  box-shadow:0 8px 28px rgba(0,26,92,0.40), 0 0 0 1px rgba(0,56,184,0.30), 0 0 0 8px rgba(0,56,184,0.16);
}
.whatsapp-bubble svg{ width:30px; height:30px; fill:var(--pure-white); }
.whatsapp-bubble-label{
  position:absolute; right:calc(100% + 0.75rem); top:50%;
  transform:translateY(-50%) translateX(8px);
  background:var(--pure-white); color:var(--deep-navy);
  font-family:'Heebo',sans-serif; font-weight:700;
  font-size:0.78rem; letter-spacing:0.08em; text-transform:uppercase;
  padding:0.55rem 0.9rem; border-radius:var(--radius-pill);
  border:1px solid var(--border); white-space:nowrap;
  opacity:0; pointer-events:none;
  transition:opacity 0.2s, transform 0.2s;
  box-shadow:0 4px 12px rgba(0,26,92,0.12);
}
.whatsapp-bubble:hover .whatsapp-bubble-label,
.whatsapp-bubble:focus-visible .whatsapp-bubble-label{
  opacity:1; transform:translateY(-50%) translateX(0);
}
@keyframes whatsappPulse{
  0%,100%{ box-shadow:0 6px 20px rgba(0,26,92,0.30), 0 0 0 1px rgba(0,56,184,0.20), 0 0 0 6px rgba(0,56,184,0.10); }
  50%   { box-shadow:0 6px 20px rgba(0,26,92,0.30), 0 0 0 1px rgba(0,56,184,0.20), 0 0 0 14px rgba(0,56,184,0); }
}
.whatsapp-bubble.attn{ animation:whatsappPulse 1.6s ease-out 2; }
@media (max-width:640px){
  .whatsapp-bubble{ right:1rem; bottom:1rem; width:54px; height:54px; }
  .whatsapp-bubble svg{ width:26px; height:26px; }
  .whatsapp-bubble-label{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  .whatsapp-bubble, .whatsapp-bubble-label{ transition:none; animation:none; }
  .whatsapp-bubble.attn{ animation:none; }
}
@media print{ .whatsapp-bubble{ display:none; } }

/* NAV SOCIAL ICONS */
.nav-social{
  display:inline-flex; align-items:center;
  gap:0.35rem; margin-right:0.5rem;
}
.nav-social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:30px; height:30px; border-radius:50%;
  color:var(--deep-navy); text-decoration:none;
  background:transparent; border:1px solid var(--border);
  transition:background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.nav-social a:hover,
.nav-social a:focus-visible{
  color:var(--pure-white);
  background:var(--tekhelet);
  border-color:var(--tekhelet);
  transform:translateY(-1px);
}
/* Don't force fill — each SVG declares its own fill/stroke so stroked icons
   (Instagram outline) render alongside filled icons (LinkedIn glyph). */
.nav-social svg{ width:17px; height:17px; display:block; }
@media (max-width:900px){
  .nav-social{ gap:0.4rem; margin-right:0.45rem; margin-left:auto; }
  .nav-social a{ width:34px; height:34px; }
  .nav-social svg{ width:16px; height:16px; }
}
@media (max-width:360px){
  .nav-social a{ width:32px; height:32px; }
  .nav-social svg{ width:15px; height:15px; }
}
