/* ============================================================
   FONTS — EzerNa / Oded Ezer
   woff2 first for performance; font-display:swap avoids invisible text
   ============================================================ */
@font-face {
  font-family: 'EzerNa';
  src: url('fonts/EzerNa-Regular.woff2') format('woff2'),
       url('fonts/EzerNa-Regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EzerNa';
  src: url('fonts/EzerNa-Bold.woff2') format('woff2'),
       url('fonts/EzerNa-Bold.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --background:          hsl(36, 33%, 97%);
  --foreground:          hsl(150, 20%, 18%);
  --card:                hsl(36, 30%, 95%);
  --card-foreground:     hsl(150, 20%, 18%);
  --primary:             hsl(155, 32%, 32%);
  --primary-foreground:  hsl(36, 33%, 97%);
  --secondary:           hsl(16, 45%, 65%);
  --secondary-foreground: hsl(36, 33%, 97%);
  --muted:               hsl(36, 20%, 90%);
  --muted-foreground:    hsl(150, 10%, 40%);
  --accent:              hsl(16, 45%, 65%);
  --accent-foreground:   hsl(36, 33%, 97%);
  --border:              hsl(36, 20%, 85%);
  --input:               hsl(36, 20%, 85%);
  --ring:                hsl(155, 32%, 32%);
  --radius:              0.75rem;

  --cream:               hsl(36, 33%, 97%);
  --cream-dark:          hsl(36, 30%, 92%);
  --forest:              hsl(155, 32%, 32%);
  --forest-light:        hsl(155, 25%, 45%);
  --forest-muted:        hsl(155, 15%, 85%);
  --terracotta:          hsl(16, 45%, 65%);
  --terracotta-light:    hsl(16, 40%, 80%);
  --terracotta-dark:     hsl(16, 50%, 50%);
  --whatsapp-green:      #25D366;
}

/* ============================================================
   TYPOGRAPHY & BODY
   ============================================================ */
body {
  font-family: 'EzerNa', 'Assistant', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'EzerNa', 'Frank Ruhl Libre', serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.animate-fade-up {
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
}

.hero-label.animate-fade-up  { animation-delay: 0s; }
.hero-title.animate-fade-up  { animation-delay: 0.15s; }
.hero-subtitle.animate-fade-up { animation-delay: 0.3s; }
.btn-hero.animate-fade-up    { animation-delay: 0.45s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: 'EzerNa', 'Assistant', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  text-align: center;
  line-height: 1.2;
}

.btn:hover {
  opacity: 0.9;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-block {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  padding: 0.875rem 1.5rem;
}

/* ============================================================
   ICON HELPERS
   ============================================================ */
.icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--forest-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
}

.icon-primary   { color: var(--primary); }
.icon-secondary { color: var(--secondary); }
.icon-accent    { color: var(--accent); }
.icon-muted     { color: var(--muted-foreground); }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 3.5rem;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--foreground);
  font-family: 'EzerNa', 'Assistant', sans-serif;
}

.card-text {
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.image-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.75rem 0;
  font-weight: 500;
  font-family: 'EzerNa', 'Frank Ruhl Libre', serif;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: hsla(150, 20%, 18%, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  height: 50px;
  width: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--forest);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsla(150, 20%, 18%, 0.70),
    hsla(150, 20%, 18%, 0.50),
    hsla(150, 20%, 18%, 0.80)
  );
}

.hero-blob {
  position: absolute;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-blob-1 {
  top: 2.5rem;
  left: 2.5rem;
  width: 16rem;
  height: 16rem;
  background-color: hsla(16, 45%, 65%, 0.1);
  opacity: 0.4;
}

.hero-blob-2 {
  bottom: 5rem;
  right: 2.5rem;
  width: 12rem;
  height: 12rem;
  background-color: hsla(155, 32%, 32%, 0.1);
  opacity: 0.3;
  animation-delay: -3s;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 1.25rem 2rem;
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: hsla(36, 33%, 97%, 0.8);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: hsl(36, 33%, 97%);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(to top, var(--background), transparent);
  pointer-events: none;
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section {
  padding: 5rem 1.25rem;
  background-color: var(--background);
}

.why-container {
  max-width: 64rem;
}

.feature-card {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   PROGRAM SECTION
   ============================================================ */
.program-section {
  padding: 5rem 1.25rem;
  background-color: var(--cream-dark);
}

.program-container {
  max-width: 56rem;
  text-align: center;
}

.program-card {
  background-color: var(--background);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: right;
}

.program-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.program-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--forest-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.program-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  font-family: 'EzerNa', 'Assistant', sans-serif;
  text-align: right;
}

.teachers-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
  margin-bottom: 0.375rem;
  opacity: 0.8;
}

.teachers-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.teachers-list li,
.teachers-grid span {
  font-weight: 700;
  color: var(--foreground);
  font-size: 0.9375rem;
  font-family: 'EzerNa', 'Assistant', sans-serif;
}

.teachers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1rem;
}

.program-footer {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: 'EzerNa', 'Assistant', sans-serif;
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.community-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.program-image-wrap {
  margin-top: 3.5rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.program-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}

/* ============================================================
   BENEFITS SECTION
   ============================================================ */
.benefits-section {
  padding: 5rem 1.25rem;
  background-color: var(--background);
}

.benefits-container {
  max-width: 64rem;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
  padding: 5rem 1.25rem;
  background-color: var(--cream-dark);
}

.testimonials-container {
  max-width: 64rem;
}

.testimonial-card {
  background-color: var(--background);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: right;
  position: relative;
}

.quote-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: hsla(16, 45%, 65%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--foreground);
  line-height: 1.75;
  font-size: 1rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: 5rem 1.25rem;
  background-color: var(--background);
}

.contact-container {
  max-width: 64rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Form wrapper */
.contact-form-wrap {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'EzerNa', 'Assistant', sans-serif;
  font-size: 1rem;
  direction: rtl;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input[dir="ltr"],
.form-group input[type="tel"] {
  direction: ltr;
  text-align: left;
}

.form-group input::placeholder {
  color: var(--muted-foreground);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px hsla(155, 32%, 32%, 0.15);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  padding-left: 2.5rem;
  cursor: pointer;
}

.form-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--forest-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.form-success h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  font-family: 'EzerNa', 'Assistant', sans-serif;
}

.form-success p {
  color: var(--muted-foreground);
}

/* Info column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-card-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-icon {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.info-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  font-family: 'EzerNa', 'Assistant', sans-serif;
}

.info-text {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.info-sub {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.2rem;
}

.map-wrap {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: 16rem;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Full-width contact image */
.contact-image-wrap {
  margin-top: 3rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 2.5rem 1.25rem;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'EzerNa', 'Assistant', sans-serif;
}

.footer-address {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-link {
  text-decoration: underline;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-contact-link {
  font-family: 'EzerNa', 'Assistant', sans-serif;
  font-size: 0.9rem;
  text-decoration: underline;
  opacity: 0.85;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.social-link {
  opacity: 0.8;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  color: var(--primary-foreground);
}

.social-link:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: 0.75rem;
  opacity: 0.5;
  padding-top: 0.75rem;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

/* ============================================================
   RESPONSIVE — TABLET & DESKTOP
   ============================================================ */
@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }

  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .logo {
    height: 50px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

@media (max-width: 767px) {
  .logo {
    height: 42px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }
}
