/* ==========================================================================
   Dare to Homeschool — brand layer for the Kajabi Encore theme
   Ported from the Shopify theme "Claude - Live Settings Merge v1.2.0".

   This file is the ONLY place brand styling lives. styles.scss.liquid is the
   untouched Kajabi vendor stylesheet — never edit or rebuild it.
   Custom properties are legal here because this is a plain .css asset; they
   are NOT legal inside a .scss.liquid file.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
  --dth-navy: #202A56;
  --dth-ink: #2E3356;
  --dth-muted: #666B83;
  --dth-border: #E7E2F0;
  --dth-purple: #7E63C0;
  --dth-purple-deep: #6B4C9E;
  --dth-lav: #E4DAF5;
  --dth-lav-bg: #F6F2FC;
  --dth-teal: #46C7B8;
  --dth-teal-deep: #2E9E93;
  --dth-mint: #C7EDE8;
  --dth-mint-bg: #EAF8F5;
  --dth-cream: #FFFCF6;
  --dth-paper: #FCFAF7;
  --dth-peach: #F7D8C9;
  --dth-peach-bg: #FFF2EB;
  --dth-gold: #D9AF55;
  --dth-blue: #D9E8F8;
  --dth-green: #E1F0D9;
  --dth-orange: #FBE7CE;
  --dth-pink: #F9DEEC;
  --dth-shadow: 0 14px 34px rgba(32, 42, 86, .11);
  --dth-serif: "Fraunces", Georgia, serif;
  --dth-sans: "Nunito Sans", system-ui, sans-serif;
  --dth-script: "Caveat", cursive;
}

/* ---------- Typography ---------------------------------------------------- */
body, .dth p, .dth li { font-family: var(--dth-sans); color: var(--dth-ink); }
h1, h2, h3, h4, h5, h6, .dth-serif { font-family: var(--dth-serif); color: var(--dth-navy); }

.dth-eyebrow {
  font-size: .6875rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .11em; color: var(--dth-purple-deep); margin: 0 0 6px;
}
.dth-lead { font-size: 1.0625rem; line-height: 1.65; color: var(--dth-ink); }
.dth-script {
  font-family: var(--dth-script); font-weight: 700; font-size: 1.5rem;
  color: var(--dth-purple-deep); margin-top: 14px;
}
.dth-muted { color: var(--dth-muted); }
.dth h1 { line-height: 1.07; }
.dth h2 { line-height: 1.12; }

/* ---------- Buttons ------------------------------------------------------- */
.dth-btn {
  display: inline-block; border: 1.5px solid transparent; border-radius: 999px;
  padding: 12px 22px; margin: 6px 8px 6px 0;
  font: 800 .8125rem var(--dth-sans); text-align: center; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.dth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(32,42,86,.14); text-decoration: none; }
.dth-btn--purple { background: var(--dth-purple); color: #fff !important; }
.dth-btn--navy   { background: var(--dth-navy);   color: #fff !important; }
.dth-btn--teal   { background: var(--dth-teal);   color: var(--dth-navy); }
.dth-btn--ghost  { background: transparent; border-color: var(--dth-navy); color: var(--dth-navy); }
.dth-btn--purple:hover, .dth-btn--navy:hover { color: #fff; }

/* ---------- Tags / pills -------------------------------------------------- */
.dth-tag {
  display: inline-block; font-size: .625rem; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 800; padding: 5px 9px;
  border-radius: 999px; margin-bottom: 8px;
}
.dth-tag--purple { background: var(--dth-lav);   color: var(--dth-purple-deep); }
.dth-tag--teal   { background: var(--dth-mint);  color: var(--dth-navy); }
.dth-tag--peach  { background: var(--dth-peach); color: #8B4E37; }

/* ---------- Cards --------------------------------------------------------- */
.dth-card {
  background: #fff; border: 1px solid var(--dth-border); border-radius: 18px;
  padding: 22px; box-shadow: 0 3px 10px rgba(32,42,86,.05); height: 100%;
}
.dth-card h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.dth-card p  { font-size: .8125rem; line-height: 1.55; color: var(--dth-muted); margin: 0; }

/* ---------- Numbered steps ------------------------------------------------ */
.dth-step-n {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--dth-purple);
  color: #fff; font-weight: 800; font-size: .75rem; margin-bottom: 10px;
}

/* ---------- Checklists ---------------------------------------------------- */
.dth-checklist { padding: 0; margin: 12px 0 0; list-style: none; }
.dth-checklist li { font-size: .875rem; margin: 10px 0; padding-left: 24px; position: relative; }
.dth-checklist li::before {
  content: "\2713"; position: absolute; left: 0;
  color: var(--dth-teal-deep); font-weight: 900;
}

/* ---------- Week-at-a-glance grid ---------------------------------------- */
.dth-week-wrap { overflow-x: auto; }
.dth-week {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--dth-navy); border-radius: 14px; overflow: hidden;
  font-size: .75rem; min-width: 640px;
}
.dth-week th, .dth-week td {
  padding: 12px; border-right: 1px solid #CBD0E0; border-bottom: 1px solid #CBD0E0;
  text-align: left; vertical-align: top;
}
.dth-week th { background: var(--dth-navy); color: #fff; font-weight: 800; text-align: center; }
.dth-week td:first-child { background: var(--dth-lav-bg); color: var(--dth-navy); font-weight: 800; width: 170px; }
.dth-week tr td:nth-child(2) { background: #EFFBF8; }
.dth-week tr td:nth-child(3) { background: #F7F3FC; }
.dth-week tr td:nth-child(4) { background: #FFF8EE; }
.dth-week tr td:nth-child(5) { background: #F0F6FC; }
.dth-week th:last-child, .dth-week td:last-child { border-right: 0; }

/* ---------- Lesson colour key -------------------------------------------- */
.dth-lesson-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 15px; }
.dth-lesson-bars span { height: 18px; border-radius: 5px; display: block; }

/* ---------- Image placeholder panels ------------------------------------- */
.dth-ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 24px; border: 1px dashed #BDB2D3; padding: 28px;
  background: linear-gradient(135deg, var(--dth-lav) 0 49%, var(--dth-mint) 49% 100%);
  min-height: 260px;
}
.dth-ph--tall { min-height: 340px; }
.dth-ph--wide { min-height: 200px; }
.dth-ph--round { border-radius: 50%; aspect-ratio: 1 / 1; min-height: 0; }
.dth-ph span {
  background: rgba(255,255,255,.9); border-radius: 14px; padding: 10px 16px;
  font: 700 .75rem var(--dth-sans); color: var(--dth-muted); display: inline-block;
}

/* ---------- Quote --------------------------------------------------------- */
.dth-quote { font-size: 1.0625rem; line-height: 1.6; color: var(--dth-ink); }
.dth-quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; color: var(--dth-muted); font-size: .8125rem; }

/* ---------- Story blocks (About) ----------------------------------------- */
.dth-story h2 { font-size: 1.5rem; margin: 0 0 12px; }
.dth-story p  { font-size: .9375rem; line-height: 1.7; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 767px) {
  .dth-ph { min-height: 180px; }
  .dth-ph--tall { min-height: 220px; }
  .dth-btn { display: block; margin-right: 0; }
}

/* ---------- Shop: scoped to the store template ---------------------------- */
.dth-shop { background: var(--dth-cream); color: var(--dth-ink); }
.dth-shop [id^="section-"] { scroll-margin-top: 110px; }
.dth-shop .dth-shop-intro { max-width: 800px; margin: 0 auto; }
.dth-shop h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; }
.dth-shop h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.dth-shop .dth-lead { max-width: 680px; margin: 16px auto 0; }
.dth-shop .dth-shop-links { margin-top: 24px; }
.dth-shop .block-type--offer { display: flex; }
.dth-shop .block-type--offer > .block { width: 100%; overflow: hidden; box-shadow: 0 3px 10px rgba(32,42,86,.05); transition: box-shadow .18s ease; }
.dth-shop .block-type--offer > .block:hover { box-shadow: var(--dth-shadow); }
.dth-shop .block-type--offer .card { display: flex; flex-direction: column; height: 100%; color: var(--dth-ink); text-decoration: none; background: #fff; }
.dth-shop .card__image { width: 100%; height: auto; border-radius: 0; }
.dth-shop .card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; text-align: left; }
.dth-shop .card__title { font-family: var(--dth-serif); color: var(--dth-navy); font-size: 1.375rem; line-height: 1.25; }
.dth-shop .card__text { color: var(--dth-muted); font-size: .9375rem; line-height: 1.65; margin-bottom: 24px; }
.dth-shop .card__price { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--dth-border); color: var(--dth-purple-deep); font: 800 1.125rem var(--dth-sans); }
.dth-shop .accordion-title h5 { font: 700 1.125rem/1.4 var(--dth-serif); color: var(--dth-navy); }
.dth-shop .accordion-body { color: var(--dth-muted); line-height: 1.7; }
.dth-shop a:focus-visible { outline: 3px solid var(--dth-purple-deep); outline-offset: 4px; }
.dth-shop .card:focus-visible { outline-offset: -4px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .dth-shop .block-type--offer.col-4 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 767px) {
  .dth-shop .block-type--offer { flex: 0 0 100%; max-width: 100%; }
  .dth-shop .card__body { padding: 22px; }
  .dth-shop .dth-shop-links { max-width: 360px; margin: 24px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dth-shop .block-type--offer > .block, .dth-shop .dth-btn { transition: none; }
  .dth-shop .dth-btn:hover { transform: none; }
}
