/* Wellbeing by Design -- shared site stylesheet */

:root {
  --bg: #F7F4EF;
  --bg-card: #FFFFFF;
  --ink: #2B2730;
  --muted: #6E6A75;
  --rule: #E3DDD3;

  --foundational: #2C4167;
  --psychological: #375071;
  --intellectual: #5D9AAE;
  --physical: #A6CFCA;
  --familial: #F8D3C9;
  --social: #F3BBB2;
  --professional: #D87979;
  --financial: #CF6765;

  --max-width: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, .serif {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

a { color: inherit; }

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

/* ---------- NAV ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-bar { display: flex; gap: 2px; }

.logo-bar span {
  width: 4px;
  height: 14px;
  display: inline-block;
  border-radius: 1px;
}

.logo-bar span:nth-child(1) { background: var(--foundational); }
.logo-bar span:nth-child(2) { background: var(--psychological); }
.logo-bar span:nth-child(3) { background: var(--intellectual); }
.logo-bar span:nth-child(4) { background: var(--physical); }
.logo-bar span:nth-child(5) { background: var(--familial); }
.logo-bar span:nth-child(6) { background: var(--social); }
.logo-bar span:nth-child(7) { background: var(--professional); }
.logo-bar span:nth-child(8) { background: var(--financial); }

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 15px;
  flex-wrap: wrap;
}

nav a { text-decoration: none; }
nav a:hover { color: var(--foundational); }

.nav-current { border-bottom: 2px solid var(--foundational); padding-bottom: 4px; }

/* ---------- PAGE HEADER (non-home pages) ---------- */
.page-header {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}

.page-header .eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: 42px;
  line-height: 1.2;
  max-width: 720px;
  margin: 0 auto 22px;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

/* ---------- HERO (home only) ---------- */
.hero { padding: 100px 0 90px; text-align: center; }

.hero h1 {
  font-size: 50px;
  line-height: 1.18;
  max-width: 780px;
  margin: 0 auto 28px;
  font-weight: 500;
}

.hero > .wrap > p {
  max-width: 600px;
  margin: 0 auto 44px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--ink);
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}

.btn-primary {
  background: var(--foundational);
  border-color: var(--foundational);
  color: #fff;
}

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

.btn:hover { opacity: 0.85; }

/* ---------- STRUCTURE BAR (signature element) ---------- */
.structure-bar {
  display: flex;
  max-width: 780px;
  margin: 56px auto 0;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.structure-bar div {
  flex: 1;
  opacity: 0;
  transform: translateY(6px);
  animation: settle 0.6s ease forwards;
}

.structure-bar div:nth-child(1) { background: var(--foundational); animation-delay: 0.05s; }
.structure-bar div:nth-child(2) { background: var(--psychological); animation-delay: 0.12s; }
.structure-bar div:nth-child(3) { background: var(--intellectual); animation-delay: 0.19s; }
.structure-bar div:nth-child(4) { background: var(--physical); animation-delay: 0.26s; }
.structure-bar div:nth-child(5) { background: var(--familial); animation-delay: 0.33s; }
.structure-bar div:nth-child(6) { background: var(--social); animation-delay: 0.40s; }
.structure-bar div:nth-child(7) { background: var(--professional); animation-delay: 0.47s; }
.structure-bar div:nth-child(8) { background: var(--financial); animation-delay: 0.54s; }

@keyframes settle { to { opacity: 1; transform: translateY(0); } }

.structure-bar.small { max-width: 320px; height: 6px; margin: 32px auto 0; }

.structure-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- PROBLEM / STATEMENT BLOCK ---------- */
.problem {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.problem .wrap { max-width: 720px; text-align: center; }

.problem p { font-size: 19px; line-height: 1.7; }

.problem p.lead { color: var(--muted); margin-bottom: 24px; }

.problem p.punch {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- EIGHT DIMENSIONS GRID ---------- */
.eight { padding: 100px 0; text-align: center; }

.eight .eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.eight h2 { font-size: 36px; max-width: 620px; margin: 0 auto 24px; }

.eight > .wrap > p.lede {
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--muted);
  font-size: 17px;
}

.dims {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 50px;
  text-align: left;
}

.dim-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px 16px;
  position: relative;
  overflow: hidden;
}

.dim-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}

.dim-card:nth-child(1)::before { background: var(--foundational); }
.dim-card:nth-child(2)::before { background: var(--psychological); }
.dim-card:nth-child(3)::before { background: var(--intellectual); }
.dim-card:nth-child(4)::before { background: var(--physical); }
.dim-card:nth-child(5)::before { background: var(--familial); }
.dim-card:nth-child(6)::before { background: var(--social); }
.dim-card:nth-child(7)::before { background: var(--professional); }
.dim-card:nth-child(8)::before { background: var(--financial); }

.dim-card .num { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: block; }
.dim-card .name { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 500; display: block; margin-bottom: 6px; }
.dim-card .desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- THREE WAYS / FEATURE COLUMNS ---------- */
.ways {
  padding: 90px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.ways h2 { text-align: center; font-size: 32px; margin-bottom: 56px; }

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.way h3 { font-size: 21px; margin-bottom: 12px; }
.way p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.way a { font-size: 14px; font-weight: 600; color: var(--foundational); text-decoration: none; }
.way a:hover { text-decoration: underline; }

/* ---------- GENERIC CONTENT SECTION (About, Book, etc) ---------- */
.content-section { padding: 80px 0; }
.content-section.bordered { border-top: 1px solid var(--rule); }
.content-section .wrap { max-width: 680px; }
.content-section p { margin-bottom: 24px; font-size: 17.5px; line-height: 1.75; }
.content-section p:last-of-type { margin-bottom: 0; }
.content-section h2 { font-size: 28px; margin-bottom: 24px; }
.content-section h3 { font-size: 20px; margin-top: 36px; margin-bottom: 14px; }

.signature-line {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 19px;
  margin: 32px 0;
}

/* ---------- DEFINITION LIST (Book page dimensions) ---------- */
.dim-list { margin: 32px 0; }
.dim-list-item {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.dim-list-item:last-child { border-bottom: none; }
.dim-list-item .swatch {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.dim-list-item strong { font-family: 'Fraunces', serif; font-weight: 500; font-size: 17px; }
.dim-list-item span.role { color: var(--muted); font-size: 16px; }

/* ---------- CALLOUT BOX ---------- */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--foundational);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 36px 0;
}
.callout p { margin-bottom: 0; font-size: 16.5px; }
.callout p + p { margin-top: 14px; }

/* ---------- BULLET LIST (Companion Guide etc) ---------- */
.feature-list { list-style: none; margin: 28px 0; }
.feature-list li {
  padding: 14px 0 14px 28px;
  position: relative;
  border-bottom: 1px solid var(--rule);
  font-size: 16.5px;
  color: var(--ink);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--foundational);
}

/* ---------- WORKSHOP/RETREAT CARDS ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 40px 0;
}
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 32px;
}
.offer-card h3 { font-size: 22px; margin-bottom: 14px; }
.offer-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }

/* ---------- SELF-CHECK / CENTERED CTA SECTION ---------- */
.centered-cta { padding: 90px 0; text-align: center; }
.centered-cta h1, .centered-cta h2 { font-size: 34px; margin-bottom: 18px; max-width: 600px; margin-left: auto; margin-right: auto; }
.centered-cta p { color: var(--muted); max-width: 480px; margin: 0 auto 32px; font-size: 17px; }

/* ---------- NEWSLETTER / SIGNUP ---------- */
.newsletter { padding: 90px 0; text-align: center; }
.newsletter h2 { font-size: 30px; margin-bottom: 14px; }
.newsletter p { color: var(--muted); max-width: 480px; margin: 0 auto 32px; }

.signup {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.signup input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}

/* ---------- CONTACT ---------- */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 15px;
}
.contact-links a { text-decoration: none; color: var(--foundational); }
.contact-links a:hover { text-decoration: underline; }

.contact-form {
  max-width: 480px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.contact-form label { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--foundational); }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .dims { grid-template-columns: repeat(2, 1fr); }
  .ways-grid { grid-template-columns: 1fr; gap: 44px; }
  .offer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .page-header h1 { font-size: 32px; }
  nav ul { gap: 18px; font-size: 14px; }
}

@media (max-width: 540px) {
  .dims { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .structure-caption { font-size: 11px; }
}
