/* =====================================================================
   SCE Atelier Landing Page — brand stylesheet
   Tokens derived from design/STYLE_GUIDE.md (scraped from /community/)
   ===================================================================== */

:root {
  /* ── Colors ── */
  --color-bg-cream:        #faf9f3;
  --color-bg-cream-light:  #fbf9f4;
  --color-bg-sand:         #e3d5ca;
  --color-bg-sand-alpha:   rgba(226, 213, 202, 0.8);

  --color-brand-terracotta:      #a9675d;
  --color-brand-terracotta-dark: #8d534e;
  --color-brand-terracotta-alt:  #a7675a;

  --color-brand-plum-dark: #370031;
  --color-brand-plum-mid:  #884780;
  --color-brand-navy:      #20015a;
  --color-brand-purple:    #8b42ac;
  --color-brand-lavender:  #b4baee;
  --color-brand-indigo:    #475593;
  --color-link:            #3430a3;
  --color-link-hover:      #20015a;

  --color-text-primary: #000000;
  --color-text-dark:    #212121;
  --color-text-mid:     #333333;
  --color-text-muted:   #666666;
  --color-white:        #ffffff;

  --color-overlay-dark: rgba(0, 0, 0, 0.45);

  /* ── Typography ── */
  --font-body:    'Lato', Helvetica, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, "Times New Roman", serif;
  --font-sub:     'Oswald', Helvetica, Arial, sans-serif;
  --font-script:  'Allura', cursive;
  --font-ui:      'Poppins', sans-serif;

  /* ── Font sizes ── */
  --fs-hero:       52px;
  --fs-h2-label:   20px;
  --fs-h3-sub:     26px;
  --fs-body-large: 24px;
  --fs-body:       16px;
  --fs-button:     16px;
  --fs-nav:        14px;

  /* ── Line heights ── */
  --lh-hero: 1.1em;
  --lh-sub:  1.3em;
  --lh-body: 1.9em;
  --lh-lead: 1.6em;

  /* ── Letter spacing ── */
  --ls-eyebrow: 3px;
  --ls-sub:     2px;
  --ls-ghost:   1px;

  /* ── Layout ── */
  --container-max:    1400px;
  --container-narrow: 800px;
  --radius-sm:   2px;
  --radius-pill: 10px;

  --transition-btn: border 300ms ease, border-radius 300ms ease, background-color 300ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 200ms ease;
}
a:hover { color: var(--color-brand-purple); }

/* Keyboard focus — visible ring on every interactive element (none existed) */
a:focus-visible,
.btn:focus-visible,
.faq-item__q:focus-visible {
  outline: 2px solid var(--color-brand-plum-dark);
  outline-offset: 3px;
}
/* Plum ring is low-contrast on the saturated sections — use white there */
.cta-block .btn:focus-visible,
.investment .btn:focus-visible,
.prose--dark a:focus-visible {
  outline-color: var(--color-white);
}

/* =====================================================================
   Layout helpers
   ===================================================================== */
.container {
  width: 85%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.container--narrow {
  width: 85%;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.section { padding: 6% 0; }
.section--tight { padding: 3.5% 0; }
.section--pad-lg { padding: 9% 0; }
.text-center { text-align: center; }

/* =====================================================================
   Typography helpers
   ===================================================================== */
.heading-hero {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: var(--lh-hero);
  margin: 0.2em 0;
}
.heading-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-h2-label);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  line-height: 1.2em;
  margin: 0 0 0.6em;
}
.heading-sub {
  font-family: var(--font-sub);
  font-size: var(--fs-h3-sub);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-sub);
  line-height: var(--lh-sub);
  margin: 0 0 0.6em;
}
.text-lead {
  font-size: var(--fs-body-large);
  line-height: var(--lh-lead);
}
.text-script {
  font-family: var(--font-script);
  font-size: 40px;
  line-height: 1.3em;
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0;
  transition: var(--transition-btn);
}
.btn-primary {
  color: var(--color-white);
  background-color: var(--color-brand-terracotta-alt);
  border: 1px solid var(--color-white);
}
.btn-primary:hover {
  color: var(--color-white);
  border-color: var(--color-brand-terracotta-alt);
  border-radius: var(--radius-pill);
}
.btn-secondary {
  color: var(--color-white);
  background-color: var(--color-brand-terracotta-dark);
  border: 1px solid rgba(255, 255, 255, 0.6);  /* separates the fill from terracotta/plum section bg (~1.38:1 without it) */
  /* inherit base padding (14px 32px) so the label baseline matches .btn-primary
     in the CTA row — the old 12px override made "Book a Call" sit ~2px high */
}
.btn-secondary:hover {
  border-radius: var(--radius-pill);
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-ghost {
  color: var(--color-white);
  background-color: transparent;
  border: 1px solid var(--color-white);
  border-radius: 1px;
  letter-spacing: var(--ls-ghost);
}
.btn-ghost:hover { color: var(--color-white); }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.site-header .logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-brand-navy);
}
.site-header nav a {
  font-size: var(--fs-nav);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-primary);
  margin-left: 28px;
}

/* =====================================================================
   Section type: announcement banner
   ===================================================================== */
.banner {
  background-color: var(--color-brand-plum-mid);
  color: var(--color-white);
  text-align: center;
  padding: 14px 16px;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.banner a { color: var(--color-white); text-decoration: underline; }

/* =====================================================================
   Section type: hero (floating card)
   ===================================================================== */
.hero {
  background-color: var(--color-bg-cream);
  padding: 4vw;
}
.hero__card {
  background-color: var(--color-white);
  border-radius: 4px;
  padding: 6% 8%;
  box-shadow: 0 24px 60px rgba(55, 0, 49, 0.07);
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}
.hero__eyebrow { color: var(--color-brand-terracotta); }
.hero .heading-hero { color: var(--color-text-primary); }
.hero__subhead {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: var(--ls-sub);
  font-size: var(--fs-h3-sub);
  color: var(--color-brand-terracotta);
  margin: 0.4em 0 0.8em;
}
.hero__body { max-width: 640px; margin: 0 auto 1.8em; }

/* =====================================================================
   Section type: quote / social proof
   ===================================================================== */
.quote {
  background-color: var(--color-bg-cream);
  text-align: center;
}
.quote__text {
  font-family: var(--font-script);
  font-size: 44px;
  line-height: 1.25em;
  color: var(--color-brand-terracotta);
  max-width: 820px;
  margin: 0 auto;
}
.quote__author {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-size: 14px;
  margin-top: 1em;
}

/* =====================================================================
   Section type: list (pain points / promise)
   ===================================================================== */
.feature-list { background-color: var(--color-bg-cream); }
.feature-list__heading { text-align: center; margin-bottom: 1.6em; }
.feature-list ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
}
.feature-list li {
  position: relative;
  padding: 12px 0 12px 38px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-brand-terracotta);
}

/* Dark variant (deep plum promise section) */
.feature-list--dark {
  background-color: var(--color-brand-plum-dark);
  color: var(--color-bg-cream-light);
}
.feature-list--dark li { border-bottom-color: rgba(255, 255, 255, 0.14); }
.feature-list--dark li::before { background-color: var(--color-brand-lavender); }

/* Sand callout variant */
.feature-list--sand,
.callout--sand { background-color: var(--color-bg-sand); }

/* =====================================================================
   Section type: callout
   ===================================================================== */
.callout { background-color: var(--color-bg-sand); text-align: center; }
.callout__body { max-width: 720px; margin: 0 auto; }

/* =====================================================================
   Section type: testimonials grid
   ===================================================================== */
.testimonials { background-color: var(--color-bg-sand); }
.testimonials__heading { text-align: center; margin-bottom: 1.6em; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background-color: var(--color-white);
  border-radius: 4px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(55, 0, 49, 0.06);
}
.testimonial-card__quote { font-style: italic; }
.testimonial-card__author {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--color-brand-terracotta);
  margin-top: 1em;
}

/* =====================================================================
   Section type: pricing
   ===================================================================== */
.pricing {
  background-color: var(--color-brand-terracotta);
  color: var(--color-white);
}
.pricing__heading { text-align: center; margin-bottom: 1.6em; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 32px;
  justify-content: center;
}
.pricing-card {
  background-color: var(--color-white);
  color: var(--color-text-primary);
  border-radius: 6px;
  padding: 40px 34px;
  text-align: center;
}
.pricing-card__name {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: var(--ls-sub);
  font-size: 22px;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-brand-terracotta);
  margin: 0.2em 0;
}
.pricing-card__period { color: var(--color-text-muted); font-size: 14px; }
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.4em 0;
  text-align: left;
}
.pricing-card li {
  padding: 8px 0 8px 26px;
  position: relative;
  line-height: 1.5em;
}
.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-brand-terracotta);
  font-weight: 700;
}

/* =====================================================================
   Section type: CTA block
   ===================================================================== */
.cta-block {
  background-color: var(--color-brand-terracotta);
  color: var(--color-white);
  text-align: center;
}
.cta-block .heading-hero { color: var(--color-white); }
.cta-block__body { max-width: 640px; margin: 0 auto 1.6em; }

.cta-block--dark { background-color: var(--color-brand-plum-dark); }

/* =====================================================================
   Section type: FAQ accordion
   ===================================================================== */
.faq { background-color: var(--color-bg-cream-light); }
.faq__heading { text-align: center; margin-bottom: 1.4em; }
.faq__list { max-width: 820px; margin: 0 auto; }
.faq-item { margin-bottom: 12px; }
.faq-item__q {
  width: 100%;
  text-align: left;
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px 22px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 200ms ease;
}
.faq-item__q .icon { transition: transform 200ms ease; }
.faq-item.is-open .faq-item__q {
  background-color: var(--color-brand-lavender);
}
.faq-item.is-open .faq-item__q .icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease, padding 280ms ease;
  padding: 0 22px;
  background-color: var(--color-white);
}
.faq-item.is-open .faq-item__a { padding: 18px 22px; max-height: 500px; }

/* =====================================================================
   Section type: about
   ===================================================================== */
.about { background-color: var(--color-bg-cream-light); }
.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.about__photo {
  border-radius: 50%;
  width: 280px;
  height: 280px;
  object-fit: cover;
  background-color: var(--color-bg-sand);
}

/* =====================================================================
   Accessibility helper
   ===================================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* =====================================================================
   Hero — banner image variant
   ===================================================================== */
.hero--banner { padding: 0; background-color: var(--color-bg-cream); }
.hero__banner-img { width: 100%; max-width: 1400px; margin: 0 auto; display: block; }
.hero__below { text-align: center; padding: 36px 16px 10px; }
.hero__below .hero__eyebrow { color: var(--color-brand-terracotta); margin-bottom: 1em; }

/* =====================================================================
   Section type: prose (heading + ordered blocks)
   ===================================================================== */
.prose { background-color: var(--color-bg-cream); }
/* Premium long-form measure: the shared 800px container ran ~100 chars/line;
   hold prose body near the ~75ch comfort ceiling (headings stay centered within it). */
.prose .container--narrow { max-width: 600px; }
.prose--sand { background-color: var(--color-bg-sand); }
.prose--dark { background-color: var(--color-brand-plum-dark); color: var(--color-bg-cream-light); }
/* Prose body mirrors the Doc's paragraph alignment: left by default, with
   per-paragraph overrides emitted by render.js when the Doc says otherwise. */
.prose__p { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }
.prose__heading {
  text-align: center;
  color: var(--color-brand-terracotta);
  margin-bottom: 1.2em;
  /* Editorial high note: echo the hero Playfair masthead instead of the flat
     26px Oswald label, so each section opens with hierarchy. Overrides the
     .heading-sub Oswald treatment (later source order, same specificity). */
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 36px;
  line-height: 1.15;
}
.prose p { margin: 0 0 1.1em; }
.prose__sub {
  font-size: 20px;
  color: var(--color-brand-terracotta);
  margin: 1.6em 0 0.6em;
  text-align: center;
}
.prose__list { padding-left: 0; list-style: none; margin: 1.2em 0; }
.prose__list li {
  position: relative;
  padding: 8px 0 8px 30px;
}
.prose__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: var(--color-brand-terracotta);
}
.prose--dark .prose__list li::before { background-color: var(--color-brand-lavender); }
.prose__image { margin: 1.6em auto; border-radius: 4px; }

/* Numbered subsections (Three Ways / How It Works) */
.numbered {
  display: flex;
  gap: 20px;
  align-items: baseline;   /* big numeral's baseline sits on the title's baseline */
  padding: 22px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.numbered:first-of-type { border-top: 0; }
/* Editorial figure: no circle — a large terracotta Playfair numeral. Sidesteps
   the in-circle centering problem entirely and reads more premium. Fixed width
   keeps every title left-aligned regardless of digit shape. */
.numbered__badge {
  flex: 0 0 auto;
  width: 42px;
  text-align: center;
  color: var(--color-brand-terracotta);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}
.numbered__title {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: var(--ls-sub);
  font-size: 19px;
  margin: 0 0 0.6em;
}
.numbered__content p { margin: 0 0 0.8em; }

/* =====================================================================
   Section type: definition (editorial)
   ===================================================================== */
.definition {
  /* Sand plate sets the dictionary aside apart from the cream prose on both
     sides — the old cream-light (#fbf9f4) was indistinguishable from the cream
     "What This Is" section that follows. applyRhythm keeps both neighbors cream. */
  background-color: var(--color-bg-sand);
  text-align: center;
}
.definition__word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  color: var(--color-text-primary);
}
.definition__pos {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: var(--ls-sub);
  color: var(--color-brand-terracotta);
  font-size: 15px;
  margin-bottom: 1em;
}
.definition__lead { font-style: italic; color: var(--color-text-mid); }

/* =====================================================================
   Section type: testimonial (pull-quote)
   ===================================================================== */
.testimonial {
  background-color: var(--color-bg-sand);
  text-align: center;
}
.testimonial__headline {
  font-family: var(--font-script);
  font-size: 38px;
  line-height: 1.3em;
  color: var(--color-brand-terracotta);
  margin: 0 0 0.8em;
}
.testimonial__body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.7em;
  color: var(--color-text-mid);
  margin: 0 0 1em;
}
.testimonial__author {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-size: 14px;
  color: var(--color-text-primary);
  margin-top: 1em;
}

/* =====================================================================
   Section type: investment
   ===================================================================== */
.investment {
  background-color: var(--color-brand-terracotta);
  color: var(--color-white);
  text-align: center;
}
.investment__heading { color: var(--color-white); margin-bottom: 1.2em; }
.investment__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 24px;
  justify-content: center;
  margin-bottom: 1.6em;
}
.investment__option {
  background-color: var(--color-white);
  color: var(--color-text-primary);
  border-radius: 6px;
  padding: 34px 24px;
}
.investment__label {
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: var(--ls-sub);
  font-size: 15px;
  color: var(--color-brand-terracotta);
  margin-bottom: 0.4em;
}
.investment__value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}
.investment__note { font-size: 15px; opacity: 0.92; }

/* =====================================================================
   Section type: closing (poetic outro)
   ===================================================================== */
.closing {
  background-color: var(--color-bg-cream-light);
  text-align: center;
}
.closing__line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.6em;
  color: var(--color-text-mid);
  margin: 0 0 0.4em;
}

/* CTA multi-button row */
.cta-block__buttons { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.site-header__cta { padding: 10px 22px; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}
.site-footer .logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-brand-navy);
  margin-bottom: 8px;
}

/* =====================================================================
   Responsive — Tablet
   ===================================================================== */
@media (max-width: 980px) {
  .container, .container--narrow { width: 90%; }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 28px; }
}

/* =====================================================================
   Responsive — Mobile
   ===================================================================== */
@media (max-width: 767px) {
  .container, .container--narrow { width: 92%; }
  .section, .section--pad-lg { padding: 12% 0; }

  .heading-hero { font-size: 32px; }
  .heading-sub, .hero__subhead { font-size: 20px; }
  .prose__heading { font-size: 27px; }   /* Playfair editorial heading, mobile */
  .text-lead { font-size: 19px; }
  .quote__text { font-size: 30px; }

  .hero { padding: 14px; }
  .hero__card { padding: 10% 7%; }

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

  .site-header .container { flex-direction: column; gap: 12px; }
  .site-header nav a { margin: 0 12px; }

  .btn { display: block; text-align: center; }
  .hero .btn, .cta-block .btn, .pricing-card .btn { width: 100%; }

  .definition__word { font-size: 30px; }
  .testimonial__headline { font-size: 27px; }
  .investment__grid { grid-template-columns: 1fr; }
  .numbered { flex-direction: column; gap: 10px; }
  .closing__line { font-size: 18px; }
  .hero__below { padding: 24px 14px 6px; }
}
