/* Infraedgenet Digital — warm pastel theme */
:root {
  --bg: #fbf6f1;
  --bg-soft: #f3ebe4;
  --surface: #fffaf7;
  --card: #ffffff;
  --ink: #3a322c;
  --ink-soft: #6b5f56;
  --muted: #8f8278;
  --peach: #e8a598;
  --peach-deep: #d48474;
  --sage: #a8c5b8;
  --sage-deep: #7fa895;
  --lilac: #c4b5d0;
  --blush: #f2d6cf;
  --mist: #e8eef0;
  --line: rgba(58, 50, 44, 0.1);
  --shadow: 0 12px 32px rgba(90, 70, 60, 0.08);
  --shadow-sm: 0 6px 18px rgba(90, 70, 60, 0.06);
  --radius: 1.35rem;
  --radius-sm: 0.85rem;
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --max: 1120px;
  --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);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 165, 152, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(168, 197, 184, 0.35), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(196, 181, 208, 0.22), transparent 55%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--peach-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.65rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  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;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 35% 35%, var(--sage), transparent 55%),
    radial-gradient(circle at 70% 70%, var(--peach), var(--lilac));
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--card);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
}

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

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

.nav-cta {
  background: linear-gradient(135deg, var(--peach), #f0b8ab);
  color: #fff !important;
  padding: 0.55rem 1rem !important;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  filter: brightness(0.97);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--peach-deep), var(--peach));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  color: #fff;
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  color: var(--ink);
}

.btn-sage {
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  color: #fff;
}

.btn-sage:hover {
  color: #fff;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.card-media {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--mist);
}

/* Hero variants */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.12rem;
  max-width: 36rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 0.4rem);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: soft-float 7s ease-in-out infinite;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  min-height: 420px;
}

.hero-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(255, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hero-band {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-band h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
  margin-inline: auto;
}

.hero-band .hero-lead {
  margin-inline: auto;
}

.page-hero {
  padding: 2.75rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--line);
}

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

.section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
}

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

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

.feature {
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--blush), var(--mist));
  font-size: 1.2rem;
}

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

.stat {
  text-align: center;
  padding: 1.4rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  display: block;
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Course cards */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.chip {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--ink-soft);
}

.chip-peach { background: var(--blush); }
.chip-sage { background: rgba(168, 197, 184, 0.45); }
.chip-lilac { background: rgba(196, 181, 208, 0.4); }

/* Testimonials */
.quote {
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote p {
  font-size: 1.02rem;
}

.quote-author {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.quote-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

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

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

.price-card {
  padding: 1.75rem 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

.price-card.featured {
  border-color: var(--peach);
  transform: scale(1.02);
  background:
    linear-gradient(180deg, rgba(242, 214, 207, 0.35), transparent 40%),
    var(--card);
}

.price-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
}

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

.price-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  flex: 1;
}

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

.price-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Forms */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--peach);
  box-shadow: 0 0 0 3px rgba(232, 165, 152, 0.25);
}

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

.field-error {
  color: #b14a3c;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

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

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: #d48474;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-status.is-success {
  display: block;
  background: rgba(168, 197, 184, 0.35);
  color: #2f5c4a;
}

.form-status.is-error {
  display: block;
  background: rgba(232, 165, 152, 0.35);
  color: #8a3a2e;
}

.inline-error {
  display: none;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: rgba(232, 165, 152, 0.3);
  border-radius: var(--radius-sm);
  color: #8a3a2e;
  font-weight: 600;
}

.inline-error.is-visible {
  display: block;
}

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

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  background: var(--card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.legal th {
  background: var(--bg-soft);
  font-weight: 700;
}

/* Blog */
.article-prose {
  max-width: 42rem;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 420px;
  margin-left: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(90, 70, 60, 0.16);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  animation: slide-up 0.45s var(--ease);
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

.cookie-actions .btn {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background:
    linear-gradient(180deg, transparent, rgba(242, 214, 207, 0.35)),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  display: inline-block;
  padding: 0.25rem 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-address,
.footer-contact {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

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

.module-list li {
  padding: 1rem 1.15rem;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
}

.module-list strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.faq details {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq details[open] summary {
  margin-bottom: 0.6rem;
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--ink-soft);
}

.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  background:
    linear-gradient(135deg, rgba(232, 165, 152, 0.25), rgba(168, 197, 184, 0.3));
  border-radius: calc(var(--radius) + 0.5rem);
  box-shadow: var(--shadow-sm);
}

.illustration-blob {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1.5rem;
}

@keyframes soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fade-in 0.7s var(--ease) both;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }

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

.not-found h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--peach-deep);
}

/* Responsive */
@media (max-width: 1100px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 960px) {
  .hero-split,
  .footer-grid,
  .price-grid,
  .grid-3,
  .stat-row {
    grid-template-columns: 1fr !important;
  }

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

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + 0.35rem);
    left: 1rem;
    right: 1rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list a {
    padding: 0.65rem 0.4rem;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
  }

  .hero-visual img {
    min-height: 280px;
    aspect-ratio: 16 / 11;
  }
}

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