/*
Theme Name: Natural Alchemy
Description: One-page theme for Natural Alchemy — pure essences of nature. Cards and footer badges after the Mountain Rose Herbs journal style.
Version: 1.0.0
Author: MVK
Text Domain: natural-alchemy
Requires PHP: 7.4
*/

:root {
	--na-ground: #ffffff;
	--na-cream: #f6f4ee;
	--na-ink: #221d17;
	--na-text: #34302a;
	--na-muted: #6b6357;
	--na-accent: #8b2e1e;
	--na-olive: #5f6b45;
	--na-pill: #8a7a58;
	--na-taupe: #e9e1d8;
	--na-peach: #f5dfcb;
	--na-sage: #e1e5d5;
	--na-band: #dcd6c8;
	--na-line: #dcd3c6;
	--na-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
	--na-sans: 'Karla', 'Helvetica Neue', Arial, sans-serif;
	--na-shadow: 0 30px 15px -25px rgba(45, 32, 20, .28), 0 0 30px rgba(45, 32, 20, .10);
	--na-radius: 10px;
	--na-wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--na-ground);
	color: var(--na-text);
	font: 400 17px/1.68 var(--na-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--na-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--na-accent); outline-offset: 3px; border-radius: 3px; }
strong { color: var(--na-ink); font-weight: 700; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.na-skip { position: absolute; left: -9999px; top: 8px; background: var(--na-ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.na-skip:focus { left: 16px; }

/* ---------- top bar & header ---------- */
.na-topbar { background: var(--na-olive); color: #f3f1e8; text-align: center; padding-inline: 16px; }
.na-topbar p { margin: 0; padding-block: 7px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.na-header { background: var(--na-cream); border-bottom: 1px solid var(--na-line); padding-inline: 24px; }
.na-header__inner {
	max-width: var(--na-wrap); margin-inline: auto; min-height: 84px;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.na-header__nav { display: flex; gap: 26px; }
.na-header__nav--right { justify-content: flex-end; }
.na-header__nav a {
	color: var(--na-ink); text-decoration: none; font-size: 13px; font-weight: 500;
	letter-spacing: .1em; text-transform: uppercase; padding-block: 6px; border-bottom: 1px solid transparent;
}
.na-header__nav a:hover { border-bottom-color: var(--na-ink); }

.na-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--na-ink); }
.na-logo img { width: 40px; height: 40px; }
.na-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.na-logo__name { font-family: var(--na-serif); font-size: 29px; font-weight: 600; letter-spacing: .01em; }
.na-logo__tag { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--na-muted); margin-top: 4px; }

/* ---------- hero ---------- */
.na-hero { position: relative; min-height: clamp(440px, 64vh, 640px); display: grid; place-items: end center; overflow: hidden; background: #3b3127; }
.na-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.na-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 18, 12, .05) 30%, rgba(25, 18, 12, .62) 100%); }
.na-hero__text { position: relative; max-width: 900px; padding: 0 24px 56px; text-align: center; color: #fff; }
.na-hero__title { margin: 0; font-family: var(--na-serif); font-weight: 600; line-height: 1.04; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.na-hero__title-main { display: block; font-size: clamp(38px, 5.6vw, 68px); }
.na-hero__title-sub { display: block; margin-top: 14px; font-family: var(--na-sans); font-size: clamp(13px, 1.5vw, 16px); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; }
.na-hero__lead { margin: 18px 0 20px; font-family: var(--na-serif); font-style: italic; font-size: clamp(20px, 2.3vw, 26px); }
.na-pill { display: inline-block; background: var(--na-pill); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; }

/* ---------- section chips (sticky) ---------- */
.na-sections { position: sticky; top: 0; z-index: 20; background: rgba(246, 244, 238, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--na-line); }
.na-sections__list {
	position: relative; max-width: var(--na-wrap); margin-inline: auto; display: flex; gap: 8px;
	overflow-x: auto; padding: 12px 24px; scrollbar-width: none;
}
.na-sections__list::-webkit-scrollbar { display: none; }
.na-sections a {
	flex: none; text-decoration: none; color: var(--na-ink); font-size: 13.5px; font-weight: 500;
	border: 1px solid var(--na-line); background: #fff; border-radius: 999px; padding: 6px 14px; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.na-sections a:hover { border-color: var(--na-pill); }
.na-sections a.is-current { background: var(--na-accent); border-color: var(--na-accent); color: #fff; }

/* ---------- main column ---------- */
.na-main { padding: 64px 24px 80px; }
.na-main > * { max-width: var(--na-wrap); margin-inline: auto; }

/* intro */
.na-intro.wp-block-group { max-width: 760px; margin: 0 auto 72px; text-align: center; }
.na-intro .wp-block-group__inner-container > :first-child, .na-closing .wp-block-group__inner-container > :first-child { margin-top: 0; }
.na-intro p { margin: 0 0 18px; font-size: 19px; }
.na-intro .na-quote { margin-top: 30px; }
.na-quote { font-family: var(--na-serif); font-style: italic; font-size: clamp(23px, 2.6vw, 29px); line-height: 1.35; color: var(--na-ink); }
.na-intro .na-quote::before {
	content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 14px;
	background: url("assets/img/mark.svg") center / contain no-repeat;
}

/* cards */
.na-card.wp-block-group { padding: 36px; margin: 0 auto 48px; border-radius: var(--na-radius); box-shadow: var(--na-shadow); }
/* classic themes wrap group content in .wp-block-group__inner-container: the grid lives there */
.na-card > .wp-block-group__inner-container {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: start;
}
.na-card > .wp-block-group__inner-container > * { margin: 0; }
.na-card--taupe { background: var(--na-taupe); }
.na-card--peach { background: var(--na-peach); }
.na-card--sage { background: var(--na-sage); }
.na-card--flip > .wp-block-group__inner-container { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.na-card--flip .na-card__media { order: 2; }
.na-card__media.wp-block-image { position: sticky; top: 84px; margin: 0; }
.na-card__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--na-radius); box-shadow: 0 18px 30px -18px rgba(40, 28, 16, .55); }
.na-card__body > .wp-block-group__inner-container > * { margin-top: 0; margin-bottom: 16px; }
.na-card__body > .wp-block-group__inner-container > *:last-child { margin-bottom: 0; }

.na-card h2, .na-closing h2 {
	font-family: var(--na-serif); font-weight: 600; color: var(--na-accent);
	font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; letter-spacing: .005em; text-wrap: balance; margin-bottom: 18px;
}
.na-label {
	font-size: 12.5px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--na-olive); margin-top: 26px !important; margin-bottom: 12px !important;
}

/* lists, shared reset */
.na-card ul, .na-card ol, .na-closing ul { padding: 0; margin-left: 0; list-style: none; }

/* key points: leaf bullets */
.na-keypoints li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.na-keypoints li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 17px; height: 17px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b45' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 19c0-8 5-13 14-14-1 9-6 14-14 14z'/%3E%3Cpath d='M5 19c3-3 6-6 9-8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* warm / cool attars */
.na-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.na-duo li { background: rgba(255, 255, 255, .62); border-radius: 8px; padding: 18px 18px 16px; font-size: 16px; line-height: 1.55; }
.na-duo li strong { display: block; font-family: var(--na-serif); font-size: 23px; font-weight: 600; margin-bottom: 4px; }
.na-duo li:first-child strong { color: #a2512a; }
.na-duo li:last-child strong { color: #3f6c7a; }
.na-duo li::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; margin-bottom: 12px; }
.na-duo li:first-child::before { background: #c9844f; }
.na-duo li:last-child::before { background: #7aa3b1; }

/* numbered steps */
.na-steps { counter-reset: na-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.na-steps li { counter-increment: na-step; background: rgba(255, 255, 255, .62); border-radius: 8px; padding: 16px 18px; font-size: 16px; line-height: 1.55; }
.na-steps li::before { content: counter(na-step); display: block; font-family: var(--na-serif); font-size: 34px; font-weight: 600; line-height: 1; color: var(--na-accent); margin-bottom: 8px; }

/* small tiles: classic examples */
.na-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.na-pairs li { background: rgba(255, 255, 255, .62); border-radius: 8px; padding: 12px 14px 12px 34px; position: relative; font-size: 15.5px; line-height: 1.45; }
.na-pairs li::before { content: ""; position: absolute; left: 14px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--na-olive); }

/* chips */
.na-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.na-chips li { background: rgba(255, 255, 255, .72); border: 1px solid rgba(95, 107, 69, .22); border-radius: 999px; padding: 5px 14px; font-size: 15px; line-height: 1.5; }

/* definitions: botanical toolkit, resins */
.na-defs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.na-defs li { background: rgba(255, 255, 255, .62); border-radius: 8px; padding: 16px 18px; font-size: 15.5px; line-height: 1.55; }
.na-defs li strong { display: block; font-family: var(--na-serif); font-size: 22px; font-weight: 600; color: var(--na-accent); margin-bottom: 2px; }

/* checklist */
.na-checklist li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.na-checklist li::before {
	content: ""; position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%; background: var(--na-olive)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* callout */
.na-note { background: rgba(255, 255, 255, .62); border-radius: 8px; padding: 16px 18px 16px 52px; position: relative; }
.na-note::before {
	content: ""; position: absolute; left: 16px; top: 18px; width: 22px; height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b2e1e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s-6 6.6-6 11a6 6 0 0 0 12 0c0-4.4-6-11-6-11z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* closing */
.na-closing.wp-block-group { max-width: 780px; margin: 72px auto 0; text-align: center; }
.na-closing p { font-size: 18.5px; margin: 0 0 18px; }
.na-closing .na-quote { margin-top: 28px; color: var(--na-accent); }

/* ---------- footer ---------- */
.na-badges { background: var(--na-band); padding: 44px 24px 40px; }
.na-badges__list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--na-wrap); display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 34px; }
.na-badge { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 118px; text-align: center; }
.na-badge__ring {
	width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
	background: #f7f4ec; color: var(--na-olive); border: 1.5px solid var(--na-olive); box-shadow: inset 0 0 0 4px #f7f4ec, inset 0 0 0 5px rgba(95, 107, 69, .35);
}
.na-badge__label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3f4630; line-height: 1.35; }

.na-footer { background: var(--na-cream); }
.na-footer__art { height: clamp(90px, 13vw, 170px); background: url("assets/img/footer-botanicals.webp") center bottom / cover no-repeat; }
.na-footer__inner { max-width: var(--na-wrap); margin-inline: auto; padding: 28px 24px 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.na-footer__brand img { margin: 0 auto 8px; }
.na-footer__name { margin: 0 0 4px; font-family: var(--na-serif); font-size: 26px; font-weight: 600; color: var(--na-ink); }
.na-footer__line { margin: 0; font-size: 14.5px; color: var(--na-muted); font-style: italic; }
.na-footer__links { display: flex; gap: 26px; margin-top: 6px; }
.na-footer__links a { color: var(--na-ink); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--na-line); padding-bottom: 2px; }
.na-footer__links a:hover { border-bottom-color: var(--na-ink); }
.na-footer__copy { margin: 4px 0 0; font-size: 13px; color: var(--na-muted); }

/* ---------- cookie notice ---------- */
.na-cookie {
	position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50;
	max-width: 440px; display: flex; align-items: center; gap: 14px;
	background: var(--na-ink); color: #f1ede4; border-radius: 10px; padding: 14px 16px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
}
.na-cookie[hidden] { display: none; }
.na-cookie p { margin: 0; font-size: 14px; line-height: 1.45; }
.na-cookie a { color: #f3d9c3; }
.na-cookie__ok { flex: none; font: 700 13px/1 var(--na-sans); letter-spacing: .08em; background: var(--na-peach); color: var(--na-ink); border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.na-cookie__ok:hover { background: #fff; }

/* ---------- inner pages ---------- */
.na-main--page { padding-top: 56px; }
.na-page { max-width: 760px; margin-inline: auto; }
.na-page__title { font-family: var(--na-serif); font-weight: 600; color: var(--na-accent); font-size: clamp(36px, 4.4vw, 52px); line-height: 1.08; margin: 0 0 24px; }
.na-page__body h2 { font-family: var(--na-serif); font-weight: 600; font-size: 28px; color: var(--na-ink); margin: 34px 0 10px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.na-header__nav { display: none; }
	.na-header__inner { grid-template-columns: 1fr; justify-items: center; min-height: 72px; }
	.na-card.wp-block-group { padding: 24px; }
	.na-card > .wp-block-group__inner-container, .na-card--flip > .wp-block-group__inner-container { grid-template-columns: 1fr; gap: 26px; }
	.na-card--flip .na-card__media { order: 0; }
	.na-card__media.wp-block-image { position: static; }
	.na-card__media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
	body { font-size: 16.5px; }
	.na-main { padding: 44px 16px 60px; }
	.na-hero__text { padding-bottom: 40px; }
	.na-intro p { font-size: 17.5px; text-align: left; }
	.na-intro .na-quote { text-align: center; }
	.na-duo, .na-defs { grid-template-columns: 1fr; }
	.na-card.wp-block-group { padding: 20px 18px; margin-bottom: 32px; }
	.na-logo__name { font-size: 25px; }
	.na-badge { width: 96px; }
	.na-badge__ring { width: 64px; height: 64px; }
}
