/* ============================================================
   IANAH ENGLISH CENTER — Main Stylesheet
   ============================================================
   Sections:
   1. CSS Variables (color palette)
   2. Reset & Base
   3. Navigation
   4. Hero Section
   5. Proof Bar
   6. Shared Section Utilities
   7. Pain Section
   8. Video Testimonials
   9. Facebook Screenshots
   10. Course Preview
   11. Text Testimonials
   12. Offer & Pricing
   13. Urgency / Countdown
   14. Coach Story
   15. FAQ
   16. Final CTA
   17. Footer
   18. Animations & Utilities
   19. Responsive (mobile)
   ============================================================ */


/* ── 1. CSS Variables ─────────────────────────────────────── */
:root {
  --navy:       #0A1628;
  --navy-light: #112240;
  --red:        #E63946;
  --gold:       #F4C430;
  --gold-light: #FFF3B0;
  --white:      #FFFFFF;
  --grey:       #8892A4;
  --light-bg:   #F7F8FC;
}


/* ── 2. Reset & Base ─────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}


/* ── 3. Navigation ───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  border-bottom: 1px solid rgba(244, 196, 48, 0.2);
}

/* Logo image — shown when real logo file is placed in static/images/logo/ */
.nav-logo {
  height: 48px;
  width: 140px;
  object-fit: contain;
  display: block;
}

/* Fallback shown when no logo image exists yet */
.nav-logo-placeholder {
  height: 48px;
  width: 140px;
  background: rgba(244, 196, 48, 0.1);
  border: 2px dashed rgba(244, 196, 48, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.nav-cta {
  background: var(--red);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #c62d39;
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}


/* ── 4. Hero Section ─────────────────────────────────────── */
.hero {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

/* Decorative radial glow — top left */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Decorative radial glow — bottom right */
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(244, 196, 48, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s ease;
}

.hero h1 span { color: var(--gold); }
.hero h1 em   { color: var(--red); font-style: normal; }

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1.1s ease;
}

.btn-primary {
  background: var(--red);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(230, 57, 70, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(230, 57, 70, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--navy);
}

.hero-urgency {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  animation: fadeInUp 1.2s ease;
}

.hero-urgency strong { color: var(--red); }


/* ── 5. Proof Bar ────────────────────────────────────────── */
.proof-bar {
  background: var(--gold);
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.proof-stat { text-align: center; }

.proof-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.proof-stat .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ── 6. Shared Section Utilities ─────────────────────────── */
section {
  padding: 80px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  text-align: center;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title span { color: var(--red); }
.section-title em   { color: var(--gold); font-style: normal; }

.section-sub {
  text-align: center;
  color: var(--grey);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* Decorative star divider between sections */
.divider {
  text-align: center;
  padding: 20px 0;
  font-size: 28px;
  color: var(--gold);
  opacity: 0.5;
}


/* ── 7. Pain Section ─────────────────────────────────────── */
.pain-section {
  background: var(--navy);
  color: white;
}

.pain-section .section-title { color: white; }
.pain-section .section-sub   { color: rgba(255, 255, 255, 0.6); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.pain-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

/* Red accent line at top of each pain card */
.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.pain-icon  { font-size: 32px; margin-bottom: 16px; }

.pain-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: white;
  margin-bottom: 10px;
}

.pain-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.6;
}


/* ── 8. Video Testimonials ───────────────────────────────── */
.videos-section { background: var(--light-bg); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.15);
}

.video-slot {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a2f4e, #0d1f35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.video-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}

/* Dark overlay with play button, shown over the video thumbnail */
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.5);
  transition: opacity 0.3s;
}

.play-btn {
  width: 60px; height: 60px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.5);
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.video-slot:hover .play-btn { transform: scale(1.1); }

.video-info { padding: 18px 20px; }

.video-student-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 4px;
}

.video-student-detail {
  font-size: 13px;
  color: var(--grey);
}

.video-result {
  display: inline-block;
  background: rgba(230, 57, 70, 0.1);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 8px;
}


/* ── 9. Facebook Screenshots ─────────────────────────────── */
.fb-section { background: white; }

.fb-grid {
  /* Masonry-style columns: each screenshot is shown in full, never cropped.
     `columns: 320px` auto-adjusts the column count to the viewport
     (≈3 on desktop → 2 on tablet → 1 on mobile) — fully responsive. */
  columns: 320px;
  column-gap: 20px;
}

.fb-card {
  break-inside: avoid;     /* never split a screenshot across two columns */
  margin-bottom: 20px;     /* vertical spacing between stacked cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.1);
  transition: transform 0.3s;
  background: #e9ebee;
}

.fb-card:hover { transform: scale(1.02); }

.fb-card img {
  width: 100%;
  height: auto;            /* preserve each screenshot's natural ratio (no crop) */
  display: block;
}


/* ── 10. Course Preview ──────────────────────────────────── */
.preview-section { background: var(--navy); }

.preview-section .section-title { color: white; }
.preview-section .section-sub   { color: rgba(255, 255, 255, 0.6); }
.preview-section .section-label { color: var(--gold); }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.preview-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-slot {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.preview-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

.preview-slot .video-overlay { background: rgba(10, 22, 40, 0.6); }

.preview-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 5;
}

.preview-info { padding: 18px; }

.preview-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.preview-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}


/* ── 11. Text Testimonials ───────────────────────────────── */
.testi-section { background: var(--light-bg); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testi-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.07);
  position: relative;
  transition: transform 0.3s;
}

.testi-card:hover { transform: translateY(-4px); }

/* Giant decorative opening quote mark */
.testi-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 10px; left: 20px;
  line-height: 1;
}

.testi-stars {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 14px;
}

.testi-text {
  font-size: 15px;
  line-height: 1.7;
  color: #3a4a5c;
  margin-bottom: 20px;
  position: relative;
  z-index: 1; /* sits above the decorative quote mark */
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

.testi-role {
  font-size: 12px;
  color: var(--grey);
}


/* ── 12. Offer & Pricing ─────────────────────────────────── */
.offer-section            { background: var(--navy); }
.offer-section .section-title { color: white; }
.offer-section .section-sub   { color: rgba(255, 255, 255, 0.6); }

.offer-box {
  background: linear-gradient(135deg, #112240, #0a1628);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Subtle gold glow in the offer box corner */
.offer-box::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.12) 0%, transparent 70%);
}

.offer-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.offer-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: white;
  font-weight: 900;
  margin-bottom: 10px;
}

.offer-price {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  color: var(--gold);
  font-weight: 900;
  line-height: 1;
  margin: 20px 0 8px;
}

.offer-price-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  margin-bottom: 30px;
}

.offer-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.offer-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.offer-features li:last-child { border-bottom: none; }

.offer-check {
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}


/* ── 13. Urgency / Countdown ─────────────────────────────── */
.urgency-section {
  background: var(--red);
  padding: 50px 20px;
  text-align: center;
}

.urgency-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  color: white;
  font-weight: 900;
  margin-bottom: 16px;
}

.urgency-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-bottom: 30px;
}

.countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.countdown-unit {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 16px 24px;
  min-width: 80px;
}

.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.countdown-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spots-left {
  display: inline-block;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 30px;
}

.spots-left strong { color: var(--gold-light); }


/* ── 14. Coach Story ─────────────────────────────────────── */
/* (Coach section uses inline grid + inline styles in HTML;
   shared utilities from above handle the rest) */

.coach-photo-frame {
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder shown until real photo is placed */
.coach-photo-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.coach-photo-placeholder .icon { font-size: 48px; margin-bottom: 8px; }
.coach-photo-placeholder .label { font-size: 12px; }

.coach-quote-block {
  background: rgba(244, 196, 48, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
}

.coach-quote-block p {
  color: var(--gold);
  font-style: italic;
  font-size: 17px;
  font-family: 'Playfair Display', serif;
  line-height: 1.6;
}

.coach-quote-block cite {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin-top: 8px;
  display: block;
  font-style: normal;
}

.coach-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.coach-badge-pill {
  background: rgba(244, 196, 48, 0.1);
  color: var(--gold);
  border: 1px solid rgba(244, 196, 48, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}


/* ── 15. FAQ ─────────────────────────────────────────────── */
.faq-section { background: var(--light-bg); }

.faq-item {
  background: white;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.06);
  transition: box-shadow 0.3s;
}

.faq-item:hover { box-shadow: 0 6px 24px rgba(10, 22, 40, 0.1); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  gap: 16px;
}

.faq-q:hover { background: rgba(10, 22, 40, 0.02); }

.faq-arrow {
  color: var(--red);
  font-size: 12px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

/* Rotates the arrow when FAQ is open */
.faq-item.active .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 24px 22px;
  border-top: 1px solid rgba(10, 22, 40, 0.06);
}

.faq-item.active .faq-a { display: block; }

.faq-a p {
  color: var(--grey);
  font-size: 15px;
  line-height: 1.7;
  padding-top: 16px;
}


/* ── 16. Final CTA ───────────────────────────────────────── */
.final-cta {
  background: var(--navy);
  padding: 100px 20px;
  text-align: center;
}

.final-cta .section-title { color: white; font-size: clamp(32px, 5vw, 60px); }
.final-cta .section-sub   { color: rgba(255, 255, 255, 0.6); }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #25D366;
  color: white;
  padding: 20px 48px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  margin: 30px 0 20px;
  transition: all 0.3s;
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon { font-size: 24px; }

.guarantee {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  margin-top: 16px;
}


/* ── 17. Footer ──────────────────────────────────────────── */
footer {
  background: #060e1a;
  padding: 30px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}


/* ── 18. Animations & Utilities ──────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

.pulse { animation: pulse 2s infinite; }


/* ── 19. Responsive (mobile) ─────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 12px 20px; }

  .proof-bar { gap: 30px; padding: 20px; }

  .offer-box   { padding: 30px 20px; }
  .offer-price { font-size: 48px; }

  /* Stack the coach story two-column grid */
  .coach-grid { grid-template-columns: 1fr !important; }
}