/* =========================================================================
   Therapist for Dads — Shared Stylesheet
   Edit color values, fonts, and section padding here once;
   every page on the site updates together.
   ========================================================================= */

:root {
  /* Brand palette — change a hex value here, the whole site changes */
  --navy:   #1D3557;
  --terra:  #B45B3E;
  --terra-dark: #9a4a30;
  --sage:   #5F7E63;
  --cream:  #F7F2E9;
  --ink:    #2A2A2A;
  --stone:  #6E6A62;
  --rule:   #D8CFC0;
  --block:  #F1ECE2;
  --white:  #FFFFFF;
  --navy-soft: #C9D4E0;

  /* Spacing scale */
  --gutter:   24px;
  --section:  96px;
  --max:      1180px;

  /* Type */
  --serif: Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--terra-dark); text-decoration: underline; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.4rem; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
}
.subhead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--stone);
  line-height: 1.55;
}

/* Containers and sections */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .subhead { color: #E9E2D2; }

/* Buttons (Terracotta is the only button color on this site) */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}
.btn--primary   { background: var(--terra); color: var(--white); }
.btn--primary:hover { background: var(--terra-dark); color: var(--white); text-decoration: none; }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.btn--on-navy-primary { background: var(--terra); color: var(--white); }
.btn--on-navy-primary:hover { background: var(--terra-dark); color: var(--white); }
.btn--on-navy-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn--on-navy-secondary:hover { background: var(--white); color: var(--navy); }

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

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.nav__brand:hover { color: var(--navy); text-decoration: none; }
.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__links a:hover { color: var(--terra); text-decoration: none; }
.nav__cta { margin-left: 12px; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
  font-size: 1.5rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--cream);
  padding: var(--section) 0 calc(var(--section) + 16px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__title { margin: 16px 0 20px; }
.hero__sub   { margin-bottom: 28px; max-width: 540px; }
.hero__photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px -16px rgba(29, 53, 87, 0.25);
  justify-self: end;
  background: linear-gradient(135deg, var(--sage), var(--navy));
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Card grid (3 cards on home, can be 2 or 4 on other pages)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(29, 53, 87, 0.15); }
.card__icon {
  width: 36px;
  height: 36px;
  background: var(--terra);
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
}
.card__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  border: 2px solid var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.card h3 { margin-bottom: 10px; }
.card p  { color: var(--ink); margin-bottom: 18px; }
.card__link { color: var(--terra); font-weight: 700; font-size: 0.95rem; }

/* ============================================================
   Credentials strip
   ============================================================ */
.creds {
  background: var(--navy);
  padding: 32px 0;
}
.creds__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #E9E2D2;
  text-transform: uppercase;
  font-weight: 600;
}
.creds__item { padding: 0 8px; }
.creds__sep { color: var(--navy-soft); opacity: 0.6; }

/* ============================================================
   About teaser / two-column block
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.about-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px -16px rgba(29, 53, 87, 0.2);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { max-width: 580px; }
.about-text h2 { margin: 14px 0 18px; }
.about-text p  { margin-bottom: 14px; }

/* ============================================================
   CTA band (navy)
   ============================================================ */
.cta-band {
  background: var(--navy);
  padding: 110px 0;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin: 16px 0 20px; }
.cta-band__sub {
  color: #E9E2D2;
  max-width: 580px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* ============================================================
   Numbered steps (used on Coaching page)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.step {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 32px;
}
.step__num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 { margin-bottom: 10px; }
.step p  { color: var(--ink); }

/* ============================================================
   Forms
   ============================================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
}
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.form__input, .form__select, .form__textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--terra);
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__help { font-size: 0.85rem; color: var(--stone); }
.form__submit { align-self: flex-start; margin-top: 8px; }

/* Free-resources signup is a compact two-field inline form */
.signup-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 620px;
}
.signup-form input {
  flex: 1 1 280px;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
}
.signup-form input:focus { outline: none; border-color: var(--terra); }
.signup-form button { flex: 0 0 auto; }

/* Honeypot field (anti-spam) */
.honeypot { position: absolute; left: -5000px; opacity: 0; }

/* ============================================================
   Crisis / disclaimer block
   ============================================================ */
.disclaimer-block {
  background: var(--navy);
  color: #E9E2D2;
  padding: 28px 32px;
  border-radius: 12px;
  border-left: 4px solid var(--terra);
  font-size: 0.92rem;
  line-height: 1.6;
}
.disclaimer-block strong { color: var(--white); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy);
  color: #E9E2D2;
  padding: 64px 0 40px;
  font-size: 0.92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 40px;
}
.footer__brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}
.footer__brand:hover { color: var(--white); text-decoration: none; }
.footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__links a { color: #E9E2D2; font-size: 0.92rem; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }
.footer__compliance {
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--navy-soft);
}

/* ============================================================
   Generic content sections (used on About, Coaching pages)
   ============================================================ */
.prose { max-width: 720px; }
.prose p { margin-bottom: 18px; font-size: 1.05rem; line-height: 1.75; }
.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose ul { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 10px; }

.intro-block { max-width: 780px; margin: 0 auto; text-align: center; }
.intro-block .eyebrow { display: inline-block; margin-bottom: 12px; }
.intro-block h1 { margin-bottom: 20px; }
.intro-block p { font-size: 1.15rem; color: var(--stone); line-height: 1.7; }

/* ============================================================
   Resource cards (for free-resources page)
   ============================================================ */
.resource-card {
  background: var(--cream);
  border-left: 4px solid var(--sage);
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.resource-card h3 { color: var(--navy); margin-bottom: 10px; }
.resource-card p  { color: var(--ink); margin-bottom: 18px; }

/* ============================================================
   Responsive — single mobile breakpoint
   ============================================================ */
@media (max-width: 860px) {
  :root { --section: 64px; --gutter: 20px; }

  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px var(--gutter);
    border-bottom: 1px solid var(--rule);
    gap: 16px;
  }
  .nav__links.is-open { display: flex; }
  .nav__cta { margin-left: 0; }

  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__photo { max-width: 320px; justify-self: center; }

  .cards, .cards--2, .steps { grid-template-columns: 1fr; gap: 20px; }

  .creds__row { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
  .creds__sep { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { justify-self: center; max-width: 280px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .signup-form { flex-direction: column; }
}
