/* =========================================================
   MEGHA TUTORIALS — LANDING PAGE STYLES
   Design tokens derived from brand logo (navy hand, gold /
   crimson / chartreuse stars). Display face: Fraunces.
   Body face: Plus Jakarta Sans. Utility face: Space Mono.
   ========================================================= */

:root {
  --navy: #1a2b6b;
  --navy-dark: #101b45;
  --navy-darker: #0b1330;
  --gold: #f5a623;
  --gold-dark: #c9860f;
  --crimson: #e4402f;
  --lime: #c6d93a;
  --paper: #f7f8fc;
  --paper-alt: #eef0fa;
  --ink: #1d2340;
  --ink-soft: #5a5f7a;
  --white: #ffffff;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 32px -12px rgba(16, 27, 69, 0.18);
  --shadow-lift: 0 20px 44px -14px rgba(16, 27, 69, 0.28);
}

/* ===================== BASE ===================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.brand-name,
.stamp-rating,
.process-num {
  font-family: var(--font-display);
  color: var(--navy-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1rem;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.section-padded {
  padding: 5rem 0;
}

@media (max-width: 767.98px) {
  .section-padded {
    padding: 3.5rem 0;
  }
}

.bg-paper-alt {
  background-color: var(--paper-alt);
}

.bg-navy-deep {
  background: linear-gradient(180deg, var(--navy-dark), var(--navy-darker));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.text-gold-eyebrow {
  color: var(--gold);
}

.section-title {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-text {
  color: var(--ink-soft);
  /* font-size: 1rem; */
}

.text-secondary-soft {
  color: var(--ink-soft);
}

.text-light-soft {
  color: rgba(255, 255, 255, 0.72);
}

.text-gold {
  color: var(--gold);
}

.link-navy {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-navy:hover {
  color: var(--gold-dark);
}

/* ===================== BUTTONS ===================== */
.btn {
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  font-size: 15px;
}

.btn-gold:hover,
.btn-gold:focus {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy-darker);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(245, 166, 35, 0.6);
}

.btn-navy {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn-navy:hover,
.btn-navy:focus {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline-navy:hover,
.btn-outline-navy:focus {
  background-color: var(--navy);
  color: var(--white);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
  background: transparent;
  font-size: 15px;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ===================== NAVBAR ===================== */
#mainNavbar {
  z-index: 1045;
  background-color: rgba(247, 248, 252, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease, padding 0.25s ease, background-color 0.25s ease;
  padding: 0.85rem 0;
}

#mainNavbar.is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(16, 27, 69, 0.25);
  padding: 0.5rem 0;
  background-color: rgba(247, 248, 252, 0.98);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #dba70b;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.nav-link {
  color: var(--ink);
  padding: 0.5rem 0.85rem !important;
  position: relative;
}

.nav-link:hover {
  color: var(--navy);
}

.navbar-toggler {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--navy);
  border-radius: 10px;
  background-color: transparent;
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 43, 107, 0.2);
}

.navbar-toggler-icon {
  width: 1.3em;
  height: 1.3em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a2b6b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-darker) 100%);
  padding: 8.5rem 0 6rem;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(245, 166, 35, 0.14), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(198, 217, 58, 0.12), transparent 42%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  max-width: 560px;
}

.hero-trust {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.hero-trust i {
  margin-right: 0.35rem;
}

.hero-art {
  position: relative;
  padding: 1.5rem;
}

.hero-art-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.hero-logo {
  width: 100%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

/* ---------- Hero image carousel ---------- */
.hero-carousel {
  width: 100%;
}

.hero-carousel-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.hero-carousel-indicators {
  margin-bottom: 0.65rem;
}

.hero-carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.55);
  border: none;
  opacity: 1;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-carousel-indicators [data-bs-target].active {
  background-color: var(--gold);
  width: 24px;
  border-radius: 4px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 15%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
  opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 1.6rem;
  height: 1.6rem;
  background-color: rgba(16, 27, 69, 0.55);
  border-radius: 50%;
  padding: 0.4rem;
  background-size: 60%;
}

@media (max-width: 575.98px) {
  .hero-carousel-img {
    height: 240px;
  }
}

/* ---------- Offline / Online mode badges ---------- */
.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}


.stamp-badge {
  position: absolute;
  top: -0.5rem;
  right: 0.5rem;
  background: var(--gold);
  color: var(--navy-darker);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(9deg);
  box-shadow: var(--shadow-lift);
  text-align: center;
  border: 3px dashed rgba(16, 27, 69, 0.35);
}

.stamp-rating {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp-rating i {
  font-size: 0.85rem;
  margin-left: 2px;
}

.stamp-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
  color: var(--white);
}

.floating-chip {
  position: absolute;
  background: var(--white);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-chip i {
  color: var(--gold-dark);
}

.chip-1 {
  bottom: 1.5rem;
  left: -0.5rem;
}

.chip-2 {
  bottom: -1rem;
  right: 1.5rem;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 60px;
  background: var(--paper);
  border-radius: 60% 60% 0 0 / 100% 100% 0 0;
}

/* ===================== TRUST STRIP ===================== */
.trust-strip {
  background-color: var(--white);
  border-bottom: 1px solid rgba(16, 27, 69, 0.06);
}

.trust-icon {
  font-size: 1.4rem;
  color: var(--crimson);
  margin-bottom: 0.5rem;
  display: block;
}

.trust-figure {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 0.1rem;
}

.trust-figure span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ===================== HIGHLIGHTS / CHECK LIST ===================== */
.highlights-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.96rem;
}

.check-item i {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* background: rgba(245, 166, 35, 0.16); */
  color: var(--gold-dark);
  font-size: 0.50rem;
}

/* ===================== PROGRAM CARDS ===================== */
.program-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(16, 27, 69, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.program-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  /* background: var(--navy); */
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

/* ===================== SUBJECT CARDS ===================== */
.subject-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid rgba(16, 27, 69, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.subject-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.subject-icon {
  font-size: 1.9rem;
  color: var(--crimson);
  margin-bottom: 0.9rem;
  display: block;
}

/* ===================== PROCESS ===================== */
.process-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
}

.process-num {
  display: block;
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ===================== AREA CHIPS ===================== */
.area-chip {
  background: var(--white);
  border: 1px solid rgba(16, 27, 69, 0.1);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.area-chip:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  margin: 0;
  border-top: 4px solid var(--gold);
}

.testimonial-stars {
  color: var(--gold);
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
}

.testimonial-author {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: linear-gradient(120deg, var(--crimson), var(--gold-dark));
  padding: 4.5rem 0;
  color: var(--white);
}

.cta-banner-title {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner-text {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  font-size: 1.05rem;
}

/* ===================== CONTACT ===================== */
.contact-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  align-items: flex-start;
}

.contact-list i {
  color: var(--gold-dark);
  margin-top: 0.2rem;
  width: 18px;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(16, 27, 69, 0.05);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.form-control,
.form-select {
  border-radius: 10px;
  border: 1.5px solid rgba(16, 27, 69, 0.14);
  padding: 0.65rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 0.2rem rgba(26, 43, 107, 0.15);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--navy-darker);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 1.75rem;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-links i {
  margin-right: 0.4rem;
  color: var(--gold);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy-darker);
  transform: translateY(-2px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.14);
  margin: 2rem 0 1rem;
}

/* ===================== FLOATING ACTIONS ===================== */
.floating-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1030;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  box-shadow: var(--shadow-lift);
  transition: transform 0.2s ease;
}

.fab:hover {
  transform: scale(1.08);
}

.fab-whatsapp {
  background: #25d366;
}

.fab-call {
  background: var(--navy);
}

.back-to-top {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--navy-darker);
  box-shadow: var(--shadow-soft);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1030;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-to-top.is-visible {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ===================== LEAD MODAL ===================== */
.lead-modal-content {
  border-radius: 22px;
  border: none;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lift);
}

.modal-title-text {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.no-thanks-link {
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-decoration: underline;
}

.no-thanks-link:hover {
  color: var(--navy);
}

.btn-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
}

/* ===================== SCROLL REVEAL ANIMATION ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .btn,
  .program-card,
  .subject-card,
  .process-card,
  .area-chip,
  .fab,
  .back-to-top {
    transition: none;
  }
}

/* ===================== RESPONSIVE TWEAKS ===================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
  }

  .stamp-badge {
    width: 88px;
    height: 88px;
  }

  .hero-art {
    padding: 0.5rem;
  }

  .navbar-nav {
    gap: 0.25rem;
  }

  .navbar-nav .nav-link {
    padding: 0.6rem 0.25rem !important;
  }

  .navbar-collapse .nav-item:nth-last-child(2) {
    margin-top: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(16, 27, 69, 0.1);
  }

  .navbar-collapse .nav-item:nth-last-child(2),
  .navbar-collapse .nav-item:last-child {
    width: 100%;
  }

  .navbar-collapse .nav-item:nth-last-child(2) .btn,
  .navbar-collapse .nav-item:last-child .btn {
    width: 100%;
    justify-content: center;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .navbar-collapse .nav-item:last-child {
    margin-top: 0.6rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-top: 7.5rem;
  }

  .floating-chip {
    position: static;
    display: inline-flex;
    margin: 0.4rem 0.4rem 0 0;
  }

  .chip-1,
  .chip-2 {
    position: static;
  }
}