/*
 * Avono Health: base tokens, typography, buttons and block styles.
 * Colors come from the brand palette. Text colors are contrast-checked:
 * gold-ink #735D3B and muted #6F6152 on light backgrounds, light gold
 * #C8A87A and #B9AB98 on warm black.
 */

:root {
	--av-ink: #2C2218;
	--av-black: #1A140E;
	--av-gold: #A0855A;
	--av-gold-ink: #735D3B;
	--av-lgold: #C8A87A;
	--av-sand: #E8E0D5;
	--av-linen: #F0EBE3;
	--av-parch: #F7F3EE;
	--av-paper: #FBF9F5;
	--av-body: #473C2F;
	--av-muted: #6F6152;
	--av-dk-text: #EDE6DB;
	--av-dk-muted: #B9AB98;
	--av-line: rgba(44, 34, 24, 0.13);
	--av-line-strong: rgba(44, 34, 24, 0.26);
	--av-dk-line: rgba(237, 230, 219, 0.16);

	--av-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--av-sans: "Jost", -apple-system, "Segoe UI", system-ui, sans-serif;

	--av-wrap: 1180px;
	--av-measure: 720px;
	--av-gutter: clamp(1.25rem, 4vw, 2.5rem);
	--av-section: clamp(4rem, 8vw, 7rem);
	--av-radius: 22px;
	--av-radius-sm: 14px;
	--av-header-h: 76px;
	--av-shadow: 0 1px 2px rgba(26, 20, 14, 0.04), 0 18px 40px -22px rgba(26, 20, 14, 0.28);
	--av-shadow-lg: 0 2px 4px rgba(26, 20, 14, 0.05), 0 32px 64px -30px rgba(26, 20, 14, 0.38);
	--av-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	--av-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.4 7.4-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Reset and document ---------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--av-header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--av-parch);
	color: var(--av-body);
	font-family: var(--av-sans);
	font-weight: 350;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

html.av-lock,
html.av-lock body {
	overflow: hidden;
}

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

svg {
	flex-shrink: 0;
}

::selection {
	background: var(--av-lgold);
	color: var(--av-black);
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--av-serif);
	font-weight: 400;
	color: var(--av-ink);
	letter-spacing: -0.012em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.5rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
}

h2 {
	font-size: clamp(2rem, 1.45rem + 2.2vw, 2.9rem);
	line-height: 1.1;
}

h3 {
	font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
	line-height: 1.22;
}

h4 {
	font-size: 1.25rem;
	line-height: 1.3;
}

h1 em,
h2 em {
	font-style: italic;
	color: var(--av-gold-ink);
}

p {
	margin: 0 0 1.1em;
	text-wrap: pretty;
}

strong,
b {
	font-weight: 500;
	color: var(--av-ink);
}

a {
	color: var(--av-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s var(--av-ease);
}

a:hover {
	color: var(--av-gold-ink);
}

small {
	font-size: 0.85em;
}

/* ---------- Accessibility ---------- */

[hidden] {
	display: none !important;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.av-skip {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--av-ink);
	color: var(--av-parch);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 500;
}

.av-skip:focus {
	top: 1rem;
	color: var(--av-parch);
}

:focus-visible {
	outline: 2px solid var(--av-gold-ink);
	outline-offset: 3px;
	border-radius: 4px;
}

.av-main:focus {
	outline: none;
}

.av-hero--dark :focus-visible,
.av-cta--dark :focus-visible,
.av-section--steps :focus-visible,
.av-footer :focus-visible,
.av-program--dark :focus-visible {
	outline-color: var(--av-lgold);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Buttons ---------- */

.av-btn,
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 3.1rem;
	padding: 0.85rem 1.6rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--av-sans);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s var(--av-ease), color 0.2s var(--av-ease), border-color 0.2s var(--av-ease), transform 0.2s var(--av-ease), box-shadow 0.2s var(--av-ease);
}

.av-btn:active,
.wp-block-button__link:active {
	transform: translateY(1px);
}

.av-btn__icon {
	width: 1em;
	height: 1em;
	opacity: 0.85;
}

.av-btn--sm {
	min-height: 2.6rem;
	padding: 0.6rem 1.15rem;
	font-size: 0.9375rem;
}

/* Primary: ink on light backgrounds. */
.av-btn--primary,
.wp-block-button__link,
.wp-block-button.is-style-av-primary .wp-block-button__link {
	background: var(--av-ink);
	border-color: var(--av-ink);
	color: var(--av-parch);
}

.av-btn--primary:hover,
.wp-block-button__link:hover,
.wp-block-button.is-style-av-primary .wp-block-button__link:hover {
	background: var(--av-black);
	border-color: var(--av-black);
	color: var(--av-parch);
	box-shadow: 0 10px 24px -14px rgba(26, 20, 14, 0.6);
}

/* Gold: primary action on dark backgrounds. */
.av-btn--gold,
.wp-block-button.is-style-av-gold .wp-block-button__link {
	background: var(--av-lgold);
	border-color: var(--av-lgold);
	color: var(--av-black);
}

.av-btn--gold:hover,
.wp-block-button.is-style-av-gold .wp-block-button__link:hover {
	background: #D6BA8F;
	border-color: #D6BA8F;
	color: var(--av-black);
}

/* Ghost: secondary on light backgrounds. */
.av-btn--ghost,
.wp-block-button.is-style-av-ghost .wp-block-button__link {
	background: transparent;
	border-color: var(--av-line-strong);
	color: var(--av-ink);
}

.av-btn--ghost:hover,
.wp-block-button.is-style-av-ghost .wp-block-button__link:hover {
	background: rgba(44, 34, 24, 0.05);
	border-color: var(--av-ink);
	color: var(--av-ink);
	box-shadow: none;
}

/* Ghost light: secondary on dark backgrounds. */
.av-btn--ghost-light,
.wp-block-button.is-style-av-ghost-light .wp-block-button__link {
	background: transparent;
	border-color: rgba(237, 230, 219, 0.4);
	color: var(--av-dk-text);
}

.av-btn--ghost-light:hover,
.wp-block-button.is-style-av-ghost-light .wp-block-button__link:hover {
	background: rgba(237, 230, 219, 0.08);
	border-color: var(--av-dk-text);
	color: #fff;
	box-shadow: none;
}

/* Text link style button. */
.wp-block-button.is-style-av-text .wp-block-button__link,
.av-textlink {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	min-height: 0;
	padding: 0.25rem 0;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--av-ink);
	font-family: var(--av-sans);
	font-size: 0.975rem;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--av-gold);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
	cursor: pointer;
}

.wp-block-button.is-style-av-text .wp-block-button__link:hover,
.av-textlink:hover {
	background: none;
	color: var(--av-gold-ink);
	box-shadow: none;
	text-decoration-color: currentColor;
}

.wp-block-button.is-style-av-text .wp-block-button__link::after {
	content: "\2192";
	text-decoration: none;
	display: inline-block;
	transition: transform 0.2s var(--av-ease);
}

.wp-block-button.is-style-av-text .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.wp-block-buttons > .wp-block-button {
	margin: 0;
}

.av-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
}

/* ---------- Text styles ---------- */

.is-style-av-lead,
.av-lead {
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.65;
	color: var(--av-body);
	max-width: 44em;
}

.av-kicker,
.is-style-av-kicker {
	margin: 0 0 1.1rem;
	font-family: var(--av-sans);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--av-gold-ink);
}

.av-kicker a {
	color: inherit;
	text-decoration: none;
}

.av-kicker a:hover {
	text-decoration: underline;
}

.is-style-av-fineprint,
.av-fineprint {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--av-muted);
}

.av-microcopy {
	margin: 0.9rem 0 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--av-muted);
	max-width: 40em;
}

.av-notice {
	padding: 1rem 1.25rem;
	border: 1px solid var(--av-line-strong);
	border-radius: var(--av-radius-sm);
	background: var(--av-linen);
}

/* Review-required markers (hidden site-wide from Avono > Settings). */
.is-style-av-review-flag,
.av-review-flag {
	position: relative;
	margin: 1.25rem 0;
	padding: 0.8rem 1rem 0.8rem 2.6rem;
	border: 1px dashed #B07D12;
	border-radius: 10px;
	background: #FFF4D6;
	color: #5B4308;
	font-size: 0.875rem;
	line-height: 1.5;
	max-width: 60em;
}

.is-style-av-review-flag::before,
.av-review-flag::before {
	content: "!";
	position: absolute;
	left: 0.85rem;
	top: 0.85rem;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: #B07D12;
	color: #fff;
	font-weight: 600;
	font-size: 0.75rem;
	line-height: 1.15rem;
	text-align: center;
}

.is-style-av-review-flag strong,
.av-review-flag strong {
	color: #5B4308;
}

.av-editor-note {
	padding: 1rem 1.25rem;
	border: 1px dashed var(--av-line-strong);
	border-radius: 10px;
	background: var(--av-linen);
	color: var(--av-muted);
	font-size: 0.875rem;
}

/* ---------- Tags ---------- */

.av-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.7rem;
	border: 1px solid var(--av-line-strong);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--av-body);
	background: transparent;
	white-space: nowrap;
}

.av-tag--gold {
	border-color: rgba(115, 93, 59, 0.45);
	background: rgba(200, 168, 122, 0.18);
	color: var(--av-gold-ink);
}

/* ---------- List styles ---------- */

ul.is-style-av-checks,
ul.av-dashes,
ol.is-style-av-steps,
ul.is-style-av-features,
ul.av-chips,
ul.av-guide-links,
ul.av-considerations {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.is-style-av-checks li {
	position: relative;
	padding: 0.2rem 0 0.2rem 2rem;
	margin: 0 0 0.55rem;
	line-height: 1.55;
}

ul.is-style-av-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3rem;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 50%;
	background: var(--av-gold-ink);
	-webkit-mask: var(--av-check) center / 0.95rem no-repeat;
	mask: var(--av-check) center / 0.95rem no-repeat;
}

ul.is-style-av-checks li::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3rem;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 50%;
	border: 1px solid rgba(115, 93, 59, 0.35);
}

ul.av-dashes li {
	position: relative;
	padding: 0.2rem 0 0.2rem 2rem;
	margin: 0 0 0.55rem;
	line-height: 1.55;
	color: var(--av-muted);
}

ul.av-dashes li::before {
	content: "";
	position: absolute;
	left: 0.3rem;
	top: 0.95rem;
	width: 0.75rem;
	height: 1px;
	background: var(--av-muted);
}

ul.av-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

ul.av-chips li {
	padding: 0.45rem 0.95rem;
	border: 1px solid var(--av-line-strong);
	border-radius: 999px;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
}

/* Numbered steps: horizontal timeline on wide screens. */
ol.is-style-av-steps {
	counter-reset: av-step;
	display: grid;
	gap: 0;
}

ol.is-style-av-steps li {
	counter-increment: av-step;
	position: relative;
	padding: 0 0 2rem 4rem;
	line-height: 1.6;
}

ol.is-style-av-steps li::before {
	content: counter(av-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.6rem;
	height: 2.6rem;
	border: 1px solid var(--av-gold);
	border-radius: 50%;
	font-family: var(--av-serif);
	font-size: 1.15rem;
	line-height: 2.5rem;
	text-align: center;
	color: var(--av-gold-ink);
	background: var(--av-parch);
	z-index: 1;
}

ol.is-style-av-steps li::after {
	content: "";
	position: absolute;
	left: 1.3rem;
	top: 2.6rem;
	bottom: 0;
	width: 1px;
	background: var(--av-line-strong);
}

ol.is-style-av-steps li:last-child::after {
	display: none;
}

ol.is-style-av-steps li strong {
	display: block;
	margin-bottom: 0.3rem;
	font-family: var(--av-serif);
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.3;
}

/* Feature grid. */
ul.is-style-av-features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 2.25rem 2.5rem;
}

ul.is-style-av-features li {
	padding-top: 1.25rem;
	border-top: 1px solid var(--av-line-strong);
	font-size: 0.975rem;
	line-height: 1.6;
	color: var(--av-muted);
}

ul.is-style-av-features li strong {
	display: block;
	margin-bottom: 0.45rem;
	font-family: var(--av-serif);
	font-size: 1.3rem;
	font-weight: 400;
	line-height: 1.25;
	color: var(--av-ink);
}

/* ---------- FAQ (details) ---------- */

.wp-block-details.is-style-av-faq {
	border-bottom: 1px solid var(--av-line-strong);
	padding: 0;
	margin: 0;
}

.wp-block-details.is-style-av-faq:first-child {
	border-top: 1px solid var(--av-line-strong);
}

.wp-block-details.is-style-av-faq summary {
	position: relative;
	list-style: none;
	padding: 1.35rem 3rem 1.35rem 0;
	font-family: var(--av-serif);
	font-size: 1.2rem;
	line-height: 1.35;
	color: var(--av-ink);
	cursor: pointer;
}

.wp-block-details.is-style-av-faq summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-av-faq summary::before,
.wp-block-details.is-style-av-faq summary::after {
	content: "";
	position: absolute;
	right: 0.35rem;
	top: 50%;
	width: 14px;
	height: 1.5px;
	background: var(--av-gold-ink);
	transition: transform 0.25s var(--av-ease);
}

.wp-block-details.is-style-av-faq summary::after {
	transform: rotate(90deg);
}

.wp-block-details.is-style-av-faq[open] summary::after {
	transform: rotate(0deg);
}

.wp-block-details.is-style-av-faq summary:hover {
	color: var(--av-gold-ink);
}

.wp-block-details.is-style-av-faq > :not(summary) {
	margin: 0 0 1.25rem;
	max-width: 42em;
	color: var(--av-body);
}

/* ---------- Callout ---------- */

.wp-block-group.is-style-av-callout {
	position: relative;
	padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--av-radius);
	background: var(--av-linen);
	border: 1px solid var(--av-line);
}

.wp-block-group.is-style-av-callout > :last-child {
	margin-bottom: 0;
}

.av-callout__lead {
	font-family: var(--av-serif);
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
	line-height: 1.45;
	color: var(--av-ink);
}

/* ---------- Headings with rule ---------- */

.is-style-av-rule {
	position: relative;
	padding-top: 1.35rem;
}

.is-style-av-rule::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 2.5rem;
	height: 2px;
	background: var(--av-gold);
}

/* ---------- Quote ---------- */

.av-quote {
	position: relative;
	margin: 0;
	padding-top: 2.4rem;
	font-family: var(--av-serif);
	font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem);
	font-style: italic;
	line-height: 1.28;
	color: var(--av-ink);
}

.av-quote::before {
	content: "\201C";
	position: absolute;
	left: -0.05em;
	top: -0.2em;
	font-size: 4.5rem;
	line-height: 1;
	color: var(--av-gold);
	font-style: normal;
}

/* ---------- Logo lockup (per brand guidelines) ---------- */

.av-header__brand,
.av-footer__brand a,
.av-drawer__head a {
	text-decoration: none;
}

.av-lockup {
	display: inline-flex;
	align-items: center;
	gap: 0.85em;
	font-size: 16px;
	line-height: 1;
	color: var(--av-ink);
}

.av-lockup--linen {
	color: var(--av-linen);
}

.av-lockup__rule {
	width: 1px;
	height: 1.9em;
	background: currentColor;
	opacity: 0.2;
}

.av-lockup__words {
	display: flex;
	flex-direction: column;
}

.av-lockup__name {
	font-family: var(--av-serif);
	font-size: 1.45em;
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1;
}

.av-lockup__sub {
	margin-top: 0.3em;
	font-family: var(--av-sans);
	font-size: 0.5em;
	font-weight: 400;
	letter-spacing: 0.5em;
	text-transform: uppercase;
	color: var(--av-gold-ink);
}

.av-lockup--linen .av-lockup__sub {
	color: var(--av-lgold);
}

.av-lockup--sm {
	font-size: 15px;
}

.av-lockup--md {
	font-size: 18px;
}

.av-lockup--lg {
	font-size: 24px;
}
