:root {
  --bg: #090909;
  --bg-soft: #121212;
  --bg-elev: #181818;
  --text: #f6f1e6;
  --muted: #c8beaa;
  --gold: #cda349;
  --gold-strong: #f0c96b;
  --line-soft: #4e3e24;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(1200px 500px at 15% 0%, #2b1f0c 0%, rgba(10, 10, 10, 0.1) 55%),
    radial-gradient(900px 500px at 100% 10%, #231805 0%, rgba(10, 10, 10, 0) 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.4rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 12, 12, 0.86);
  backdrop-filter: blur(8px);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
  margin-top: 2.4rem;
  color: var(--muted);
}

.brand {
  color: var(--gold);
  text-decoration: none;
  font-size: 1.24rem;
  letter-spacing: 0.03em;
  font-weight: 700;
}

nav a,
.footer-links a {
  color: #e8dcbf;
  text-decoration: none;
  margin-left: 0.7rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 0.42rem;
  transition: all 0.2s ease;
}

nav a:hover,
.footer-links a:hover {
  border-color: var(--line-soft);
  background: #17130b;
  color: var(--gold-strong);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem 2.4rem 2.4rem;
}

.learning-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.learning-page main.learning-portal {
  flex: 1;
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.learning-portal-card {
  max-width: 720px;
  margin: 2.4rem auto;
  padding: 2rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: rgba(12, 12, 12, 0.78);
  box-shadow: var(--shadow);
}

.learning-portal-card h1 {
  margin-top: 0;
}

.learning-portal-top {
  padding: 1rem 2.4rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 12, 12, 0.86);
}

.learning-portal-note {
  color: var(--muted);
  margin-bottom: 0;
}

.learning-portal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--bg);
}

.hero {
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background:
    linear-gradient(160deg, rgba(34, 26, 14, 0.62), rgba(17, 17, 17, 0.7)),
    var(--bg-elev);
  box-shadow: var(--shadow);
  animation: riseIn 0.55s ease both;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.1rem;
  padding: 3rem 2rem;
}

/* Homepage hero is single-column since the right panel was removed. */
.home-page .hero-grid {
  grid-template-columns: 1fr;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0.4rem 0 0.75rem;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  max-width: none;
}

.hero-copy p {
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Center hero buttons on the homepage only. */
.home-page .hero-actions {
  justify-content: center;
  width: 100%;
  max-width: none;
  align-items: center;
  flex-direction: row;
  margin-top: 1.8rem;
}

.hero-proof {
  background: linear-gradient(180deg, #171717, #121212);
  border: 1px solid var(--line-soft);
  border-radius: 0.9rem;
  padding: 1rem;
}

.hero-proof h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.04rem;
  color: var(--gold-strong);
}

.hero-proof ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-proof li {
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.hero-proof-note {
  margin-top: 0.75rem;
  color: #e8dcbf;
  font-size: 0.92rem;
}

.eyebrow {
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Center the label above the trust-strip on the homepage. */
.home-page .trust-strip-label {
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 1.2rem 0 1.2rem;
}

.cta,
.secondary {
  display: inline-block;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #f0c96b, #bf9037);
  color: #1a1406;
  text-decoration: none;
  padding: 0.72rem 1.05rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.cta:hover,
.secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(237, 190, 91, 0.22);
}

.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-soft);
}

.trust-strip,
.outcomes,
.testimonials,
.faq {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.trust-strip article,
.outcomes article,
.testimonials article,
.faq article {
  background: linear-gradient(180deg, #171717, #121212);
  border: 1px solid var(--line-soft);
  border-radius: 0.92rem;
  padding: 0.95rem;
  box-shadow: var(--shadow);
}

.trust-strip strong {
  display: block;
  color: var(--gold-strong);
  margin-bottom: 0.35rem;
}

.trust-strip span,
.outcomes p,
.faq p {
  color: var(--muted);
}

.section-head {
  margin-top: 1.6rem;
}

.section-head-centered {
  text-align: center;
}

.section-head h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.15rem;
  margin-top: 1.15rem;
}

/* Homepage: keep the Featured Programs grid as two equal columns when only 2 products are shown. */
.home-page .courses-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.courses-grid-featured .course-card:nth-child(2) {
  animation-delay: 0.08s;
}

.courses-grid-featured .course-card:nth-child(3) {
  animation-delay: 0.16s;
}

.course-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #171717, #121212);
  border: 1px solid var(--line-soft);
  border-radius: 0.95rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  animation: riseIn 0.55s ease both;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-strong), transparent);
  opacity: 0.9;
}

.course-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(350px 120px at -10% -20%, rgba(240, 201, 107, 0.12), transparent 60%);
  pointer-events: none;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: #7b632f;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.55);
}

.course-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid #3d321d;
}

.course-card h2 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1.16rem;
}

.course-card p {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 0.65rem;
}

.course-meta span {
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 0.22rem 0.55rem;
  font-size: 0.83rem;
  color: #e8dcbf;
  background: #16120b;
}

.course-actions {
  display: grid;
  gap: 0.55rem;
}

.price {
  color: var(--text) !important;
  font-weight: 700;
}

.price span {
  color: var(--gold);
  font-weight: 600;
  margin-left: 0.3rem;
}

.buy-box {
  min-height: 44px;
}

.page-title h1,
.status-wrap h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.page-title {
  position: relative;
  background: linear-gradient(160deg, #1a1409, #101010);
  border: 1px solid var(--line-soft);
  border-radius: 0.9rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.courses-page .page-title h1 {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.course-toolbar p {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 0.8rem;
  padding: 0.85rem 0.95rem;
  background: #15120d;
  color: var(--muted);
}

.outcomes h3,
.faq h3 {
  margin-top: 0;
  margin-bottom: 0.42rem;
  color: var(--gold-strong);
}

.testimonials p {
  margin-top: 0;
  margin-bottom: 0.42rem;
}

.testimonials span {
  color: var(--muted);
  font-size: 0.88rem;
}

.final-cta {
  margin-top: 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  background: linear-gradient(165deg, #1e1507, #101010);
}

.final-cta h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.final-cta p {
  margin-top: 0;
  color: var(--muted);
}

.status-wrap {
  min-height: 56vh;
  display: grid;
  align-content: center;
}

.status-card {
  max-width: 760px;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  padding: 1.3rem;
  background: linear-gradient(180deg, #181818, #111111);
  box-shadow: var(--shadow);
}

.status-label {
  display: inline-block;
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 0.2rem 0.55rem;
  color: var(--gold-strong);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1rem;
}

.contact-wrap {
  max-width: none;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
  background: linear-gradient(180deg, #181818, #111111);
  border: 1px solid var(--line-soft);
  border-radius: 0.9rem;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  background: #0f0f0f;
  color: var(--text);
  border-radius: 0.45rem;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(205, 163, 73, 0.18);
}

.contact-form textarea {
  resize: vertical;
}

.contact-panel {
  border: 1px solid var(--line-soft);
  border-radius: 0.9rem;
  padding: 1rem;
  background: linear-gradient(180deg, #171717, #111111);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--gold-strong);
}

.contact-panel ul {
  margin-top: 0;
  padding-left: 1.1rem;
}

.contact-panel li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.contact-panel-note {
  border-top: 1px solid var(--line-soft);
  padding-top: 0.7rem;
  color: #e8dcbf;
}

.form-success,
.form-error {
  border: 1px solid var(--line-soft);
  border-radius: 0.6rem;
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.8rem;
}

.form-success {
  color: #c7f0cf;
  background: #12301b;
  border-color: #2f6c40;
}

.form-error {
  color: #ffd5d5;
  background: #351515;
  border-color: #7e3131;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .contact-layout,
  .trust-strip,
  .outcomes,
  .testimonials,
  .faq,
  .course-toolbar {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 1.6rem 1rem;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer,
  main {
    padding: 1rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  nav a,
  .footer-links a {
    margin-left: 0;
    margin-right: 0.34rem;
    font-size: 0.9rem;
  }

  .course-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .course-card,
  .cta,
  .secondary,
  nav a,
  .footer-links a {
    animation: none !important;
    transition: none !important;
  }
}
