/* Bright Future Family Counseling — warm, calm, mobile-first */

:root {
  --cream: #fffbf4;
  --paper: #ffffff;
  --sand: #f6ebdd;
  --sunrise: #fff3c4;
  --gold: #f0a03a;
  --orange: #e86e0c;
  --terracotta: #c24b1a;
  --clay: #8e3514;
  --ink: #1c140e;
  --ink-soft: #3d3229;
  --muted: #5c4d40;
  --line: #e5d3c0;
  --focus: #8e3514;
  --shadow: 0 12px 40px rgba(80, 36, 8, 0.08);
  --radius: 18px;
  --header-h: 4.5rem;
  --measure: 40rem;
  --wide: 70rem;
  --font-serif: "Libre Baskerville", "Iowan Old Style", Palatino, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--clay);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--terracotta);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(calc(100% - 2rem), var(--wide));
  margin-inline: auto;
}

.prose {
  width: min(100%, var(--measure));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 244, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(calc(100% - 1.5rem), var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.brand img {
  width: 4.4rem;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: none;
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 640px) {
  .brand-text { display: flex; }
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  border-radius: 999px;
  white-space: nowrap;
}

.header-call:hover {
  background: var(--clay);
  color: #fff;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.35rem 0.75rem 0.9rem;
}

.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: min(calc(100% - 0.5rem), var(--wide));
}

.site-nav a {
  display: flex;
  align-items: center;
  padding: 0.85rem 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--sand);
  min-height: 2.75rem;
}

.site-nav a[aria-current="page"] {
  color: var(--terracotta);
}

.site-nav a:hover {
  color: var(--terracotta);
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .header-inner {
    gap: 1.25rem;
  }

  .brand {
    flex: 0 0 auto;
    max-width: 24rem;
  }

  .brand img {
    width: 5.1rem;
  }

  .header-call {
    margin-left: auto;
    padding-inline: 1.05rem;
  }

  .site-nav {
    display: block;
    background: var(--clay);
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem;
    min-height: 2.85rem;
  }

  .site-nav a {
    padding: 0.55rem 0.72rem;
    border: 0;
    font-size: 0.92rem;
    min-height: 2.85rem;
    color: #fff6ea;
    font-weight: 650;
  }

  .site-nav a[aria-current="page"],
  .site-nav a:hover {
    color: #ffe08a;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 0 3rem;
  background:
    radial-gradient(120% 90% at 50% 110%, #ffcf70 0%, #ffb347 28%, transparent 62%),
    linear-gradient(180deg, #fff7e4 0%, var(--cream) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -42vw;
  width: 140vw;
  height: 70vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #fff9c4 0%, #ffcc66 42%, #e86e0c 100%);
  opacity: 0.22;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.hero-logo {
  width: min(18.5rem, 82vw);
  filter: drop-shadow(0 10px 24px rgba(142, 53, 20, 0.12));
}

@media (min-width: 720px) {
  .hero-logo { width: min(22rem, 86vw); }
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 5vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
  max-width: 18ch;
}

.lede {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: var(--ink-soft);
  max-width: 28rem;
}

.sublede {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--clay);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--clay);
  border-color: var(--terracotta);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--clay);
}

/* Page intro (inner pages) */

.page-hero {
  padding: 2rem 0 1.5rem;
  background:
    radial-gradient(80% 120% at 100% 0%, #ffe7b8 0%, transparent 55%),
    linear-gradient(180deg, #fff6e6, var(--cream));
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.2;
}

.page-hero .lede {
  text-align: left;
}

/* Sections */

.section {
  padding: 2.75rem 0;
}

.section-alt {
  background: var(--sand);
}

.section h2,
.card h2,
.card h3 {
  font-family: var(--font-serif);
  line-height: 1.25;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.section p,
.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.center {
  text-align: center;
}

.center .prose,
.center > p,
.center > h2 {
  margin-inline: auto;
}

/* Cards */

.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.45rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

a.card:hover {
  border-color: #d7b089;
  box-shadow: var(--shadow);
  color: inherit;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), var(--terracotta));
}

.card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 700;
  color: var(--terracotta);
}

@media (min-width: 720px) {
  .card-grid.cols-2,
  .card-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Quote */

.pull {
  margin: 1.5rem 0;
  padding: 1rem 0 1rem 1.1rem;
  border-left: 4px solid var(--orange);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* Topic groups */

.topic {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
}

.topic h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.topic ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.resource-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.org-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.org-links a {
  font-weight: 700;
}

/* Forms */

.form {
  display: grid;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
}

.req {
  color: var(--terracotta);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: inherit;
  background: var(--cream);
  border: 1px solid #d8c4ae;
  border-radius: 10px;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  width: 100%;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-notice,
.callout {
  background: #fff6e4;
  border: 1px solid #efd3a6;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.callout-urgent {
  background: #fff1e8;
  border-color: #e8b39a;
}

.form-success {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.form-success.is-visible {
  display: block;
}

.prepared-note {
  white-space: pre-wrap;
  background: var(--cream);
  border-radius: 10px;
  padding: 0.9rem;
  font-size: 0.98rem;
}

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, #8e3514 0%, #c24b1a 48%, #e08628 100%);
  color: #fff8ee;
  padding: 2.4rem 0;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  color: #fff;
}

.cta-band p {
  margin: 0 auto 1.1rem;
  max-width: 34rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--clay);
}

.cta-band .btn-primary:hover {
  background: var(--sunrise);
  color: var(--ink);
}

.cta-band a:not(.btn) {
  color: #fff;
}

/* Footer */

.site-footer {
  background: #1c140e;
  color: #f4e6d4;
  padding: 2.2rem 0 6.5rem;
}

@media (min-width: 720px) {
  .site-footer {
    padding-bottom: 2.2rem;
  }
}

.footer-inner {
  display: grid;
  gap: 1.1rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
}

.site-footer a {
  color: #ffd59a;
}

.site-footer .fine {
  color: #cbb8a4;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.footer-nav a {
  text-decoration: none;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.crisis {
  border-top: 1px solid #3a2c20;
  padding-top: 1rem;
  font-size: 0.95rem;
  color: #d9c7b2;
}

/* Mobile call dock */

.call-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(28, 20, 14, 0.94);
  display: flex;
  justify-content: center;
}

.call-dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: min(100%, 28rem);
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  border-radius: 999px;
}

@media (min-width: 720px) {
  .call-dock { display: none; }
}

/* Utilities */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.stack > * + * {
  margin-top: 1rem;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: start;
  }
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meta-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.meta-list strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 0.85rem 0 0.85rem 3.1rem;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffcc66, var(--terracotta));
  color: #fff;
  font-weight: 750;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
