:root {
  --bg: #f7f9f8;
  --bg-soft: #eef3f1;
  --bg-deep: #e4ebe8;
  --ink: #16201c;
  --ink-muted: #4a5a54;
  --line: #cfd9d4;
  --accent: #0d5c63;
  --accent-hover: #0a484e;
  --accent-soft: #d7ecee;
  --surface: #ffffff;
  --danger: #8b3a2f;
  --success: #1f6b4a;
  --shadow: 0 1px 0 rgba(22, 32, 28, 0.04);
  --radius: 4px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #dceeea 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e8efe6 0%, transparent 45%),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 0 0 0.5em; }
h3 { font-size: 1.45rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; color: var(--ink-muted); }
p:last-child { margin-bottom: 0; }

.inline-error {
  background: #f6e8e5;
  color: var(--danger);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(247, 249, 248, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.45rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 0.35rem 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active { transform: translateY(1px); }

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

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

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  max-width: 16ch;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.stack-lg > * + * {
  margin-top: 1.25rem;
}

/* Home hero — full bleed */
.home-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #f4f7f6;
  overflow: hidden;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s ease-out forwards;
}

.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 28, 26, 0.25) 0%, rgba(12, 28, 26, 0.72) 70%, rgba(12, 28, 26, 0.88) 100%);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 3.5rem;
  animation: rise 0.9s ease both;
}

.home-hero .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.home-hero h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-family: var(--font-body);
  font-weight: 400;
  max-width: 28ch;
  color: #e8f0ee;
  margin-bottom: 0.85rem;
}

.home-hero .hero-support {
  max-width: 34ch;
  color: #c5d4d0;
  margin-bottom: 1.75rem;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  animation: rise 0.8s ease both;
}

.reveal-delay { animation-delay: 0.15s; }

/* Quote / social */
.quote-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.quote-item blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink);
}

.quote-item cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Program previews — not card-heavy */
.program-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.program-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.program-row:hover {
  background: rgba(255, 255, 255, 0.55);
}

.program-row img {
  width: 180px;
  height: 120px;
  object-fit: cover;
}

.program-row h3 {
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.program-row p {
  margin: 0;
  font-size: 0.98rem;
}

.program-meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

/* Benefits */
.benefit-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  counter-reset: benefit;
}

.benefit-item {
  position: relative;
  padding-top: 2.5rem;
}

.benefit-item::before {
  counter-increment: benefit;
  content: "0" counter(benefit);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
}

.benefit-item h3 {
  margin-bottom: 0.5rem;
}

/* Stats */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat span {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0d5c63 0%, #164a42 100%);
  color: #eef6f4;
  padding: 3.5rem 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #c9ddd8; max-width: 36rem; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--accent);
}
.cta-band .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* Course listing tiles */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.course-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.course-tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.45s ease;
}

.course-tile:hover img {
  transform: scale(1.02);
}

.course-tile h3 {
  color: var(--ink);
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-tier {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.price-tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 140%);
}

.price-tier h3 {
  font-size: 1.6rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ink);
  margin: 0.5rem 0 1rem;
}

.price-amount span {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink-muted);
}

.price-tier ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.price-tier li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.price-note {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 1.5rem;
}

/* Reviews */
.review-stream {
  display: grid;
  gap: 2rem;
}

.review-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.review-block blockquote {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.review-meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.case-study {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
  margin-top: 2.5rem;
}

.case-study + .case-study {
  margin-top: 1.5rem;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.blog-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.blog-item h2 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

.article h2 {
  margin-top: 2rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.form-status.is-success {
  background: #e5f3ec;
  color: var(--success);
}

.form-status.is-error {
  background: #f6e8e5;
  color: var(--danger);
}

.contact-aside {
  background: var(--bg-soft);
  padding: 1.75rem;
  border: 1px solid var(--line);
}

.contact-aside h2 {
  font-size: 1.35rem;
}

.contact-aside p {
  font-size: 0.98rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0.75rem;
}

/* Modules */
.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.module-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.module-list .num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

/* Legal */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal h1 { max-width: none; }
.legal h2 { margin-top: 2rem; font-size: 1.55rem; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--bg-soft);
  color: var(--ink);
}

/* 404 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  margin: 0;
}

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 1.5rem 0;
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(22, 32, 28, 0.08);
  animation: rise 0.35s ease both;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 48rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: #13201c;
  color: #c5d0cb;
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.footer-tag {
  color: #9aada5;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-cols h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.85rem;
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-cols li { margin-bottom: 0.45rem; }

.footer-cols a {
  color: #9aada5;
  text-decoration: none;
}

.footer-cols a:hover { color: #fff; }

.footer-address {
  font-size: 0.9rem;
  color: #9aada5;
  margin-bottom: 0.75rem;
}

.footer-copy {
  border-top: 1px solid #2a3a34;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #7d9088;
  margin: 0;
}

/* Custom audit page */
.audit-hero {
  padding: 4rem 0 3rem;
  background:
    linear-gradient(120deg, rgba(13, 92, 99, 0.08), transparent 50%),
    var(--bg);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 2rem 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  padding-bottom: 1.75rem;
  position: relative;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.4rem;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-step:last-child::before { display: none; }

.timeline-dot {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  margin-top: 0.25rem;
}

/* Media queries */
@media (max-width: 900px) {
  .split,
  .contact-grid,
  .quote-grid,
  .benefit-rail,
  .course-grid,
  .price-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .program-row {
    grid-template-columns: 120px 1fr;
  }

  .program-meta {
    grid-column: 2;
  }

  .blog-item {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

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

  .program-row img {
    width: 100%;
    height: 160px;
  }

  .instructor {
    grid-template-columns: 1fr;
  }

  .stat-row {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
