/* ==========================================================
   Jenny Hedrick Doula — extra styling for the theme's sections.
   Colors come from theme.json presets (var(--wp--preset--color--*)).
   ========================================================== */

:root {
	--jh-ink: var(--wp--preset--color--ink);
	--jh-ink-soft: var(--wp--preset--color--ink-soft);
	--jh-tan: var(--wp--preset--color--tan);
	--jh-tan-deep: var(--wp--preset--color--tan-deep);
	--jh-rule: rgba(86, 88, 94, 0.16);
	--jh-display: var(--wp--preset--font-family--display);
}

body { -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--jh-tan-deep); outline-offset: 3px; }
h1, h2, h3, h4 { text-wrap: balance; }
a { text-decoration-color: var(--jh-tan-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }

/* ---------- full-width color bands ---------- */
.jh-band {
	padding-top: clamp(3.25rem, 8vw, 6rem) !important;
	padding-bottom: clamp(3.25rem, 8vw, 6rem) !important;
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}
main > .jh-band:first-child,
.wp-block-post-content > .jh-band:first-child { margin-top: 0; }
.wp-block-post-content > .jh-band + .jh-band { margin-top: 0; }

/* white text on tan */
.has-tan-background-color,
.has-tan-background-color h1,
.has-tan-background-color h2,
.has-tan-background-color h3 { color: var(--wp--preset--color--white); }
.has-tan-background-color .jh-eyebrow { color: var(--wp--preset--color--white); opacity: 0.85; }

/* ---------- small labels ---------- */
.jh-eyebrow {
	font-family: var(--jh-display);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--jh-tan-deep);
	margin-bottom: 0.25rem !important;
}
.jh-tag {
	font-family: var(--jh-display);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--jh-tan-deep);
	margin: 0 !important;
}
.jh-lede { font-size: clamp(1.05rem, 2.1vw, 1.2rem); }
.jh-intro { color: var(--jh-ink-soft); max-width: 38rem; }
.has-tan-background-color .jh-intro { color: var(--wp--preset--color--white); opacity: 0.92; }

/* Psalm pull-quote */
.jh-verse {
	font-family: var(--jh-display);
	font-size: 0.95rem;
	font-style: italic;
	color: var(--jh-ink-soft);
	border-left: 2px solid var(--jh-tan);
	padding-left: 1rem;
}

/* ---------- photos (square corners, fixed shapes) ---------- */
.jh-photo { margin: 0; background: var(--wp--preset--color--sage); overflow: hidden; }
.jh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.jh-photo--portrait img { aspect-ratio: 4 / 5; }
.jh-photo--square img { aspect-ratio: 1 / 1; }
.jh-photo--card img { aspect-ratio: 4 / 3; }

/* ---------- service cards ---------- */
.jh-cards { gap: clamp(1.25rem, 2.5vw, 1.75rem) !important; }
.jh-card { display: flex; flex-direction: column; gap: 0.85rem; }
.jh-card > * { margin: 0 !important; }
.jh-card h3 { font-size: 1.2rem; }
.jh-card p { font-size: 0.95rem; }
.jh-more { margin-top: auto !important; padding-top: 0.35rem; }
.jh-more a {
	font-family: var(--jh-display);
	font-size: 0.76rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--jh-tan-deep);
	text-decoration: none;
	border-bottom: 1px solid var(--jh-rule);
	padding-bottom: 0.15rem;
}
.jh-more a:hover { border-bottom-color: var(--jh-tan-deep); }

/* four cards: 4 → 2 → 1 columns */
@media (max-width: 64rem) and (min-width: 782px) {
	.jh-cards.wp-block-columns { flex-wrap: wrap !important; }
	.jh-cards > .wp-block-column { flex-basis: calc(50% - 1rem) !important; }
}

/* ---------- testimonials ---------- */
.jh-reviews { gap: clamp(1rem, 2.5vw, 1.5rem) !important; }
.jh-review {
	background: var(--wp--preset--color--white);
	color: var(--jh-ink);
	padding: clamp(1.25rem, 3vw, 1.75rem) !important;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.jh-review > * { margin: 0 0 1rem !important; }
.jh-review > *:last-child { margin-bottom: 0 !important; margin-top: auto !important; }
.jh-stars { color: var(--wp--preset--color--gold); letter-spacing: 3px; font-size: 1.05rem; }
.jh-review-author {
	font-family: var(--jh-display);
	font-weight: 500;
	font-size: 0.95rem;
}

/* ---------- small print ---------- */
.jh-area { font-size: 0.85rem; letter-spacing: 0.03em; opacity: 0.85; }

/* ---------- button styles ---------- */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--jh-tan-deep);
	border: 1px solid var(--jh-tan-deep);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--jh-tan-deep);
	color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-on-tan .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--jh-tan-deep);
}
.wp-block-button.is-style-on-tan .wp-block-button__link:hover {
	background: var(--jh-ink);
	color: var(--wp--preset--color--white);
}
.wp-block-button__link { transition: background 0.18s ease, color 0.18s ease; }

/* ---------- header ---------- */
.jh-header { border-bottom: 1px solid var(--jh-rule); }
.jh-header .wp-block-site-logo img { width: auto; max-height: 72px; }
.jh-header .wp-block-navigation a { text-decoration: none; }
.jh-header .wp-block-navigation .current-menu-item > a,
.jh-header .wp-block-navigation a:hover { text-decoration: underline; text-decoration-color: var(--jh-tan-deep); text-underline-offset: 6px; }
.jh-header .jh-nav-cta > a {
	background: var(--jh-tan-deep);
	color: var(--wp--preset--color--white) !important;
	padding: 0.6rem 1.25rem !important;
	font-size: 0.78rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	font-weight: 500;
}
.jh-header .jh-nav-cta > a:hover { background: var(--jh-ink); text-decoration: none; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }

/* ---------- footer ---------- */
.jh-footer { border-top: 1px solid var(--jh-rule); font-size: 0.92rem; }
.jh-footer h3 { font-size: 1rem; }
.jh-footer a { color: inherit; }
.jh-footer .jh-copy { font-size: 0.8rem; color: var(--jh-ink-soft); }

/* ---------- blog ---------- */
.jh-post-card { border-top: 1px solid var(--jh-rule); padding-top: 1.5rem; }
.jh-post-card .wp-block-post-title a { text-decoration: none; }
.jh-post-card .wp-block-post-title a:hover { text-decoration: underline; }
.jh-meta { font-size: 0.85rem; color: var(--jh-ink-soft); }
.single .wp-block-post-content h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2.5rem; }
.single .wp-block-post-content h3 { margin-top: 2rem; }
.wp-block-post-content table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.wp-block-post-content th,
.wp-block-post-content td { border: 1px solid var(--jh-rule); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.wp-block-post-content th { background: var(--wp--preset--color--shell); font-weight: 600; }

/* ---------- phones ---------- */
@media (max-width: 781px) {
	/* photo stays below the text on "photo-left" rows when stacked */
	.jh-flip > .wp-block-column:first-child { order: 2; }
	.jh-photo { max-width: 26rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* ==========================================================
   Doula Services page
   ========================================================== */

/* dot bullets */
.jh-dots { list-style: none; padding-left: 0 !important; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.jh-dots li { position: relative; padding-left: 1.05rem; font-size: 0.95rem; line-height: 1.5; }
.jh-dots li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--jh-tan); }
.jh-dots li strong { font-weight: 500; }

/* package cards */
.jh-tiers { gap: 1.25rem !important; align-items: stretch !important; }
.jh-tier {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--jh-rule);
	padding: clamp(1.5rem, 2.5vw, 1.9rem) !important;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.jh-tier > * { margin: 0 !important; }
.jh-tier--featured { border: 2px solid var(--jh-tan-deep); background: var(--wp--preset--color--shell); }
.jh-tier h3 { font-size: 1.3rem; }
.jh-tier .wp-block-buttons { margin-top: auto !important; }
.jh-badge {
	align-self: flex-start;
	font-family: var(--jh-display);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	background: var(--jh-tan-deep);
	padding: 0.3rem 0.6rem;
}
.jh-price {
	font-family: var(--jh-display);
	font-size: 2.1rem;
	font-weight: 500;
	line-height: 1.1;
	color: var(--jh-tan-deep);
	font-variant-numeric: tabular-nums;
}
.jh-price--big { font-size: 2.4rem; }

/* comparison table */
.jh-compare { margin-top: 3rem !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jh-compare table { min-width: 40rem; border-collapse: collapse; width: 100%; font-size: 0.94rem; }
.jh-compare th, .jh-compare td { border: none !important; border-bottom: 1px solid var(--jh-rule) !important; padding: 0.8rem 0.9rem !important; text-align: center; background: none !important; }
.jh-compare thead th { font-family: var(--jh-display); font-weight: 500; border-bottom: 1px solid var(--jh-tan-deep) !important; vertical-align: bottom; }
.jh-compare td:first-child, .jh-compare th:first-child { text-align: left; width: 38%; }
.jh-compare thead th:nth-child(3), .jh-compare td:nth-child(3) { background: var(--wp--preset--color--shell) !important; }
.jh-compare tbody tr:last-child td { border-bottom: none !important; }
.jh-compare thead th strong { display: block; font-size: 1.2rem; font-weight: 500; color: var(--jh-tan-deep); }
.jh-compare figcaption { font-size: 0.82rem; color: var(--jh-ink-soft); text-align: left; }
@media (min-width: 52rem) { .jh-compare figcaption { display: none; } }

/* price rows */
.jh-rows { gap: 0 !important; }
.jh-row { border-top: 1px solid var(--jh-rule); padding: 1.15rem 0 !important; margin: 0 !important; gap: 0.25rem 1.5rem; }
.jh-rows > .jh-row:last-child { border-bottom: 1px solid var(--jh-rule); }
.jh-row h3 { font-size: 1.1rem; }
.jh-row .jh-row-text > * { margin: 0 !important; }
.jh-row .jh-meta { font-size: 0.9rem; }
.jh-row-price { text-align: right; }
.jh-row-price > * { margin: 0 !important; }
.jh-row-price .jh-price { font-size: 1.3rem; }
.jh-save { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jh-tan-deep); }

/* small caps label used inside sections */
.jh-label { font-family: var(--jh-display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--jh-tan-deep); margin-bottom: 0.6rem !important; }

/* note with tan rule */
.jh-note { border-left: 2px solid var(--jh-tan-deep); padding-left: 1rem; font-size: 0.92rem; }

/* scope disclaimer */
.jh-scope { border-top: 1px solid var(--jh-rule); padding-top: 1.5rem; margin-top: 2.5rem !important; max-width: 46rem; }
.jh-scope > * { margin: 0 0 0.55rem !important; }
.jh-scope .jh-label { color: var(--jh-ink-soft); }
.jh-scope p { font-size: 0.87rem; line-height: 1.6; color: var(--jh-ink-soft); }

/* three short points */
.jh-points h3 { font-size: 1rem; }
.jh-points p { font-size: 0.92rem; }
.jh-points .wp-block-column > * { margin: 0 0 0.25rem !important; }

/* FAQ accordions */
.jh-faq { border-top: 1px solid rgba(86, 88, 94, 0.22); gap: 0 !important; }
.jh-faq .wp-block-details { border-bottom: 1px solid rgba(86, 88, 94, 0.22); margin: 0 !important; }
.jh-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 1.15rem 0.15rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--jh-display);
	font-size: clamp(1rem, 2.2vw, 1.12rem);
	font-weight: 500;
	line-height: 1.4;
}
.jh-faq summary::-webkit-details-marker { display: none; }
.jh-faq summary::after { content: "+"; font-weight: 300; font-size: 1.4rem; line-height: 1; color: var(--jh-tan-deep); }
.jh-faq details[open] summary::after { content: "\2212"; }
.jh-faq summary:hover { color: var(--jh-tan-deep); }
.jh-faq .wp-block-details > p { padding: 0 0.15rem; max-width: 44rem; font-size: 0.97rem; margin: 0 0 0.8rem !important; }
.jh-faq .wp-block-details > p:last-child { margin-bottom: 1.35rem !important; }

/* centered closing band */
.jh-center { text-align: center; }
.jh-center .jh-intro { margin-left: auto; margin-right: auto; }

@media (max-width: 781px) {
	.jh-row-price { text-align: left; }
}

/* ==========================================================
   Shared page bits (services + lactation)
   ========================================================== */
.jh-hero-short { padding-bottom: clamp(2rem, 5vw, 3rem) !important; }
.jh-band--flush-top { padding-top: 0 !important; }

/* three-step strip */
.jh-steps { gap: 1px !important; background: rgba(86, 88, 94, 0.2); border: 1px solid rgba(86, 88, 94, 0.2); }
.jh-step { background: var(--wp--preset--color--sage); padding: clamp(1.35rem, 2.5vw, 1.8rem) !important; height: 100%; }
.jh-step > * { margin: 0 0 0.5rem !important; }
.jh-step h3 { font-size: 1.1rem; }
.jh-step p:not(.jh-step-n) { font-size: 0.94rem; }
.jh-step-n { font-family: var(--jh-display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--jh-tan-deep); }

/* two-column bullet grid */
.jh-dots--grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.5rem 2.5rem; max-width: 52rem; margin-left: auto !important; margin-right: auto !important; }
.jh-dots--grid li { font-size: 0.98rem; }
.jh-dots--grid li::before { background: var(--jh-tan-deep); }

.jh-note--center, .jh-scope--center { margin-left: auto !important; margin-right: auto !important; max-width: 42rem; text-align: left; }
.jh-note--center { margin-top: 2rem !important; }
.jh-meta { color: var(--jh-ink-soft); }

/* ==========================================================
   Birth Class page
   ========================================================== */
.jh-narrow > * { max-width: 46rem; }
.jh-narrow { padding-top: clamp(3rem, 9vw, 6.5rem) !important; padding-bottom: clamp(2.5rem, 6vw, 4rem) !important; }
.jh-tagline { font-family: var(--jh-display); font-size: 1.1rem; font-weight: 500; color: var(--jh-tan-deep); }
.jh-notice { display: inline-block; font-family: var(--jh-display); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; background: var(--wp--preset--color--shell); color: var(--jh-tan-deep); padding: 0.6rem 1.1rem; }
.jh-dates { gap: 1px !important; background: var(--jh-rule); border: 1px solid var(--jh-rule); width: fit-content; }
.jh-center .jh-dates { margin-left: auto !important; margin-right: auto !important; background: rgba(255,255,255,.35); border-color: rgba(255,255,255,.35); }
.jh-dates > p { margin: 0 !important; background: var(--wp--preset--color--shell); font-family: var(--jh-display); font-size: 0.95rem; font-weight: 500; padding: 0.7rem 1.1rem; text-align: center; }
.jh-center .jh-dates > p { background: var(--jh-tan); color: var(--wp--preset--color--white); }
.has-tan-background-color .jh-meta { color: var(--wp--preset--color--white); opacity: 0.88; }
.jh-photo--wide { max-width: 40rem !important; margin-top: 2rem !important; }
.jh-photo--wide img { aspect-ratio: 16 / 9; object-position: top center; }
.jh-photo--headshot { max-width: 11rem !important; }
.jh-photo--headshot img { aspect-ratio: 3 / 4; object-position: top center; }
.jh-photo--tall img { aspect-ratio: 3 / 4; }
.jh-doors { gap: 1px !important; background: var(--jh-rule); border-block: 1px solid var(--jh-rule); }
.jh-door { background: var(--wp--preset--color--white); padding: clamp(1.75rem, 4vw, 2.5rem) !important; height: 100%; }
.jh-door > * { margin: 0 0 0.75rem !important; }
.jh-door h3 { font-size: 1.35rem; }
.jh-door p:not(.jh-eyebrow) { font-size: 0.96rem; }
.jh-dots--left { max-width: 64rem; margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 40rem) { .jh-dates { width: 100%; display: grid !important; grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   About page
   ========================================================== */
.jh-photo--face img { object-position: center 22%; }
.jh-creds { gap: 0 !important; border-top: 1px solid var(--jh-rule); }
.jh-creds > .wp-block-column { border-bottom: 1px solid var(--jh-rule); }
.jh-cred { padding: 1.5rem 1.5rem 1.5rem 0 !important; }
.jh-cred > * { margin: 0 0 0.3rem !important; }
.jh-cred-line { font-size: 1.02rem; }
.jh-cred-line + .jh-cred-line { margin-top: 0.55rem !important; }
.jh-cred .jh-meta { font-size: 0.88rem; }
.jh-helps { gap: 1px !important; background: var(--jh-rule); border: 1px solid var(--jh-rule); }
.jh-helps > .wp-block-columns { gap: 1px !important; margin: 0 !important; }
.jh-help { background: var(--wp--preset--color--white); padding: clamp(1.5rem, 3vw, 2rem) !important; height: 100%; }
.jh-help > * { margin: 0 0 0.6rem !important; }
.jh-help h3 { font-size: 1.18rem; }
.jh-help p:not(.jh-step-n) { font-size: 0.96rem; }
.jh-evidence { margin-top: 2rem !important; padding-top: 1.5rem; border-top: 1px solid var(--jh-rule); max-width: 44rem; font-size: 0.95rem; color: var(--jh-ink-soft); }
.jh-evidence > * { margin: 0 0 0.5rem !important; }
.jh-src { font-size: 0.82rem; }
@media (max-width: 781px) { .jh-helps > .wp-block-columns { gap: 1px !important; } }

/* label boxes follow the paragraph's alignment buttons */
.jh-notice { display: table; }
.jh-notice.has-text-align-center { margin-left: auto !important; margin-right: auto !important; }
.jh-notice.has-text-align-right { margin-left: auto !important; margin-right: 0 !important; }
.jh-narrow > .has-text-align-center,
.jh-narrow > .wp-block-buttons.is-content-justification-center,
.jh-narrow > .wp-block-group.is-content-justification-center { margin-left: auto !important; margin-right: auto !important; }

/* date strip: follow centering on the live site too
   (the editor adds a justification class the live page doesn't always carry) */
.jh-dates.is-content-justification-center,
.jh-narrow:has(> .has-text-align-center) > .jh-dates,
.jh-dates.jh-centered { margin-left: auto !important; margin-right: auto !important; }
.jh-narrow:has(> .has-text-align-center) > .jh-dates { justify-content: center; }

/* narrow left-aligned blocks line up with the 64rem content column,
   not the screen edge and not floating in the middle */
.jh-band:not(.jh-center) > :is(.jh-intro, .jh-scope, .jh-evidence) {
	margin-left: max(0px, calc((100% - 64rem) / 2)) !important;
	margin-right: auto !important;
}
