/* ============================================================
   Gymnast - מחנה קיץ · styles.css
   סגנון Modern / Glass · פוקסיה אחיד + תכלת + שחור · Mobile First · RTL
   (מותאם ל-DESIGN.html)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --color-primary: #E5006E;
  --color-primary-dark: #B80058;
  --color-secondary: #22C7E8;
  --color-secondary-light: #6FE3F5;
  --color-ink: #0E0E12;
  --color-bg: #F5F6FB;
  --color-surface: rgba(255,255,255,.62);
  --color-text: #15151B;
  --color-text-muted: #6A6A78;
  --color-border: rgba(14,14,18,.08);
  --color-whatsapp: #25D366;
  --color-success: #16A34A;
  --color-error: #DC2626;

  /* glass */
  --glass: rgba(255,255,255,.55);
  --glass-strong: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.65);
  --blur: blur(18px) saturate(140%);

  --fs-h1: 34px;
  --fs-h2: 26px;
  --fs-h3: 20px;
  --fs-body: 16px;
  --fs-small: 14px;

  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;

  --radius-sm: 10px; --radius-md: 18px; --radius-lg: 28px; --radius-full: 999px;

  --shadow-soft: 0 8px 30px rgba(20,20,40,.08);
  --shadow-glass: 0 8px 32px rgba(31,38,135,.12);
  --shadow-glow: 0 20px 60px rgba(229,0,110,.25);

  --container: 1160px;
  --section-gap: var(--space-12);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Heebo", system-ui, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background:
    radial-gradient(800px 500px at 100% -5%, rgba(229,0,110,.16), transparent 60%),
    radial-gradient(700px 500px at -5% 8%, rgba(34,199,232,.16), transparent 55%),
    var(--color-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 var(--space-4); line-height: 1.12; color: var(--color-ink); }
p { margin: 0 0 var(--space-3); }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 720px; }
.text-primary { color: var(--color-primary); }

/* glass utility */
.glass {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: 700; font-size: var(--fs-body); padding: 14px 30px; min-height: 50px;
  border-radius: var(--radius-full); border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .25s;
  text-align: center;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--ghost { background: var(--glass-strong); backdrop-filter: blur(12px); border-color: var(--glass-border); color: var(--color-ink); box-shadow: var(--shadow-glass); }
.btn--ghost:hover { background: #fff; }
.btn--ghost-light { background: rgba(255,255,255,.16); backdrop-filter: blur(10px); border-color: rgba(255,255,255,.55); color: #fff; box-shadow: none; }
.btn--ghost-light:hover { background: rgba(255,255,255,.28); }
.btn--whatsapp { background: var(--color-whatsapp); color: #fff; box-shadow: 0 16px 40px rgba(37,211,102,.30); }
.btn--whatsapp:hover { filter: brightness(.97); }
.btn--sm { padding: 10px 20px; min-height: 42px; font-size: var(--fs-small); }
.btn--block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-gap); }
.section__title { font-size: var(--fs-h2); font-weight: 800; text-align: center; }
.section__title--light { color: #fff; }
.section__lead { text-align: center; color: var(--color-text-muted); max-width: 640px; margin-inline: auto; margin-bottom: var(--space-8); }
.section__lead--light { color: rgba(255,255,255,.88); }

/* ---------- Topbar (sticky) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--color-primary); color: #fff; text-align: center;
  font-size: var(--fs-small); font-weight: 500; padding: 9px 16px;
}
.topbar strong { font-weight: 800; }
.topbar__icon { font-weight: 800; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: var(--topbar-h, 39px); z-index: 50;
  background: rgba(255,255,255,.6); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3);
  padding: 10px 20px;
}
.site-header__side { display: flex; align-items: center; }
.site-header__side--start { justify-content: flex-start; }
.site-header__side--end { justify-content: flex-end; }
.site-header__logo { justify-self: center; display: block; line-height: 0; }
.site-header__logo img { height: 46px; width: auto; }
@media (max-width: 480px) {
  .site-header { padding: 8px 12px; }
  .site-header .btn--sm { padding: 8px 14px; font-size: 13px; min-height: 38px; }
  .site-header__logo img { height: 40px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-8) var(--space-12); overflow: hidden; text-align: center; }
.hero__media { margin-bottom: var(--space-8); }
.hero__img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  background: #fff;
}
.hero__text { max-width: 720px; margin-inline: auto; }
.hero__title { font-size: var(--fs-h1); font-weight: 900; }
.hero__subtitle { font-size: 18px; color: var(--color-text); margin-bottom: var(--space-4); }
.hero__points {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  margin-bottom: var(--space-6); width: max-content; max-width: 100%; margin-inline: auto;
}
.hero__points li { position: relative; padding-inline-start: 28px; font-weight: 500; }
.hero__points li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--color-primary);
  color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* ---------- Quickbar ---------- */
.quickbar { padding-block: var(--space-8); }
.quickbar__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.quickbar__item {
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
  padding: 28px 16px; border-radius: var(--radius-md);
  background: var(--color-primary); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow-glow);
}
.quickbar__num {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: var(--radius-full); background: rgba(255,255,255,.18);
  font-size: 28px; font-weight: 900; color: #fff; line-height: 1;
}
.quickbar__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: var(--radius-full); color: #fff;
  background: rgba(255,255,255,.18);
}
.quickbar__icon svg { width: 30px; height: 30px; }
.quickbar__label { font-size: 17px; color: #fff; margin-top: 4px; font-weight: 700; line-height: 1.3; }

/* ---------- Cards / Cycles ---------- */
.cycles__grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.card {
  background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-glass); padding: var(--space-6);
}
.cycle { position: relative; text-align: center; display: flex; flex-direction: column; transition: transform .25s; }
.cycle:hover { transform: translateY(-4px); }
.cycle--feat { background: var(--color-primary); border-color: transparent; box-shadow: var(--shadow-glow); }
.cycle--feat .cycle__name, .cycle--feat .cycle__dates, .cycle--feat .cycle__price { color: #fff; }
.cycle--feat .cycle__len, .cycle--feat .cycle__note { color: rgba(255,255,255,.85); }
.cycle--feat .btn--primary { background: #fff; color: var(--color-primary); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cycle--feat .btn--primary:hover { background: #fff; color: var(--color-primary-dark); }
.cycle__badge {
  position: absolute; top: 16px; inset-inline-start: 16px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full);
}
.cycle__name { color: var(--color-primary); font-size: var(--fs-h3); font-weight: 800; margin-top: var(--space-2); }
.cycle__dates { font-weight: 700; font-size: 18px; margin-bottom: 2px; }
.cycle__len { color: var(--color-text-muted); margin-bottom: var(--space-3); }
.cycle__price { font-size: 34px; font-weight: 900; color: var(--color-ink); margin-bottom: var(--space-3); }
.cycle__note { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.cycle .btn { margin-top: auto; }
.cycles__discount { text-align: center; margin-top: var(--space-8); font-weight: 700; color: var(--color-primary); }

/* ---------- Gallery / Videos ---------- */
.videos {
  display: flex; flex-direction: row; gap: var(--space-4);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-3);
  scroll-padding-inline: var(--space-4);
  scrollbar-width: thin;
}
.video-card {
  margin: 0; background: var(--glass); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass); overflow: hidden; padding: 0;
  flex: 0 0 78%; max-width: 320px;
  scroll-snap-align: center;
}
.video-card video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 9/16; object-fit: cover; background: #000;
}
.video-card figcaption {
  padding: 14px 18px; font-weight: 700; color: var(--color-ink);
  text-align: center; border-top: 1px solid var(--glass-border);
}

/* ---------- Why ---------- */
.why__grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.why__item {
  background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-glass);
  border-inline-start: 4px solid var(--color-primary);
}
.why__item h3 { font-size: var(--fs-h3); }
.why__item p { margin: 0; color: var(--color-text-muted); }

/* ---------- FAQ accordion ---------- */
.faq .accordion {
  background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-glass); padding: 6px var(--space-6);
}
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__item:last-child { border-bottom: 0; }
.accordion__head {
  width: 100%; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: var(--fs-body); font-weight: 700; color: var(--color-ink);
  text-align: start; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
}
.accordion__icon { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); flex: none; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; background: #fff; border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%,-50%); transition: transform .3s ease;
}
.accordion__icon::before { width: 12px; height: 2px; }
.accordion__icon::after { width: 2px; height: 12px; }
.accordion__head[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.accordion__body { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.accordion__body p { padding-bottom: var(--space-3); margin: 0; color: var(--color-text-muted); }
.accordion__body p:last-child { padding-bottom: var(--space-4); }
.accordion__body a { color: var(--color-primary); font-weight: 700; }
.accordion__body strong { color: var(--color-ink); }
.faq-list { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: 6px; }
.faq-list li { position: relative; padding-inline-start: 22px; color: var(--color-text-muted); }
.faq-list li::before { content: "•"; position: absolute; inset-inline-start: 6px; top: 0; color: var(--color-primary); font-weight: 800; font-size: 18px; line-height: 1.4; }

/* ---------- Register ---------- */
.register { position: relative; overflow: hidden; background: var(--color-primary); box-shadow: var(--shadow-glow); border-radius: var(--radius-lg); margin-inline: 16px; }
.register::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 88% 0%, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.register > .container { position: relative; z-index: 1; }
.lead-form {
  display: grid; gap: var(--space-4); background: var(--glass-strong); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); padding: var(--space-6); border-radius: var(--radius-lg); box-shadow: var(--shadow-glass);
}
.field { display: grid; gap: 6px; text-align: start; }
.field label { font-weight: 700; font-size: var(--fs-small); }
.field input {
  font-family: inherit; font-size: var(--fs-body); height: 52px; padding: 0 16px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(255,255,255,.8);
}
.field input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(229,0,110,.14); }
.field--invalid input { border-color: var(--color-error); }
.field__error { color: var(--color-error); font-size: 13px; min-height: 16px; }
.lead-form__success { color: var(--color-success); font-weight: 700; text-align: center; margin: 0; }
.field--consent { gap: 4px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-small); font-weight: 400; line-height: 1.5; cursor: pointer; }
.consent input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-primary); cursor: pointer; }
.consent a { color: var(--color-primary); text-decoration: underline; }
.field--consent.field--invalid .consent input { outline: 2px solid var(--color-error); outline-offset: 2px; }
.register__alt { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: var(--fs-h3); margin-top: var(--space-8); }
.legal p { color: var(--color-text); }
.legal a { color: var(--color-primary); text-decoration: underline; }
.legal__list { display: flex; flex-direction: column; gap: var(--space-2); margin: 0 0 var(--space-4); padding-inline-start: var(--space-6); }
.legal__list li { list-style: disc; }

/* ---------- Footer ---------- */
.footer { background: var(--color-ink); color: rgba(255,255,255,.8); padding-block: var(--space-12) var(--space-6); margin-top: var(--space-12); }
.footer__inner { display: grid; gap: var(--space-8); grid-template-columns: 1fr; text-align: center; justify-items: center; }
.footer__social { justify-content: center; }
.footer h4 { color: #fff; font-size: var(--fs-body); }
.footer a:hover { color: var(--color-secondary); }
.footer__logo { background: #fff; border-radius: var(--radius-sm); padding: 6px; height: 56px; width: auto; margin-inline: auto; }
.footer__partner-label { display: block; color: #fff; font-size: var(--fs-body); font-weight: 700; margin-bottom: var(--space-4); }
.footer__social { display: flex; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, color .2s; }
.footer__social a:hover { background: var(--color-secondary); color: var(--color-ink); }
.footer__copy { text-align: center; font-size: 13px; margin: var(--space-8) 0 0; color: rgba(255,255,255,.5); }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom));
  left: 20px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  animation: wapulse 2.5s infinite;
  border: none;
  text-decoration: none;
}
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid #25D366;
  border-radius: 50%;
  opacity: 0;
  animation: waring 2.5s infinite;
}
.whatsapp-fab svg { width: 26px; height: 26px; }
.whatsapp-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes wapulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes waring {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab, .whatsapp-fab::before { animation: none; }
}

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  display: flex; gap: var(--space-2); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.72); backdrop-filter: var(--blur);
  border-top: 1px solid var(--glass-border); box-shadow: 0 -4px 24px rgba(0,0,0,.10);
}
.sticky-cta .btn--whatsapp { flex: none; width: auto; padding-inline: 22px; }
body { padding-bottom: 80px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================ Tablet 768px+ */
@media (min-width: 768px) {
  :root { --fs-h1: 46px; --fs-h2: 32px; --fs-h3: 22px; --section-gap: var(--space-16); }
  .quickbar__grid { grid-template-columns: repeat(4, 1fr); }
  .cycles__grid { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .video-card { flex-basis: 42%; max-width: 360px; }
  .register__alt { flex-direction: row; justify-content: center; }
  .register__alt .btn { flex: 1; max-width: 280px; }
  .footer__inner { grid-template-columns: repeat(4, 1fr); text-align: start; justify-items: start; }
  .footer__social { justify-content: flex-start; }
  .footer__logo { margin-inline: 0; }
  .hero__points { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2) var(--space-6); width: auto; }
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .whatsapp-fab { bottom: calc(28px + env(safe-area-inset-bottom)); width: 60px; height: 60px; }
  .whatsapp-fab svg { width: 30px; height: 30px; }
}

/* ============================================================ Desktop 1024px+ */
@media (min-width: 1024px) {
  :root { --fs-h1: 56px; --fs-h2: 38px; --fs-body: 18px; --section-gap: var(--space-24); }
  .container { padding-inline: 32px; }
  .cycle--feat { transform: scale(1.04); }
  .cycle--feat:hover { transform: scale(1.04) translateY(-4px); }
  .register { margin-inline: auto; max-width: var(--container); }
  .videos {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
    overflow: visible; scroll-snap-type: none; padding-bottom: 0;
  }
  .video-card { flex: initial; max-width: none; scroll-snap-align: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .accordion__body, .cycle { transition: none; }
}
