/* Custom Styles */
/* The Joyful Trader: Kajabi theme overrides (paste into Settings > Custom Code > CSS code) */

:root {
  --jt-midnight: #1a1d2e; --jt-navy: #22253a; --jt-cream: #f5f0e8;
  --jt-amber: #d4a43a; --jt-teal: #17706f; --jt-steel: #8a9bb5;
}

/* Type */
body, p, li, input, select, textarea, button, .btn, .link-list__link, .dropdown__item {
  font-family: 'Outfit', system-ui, sans-serif !important;
}
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
}
h5, h6, .h5, .h6 { font-family: 'Outfit', system-ui, sans-serif !important; font-weight: 600 !important; }
body { color: var(--jt-midnight); -webkit-font-smoothing: antialiased; }
a { color: var(--jt-teal); }

/* Header */
.header, .header__content, .header__content--desktop, .header__content--mobile {
  background: var(--jt-midnight) !important;
  border-bottom: 1px solid rgba(245,240,232,.10);
  box-shadow: none !important;
}
.header .link-list__link, .header .dropdown__trigger, .header .user__login a, .header .logo__text {
  color: rgba(245,240,232,.78) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  transition: color .3s ease;
}
.header .link-list__link:hover, .header .dropdown__trigger:hover { color: var(--jt-cream) !important; }
.header .logo img { max-height: 30px !important; width: auto !important; }
.hamburger__slice { background: var(--jt-cream) !important; }
.header .btn {
  background: transparent !important;
  color: var(--jt-amber) !important;
  border: 1px solid rgba(212,164,58,.6) !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
}
.header .btn:hover { background: var(--jt-amber) !important; color: var(--jt-midnight) !important; }
.dropdown__menu { border-radius: 12px !important; border: 1px solid rgba(26,29,46,.08) !important; box-shadow: 0 12px 32px rgba(26,29,46,.12) !important; }

/* Buttons */
.btn, button[type="submit"], input[type="submit"] {
  background: var(--jt-amber) !important;
  border-color: var(--jt-amber) !important;
  color: var(--jt-midnight) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: background .3s ease, transform .3s ease;
}
.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: #e0b34a !important; }
.btn--outline { background: transparent !important; color: var(--jt-midnight) !important; border: 1px solid rgba(26,29,46,.25) !important; }

/* Forms */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea, .form-control {
  border-radius: 12px !important;
  border: 1px solid rgba(26,29,46,.18) !important;
  min-height: 48px;
  padding: 0 14px;
  font-size: 16px !important;
  box-shadow: none !important;
}
input:focus, select:focus, textarea:focus, .form-control:focus { border-color: var(--jt-teal) !important; outline: none !important; }

/* Cards and panels (library, coaching sessions, offers) */
.card, .panel, .coaching-session, .product-card {
  border-radius: 16px !important;
  border: 1px solid rgba(26,29,46,.08) !important;
  box-shadow: 0 1px 2px rgba(26,29,46,.04) !important;
}

/* Footer */
.footer, .footer__content, .footer__container {
  background: var(--jt-midnight) !important;
  color: var(--jt-steel) !important;
}
.footer a, .footer .link-list__link { color: rgba(245,240,232,.72) !important; }
.footer a:hover, .footer .link-list__link:hover { color: var(--jt-cream) !important; }
.footer .logo img { max-height: 40px !important; width: auto !important; }

/* Checkout page */
body#encore-theme { background: #f7f4ee !important; }
.section h2 { font-size: clamp(34px, 3.4vw, 48px) !important; line-height: 1.05 !important; text-wrap: balance; margin-bottom: 18px !important; }
.jt-lead { font-size: 19px !important; line-height: 1.6 !important; color: #3a3d4e !important; font-weight: 300 !important; max-width: 52ch; }
.jt-k { margin-top: 28px !important; font-size: 14px !important; color: #5b6478 !important; }
.section ul { list-style: none !important; padding: 0 !important; margin: 12px 0 0 !important; }
.section ul li { position: relative; padding: 0 0 0 34px !important; margin: 0 0 14px !important; font-size: 17px !important; line-height: 1.5 !important; color: #3a3d4e !important; }
.section ul li::before { content: ""; position: absolute; left: 0; top: .66em; width: 20px; height: 2px; border-radius: 2px; background: #d4a43a; }
.section ul li strong { color: #1a1d2e; font-weight: 600; }
.jt-fine { margin-top: 26px !important; padding-top: 18px; border-top: 1px solid rgba(26,29,46,.1); font-size: 13px !important; line-height: 1.6 !important; color: #5b6478 !important; max-width: 60ch; }
.block-type--image img, .section img { border-radius: 16px; }
.kjb-embedded-checkout { border-radius: 16px; }
h1, h2, h3, .section p, .section li { text-wrap: pretty; }
/* Win over Kajabi's per-button colour settings */
.btn:not(#jt-a):not(#jt-b), a.btn:not(#jt-a):not(#jt-b), .btn--solid:not(#jt-a):not(#jt-b) {
  background: #d4a43a !important; border-color: #d4a43a !important; color: #1a1d2e !important;
  border-radius: 12px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important;
}
.btn:not(#jt-a):not(#jt-b):hover { background: #e0b34a !important; color: #1a1d2e !important; }
.btn--outline:not(#jt-a):not(#jt-b) { background: transparent !important; color: #1a1d2e !important; border: 1px solid rgba(26,29,46,.25) !important; }
.section--hero .btn--outline:not(#jt-a):not(#jt-b), .header .btn:not(#jt-a):not(#jt-b) { color: #d4a43a !important; border-color: rgba(212,164,58,.6) !important; background: transparent !important; }

/* Balanced line breaks for headings: no single-word orphans */
h1, h2, h3, .h1, .h2, .h3, .syllabus__heading, .panel__heading { text-wrap: balance; }
.section--hero h1, .section--hero h2 { max-width: 18ch; margin-left: auto !important; margin-right: auto !important; }
p { text-wrap: pretty; }

/* Order panel: product name in the sans serif so "(1 Session)" reads clearly */
.kjb-embedded-checkout h1:not(#jt-a), .kjb-embedded-checkout h2:not(#jt-a), .kjb-embedded-checkout h3:not(#jt-a), .kjb-embedded-checkout h4:not(#jt-a) {
  font-family: 'Outfit', system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-variation-settings: normal !important;
  letter-spacing: -0.005em !important;
}
