/* Palette & type derived from jdsg.com (Materialis / Kirki) */
:root {
  --color-bg: #f5fafd;
  --color-surface: #ffffff;
  --color-text: #6b7c93;
  --color-heading: #54617a;
  --color-primary: #228ae6;
  --color-primary-hover: #369efa;
  --color-accent: #fa5252;
  --color-nav: #222b34;
  --color-border: #e8e8e8;
  --color-muted: #989898;
  --color-overlay: #181818;
  --font-sans: "Roboto", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --shadow-sm: 0 1px 3px rgba(24, 24, 24, 0.06);
  --shadow-md: 0 8px 30px rgba(34, 43, 52, 0.08);
  --radius: 12px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 400;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 38rem;
}

.accent-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}

.site-header {
  background: var(--color-nav);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
  opacity: 0.92;
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__tag {
  font-weight: 300;
  font-size: 0.72rem;
  opacity: 0.85;
  text-transform: none;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-nav);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.5rem;
  }
}

.hero .kicker {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero {
  position: relative;
  background: linear-gradient(
      135deg,
      rgba(24, 24, 24, 0.88) 0%,
      rgba(34, 43, 52, 0.82) 45%,
      rgba(34, 138, 230, 0.35) 100%
    ),
    var(--color-bg);
  color: #fff;
  padding: clamp(3rem, 8vw, 5rem) 1.25rem;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-weight: 500;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}

.hero__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-logo {
  width: min(420px, 82vw);
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 6px 14px rgba(24, 24, 24, 0.25));
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

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

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

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

.btn--outline-dark:hover {
  background: var(--color-primary);
  color: #fff;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 1.25rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title p {
  max-width: 40rem;
  margin: 0.5rem auto 0;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.card h3 {
  margin-top: 0;
}

.card__link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.quote {
  border-left: 4px solid var(--color-primary);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 0 0 1.5rem;
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-heading);
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
}

.program-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.program-list-wrap .program-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.program-list-wrap .program-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.program-block h2 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.program-block .subtitle {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.program-block__intro {
  margin-bottom: 1.25rem;
}

.program-block__intro .program-focus-label {
  margin-bottom: 0.35rem;
}

.program-download {
  margin: 0.35rem 0 0;
}

.program-download a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.program-download--pending {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.program-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.75rem;
  align-items: start;
}

@media (max-width: 640px) {
  .program-dual {
    grid-template-columns: 1fr;
  }

  .program-dual--reverse .program-dual__col:first-child,
  .program-dual--reverse .program-dual__col:last-child {
    order: unset;
  }
}

@media (min-width: 641px) {
  .program-dual--reverse .program-dual__col:first-child {
    order: 2;
  }

  .program-dual--reverse .program-dual__col:last-child {
    order: 1;
  }
}

.program-dual__col {
  min-width: 0;
}

.program-photo {
  margin: 0 0 0.85rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.program-photo img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  display: block;
}

.program-photo figcaption {
  padding: 0.35rem 0.65rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--color-muted);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.program-list--tight li {
  margin-bottom: 0.35rem;
}

.jenny-photo-feature {
  margin: 0 auto 2rem;
  max-width: 920px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.jenny-photo-feature img {
  width: 100%;
  height: clamp(220px, 36vw, 340px);
  object-fit: cover;
  object-position: center top;
}

.jenny-photo-feature--full-image img {
  height: auto;
  object-fit: contain;
}

.jenny-photo-feature--center img {
  object-position: center center;
}

.jenny-photo-feature--mini {
  max-width: 230px;
  margin: 0 auto 2rem;
}

.jenny-photo-feature--mini img {
  height: auto;
  object-fit: contain;
}

.jenny-photo-feature--mini figcaption {
  display: none;
}

.jenny-photo-feature figcaption {
  font-size: 0.82rem;
  color: var(--color-muted);
  padding: 0.55rem 0.8rem 0.7rem;
}

.video-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-heading);
}

.cta-band {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--color-primary), #5ec6ff);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  opacity: 0.95;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

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

.cta-band .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--color-heading);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: var(--color-muted);
}

.site-footer a:hover {
  color: var(--color-primary);
}

.page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
}

.page-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: 0.35rem;
}

.page-hero .kicker {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.testimonial-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.testimonial-card footer {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-heading);
}

.contact-options {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  text-align: center;
}

.contact-form-shell {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.jdsg-contact-form {
  display: grid;
  gap: 0.75rem;
}

.jdsg-contact-form label {
  font-weight: 500;
  color: var(--color-heading);
  margin-top: 0.25rem;
}

.jdsg-contact-form input,
.jdsg-contact-form select,
.jdsg-contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--color-heading);
  background: #fff;
}

.jdsg-contact-form input:focus,
.jdsg-contact-form select:focus,
.jdsg-contact-form textarea:focus {
  outline: 2px solid rgba(34, 138, 230, 0.2);
  border-color: var(--color-primary);
}

.contact-alert {
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  margin: 0 0 1rem;
  font-size: 0.94rem;
}

.contact-alert p {
  margin: 0 0 0.35rem;
}

.contact-alert ul {
  margin: 0;
  padding-left: 1.2rem;
}

.contact-alert--success {
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #badbcc;
}

.contact-alert--error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f5c2c7;
}

.contact-help-text {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
