/*
Theme Name: Academy
Theme URI: https://academy.agelesspeps.com
Author: Synergy Health Academy
Description: Minimal classic theme optimized for Elementor Pro. Provides elementor_canvas and elementor_header_footer page templates so the_content() hooks work correctly for Elementor-built pages.
Version: 2.9.1
License: GPL-2.0-or-later
Text Domain: academy
*/

/* ─────────── Design tokens ─────────── */
:root {
  --navy: #062446;
  --navy-2: #0e3a6d;
  --navy-3: #1256a0;
  --accent: #1a8fe3;
  --accent-light: #e8f2fc;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --green: #10b981;
  --footer-bg: #0b1a33;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* ─────────── Reset & base ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ─────────── Header ─────────── */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-brand {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-brand:hover { text-decoration: none; }
.site-brand__icon {
  font-size: 22px;
  line-height: 1;
}
.site-brand__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-brand__name {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.2px;
  color: #fff;
}
.site-brand__sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 500;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.site-nav__link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  font-weight: 400;
}
.site-nav__link:hover { color: #fff; }
.site-nav__link.is-active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* ─────────── Footer ─────────── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.6);
  padding: 28px 24px;
  font-size: 13px;
  margin-top: 0;
}
.site-footer__wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer__copy {
  margin: 0 0 8px;
}
.site-footer__disclaimer {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

/* ─────────── Print ─────────── */
@media print {
  .no-print { display: none !important; }
}

/* ─────────── Responsive ─────────── */
@media (max-width: 720px) {
  .site-header__wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav { gap: 14px; flex-wrap: wrap; }
}

/* Get Early Access nav button styling */
.site-nav__link--cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  border-bottom: none !important;
  font-weight: 600 !important;
}
.site-nav__link--cta:hover {
  background: #0e6cae;
  color: #fff !important;
}

/* ─────────────────────────────────────────────
   21st-dev-style logo marquee — single container, fixed flex+animation
   ───────────────────────────────────────────── */

/* Disable Elementor's default flex-column on the wrapper so the inner can be max-content wide */
#logo-marquee {
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 24px 0 !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 96px, #000 calc(100% - 96px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 96px, #000 calc(100% - 96px), transparent 100%);
}

/* The inner is the actual scrolling track */
#logo-marquee > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 56px !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  animation: sha-marquee-scroll 40s linear infinite !important;
  will-change: transform;
}

#logo-marquee:hover > .e-con-inner {
  animation-play-state: paused !important;
}

#logo-marquee .logo-marquee__item {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#logo-marquee .logo-marquee__item .elementor-widget-container {
  margin: 0 !important;
  padding: 0 !important;
}

#logo-marquee .logo-marquee__item img {
  height: 44px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
  display: block;
}

#logo-marquee .logo-marquee__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

@keyframes sha-marquee-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  #logo-marquee > .e-con-inner { animation: none !important; }
}

@media (max-width: 720px) {
  #logo-marquee > .e-con-inner { gap: 36px !important; animation-duration: 30s !important; }
  #logo-marquee .logo-marquee__item img { height: 34px !important; }
}

/* ─────────────────────────────────────────────
   Three-column flex grids — team + module curriculum
   ───────────────────────────────────────────── */
#team-grid > .e-con-inner,
#module-grid > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 20px !important;
  width: 100% !important;
}
#team-grid > .e-con-inner > .e-con,
#module-grid > .e-con-inner > .e-con {
  flex: 1 1 calc(33.333% - 14px) !important;
  max-width: calc(33.333% - 14px) !important;
  min-width: 0 !important;
}
@media (max-width: 900px) {
  #team-grid > .e-con-inner > .e-con,
  #module-grid > .e-con-inner > .e-con {
    flex-basis: calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
  }
}
@media (max-width: 600px) {
  #team-grid > .e-con-inner > .e-con,
  #module-grid > .e-con-inner > .e-con {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
}


/* ─────────────────────────────────────────────
   Team photo — bigger + centered
   ───────────────────────────────────────────── */
.team-photo,
.team-photo .elementor-widget-container {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 auto 22px !important;
}
.team-photo img {
  width: 200px !important;
  height: 200px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  margin: 0 auto !important;
  box-shadow: 0 8px 24px rgba(6,36,70,0.20) !important;
  border: 5px solid #fff !important;
}
@media (max-width: 600px) {
  .team-photo img { width: 170px !important; height: 170px !important; }
}

/* ─────────────────────────────────────────────
   Module curriculum: bigger headings
   ───────────────────────────────────────────── */
#module-grid h3,
#module-grid .elementor-heading-title {
  font-size: 22px !important;
  line-height: 1.25 !important;
  margin-bottom: 10px !important;
}

/* ─────────────────────────────────────────────
   Begin CTA on Live Module card: right-aligned + vertically centered
   ───────────────────────────────────────────── */
.begin-cta {
  align-self: center !important;
  justify-self: end !important;
  margin-left: auto !important;
}
.begin-cta .elementor-button-wrapper {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}
@media (max-width: 720px) {
  .begin-cta {
    align-self: stretch !important;
    margin: 14px 0 0 !important;
  }
  .begin-cta .elementor-button-wrapper {
    justify-content: center !important;
  }
}

/* ─────────────────────────────────────────────
   Hide YouTube embed chrome (autoplay + clean)
   ───────────────────────────────────────────── */
.elementor-widget-video.academy-video .elementor-custom-embed-image-overlay,
.elementor-widget-video.academy-video .elementor-custom-embed-play {
  display: none !important;
}
.elementor-widget-video.academy-video .elementor-video,
.elementor-widget-video.academy-video iframe {
  pointer-events: auto;
}

/* ─────────────────────────────────────────────
   M5 vertical centering (not horizontal)
   ───────────────────────────────────────────── */

/* Big "Live Module" card: text content vertical-center, left-aligned text */
#live-module-card {
  align-items: center !important;          /* vertical center children of flex-row */
  justify-content: space-between !important;
  text-align: left !important;
}
#live-module-card .e-con-inner > .e-con,
#live-module-card .elementor-widget {
  align-self: center !important;            /* belt-and-suspenders */
}
#live-module-card .elementor-heading-title,
#live-module-card .elementor-text-editor,
#live-module-card p, #live-module-card div {
  text-align: left !important;              /* never horizontal-center */
}

/* M5 card inside 12-module grid: vertically center content within stretched card */
#m5-card > .e-con-inner {
  justify-content: center !important;       /* vertical centering of column */
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;          /* don't horizontally center */
  text-align: left !important;
}
#m5-card .elementor-heading-title,
#m5-card .elementor-text-editor,
#m5-card p, #m5-card div {
  text-align: left !important;
}

/* Smooth-scroll for anchor links + offset for the sticky-ish header */
html { scroll-behavior: smooth; }
#modules,
#early-access {
  scroll-margin-top: 90px;
}

/* ─────────────────────────────────────────────
   LearnDash Focus Mode — pull lesson content nearer the sidebar
   (default centered 960px left ~300px of whitespace beside the menu)
   ───────────────────────────────────────────── */
@media (min-width: 1025px) {
  .learndash-wrapper .ld-focus-content {
    max-width: 1080px !important;
    margin-left: 56px !important;
    margin-right: auto !important;
  }
  /* lesson body wrapper sits flush-left within the content area */
  .learndash-wrapper .ld-focus-content div[style*="max-width:900px"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }
}
@media (min-width: 1600px) {
  .learndash-wrapper .ld-focus-content {
    max-width: 1180px !important;
    margin-left: 72px !important;
  }
}
