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

:root {
  --ink: #132421;
  --ink-soft: #2c403c;
  --muted: #5a6e69;
  --line: rgba(19, 36, 33, 0.12);
  --surface: #edf3f1;
  --surface-2: #f7faf8;
  --panel: #ffffff;
  --primary: #0f6e5c;
  --primary-deep: #0a4d40;
  --accent: #c45c26;
  --accent-soft: #f3e2d6;
  --ms: #0078d4;
  --ms-dark: #005a9e;
  --success: #1f7a4c;
  --error: #b42318;
  --shadow: 0 18px 40px rgba(19, 36, 33, 0.08);
  --radius: 14px;
  --max: 1120px;
  --header-h: 76px;
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(15, 110, 92, 0.14), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(196, 92, 38, 0.1), transparent 50%),
    linear-gradient(180deg, #e7f0ed 0%, var(--surface-2) 38%, #f4f7f6 100%);
  background-attachment: fixed;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.inline-error {
  background: #fdecea;
  color: var(--error);
  border: 1px solid #f3c1bc;
  padding: 0.75rem 1rem;
  margin: 0.5rem 1rem;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 248, 0.88);
  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;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--primary) 0%, #1a8f78 55%, var(--accent) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 55% 40%, 55% 100%, 0 100%);
}

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  display: none;
  place-items: center;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 110, 92, 0.22);
}

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

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
}

.btn-ms {
  background: var(--ms);
  color: #fff !important;
  border-radius: 4px;
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  box-shadow: none;
}

.btn-ms:hover {
  background: var(--ms-dark);
  color: #fff !important;
}

.btn-ms-footer {
  margin-top: 0.75rem;
}

.main {
  min-height: 60vh;
}

.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;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.lead {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.muted {
  color: var(--muted);
}

/* Home hero — full-bleed, brand-forward, asymmetric */
.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: #f4faf8;
  overflow: hidden;
}

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

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-home-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 28, 26, 0.92) 0%, rgba(10, 28, 26, 0.72) 48%, rgba(10, 28, 26, 0.35) 100%),
    linear-gradient(0deg, rgba(10, 28, 26, 0.75) 0%, transparent 45%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  max-width: 10ch;
  animation: riseIn 0.9s ease both;
}

.hero-home h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  max-width: 22ch;
  margin-bottom: 0.85rem;
  animation: riseIn 0.9s ease 0.1s both;
}

.hero-home .hero-support {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  max-width: 34rem;
  color: rgba(244, 250, 248, 0.88);
  margin-bottom: 1.6rem;
  animation: riseIn 0.9s ease 0.18s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.9s ease 0.26s both;
}

.hero-actions .btn-primary {
  background: #f4faf8;
  color: var(--ink);
  box-shadow: none;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.trust-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  color: var(--primary-deep);
}

.feature-grid,
.card-grid,
.pricing-grid,
.post-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  padding: 1.5rem 0;
  border-top: 2px solid var(--primary);
}

.feature h3 {
  font-size: 1.2rem;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.course-card,
.post-card,
.price-tier,
.review-card,
.module,
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-course {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.course-card img,
.post-card img,
.page-hero-media img,
.instructor-avatar {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.featured-course img {
  height: 100%;
  aspect-ratio: auto;
  min-height: 240px;
}

.course-card-body,
.post-card-body,
.price-tier,
.review-card,
.module,
.faq-item {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.post-grid {
  grid-template-columns: repeat(2, 1fr);
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.quote-block {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.5;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 2rem 0;
  max-width: 40rem;
}

.cta-band {
  background:
    linear-gradient(120deg, var(--primary-deep), #147864 55%, #1a5f78);
  color: #f4faf8;
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  max-width: 16ch;
}

.cta-band p {
  margin: 0;
  color: rgba(244, 250, 248, 0.88);
  max-width: 36rem;
}

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

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

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 16ch;
}

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

.page-hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero-media img {
  aspect-ratio: 4 / 3;
  animation: softZoom 14s ease-in-out infinite alternate;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.price-tier.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.price-tier .price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 1rem;
}

.price-tier ul {
  padding-left: 1.1rem;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

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

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

.case-study {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.form-panel,
.info-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

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

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(15, 110, 92, 0.35);
  border-color: var(--primary);
}

.field-error {
  min-height: 1.2em;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

.form-status-success {
  background: #e8f6ee;
  color: var(--success);
  border: 1px solid #b7e0c6;
}

.form-status-error {
  background: #fdecea;
  color: var(--error);
  border: 1px solid #f3c1bc;
}

.modules {
  display: grid;
  gap: 0.85rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.instructor-avatar {
  aspect-ratio: 1;
  border-radius: 12px;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

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

th {
  background: var(--surface);
  font-family: var(--font-display);
}

.site-footer {
  margin-top: 4rem;
  background: #10231f;
  color: rgba(244, 250, 248, 0.86);
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: #d7ebe5;
}

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

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 1.75rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

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

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

.footer-links a {
  text-decoration: none;
}

.footer-address {
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.disclaimer-inline a {
  font-weight: 600;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: riseIn 0.45s ease both;
}

.cookie-banner-inner {
  padding: 1.15rem 1.25rem;
}

.cookie-banner-text {
  margin-bottom: 0.9rem;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.2rem;
}

.legal-note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
}

.timeline-step {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes softZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(247, 250, 248, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .nav-list {
    flex-direction: column;
    gap: 0.75rem;
  }

  .feature-grid,
  .card-grid,
  .pricing-grid,
  .review-grid,
  .post-grid,
  .page-hero-split,
  .contact-layout,
  .footer-inner,
  .split-2,
  .trust-strip,
  .featured-course {
    grid-template-columns: 1fr;
  }

  .price-tier.featured {
    transform: none;
  }

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

  .hero-home {
    min-height: 78vh;
  }
}

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