/* =============================================================
   AFP — Style
   Brand primary: #70195d (deep plum)
   ============================================================= */

/* ── 1. Fonts ───────────────────────────────────────────────── */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/GeistVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/GeistVariable-Italic.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ── 2. Custom properties ───────────────────────────────────── */

:root {
  --plum: #70195d;
  --plum-dark: #520f45;
  --plum-deep: #3d0d32;
  --plum-light: #f5eaf3;
  --plum-border: rgba(112, 25, 93, 0.2);

  --text: #1a1a2e;
  --text-muted: #6b6b80;
  --bg: #ffffff;
  --bg-alt: #f8f7f9;
  --border: #e8e2e7;

  --shadow-sm: 0 2px 12px rgba(112, 25, 93, 0.08);
  --shadow-md: 0 8px 32px rgba(112, 25, 93, 0.12);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-pill: 999px;

  --nav-height: 64px;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── 3. Reset / base ────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

a {
  color: var(--plum);
  text-decoration: none;
}

a:hover {
  color: var(--plum-dark);
}

ul {
  list-style: none;
}

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

/* ── 4. Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--plum);
  border-color: var(--plum);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--plum-dark);
  border-color: var(--plum-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(112, 25, 93, 0.28);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--plum);
  color: var(--plum);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--plum);
  border-color: var(--plum);
  color: #fff;
  box-shadow: 0 4px 12px rgba(112, 25, 93, 0.2);
}

/* ── 5. Navbar ──────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--plum);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand:hover {
  color: #fff;
}

.navbar-brand img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.nav-links a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* Animated hamburger → X */
.navbar.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.navbar.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 6. Hero ─────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: #fff;
  padding: 6rem 1.5rem 5.5rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.13;
  max-width: 800px;
  margin: 0 auto 1.25rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero button overrides — inverted on dark background */
.hero-buttons .btn-primary {
  background-color: #fff;
  border-color: #fff;
  color: var(--plum);
}

.hero-buttons .btn-primary:hover,
.hero-buttons .btn-primary:focus {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--plum);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero-buttons .btn-outline:hover,
.hero-buttons .btn-outline:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}

/* ── 7. Sections ─────────────────────────────────────────────── */

.section {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
}

.section-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-body {
  color: var(--text-muted);
  font-size: 1.025rem;
  line-height: 1.75;
  max-width: 700px;
}

.section-body + .section-body {
  margin-top: 0.75rem;
}

/* Alternating section backgrounds */
.section:nth-child(odd) {
  background-color: var(--bg-alt);
}

/* ── 8. Audience grid ────────────────────────────────────────── */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.audience-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.audience-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--plum-border);
}

.audience-icon {
  font-size: 1.5rem;
  color: var(--plum);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.audience-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.audience-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-footnote {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 2rem;
}

/* ── 9. Cards, badges, best-for ──────────────────────────────── */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 1.75rem;
}

.card-featured {
  border-left: 4px solid var(--plum);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  margin-top: 0.35rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.card ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-left: 1.2rem;
  list-style: disc;
  margin-bottom: 1rem;
}

.card ul li {
  margin-bottom: 0.2rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

/* Badge */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background-color: var(--plum);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}

.badge-soon {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Best for callout */
.best-for {
  background: var(--plum-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  margin: 1rem 0;
  line-height: 1.6;
}

.best-for strong {
  color: var(--plum);
}

/* Card button row */
.card-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* Centered button row (standalone, below a card) */
.buttons-center {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Featured course previews */
.featured-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.featured-courses-grid .card {
  margin-top: 0;
}

.course-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.course-preview:hover,
.course-detail:hover,
.course-preview:focus-within,
.course-detail:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.course-preview .badge {
  align-self: flex-start;
}

.course-preview h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card .course-summary {
  margin-bottom: 0;
}

.course-audience {
  margin: 1.25rem 0 0;
}

.course-audience strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.course-preview .card-buttons {
  margin-top: auto;
  padding-top: 1.5rem;
}

/* Detailed available courses */
.available-courses-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.available-courses-list .card {
  margin-top: 0;
}

.course-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17.5rem, 0.8fr);
  padding: 0;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.course-detail-main,
.course-outline {
  padding: 2.25rem;
}

.course-detail-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.course-detail h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  margin-bottom: 0.85rem;
}

.course-detail .course-summary {
  font-size: 0.98rem;
}

.course-detail .course-audience {
  width: 100%;
}

.course-detail .card-buttons {
  margin-top: 1.5rem;
}

.course-outline {
  background: var(--plum-light);
  border-left: 1px solid var(--plum-border);
}

.course-outline-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--plum-border);
}

.course-outline-heading h4 {
  font-size: 1rem;
}

.course-outline-heading span {
  flex-shrink: 0;
  color: var(--plum);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-topic-list {
  counter-reset: course-topic;
  list-style: none;
  margin-top: 0.75rem;
}

.course-topic-list li {
  counter-increment: course-topic;
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.course-topic-list li::before {
  content: counter(course-topic, decimal-leading-zero);
  color: var(--plum);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.8;
}

/* ── 10. Upcoming courses grid ───────────────────────────────── */

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.upcoming-grid .card {
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

/* ── 11. Platform links ──────────────────────────────────────── */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.platform-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.platform-link:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--plum-border);
  transform: translateY(-2px);
  color: var(--text);
}

.platform-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.platform-icon-youtube {
  color: #ff0000;
}
.platform-icon-facebook {
  color: #1877f2;
}
.platform-icon-tiktok {
  color: #000000;
}

.platform-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.platform-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 12. Contact ─────────────────────────────────────────────── */

.contact-block {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.contact-block h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-block p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 460px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

/* ── 13. Footer ──────────────────────────────────────────────── */

.footer {
  background-color: #1a0415;
  color: rgba(255, 255, 255, 0.65);
  padding: 3.5rem 1.5rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-heading {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.9rem;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-brand-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-list a,
.footer-social-list a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links-list a:hover,
.footer-social-list a:hover {
  color: #fff;
}

.footer-social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social-section + .footer-social-section {
  margin-top: 1.25rem;
}

.footer-copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 0;
  font-size: 0.8rem;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── 14. Courses page intro section ──────────────────────────── */

.page-intro p + p {
  margin-top: 0.75rem;
}

/* ── 15. Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--plum-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .navbar.nav-open .nav-links {
    display: flex;
  }

  /* Make navbar position:relative so absolute nav-links offsets from it */
  .navbar {
    position: sticky;
    flex-wrap: wrap;
  }

  .nav-links a {
    padding: 0.75rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  /* Hero */
  .hero {
    padding: 4rem 1.25rem 3.5rem;
  }

  /* Sections */
  .section {
    padding: 3.5rem 1.25rem;
  }

  /* Audience: 1 col */
  .audience-grid {
    grid-template-columns: 1fr;
  }

  /* Courses: 1 col */
  .featured-courses-grid,
  .course-detail {
    grid-template-columns: 1fr;
  }

  .course-outline {
    border-top: 1px solid var(--plum-border);
    border-left: none;
  }

  /* Upcoming: 1 col */
  .upcoming-grid {
    grid-template-columns: 1fr;
  }

  /* Platforms: 1 col */
  .platforms-grid {
    grid-template-columns: 1fr;
  }

  /* Footer: stack */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    text-align: center;
  }

  .footer-links-list,
  .footer-social-list {
    align-items: center;
  }

  .footer {
    padding: 2.5rem 1.25rem 0;
  }
}

@media (max-width: 576px) {
  /* Hero buttons: stack */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Cards: tighter padding */
  .card {
    padding: 1.5rem;
  }

  .course-detail {
    padding: 0;
  }

  .course-detail-main,
  .course-outline {
    padding: 1.5rem;
  }

  .course-preview .btn,
  .course-detail .btn {
    width: 100%;
    text-align: center;
  }

  .audience-item {
    padding: 1.25rem;
  }
}
