/* Eventfieldbase — vibrant measurement studio theme */
:root {
  --ink: #1a1f36;
  --ink-soft: #3a415c;
  --sand: #fff6ee;
  --sand-deep: #ffe8d6;
  --coral: #ff5a36;
  --coral-deep: #e03f1c;
  --teal: #00c2b3;
  --teal-deep: #009e92;
  --sun: #ffc857;
  --violet-pop: #7b5cff;
  --white: #ffffff;
  --line: rgba(26, 31, 54, 0.12);
  --shadow: 0 18px 40px rgba(26, 31, 54, 0.12);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Figtree", 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);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral-deep);
}

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 1rem;
}

.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: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

.inline-error {
  background: #ffe0d8;
  color: #8a1f0a;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
}

/* Background energy */
.page-bg {
  position: relative;
  isolation: isolate;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
}

.page-bg::before {
  width: 42vw;
  height: 42vw;
  min-width: 280px;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.35), transparent 70%);
  top: -8vw;
  right: -10vw;
  animation: drift 18s ease-in-out infinite alternate;
}

.page-bg::after {
  width: 36vw;
  height: 36vw;
  min-width: 240px;
  background: radial-gradient(circle, rgba(0, 194, 179, 0.32), transparent 70%);
  bottom: 10vh;
  left: -12vw;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4vw, 3vh) scale(1.08);
  }
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 246, 238, 0.86);
  border-bottom: 2px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  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: 700;
  font-size: 1.05rem;
}

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--coral), var(--sun) 55%, var(--teal));
  box-shadow: 0 6px 0 rgba(26, 31, 54, 0.15);
  transform: rotate(-8deg);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: var(--white);
  border-radius: 0.65rem;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  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;
}

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

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

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

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--coral) !important;
  color: var(--white) !important;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(255, 246, 238, 0.97);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

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

  .nav-list a {
    font-size: 1.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

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

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

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 0 var(--coral-deep);
}

.btn-primary:hover {
  background: var(--coral-deep);
  color: var(--white);
}

.btn-secondary {
  background: var(--teal);
  color: var(--ink);
  box-shadow: 0 8px 0 var(--teal-deep);
}

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

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero home — asymmetric composition */
.hero-home {
  padding: 3.5rem 0 2.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
}

.hero-kicker {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--coral-deep);
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--sun) 70%, white);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transform: rotate(-2deg);
}

.hero-home h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  max-width: 12ch;
  margin-bottom: 0.8rem;
}

.hero-home .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 1.5rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 2rem 0.6rem 2rem 0.6rem;
  box-shadow: var(--shadow);
  border: 3px solid var(--ink);
}

.hero-shape {
  position: absolute;
  z-index: -1;
  border: 3px solid var(--ink);
}

.hero-shape.s1 {
  width: 70%;
  height: 70%;
  background: var(--teal);
  border-radius: 40% 60% 55% 45%;
  top: -8%;
  right: -6%;
  animation: morph 10s ease-in-out infinite;
}

.hero-shape.s2 {
  width: 38%;
  height: 28%;
  background: var(--sun);
  border-radius: 1.2rem;
  bottom: 8%;
  left: -8%;
  transform: rotate(-12deg);
}

@keyframes morph {
  0%,
  100% {
    border-radius: 40% 60% 55% 45%;
  }
  50% {
    border-radius: 60% 40% 35% 65%;
  }
}

.trust-strip {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}

.trust-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.trust-strip span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

  .hero-home h1 {
    max-width: none;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }
}

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

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

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.eyebrow {
  font-weight: 700;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.band-coral {
  background: linear-gradient(120deg, #ff7a5c, var(--coral) 40%, #ff8f4a);
  color: var(--white);
  border-block: 3px solid var(--ink);
}

.band-coral a {
  color: var(--white);
}

.band-ink {
  background: var(--ink);
  color: var(--sand);
}

.band-ink a {
  color: var(--sun);
}

.band-teal {
  background: linear-gradient(160deg, #13d4c4, #007f8f);
  color: var(--white);
  border-block: 3px solid var(--ink);
}

/* Cards / grids — only where interaction/listing needs containers */
.course-grid,
.blog-grid,
.pricing-grid,
.review-grid {
  display: grid;
  gap: 1.25rem;
}

.course-grid,
.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.course-card,
.blog-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(26, 31, 54, 0.18);
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.course-card:hover,
.blog-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 rgba(26, 31, 54, 0.22);
  color: inherit;
}

.course-card img,
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}

.card-body {
  padding: 1.15rem 1.2rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.card-meta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 700;
  color: var(--coral-deep);
  font-size: 0.9rem;
}

/* Benefit mosaic — not a feature card row */
.benefit-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.benefit {
  padding: 1.4rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.benefit:nth-child(1) {
  grid-row: 1 / span 2;
  background: linear-gradient(165deg, var(--sand-deep), var(--white));
}

.benefit:nth-child(2) {
  background: color-mix(in srgb, var(--teal) 22%, white);
}

.benefit:nth-child(3) {
  background: color-mix(in srgb, var(--sun) 35%, white);
}

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

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

  .benefit:nth-child(1) {
    grid-row: auto;
  }
}

/* Social proof quotes */
.quote-stack {
  display: grid;
  gap: 1rem;
}

.quote {
  border-left: 6px solid var(--coral);
  padding: 0.4rem 0 0.4rem 1.1rem;
}

.quote blockquote {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

.quote cite {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

.price-tier {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-tier.featured {
  background: var(--ink);
  color: var(--sand);
  transform: scale(1.03);
  box-shadow: 10px 10px 0 var(--coral);
}

.price-tier .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
}

.price-tier ul {
  margin: 0;
  padding-left: 1.1rem;
  flex: 1;
}

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

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

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

/* Reviews */
.review-grid {
  grid-template-columns: repeat(2, 1fr);
}

.review {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.review.wide {
  grid-column: 1 / -1;
}

.stars {
  color: var(--coral);
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

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

.field {
  margin-bottom: 1rem;
}

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

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: var(--white);
}

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

.field.has-error input,
.field.has-error textarea {
  border-color: var(--coral-deep);
  background: #fff5f2;
}

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

.form-status {
  margin-top: 0.75rem;
  font-weight: 700;
}

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

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

.address-block {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 6px 6px 0 var(--teal);
}

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

/* Legal */
.legal-page {
  padding: 3rem 0 4rem;
}

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

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

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

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

.legal-page th {
  background: var(--sand-deep);
}

/* Course detail */
.course-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem 0 1rem;
}

.course-hero img {
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  height: 320px;
  width: 100%;
  object-fit: cover;
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.module-list li {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

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

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem;
}

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

@media (max-width: 800px) {
  .course-hero,
  .instructor {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.faq-panel {
  display: none;
  padding: 0 1.1rem 1rem;
  color: var(--ink-soft);
}

.faq-item.is-open .faq-panel {
  display: block;
}

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

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

.page-hero.fullbleed {
  position: relative;
  min-height: 52vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  margin-bottom: 2rem;
}

.page-hero.fullbleed .bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.page-hero.fullbleed .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 31, 54, 0.25), rgba(26, 31, 54, 0.82));
}

.page-hero.fullbleed .wrap {
  padding-bottom: 2.5rem;
}

/* 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, 16vw, 8rem);
  color: var(--coral);
  line-height: 1;
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 80;
  max-width: 640px;
  margin-inline: auto;
}

.cookie-banner-inner {
  background: var(--ink);
  color: var(--sand);
  border: 3px solid var(--coral);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}

.cookie-banner-inner a {
  color: var(--sun);
}

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

.cookie-banner .btn-ghost {
  border-color: var(--sand);
  color: var(--sand);
}

.cookie-banner .btn-primary {
  box-shadow: none;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--ink);
  color: var(--sand);
  padding: 3rem 0 2rem;
  border-top: 4px solid var(--coral);
}

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

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

.footer-tag {
  max-width: 36ch;
  color: rgba(255, 246, 238, 0.78);
}

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

.footer-col h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sun);
}

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

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

.footer-col a {
  color: var(--sand);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-contact p {
  font-size: 0.92rem;
  color: rgba(255, 246, 238, 0.85);
}

.footer-copy {
  border-top: 1px solid rgba(255, 246, 238, 0.15);
  padding-top: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 246, 238, 0.6);
}

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

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

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.prose {
  max-width: 42rem;
}

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

.case-study {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.case-study h3 {
  color: var(--coral-deep);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.metric-row div {
  background: var(--sand-deep);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  min-width: 8rem;
}

.metric-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
}
