/* ============================================================
   Safe Steps Together — site stylesheet
   Brand foundations:
     - Primary teal      #1F5258   (deep teal — updated from #2C7A7B)
     - Primary deep      #103D45   (hover/dark)
     - Coral accent      #E76F51
     - Coral soft        #FFD7CB
     - Ink (text)        #1F2D3D
     - Slate (sub-text)  #4A5A6B
     - Cream / page bg   #FBF8F4
     - Snow / cards      #FFFFFF
     - Hairline          #E7E1D7
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --teal:        #1F5258;
  --teal-deep:   #103D45;
  --teal-soft:   #DCEAEA;
  --coral:       #E76F51;
  --coral-deep:  #C45438;
  --coral-soft:  #FFD7CB;
  --ink:         #1F2D3D;
  --slate:       #4A5A6B;
  --slate-soft:  #76828F;
  --cream:       #FBF8F4;
  --snow:        #FFFFFF;
  --hairline:    #E7E1D7;
  --shadow-sm:   0 1px 2px rgba(31, 45, 61, 0.06);
  --shadow-md:   0 6px 20px rgba(31, 45, 61, 0.08);
  --shadow-lg:   0 16px 40px rgba(31, 45, 61, 0.10);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --container:   1140px;
  --serif:  'Lora', 'Source Serif Pro', Georgia, serif;
  --sans:   'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0 0 .5em; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 3rem 0; }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal);
  margin: 0 0 1rem;
}

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--cream { background: var(--cream); }
.section--snow  { background: var(--snow); }
.section--teal  { background: var(--teal); color: var(--snow); }
.section--teal h1, .section--teal h2, .section--teal h3 { color: var(--snow); }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-link img { height: 44px; width: auto; }
.brand-link .brand-text { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--ink); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .98rem; text-decoration: none; }
.nav a:hover { color: var(--teal); }
.nav .nav-cta {
  background: var(--coral); color: var(--snow); padding: 10px 18px;
  border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.nav .nav-cta:hover { background: var(--coral-deep); color: var(--snow); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: 76px;
    background: var(--cream); padding: 18px 24px 24px; gap: 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-toggle {
    display: inline-flex; background: transparent; border: 1px solid var(--hairline);
    padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--ink);
    font-family: var(--sans); font-weight: 500;
  }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; font-family: var(--sans); font-weight: 600;
  font-size: 1rem; padding: 14px 24px; border-radius: 999px;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: var(--shadow-sm);
}
.btn--primary { background: var(--coral); color: var(--snow); }
.btn--primary:hover { background: var(--coral-deep); color: var(--snow); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--teal); box-shadow: none; padding-left: 0; padding-right: 0; }
.btn--secondary::after { content: " →"; }
.btn--teal { background: var(--teal); color: var(--snow); }
.btn--teal:hover { background: var(--teal-deep); color: var(--snow); transform: translateY(-1px); }
.btn--ghost { background: var(--snow); color: var(--ink); border: 1px solid var(--hairline); }
.btn--ghost:hover { background: var(--cream); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(231, 111, 81, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(31, 82, 88, 0.12), transparent 60%),
    var(--cream);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero h1 .accent { color: var(--coral); font-style: italic; }
.hero p.lede { font-size: 1.18rem; color: var(--slate); max-width: 56ch; }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.hero-trust {
  margin-top: 36px; font-size: .92rem; color: var(--slate-soft);
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
}
.hero-trust strong { color: var(--ink); font-weight: 600; }
.hero-art {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #DBE9E8 0%, #F4E0D8 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 480px; margin: 0 auto; }
}

/* Section heading */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--slate); font-size: 1.08rem; }

/* Three-up feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--snow); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); padding: 32px;
  box-shadow: var(--shadow-sm);
}
.feature .feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-soft); display: grid; place-items: center;
  margin-bottom: 18px; color: var(--teal);
}
.feature h3 { margin-top: 0; }
.feature p { color: var(--slate); margin-bottom: 0; }

/* Path cards (Start Here block) */
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .path-grid { grid-template-columns: 1fr; } }
.path-card {
  background: var(--snow); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none; color: inherit;
}
.path-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
.path-card .path-time {
  font-size: .82rem; color: var(--coral); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.path-card h3 { font-size: 1.32rem; margin: 0; }
.path-card p { color: var(--slate); margin: 0; }
.path-card .read { color: var(--teal); font-weight: 600; margin-top: auto; padding-top: 12px; }
.path-card .read::after { content: " →"; }

/* Lead magnet capture */
.lead-magnet {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--snow); border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden;
}
.lead-magnet::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(231,111,81,.40), transparent 70%);
}
.lead-magnet h2 { color: var(--snow); }
.lead-magnet p { color: rgba(255,255,255,.90); max-width: 56ch; }
.lead-magnet form {
  display: flex; gap: 12px; max-width: 540px; margin-top: 24px; flex-wrap: wrap;
}
.lead-magnet input[type=email] {
  flex: 1 1 280px; padding: 14px 18px; border: 0; border-radius: 999px;
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--snow);
}
.lead-magnet small { display: block; margin-top: 14px; color: rgba(255,255,255,.80); font-size: .88rem; }

/* Article cards / latest */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .card-grid { grid-template-columns: 1fr; } }
.article-card {
  background: var(--snow); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
.article-card .card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--teal-soft), var(--coral-soft));
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.4rem; color: var(--teal-deep); font-weight: 600;
  padding: 24px; text-align: center;
}
.article-card .card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.article-card .tag {
  font-size: .78rem; color: var(--teal); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.article-card h3 { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.article-card p { color: var(--slate); margin: 0; font-size: .96rem; }

/* Membership soft pitch */
.membership-strip {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: var(--snow); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
}
@media (max-width: 880px) { .membership-strip { grid-template-columns: 1fr; } }
.membership-strip h2 { margin-top: 0; }
.membership-strip ul {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px;
}
.membership-strip li {
  position: relative; padding-left: 28px; color: var(--slate);
}
.membership-strip li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px;
  background: var(--coral-soft); border-radius: 50%;
}
.membership-strip li::after {
  content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 4px;
  border-left: 2px solid var(--coral-deep); border-bottom: 2px solid var(--coral-deep);
  transform: rotate(-45deg); border-radius: 1px;
}

/* About strip */
.about-strip {
  background: var(--snow); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
  text-align: center; max-width: 880px; margin: 0 auto;
}
.about-strip h2 { margin-top: 0; }
.about-strip p { color: var(--slate); font-size: 1.04rem; }

/* Disclosure / trust strip */
.trust-line { background: var(--cream); }
.trust-line p { max-width: 760px; margin: 0 auto; color: var(--slate); font-size: .94rem; text-align: center; }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.78);
  padding: 64px 0 28px;
}
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--coral-soft); text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.10);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: rgba(255,255,255,.70); font-size: .96rem; }
.footer-col h4 {
  color: var(--snow); font-family: var(--sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: .86rem; color: rgba(255,255,255,.60);
}

/* Article (long-form) */
.article-shell { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px; }
.article-shell .meta {
  font-size: .92rem; color: var(--slate); margin-bottom: 12px;
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
.article-shell .meta .tag { color: var(--teal); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.article-shell h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.article-shell .lede { font-size: 1.18rem; color: var(--slate); }
.article-body { font-size: 1.06rem; line-height: 1.75; }
.article-body h2 { margin-top: 2.2em; }
.article-body h3 { margin-top: 1.8em; }
.article-body blockquote {
  border-left: 4px solid var(--coral); margin: 1.5em 0; padding: .25em 1.25em;
  color: var(--ink); font-family: var(--serif); font-size: 1.18rem; font-style: italic;
}
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-bottom: .35em; }
.callout {
  background: var(--teal-soft); border-radius: var(--radius-md);
  padding: 22px 24px; margin: 1.6em 0;
  border-left: 4px solid var(--teal);
}
.callout strong { color: var(--teal-deep); }

/* Page hero (smaller, for inner pages) */
.page-hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 5vw, 56px);
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(231,111,81,.10), transparent 60%),
    var(--cream);
  text-align: center;
}
.page-hero p.lede { color: var(--slate); font-size: 1.14rem; max-width: 56ch; margin: 0 auto; }

/* Forms */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label { font-weight: 600; font-size: .92rem; }
.form-row input, .form-row textarea {
  font-family: var(--sans); font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: 10px; background: var(--snow); color: var(--ink);
}
.form-row textarea { min-height: 140px; resize: vertical; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.muted { color: var(--slate); }
.divider-soft { height: 1px; background: var(--hairline); margin: 4rem 0; border: 0; }

/* Skip link for accessibility */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--snow);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
