/* ==========================================================================
   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; }

/* ------------------------------------------------------------------ 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 .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; }

/* ------------------------------------------------------------------ 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 { height: 340px; }
  .services, .gallery, .plans { grid-template-columns: repeat(2, 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; }
}
@media (max-width: 560px) {
  .services, .gallery, .plans { grid-template-columns: 1fr; }
  .wrap { padding: 0 24px; }
  .hero .btn-group { flex-direction: column; }
}
