/* ==========================================================================
   THE CARE CO @ HOME — site stylesheet
   Everything visual lives in this one file. Five pages share it.

   TO CHANGE A COLOUR OR FONT: edit the block marked "BRAND TOKENS" below.
   Nothing else in this file hardcodes a colour, so one edit changes the
   whole site.

   Accessibility note: forest on cream is 8.97:1 (excellent). Rose (2.81:1)
   and sage (2.36:1) FAIL contrast requirements on cream, so they are used
   for decoration only, never for text. Rose-deep (5.27:1) is the version
   used where an accent needs to carry words.
   ========================================================================== */

/* ---------- BRAND TOKENS ------------------------------------------------- */
:root {
  --forest:       #2E4A38;
  --forest-soft:  #3E5F4A;
  --rose:         #C77F92;   /* decoration only */
  --rose-deep:    #9B4E64;   /* accent text     */
  --sage:         #83AB90;   /* decoration only */
  --sage-pale:    #E3EDE5;
  --cream:        #FAF5EA;
  --cream-warm:   #F3EBD9;
  --card:         #FFFDF7;

  --line:      rgba(46, 74, 56, 0.14);
  --line-firm: rgba(46, 74, 56, 0.28);
  --shadow:    0 2px 14px rgba(46, 74, 56, 0.07);
  --shadow-lg: 0 10px 40px rgba(46, 74, 56, 0.12);

  --radius:    16px;
  --radius-sm: 10px;

  --serif: 'Lora', Charter, 'Bitstream Charter', Caladea, Georgia, serif;
  --sans:  'Poppins', Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --wrap:  1140px;
  --gap:   clamp(1.5rem, 4vw, 3rem);
  --sect:  clamp(3.25rem, 8vw, 6rem);
}

/* ---------- RESET ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;              /* floor for older readers */
  font-weight: 300;
  line-height: 1.75;
  color: var(--forest);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

/* ---------- TYPE -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.4rem); }
h3 { font-size: clamp(1.18rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.06rem; }

p { margin-bottom: 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rose-deep); }

strong { font-weight: 600; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: clamp(1.09rem, 2.1vw, 1.28rem);
  line-height: 1.65;
  font-weight: 300;
}

.small { font-size: 0.9rem; line-height: 1.6; }

.rule {
  width: 62px; height: 2px;
  background: var(--rose);
  border: 0;
  margin: 1.4rem 0;
}
.rule.mid { margin-left: auto; margin-right: auto; }

/* ---------- LAYOUT ------------------------------------------------------ */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.narrow { max-width: 760px; }
.mid    { text-align: center; }
.mid .rule { margin-left: auto; margin-right: auto; }

section { padding: var(--sect) 0; }

.band       { background: var(--cream-warm); }
.band-sage  { background: var(--sage-pale); }

.band-dark {
  background: var(--forest);
  color: var(--cream);
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--cream); }
.band-dark .eyebrow { color: var(--rose); }
.band-dark a { color: var(--cream); }
.band-dark .rule { background: var(--rose); }

.sect-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sect-head.mid { margin-left: auto; margin-right: auto; }

/* ---------- DRAFT NOTICE (delete both lines at launch) ------------------ */
.draft-bar {
  background: var(--forest);
  color: var(--cream);
  font-size: 0.775rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.5rem 1rem;
  font-weight: 400;
}
.draft-bar strong { letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- HEADER ------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 245, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1.1rem, 4vw, 2rem);
  max-width: var(--wrap); margin: 0 auto;
}

.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; flex-shrink: 0;
}
.brand img { width: 44px; height: 44px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.06rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--forest);
}
.brand-sub {
  font-family: var(--sans); font-weight: 500;
  font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sage);
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: 0.925rem; font-weight: 400;
  text-decoration: none; padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--rose); color: var(--forest); }
.nav a[aria-current="page"] { border-bottom-color: var(--forest); font-weight: 500; }

.head-cta {
  background: var(--forest); color: var(--cream) !important;
  padding: 0.6rem 1.15rem !important; border-radius: 999px;
  font-weight: 500; border: 0 !important;
}
.head-cta:hover { background: var(--forest-soft); }

.burger {
  display: none;
  background: none; border: 1px solid var(--line-firm);
  border-radius: var(--radius-sm);
  width: 46px; height: 46px;
  cursor: pointer; color: var(--forest);
  align-items: center; justify-content: center;
}

.nav-panel { display: none; }

/* ---------- BUTTONS ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 500;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--forest);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-soft); color: var(--cream); }

.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }

.band-dark .btn-primary { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.band-dark .btn-ghost   { color: var(--cream); border-color: var(--cream); }
.band-dark .btn-ghost:hover { background: var(--cream); color: var(--forest); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }
.mid .btn-row { justify-content: center; }

.btn svg { width: 19px; height: 19px; flex-shrink: 0; }

/* ---------- HERO -------------------------------------------------------- */
.hero { padding: 0 0 var(--sect); }

.hero-img {
  width: 100%;
  height: clamp(260px, 46vh, 470px);
  object-fit: cover;
  object-position: center 40%;
}

.hero-card {
  background: var(--cream);
  max-width: 860px;
  margin: -70px auto 0;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
}
.hero-card .lede { margin-top: 1.1rem; }

.cred-line {
  font-size: 0.83rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest); opacity: 0.72;
  margin-top: 1.6rem;
}

/* ---------- TRUST STRIP ------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.trust-item { text-align: center; }
.trust-item .ico {
  width: 46px; height: 46px;
  margin: 0 auto 1rem;
  color: var(--forest);
}
.trust-item h3 { margin-bottom: 0.45rem; }

/* ---------- CARD GRID --------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.7rem);
}

.card {
  display: block;            /* needed because some cards are <a> elements */
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.card .ico { width: 34px; height: 34px; color: var(--rose-deep); margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.965rem; }

a.card { text-decoration: none; transition: transform 0.18s, box-shadow 0.18s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--forest); }

/* ---------- PROMISE LIST ------------------------------------------------ */
.promise-list { list-style: none; max-width: 830px; margin: 0 auto; }

.promise-list li {
  font-family: var(--serif);
  font-size: clamp(1.13rem, 2.5vw, 1.5rem);
  line-height: 1.45;
  padding: 1.15rem 0 1.15rem 2.6rem;
  border-bottom: 1px solid rgba(250, 245, 234, 0.18);
  position: relative;
}
.promise-list li:last-child { border-bottom: 0; }
.promise-list li::before {
  content: "";
  position: absolute; left: 0; top: 1.75rem;
  width: 15px; height: 15px;
  border: 2px solid var(--rose);
  border-radius: 50%;
}

/* ---------- STEPS ------------------------------------------------------- */
.steps { list-style: none; counter-reset: s; max-width: 820px; }

.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 2.1rem 4.3rem;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--forest); color: var(--cream);
  font-family: var(--serif); font-size: 1.18rem;
  border-radius: 50%;
}
.steps li::after {
  content: "";
  position: absolute; left: 23px; top: 52px; bottom: 8px;
  width: 2px; background: var(--line-firm);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { font-size: 0.975rem; }

/* ---------- SPLIT (image + text) ---------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }

.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Portrait exception. Every other split image is a 3:2 landscape scene, but
   Sinta's is a headshot — forcing it to 3:2 crops her forehead and chin off.
   Add class="split-img portrait" to the wrapper for any portrait photo. */
.split-img.portrait img { aspect-ratio: 1 / 1; }

.split.rev .split-img { order: 2; }

/* ---------- QUALIFICATIONS BLOCK ---------------------------------------- */
/* Sits inside Sinta's band on the About page, under the split. */
.quals {
  margin-top: clamp(2.4rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.quals h3 { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 600; }
.quals .facts dt { min-width: 150px; }

/* ---------- TICK / CROSS LISTS ------------------------------------------ */
.ticks { list-style: none; display: grid; gap: 0.8rem; }
.ticks.two { grid-template-columns: repeat(2, 1fr); gap: 0.8rem clamp(1.2rem, 3vw, 2.4rem); }

.ticks li { position: relative; padding-left: 2rem; font-size: 0.99rem; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.52em;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--forest);
  border-bottom: 2.5px solid var(--forest);
  transform: rotate(-45deg);
}
.ticks.crosses li::before {
  content: "\00d7";
  border: 0; transform: none;
  top: 0; left: 0.15em;
  width: auto; height: auto;
  font-size: 1.25rem; line-height: 1.5;
  color: var(--rose-deep);
}

/* ---------- CONTACT ACTIONS --------------------------------------------- */
.actions { display: grid; gap: 1.05rem; max-width: 620px; }

.action {
  display: flex; align-items: center; gap: 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.action:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--forest); }
.action .ico { width: 30px; height: 30px; color: var(--forest); flex-shrink: 0; }
.action-label { font-weight: 500; font-size: 1.06rem; }
.action-val { font-size: 0.9rem; opacity: 0.72; }

/* ---------- FACT ROWS --------------------------------------------------- */
.facts { display: grid; gap: 0; margin-top: 1.6rem; }
.facts div {
  display: flex; flex-wrap: wrap; gap: 0.3rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.facts dt { font-weight: 500; min-width: 190px; }
.facts dd { opacity: 0.85; }

/* ---------- QUOTE ------------------------------------------------------- */
.quote {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.5;
  border-left: 3px solid var(--rose);
  padding-left: clamp(1.2rem, 3vw, 2rem);
  margin: 2rem 0;
}

/* ---------- CALLOUT ----------------------------------------------------- */
.callout {
  background: var(--sage-pale);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border-left: 4px solid var(--sage);
  margin: 2rem 0;
}
.callout p { font-size: 0.99rem; }

/* ---------- PLACEHOLDER MARKER (must be zero at launch) ----------------- */
.tbc {
  background: rgba(155, 78, 100, 0.11);
  border-bottom: 1px dashed var(--rose-deep);
  color: var(--rose-deep);
  font-weight: 500;
  padding: 0 0.25em;
  white-space: nowrap;
}

/* ---------- LEGAL PAGE -------------------------------------------------- */
.legal { max-width: 800px; }
.legal h2 { margin: 2.6rem 0 0.8rem; font-size: clamp(1.3rem, 2.6vw, 1.65rem); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin: 1.7rem 0 0.5rem; font-size: 1.1rem; }
.legal ul, .legal ol { margin: 0 0 1.05em 1.3rem; }
.legal li { margin-bottom: 0.45rem; font-size: 0.99rem; }
.legal p { font-size: 0.99rem; }

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin-bottom: 2.6rem;
}
.toc ol { margin: 0.6rem 0 0 1.2rem; }
.toc li { margin-bottom: 0.3rem; font-size: 0.94rem; }

/* ---------- FOOTER ------------------------------------------------------ */
.site-foot {
  background: var(--forest);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.94rem;
}
.site-foot a { color: var(--cream); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--cream); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gap);
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(250, 245, 234, 0.18);
}
.foot-brand img { width: 54px; height: 54px; margin-bottom: 1rem; }
.foot-brand .brand-name { color: var(--cream); }
.foot-brand p { font-size: 0.9rem; opacity: 0.8; margin-top: 0.9rem; }

.foot-grid h4 {
  font-family: var(--sans);
  font-size: 0.775rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 1rem;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 0.55rem; }

.foot-legal {
  padding-top: 1.8rem;
  font-size: 0.815rem;
  opacity: 0.78;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  justify-content: space-between;
}
.foot-legal p { margin: 0; }

/* ---------- MOBILE STICKY BAR ------------------------------------------- */
.mobile-bar { display: none; }

/* ---------- SCROLL REVEAL ----------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .action:hover, a.card:hover { transform: none; }
}

/* ---------- RESPONSIVE -------------------------------------------------- */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .trust { grid-template-columns: 1fr; gap: 2.2rem; }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-img { order: 0; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .burger { display: flex; }

  /* mobile menu overlay */
  .nav-panel {
    display: block;
    position: fixed; inset: 0; z-index: 90;
    background: var(--cream);
    padding: 1.4rem clamp(1.1rem, 5vw, 2rem);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }
  .nav-panel.open { transform: none; }
  .nav-panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.2rem; }
  .nav-panel ul { list-style: none; }
  .nav-panel li { border-bottom: 1px solid var(--line); }
  .nav-panel a {
    display: block; padding: 1.05rem 0;
    font-family: var(--serif); font-size: 1.3rem;
    text-decoration: none;
  }
  .nav-panel .btn { margin-top: 2rem; width: 100%; }

  body { padding-bottom: 74px; }   /* room for the sticky bar */

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
    background: var(--forest);
    border-top: 1px solid rgba(250, 245, 234, 0.2);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1.05rem 0.5rem;
    color: var(--cream); text-decoration: none;
    font-size: 0.95rem; font-weight: 500;
  }
  .mobile-bar a + a { border-left: 1px solid rgba(250, 245, 234, 0.2); }
  .mobile-bar svg { width: 19px; height: 19px; }

  .hero-card { margin-top: -46px; border-radius: var(--radius) var(--radius) 0 0; }
  .ticks.two { grid-template-columns: 1fr; }
  .facts dt { min-width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 0.95rem; }
  .brand img { width: 38px; height: 38px; }
}

/* ==========================================================================
   PRINT / PDF
   Used to produce the PDF copies sent for review. Drops the sticky
   furniture, keeps the brand colours, and lets sections flow as pages.
   ========================================================================== */
@media print {
  @page { size: A4; margin: 14mm 13mm; }

  html, body { background: #fff; font-size: 10.6pt; line-height: 1.6; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .site-head, .mobile-bar, .nav-panel, .burger, .head-cta { display: none !important; }
  body { padding-bottom: 0; }

  .reveal { opacity: 1 !important; transform: none !important; }

  section { padding: 9mm 0; }
  .wrap { max-width: 100%; padding: 0; }

  /* coloured bands need inner padding once .wrap loses its own */
  .band, .band-sage, .band-dark { padding-left: 7mm; padding-right: 7mm; }
  .band-dark, .promise-list { break-inside: avoid; page-break-inside: avoid; }

  h1 { font-size: 22pt; }
  h2 { font-size: 15pt; }
  h3 { font-size: 11.5pt; }

  h1, h2, h3, h4 { break-after: avoid; page-break-after: avoid; }
  .card, .action, .callout, .toc, .trust-item, .steps li, .promise-list li {
    break-inside: avoid; page-break-inside: avoid;
  }
  .sect-head { break-inside: avoid; break-after: avoid; }
  .split-img, .facts, .quote { break-inside: avoid; }
  .legal h2 { margin-top: 7mm; }

  .hero { padding-bottom: 8mm; }
  .hero-img { height: 62mm; }
  .hero-card { margin: 4mm 0 0; box-shadow: none; padding: 0; max-width: 100%; }

  .cards { grid-template-columns: 1fr 1fr; gap: 4mm; }
  .trust { grid-template-columns: repeat(3, 1fr); gap: 5mm; }
  .split { grid-template-columns: 1fr 1fr; gap: 6mm; }
  .split + .split { margin-top: 8mm; }
  .split-img img { aspect-ratio: auto; height: 46mm; }
  /* Headshots keep their shape in print too — a fixed 46mm height in a
     column this wide would crop the face back to a landscape strip. */
  .split-img.portrait img { height: auto; aspect-ratio: 1 / 1; }

  .quals { break-inside: avoid; page-break-inside: avoid; }

  .card, .action, .toc { box-shadow: none; }
  a { text-decoration: none; }

  .site-foot { padding: 8mm 7mm 4mm; break-inside: avoid; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; padding-bottom: 5mm; }

  .draft-bar { border-bottom: 2px solid var(--forest); }
}
