/*
Theme Name: Hope Springs House
Author: ChatGPT
Version: 1.1
*/

/* =========================================================
   Hope Springs House Shared Stylesheet
   A warm, nurturing visual system for a children's
   residential care & therapeutic services provider.
   ========================================================= */

:root {
  /* Palette */
  --forest:        #2F4A3E;   /* deep grounding green */
  --sage:          #6B9080;   /* primary brand green */
  --sage-light:    #A4C3B2;   /* soft accent green */
  --cream:         #FBF6EE;   /* warm background */
  --cream-deep:    #F3EAD9;   /* secondary background */
  --sand:          #EADFC8;   /* border / divider tone */
  --terracotta:    #D97B5C;   /* warm accent / CTA */
  --terracotta-dk: #BD6247;
  --sky:           #7FA6A6;   /* soft blue-green accent */
  --ink:           #2B332E;   /* primary text */
  --ink-soft:      #5B6660;   /* secondary text */
  --white:         #FFFFFF;

  /* Type */
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing / radius / shadow */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(47, 74, 62, 0.08);
  --shadow-md: 0 12px 32px rgba(47, 74, 62, 0.12);
  --shadow-lg: 0 20px 50px rgba(47, 74, 62, 0.16);
  --container: 1160px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--forest);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--terracotta-dk);
  background: rgba(217, 123, 92, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: "✦"; font-size: 0.8em; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--cream-deep { background: var(--cream-deep); }
.section--forest {
  background: var(--forest);
  color: var(--white);
}
.section--forest h2, .section--forest h3 { color: var(--white); }
.section--forest p { color: rgba(255,255,255,0.78); }
.text-center { text-align: center; }
.max-w { max-width: 680px; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--terracotta-dk); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn--ghost:hover { background: var(--forest); color: var(--white); transform: translateY(-2px); }
.btn--on-dark {
  background: var(--white);
  color: var(--forest);
}
.btn--on-dark:hover { background: var(--sage-light); transform: translateY(-2px); }
.btn--on-dark-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn--on-dark-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--forest);
  font-weight: 600;
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage) 0%, var(--forest) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__links a:hover { background: var(--cream-deep); color: var(--forest); }
.nav__links a.active { background: var(--forest); color: var(--white); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest);
  display: none;
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .brand { font-size: 0.92rem; gap: 7px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__mark svg { width: 17px; height: 17px; }
  .brand small { font-size: 0.5rem; }
  .nav__cta { gap: 8px; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { text-align: center; }
  .nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
  background:
    radial-gradient(circle at 85% 15%, rgba(164, 195, 178, 0.45), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(217, 123, 92, 0.18), transparent 45%),
    var(--cream);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--forest);
}
.hero__stat span { font-size: 0.85rem; color: var(--ink-soft); }
.hero__art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.hero__badge-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero__badge strong { display: block; font-size: 0.92rem; color: var(--forest); }
.hero__badge span { font-size: 0.8rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; aspect-ratio: 16/10; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(circle at 90% 10%, rgba(164, 195, 178, 0.5), transparent 50%),
    var(--forest);
  color: var(--white);
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.8); }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--sage-light); font-weight: 600; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47,74,62,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }

/* Category / service cards */
.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47,74,62,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card__top {
  padding: 30px 30px 0;
}
.cat-card__num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta-dk);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.cat-card__body { padding: 10px 30px 30px; flex: 1; display: flex; flex-direction: column; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--forest);
  letter-spacing: 0.02em;
}
.tag--warm { background: rgba(217,123,92,0.14); color: var(--terracotta-dk); }
.cat-card__link {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 700;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Full service detail blocks ---------- */
.service-block {
  padding: 72px 0;
  border-bottom: 1px solid var(--sand);
}
.service-block:last-of-type { border-bottom: none; }
.service-block__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.service-block__grid.reverse { direction: rtl; }
.service-block__grid.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .service-block__grid { grid-template-columns: 1fr; }
}
.stat-strip {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--cream-deep);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 22px 0;
}
.stat-strip__item strong {
  display: block;
  font-family: var(--font-head);
  color: var(--forest);
  font-size: 1.3rem;
}
.stat-strip__item span { font-size: 0.8rem; color: var(--ink-soft); }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.check-list li svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Quote / testimonial ---------- */
.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--terracotta);
}
.quote-card p { font-family: var(--font-head); font-size: 1.25rem; color: var(--forest); font-style: italic; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Timeline / process ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }
.timeline__step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.timeline__step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--forest);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ---------- Info / contact cards ---------- */
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--sand);
}
.info-card:last-child { border-bottom: none; }
.info-card__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-card strong { display: block; color: var(--forest); margin-bottom: 4px; }
.info-card span { color: var(--ink-soft); font-size: 0.94rem; }

.placeholder-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(217,123,92,0.1);
  border: 1px dashed var(--terracotta);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.84rem;
  color: var(--terracotta-dk);
  margin-top: 10px;
}

/* ---------- Map placeholder ---------- */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--sage-light), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  font-weight: 700;
  position: relative;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(164,195,178,0.35), transparent 55%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 14px;
}
.footer__brand svg { width: 19px; height: 19px; }
.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__grid a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease;
  font-size: 0.94rem;
}
.footer__grid a:hover { color: var(--sage-light); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.82rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* WordPress content support */
.page-content { max-width: 900px; }
.page-content > * { max-width: 100%; }
.page-content h2, .page-content h3 { margin-top: 1.5em; }
.page-content ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1.2rem; }
.page-content ol { padding-left: 1.4rem; }
.alignwide { max-width: 1160px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
