/* ============================================
   HUNTER DONIA — LEARN HUB
   Shared brand styles (pulled from hunterdonia.com)
   ============================================ */

@font-face {
  font-family: 'Bauer Bodoni';
  src: url('/assets/fonts/Bauer Bodoni Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Eyesome Script';
  src: url('/assets/fonts/Eyesome Script.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Sage */
  --sage: #8a9a7b;
  --sage-dark: #6b7d5e;
  --sage-deeper: #4e5e43;
  --sage-light: #a8b89b;
  --sage-pale: #dce4d6;
  /* Rose / blush */
  --rose: #c9a8a0;
  --rose-dark: #b08e86;
  --rose-light: #e0ccc7;
  --rose-pale: #f6f0ee;
  --rose-bg: #faf6f4;
  /* Accents */
  --gold: #c4a96a;
  --gold-light: #ddc78e;
  --orange: #ffab5e;
  --teal: #6aa6a6;
  --teal-pale: #dff0f0;
  /* Neutrals */
  --cream: #faf7f5;
  --warm-white: #fefcfb;
  --text: #4a4540;
  --text-light: #7a746e;
  --text-lighter: #a09890;
  --border: #e8e0db;
  --border-light: #f0ebe8;
  /* Type */
  --font-display: 'Bauer Bodoni', 'Georgia', 'Times New Roman', serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-script: 'Eyesome Script', cursive;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--warm-white);
  background-image:
    radial-gradient(60vw 50vh at 12% -5%, rgba(220, 228, 214, 0.55), transparent 60%),
    radial-gradient(55vw 45vh at 95% 8%, rgba(246, 240, 238, 0.9), transparent 55%),
    radial-gradient(70vw 60vh at 50% 115%, rgba(220, 228, 214, 0.4), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--sage-deeper); }

/* ===== Account chip (top right) ===== */
.hd-account {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  box-shadow: 0 1px 4px rgba(74,69,64,0.06);
  backdrop-filter: blur(6px);
}
.hd-account-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--gold));
  color: #fff; font-size: 0.75rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Hero ===== */
.hd-hero {
  text-align: center;
  padding: 4.5rem 2rem 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.hd-hero-logo {
  width: 100%; max-width: 250px; height: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 4px 14px rgba(74,69,64,0.08));
}
.hd-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--sage); margin-bottom: 1rem;
}
.hd-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--sage-deeper);
  margin-bottom: 1rem;
}
.hd-hero h1 .script {
  font-family: var(--font-script);
  font-size: 1.35em; color: var(--gold);
  display: inline-block; line-height: 0.8;
}
.hd-hero p {
  font-size: 1.08rem; color: var(--text-light);
  max-width: 560px; margin: 0 auto;
}

/* ===== Section label ===== */
.hd-section {
  max-width: 980px; margin: 0 auto; padding: 1.5rem 2rem;
}
.hd-section-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-lighter);
  text-align: center; margin: 2rem 0 1.5rem;
  position: relative;
}
.hd-section-label::before,
.hd-section-label::after {
  content: ''; position: absolute; top: 50%;
  width: 48px; height: 1px; background: var(--border);
}
.hd-section-label::before { left: calc(50% - 130px); }
.hd-section-label::after  { right: calc(50% - 130px); }

/* ===== Course cards ===== */
.hd-course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.hd-card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #ffffff 0%, var(--cream) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 3px rgba(74,69,64,0.04), 0 10px 34px rgba(74,69,64,0.06);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s, border-color 0.35s;
}
.hd-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--sage)), transparent);
  opacity: 0; transition: opacity 0.35s; z-index: 2;
}
.hd-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(74,69,64,0.07), 0 22px 50px rgba(74,69,64,0.12);
  border-color: var(--sage-pale);
}
.hd-card:hover::before { opacity: 1; }

.hd-card-banner {
  height: 188px;
  background: var(--banner, linear-gradient(135deg, var(--sage-pale), var(--rose-pale)));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 1.25rem;
}
.hd-card-banner .hd-card-logo {
  max-width: 82%;
  max-height: 152px;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(74,69,64,0.08));
}
.hd-card-banner .hd-card-monogram {
  width: 54px; height: auto; opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(74,69,64,0.12));
}
.hd-card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }

.hd-card-kicker {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent, var(--sage)); margin-bottom: 0.55rem;
}
.hd-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.55rem; line-height: 1.2; color: var(--sage-deeper);
  margin-bottom: 0.6rem;
}
.hd-card p {
  font-size: 0.92rem; color: var(--text-light); line-height: 1.6;
  margin-bottom: 1.25rem;
}
.hd-card-meta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--border-light);
}
.hd-card-lessons { font-size: 0.82rem; font-weight: 600; color: var(--text-lighter); }
.hd-card-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; font-weight: 700; color: var(--accent, var(--sage-dark));
}
.hd-card:hover .hd-card-cta { gap: 0.6rem; }

/* Locked state (no access to this course) */
.hd-card.is-locked { opacity: 0.72; }
.hd-card.is-locked .hd-card-cta { color: var(--text-lighter); }
.hd-lock-badge {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3;
  background: rgba(255,255,255,0.92); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.3rem 0.7rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-light);
  display: inline-flex; align-items: center; gap: 0.3rem;
}

/* ===== Resource (vault) row ===== */
.hd-resource {
  position: relative;
  display: flex; align-items: center; gap: 1.25rem;
  background: linear-gradient(135deg, var(--rose-pale) 0%, #fff 100%);
  border: 1px solid var(--rose-light);
  border-radius: 18px; padding: 1.35rem 1.6rem;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 3px rgba(74,69,64,0.04), 0 8px 24px rgba(201,168,160,0.16);
  transition: transform 0.25s, box-shadow 0.25s;
}
.hd-resource:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(74,69,64,0.06), 0 14px 34px rgba(201,168,160,0.28);
}
.hd-resource-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  display: flex; align-items: center; justify-content: center;
}
.hd-resource-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; }
.hd-vault-logo-wrap {
  flex-shrink: 0; width: 134px; height: 134px;
  border-radius: 16px;
  background: linear-gradient(150deg, #ffffff 0%, var(--rose-pale) 100%);
  border: 1px solid var(--rose-light);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.hd-vault-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 560px) {
  .hd-resource { flex-wrap: wrap; justify-content: center; text-align: center; }
  .hd-resource .hd-resource-arrow { display: none; }
}
.hd-resource-text { flex: 1; }
.hd-resource-text .hd-card-kicker { color: var(--rose-dark); }
.hd-resource-text h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 1.4rem;
  color: var(--sage-deeper); line-height: 1.2; margin-bottom: 0.2rem;
}
.hd-resource-text p { font-size: 0.88rem; color: var(--text-light); }
.hd-resource-arrow { font-size: 1.3rem; color: var(--rose-dark); flex-shrink: 0; }

/* ===== Work-with-Hunter CTA ===== */
.hd-cta { max-width: 980px; margin: 2rem auto 0; padding: 1rem 2rem 0; }
.hd-cta-inner {
  text-align: center;
  background: linear-gradient(135deg, var(--sage-pale) 0%, var(--rose-pale) 100%);
  border: 1px solid var(--sage-pale);
  border-radius: 22px;
  padding: 2.85rem 2rem;
  box-shadow: 0 1px 3px rgba(74,69,64,0.04), 0 12px 36px rgba(138,154,123,0.15);
}
.hd-cta-inner h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  color: var(--sage-deeper); line-height: 1.2;
  margin-bottom: 1.6rem;
}
.hd-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #5a6b4e, var(--sage-deeper));
  color: var(--cream);
  font-size: 1rem; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 2.5rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(78,94,67,0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hd-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(78,94,67,0.4); }

/* ===== Footer ===== */
.hd-footer {
  text-align: center; padding: 3rem 2rem 2.5rem;
  font-size: 0.8rem; color: var(--text-lighter);
}
.hd-footer a { color: var(--sage-dark); text-decoration: none; font-weight: 600; }
.hd-footer a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .hd-hero { padding: 3rem 1.5rem 1rem; }
  .hd-course-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .hd-section { padding: 1rem 1.25rem; }
  .hd-section-label::before { left: calc(50% - 110px); }
  .hd-section-label::after  { right: calc(50% - 110px); }
}
