/* ===== Variables ===== */
:root {
  --color-primary: #4AB3E2;
  --color-primary-dark: #2E8FBA;
  --color-accent: #C8972A;
  --color-bg: #F5F4F0;
  --color-bg-dark: #14202B;
  --color-text: #1C2B33;
  --color-text-muted: #5B6A72;
  --color-white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(20, 32, 43, 0.08);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0 0 .5em; font-weight: 900; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

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

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 8px;
}

.section-intro {
  max-width: 640px;
  font-size: 1.05rem;
}

.light { color: var(--color-white); }
.section-intro.light { color: rgba(255,255,255,.8); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  cursor: pointer;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 211, 102, .45); }

.btn-ghost {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
}
.btn-ghost:hover { background: var(--color-primary); color: #fff; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  justify-content: center;
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-large { font-size: 1.1rem; padding: 16px 34px; margin-bottom: 32px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 240, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-text { font-size: 1.6rem; font-weight: 900; color: var(--color-primary-dark); }

.nav { display: none; gap: 28px; align-items: center; }
.nav a { font-weight: 500; transition: color var(--transition); }
.nav a:hover { color: var(--color-primary-dark); }
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
}
.nav-cta:hover { background: var(--color-primary-dark); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  background: var(--color-white);
  transition: max-height var(--transition);
}
.mobile-nav.open { max-height: 400px; }
.mobile-nav a {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-weight: 500;
}

@media (min-width: 880px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -120px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74,179,226,.35), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.hero h1 {
  font-size: 3.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}
.tagline { font-size: 1.3rem; font-weight: 700; color: var(--color-accent); margin-bottom: 14px; }
.hero-sub { max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===== Cards grids ===== */
.cards-grid {
  display: grid;
  gap: 22px;
  margin-top: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cards-grid.three { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.courses-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.methods-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.teachers-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .cards-grid.courses-grid { grid-template-columns: repeat(4, 1fr); }
  .cards-grid.methods-grid { grid-template-columns: repeat(3, 1fr); }
}

.info-card, .course-card, .method-card, .teacher-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover, .course-card:hover, .method-card:hover, .teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(20,32,43,.14);
}

.info-icon, .course-icon, .method-icon { font-size: 2.2rem; margin-bottom: 12px; }

/* Courses */
.course-card { position: relative; text-align: center; }
.course-card .badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  background: var(--color-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}
.course-card h3 { font-size: 1rem; }

/* Methods (dark futuristic section) */
.methods {
  background: linear-gradient(160deg, var(--color-bg-dark), #1f3242);
}
.method-card {
  background: rgba(255,255,255,.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
}
.method-card h3 { color: #fff; }
.method-card p { color: rgba(255,255,255,.7); }
.method-card:hover { background: rgba(255,255,255,.1); }

/* Audience */
.audience {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.audience-inner h2 { color: #fff; max-width: 720px; margin-inline: auto; }
.audience .eyebrow { color: #fff; opacity: .85; }
.audience .section-intro { color: rgba(255,255,255,.9); margin-inline: auto; }

/* Experience */
.video-wrap { margin-top: 32px; }
.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dfe9ee, #c9dce6);
}

/* Teachers */
.teacher-card { text-align: center; }
.teacher-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  margin: 0 auto 14px;
}
.teacher-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.teacher-card p { font-size: .9rem; margin: 0; }

/* Contact */
.contact-inner { text-align: center; }
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: start;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.form-row input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d8d8d2;
  font-family: inherit;
  font-size: 1rem;
  background: #fafaf8;
}
.form-row input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74,179,226,.2);
}
.form-note { text-align: center; margin: 14px 0 0; font-weight: 700; color: var(--color-primary-dark); }

/* Footer */
.site-footer { padding: 28px 0; text-align: center; color: var(--color-text-muted); font-size: .9rem; }

/* Floating WhatsApp */
.float-whatsapp {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
  z-index: 90;
  transition: transform var(--transition);
}
.float-whatsapp:hover { transform: scale(1.08); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
