/* ===========================================================
   AdDigital Training Academy — Shared Styles
   Brand: green #30c20f · black #111111 · white #ffffff
   =========================================================== */

/* ---------- Brand fonts (matched to addigital.site) ----------
   Body: Montserrat (Google Fonts) · Display headings: Blissful Thinking (self-hosted) */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

@font-face {
  font-family: "Blissful Thinking";
  src: url("../assets/fonts/BlissfulThinking.woff2") format("woff2"),
       url("../assets/fonts/BlissfulThinking.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #30c20f;
  --green-dark: #28a30c;
  --green-soft: #eafbe6;
  --black: #111111;
  --white: #ffffff;
  --gray-50: #f7f8f7;
  --gray-100: #eef0ee;
  --gray-200: #e2e5e2;
  --gray-400: #9aa09a;
  --gray-500: #6b716b;
  --gray-700: #3a3f3a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 6px 24px rgba(17, 17, 17, 0.10);
  --shadow-lg: 0 14px 40px rgba(17, 17, 17, 0.16);
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* Display headings — Blissful Thinking script (matches addigital.site h1/h2).
   The script ships a single 400 weight, and the theme uses tight negative tracking
   tuned for Montserrat — both crowd the script, so reset them here. */
h1, h2, .font-blissful {
  font-family: "Blissful Thinking", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400 !important;   /* avoid synthetic fake-bold on a single-weight script */
  letter-spacing: 0.01em !important;  /* undo the theme's negative tracking; give the script air */
  line-height: 1.12;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Brand logo ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.brand-word { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.brand-word .muted { color: var(--gray-400); font-weight: 600; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.topbar .brand-word { color: var(--white); }
.topbar .brand-word .muted { color: rgba(255, 255, 255, 0.55); }
.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.topnav a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.15s;
}
.topnav a:hover { color: var(--white); }
.topnav a.active { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(48, 194, 15, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: var(--white); }
.btn:disabled, .btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(48, 194, 15, 0.22), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 88px;
  padding-bottom: 96px;
  max-width: 820px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--green); }
.hero p {
  font-size: clamp(16px, 2.2vw, 19px);
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin-bottom: 32px;
}

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-head p { color: var(--gray-500); font-size: 15px; }

/* ---------- Course grid ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.course-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.badge-available { background: var(--green-soft); color: var(--green-dark); }
.badge-available::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.badge-soon { background: var(--gray-100); color: var(--gray-500); }

.course-icon {
  font-size: 22px;
  line-height: 1;
}

.course-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.course-card .course-desc {
  font-size: 14.5px;
  color: var(--gray-500);
  margin-bottom: 18px;
  flex: 1;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.meta-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 5px 10px;
}

.course-card .btn { width: 100%; }

/* ---------- Coming soon (locked) card ---------- */
.course-card.locked {
  background: var(--gray-50);
  border-style: dashed;
  box-shadow: none;
}
.course-card.locked:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--gray-200);
}
.course-card.locked h3 { color: var(--gray-500); }
.course-card.locked .course-icon { opacity: 0.45; filter: grayscale(1); }
.locked-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 700;
  cursor: not-allowed;
}
.course-card.locked.nudge { animation: nudge 0.4s ease; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 44px 0;
  margin-top: 24px;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer .brand-word { color: var(--white); }
.footer .brand-word .muted { color: rgba(255, 255, 255, 0.5); }
.footer-tag { font-size: 13px; }
.footer-copy { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.footer-home { font-size: 13px; padding: 8px 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .topnav { gap: 16px; }
  .hero .container { padding-top: 60px; padding-bottom: 64px; }
  .section { padding: 48px 0; }
  .course-grid { grid-template-columns: 1fr; }
  .footer .container { flex-direction: column; text-align: center; }
}
