@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;900&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Art of Easy Learning Corp. — Global Stylesheet
   Single source of truth for all styling. Palette: Royal Purple / Clear Blue / Charcoal.
   Edit a token in :root once and it updates across every page.
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Brand palette */
  --color-teal:        #6B1FA8;  /* Royal Purple — primary accent: links, headers, icons */
  --color-teal-deep:   #4A1575;  /* Deep Purple  — hover, footer bg, structural text    */
  --color-teal-bright: #8B35CC;  /* Bright Purple — subtle highlights                   */
  --color-orange:      #2563EB;  /* Clear Blue   — action accent: primary CTA buttons   */
  --color-orange-deep: #1D4ED8;  /* Deep Blue    — CTA hover / gradient end             */
  --color-amber:       #60A5FA;  /* Light Blue   — warm highlight: small touches        */
  --color-blue-deep:   #1F2937;  /* Charcoal     — structural dark, logo text           */

  /* Neutrals — cool off-white base */
  --color-bg:          #F8F7FC;  /* page background      */
  --color-surface:     #FFFFFF;  /* cards, header        */
  --color-surface-alt: #EEE9F8;  /* tinted section bg    */
  --color-text:        #1F2937;  /* body text            */
  --color-text-soft:   #4B5563;  /* secondary text       */
  --color-border:      #E5E7EB;  /* hairline borders     */

  /* Typography: Playfair Display (display serif) + Inter (body sans) */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;

  /* Radii & layout */
  --radius:        7px;
  --radius-lg:     12px;
  --max-width:     1180px;
  --header-height: 76px;
}

/* 2. BASE / RESET -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main { flex: 1 0 auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-teal-deep);
  margin: 0 0 0.35rem;
}
h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h2 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h3 { font-size: 1rem; color: var(--color-text); }
p { margin: 0 0 var(--space-sm); }
a { color: var(--color-teal); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--color-orange-deep); }
img { max-width: 100%; display: block; }

/* Centred content container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Screen-reader only text */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. BUTTONS ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-orange); color: #fff; }
.btn-primary:hover { background: var(--color-orange-deep); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--color-teal-deep);
  border-color: var(--color-teal);
}
.btn-secondary:hover { background: var(--color-teal); color: #fff; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-white:hover { background: #fff; color: var(--color-teal-deep); }
.split-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-top: var(--space-md); }
.split-col { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md); }
.split-col h3 { color: var(--color-teal-deep); margin-bottom: 0.5rem; }
.hero-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.30);
  color: #fff;
  font-size: 1.3rem;
  transition: background 0.18s ease, transform 0.18s ease;
}
.hero-social a:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-2px);
  color: #fff;
}
.section .hero-social a { background: var(--color-surface-alt); border: 1px solid var(--color-border); color: var(--color-teal); }
.section .hero-social a:hover { background: var(--color-teal); color: #fff; }

/* 4. HEADER + NAVIGATION (markup injected by components.js) --------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-height); gap: var(--space-sm);
}
.site-logo { display: flex; align-items: center; gap: 0.6rem; }
.site-logo img { height: 64px; width: auto; }
.main-nav ul {
  list-style: none; display: flex; align-items: center;
  gap: 1rem; margin: 0; padding: 0;
}
.main-nav a {
  color: var(--color-text); font-weight: 600;
  font-size: 0.92rem; padding: 0.4rem 0; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--color-teal); }

/* Services dropdown — pure CSS hover/focus reveal */
.has-dropdown { position: relative; }
.has-dropdown > .dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.12);
  padding: 0.5rem; display: none;
}
.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu { display: block; }
.dropdown-menu li { display: block; }
.dropdown-menu a { display: block; padding: 0.55rem 0.8rem; border-radius: 6px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--color-surface-alt); }

/* Mobile menu toggle (shown on small screens only) */
.nav-toggle {
  display: none; background: none; border: 0;
  font-size: 1.6rem; color: var(--color-teal-deep); cursor: pointer;
}

/* 5. FOOTER (markup injected by components.js) --------------------------- */
.site-footer {
  background: #2E0D49;
  color: #E4D4F7;
  margin-top: 0;
  padding: 1.25rem 0 0.4rem;
}
.site-footer a { color: #C4B5F4; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1rem;
}
.footer-grid h4 {
  color: #fff; font-family: var(--font-body);
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.05rem; font-size: 0.74rem; }
.site-footer p { font-size: 0.82rem; line-height: 1.35; margin-bottom: 0.2rem; }
.site-footer .footer-slogan {
  font-family: var(--font-display); font-style: italic;
  font-size: 1rem; color: var(--color-amber); font-weight: 900;
}
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 0.35rem; padding-top: 0.35rem;
  font-size: 0.6rem; color: #9B7EC8;
}

/* 6. SECTIONS + CARDS ---------------------------------------------------- */
.section { padding: var(--space-sm) 0; }
.section-alt { background: var(--color-surface-alt); }
.section-head { max-width: 760px; margin-bottom: 0.5rem; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-orange-deep); margin-bottom: var(--space-xs);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31, 41, 55, 0.10); }
.card .card-icon { font-size: 2rem; color: var(--color-teal); margin-bottom: var(--space-xs); }

/* 7. HOME HERO ----------------------------------------------------------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.15), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(107, 31, 168, 0.12), transparent 50%),
    var(--color-bg);
  padding: var(--space-xl) 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: flex-start; gap: var(--space-lg);
}
.leadership-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch; gap: var(--space-lg);
}
.hero h1 { color: var(--color-teal-deep); }
.hero p.lead { font-size: 1.2rem; color: var(--color-text-soft); }
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }
.hero-badge {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md); text-align: center;
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.08);
}
.hero-badge img { margin: 0 auto var(--space-sm); max-width: 230px; }

/* 8. STATS / PROOF BAND -------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md); text-align: center;
}
.stat .stat-number {
  font-family: var(--font-display); font-size: 2.6rem;
  font-weight: 600; color: var(--color-orange-deep); line-height: 1;
}
.stat .stat-label { color: var(--color-text-soft); font-size: 0.95rem; }

/* 9. HOW IT WORKS STEPS -------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md); counter-reset: step;
}
.step { position: relative; padding-top: var(--space-md); }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--color-teal); color: #fff;
  font-family: var(--font-display); font-weight: 600;
  border-radius: 50%; margin-bottom: var(--space-xs);
}

/* 10. CTA BAND ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-teal) 0%, var(--color-teal-deep) 100%);
  color: #fff; text-align: center; padding: var(--space-lg) 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #E4D4F7; max-width: 620px; margin-inline: auto; }

/* 11. INNER PAGE HERO ---------------------------------------------------- */
.page-hero {
  background: var(--color-surface-alt);
  padding: 0.6rem 0 0.6rem;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.breadcrumb { font-size: 0.85rem; color: var(--color-text-soft); margin-bottom: var(--space-xs); }

/* 12. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
  .split-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: var(--header-height); left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: var(--space-sm); }
  .main-nav li { width: 100%; }
  .has-dropdown > .dropdown-menu {
    position: static; box-shadow: none; border: 0;
    padding-left: var(--space-sm); display: block;
  }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* 13. FULL-VIEWPORT PHOTO HERO ------------------------------------------- */
/* Usage: <section class="hero-full"> … </section>
   Set a page-specific Unsplash URL via inline style on the element:
   style="--hero-photo: url('https://images.unsplash.com/photo-PHOTO_ID?auto=format&fit=crop&w=1920&q=80')"  */
.hero-full {
  position: relative;
  display: flex;
  align-items: stretch;
  background-image: linear-gradient(to right, #9CA3AF 0%, rgba(156,163,175,0) 18%, rgba(156,163,175,0) 82%, #9CA3AF 100%), var(--hero-photo, none);
  background-color: #9CA3AF;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(229, 231, 235, 0.35);
}
.hero-full .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.hero-full h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(31, 41, 55, 0.30);
}
.hero-full p.lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.90);
}
.hero-full .hero-actions { margin-top: var(--space-md); }
@media (max-width: 860px) {
  .hero-full { min-height: auto; }
}

/* 14. TAB NAVIGATION ----------------------------------------------------- */
/* Markup pattern:
   <div class="tab-nav" role="tablist">
     <button class="tab-btn is-active" role="tab">Tab One</button>
     <button class="tab-btn" role="tab">Tab Two</button>
   </div>
   <div class="tab-panel">…</div>
   <div class="tab-panel" hidden>…</div>   */
.tab-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.tab-btn:hover { color: var(--color-teal); }
.tab-btn.is-active {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
}
.tab-panel {
  padding: var(--space-md) 0;
}
.tab-panel[hidden] { display: none; }

/* 15. CTA BUTTON (BLUE) -------------------------------------------------- */
.btn-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.1rem 2.4rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--color-orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}
.btn-cta:hover {
  background: var(--color-orange-deep);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  color: #fff;
}
.btn-cta:active { transform: scale(0.98); }

/* 16. CARD "READ MORE" DISCLOSURE --------------------------------------- */
.card-more { margin-top: 0.6rem; }
.card-more summary {
  cursor: pointer;
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.85rem;
  list-style: none;
}
.card-more summary::-webkit-details-marker { display: none; }
.card-more summary::after { content: ' +'; }
.card-more[open] summary::after { content: ' \2212'; }
.card-more p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Collapse the doubled gap between page-hero and the first section */
.page-hero + .section { padding-top: 0 !important; }

/* Home page: footer sits at the bottom of the first screen; hero fills the
   space between header and footer; page scrolls only if a screen is too short. */
@media (min-width: 901px) {
  body[data-active="home"] .site-main { display: flex; flex-direction: column; }
  body[data-active="home"] .hero-full { flex: 1 0 auto; }
}
