/* Intellichat Digital — warm sage & honey theme */
:root {
  --bg: #f3f0e9;
  --bg-soft: #e7efe6;
  --bg-deep: #dfe8dc;
  --surface: #fcfbf7;
  --ink: #243028;
  --muted: #5c6b60;
  --primary: #3f6b4e;
  --primary-hover: #345a41;
  --accent: #b8893d;
  --accent-bg: #f3e8d4;
  --line: #d5dccf;
  --danger: #9b4038;
  --ok: #2f6b4f;
  --radius: 1.35rem;
  --radius-sm: 0.85rem;
  --shadow: 0 14px 36px rgba(36, 48, 40, 0.08);
  --shadow-soft: 0 8px 24px rgba(36, 48, 40, 0.06);
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-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.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(231, 239, 230, 0.95), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(243, 232, 212, 0.7), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #efeae1 100%);
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.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: -3rem;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 1000;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(252, 251, 247, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.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);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 70% 25%, var(--accent) 0 28%, transparent 29%),
    linear-gradient(145deg, var(--primary), #5d8a68);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

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

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.2rem;
  border-radius: 0.5rem;
}

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

.site-nav .nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}

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

.nav-toggle {
  display: none;
  border: 0;
  background: var(--bg-soft);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

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

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

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

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-h) + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.85rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }
}

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

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(63, 107, 78, 0.25);
}

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

.btn-secondary {
  background: var(--accent-bg);
  color: var(--ink);
}

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

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--line);
}

/* Layout helpers */
.section {
  padding: 4.5rem 0;
}

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

.section-alt {
  background: rgba(231, 239, 230, 0.55);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 38rem;
}

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

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

.grid-auto {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

/* Cards — only where interaction/content needs a container */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.card-media {
  overflow: hidden;
  border-radius: calc(var(--radius) - 0.35rem);
  margin: -0.35rem -0.35rem 1rem;
  aspect-ratio: 16 / 10;
  background: var(--bg-deep);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

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

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

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 48, 40, 0.25) 0%, rgba(36, 48, 40, 0.72) 55%, rgba(36, 48, 40, 0.88) 100%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
  animation: rise 0.8s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.hero-home h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  max-width: 28ch;
  margin-bottom: 0.85rem;
  color: #f7f3ea;
}

.hero-home .hero-copy {
  max-width: 34rem;
  color: rgba(252, 251, 247, 0.88);
  margin-bottom: 1.5rem;
}

/* Soft proof ribbon */
.proof-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 0;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--primary);
}

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

/* Feature list without card chrome */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.benefit-list li {
  padding-left: 1.6rem;
  position: relative;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
}

.benefit-list h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.benefit-list p {
  color: var(--muted);
  margin: 0;
}

/* Quote / testimonials */
.quote-block {
  border-left: 4px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 0 0 1.5rem;
}

.quote-block p {
  font-size: 1.15rem;
  font-family: var(--font-display);
  margin-bottom: 0.6rem;
}

.quote-block cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

.testimonial-grid .card:nth-child(2) {
  transform: translateY(0.75rem);
}

@media (max-width: 860px) {
  .testimonial-grid .card:nth-child(2) {
    transform: none;
  }
}

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

/* Page heroes (inner) */
.page-hero {
  padding: 3.25rem 0 2rem;
}

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

.page-hero.with-media {
  padding-bottom: 0;
}

.page-hero-media {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  box-shadow: var(--shadow);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .page-hero-media {
    aspect-ratio: 16 / 10;
  }
}

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

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

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff 0%, #f4f8f3 100%);
}

.price-card h2 {
  font-size: 1.4rem;
  margin: 0;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

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

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

.price-card li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

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

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

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 107, 78, 0.18);
}

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

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  min-height: 1.1em;
}

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

.form-status.is-success {
  display: block;
  background: #e5f3ea;
  color: var(--ok);
  border: 1px solid #b7d9c4;
}

.form-status.is-error {
  display: block;
  background: #f8e8e6;
  color: var(--danger);
  border: 1px solid #e2b8b3;
}

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

.contact-panel dt {
  font-weight: 700;
  font-family: var(--font-display);
  margin-top: 0.85rem;
}

.contact-panel dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

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

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

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

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  aspect-ratio: 16 / 8;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Course detail */
.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.module-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

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

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.instructor img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-bg);
}

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

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

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

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

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

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

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.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);
  font-family: var(--font-display);
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  animation: rise 0.45s ease both;
}

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

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

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

.cookie-actions .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
}

.inline-error {
  background: #f8e8e6;
  color: var(--danger);
  border: 1px solid #e2b8b3;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #2a372e;
  color: #e8efe6;
  padding: 3rem 0 1.5rem;
}

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

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

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

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

.footer-tag,
.footer-meta {
  color: rgba(232, 239, 230, 0.78);
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

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

.footer-links a,
.footer-meta a {
  color: rgba(232, 239, 230, 0.88);
  text-decoration: none;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: #fff;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(232, 239, 230, 0.65);
  font-size: 0.9rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Split band */
.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.split-band-copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-band-media {
  min-height: 280px;
}

.split-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cta-panel {
  background: linear-gradient(135deg, var(--primary), #557a5f);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.cta-panel h2 {
  color: #fff;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
  margin-inline: auto;
}

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

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

.case-study h3 {
  margin-bottom: 0.5rem;
}

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

.avatar-row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
