@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,600&display=swap');

:root {
  --blue: #003366;
  --blue-deep: #001e3d;
  --orange: #ff7a00;
  --yellow: #ffc107;
  --turquoise: #00a6a6;
  --green: #28a745;
  --graphite: #1f2937;
  --gray: #e5e7eb;
  --pale: #f5f8fb;
  --white: #ffffff;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--graphite); background: var(--white); font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; background: var(--white); color: var(--blue); padding: .75rem 1rem; border-radius: .25rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0,51,102,.1); }
.nav-shell { max-width: var(--max); margin: 0 auto; min-height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 178px; height: 58px; object-fit: contain; object-position: center; }
.main-nav { display: flex; align-items: center; gap: 1.45rem; font-size: .9rem; font-weight: 700; }
.main-nav a { text-decoration: none; }
.main-nav a:not(.nav-cta):hover { color: var(--orange); }
.nav-cta { color: var(--white); background: var(--blue); padding: .75rem 1rem; border-radius: .3rem; }
.nav-cta:hover { background: var(--orange); }
.menu-button { display: none; border: 1px solid var(--blue); background: transparent; color: var(--blue); padding: .6rem .8rem; font: inherit; font-weight: 700; }

.hero { color: var(--white); background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 62%, #00577a 100%); overflow: hidden; }
.hero-grid { min-height: 640px; max-width: var(--max); margin: 0 auto; padding: 5.5rem 1.5rem 4rem; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 4rem; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1rem; color: var(--orange); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; }
.eyebrow-light { color: var(--yellow); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2 { font-family: var(--serif); color: var(--blue-deep); line-height: 1.05; margin: 0; }
h1 { color: var(--white); max-width: 800px; font-size: clamp(3.2rem, 6.3vw, 6.25rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.35rem, 4.4vw, 4.3rem); letter-spacing: -.035em; }
h3 { line-height: 1.15; }
.hero-lead { max-width: 690px; margin: 1.6rem 0 0; color: #dce8f3; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.2rem; border: 1px solid transparent; border-radius: .25rem; text-decoration: none; font-weight: 800; }
.button-primary { color: var(--blue-deep); background: var(--orange); }
.button-primary:hover { background: var(--yellow); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.hero-mark { position: relative; min-height: 420px; display: grid; place-items: center; text-align: center; }
.hero-mark img { position: relative; z-index: 2; width: 330px; height: 330px; object-fit: contain; border-radius: 50%; box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.hero-mark p { position: absolute; z-index: 3; right: -1rem; bottom: 1.5rem; margin: 0; padding: 1rem 1.1rem; color: var(--blue-deep); background: var(--yellow); font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; transform: rotate(-2deg); }
.hero-orbit { position: absolute; width: 470px; height: 470px; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; }
.hero-orbit::after { content: ""; position: absolute; width: 17px; height: 17px; right: 53px; top: 42px; border-radius: 50%; background: var(--orange); box-shadow: -355px 360px 0 var(--turquoise); }
.signal-bar { min-height: 62px; padding: 1rem max(1.5rem, calc((100vw - var(--max))/2 + 1.5rem)); display: flex; justify-content: space-between; gap: 1rem; background: var(--orange); color: var(--blue-deep); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; font-weight: 800; }

.section { max-width: var(--max); margin: 0 auto; padding: 6.5rem 1.5rem; }
.section-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6rem; align-items: start; }
.prose { max-width: 720px; font-size: 1.08rem; }
.prose p:first-child { margin-top: 0; }
.prose p:last-of-type { margin-bottom: 0; }
.courses-section { max-width: none; background: var(--pale); padding-left: max(1.5rem, calc((100vw - var(--max))/2 + 1.5rem)); padding-right: max(1.5rem, calc((100vw - var(--max))/2 + 1.5rem)); }
.section-heading { display: grid; grid-template-columns: .7fr 1.1fr .8fr; gap: 2rem; align-items: end; margin-bottom: 3.5rem; }
.section-heading .eyebrow { align-self: start; }
.section-heading p:last-child { margin: 0; }
.course-list { border-top: 1px solid #cfd8e2; }
.course-row { display: grid; grid-template-columns: 70px 1.15fr 1fr auto; gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid #cfd8e2; }
.course-number { color: var(--orange); font-family: var(--serif); font-size: 2.25rem; }
.course-kicker { margin: 0 0 .35rem; color: #526173; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }
.course-content h3 { margin: 0; color: var(--blue); font-family: var(--serif); font-size: clamp(1.55rem, 2.2vw, 2.2rem); }
.course-content p:last-child { margin: .25rem 0 0; }
.course-summary { color: #4d5b69; }
.course-link, .text-link { color: var(--blue); text-decoration: none; font-weight: 800; white-space: nowrap; }
.course-link:hover, .text-link:hover { color: var(--orange); }

.learning-path { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6rem; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--gray); }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--gray); }
.steps li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: white; font-weight: 800; }
.steps strong { display: block; color: var(--blue); font-size: 1.12rem; }
.steps p { margin: .25rem 0 0; }
.technical-direction { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 6rem; background: linear-gradient(90deg, #f1f6fb, #fff); }
.direction-accent { position: absolute; left: -28px; top: 6.5rem; width: 9px; height: 150px; background: linear-gradient(var(--orange), var(--yellow), var(--turquoise)); }

.contact-section { padding: 5.5rem max(1.5rem, calc((100vw - var(--max))/2 + 1.5rem)); display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: center; color: var(--white); background: var(--blue-deep); }
.contact-section h2 { color: var(--white); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.contact-actions > a:not(.button) { color: var(--white); font-weight: 700; text-decoration-color: rgba(255,255,255,.4); }
.button-light { width: 100%; color: var(--blue-deep); background: var(--white); }
.button-light:hover { background: var(--yellow); }

.site-footer { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.5rem; display: grid; grid-template-columns: 150px 1fr auto; gap: 2rem; align-items: center; font-size: .9rem; }
.site-footer img { width: 130px; height: 86px; object-fit: contain; }
.site-footer p { margin: .15rem 0; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: var(--blue); font-weight: 700; }

/* Course pages */
.course-hero { color: var(--white); background: linear-gradient(120deg, var(--blue-deep), var(--blue)); }
.course-hero-inner { max-width: var(--max); min-height: 510px; margin: 0 auto; padding: 5rem 1.5rem; display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: center; }
.breadcrumb { margin-bottom: 2rem; font-size: .88rem; }
.breadcrumb a { color: #caddf0; }
.course-hero h1 { max-width: 850px; font-size: clamp(3rem, 5.8vw, 5.6rem); }
.course-subtitle { margin: 1rem 0 0; color: #dce8f3; font-size: 1.35rem; }
.course-facts { padding: 2rem; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); }
.course-facts dl { margin: 0; }
.course-facts div { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.course-facts div:last-child { border: 0; }
.course-facts dt { color: var(--yellow); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.course-facts dd { margin: .2rem 0 0; font-weight: 700; }
.course-layout { max-width: var(--max); margin: 0 auto; padding: 6rem 1.5rem; display: grid; grid-template-columns: 280px 1fr; gap: 5rem; }
.course-aside { position: sticky; top: 110px; align-self: start; }
.course-aside nav { display: flex; flex-direction: column; border-top: 1px solid var(--gray); }
.course-aside nav a { padding: .8rem 0; border-bottom: 1px solid var(--gray); color: var(--blue); text-decoration: none; font-weight: 700; }
.course-aside .button { margin-top: 1.5rem; }
.course-main section + section { margin-top: 5rem; }
.course-main h2 { font-size: clamp(2.1rem, 3.3vw, 3.25rem); }
.course-main .lead { font-size: 1.2rem; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.audience-grid div { padding-top: 1.25rem; border-top: 3px solid var(--orange); }
.audience-grid h3 { color: var(--blue); }
.module-list { margin-top: 2rem; border-top: 1px solid var(--gray); }
.module { display: grid; grid-template-columns: 90px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--gray); }
.module-index { color: var(--orange); font-family: var(--serif); font-size: 2rem; }
.module h3 { margin: 0 0 .7rem; color: var(--blue); font-family: var(--serif); font-size: 1.55rem; }
.module ul { margin: 0; padding-left: 1.2rem; }
.module li + li { margin-top: .4rem; }
.reference-list { padding-left: 1.2rem; }
.reference-list li + li { margin-top: .8rem; }
.course-cta { padding: 3rem; background: var(--pale); border-left: 8px solid var(--turquoise); }
.course-cta h2 { font-size: 2.4rem; }
.course-cta .button { margin-top: 1rem; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 1.25rem 1.5rem 1.5rem; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--gray); }
  .main-nav.is-open { display: flex; }
  .nav-cta { text-align: center; }
  .hero-grid, .section-split, .learning-path, .technical-direction, .contact-section, .course-hero-inner, .course-layout { grid-template-columns: 1fr; gap: 3rem; }
  .hero-grid { min-height: auto; padding-top: 4rem; }
  .hero-mark { min-height: 340px; }
  .hero-mark img { width: 270px; height: 270px; }
  .hero-orbit { width: 350px; height: 350px; }
  .hero-mark p { right: 0; }
  .section-heading { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 52px 1fr auto; }
  .course-summary { grid-column: 2 / -1; }
  .course-layout { padding-top: 4rem; }
  .course-aside { position: static; }
  .course-aside nav { display: none; }
}

@media (max-width: 620px) {
  .nav-shell { min-height: 72px; padding: 0 1rem; }
  .brand img { width: 145px; height: 50px; }
  .main-nav { top: 72px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  h2 { font-size: 2.35rem; }
  .hero-grid, .section, .course-hero-inner, .course-layout { padding-left: 1rem; padding-right: 1rem; }
  .hero-mark { min-height: 300px; }
  .hero-mark img { width: 235px; height: 235px; }
  .hero-orbit { width: 290px; height: 290px; }
  .hero-mark p { bottom: 0; font-size: 1rem; }
  .signal-bar { flex-direction: column; align-items: flex-start; }
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .course-row { grid-template-columns: 44px 1fr; gap: 1rem; }
  .course-summary, .course-link { grid-column: 2; }
  .learning-path { gap: 2.5rem; }
  .contact-section { padding: 4.5rem 1rem; }
  .site-footer { grid-template-columns: 1fr; padding-left: 1rem; padding-right: 1rem; }
  .footer-links { flex-wrap: wrap; }
  .course-hero-inner { padding-top: 3rem; padding-bottom: 3rem; }
  .audience-grid { grid-template-columns: 1fr; }
  .module { grid-template-columns: 50px 1fr; gap: 1rem; }
  .course-cta { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
