/* Shared homepage section styles (all themes) */
.home-section { padding: 3.2rem 0; }
.home-section-head { margin-bottom: 1.4rem; max-width: 56ch; }
.home-section-head h2,
.home-about-copy h2,
.home-form h2,
.home-cta h2 {
  font-family: var(--display, var(--font-display, inherit));
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0 0 .55rem;
  line-height: 1.15;
}
.home-section-head p,
.home-lead { color: var(--muted, #5b6b73); margin: 0; }
.home-section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.home-kicker {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary, #0f766e);
  margin: 0 0 .55rem;
}
.home-prose p { margin: 0 0 1rem; color: var(--muted, #5b6b73); max-width: 58ch; line-height: 1.65; }
.home-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.home-empty { color: var(--muted, #5b6b73); }

.home-about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.2rem;
  align-items: center;
}
.home-about-grid.is-solo { grid-template-columns: 1fr; }
.home-about-media {
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}
.home-about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.home-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.home-video-frame iframe,
.home-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-form-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.home-form-card {
  background: var(--paper, #fff);
  border: 1px solid color-mix(in srgb, var(--ink, #111) 10%, transparent);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}
.home-form-card .form { display: grid; gap: .75rem; }
.home-form-card input,
.home-form-card select,
.home-form-card textarea {
  width: 100%;
  border: 1px solid #d5dde8;
  border-radius: 12px;
  padding: .85rem 1rem;
  font: inherit;
  background: #fff;
}
.home-form-card .alert {
  padding: .8rem 1rem;
  border-radius: 12px;
  margin-bottom: .8rem;
  background: #ecfdf5;
  color: #047857;
}
.home-form-card .alert.err { background: #fef2f2; color: #b91c1c; }

.home-cta {
  position: relative;
  color: #fff;
  isolation: isolate;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--secondary, #004d3c) 88%, black), color-mix(in srgb, var(--primary, #006850) 70%, transparent)),
    var(--cta-bg, none);
  background-size: cover;
  background-position: center;
}
.home-cta-inner { max-width: 52ch; }
.home-cta .home-lead,
.home-cta p { color: rgba(255,255,255,.9); }
.home-cta .btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
}

.home-html-body { max-width: 70ch; }

.site-promo-bar {
  --promo-bg: #0b0f0d;
  --promo-fg: #f4f7f5;
  --promo-muted: rgba(244, 247, 245, .78);
  --promo-accent: var(--primary, #006850);
  position: relative;
  z-index: 40;
  background: var(--promo-bg);
  background-size: cover;
  background-position: center;
  color: var(--promo-fg);
  font-size: .9rem;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.site-promo-bar[style*="--promo-bg:url"] {
  color: #fff;
}
.site-promo-bar[style*="--promo-bg:url"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 24, .55);
}
.site-promo-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem 1.15rem;
  min-height: 44px;
  padding: .55rem 0;
  text-align: center;
  flex-wrap: wrap;
}
.site-promo-inner p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem .75rem;
  font-weight: 600;
  color: var(--promo-muted);
}
.site-promo-inner strong {
  font-weight: 700;
  color: var(--promo-fg);
  letter-spacing: .01em;
}
.site-promo-tag {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 4px;
  background: var(--promo-accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-promo-actions {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.site-promo-actions a {
  display: inline-flex;
  align-items: center;
  padding: .35rem .85rem;
  border-radius: 4px;
  background: #fff;
  color: #0b0f0d !important;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.site-promo-actions a:hover {
  background: #e8f5ef;
  transform: translateY(-1px);
}
.site-promo-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  color: var(--promo-fg);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.site-promo-close:hover { background: rgba(255, 255, 255, .2); }

.featured-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.featured-cat-card {
  display: grid;
  grid-template-rows: 140px auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper, #fff);
  border: 1px solid color-mix(in srgb, var(--ink, #111) 8%, transparent);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 100%;
}
.featured-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,.1);
}
.featured-cat-media {
  display: block;
  background:
    linear-gradient(180deg, transparent 20%, rgba(8,16,24,.45)),
    var(--cat-img, linear-gradient(135deg, var(--secondary), var(--primary)));
  background-size: cover;
  background-position: center;
}
.featured-cat-body {
  display: grid;
  gap: .45rem;
  padding: 1rem 1rem 1.1rem;
}
.featured-cat-body strong {
  font-family: var(--display, var(--font-display, inherit));
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}
.featured-cat-body span {
  color: var(--muted, #5b6b73);
  font-size: .88rem;
  line-height: 1.45;
}
.featured-cat-body em {
  font-style: normal;
  font-weight: 800;
  font-size: .88rem;
  color: var(--primary, #0f766e);
  margin-top: .2rem;
}
.featured-courses-label {
  margin: .4rem 0 1.1rem;
}
.featured-courses-label h3 {
  margin: 0 0 .25rem;
  font-family: var(--display, var(--font-display, inherit));
  font-size: 1.25rem;
  font-weight: 800;
}
.featured-courses-label p {
  margin: 0;
  color: var(--muted, #5b6b73);
}

@media (max-width: 1100px) {
  .featured-cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .home-about-grid,
  .home-form-grid { grid-template-columns: 1fr; }
  .home-section-head-row { flex-direction: column; align-items: start; }
  .featured-cats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .featured-cats { grid-template-columns: 1fr; }
}
