/* =========================================================================
   House Doula — stylesheet
   -------------------------------------------------------------------------
   Palette and type are derived from gentletraumarelease.com:
     deep forest green band, warm sienna headings, muted ochre accents,
     geometric-sans display over a Georgia serif, Open Sans body at 17px/1.8,
     a short accent rule under headings, outline buttons with wide tracking,
     1080px max container.

   NO MOTION. There is deliberately not a single transition, animation,
   transform or smooth-scroll rule in this file. Hover and focus states
   change colour instantly. Please keep it that way if you edit.
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */

:root {
  /* surfaces */
  --paper:       #fcfaf6;  /* warm off-white page background */
  --paper-2:     #f5f1e8;  /* alternate section / card background */
  --paper-3:     #efe9db;  /* subtle inset areas */

  /* ink */
  --ink:         #4a4a46;  /* body copy — warm grey */
  --ink-strong:  #2e2e2b;  /* emphasis */
  --ink-soft:    #6d6d66;  /* captions, meta */

  /* brand */
  --green-deep:  #083530;  /* dark bands, footer */
  --green:       #0f4f44;
  --sage:        #548f74;  /* decorative marks only — 3.6:1, too low for text */
  --sage-deep:   #3d6b56;  /* same hue darkened to 5.9:1, for small text on paper */
  --sienna:      #986745;  /* section headings, accent rules */
  --sienna-deep: #7a4f32;  /* links on light backgrounds */
  --ochre:       #b59d21;  /* links + accents on dark backgrounds */
  --olive:       #b4b082;

  /* lines */
  --rule:        #e3ddcf;
  --rule-dark:   rgba(255, 255, 255, 0.18);

  /* type */
  --display: "Jost", "Century Gothic", Georgia, "Times New Roman", serif;
  --serif:   Georgia, "Times New Roman", Times, serif;
  --body:    "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* metrics */
  --container: 1080px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
}

/* ---------- 2. Reset ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;      /* 17px, as on the reference site */
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink-strong);
  line-height: 1.2;
}

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

ul, ol { margin: 0 0 1.5em; padding-left: 1.4em; }
li { margin-bottom: 0.5em; }

a { color: var(--sienna-deep); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--green-deep); }

strong { font-weight: 700; color: var(--ink-strong); }
em, i { font-style: italic; }

hr { border: 0; }

/* Visible, unmissable focus ring for keyboard users. */
:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}

/* ---------- 3. Layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 4.5vw, 3.75rem); }

/* Comfortable reading measure inside the wider container. */
.measure { max-width: 64ch; }
.measure-wide { max-width: 72ch; }

.center { text-align: center; }
.center .rule, .center .measure { margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. Type scale ---------- */

.display {
  font-size: clamp(2.25rem, 6vw, 4rem);   /* 36 → 64px, matching the reference */
  letter-spacing: -0.01em;
  line-height: 1.14;
}

.h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.875rem);  /* 28 → 46px */
  color: var(--sienna);
  letter-spacing: -0.005em;
}

.h3 {
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem); /* 19 → 23px */
  font-weight: 500;
  color: var(--green-deep);
}

.h4 {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--green-deep);
}

/* Georgia serif, as used for the reference site's hero subheading. */
.serif-lead {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.65;
  color: var(--ink);
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.75;
}

.eyebrow {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1rem;
}

.kicker {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  line-height: 1.55;
  color: var(--green-deep);
  margin: 0 0 1.25em;
}

/* The reference site's signature: a short rule under the heading. */
.rule {
  width: 72px;
  height: 2px;
  background: var(--sienna);
  margin: 1.25rem 0 1.75rem;
}
.rule--light { background: var(--ochre); }

/* ---------- 5. Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 2.25em;
  border: 1px solid var(--green-deep);
  color: var(--green-deep);
  background: transparent;
}
.btn:hover {
  background: var(--green-deep);
  color: var(--paper);
}

.btn--light {
  border-color: #fff;
  color: #fff;
}
.btn--light:hover {
  background: #fff;
  color: var(--green-deep);
}

.btn--solid {
  background: var(--green-deep);
  color: var(--paper);
}
.btn--solid:hover {
  background: var(--sienna-deep);
  border-color: var(--sienna-deep);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- 6. Header ---------- */
/* Static, not sticky — nothing on this site moves when you scroll. */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--green-deep);
}
.brand:hover { color: var(--sienna-deep); }

.brand__mark { width: 34px; height: 34px; flex: none; }

.brand__name {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.nav a {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.25rem;
  display: inline-block;
}
.nav a:hover { color: var(--sienna-deep); }

/* Current page, in the reference site's muted gold. */
.nav a[aria-current="page"] {
  color: var(--sienna-deep);
  border-bottom: 2px solid var(--ochre);
}

@media (max-width: 860px) {
  .site-header__inner { justify-content: center; text-align: center; }
  .nav ul { justify-content: center; gap: 0.25rem 1.125rem; }
  .nav a { font-size: 0.75rem; }
}

/* ---------- 7. Hero ---------- */

.hero {
  position: relative;
  background-color: var(--green-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

/* Overlay keeps white text well clear of AA contrast over any photo.
   Weighted to the left, where the words sit, so a colourful photo still
   reads as itself on the right instead of becoming a flat green wash. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(8, 53, 48, 0.90) 0%,
    rgba(8, 53, 48, 0.86) 38%,
    rgba(8, 53, 48, 0.80) 58%,
    rgba(8, 53, 48, 0.42) 78%,
    rgba(8, 53, 48, 0.18) 100%
  );
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(26rem, 62vh, 38rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

/* Sized in rem, not ch: `ch` here resolves against the 17px inherited
   font size, which squeezed the 64px headline into a narrow column. */
.hero__content { max-width: 46rem; }

.hero .display { color: #fff; }
.hero .serif-lead {
  color: rgba(255, 255, 255, 0.92);
  margin-top: 1.5rem;
  max-width: 34rem;
}
.hero .eyebrow { color: var(--ochre); }

/* Shorter hero for interior pages. */
.hero--page .hero__inner { min-height: clamp(16rem, 34vh, 22rem); }

/* ---------- 8. Bands ---------- */

.band-dark {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.92);
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .h2 { color: #fff; }
.band-dark a { color: var(--ochre); }
.band-dark a:hover { color: #fff; }
.band-dark strong { color: #fff; }

.band-soft { background: var(--paper-2); }

/* Elements that carry their own dark colour must be re-stated on dark bands,
   or they render dark-on-dark. */
.band-dark .serif-lead,
.band-photo .serif-lead { color: rgba(255, 255, 255, 0.92); }
.band-dark .kicker,
.band-photo .kicker { color: #fff; }
.band-dark .eyebrow,
.band-photo .eyebrow { color: var(--ochre); }

/* Muted photographic band, heavily overlaid so text stays readable. */
.band-photo {
  position: relative;
  background-color: var(--green-deep);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.band-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 53, 48, 0.86);
}
.band-photo > * { position: relative; }
.band-photo .h2 { color: #fff; }
.band-photo a { color: var(--ochre); }

/* ---------- 9. The inset-glow panel from the reference site ---------- */

.glow-panel {
  background: var(--paper);
  box-shadow: inset 0 0 18px 0 rgba(7, 142, 52, 0.28);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3.5vw, 2.5rem);
}

/* A pull quote standing on its own, centred on the page rather than sitting
   in a column beside body copy. */
.panel-centred {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

/* ---------- 10. Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 3rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: var(--sienna); color: inherit; }

.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body {
  padding: 1.75rem 1.5rem 1.875rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body .h3 { margin-bottom: 0.75rem; }
.card__body p { font-size: 1rem; }

.card__more {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sienna-deep);
  margin-top: auto;
  padding-top: 1.25rem;
}
.card:hover .card__more { color: var(--green-deep); }

/* ---------- 11. Two-column text + image ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 820px) {
  .split { grid-template-columns: 1.15fr 0.85fr; }
}

.split__media img { width: 100%; }

.figure-note {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* ---------- 12. "I help you" lists ---------- */

.help-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75em;
}

.help-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875em;
}

.help-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 9px;
  height: 9px;
  background: var(--sage);
}

.plain-list { list-style: none; padding: 0; }
.plain-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.625em;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 2px;
  background: var(--sienna);
}

/* ---------- 12b. Portrait (About page) ---------- */
/* The photo is a 2:3 studio shot with generous headroom. Cropping it to 4:5
   and biasing the frame downwards removes the empty background above her head
   without touching the file, so the full original stays reusable. */

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 82%;
  background: var(--paper-2);
}

/* ---------- 13. FAQ ---------- */

.faq-index {
  background: var(--paper-2);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-left: 3px solid var(--sienna);
}
.faq-index ol {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  columns: 2;
  column-gap: 2.5rem;
}
.faq-index li { margin-bottom: 0.5em; font-size: 0.9375rem; line-height: 1.6; }

@media (max-width: 680px) {
  .faq-index ol { columns: 1; }
}

.faq-group { margin-top: clamp(2.5rem, 5vw, 3.75rem); }

.faq-group__title {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--rule);
  margin: 0 0 2.25rem;
}

.qa { margin-bottom: 2.75rem; max-width: 68ch; }
.qa:last-child { margin-bottom: 0; }

.qa h3 {
  font-family: var(--display);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  font-weight: 500;
  color: var(--green-deep);
  margin-bottom: 0.875rem;
}

/* Offset anchor targets so a jump link does not hide the heading. */
.qa { scroll-margin-top: 1.5rem; }

.back-to-top {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 3rem;
}

/* ---------- 14. Contact band ---------- */

.contact-band { text-align: center; }
.contact-band .rule,
.contact-band .measure,
.contact-band .measure-wide { margin-inline: auto; }

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 3rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-methods li { margin: 0; }

.contact-methods__label {
  display: block;
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.25rem;
}

.contact-methods a {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  color: var(--ochre);
  text-decoration: none;
  border-bottom: 1px solid rgba(181, 157, 33, 0.5);
}
.contact-methods a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- 15. Next-steps / cross links ---------- */

.next-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.next-link {
  display: block;
  padding: 1.5rem 1.625rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
}
.next-link:hover { border-color: var(--sienna); }

.next-link__label {
  display: block;
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.5rem;
}

.next-link__title {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1.3;
}

/* ---------- 16. Footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--ochre); }

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: var(--ochre); }

.site-footer__heading {
  font-family: var(--display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 1.125rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.625em; line-height: 1.6; }

.site-footer__blurb {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__bottom {
  border-top: 1px solid var(--rule-dark);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 17. Editorial notes (delete when you are done) ---------- */
/* Wrap anything you still need to replace in <span class="todo">[LIKE THIS]</span>
   and it will be highlighted on screen so you cannot miss it. Remove the
   markup once the real text is in. */

.todo {
  background: #fff6c9;
  color: #4a3b00;
  box-shadow: 0 0 0 1px #d9c76a;
  padding: 0 0.25em;
  font-style: normal;
}

.band-dark .todo,
.hero .todo {
  background: rgba(255, 246, 201, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 246, 201, 0.5);
  color: #fff6c9;
}

/* ---------- 18. Print ---------- */

@media print {
  .site-header, .site-footer, .btn-row, .faq-index, .back-to-top { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero::before, .band-photo::before { background: none; }
  .hero, .band-dark, .band-photo { background: #fff; color: #000; }
  .hero .display, .band-dark .h2, .band-photo .h2 { color: #000; }
}
