/* =========================================================
   Mocha Shmigelsky — consultant site
   Design system + components. Hand-crafted, no framework.
   ========================================================= */

:root {
  /* palette */
  --cream:        #FAF5EC;
  --cream-2:      #F3EAD9;
  --cream-3:      #ECE0CB;
  --ink:          #211E2E;
  --ink-soft:     #4C4860;
  --ink-faint:    #6E6A80;
  --red:          #A82433;
  --red-d:        #841B27;
  --sage:         #3E7A6B;
  --sage-d:       #2E5E52;
  --gold:         #D6A24A;
  --white:        #FFFDF9;
  --line:         rgba(33,30,46,.12);
  --line-soft:    rgba(33,30,46,.07);
  --shadow:       0 1px 2px rgba(33,30,46,.05), 0 12px 30px -12px rgba(33,30,46,.18);
  --shadow-lg:    0 2px 6px rgba(33,30,46,.06), 0 30px 60px -24px rgba(33,30,46,.28);

  /* type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --container: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; color: var(--ink-soft); }
em.serif { font-family: var(--display); font-style: italic; color: var(--red-d); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--cream-2); }
.section-ink { background: var(--ink); color: var(--cream); }
.section-ink p { color: rgba(250,245,236,.74); }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red-d);
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.1rem;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.section-ink .eyebrow { color: var(--gold); }
.section-ink .eyebrow::before, .section-ink .eyebrow::after { background: var(--gold); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .98rem; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -10px rgba(168,36,51,.7); }
.btn--primary:hover { background: var(--red-d); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #14121d; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(33,30,46,.03); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--sage { background: var(--sage); color: var(--white); }
.btn--sage:hover { background: var(--sage-d); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65em; font-family: var(--display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, var(--gold), var(--red) 60%, var(--red-d));
  display: grid; place-items: center; color: var(--white); font-size: .95rem; font-weight: 700; font-family: var(--sans);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25);
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 82% 12%, rgba(214,162,74,.22), transparent 70%),
    radial-gradient(50% 50% at 8% 92%, rgba(62,122,107,.16), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: .6em; padding: .4em 1em;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 1.6rem; box-shadow: var(--shadow);
}
.hero__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(62,122,107,.18); }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--red-d); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero__note { margin-top: 1.4rem; font-size: .9rem; color: var(--ink-faint); }

/* hero portrait card */
.portrait {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(150deg, var(--cream-3), var(--cream-2));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.portrait__initials { font-family: var(--display); font-size: clamp(4rem, 10vw, 7rem); color: rgba(33,30,46,.13); font-weight: 600; }
.portrait__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait__badge {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: rgba(255,253,249,.86); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.portrait__badge .b-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 1.1rem; }
.portrait__badge small { display: block; color: var(--ink-faint); font-size: .76rem; }
.portrait__badge strong { font-size: .95rem; }

/* ---------- stat ribbon ---------- */
.ribbon { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.ribbon__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ribbon__item { padding: 30px 24px; text-align: center; border-right: 1px solid var(--line-soft); }
.ribbon__item:last-child { border-right: 0; }
a.ribbon__item { text-decoration: none; color: inherit; display: block; transition: background .15s; }
a.ribbon__item:hover { background: var(--cream); }
.ribbon__num { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--red-d); line-height: 1; }
.ribbon__label { font-size: .82rem; color: var(--ink-faint); margin-top: .5em; letter-spacing: .02em; }

/* ---------- two paths cards ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.path-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  display: flex; flex-direction: column;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(33,30,46,.18); }
.path-card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 22px; }
.path-card--ai .path-card__icon { background: rgba(62,122,107,.13); }
.path-card--pac .path-card__icon { background: rgba(168,36,51,.13); }
.path-card h3 { margin-bottom: .35em; }
.path-card .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.pill { font-size: .78rem; font-weight: 500; padding: .35em .85em; border-radius: var(--radius-pill); background: var(--cream-2); color: var(--ink-soft); border: 1px solid var(--line-soft); }
.path-card__link { margin-top: auto; font-weight: 600; color: var(--red-d); display: inline-flex; align-items: center; gap: .4em; }
.path-card--ai .path-card__link { color: var(--sage-d); }
.path-card__link .arrow { transition: transform .18s; }
.path-card:hover .path-card__link .arrow { transform: translateX(4px); }

/* ---------- generic feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); transition: transform .2s ease;
}
.feature:hover { transform: translateY(-3px); }
.feature .f-num { font-family: var(--display); color: var(--red); font-size: 1.1rem; }
.feature h3 { font-size: 1.22rem; margin: .5em 0 .35em; }
.feature p { margin: 0; font-size: .96rem; }
.section-ink .feature { background: rgba(255,253,249,.05); border-color: rgba(255,253,249,.12); }
.section-ink .feature p { color: rgba(250,245,236,.7); }

/* ---------- offer ladder ---------- */
.ladder { display: flex; flex-direction: column; gap: 12px; }
.rung {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 24px; transition: transform .16s ease, border-color .16s;
}
.rung:hover { transform: translateX(4px); border-color: var(--red); }
.rung__tier { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); width: 92px; }
.rung__name { font-weight: 600; font-size: 1.05rem; }
.rung__name small { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-faint); }
.rung__price { font-family: var(--display); font-size: 1.15rem; color: var(--red-d); white-space: nowrap; }

/* ---------- product grid ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product .star { color: var(--gold); font-size: .85rem; font-weight: 600; margin-bottom: 8px; height: 1.1em; }
.product h3 { font-size: 1.15rem; margin-bottom: .4em; }
.product p { font-size: .92rem; margin-bottom: 1.2rem; }
.product__price { margin-top: auto; font-family: var(--display); color: var(--red-d); font-size: 1.1rem; }

/* ---------- callout / CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--red), var(--red-d)); color: var(--white); border-radius: 26px; padding: clamp(40px, 6vw, 70px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,253,249,.85); max-width: 560px; margin-inline: auto; }
.cta-band .btn--light { margin-top: 1.6rem; }
.cta-band .cta-band__actions .btn--light { margin-top: 0; }
.section-ink .cta-band { box-shadow: none; }

/* ---------- newsletter ---------- */
.signup { display: flex; gap: 12px; max-width: 460px; margin-top: 1.6rem; }
.signup input {
  flex: 1; padding: .85em 1.1em; border-radius: var(--radius-pill); border: 1.5px solid var(--line);
  background: var(--white); font-family: inherit; font-size: .98rem; color: var(--ink);
}
.signup input:focus { outline: none; border-color: var(--red); }
.section-ink .signup input { background: rgba(255,253,249,.08); border-color: rgba(255,253,249,.2); color: var(--cream); }
.section-ink .signup input::placeholder { color: rgba(250,245,236,.5); }

/* ---------- list with checks ---------- */
.checklist { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checklist .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(62,122,107,.14); color: var(--sage-d); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 2px; }
.section-ink .checklist li { color: rgba(250,245,236,.82); }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(250,245,236,.7); padding: 70px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--cream); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.1em; }
.footer a { color: rgba(250,245,236,.7); display: block; padding: 5px 0; transition: color .15s; }
.footer a:hover { color: var(--gold); }
.footer__brand .brand { color: var(--cream); margin-bottom: 1rem; }
.footer__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(250,245,236,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(250,245,236,.5); }

/* ---------- breadcrumb / subpage hero ---------- */
.subhero { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.subhero--pac::before, .subhero--ai::before { content: ""; position: absolute; inset: 0; }
.subhero--pac::before { background: radial-gradient(60% 60% at 85% 10%, rgba(168,36,51,.16), transparent 70%); }
.subhero--ai::before { background: radial-gradient(60% 60% at 85% 10%, rgba(62,122,107,.16), transparent 70%); }
.subhero .container { position: relative; }
.breadcrumb { font-size: .85rem; color: var(--ink-faint); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--red-d); }

/* ---------- reveal animation (progressive enhancement) ---------- */
/* Without JS, content is fully visible. Only the .js flag opts into the hidden start state. */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { order: -1; max-width: 360px; }
  .paths, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .products { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 18px;
  }
  .ribbon__grid { grid-template-columns: 1fr 1fr; }
  .ribbon__item:nth-child(2) { border-right: 0; }
  .ribbon__item:nth-child(1), .ribbon__item:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .grid-3, .products { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .rung { grid-template-columns: 1fr auto; }
  .rung__tier { display: none; }
  .signup { flex-direction: column; }
  .signup input, .signup .btn { width: 100%; justify-content: center; }
}

/* ---------- page-per-topic additions ---------- */
.subhero--speak::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 85% 10%, rgba(214,162,74,.20), transparent 70%); }
.subhero--about::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 85% 10%, rgba(168,36,51,.13), transparent 70%); }
.paths--3 { grid-template-columns: repeat(3, 1fr); }
.path-card--speak .path-card__icon { background: rgba(214,162,74,.18); }
.path-card--speak { border-top: 4px solid var(--gold); }
.story-teaser { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.story-teaser__photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; object-position: top; border: 5px solid var(--white); box-shadow: var(--shadow-lg); }
.about-photo { width: 100%; border-radius: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: block; }
@media (max-width: 860px) {
  .paths--3 { grid-template-columns: 1fr; }
  .story-teaser { grid-template-columns: 1fr; text-align: center; }
  .story-teaser__photo { margin: 0 auto; }
}

/* ---------- speaking gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.gallery figure { margin: 0; }
.gallery .shot { aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--cream-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { font-size: .82rem; color: var(--ink-faint); margin-top: 8px; line-height: 1.4; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- page background wash ---------- */
.has-bg::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--pagebg); background-size: cover; background-position: center;
  opacity: var(--pagebg-opacity, .14);
}

/* ---------- about subhero with photo ---------- */
.subhero__grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 48px; align-items: center; }
.subhero__photo { width: 100%; max-width: 280px; justify-self: end; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: rotate(2deg); }
@media (max-width: 860px) { .subhero__grid { grid-template-columns: 1fr; } .subhero__photo { justify-self: center; max-width: 320px; } }

/* top-aligned split: short list starts level with tall text */
.split--top { align-items: stretch; }
.split--top .checklist { position: sticky; top: 96px; }

/* light outline button + paired CTAs on gradient bands */
.btn--outline-light { border-color: rgba(255,253,249,.55); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: rgba(255,253,249,.14); border-color: var(--white); }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- contact dialog ---------- */
.contact-dialog { border: 0; border-radius: 20px; padding: 0; max-width: 440px; width: calc(100% - 40px); box-shadow: var(--shadow-lg); background: var(--white); color: var(--ink); }
.contact-dialog::backdrop { background: rgba(33,30,46,.45); backdrop-filter: blur(3px); }
.contact-form { display: grid; gap: 12px; padding: 28px; position: relative; }
.contact-form h3 { margin: 0; }
.contact-sub { font-size: .92rem; color: var(--ink-faint); margin: 0 0 4px; }
.contact-form label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); display: grid; gap: 5px; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--cream);
  border: 1px solid var(--line); border-radius: 10px; padding: .6em .8em; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.contact-send { justify-self: start; }
.contact-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.6rem; color: var(--ink-faint); line-height: 1; }
.contact-close:hover { color: var(--ink); }
.contact-status { padding: 0 28px 24px; margin: 0; color: var(--sage-d); font-weight: 500; }
.contact-status:empty { display: none; }
