/* ════════════════════════════════════════════════════
   STC HOME PAGE STYLES  —  home.css
   Loaded only on index.html. Does not affect inner pages.
   ════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── RESET / BASE for home page ────────────────────── */
.home-page {
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  color: #0f1b3d;
}

/* Shared tokens */
:root {
  --h-navy: #001352;
  --h-navy2: #002080;
  --h-gold: #e8a020;
  --h-gold-light: #fef9ee;
  --h-cream: #f7f9fc;
  --h-sky: #1a73e8;
  --h-muted: #5a6480;
  --h-border: #e4e8f0;
  --h-max: 1160px;
  --h-radius: 14px;
}

/* ── SHARED TYPOGRAPHY ─────────────────────────────── */
.h-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-sky);
  margin-bottom: 12px;
  display: block;
}
.h-heading {
  font-family: 'Clash Display', 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--h-navy);
  line-height: 1.18;
  margin-bottom: 16px;
}
.h-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--h-muted);
  margin-bottom: 0;
}

/* ── BUTTONS ───────────────────────────────────────── */
.h-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.h-btn--primary {
  background: var(--h-navy);
  color: #fff;
}
.h-btn--primary:hover { background: var(--h-navy2); transform: translateY(-1px); }
.h-btn--gold {
  background: var(--h-gold);
  color: var(--h-navy);
  border-color: var(--h-gold);
}
.h-btn--gold:hover { background: #c87a10; border-color: #c87a10; transform: translateY(-1px); }
.h-btn--ghost {
  background: transparent;
  color: var(--h-navy);
  border-color: var(--h-border);
}
.h-btn--ghost:hover { border-color: var(--h-navy); background: var(--h-cream); }
.h-btn--outline {
  background: transparent;
  color: var(--h-navy);
  border-color: var(--h-navy);
}
.h-btn--outline:hover { background: var(--h-navy); color: #fff; }
.h-btn--white {
  background: #fff;
  color: var(--h-navy);
  border-color: #fff;
}
.h-btn--white:hover { background: #f0f4ff; }

/* ── HERO ──────────────────────────────────────────── */
.h-hero {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
  padding: 72px 24px 80px;
  overflow: hidden;
}
.h-hero__inner {
  max-width: var(--h-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.h-hero__eyebrow {
  display: inline-block;
  background: #e8f0fe;
  color: var(--h-sky);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid #c5d8fb;
}
.h-hero__heading {
  font-family: 'Clash Display', 'Playfair Display', serif;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 700;
  color: var(--h-navy);
  line-height: 1.12;
  margin-bottom: 20px;
}
.h-hero__sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--h-muted);
  max-width: 500px;
  margin-bottom: 32px;
}
.h-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Image side */
.h-hero__img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}
.h-hero__img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 24px 64px rgba(0,19,82,0.18);
}
/* Floating badges */
.h-hero__badge {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,19,82,0.14);
  min-width: 180px;
  animation: floatBadge 3s ease-in-out infinite alternate;
}
.h-hero__badge--1 { bottom: -20px; left: -24px; animation-delay: 0s; }
.h-hero__badge--2 { top: 24px; right: -24px; animation-delay: 1.5s; }
.h-badge__icon { font-size: 24px; }
.h-hero__badge strong { display: block; font-size: 15px; font-weight: 700; color: var(--h-navy); }
.h-hero__badge span { font-size: 12px; color: var(--h-muted); }

@keyframes floatBadge {
  from { transform: translateY(0px); }
  to   { transform: translateY(-8px); }
}

/* ── CHIPS ─────────────────────────────────────────── */
.h-chips {
  border-top: 1px solid var(--h-border);
  border-bottom: 1px solid var(--h-border);
  background: #fff;
  padding: 20px 24px;
}
.h-chips__inner {
  max-width: var(--h-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.h-chips__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--h-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.h-chips__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.h-chip {
  background: var(--h-cream);
  color: var(--h-navy);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--h-border);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.h-chip:hover { background: var(--h-navy); color: #fff; border-color: var(--h-navy); }

/* ── STATS ─────────────────────────────────────────── */
.h-stats {
  background: var(--h-navy);
  padding: 40px 24px;
}
.h-stats__inner {
  max-width: var(--h-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.h-stat {
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.h-stat:last-child { border-right: none; }
.h-stat__num {
  display: block;
  font-family: 'Clash Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--h-gold);
  line-height: 1;
  margin-bottom: 8px;
}
.h-stat__label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ── SPLIT SECTIONS ────────────────────────────────── */
.h-split { padding: 80px 24px; }
.h-split--light { background: #fff; }
.h-split--navy { background: var(--h-navy); }
.h-split--cream { background: var(--h-cream); }

.h-split__inner {
  max-width: var(--h-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.h-split__inner--reversed { direction: rtl; }
.h-split__inner--reversed > * { direction: ltr; }

.h-split__img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--h-radius);
  display: block;
  box-shadow: 0 16px 48px rgba(0,19,82,0.14);
}

/* Checklist */
.h-checklist {
  list-style: none;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.h-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #2a3650;
  font-weight: 500;
}
.h-checklist--light li { color: rgba(255,255,255,0.88); }
.h-check {
  width: 24px;
  height: 24px;
  background: var(--h-gold);
  color: var(--h-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Service list (inside split) */
.h-service-list { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.h-service-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.h-service-item__icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  background: #e8f0fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.h-service-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--h-navy);
  margin-bottom: 4px;
}
.h-service-item p { font-size: 14px; color: var(--h-muted); line-height: 1.6; margin: 0; }

/* ── HOW IT WORKS ──────────────────────────────────── */
.h-how { background: var(--h-cream); padding: 88px 24px; }
.h-how__inner { max-width: var(--h-max); margin: 0 auto; }
.h-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 8px;
}
.h-step {
  background: #fff;
  border-radius: var(--h-radius);
  padding: 28px 24px;
  border: 1px solid var(--h-border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(0,19,82,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.h-step:hover { box-shadow: 0 12px 36px rgba(0,19,82,0.1); transform: translateY(-3px); }
.h-step__num {
  font-family: 'Clash Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--h-gold);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}
.h-step h3 { font-size: 15px; font-weight: 700; color: var(--h-navy); margin-bottom: 8px; }
.h-step p { font-size: 13px; color: var(--h-muted); line-height: 1.6; margin: 0; }

/* ── TESTIMONIALS ──────────────────────────────────── */
.h-testimonials { padding: 80px 24px; }
.h-testimonials--navy { background: var(--h-navy); }
.h-testimonials--white { background: #fff; }
.h-testimonials--cream { background: var(--h-cream); }

.h-testimonials__inner { max-width: var(--h-max); margin: 0 auto; }

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

/* Dark card (navy section) */
.h-tcard {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--h-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.h-tcard__stars { color: var(--h-gold); font-size: 16px; letter-spacing: 2px; }
.h-tcard__quote {
  font-size: 15px;
  line-height: 1.72;
  color: rgba(255,255,255,0.88);
  flex: 1;
  font-style: italic;
}
.h-tcard__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.h-tcard__avatar {
  width: 40px;
  height: 40px;
  background: var(--h-gold);
  color: var(--h-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.h-tcard__author strong { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.h-tcard__author span  { font-size: 12px; color: rgba(255,255,255,0.6); }


.portrait-carousel-section {
  padding: 50px 0;
  background-color: #f4f7f6;
}

.portrait-viewport {
  width: 90%;
  max-width: 380px; /* Fits a typical phone screenshot width */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  background: #fff;
}

.portrait-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portrait-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.screenshot-card {
  position: relative;
  background: #000;
  line-height: 0; /* Removes bottom gap under image */
}

.screenshot-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16; /* Forces portrait ratio */
  object-fit: contain; /* Shows full screenshot without cropping */
  background: #222; /* Black bars if screenshot isn't perfect 9:16 */
}

.screenshot-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: white;
  line-height: 1.4;
}

.badge {
  display: inline-block;
  background: #2ecc71; /* Success Green */
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.portrait-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  gap: 15px;
}

.p-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.p-btn:hover { background: #eee; }

.p-dot {
  height: 10px;
  width: 10px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  margin: 0 4px;
}

.p-dot.active { background: #2ecc71; width: 20px; border-radius: 10px; }


/* Light card (white/cream sections) */
.h-tcard--light {
  background: #fff;
  border: 1px solid var(--h-border);
  box-shadow: 0 4px 20px rgba(0,19,82,0.06);
}
.h-tcard--light .h-tcard__quote { color: #2a3650; }
.h-tcard--light .h-tcard__author { border-top-color: var(--h-border); }
.h-tcard--light .h-tcard__author strong { color: var(--h-navy); }
.h-tcard--light .h-tcard__author span   { color: var(--h-muted); }
.h-tcard__avatar--navy { background: var(--h-navy); color: #fff; }
.h-tcard__avatar--gold { background: var(--h-gold); color: var(--h-navy); }

/* ── EXAMS GRID ────────────────────────────────────── */
.h-exams { background: #fff; padding: 80px 24px; }
.h-exams__inner { max-width: var(--h-max); margin: 0 auto; }
.h-exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.h-exam-card {
  background: var(--h-cream);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius);
  padding: 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.h-exam-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--h-navy);
  opacity: 0;
  transition: opacity 0.2s;
}
.h-exam-card:hover { border-color: var(--h-navy); box-shadow: 0 8px 32px rgba(0,19,82,0.1); transform: translateY(-3px); }
.h-exam-card:hover::before { opacity: 1; }
.h-exam-card--cta { background: #e8f0fe; border-color: #c5d8fb; }
.h-exam-card__icon { font-size: 28px; }
.h-exam-card h3 { font-family: 'Clash Display', serif; font-size: 18px; font-weight: 700; color: var(--h-navy); margin: 0; }
.h-exam-card p  { font-size: 13px; color: var(--h-muted); line-height: 1.6; margin: 0; flex: 1; }
.h-exam-card__link { font-size: 13px; font-weight: 700; color: var(--h-sky); }

/* ── CTA BANNER ────────────────────────────────────── */
.h-cta-banner {
  background: linear-gradient(135deg, var(--h-navy) 0%, var(--h-navy2) 100%);
  padding: 56px 24px;
}
.h-cta-banner__inner {
  max-width: var(--h-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.h-cta-banner h2 {
  font-family: 'Clash Display', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
}
.h-cta-banner p { font-size: 15px; color: rgba(255,255,255,0.72); margin: 0; }
.h-cta-banner__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  .h-hero__inner { grid-template-columns: 1fr; }
  .h-hero__image { display: block; }
  .h-hero__img { height: 300px; }
  .h-split__inner { grid-template-columns: 1fr; gap: 36px; direction: ltr !important; }
  .h-split__img { height: 280px; }
  .h-stats__inner { grid-template-columns: 1fr 1fr; }
  .h-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .h-stat:nth-child(even) { border-right: none; }
  .h-cta-banner__inner { flex-direction: column; text-align: center; }
  .h-cta-banner__actions { justify-content: center; }
  .h-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .h-hero { padding: 48px 20px 56px; }
  .h-hero__heading { font-size: 32px; }
  .h-stats__inner { grid-template-columns: 1fr 1fr; }
  .h-exam-grid { grid-template-columns: 1fr 1fr; }
  .h-tcard-grid { grid-template-columns: 1fr; }
}
