/* ==========================================================================
   Loveworld Digital Media School — stylesheet
   ========================================================================== */

:root {
  --navy-900: #0a1740;
  --navy-800: #0e1f52;
  --navy-700: #14296b;
  --blue-500: #2158f4;
  --blue-400: #3f74ff;
  --blue-300: #7aa0ff;
  --ink: #101a33;
  --ink-soft: #4b5670;
  --paper: #ffffff;
  --paper-tint: #f4f6fb;
  --line: #e3e7f2;

  --font-display: 'Sora', 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 20px 50px -25px rgba(10, 23, 64, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-500);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(33, 88, 244, 0.55);
}
.btn-primary:hover { background: var(--blue-400); }

.btn-light {
  background: #fff;
  color: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.35);
}
.btn-light:hover { background: var(--paper-tint); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-large { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.brand-logo { height: 64px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue-500);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--blue-500) 140%);
  color: #fff;
  padding: 180px 0 110px;
  padding-top: 400px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(63,116,255,0.55) 0%, rgba(63,116,255,0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; max-width: 780px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-300);
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--blue-300); }

.hero-lede {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  max-width: 640px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
  color: #fff;
  padding: 116px 0 92px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 23, 64, 0.85), rgba(33, 88, 244, 0.78));
}

.page-hero-dark .page-hero-overlay { background: linear-gradient(135deg, rgba(7, 16, 45, 0.88), rgba(20, 41, 107, 0.82)); }

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); max-width: 760px; }
.page-hero p:not(.eyebrow) { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 620px; margin: 0; }

/* ---------- Section shells ---------- */

.section { padding: 96px 0; }
.section-dark { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.section-tint { background: var(--paper-tint); }

.purpose-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.purpose-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}


.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.section-tag-light { color: var(--blue-300); }

.section-head { max-width: 640px; margin: 0 0 52px; }
.section-head h2, .about-copy h2, .purpose-inner h2, .cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--blue-500);
  font-weight: 800;
  text-decoration: none;
}
.text-link span { transition: transform 0.2s ease; }
.text-link:hover span { transform: translateX(4px); }

.home-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.home-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 24px 0;
  border-right: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.home-link + .home-link { padding-left: 24px; }
.home-link:last-child { border-right: 0; }
.home-link span, .contact-label { color: var(--blue-500); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.home-link strong { font-family: var(--font-display); font-size: 1.12rem; color: var(--navy-900); }
.home-link em { color: var(--ink-soft); font-size: 0.9rem; font-style: normal; }
.home-link:hover strong { color: var(--blue-500); }

.two-column-copy, .purpose-page-grid, .contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.two-column-copy h2, .purpose-page-grid h2, .contact-grid h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.purpose-page-grid p:last-child, .two-column-copy p:last-child { margin-bottom: 0; }

.contact-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.contact-email { display: block; color: var(--navy-900); font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 700; margin: 12px 0 28px; text-decoration: none; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--navy-800); }
.form-field input,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-notice { padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.92rem; margin: 12px 0 0; }
.form-notice-success { background: #e6f4ea; color: #1a7a3e; }
.form-notice-error { background: #fbe9e9; color: #b3261e; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-card {
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.stat-label { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about-media-badge {
  position: absolute;
  left: -20px;
  bottom: -24px;
  max-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
}

.about-media-badge .stat-number { font-size: 1.9rem; }
.about-media-badge .stat-label { font-size: 0.85rem; }

/* ---------- Purpose ---------- */

.purpose-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.purpose-mark {
  width: 164px;
  height: auto;
  margin: 0 0 28px;
  opacity: 0.9;
}

.purpose-inner h2 { color: #fff; }

.purpose-text {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
}

/* ---------- Training cards ---------- */

.training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.training-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.training-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.training-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 34px 0;
  margin-bottom: 24px;
}

.training-card .training-list { padding: 0 34px 34px; }

.training-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
  color: #fff;
  flex-shrink: 0;
}
.training-icon svg { width: 22px; height: 22px; }

.training-card h3 { margin: 0; font-size: 1.25rem; }

.training-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.training-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.training-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* ---------- Experience ---------- */

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.experience-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.experience-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.experience-card-body { padding: 24px; }

.experience-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blue-400);
  margin-bottom: 14px;
}

.experience-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.experience-card p { font-size: 0.92rem; margin: 0; }

/* ---------- CTA ---------- */

.section-cta {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
  color: #fff;
}

.cta-inner {
  max-width: 640px;
}

.cta-inner h2 { color: #fff; }

.cta-text {
  color: rgba(255,255,255,0.82);
  margin-bottom: 34px;
}

/* ---------- Live stream ---------- */

.live-frame {
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(160deg, #1b2547, var(--navy-900));
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.live-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.live-screen:fullscreen,
.live-screen:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.live-screen iframe,
.live-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.live-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}
.live-placeholder svg { width: 48px; height: 48px; opacity: 0.7; }
.live-placeholder p { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.5); }

.live-fullscreen-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(10, 23, 64, 0.65);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.live-fullscreen-btn:hover { background: var(--blue-500); transform: translateY(-2px); }
.live-fullscreen-btn svg { width: 20px; height: 20px; }
.live-fullscreen-btn .icon-compress { display: none; }
.live-screen.is-fullscreen .icon-expand { display: none; }
.live-screen.is-fullscreen .icon-compress { display: block; }

.live-embed-wrap { position: absolute; inset: 0; }
.live-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.live-screen.is-locked { filter: blur(18px); pointer-events: none; user-select: none; }

/* ---------- Live viewer gate ---------- */

.live-gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 23, 64, 0.72);
  backdrop-filter: blur(4px);
}
.live-gate-overlay.is-open { display: flex; }

.live-gate-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.live-gate-modal h2 { margin: 4px 0 8px; font-family: var(--font-display); color: var(--navy-900); }
.live-gate-sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }
.live-gate-modal .form-field { margin-bottom: 16px; }
.live-gate-modal .btn { width: 100%; margin-top: 4px; }
.live-gate-error {
  margin: -4px 0 16px;
  font-size: 0.88rem;
  color: #b3261e;
  background: #fbe9e9;
  padding: 10px 12px;
  border-radius: 8px;
}

.live-gate-home-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.live-gate-home-link:hover { color: var(--navy-900); text-decoration: underline; }

body.live-gate-active { overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin: 0 0 18px;
}

.footer-tagline {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-blurb {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  max-width: 340px;
  margin-bottom: 24px;
}

.footer-heading {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links li + li { margin-top: 12px; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-links a:hover { color: #fff; }

.btn-footer { margin-top: 16px; }

.footer-social {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.social-link:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
  transform: translateY(-2px);
}
.social-link svg,
.social-link .social-icon-img { width: 18px; height: 18px; }

.footer-contact a {
  color: var(--blue-300);
  text-decoration: none;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; margin-bottom: 20px; }
  .about-media-badge { left: 16px; bottom: -20px; }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .training-grid { grid-template-columns: 1fr; }
  .two-column-copy, .purpose-page-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .hero { padding: 130px 0 80px; }
  .page-hero { padding: 88px 0 68px; }
  .experience-grid { grid-template-columns: 1fr; }
  .training-list { grid-template-columns: 1fr; }
  .training-card-head, .training-card .training-list { padding-left: 24px; padding-right: 24px; }
  .about-media img { height: 300px; }
  .about-stats { grid-template-columns: 1fr; }
  .home-links { grid-template-columns: 1fr; }
  .home-link, .home-link + .home-link { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .home-link:last-child { border-bottom: 0; }
  .contact-panel { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
}
