/* Nurtured Roots Doula Services, site styles.
   Fonts and the five brand colors are set per build from content/settings.yml
   (an inline <style> in each page overrides the :root values below).
   ------------------------------------------------------------
   Brand tokens (edit these to retheme the whole site):
   --linen   warm tan ground from the original Canva site
   --cream   light page background
   --bark    dark brown, primary text and buttons
   --olive   leaf green, used for rules and small accents
   --blush   petal pink, used very sparingly
   ------------------------------------------------------------ */


:root {
  --linen: #e3d4c1;
  --cream: #f8f4ed;
  --bark: #4a3a2b;
  --olive: #8a7c55;
  --blush: #d9b49c;
  /* derived from the five editable colors above */
  --linen-deep: color-mix(in srgb, var(--linen), var(--bark) 10%);
  --paper: color-mix(in srgb, var(--cream), white 60%);
  --bark-deep: color-mix(in srgb, var(--bark), black 30%);
  --ink: color-mix(in srgb, var(--bark), black 15%);
  --ink-soft: color-mix(in srgb, var(--bark), var(--cream) 25%);
  --olive-soft: color-mix(in srgb, var(--olive), var(--cream) 40%);
  --rule: color-mix(in srgb, var(--bark) 22%, transparent);

  --display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Garamond Web", "EB Garamond", Garamond, Georgia, serif;
  --script: "Pinyon", "Pinyon Script", "Brush Script MT", cursive;

  --wrap: 1120px;
  --measure: 62ch;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--bark-deep); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bark); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--bark);
  margin: 0 0 var(--s2);
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.55rem, 2.6vw, 2rem); }
h4 { font-size: 1.35rem; }
p { margin: 0 0 var(--s2); max-width: var(--measure); }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
.lead { font-size: 1.38rem; line-height: 1.5; color: var(--ink-soft); }
.small { font-size: 1rem; color: var(--ink-soft); }

/* Script accent, like the "Supported with care" on the original site */
.script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1;
  color: var(--olive);
  display: block;
  margin-bottom: .35rem;
}
.caps {
  font-family: var(--body);
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: .6rem;
}

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
section { padding: var(--s5) 0; }
@media (min-width: 900px) { section { padding: var(--s6) 0; } }
.band { background: var(--linen); }
.band-paper { background: var(--paper); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Buttons: sharp corners, one dark fill for the primary action */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.7rem;
  border: 1px solid var(--bark);
  color: var(--bark);
  background: transparent;
  line-height: 1.1;
  min-height: 48px;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--bark); color: #fff; }
.btn-solid { background: var(--bark); color: #fff; }
.btn-solid:hover { background: var(--bark-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin-top: var(--s3); }
.btn-row .plain { font-size: 1.05rem; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.site-header .brand { min-width: 0; }
.brand { text-decoration: none; color: var(--bark); line-height: 1; display: flex; align-items: center; gap: .7rem; }
.brand .mark { height: 52px; width: auto; flex: none; }
.brand-text { display: block; min-width: 0; }
@media (max-width: 480px) { .brand .mark { height: 42px; } }
.brand .name { font-family: var(--display); font-size: 1.9rem; font-weight: 500; display: block; }
.brand .sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: .3rem; }
@media (min-width: 900px) { .brand .sub { white-space: nowrap; } }
@media (max-width: 480px) { .brand .name { font-size: 1.6rem; } .brand .sub { font-size: .62rem; letter-spacing: .12em; } }
.nav-toggle { display: none; }
.nav-btn { display: none; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.15rem; align-items: center; }
.site-nav a { text-decoration: none; font-size: .98rem; color: var(--ink); padding: .3rem 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--bark); }
.site-nav .call { border: 1px solid var(--bark); padding: .55rem .9rem; letter-spacing: .04em; margin-left: .4rem; }
.site-nav .call:hover { background: var(--bark); color: #fff; }
/* Services dropdown: native <details>, no JS */
.has-menu { position: relative; }
.has-menu details { position: relative; }
.has-menu summary { list-style: none; cursor: pointer; font-size: .98rem; color: var(--ink); padding: .3rem 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.has-menu summary::-webkit-details-marker { display: none; }
.has-menu summary::after { content: ""; display: inline-block; width: .38em; height: .38em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-left: .45em; vertical-align: .2em; }
.has-menu summary:hover, .has-menu summary.current { border-bottom-color: var(--bark); }
.has-menu details[open] summary::after { transform: rotate(225deg); vertical-align: -.05em; }
.submenu { list-style: none; margin: 0; padding: .5rem 0; }
@media (min-width: 901px) {
  .has-menu details[open] summary { border-bottom-color: var(--bark); }
  .submenu { position: absolute; left: -1rem; top: calc(100% + .6rem); min-width: 15rem; background: var(--cream); border: 1px solid var(--rule); box-shadow: 0 10px 24px color-mix(in srgb, var(--bark) 12%, transparent); padding: .4rem 0; z-index: 30; display: block; }
  .submenu li { margin: 0; }
  .submenu a { display: block; padding: .6rem 1rem; border-bottom: 0; }
  .submenu a:hover, .submenu a[aria-current="page"] { background: var(--linen); border-bottom: 0; }
  .submenu li:last-child { border-top: 1px solid var(--rule); margin-top: .3rem; padding-top: .3rem; }
}
@media (max-width: 1100px) {
  .site-nav .call { display: none; }
}
@media (max-width: 900px) {
  .nav-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--body); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase;
    background: none; border: 1px solid var(--rule); padding: .55rem .9rem; color: var(--bark); cursor: pointer;
  }
  .nav-btn::before { content: ""; width: 18px; height: 11px; border-top: 1.5px solid var(--bark); border-bottom: 1.5px solid var(--bark); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--rule); }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; }
  .site-nav li { margin: 0; }
  .site-nav > ul > li > a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: 1.15rem; }
  .submenu a { display: block; padding: .55rem 0; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); font-weight: 600; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav .call { display: block; border: 0; padding: .8rem 0; }
  .has-menu summary { display: block; padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: 1.15rem; }
  .submenu { padding: 0 0 .4rem 1rem; }
  .submenu a { font-size: 1.05rem; }
}

/* Hero: linen ground with the watercolor botanicals bleeding in from the edges */
.hero { background: var(--linen); position: relative; overflow: hidden; padding: var(--s5) 0 var(--s5); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 14ch; }
.hero .lead { color: var(--ink); max-width: 46ch; }
.hero .flowers, .hero .leaves { position: absolute; z-index: 1; pointer-events: none; opacity: .9; }
.hero .flowers { left: -3%; bottom: -8%; width: clamp(160px, 22vw, 320px); }
.hero .leaves { right: -2%; top: -6%; width: clamp(180px, 26vw, 380px); transform: scaleX(-1); }
@media (min-width: 900px) { .hero { padding: var(--s6) 0; } }
@media (max-width: 700px) {
  .hero .leaves { width: 150px; right: -40px; top: -20px; opacity: .55; }
  .hero .flowers { width: 130px; left: -30px; bottom: -30px; opacity: .55; }
}
.hero-inner { display: grid; gap: var(--s4); align-items: end; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr .85fr; } }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; max-width: 420px; aspect-ratio: 3 / 4; object-fit: cover; margin-left: auto; }
.hero-photo figcaption { font-family: var(--script); font-size: 1.9rem; color: var(--bark); line-height: 1; margin-top: .6rem; text-align: right; }

/* Credential line under the hero, like a letterhead */
.letterhead { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--cream); }
.letterhead ul { list-style: none; margin: 0; padding: .9rem 0; display: flex; flex-wrap: wrap; gap: .5rem 2.2rem; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.letterhead li { margin: 0; }

/* Two-column reading layout */
.split { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
.split-photo img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.split-photo.wide img { aspect-ratio: 4 / 5; }
@media (min-width: 860px) { .sticky { position: sticky; top: 2rem; } }

/* Service listing: ruled rows, not cards */
.services { list-style: none; margin: var(--s3) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.services li { margin: 0; border-bottom: 1px solid var(--rule); }
.services a { display: grid; gap: .4rem 2rem; padding: 1.6rem 0; text-decoration: none; color: inherit; align-items: baseline; }
@media (min-width: 760px) { .services a { grid-template-columns: 3rem 1fr 1fr auto; } }
.services .num { font-family: var(--script); font-size: 2rem; color: var(--olive); line-height: 1; }
.services h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.services p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }
.services .price { font-family: var(--display); font-size: 1.35rem; color: var(--bark); white-space: nowrap; }
.services .price small { display: block; font-family: var(--body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.services a:hover h3 { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }

/* Benefits list: two columns with a short olive dash bullet */
.dash-list { list-style: none; padding: 0; margin: var(--s3) 0 0; columns: 1; column-gap: 3rem; }
@media (min-width: 720px) { .dash-list { columns: 2; } }
.dash-list li { break-inside: avoid; padding-left: 1.6rem; position: relative; margin-bottom: .7rem; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: .9rem; height: 1px; background: var(--olive); }

/* Package detail definition list */
.package { border-top: 1px solid var(--rule); margin-top: var(--s3); }
.package > div { display: grid; gap: .3rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .package > div { grid-template-columns: 14rem 1fr; } }
.package dt { font-family: var(--display); font-size: 1.4rem; color: var(--bark); }
.package dd { margin: 0; color: var(--ink); }
.package dd ul { margin: .2rem 0 0; }
.package dd ul.one { list-style: none; padding: 0; margin: 0; }
.quote-grid blockquote .ctx:not(:empty)::before { content: ", "; }


/* Faith band */
.faith { background: var(--bark); color: #efe6d9; }
.faith .script { color: var(--blush); }
.faith h2 { color: #fff; }
.faith p { color: #efe6d9; }
.faith a { color: #fff; }
.faith .btn { border-color: #efe6d9; color: #fff; }
.faith .btn:hover { background: #efe6d9; color: var(--bark); }

/* Testimonials: one large pull quote and supporting quotes */
.quote { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.3; color: var(--bark); margin: 0; max-width: 34ch; }
.quote::before { content: "\201C"; font-family: var(--script); font-size: 3em; line-height: 0; vertical-align: -.35em; color: var(--olive-soft); margin-right: .05em; }
.attrib { font-family: var(--body); font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1rem; }
.quote-grid { display: grid; gap: var(--s4); margin-top: var(--s4); }
@media (min-width: 860px) { .quote-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
.quote-grid blockquote { margin: 0; padding-top: var(--s3); border-top: 1px solid var(--rule); }
.quote-grid blockquote p { font-size: 1.15rem; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); margin-top: var(--s3); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0; font-family: var(--display); font-size: 1.45rem; color: var(--bark); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1rem; font-family: var(--body); font-size: 1.5rem; color: var(--olive); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 1.1rem; }

/* Contact block */
.contact-lines { list-style: none; padding: 0; margin: var(--s3) 0; }
.contact-lines li { margin: 0 0 1.1rem; }
.contact-lines .caps { margin-bottom: .1rem; }
.contact-lines a { font-family: var(--display); font-size: 1.9rem; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* Closing call band */
.close-band { background: var(--linen); text-align: left; }
.close-band .btn-row { margin-top: var(--s3); }

/* Footer */
.site-footer { background: var(--bark-deep); color: #cdbfae; padding: var(--s4) 0 6.5rem; font-size: 1rem; }
.site-footer a { color: #efe6d9; }
.site-footer .cols { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand .sub { color: #cdbfae; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .4rem; }
.site-footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: .6rem; }
.site-footer .legal { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: #a99a88; }
@media (min-width: 760px) { .site-footer { padding-bottom: var(--s4); } }

/* Mobile fixed call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; background: var(--bark); border-top: 1px solid rgba(255,255,255,.15); }
.callbar a { color: #fff; text-decoration: none; text-align: center; padding: .95rem .5rem; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; min-height: 52px; }
.callbar a + a { border-left: 1px solid rgba(255,255,255,.15); }
@media (min-width: 760px) { .callbar { display: none; } }

/* Page hero for inner pages */
.page-head { background: var(--linen); padding: var(--s4) 0; position: relative; overflow: hidden; }
.page-head .leaves { position: absolute; right: -30px; top: -40px; width: 220px; opacity: .45; pointer-events: none; transform: scaleX(-1); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { color: var(--ink); }
.crumbs { list-style: none; padding: 0; margin: 0 0 var(--s2); display: flex; gap: .6rem; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.crumbs li { margin: 0; }
.crumbs a { text-decoration: none; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--olive-soft); }

/* Prose block for long text pages */
.prose h2 { margin-top: var(--s4); }
.prose h3 { margin-top: var(--s3); }
.prose ul { max-width: var(--measure); }

/* Editor-set text styles (data-t="lg center wide" and so on) */
[data-t~="sm"] { font-size: .85em; }
[data-t~="lg"] { font-size: 1.25em; }
[data-t~="xl"] { font-size: 1.6em; }
[data-t~="center"] { text-align: center; margin-inline: auto; }
[data-t~="right"] { text-align: right; margin-left: auto; }
[data-t~="narrow"] { max-width: 38ch; }
[data-t~="wide"] { max-width: none; }
[data-t~="bold"] { font-weight: 600; }
[data-t~="italic"] { font-style: italic; }
/* Section spacing set in the editor */
section[data-sp="compact"] { padding-top: var(--s3); padding-bottom: var(--s3); }
section[data-sp="roomy"] { padding-top: calc(var(--s6) * 1.5); padding-bottom: calc(var(--s6) * 1.5); }
/* Extra paragraphs added in the editor */
.extra:empty { display: none; }
.extra p { margin-top: var(--s2); }
/* Testimonials: equal boxes */
.quote-grid blockquote { display: flex; flex-direction: column; }
.quote-grid blockquote .attrib { margin-top: auto; }
.quote-grid-even { grid-auto-rows: 1fr; gap: var(--s3); margin-top: 0; }
.quote-grid-even blockquote { padding: var(--s3); border: 1px solid var(--rule); border-top: 3px solid var(--olive-soft); background: var(--paper); }
.quote-grid-even blockquote p { font-size: 1.15rem; margin: 0 0 .6rem; }
@media (min-width: 860px) { .quote-grid-even { grid-template-columns: 1fr 1fr; gap: var(--s3); } .quote-grid-three { grid-template-columns: repeat(3, 1fr); } }
.quote-grid-even { margin-top: var(--s3); }

/* Photo carousel */
.gallery-sec[data-empty] { display: none; }
.carousel { position: relative; margin-top: var(--s3); }
.carousel .track { display: flex; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel figure { flex: 0 0 min(78%, 420px); margin: 0; scroll-snap-align: start; }
.carousel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.carousel figcaption { font-family: var(--display); font-size: 1.15rem; color: var(--bark); margin-top: .5rem; min-height: 1.4em; }
.car-btn { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--bark); background: var(--cream); color: var(--bark); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.car-btn.prev { left: -.5rem; } .car-btn.next { right: -.5rem; }
.car-btn:hover { background: var(--bark); color: #fff; }
@media (max-width: 700px) { .car-btn { display: none; } }

/* Utility */
.mt0 { margin-top: 0; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
