/* ===================================================================
   Abu Tabla – Arabic course landing
   Brand: maroon #8B0000, pink #ED1566, cream #faf6ee, dark #161616
   Fonts: Rubik (headings), Heebo (body). RTL Hebrew.
   =================================================================== */

:root {
  --maroon: #8B0000;
  --maroon-dark: #6e0000;
  --pink: #ED1566;
  --cream: #faf6ee;
  --cream-2: #f3ece0;
  --dark: #161616;
  --dark-2: #1f1f1f;
  --gray: #8F8F8F;
  --ink: #1a1a1a;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 35px rgba(0,0,0,.12);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Heebo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 .5em;
}

p { margin: 0 0 .85em; }

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.container.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: 90px 0; position: relative; overflow-x: clip; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-block;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 38px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-sm  { padding: 9px 24px;  font-size: 15px; }
.btn-lg  { padding: 16px 46px; font-size: 19px; }
.btn-xl  { padding: 19px 60px; font-size: 23px; }

.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-dark); transform: translateY(-3px); }

.btn-light { background: #fff; color: var(--maroon); }
.btn-light:hover { background: var(--cream); transform: translateY(-3px); }

.btn-pink { background: var(--maroon); color: #fff; }
.btn-pink:hover { background: #c50f53; transform: translateY(-3px); }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,238,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 12px;
}
.logo img { height: 42px; width: auto; }

/* ===================== Hero ===================== */
.hero {
  background:
    radial-gradient(120% 90% at 50% -10%, #fff 0%, var(--cream) 55%, var(--cream-2) 100%);
  padding: 92px 0 100px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-inner > * { max-width: 100%; }
.hero-logo { width: 230px; max-width: 62vw; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 70px);
  color: var(--maroon);
  letter-spacing: -.5px;
}
.hero-tagline {
  font-size: clamp(20px, 2.8vw, 30px);
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 26px;
}

/* ===================== Media (full-bleed photo) sections ===== */
.media-section {
  color: var(--maroon);
  overflow: hidden;
  padding: 110px 0;
}
.media-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.12);
  z-index: 0;
}
/* keep the rider's head (upper-right of gallery1) inside the pricing backdrop */
.pricing .media-bg { background-position-x: 66%; }
/* light cream veil keeps the photo bright while maroon text stays readable */
.media-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(250,246,238,.55), rgba(250,246,238,.42));
}
.media-overlay.strong {
  background: linear-gradient(180deg, rgba(250,246,238,.7), rgba(250,246,238,.58));
}
.media-content { position: relative; z-index: 2; }
.media-content,
.media-content p { text-shadow: 0 1px 12px rgba(255,255,255,.75); }

.relatable .lead {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  margin-bottom: .2em;
}
.relatable .punch {
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: clamp(46px, 9vw, 92px);
  color: var(--maroon);
  margin: 18px 0 30px;
  text-shadow: 0 2px 18px rgba(255,255,255,.8);
  display: inline-block;
}

/* ===================== Video placeholder ===================== */
.video-ph {
  margin: 28px auto 0;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  border: 2px dashed rgba(139,0,0,.45);
  background: rgba(255,255,255,.72);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  color: var(--maroon);
  box-shadow: var(--shadow);
}
.video-ph-play {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--maroon);
  display: grid; place-items: center;
  font-size: 30px; padding-inline-start: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .2s ease;
}
.video-ph:hover .video-ph-play { transform: scale(1.08); }
.video-ph-text { font-size: 17px; opacity: .92; font-weight: 500; }
.video-ph.light {
  border-color: rgba(139,0,0,.35);
  background: #fff;
  color: var(--maroon);
  box-shadow: var(--shadow);
}

/* ===================== Split sections (photo + dark panel) ==== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.split-section.reverse .split-photo { order: 2; }
.split-photo { position: relative; overflow: hidden; background: var(--dark); }
/* object-position biased to the top so the subject's head is never clipped;
   JS pans this within a head-safe range on scroll (see [data-parallax]) */
.split-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.split-photo.mascot {
  background: radial-gradient(120% 120% at 50% 40%, #2a2a2a, var(--dark));
  display: grid; place-items: center; padding: 40px;
}
.split-photo.mascot img { width: min(78%, 360px); height: auto; object-fit: contain; }

.split-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 70px clamp(28px, 5vw, 76px);
}
.split-panel.dark { background: var(--dark); color: #fff; }
.panel-title { color: #fff; font-size: clamp(28px, 4vw, 42px); }

.big { font-size: clamp(19px, 2.4vw, 25px); font-weight: 700; margin-bottom: .4em; }
.emph {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800; color: #fff;
  margin: .3em 0 .8em;
}
.want { font-size: 18px; margin-bottom: .25em; opacity: .92; }

.simple-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.simple-list li {
  position: relative; padding-inline-start: 26px; margin-bottom: .5em;
  font-size: 18px;
}
.simple-list li::before {
  content: "•"; color: #fff;
  position: absolute; inset-inline-start: 0; font-size: 22px; line-height: 1.2;
}

/* diamond bullets for course list */
.diamond-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.diamond-list li {
  position: relative; padding-inline-start: 30px; margin-bottom: .85em;
  font-size: clamp(17px, 2vw, 20px); font-weight: 500;
}
.diamond-list li::before {
  content: "◆"; color: #fff;
  position: absolute; inset-inline-start: 0; top: .15em; font-size: 16px;
}
.topics {
  margin-top: 1em; font-size: 17px; line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 1em; opacity: .9;
}

/* ===================== Official (maroon) ===================== */
.official {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
}
.official h2 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: .8em; }
.official p { font-size: clamp(17px, 2vw, 21px); margin-bottom: .55em; opacity: .96; }
.official .strong { font-weight: 800; opacity: 1; }
.official .highlight {
  font-weight: 800; font-size: clamp(19px, 2.4vw, 24px);
  background: rgba(255,255,255,.12); border-radius: 12px;
  padding: 14px 22px; display: inline-block; margin: 18px 0 30px;
}

/* ===================== Pricing ===================== */
.pricing h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: .6em; }
.price-old { font-size: 22px; opacity: .85; }
.price-old s { color: rgba(139,0,0,.55); }
.price-label { font-size: clamp(18px, 2.2vw, 23px); font-weight: 500; margin-bottom: .3em; }
.price-now {
  font-family: "Rubik", sans-serif; font-weight: 900;
  font-size: clamp(40px, 8vw, 78px); color: var(--maroon);
  text-shadow: 0 2px 16px rgba(255,255,255,.85); margin: .1em 0 .6em;
}

/* ===================== Payment (placeholder — checkout coming soon) ===== */
.payment-section { background: var(--cream); scroll-margin-top: 80px; }
.payment-section h2 { color: var(--maroon); font-size: clamp(28px, 4.4vw, 46px); margin-bottom: .35em; }
.payment-sub { font-size: clamp(16px, 2vw, 20px); color: var(--ink); opacity: .82; margin-bottom: 1.5em; }
.payment-frame-wrap {
  max-width: 680px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}
#tranzila-form { display: none; }
.payment-frame { display: block; width: 100%; height: 680px; border: 0; }
@media (max-width: 600px) { .payment-frame { height: 760px; } }

/* ===================== Community bonus ===================== */
.bonus-section { background: var(--cream-2); }
.bonus-head {
  font-family: "Rubik", sans-serif; font-weight: 700;
  font-size: clamp(20px, 2.8vw, 28px); color: var(--maroon);
  max-width: 660px; margin: 0 auto 1em; line-height: 1.4;
}
.bonus-sub { color: var(--ink); font-size: clamp(22px, 3vw, 30px); margin-bottom: .9em; }
.check-list {
  list-style: none; padding: 0; margin: 0 auto; max-width: 560px; text-align: start;
}
.check-list li {
  position: relative; padding-inline-start: 34px; margin-bottom: .7em; font-size: 18px;
}
.check-list li::before {
  content: "✔"; color: var(--maroon); font-weight: 700;
  position: absolute; inset-inline-start: 0; top: 0;
}

/* ===================== About ===================== */
.about { background: var(--cream); }
.split-about {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center;
}
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
/* head sits upper-right in this landscape photo → bias there, never clip it */
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 16%; }
.about-text h2 { color: var(--maroon); font-size: clamp(28px, 4vw, 44px); }
.about-text p { font-size: 18px; margin-bottom: .5em; }
.about-text .strong { font-weight: 800; }
.blessing {
  font-family: "Rubik", sans-serif; font-weight: 700;
  color: var(--maroon); font-size: clamp(20px, 2.6vw, 26px);
  margin: .6em 0 1em;
}
.about-text .video-ph { margin: 18px 0 22px; max-width: 100%; }

/* ===================== Footer ===================== */
.site-footer {
  background: var(--dark); color: #fff; padding: 60px 0;
}
.footer-logo { height: 56px; width: auto; margin: 0 auto 18px; filter: brightness(0) invert(1); opacity: .92; }
.footer-head { font-weight: 700; font-size: 20px; margin-bottom: .4em; }
.footer-contact { margin-bottom: .2em; opacity: .9; }
.footer-contact a:hover { color: var(--maroon); }

/* ===================================================================
   Animations
   =================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* scroll-reveal base */
  [data-reveal] { opacity: 0; will-change: transform, opacity; }
  [data-reveal="up"]   { transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  [data-reveal="pop"]  { transform: scale(.8);        transition: opacity .6s ease, transform .6s cubic-bezier(.2,1.3,.4,1); }
  [data-reveal="slide-right"] { transform: translateX(48px);  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  [data-reveal="slide-left"]  { transform: translateX(-48px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }

  [data-reveal].is-in { opacity: 1; transform: none; }
  [data-delay="1"] { transition-delay: .12s; }
  [data-delay="2"] { transition-delay: .24s; }
  [data-delay="3"] { transition-delay: .36s; }
  [data-delay="4"] { transition-delay: .48s; }

  /* Ken Burns slow zoom on photo backgrounds */
  .media-bg { animation: kenburns 22s ease-in-out infinite alternate; }
  @keyframes kenburns {
    from { transform: scale(1.12) translate(0, 0); }
    to   { transform: scale(1.22) translate(-1.5%, -1.5%); }
  }

  /* scroll-parallax framed photos: hint the compositor */
  [data-parallax] { will-change: object-position; transition: object-position .08s linear; }

  /* floating mascot */
  .float { animation: float 5s ease-in-out infinite; }
  @keyframes float {
    0%,100% { transform: translateY(0) rotate(-1deg); }
    50%     { transform: translateY(-16px) rotate(1.5deg); }
  }

  /* glowing CTA pulse */
  .glow { animation: glow 2.6s ease-in-out infinite; }
  @keyframes glow {
    0%,100% { box-shadow: 0 0 0 0 rgba(139,0,0,0); }
    50%     { box-shadow: 0 0 0 10px rgba(139,0,0,.18); }
  }

  /* extra wiggle on the big punchword once revealed */
  .punch.is-in { animation: wiggle 1.4s ease .3s 1; }
  @keyframes wiggle {
    0%,100% { transform: rotate(0); }
    20% { transform: rotate(-3deg) scale(1.04); }
    40% { transform: rotate(2.5deg); }
    60% { transform: rotate(-1.5deg); }
    80% { transform: rotate(1deg); }
  }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .split-section { grid-template-columns: 1fr; }
  .split-section.reverse .split-photo { order: 0; }
  .split-photo { min-height: 300px; }
  .split-about { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 460px; margin-inline: auto; }
  .media-section { padding: 80px 0; }
  body { font-size: 17px; }
}

@media (max-width: 480px) {
  .header-inner .btn-sm { padding: 8px 18px; }
  .hero { padding: 64px 0 72px; }
  .video-ph-play { width: 62px; height: 62px; font-size: 24px; }
}
