/* Digitalcommsapi — soft neutral, large type, generous white space */

:root {
  --bg: #f5f2eb;
  --bg-elevated: #fffdf8;
  --bg-muted: #ebe6db;
  --ink: #1c2420;
  --ink-soft: #4a534d;
  --ink-faint: #7a837c;
  --line: #d4cec2;
  --accent: #2f3d36;
  --accent-soft: #a8b5a0;
  --accent-warm: #8b7355;
  --focus: #3d5c4a;
  --danger: #8b3a3a;
  --success: #2f5c45;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(28, 36, 32, 0.06);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --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(ellipse 80% 50% at 10% -10%, rgba(168, 181, 160, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 115, 85, 0.12), transparent 50%),
    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(--focus);
}

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

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

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

.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: -100px;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

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

.inline-error {
  background: #f8e8e8;
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--danger);
  margin: 0.5rem var(--space);
  font-size: 0.95rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 235, 0.92);
  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);
}

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

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: brand-settle 0.8s ease both;
}

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

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

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

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

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

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

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

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

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

.nav-cta {
  background: var(--accent);
  color: #f5f2eb !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--focus);
  color: #fff !important;
}

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

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

  .site-nav.is-open {
    display: block;
    animation: nav-drop 0.28s ease;
  }

  .nav-list {
    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.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-warm);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

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

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

/* Buttons */

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

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

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

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

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

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

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

/* Hero — editorial brand-first composition */

.hero {
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
  animation: rise 0.9s ease both;
}

.hero-rule {
  width: min(12rem, 40%);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  margin: 1.25rem 0 1.5rem;
  animation: expand 1s 0.2s ease both;
}

.hero-copy {
  max-width: 32rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--ink-soft);
  animation: rise 0.9s 0.15s ease both;
}

.hero-visual {
  margin-top: 1rem;
  position: relative;
  min-height: clamp(220px, 38vw, 420px);
  background:
    linear-gradient(120deg, rgba(28, 36, 32, 0.35), rgba(28, 36, 32, 0.05)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1600&q=80")
      center / cover no-repeat;
  animation: fade-in 1.1s 0.25s ease both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, var(--bg));
}

.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  font-weight: 500;
}

.trust-item span {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

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

/* Feature / course blocks */

.feature-stack {
  display: grid;
  gap: 2.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s ease both;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent-soft);
}

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

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

.course-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.course-tile:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.course-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-tile-body {
  padding: 1.35rem 1.4rem 1.6rem;
}

.course-tile h3 {
  margin-bottom: 0.4rem;
}

.course-tile h3 a {
  text-decoration: none;
  color: var(--ink);
}

.course-meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 0.65rem;
}

/* Quote / reviews */

.quote-block {
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 400;
}

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

.review-list {
  display: grid;
  gap: 1.5rem;
}

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

.review-item:first-child {
  border-top: 1px solid var(--line);
}

.review-rating {
  letter-spacing: 0.12em;
  color: var(--accent-warm);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.case-study {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}

/* Pricing */

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

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

.price-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.price-tier.is-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.price-tier .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ink);
  margin: 0.4rem 0 0.2rem;
}

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

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

.price-tier li {
  margin-bottom: 0.45rem;
}

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

/* Forms */

.form-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.form-group .is-invalid {
  border-color: var(--danger);
}

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

.form-status {
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

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

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

.contact-aside address {
  font-style: normal;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* Blog */

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

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

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1rem;
}

.blog-card h3 a {
  text-decoration: none;
  color: var(--ink);
}

.article {
  max-width: 42rem;
  margin: 0 auto;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

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

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.25rem;
}

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

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

/* FAQ */

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

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

.faq-list p {
  margin-top: 0.65rem;
}

/* Modules */

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

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

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

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

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

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

/* CTA band */

.cta-band {
  background: var(--accent);
  color: #f5f2eb;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.cta-band h2,
.cta-band p {
  color: #f5f2eb;
}

.cta-band p {
  opacity: 0.85;
  max-width: 34rem;
}

.cta-band .btn-primary {
  background: var(--bg);
  color: var(--accent);
}

.cta-band .btn-ghost {
  border-color: rgba(245, 242, 235, 0.45);
  color: #f5f2eb;
}

/* 404 */

.page-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--space);
}

.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
  color: var(--accent-soft);
  margin: 0;
}

/* Footer */

.site-footer {
  background: #1c2420;
  color: #c8cfc9;
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

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

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

.footer-tag {
  max-width: 22rem;
  color: #9aa39c;
  font-size: 0.95rem;
}

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

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

.footer-heading {
  color: #f5f2eb;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

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

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

.footer-col a {
  color: #aeb6b0;
  text-decoration: none;
}

.footer-col a:hover {
  color: #f5f2eb;
}

.footer-address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #aeb6b0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: #8a928b;
}

.footer-bottom p {
  color: inherit;
  margin: 0;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(28, 36, 32, 0.08);
  animation: rise 0.35s ease both;
}

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

.cookie-banner-text {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.cookie-banner-error {
  flex-basis: 100%;
  margin: 0;
}

/* Page chrome */

.page-intro {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem;
}

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

.muted {
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.media-full {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  margin: 1.5rem 0;
}

.lab-panel {
  background: var(--bg-muted);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-left: 3px solid var(--accent-soft);
}

/* Animations */

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

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

@keyframes expand {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes brand-settle {
  from {
    transform: scale(0.6) rotate(-12deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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