/* ==========================================================================
   Template: "Haven" — healthcare / group-home starter
   Style lineage: mimics Squarespace "Almar" (Fluid family) —
   Poppins type, flat/no-radius UI, full-bleed alternating sections,
   thin divider borders, generous line-height, muted palette.
   Swap the --color-* tokens below to reskin for a new client.
   ========================================================================== */

:root {
  --color-ink: #2e2c2a;       /* body text, was pure black in source */
  --color-primary: #5f6a5c;   /* deep sage — was warm taupe #66615c */
  --color-accent: #c3cdb7;    /* soft sage — was dusty lavender #bfb1c4 */
  --color-surface: #ebeae5;   /* warm off-white — was #ebeaeb */
  --color-white: #ffffff;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --container: 1264px;
  --radius: 0px; /* flat design, intentional */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-ink);
  background: var(--color-white);
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0 0 20px;
  line-height: 1.3;
}

h1 { font-size: 62px; }
h2 { font-size: 44px; }
h3 { font-size: 28px; }
h4 { font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }

p { margin: 0 0 20px; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 14px;
  display: block;
}

/* Buttons — flat, square, thin border, uppercase small label */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover { background: transparent; color: var(--color-primary); }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-primary); }

.btn-dark {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-dark:hover { background: var(--color-ink); color: var(--color-white); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 34px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-white); font-weight: 500; }
.nav-links { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--color-white); font-size: 15px; font-weight: 300; }
.nav-links a:hover { opacity: 0.7; }
.nav-links a.active { opacity: 0.65; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-color: #4c5549;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30,32,26,0.72) 0%, rgba(30,32,26,0.42) 55%, rgba(30,32,26,0.15) 100%);
}
.hero .wrap { position: relative; z-index: 2; max-width: 680px; }
.hero p { font-size: 18px; opacity: 0.92; max-width: 480px; }
.hero .btn-group { display: flex; gap: 18px; margin-top: 12px; }

/* divider between full-bleed sections, matches source's 1px section-border */
.section-border { border-top: 1px solid rgba(0,0,0,0.08); }

/* ------------------------------------------------------------- Intro two-up */
.section { padding: 96px 0; }
.section-surface { background: var(--color-surface); }

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.two-up .card h3 { margin-bottom: 16px; }
.two-up .card p { color: #55524d; }
.card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  margin-bottom: 28px;
}
.story-img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

/* ------------------------------------------------------------ Services grid */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.service .num {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.service h4 { text-transform: none; letter-spacing: normal; font-size: 19px; margin-bottom: 10px; }
.service p { font-size: 15px; color: #55524d; margin-bottom: 0; }

/* --------------------------------------------------------------- Testimonial */
.testimonial-band {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 110px 0;
}
.testimonial-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 28px;
  border: 2px solid rgba(255,255,255,0.5);
}
.testimonial-band blockquote {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto 26px;
}
.testimonial-band cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* --------------------------------------------------------------- Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery .tile {
  height: 480px;
  background-color: var(--color-accent);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery .img-slot { height: 480px; }
.feature-img { width: 100%; height: 420px; object-fit: cover; margin-bottom: 60px; }
.grid-img { width: 100%; height: 320px; object-fit: cover; display: block; }
.team-photo { width: 100%; height: 280px; object-fit: cover; margin-bottom: 22px; }
.services--3col { grid-template-columns: repeat(3, 1fr); }
.pill-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.pill {
  padding: 10px 20px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #55524d;
}
.gallery .tile span {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  background: rgba(30,32,26,0.55);
  color: var(--color-white);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(0,0,0,0.1);
}
.plan {
  padding: 50px 36px;
  border-left: 1px solid rgba(0,0,0,0.1);
  text-align: center;
}
.plan:first-child { border-left: none; }
.plan .price { font-size: 34px; font-weight: 500; margin: 18px 0; }
.plan .price span { font-size: 14px; font-weight: 300; opacity: 0.65; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; font-size: 14px; color: #55524d; }
.plan li { padding: 8px 0; border-top: 1px solid rgba(0,0,0,0.06); }
.plan li:first-child { border-top: none; }

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  position: relative;
  background-color: var(--color-surface);
  background-size: cover;
  background-position: center;
  padding: 90px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(235,234,229,0.86);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------- Page hero (subpages) */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 60px;
  background-color: #4c5549;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(30,32,26,0.58);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .breadcrumb {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 14px;
  display: block;
}
.page-hero h1 { font-size: 46px; margin-bottom: 0; max-width: 720px; }

/* --------------------------------------------------------- Image placeholders */
.img-slot {
  width: 100%;
  background: repeating-linear-gradient(135deg, var(--color-surface), var(--color-surface) 12px, #e1dfd6 12px, #e1dfd6 24px);
  border: 1px dashed rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #8a877e;
}
.img-slot svg { width: 30px; height: 30px; margin-bottom: 12px; opacity: 0.65; }
.img-slot .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: #6b6862;
}
.img-slot .dims { font-size: 12px; color: #9a978f; margin-top: 6px; }

/* ---------------------------------------------------------------- Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.team-card { text-align: center; }
.team-card .img-slot { height: 280px; margin-bottom: 22px; }
.team-card h4 { text-transform: none; letter-spacing: normal; font-size: 18px; margin-bottom: 4px; }
.team-card .role {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 12px;
}
.team-card p { font-size: 14px; color: #55524d; margin-bottom: 0; }

/* -------------------------------------------------------------- Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stats-row .stat-num { font-size: 42px; font-weight: 500; color: var(--color-primary); margin-bottom: 8px; }
.stats-row .stat-label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #55524d; }

/* --------------------------------------------------------- Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.process-step { text-align: center; }
.process-step .step-num {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 16px;
  color: var(--color-primary);
}
.process-step h4 { font-size: 17px; text-transform: none; letter-spacing: normal; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: #55524d; margin-bottom: 0; }

/* ------------------------------------------------------------------- FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-top: 1px solid rgba(0,0,0,0.1); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid rgba(0,0,0,0.1); }
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--color-primary); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 16px 0 0; color: #55524d; font-size: 15px; }

/* --------------------------------------------------------------- Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li { padding: 16px 0; border-top: 1px solid rgba(0,0,0,0.08); }
.contact-info-list li:first-child { border-top: none; }
.contact-info-list .label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.15);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-ink);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; }

/* ------------------------------------------------------------------ Footer */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-top h4 { color: var(--color-white); }
.footer-top a { display: block; padding: 6px 0; font-size: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.newsletter { display: flex; gap: 0; max-width: 360px; }
.newsletter input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
}
.newsletter button {
  padding: 14px 22px;
  background: var(--color-accent);
  color: var(--color-ink);
  border: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .two-up, .footer-top { grid-template-columns: 1fr; }
  .story-img { min-height: 320px; }
  .gallery .tile, .gallery .img-slot { height: 340px; }
  .services, .services--3col, .gallery, .plans, .team-grid, .process-steps, .stats-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .plan { border-left: none; border-top: 1px solid rgba(0,0,0,0.1); }
  .plan:first-child { border-top: none; }
  .nav-links { display: none; }
  .page-hero { min-height: 300px; padding: 130px 0 50px; }
  .page-hero h1 { font-size: 34px; }
}
@media (max-width: 560px) {
  .services, .services--3col, .gallery, .plans, .team-grid, .process-steps, .stats-row { grid-template-columns: 1fr; }
  .wrap { padding: 0 24px; }
  .hero .btn-group { flex-direction: column; }
}
