/*
 * Inner Harmony Retreat — theme 3.12.0-test overlay.
 * Loads AFTER the compiled Vite stylesheet (see functions.php, handle "ihr-theme-312").
 * Implements the approved quick wins and the calm, home-studio tune-up described in DESIGN.md.
 * Palette is unchanged: cream paper, forest-green ink, earth tones, one terracotta for primary buttons.
 */

:root {
	--ihr-earth: hsl(150 12% 30%);          /* quiet sage-green for icons, bullets, small labels */
	--ihr-gold-on-dark: hsl(28 60% 78%);    /* labels/links on forest green: 5.7:1 to 8.6:1 */
}

/* ---------- 1. Reveal: visible by default, motion only as an enhancement ---------- */
.ihr-reveal,
.ihr-reveal.is-in {
	opacity: 1;
	transform: none;
	transition: none;
}
@keyframes ihr-rise {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.ihr-reveal-ready .ihr-reveal.is-in:not(.ihr-noanim) {
		animation: ihr-rise .8s cubic-bezier(.2, .7, .2, 1) both;
	}
	.ihr-reveal-ready .ihr-reveal.ihr-d1.is-in:not(.ihr-noanim) { animation-delay: .08s; }
	.ihr-reveal-ready .ihr-reveal.ihr-d2.is-in:not(.ihr-noanim) { animation-delay: .16s; }
	.ihr-reveal-ready .ihr-reveal.ihr-d3.is-in:not(.ihr-noanim) { animation-delay: .24s; }
}

/* ---------- 2. Logo tagline: 10px -> 12.5px ---------- */
.ihr-logo small {
	font-size: 12.5px;
	letter-spacing: .2em;
	margin-top: 7px;
}

/* ---------- 3. Contrast on forest green (footer headings, links) ---------- */
footer.bg-primary .text-accent { color: var(--ihr-gold-on-dark); }
footer.bg-primary .hover\:text-accent:hover,
footer.bg-primary .group:hover .group-hover\:text-accent { color: var(--ihr-gold-on-dark); }
footer.bg-primary p.text-xs.uppercase { letter-spacing: .08em; }

/* Contact form fields: light field, dark placeholder (was #5d534c on #938576, 2.1:1; now 7.2:1) */
input.bg-input,
textarea.bg-input {
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	border: 1px solid hsl(var(--input));
}
input.bg-input::placeholder,
textarea.bg-input::placeholder {
	color: hsl(var(--muted-foreground));
	opacity: 1;
}

/* ---------- 4. Footer disclaimer: readable measure (~75 characters) ---------- */
/* DM Sans "0" is wide: 1ch is about 1.5 average characters, so 50ch is about 75 characters. */
footer.bg-primary p.text-xs.leading-relaxed {
	max-width: 50ch;
	font-size: 13px;
}

/* ---------- 5. Services category tabs on phones: wrap, nothing clipped ---------- */
@media (max-width: 767px) {
	.ihr-svc-tabs { position: static; }
	.ihr-svc-tabs > div::after { content: none; display: none; }
	.ihr-svc-tabs ul {
		flex-wrap: wrap;
		justify-content: center;
		overflow: visible;
		gap: 8px;
		margin: 0;
		padding: 12px 0;
	}
	.ihr-svc-tabs li { flex-shrink: 1; }
	.ihr-svc-tabs a {
		min-height: 44px;
		padding: 0 16px;
		border: 1px solid hsl(var(--border));
		background: hsl(var(--card));
	}
	.ihr-svc-tabs a[aria-current="true"] { border-color: hsl(var(--primary) / .45); }
	section.scroll-mt-44 { scroll-margin-top: 96px; }
}

/* ---------- 6. Phone book + call bar: always visible on small screens (Rocky, 9:21 AM).
               Spacer + scroll-padding keep it from covering prices or buttons. ---------- */
@media (max-width: 767px) {
	html { scroll-padding-bottom: 96px; }
	.ihr-mbar-spacer {
		display: block;
		height: 88px;
	}
	.ihr-mbar {
		display: flex;
		transform: none;
		visibility: visible;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ihr-mbar { transition: none; }
}

/* ---------- 6b. Photo frames: fill the 4:5 box even when height:100% would collapse ---------- */
.ihr-media-tall,
.ihr-portrait {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	background: var(--ihr-sand, #f3ece3);
	overflow: hidden;
}
.ihr-media-tall > .ihr-img,
.ihr-portrait > .ihr-img,
.ihr-media-tall > picture,
.ihr-portrait > picture,
.ihr-media-tall > picture > img,
.ihr-portrait > picture > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- 7. Kickers and accents (DESIGN.md) ---------- */
.ihr-eyebrow { display: none; }                 /* safety net; IhrEye now renders nothing */
.ihr-hero__byline {
	margin: 18px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: hsl(38 25% 84%);
}

/* Rounded cards: no rust top/side stripe; a quiet full hairline instead */
.ihr-pack,
.ihr-pack--rr {
	border: 1px solid var(--ihr-line);
	border-top: 1px solid var(--ihr-line);
	box-shadow: 0 14px 32px -26px rgb(0 0 0 / .35);
}
.ihr-pack__eye {
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ihr-earth);
}
.ihr-pack__list b { color: var(--ihr-green); }

/* Terracotta is for primary buttons only; icons and bullets use sage-green ink */
.ihr-trust svg,
.ihr-card svg,
.ihr-info svg,
.ihr-tool svg { color: var(--ihr-earth); }
.ihr-checks li::before,
.ihr-card ul li::before,
.ihr-pack__list--steps li::before { background: var(--ihr-earth); }
.ihr-faq summary::after { color: var(--ihr-earth); }
.ihr-faq summary:focus-visible { outline-color: var(--ihr-green); }
.ihr-tool__sub {
	font-size: 14px;
	letter-spacing: .02em;
	text-transform: none;
	color: var(--ihr-earth);
}
.ihr-trust span { letter-spacing: .06em; }
.ihr-sec--green .ihr-card svg,
.ihr-sec--deep .ihr-card svg,
.ihr-sec--deep .ihr-tool svg,
.ihr-sec--green .ihr-tool svg,
.ihr-sec--deep .ihr-tool__sub,
.ihr-sec--green .ihr-tool__sub { color: var(--ihr-gold-on-dark); }

/* ---------- 8. Home-studio scale: smaller display type, generous air ---------- */
.ihr-h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.06; letter-spacing: -.02em; }
.ihr-hero--page .ihr-h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; }
.ihr-h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }
.ihr-hero { min-height: min(calc(100vh - 84px), 760px); }
.ihr-hero--page { min-height: min(calc(86vh - 84px), 620px); }
.ihr-hero__img { object-position: 46% 64%; }
.ihr-cite { letter-spacing: 0; }

/* ---------- 9. Comfortable line length (aim: under ~78 characters) ----------
   In DM Sans 1ch is roughly 1.5 average characters, hence the small ch values. */
.ihr-note { max-width: 52ch; }
.ihr-pack__text { max-width: 50ch; }
main p { max-width: 54ch; }
main .text-center p,
main p.text-center,
main .ihr-center p { margin-left: auto; margin-right: auto; }
.ihr-legacy p.text-base,
.ihr-legacy p.text-sm { max-width: 52ch; }
.ihr-legacy .text-center > p { margin-left: auto; margin-right: auto; }
