/* =====================================================
   HOMEPAGE v5 (TTB-521)
   Source: Claude Design "Homepage v5". Layout and copy follow the design;
   colors and fonts map to design-system/tokens.css.
   All selectors use the .ttb5- prefix and load on the front page only.
   ===================================================== */

.ttb5-sec {
  --ttb5-ink: var(--ttb-charcoal, #30352f);
  --ttb5-body: #454b44;
  --ttb5-muted: #666b65;
  --ttb5-forest: var(--ttb-forest, #2e4936);
  /* Darkened for 4.5:1+ contrast on the cream and white surfaces. */
  --ttb5-moss: #526747;
  --ttb5-paper: var(--ttb-warm-paper, #f4efe3);
  --ttb5-line: rgba(111, 130, 99, 0.4);
  --ttb5-head: var(--ttb-font-headings, 'Inter', system-ui, sans-serif);
  --ttb5-font: var(--ttb-font-body, 'Noto Sans', system-ui, sans-serif);

  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 64px);
  background: var(--ttb5-paper);
  color: var(--ttb5-ink);
  font-family: var(--ttb5-font);
}

.ttb5-sec *,
.ttb5-sec *::before,
.ttb5-sec *::after { box-sizing: border-box; }

.ttb5-sec--white { background: #fff; }
.ttb5-sec--tight { padding-top: clamp(56px, 8vw, 90px); padding-bottom: clamp(56px, 8vw, 90px); }
.ttb5-sec--flush-top { padding-top: clamp(40px, 6vw, 64px); padding-bottom: 0; }

.ttb5-inner { margin: 0 auto; max-width: 1100px; }
.ttb5-inner--wide { max-width: 1280px; }
.ttb5-inner--1200 { max-width: 1200px; }
.ttb5-inner--1000 { max-width: 1000px; }
.ttb5-inner--900 { max-width: 900px; }

.ttb5-sec a { color: var(--ttb5-forest); }
.ttb5-sec a:hover { color: var(--ttb5-moss); }

/* ── Type ── */
.ttb5-eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--ttb5-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ttb5-moss);
}

.ttb5-h1,
.ttb5-h2,
.ttb5-h3 {
  font-family: var(--ttb5-head);
  letter-spacing: -0.01em;
}

.ttb5-h1 {
  margin: 0 0 1.5rem;
  max-width: 560px;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ttb5-ink);
}

.ttb5-h1 span {
  text-decoration: none;
}

.ttb5-h2 {
  margin: 0 0 2.5rem;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ttb5-ink);
}

.ttb5-h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ttb5-forest);
}

.ttb5-sec p { line-height: 1.6; color: var(--ttb5-body); }

.ttb5-link {
  font-family: var(--ttb5-head);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}

/* ── Hero ── */
.ttb5-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}

.ttb5-hero__copy { min-width: 0; padding-bottom: clamp(24px, 4vw, 48px); }
.ttb5-hero__roles { margin: 0 0 1.5rem; font-family: var(--ttb5-head); font-size: 1.05rem; color: var(--ttb5-moss); }
.ttb5-hero__lede { max-width: 480px; margin: 0 0 2rem; font-size: 1.1rem; line-height: 1.65; }
.ttb5-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }

.ttb5-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--ttb5-forest);
  font-family: var(--ttb5-head);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.ttb5-sec a.ttb5-btn,
.ttb5-sec a.ttb5-btn:hover { color: #fff; }
.ttb5-btn:hover { background: #22372a; }

.ttb5-hero__secondary { text-decoration: underline; text-decoration-color: var(--ttb5-moss); }

/* Photo placeholders: replace with a core/image block when photography is ready. */
.ttb5-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  border: 1px dashed var(--ttb5-line);
  background: rgba(215, 224, 227, 0.4);
  color: var(--ttb5-muted);
  font-size: 0.9rem;
  text-align: center;
}

.ttb5-photo--portrait { aspect-ratio: 4 / 5; }
.ttb5-photo--wide { aspect-ratio: 4 / 3; background: #fff; }
.ttb5-photo--avatar { flex: none; width: 220px; height: 220px; margin-left: auto; margin-right: auto; padding: 0; border-radius: 10px; overflow: hidden; }

/* ── Credibility bar ── */
.ttb5-cred {
  margin-top: clamp(40px, 6vw, 64px);
  padding: 1.5rem clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--ttb5-line);
  border-bottom: 1px solid var(--ttb5-line);
  background: var(--ttb5-paper);
}

.ttb5-cred__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--ttb5-head);
}

.ttb5-cred__label { font-size: 0.95rem; color: var(--ttb5-moss); }
.ttb5-cred__item { font-size: 1rem; font-weight: 500; color: var(--ttb-charcoal, #30352f); }

/* ── Pathways ── */
.ttb5-path__head { max-width: 640px; margin-bottom: 2.75rem; }
.ttb5-path__head .ttb5-h2 { margin-bottom: 0.75rem; color: var(--ttb5-forest); }
.ttb5-path__head p { margin: 0; font-size: 1.02rem; }

.ttb5-path__row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--ttb5-line);
}

.ttb5-path__row:last-child { border-bottom: 1px solid var(--ttb5-line); }
.ttb5-path__num { margin: 0 0 0.4rem; font-family: var(--ttb5-head); font-size: 2rem; color: var(--ttb5-moss); }
.ttb5-path__title { margin: 0; font-family: var(--ttb5-head); font-size: 1.25rem; font-weight: 700; color: var(--ttb5-forest); }
.ttb5-path__body { max-width: 640px; }
.ttb5-path__body p { margin: 0 0 0.9rem; font-size: 0.98rem; }
.ttb5-path__body p.ttb5-path__audience { font-size: 0.88rem; color: var(--ttb5-muted); }
.ttb5-path__body p:last-of-type { margin-bottom: 1.1rem; }
.ttb5-path__body strong { color: var(--ttb5-forest); }
.ttb5-path__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

/* ── Testimonials ── */
.ttb5-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 2.5rem; align-items: stretch; }
.ttb5-quote { display: grid; grid-template-rows: auto 1fr auto; }
.ttb5-quote__text { margin: 0 0 1.25rem; font-size: 1.08rem; font-style: italic; line-height: 1.55; color: var(--ttb5-ink); }
.ttb5-quote__by { margin: 0 0 1rem; }
.ttb5-quote__name { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ttb5-forest); }
.ttb5-quote__role { display: block; font-size: 0.85rem; color: var(--ttb5-muted); }

/* ── In the field ── */
.ttb5-field { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 2rem; }
.ttb5-field .ttb5-photo { margin-bottom: 0.9rem; aspect-ratio: 4 / 5; }
.ttb5-field__cap { margin: 0; font-size: 0.92rem; font-style: italic; color: var(--ttb5-muted); }

/* ── Credentials ── */
.ttb5-creds { display: flex; flex-direction: column; }
.ttb5-creds__item { padding: 1.1rem 0; border-top: 1px solid var(--ttb5-line); }
.ttb5-creds__item:last-child { border-bottom: 1px solid var(--ttb5-line); }
.ttb5-creds__item p { margin: 0; font-size: 1rem; line-height: 1.65; }
.ttb5-creds__item strong { color: var(--ttb5-forest); }

/* ── Background ── */
.ttb5-bg { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); gap: 2.5rem; }
.ttb5-bg__stat { margin: 0; font-family: var(--ttb5-head); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--ttb5-moss); }
.ttb5-bg__stat-note { margin: 0.4rem 0 0; font-size: 0.9rem; font-style: italic; color: var(--ttb5-muted); }
.ttb5-bg .ttb5-h2 { margin-bottom: 1.25rem; }
.ttb5-bg__copy p { margin: 0 0 1.25rem; font-size: 1.05rem; line-height: 1.7; }
.ttb5-bg__copy p:last-child { margin-bottom: 0; }

/* ── Framework ── */
.ttb5-frame__head { max-width: 600px; margin-bottom: 3rem; }
.ttb5-frame__head .ttb5-h2 { margin: 0; font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.ttb5-frame { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 2.5rem; }
.ttb5-frame__num { margin: 0 0 0.5rem; font-family: var(--ttb5-head); font-size: 2.2rem; color: var(--ttb5-moss); }
.ttb5-frame .ttb5-h3 { margin-bottom: 0.5rem; }
.ttb5-frame p:last-child { margin: 0; font-size: 0.92rem; line-height: 1.55; }

/* ── Pricing and scope ── */
.ttb5-price {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  margin-bottom: 3.5rem;
  border-top: 1px solid var(--ttb5-line);
}

.ttb5-price__item { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--ttb5-line); }
.ttb5-price__item--full { grid-column: 1 / -1; }
.ttb5-price__name { display: block; margin-bottom: 0.5rem; font-family: var(--ttb5-head); font-size: 1.02rem; font-weight: 700; color: var(--ttb5-forest); }
.ttb5-price__item p { margin: 0 0 0.5rem; font-size: 0.92rem; line-height: 1.55; }
.ttb5-price__item p:last-child { margin-bottom: 0; }

.ttb5-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 2.5rem; }
.ttb5-fit .ttb5-h3 { margin-bottom: 0.9rem; font-size: 1.05rem; }
.ttb5-fit ul { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.ttb5-fit li { position: relative; padding-left: 1.1rem; font-size: 0.95rem; line-height: 1.5; color: var(--ttb5-body); }
.ttb5-fit li::before { content: '·'; position: absolute; left: 0; color: var(--ttb5-moss); }

/* ── Get started ── */
.ttb5-start { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.ttb5-start__card { display: flex; flex-direction: column; padding: 1.75rem; background: #fff; }
.ttb5-start__title { display: block; margin-bottom: 0.6rem; font-family: var(--ttb5-head); font-size: 1.05rem; font-weight: 700; color: var(--ttb5-forest); }
.ttb5-start__card p { margin: 0 0 1.1rem; font-size: 0.92rem; }
.ttb5-start__card .ttb5-link { margin-top: auto; }
.ttb5-start__contact { margin: 0; font-size: 0.92rem; }

/* ── Also from Tara ── */
.ttb5-also { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 2.5rem; }
.ttb5-also__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.ttb5-also__name { font-family: var(--ttb5-head); font-size: 1.25rem; font-weight: 700; color: var(--ttb5-forest); }
.ttb5-also__site { font-size: 0.85rem; color: var(--ttb5-muted); text-decoration: none; }
.ttb5-also__tag { display: block; margin-bottom: 0.75rem; font-size: 0.85rem; font-style: italic; color: var(--ttb5-muted); }
.ttb5-also p { margin: 0 0 1rem; font-size: 0.95rem; }

/* ── Latest insight (core/latest-posts) ── */
.ttb5-insight .wp-block-latest-posts { margin: 0; padding: 0; list-style: none; }
.ttb5-insight .wp-block-latest-posts > li {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
  align-items: center;
}
.ttb5-insight .wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ttb5-insight .wp-block-latest-posts__post-title { display: block; margin: 0.5rem 0 0.6rem; font-family: var(--ttb5-head); font-size: 1.4rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.ttb5-insight .wp-block-latest-posts__post-excerpt { margin: 0 0 0.9rem; font-size: 0.94rem; line-height: 1.55; color: var(--ttb5-body); }

/* ── Newsletter ── */
.ttb5-news { background: var(--ttb5-forest); text-align: center; }
.ttb5-news .ttb5-inner { max-width: 600px; }
.ttb5-news__eyebrow { display: block; font-family: var(--ttb5-head); font-size: 0.95rem; color: #c9d4bf; }
.ttb5-news .ttb5-h2 { margin: 0.85rem 0 1.1rem; font-size: clamp(1.9rem, 3.2vw, 2.5rem); color: #fff; }
.ttb5-news p.ttb5-news__lede { max-width: 460px; margin: 0 auto 1.75rem; font-size: 1.05rem; color: #e4eadd; }
.ttb5-news p.ttb5-news__fine { margin: 1.25rem 0 0; font-size: 0.82rem; color: #c9d4bf; }

/* ttb-cards.css hides every homepage .formkit-form outside .ttb-newsletter-sec.
   Re-show the v5 form and style it for the forest-green section. */
body.home .ttb5-sec.ttb5-news .formkit-form,
body.front-page .ttb5-sec.ttb5-news .formkit-form {
  display: block !important;
  max-width: 420px;
  margin: 0 auto;
}

.ttb5-news .formkit-fields {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.6rem !important;
  justify-content: center;
  margin: 0 !important;
}

.ttb5-news .formkit-field { flex: 1 1 220px !important; margin: 0 !important; }

.ttb5-news form input.formkit-input {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
}

.ttb5-news form input.formkit-input::placeholder { color: rgba(255, 255, 255, 0.7) !important; }

.ttb5-news form button.formkit-submit {
  margin: 0 !important;
  padding: 0.75rem 1.4rem !important;
  border: none !important;
  border-radius: 8px !important;
  background: var(--ttb5-paper) !important;
  color: var(--ttb5-forest) !important;
  font-family: var(--ttb5-head) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.ttb5-news form button.formkit-submit:hover { background: #fff !important; }
.ttb5-news .formkit-spinner { display: none !important; }
.ttb5-news .formkit-alert:empty { display: none !important; }
.ttb5-news .formkit-alert { margin: 0 auto 1rem !important; color: #fff; list-style: none; }

/* ── Small screens ── */
@media (max-width: 640px) {
  .ttb5-path__row { grid-template-columns: 1fr; gap: 1rem; }
  .ttb5-bg { grid-template-columns: 1fr; gap: 1.5rem; }
}
