/* Nextgennetworking — soft neutral, large type, quiet motion */
:root {
  --bg: #f3f4f1;
  --bg-soft: #e9ebe6;
  --surface: #ffffff;
  --ink: #1e2421;
  --ink-muted: #5a635c;
  --line: #d4d8d1;
  --accent: #3f5e52;
  --accent-hover: #314a41;
  --accent-soft: #d5e0da;
  --warn: #8a4b3a;
  --ok: #2f6b4f;
  --radius: 2px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #dfe6e0 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #e4e0d8 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #eef0ec 40%, var(--bg) 100%);
  background-attachment: fixed;
  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: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 244, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

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

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  align-items: center;
}

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

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

.nav-cta {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  background: var(--accent);
  color: #f7f9f6 !important;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  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; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

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

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

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

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

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-muted);
  max-width: 38rem;
}

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

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

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

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

.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(--ink-muted);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
  color: #f4f6f3;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 28s var(--ease) infinite alternate;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 8rem) var(--space) clamp(3rem, 7vw, 5rem);
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 520;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero h1 {
  color: #fff;
  max-width: 16ch;
  margin-bottom: 0.75rem;
}

.hero .lede {
  color: rgba(244, 246, 243, 0.88);
  max-width: 32rem;
}

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

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

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

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

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: none; }
}

@keyframes heroDrift {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.12) translateY(-1.5%); }
}

/* Trust / quote band */
.quote-band {
  background: var(--ink);
  color: #e8ebe6;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 450;
  line-height: 1.35;
  max-width: 40rem;
  letter-spacing: -0.02em;
}

.quote-band cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: #a8b3ab;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92);
}

/* Feature list — not cards */
.benefit-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

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

/* Course / blog rows */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 1.75rem;
  margin-top: 2rem;
}

.item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.35s var(--ease);
}

.item-link:hover { transform: translateY(-3px); }

.item-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  background: var(--bg-soft);
}

.item-link h3 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

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

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 860px) {
  .price-grid { grid-template-columns: 1fr; }
}

.price-tier {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--line);
}

.price-tier:last-child { border-right: none; }

@media (max-width: 860px) {
  .price-tier {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .price-tier:last-child { border-bottom: none; }
}

.price-tier.is-featured {
  background: var(--accent-soft);
}

.price-tier .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0.5rem 0 0.25rem;
}

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

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

/* Reviews */
.review-stack {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.review {
  max-width: 42rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.review:last-child { border-bottom: none; }

.review .stars {
  letter-spacing: 0.15em;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.review p:first-of-type {
  font-size: 1.15rem;
}

.review-attr {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-top: 1rem;
}

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

/* Forms */
.form {
  max-width: 36rem;
  display: grid;
  gap: 1.15rem;
}

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

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

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

.form-field textarea { min-height: 9rem; resize: vertical; }

.field-error {
  color: var(--warn);
  font-size: 0.88rem;
  margin-top: 0.35rem;
  display: none;
}

.form-field.is-invalid .field-error { display: block; }

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--warn);
}

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

.form-status.is-success {
  display: block;
  background: #e4efe8;
  color: var(--ok);
}

.form-status.is-error {
  display: block;
  background: #f3e6e2;
  color: var(--warn);
}

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

.contact-aside p { margin-bottom: 0.65rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* Legal */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.45rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

.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); }

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

.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

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

.faq details[open] summary { color: var(--accent); }

.faq details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--ink-muted);
}

/* Modules */
.module-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  counter-reset: mod;
}

.module-list li {
  counter-increment: mod;
  padding: 1.15rem 0 1.15rem 3.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-display);
  color: var(--accent);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: var(--space);
  right: var(--space);
  bottom: var(--space);
  z-index: 200;
  max-width: 34rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 40px rgba(30, 36, 33, 0.12);
  animation: riseIn 0.5s var(--ease);
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--ink-muted);
}

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

.inline-error {
  background: #f3e6e2;
  color: var(--warn);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

/* 404 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem var(--space);
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: #1e2421;
  color: #c5cbc5;
  margin-top: clamp(3rem, 8vw, 6rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #f3f4f1;
  margin-bottom: 0.5rem;
}

.footer-tag {
  max-width: 22rem;
  font-size: 0.95rem;
}

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

@media (max-width: 800px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f9891;
  margin-bottom: 0.85rem;
}

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

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

.site-footer a {
  color: #d5dbd5;
  text-decoration: none;
}

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

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

.footer-copy {
  border-top: 1px solid #333a36;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #8f9891;
  margin: 0;
}

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.5rem;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-media img { animation: none; }
}
