/* ============================================================
   Yoga Studio — RTL Hebrew landing page
   Palette: sage greens, warm beige/cream, off-white, terracotta
   ============================================================ */

:root {
  /* Colors — מותאמים ללוגו: כחול-אפור מרגיע עם מבטא טרקוטה חמימ */
  --cream:        #f5f1ea;
  --off-white:    #fbfaf6;
  --beige:        #e8dfd1;
  --sage:         #7a93a3;       /* כחול-אפור רך (מתאים למתאר הלוגו) */
  --sage-deep:    #4f6b7a;       /* כחול-אפור עמוק */
  --sage-soft:    #aebec8;       /* כחול-אפור רכרכ */
  --terracotta:   #c0775a;
  --terracotta-d: #a85f44;
  --ink:          #2f3a40;
  --ink-soft:     #647079;
  --line:         #dbd2c2;

  /* Type */
  --serif: "Frank Ruhl Libre", Georgia, serif;
  --sans:  "Assistant", "Heebo", system-ui, sans-serif;

  /* Shape */
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 4px 14px rgba(95, 112, 89, 0.08);
  --shadow-md: 0 14px 40px rgba(95, 112, 89, 0.12);
  --shadow-lg: 0 24px 70px rgba(58, 58, 50, 0.14);

  /* Spacing */
  --pad: clamp(1.25rem, 5vw, 4rem);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--off-white);
  /* גודל הגופן הבסיסי — קריא גם בנייד */
  font-size: clamp(1.02rem, 2.2vw, 1.12rem);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

img { max-width: 100%; display: block; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2.2vw, 1.15rem);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  padding: 1rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn i { font-size: 1.05em; }

.btn--primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 10px 26px rgba(192, 119, 90, 0.32);
}
.btn--primary:hover {
  background: var(--terracotta-d);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(192, 119, 90, 0.4);
}

.btn--soft {
  background: #fff;
  color: var(--sage-deep);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--soft:hover {
  border-color: var(--sage-soft);
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--pad) 5rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(185, 196, 175, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(192, 119, 90, 0.12), transparent 70%),
    linear-gradient(180deg, var(--cream), var(--off-white));
  z-index: -1;
}
.hero__inner { max-width: 640px; }

.logo {
  /* הלוגו עצמו הוא עיגול; אין טעם למסגרת עיגול נוסף — מציגים אותו כתמונה חופשית על הרקע */
  width: 200px;
  height: 200px;
  margin: 0 auto 1.8rem;
  display: block;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(95, 110, 120, 0.18));
}
@media (min-width: 760px) {
  .logo { width: 240px; height: 240px; }
}

.hero__eyebrow {
  text-transform: none;
  letter-spacing: 0.14em;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 600;
  color: var(--sage-deep);
  margin-bottom: 1.4rem;
  line-height: 1.7;
}
.hero__eyebrow-name {
  display: inline-block;
  letter-spacing: 0.08em;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--terracotta);
  margin-top: 0.35rem;
}
.hero__subtitle strong { color: var(--ink); font-weight: 700; }
.emoji { font-style: normal; }
.hero__title {
  font-size: clamp(3rem, 11vw, 5.2rem);
  /* צבע הכותרת מתאים לכותרת המשנה "ברוכים הבאים..." — אפור רך רגוע */
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.hero__subtitle {
  font-size: clamp(1.15rem, 2.7vw, 1.32rem);
  color: var(--ink-soft);
  margin: 1.8rem auto 2.6rem;
  max-width: 36rem;
  line-height: 1.9;
  text-align: center;
}
.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  color: var(--sage-deep);
  font-size: 1.2rem;
  text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ============================================================
   Section heads
   ============================================================ */
.section-head { max-width: 640px; margin: 0 auto 2.5rem; }
.section-head--center { text-align: center; }
.section-head__eyebrow {
  letter-spacing: 0.14em;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.7rem;
}
.section-head__title { font-size: clamp(2.1rem, 6.5vw, 3rem); color: var(--ink); line-height: 1.2; }
.section-head__lead {
  color: var(--ink-soft);
  margin-top: 1rem;
  font-size: clamp(1.08rem, 2.4vw, 1.22rem);
  line-height: 1.75;
}

/* ============================================================
   GALLERY / CAROUSEL
   ============================================================ */
.gallery { padding: clamp(3.5rem, 9vw, 6rem) 0; text-align: center; }

/* תמונת שחור-לבן — מתאים לגלריה */
.carousel__item--bw { filter: grayscale(100%) contrast(1.05); }
.carousel__item--bw:hover { filter: grayscale(100%) contrast(1.1); }
.gallery .section-head { padding: 0 var(--pad); }

.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem var(--pad) 1.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 78%;
  max-width: 360px;
  height: clamp(300px, 60vw, 420px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  scroll-snap-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease;
}
.carousel__item:hover { transform: scale(1.015); }
.carousel__hint {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}
.carousel__hint i { color: var(--sage); }

@media (min-width: 760px) {
  /* Desktop / tablet: flowing mosaic for 7 photos.
     Row 1: 3 columns, Row 2: 4 columns — each row spans 100% so the rhythm stays clean. */
  .carousel {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    gap: 0.9rem;
  }
  .carousel__item {
    max-width: none;
    height: 280px;
    flex: 1 1 calc(33.333% - 0.9rem);
    min-width: 0;
  }
  /* First 3 photos — larger tiles on the top row */
  .carousel__item:nth-child(-n+3) {
    flex: 1 1 calc(33.333% - 0.9rem);
    height: 320px;
  }
  /* Last 4 photos — slimmer tiles on the bottom row */
  .carousel__item:nth-child(n+4) {
    flex: 1 1 calc(25% - 0.9rem);
    height: 240px;
  }
  .carousel__hint { display: none; }
}

@media (min-width: 1100px) {
  .carousel__item:nth-child(-n+3) { height: 360px; }
  .carousel__item:nth-child(n+4) { height: 270px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(3.5rem, 9vw, 6rem) var(--pad);
  text-align: center;
  background: linear-gradient(180deg, var(--off-white), var(--cream));
}
.contact__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}
.contact__buttons .btn { min-width: 180px; }

/* ============================================================
   REVIEWS — גלילת צד
   ============================================================ */
.reviews {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  background: linear-gradient(180deg, var(--cream), var(--off-white));
}
.reviews__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 var(--pad);
  margin-bottom: 2rem;
}
.reviews__all {
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}
.reviews__all:hover { color: var(--terracotta); }

.reviews__viewport {
  position: relative;
  padding: 0 var(--pad);
}
.reviews__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.6rem 0.2rem 1.4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 78%;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.1rem;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}
.review-card__name {
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(1rem, 2.1vw, 1.08rem);
}
.review-card__name i {
  margin-left: 0.35rem;
  color: var(--ink-soft);
  background: var(--cream);
  padding: 0.3rem;
  border-radius: 50%;
  font-size: 0.75rem;
}
.review-card__stars {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.review-card__stars i { color: #f5b50a; }
.review-card__text {
  color: var(--ink);
  font-size: clamp(1rem, 2.1vw, 1.08rem);
  line-height: 1.7;
  flex: 1;
}
.review-card__date {
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: left;
  direction: ltr;
  margin-top: 0.2rem;
}

.reviews__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--sage-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  font-size: 0.95rem;
}
.reviews__nav:hover { background: var(--sage-deep); color: #fff; transform: translateY(-50%) scale(1.06); }
.reviews__nav--prev { right: 0.2rem; }
.reviews__nav--next { left: 0.2rem; }
@media (max-width: 640px) {
  .reviews__nav { display: none; }
}

@media (min-width: 760px) {
  .review-card { flex: 0 0 calc(33.333% - 0.7rem); max-width: none; }
}
@media (min-width: 1100px) {
  .review-card { flex: 0 0 calc(25% - 0.75rem); }
}

/* ============================================================
   REGISTRATION
   ============================================================ */
.register {
  padding: clamp(3.5rem, 9vw, 6rem) var(--pad);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(185, 196, 175, 0.3), transparent 70%),
    var(--off-white);
}
.register__card {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 6vw, 3.2rem);
  box-shadow: var(--shadow-lg);
}

.form { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 0.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; text-align: right; }
/* Future-ready class-type selector: hidden until we offer more than yoga. */
.field--hidden { display: none !important; }
.field label { font-weight: 600; font-size: clamp(1rem, 2.1vw, 1.08rem); color: var(--ink); }

.field input,
.select-wrap select {
  width: 100%;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2.3vw, 1.12rem);
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input::placeholder { color: #a9a799; }
.field input:focus,
.select-wrap select:focus {
  outline: none;
  border-color: var(--sage);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(138, 154, 130, 0.18);
}

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 2.6rem; /* room for icon on the left in RTL */
  cursor: pointer;
}
.select-wrap__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sage-deep);
  pointer-events: none;
  font-size: 0.85rem;
}

.form__submit {
  position: relative;
  width: 100%;
  margin-top: 0.4rem;
  font-size: 1.08rem;
  padding: 1.05rem;
}
.form__submit:disabled { opacity: 0.85; cursor: wait; }

/* Spinner */
.spinner {
  display: none;
  width: 1.15em;
  height: 1.15em;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.form__submit.is-loading .btn__label { display: none; }
.form__submit.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__error {
  color: #b03a2e;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  background: #fbeae8;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.form__policy {
  font-size: clamp(0.92rem, 2vw, 1rem);
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.65;
  margin-top: 0.2rem;
}

/* ---------- Success panel ---------- */
.success { text-align: center; animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.success__icon {
  width: 84px; height: 84px;
  margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  font-size: 2.6rem;
  color: var(--sage-deep);
  background: rgba(138, 154, 130, 0.16);
  border-radius: 50%;
  animation: pop 0.5s cubic-bezier(0.22,1.6,0.4,1) 0.15s both;
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success__title { font-size: 1.9rem; color: var(--ink); }
.success__text { color: var(--ink-soft); margin: 0.8rem 0 1.8rem; font-size: 1.05rem; }
.success__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.success__actions .btn { flex: 1 1 220px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 3rem var(--pad) 5.5rem;
  background: var(--sage-deep);
  color: var(--cream);
}
.footer__logo { width: 50px; margin: 0 auto 1.2rem; color: var(--sage-soft); }
.footer__social { display: flex; gap: 1.4rem; justify-content: center; margin-bottom: 1.2rem; }
.footer__social a {
  color: var(--cream);
  font-size: 1.25rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.25s ease, transform 0.25s ease;
}
.footer__social a:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.footer__copy { font-size: 0.85rem; opacity: 0.85; }

/* ============================================================
   FLOATING WHATSAPP FAB
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  z-index: 50;
  transition: transform 0.25s ease;
  animation: pulse 2.6s ease-in-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.08); }
@keyframes pulse {
  0%   { box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab, .hero__scroll { animation: none; }
}
