/* ============================================================
   Horta Nutrition — Brand Component Library
   Mirrors the Tailwind/shadcn system from hortanutrition.com
   ============================================================ */

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

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-body-mob);
	line-height: var(--lh-body);
	color: var(--color-charcoal);
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

@media (min-width: 768px) {
	body { font-size: var(--fs-body); }
}

img,
svg,
picture,
video {
	max-width: 100%;
	display: block;
}

a {
	color: var(--color-forest);
	text-decoration: none;
	transition: color 200ms ease;
}
a:hover { color: var(--color-sage); }
a:focus-visible {
	outline: 2px solid var(--color-sage);
	outline-offset: 3px;
	border-radius: 2px;
}

button {
	font-family: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

ul, ol { padding-left: 1.25em; }

/* ---------- Typography ---------- */
.horta-heading-display,
.horta-heading-1,
.horta-heading-2,
.horta-heading-3,
.horta-heading-4 {
	font-family: var(--font-display);
	color: var(--color-charcoal);
	line-height: var(--lh-heading);
	font-weight: 500;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
}

.horta-heading-display { font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem); font-weight: 400; }
.horta-heading-1       { font-size: clamp(2rem, 3.5vw + 1rem, 3rem); }
.horta-heading-2       { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.25rem); }
.horta-heading-3       { font-size: clamp(1.5rem, 1.5vw + 1rem, 1.75rem); }
.horta-heading-4       { font-size: clamp(1.125rem, 1vw + 0.75rem, 1.375rem); }

.horta-eyebrow {
	font-family: var(--font-body);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--color-sage-600);
	margin: 0 0 12px;
}

.horta-body-large { font-size: 1.125rem; line-height: 1.65; color: var(--color-slate-grey); }
.horta-body-sm    { font-size: 0.875rem; line-height: 1.55; color: var(--color-slate-grey); }

.horta-link {
	color: var(--color-sage-600);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.horta-link:hover { color: var(--color-sage); }

.horta-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.horta-skip-link {
	position: absolute;
	top: -100px;
	left: 8px;
	background: var(--color-sage);
	color: #fff;
	padding: 12px 20px;
	border-radius: 6px;
	z-index: 200;
	transition: top 200ms ease;
}
.horta-skip-link:focus { top: 8px; }

/* ---------- Layout ---------- */
.horta-container,
.container-content {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
}
@media (min-width: 640px) { .horta-container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .horta-container { padding-left: 32px; padding-right: 32px; } }

.horta-section { padding: 48px 0; }
@media (min-width: 768px) { .horta-section { padding: 72px 0; } }
@media (min-width: 1024px) { .horta-section { padding: 96px 0; } }

.horta-section--tight { padding: 32px 0; }
@media (min-width: 768px) { .horta-section--tight { padding: 48px 0; } }

.horta-section__header { margin-bottom: 40px; text-align: center; }
.horta-section__title  { margin-bottom: 32px; }

.horta-main { flex: 1 1 auto; }

.bg-cream    { background-color: var(--color-cream); }
.bg-white    { background-color: var(--color-white); }
.bg-charcoal { background-color: var(--color-charcoal); color: #fff; }
.bg-sage     { background-color: var(--color-sage); color: #fff; }
.bg-forest   { background-color: var(--color-forest); color: #fff; }

.text-sage       { color: var(--color-sage); }
.text-forest     { color: var(--color-forest); }
.text-charcoal   { color: var(--color-charcoal); }
.text-slate-grey { color: var(--color-slate-grey); }

/* ---------- Buttons ---------- */
.horta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	padding: 0 22px;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1;
	border-radius: var(--border-radius-button);
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
	text-decoration: none;
	white-space: nowrap;
	user-select: none;
}
.horta-btn:focus-visible {
	outline: 2px solid var(--color-sage);
	outline-offset: 2px;
}
.horta-btn:active { transform: translateY(1px); }

.horta-btn--sm  { height: 40px; padding: 0 16px; font-size: 0.875rem; }
.horta-btn--lg  { height: 56px; padding: 0 28px; font-size: 1rem; }
.horta-btn--block { width: 100%; }

.horta-btn--primary {
	background-color: var(--color-sage);
	color: #fff;
}
.horta-btn--primary:hover { background-color: var(--color-forest); color: #fff; }

.horta-btn--secondary {
	background-color: var(--color-forest);
	color: #fff;
}
.horta-btn--secondary:hover { background-color: var(--color-forest-dark); color: #fff; }

.horta-btn--outline {
	background-color: transparent;
	color: var(--color-forest);
	border-color: rgba(90, 122, 60, 0.4);
}
.horta-btn--outline:hover {
	background-color: var(--color-forest);
	color: #fff;
	border-color: var(--color-forest);
}

.horta-btn--white {
	background-color: #fff;
	color: var(--color-forest);
}
.horta-btn--white:hover { background-color: var(--color-cream); color: var(--color-forest-dark); }

.horta-btn--ghost {
	background: transparent;
	color: var(--color-sage-600);
	padding: 0 8px;
	height: auto;
	font-weight: 500;
}
.horta-btn--ghost:hover { color: var(--color-sage); background: transparent; }

.horta-btn--ghost-light {
	background: transparent;
	color: rgba(255,255,255,0.92);
	border-color: rgba(255,255,255,0.4);
}
.horta-btn--ghost-light:hover { background-color: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Cards ---------- */
.horta-card {
	background: #fff;
	border-radius: var(--border-radius-card);
	box-shadow: var(--shadow-card);
	transition: transform 200ms ease, box-shadow 200ms ease;
	overflow: hidden;
}
.horta-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
}

.horta-card--sage {
	background: var(--color-sage-50);
	border: 1px solid var(--color-sage-200);
}

/* ---------- Forms ---------- */
.horta-form .horta-form__field { margin-bottom: 20px; }
.horta-form label,
.horta-input-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-slate-grey);
	margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select,
.horta-input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	font: inherit;
	color: var(--color-charcoal);
	background: #fff;
	border: 1.5px solid var(--color-cloud-grey);
	border-radius: var(--border-radius-button);
	transition: border-color 200ms ease, box-shadow 200ms ease;
}
textarea,
.horta-input--textarea {
	height: auto;
	min-height: 120px;
	padding: 14px;
	line-height: 1.55;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
.horta-input:focus {
	outline: none;
	border-color: var(--color-sage);
	box-shadow: 0 0 0 3px rgba(139, 174, 92, 0.18);
}

select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
}

.horta-form__error {
	color: var(--color-error);
	font-size: 0.8125rem;
	margin-top: 6px;
}

/* ---------- Badges ---------- */
.horta-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 999px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.horta-badge--sage       { background: var(--color-sage-100); color: var(--color-sage-700); }
.horta-badge--terracotta { background: rgba(201, 123, 90, 0.12); color: var(--color-terracotta); }
.horta-badge--ghost      { background: transparent; color: var(--color-slate-grey); border: 1px solid var(--color-cloud-grey); }
.horta-badge--pink       { background: #FCE4EC; color: #B83A6F; }
.horta-badge--amber      { background: #FFF6E0; color: #C77E00; }
.horta-badge--blue       { background: #E0EDFB; color: #1F5F9F; }
.horta-badge--purple     { background: #EFE6F8; color: #7A3FA9; }
.horta-badge--emerald    { background: #DEF3E5; color: #2C6E47; }

/* ---------- Header ---------- */
.horta-header {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: background-color 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.horta-header[data-scrolled="true"] {
	background-color: rgba(255, 255, 255, 0.95);
	border-bottom-color: rgba(232, 232, 232, 0.6);
	box-shadow: 0 1px 0 rgba(0,0,0,0.04);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.horta-header__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 16px;
	height: var(--header-height);
	transition: height 250ms ease;
	gap: 16px;
}
@media (min-width: 640px) { .horta-header__container { padding: 0 24px; } }
@media (min-width: 1024px) { .horta-header__container { padding: 0 32px; gap: 24px; } }

.horta-header[data-scrolled="true"] .horta-header__container { height: var(--header-height-scrolled); }

.horta-header__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}
.horta-header__logo-img {
	height: 56px;
	width: auto;
	transition: height 250ms ease;
}
.horta-header[data-scrolled="true"] .horta-header__logo-img { height: 48px; }

.horta-header__nav-desktop {
	display: none;
	flex: 1 1 auto;
}
@media (min-width: 1024px) {
	.horta-header__nav-desktop { display: flex; align-items: center; margin-left: 32px; }
}

.horta-header__nav-list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 0;
	margin: 0;
}
@media (min-width: 1280px) {
	.horta-header__nav-list { gap: 36px; }
}

.horta-header__nav-list > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 4px;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(45, 45, 45, 0.8);
	text-decoration: none;
	transition: color 200ms ease;
}
.horta-header__nav-list > li > a:hover { color: var(--color-forest); }
.horta-header__nav-list > li.is-active > a { color: var(--color-forest); }
.horta-header__nav-list > li.is-active > a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -6px;
	height: 2px;
	border-radius: 2px;
	background: var(--color-sage);
}
.horta-header__nav-list > li > a > svg {
	width: 14px;
	height: 14px;
	transition: transform 200ms ease;
}
.horta-header__nav-list > li.has-dropdown:hover > a > svg,
.horta-header__nav-list > li.has-dropdown:focus-within > a > svg { transform: rotate(180deg); }

/* Dropdown */
.has-dropdown { position: relative; }
.horta-dropdown {
	list-style: none;
	margin: 12px 0 0;
	padding: 8px;
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	min-width: 240px;
	background: #fff;
	border: 1px solid rgba(232, 232, 232, 0.7);
	border-radius: var(--border-radius-card);
	box-shadow: var(--shadow-card-hover);
	visibility: hidden;
	opacity: 0;
	transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
	z-index: 60;
}
.has-dropdown:hover .horta-dropdown,
.has-dropdown:focus-within .horta-dropdown {
	visibility: visible;
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
.horta-dropdown li { list-style: none; }
.horta-dropdown a {
	display: block;
	padding: 10px 12px;
	font-size: 0.875rem;
	color: rgba(45, 45, 45, 0.8);
	border-radius: 6px;
	transition: background-color 150ms ease, color 150ms ease;
}
.horta-dropdown a:hover {
	background-color: var(--color-cream);
	color: var(--color-forest);
}

/* Header CTAs */
.horta-header__ctas {
	display: none;
	align-items: center;
	gap: 12px;
	padding-left: 24px;
	margin-left: 8px;
	border-left: 1px solid rgba(232, 232, 232, 0.6);
}
@media (min-width: 1024px) { .horta-header__ctas { display: flex; } }

.horta-header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	color: var(--color-charcoal);
	transition: background-color 200ms ease, color 200ms ease;
}
.horta-header__cart:hover {
	background-color: var(--color-cream);
	color: var(--color-forest);
}
.horta-header__cart svg { width: 22px; height: 22px; }
.horta-header__cart-count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	color: #fff;
	background: var(--color-sage);
	border-radius: 999px;
}
.horta-header__cart-count[hidden] { display: none; }

/* Mobile actions */
.horta-header__mobile-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
@media (min-width: 1024px) {
	.horta-header__mobile-actions { display: none; }
}
.horta-header__mobile-cta {
	height: 40px;
	padding: 0 14px;
	font-size: 0.8125rem;
}

.horta-header__hamburger {
	width: 40px;
	height: 40px;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	border-radius: 8px;
	transition: background-color 200ms ease;
}
.horta-header__hamburger:hover { background-color: var(--color-cream); }
.horta-header__hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--color-charcoal);
	border-radius: 2px;
	transition: transform 200ms ease, opacity 200ms ease;
}
.horta-header__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.horta-header__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.horta-header__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.horta-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	visibility: hidden;
	opacity: 0;
	transition: opacity 200ms ease, visibility 200ms ease;
}
.horta-mobile-menu.is-open { visibility: visible; opacity: 1; }
.horta-mobile-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(45, 45, 45, 0.5);
}
.horta-mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 380px;
	height: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 240ms ease;
	overflow-y: auto;
}
.horta-mobile-menu.is-open .horta-mobile-menu__panel { transform: translateX(0); }

.horta-mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-bottom: 1px solid rgba(232, 232, 232, 0.6);
}
.horta-mobile-menu__logo { height: 40px; width: auto; }
.horta-mobile-menu__close {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-slate-grey);
	border-radius: 8px;
	transition: background-color 200ms ease;
}
.horta-mobile-menu__close:hover { background: var(--color-cream); color: var(--color-charcoal); }
.horta-mobile-menu__close svg { width: 22px; height: 22px; }

.horta-mobile-menu__nav { flex: 1 1 auto; padding: 0 24px 16px; }
.horta-mobile-menu__nav ul { list-style: none; padding: 0; margin: 0; }
.horta-mobile-menu__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	font-size: 1rem;
	font-weight: 500;
	color: var(--color-charcoal);
	border-bottom: 1px solid rgba(232, 232, 232, 0.6);
}
.horta-mobile-menu__link--head { font-weight: 600; }
.horta-mobile-menu__sublist {
	margin-top: 6px;
	padding: 0 0 10px 16px;
}
.horta-mobile-menu__sublist li { list-style: none; }
.horta-mobile-menu__sublist a {
	display: block;
	padding: 6px 0;
	font-size: 0.875rem;
	color: var(--color-slate-grey);
}
.horta-mobile-menu__sublist a:hover { color: var(--color-forest); }

.horta-mobile-menu__footer {
	padding: 20px 24px;
	background: rgba(248, 245, 238, 0.6);
	border-top: 1px solid rgba(232, 232, 232, 0.6);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.horta-mobile-menu__social {
	display: flex;
	justify-content: center;
	gap: 14px;
	padding-top: 8px;
}
.horta-mobile-menu__social a {
	color: var(--color-slate-grey);
	transition: color 200ms ease;
}
.horta-mobile-menu__social a:hover { color: var(--color-forest); }
.horta-mobile-menu__social svg { width: 22px; height: 22px; }

body.horta-no-scroll { overflow: hidden; }

/* ---------- Footer ---------- */
.horta-footer {
	margin-top: auto;
	background: var(--color-charcoal);
	color: rgba(255, 255, 255, 0.78);
}
.horta-footer a {
	color: rgba(255, 255, 255, 0.7);
}
.horta-footer a:hover { color: var(--color-sage-300); }

.horta-footer__newsletter {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.horta-footer__newsletter-row {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 0;
}
@media (min-width: 768px) {
	.horta-footer__newsletter-row {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
	}
}
.horta-footer__newsletter-pitch {
	font-family: var(--font-display);
	font-size: 1.125rem;
	color: #fff;
	margin: 0;
}
.horta-footer__newsletter-form { width: 100%; }
@media (min-width: 768px) {
	.horta-footer__newsletter-form { width: 420px; flex-shrink: 0; }
}

.horta-footer__grid {
	display: grid;
	gap: 40px;
	padding: 56px 0;
}
@media (min-width: 768px) { .horta-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
	.horta-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
}

.horta-footer__brand p { margin: 12px 0 16px; max-width: 360px; }
.horta-footer__logo {
	height: 64px;
	width: auto;
	margin-bottom: 12px;
}
.horta-footer__tagline {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
	max-width: 360px;
	margin: 12px 0 16px;
}

.horta-footer__social {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
}
.horta-footer__social a { color: rgba(255, 255, 255, 0.7); }
.horta-footer__social svg { width: 20px; height: 20px; }

.horta-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.875rem;
}
.horta-footer__contact li { display: flex; align-items: center; gap: 10px; }
.horta-footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.horta-footer__contact svg { width: 14px; height: 14px; flex-shrink: 0; }
.horta-footer__address { font-size: 0.8125rem; align-items: flex-start !important; line-height: 1.5; }
.horta-footer__address svg { margin-top: 4px; }

.horta-footer__col-title {
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 12px;
}

.horta-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.horta-footer__links a { font-size: 0.875rem; }

.horta-footer__trust-strip {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(45, 45, 45, 0.4);
}
.horta-footer__trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 14px 0;
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}
.horta-footer__trust span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.horta-footer__trust svg {
	width: 14px;
	height: 14px;
	color: var(--color-sage-400);
}

.horta-footer__bottom { background: var(--color-sage-900); }
.horta-footer__bottom-inner { padding: 16px 0; }
.horta-footer__bottom-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 768px) {
	.horta-footer__bottom-row {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
	}
}
.horta-footer__legal-links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 0;
	margin: 0;
}
.horta-footer__disclaimer {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.55);
	margin: 8px 0 0;
	line-height: 1.5;
}
.horta-footer__disclaimer strong { color: rgba(255, 255, 255, 0.75); }

/* ---------- Newsletter form (used in footer + sidebar) ---------- */
.horta-newsletter__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.horta-newsletter__row {
	display: flex;
	gap: 8px;
}
.horta-newsletter__input {
	flex: 1 1 auto;
	height: 44px;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}
.horta-newsletter__input::placeholder { color: rgba(255, 255, 255, 0.55); }
.horta-newsletter__input:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--color-sage);
}
.horta-newsletter__submit { height: 44px; flex-shrink: 0; }
.horta-newsletter__hint {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.55);
	margin: 8px 0 0;
}
/* Newsletter on light backgrounds */
.horta-sidebar .horta-newsletter__input {
	background: #fff;
	border-color: var(--color-cloud-grey);
	color: var(--color-charcoal);
}
.horta-sidebar .horta-newsletter__input::placeholder { color: var(--color-slate-grey); }
.horta-sidebar .horta-newsletter__hint { color: var(--color-slate-grey); }

/* ---------- WhatsApp button ---------- */
.horta-whatsapp-btn {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
	z-index: 90;
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.horta-whatsapp-btn:hover {
	color: #fff;
	transform: scale(1.06);
	box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
}
.horta-whatsapp-btn svg { width: 28px; height: 28px; }
.horta-whatsapp-btn.is-pulse::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #25D366;
	opacity: 0.5;
	animation: horta-pulse 1.6s ease-out infinite;
	z-index: -1;
}
@keyframes horta-pulse {
	0%   { transform: scale(1);   opacity: 0.5; }
	100% { transform: scale(1.6); opacity: 0; }
}
.horta-whatsapp-btn__tooltip {
	position: absolute;
	right: 70px;
	background: var(--color-charcoal);
	color: #fff;
	font-size: 0.8125rem;
	padding: 8px 12px;
	border-radius: 6px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease, transform 180ms ease;
	transform: translateX(8px);
}
.horta-whatsapp-btn:hover .horta-whatsapp-btn__tooltip {
	opacity: 1;
	transform: translateX(0);
}

/* ---------- Back to top ---------- */
.horta-back-to-top {
	position: fixed;
	left: 20px;
	bottom: 20px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-sage);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(139, 174, 92, 0.35);
	z-index: 80;
	transition: opacity 200ms ease, transform 200ms ease;
	opacity: 0;
}
.horta-back-to-top.is-visible { opacity: 1; }
.horta-back-to-top:hover { background: var(--color-forest); transform: translateY(-2px); }
.horta-back-to-top svg { width: 18px; height: 18px; }

/* ---------- Cookie consent ---------- */
.horta-cookie-consent {
	position: fixed;
	bottom: 16px;
	left: 16px;
	right: 16px;
	max-width: 640px;
	margin: 0 auto;
	background: var(--color-cream);
	border: 1px solid var(--color-cloud-grey);
	border-radius: 16px;
	box-shadow: 0 -8px 30px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.12);
	z-index: 110;
	transform: translateY(120%);
	transition: transform 320ms cubic-bezier(.16,1,.3,1);
}
.horta-cookie-consent.is-visible { transform: translateY(0); }
.horta-cookie-consent__inner { padding: 20px; }
.horta-cookie-consent__title {
	font-family: var(--font-display);
	font-size: 1.125rem;
	margin: 0 0 6px;
	color: var(--color-charcoal);
}
.horta-cookie-consent__copy { margin-bottom: 14px; }
.horta-cookie-consent__copy p { margin: 0; font-size: 0.875rem; color: var(--color-slate-grey); }
.horta-cookie-consent__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.horta-cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}
.horta-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 0.875rem;
}
.horta-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.horta-toggle__track {
	position: relative;
	width: 36px;
	height: 20px;
	background: var(--color-cloud-grey);
	border-radius: 999px;
	transition: background-color 200ms ease;
}
.horta-toggle__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	transition: transform 200ms ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.horta-toggle input:checked + .horta-toggle__track { background: var(--color-sage); }
.horta-toggle input:checked + .horta-toggle__track::after { transform: translateX(16px); }
.horta-toggle input:disabled + .horta-toggle__track { opacity: 0.65; }

/* ---------- Breadcrumbs ---------- */
.horta-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0.8125rem;
	color: var(--color-slate-grey);
	margin-bottom: 24px;
}
.horta-breadcrumbs a { color: var(--color-slate-grey); }
.horta-breadcrumbs a:hover { color: var(--color-forest); }
.horta-breadcrumbs__sep { width: 14px; height: 14px; color: var(--color-cloud-grey); }
.horta-breadcrumbs span[aria-current="page"] { color: var(--color-charcoal); font-weight: 500; }

/* ---------- Page hero ---------- */
.horta-page-hero {
	padding: 32px 0 16px;
}
.horta-page-hero--center { text-align: center; }
.horta-page-hero__inner { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.horta-page-hero--center .horta-page-hero__inner { text-align: center; }
.horta-page-hero__lede { color: var(--color-slate-grey); margin: 12px auto 0; max-width: 640px; }
.horta-page-hero__actions {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.horta-page-hero--center .horta-page-hero__actions { justify-content: center; }
.horta-page-hero__searchform { margin-top: 24px; max-width: 520px; }
.horta-page-hero--center .horta-page-hero__searchform { margin-left: auto; margin-right: auto; }

/* ---------- Hero (used by front-page fallback) ---------- */
.horta-hero {
	background: linear-gradient(180deg, var(--color-cream) 0%, #fff 100%);
	padding: 80px 0;
	text-align: center;
}
.horta-hero__inner { max-width: 800px; margin: 0 auto; }
.horta-hero__lede { margin: 16px auto 24px; max-width: 600px; }
.horta-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Trust bar ---------- */
.horta-trust-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	padding: 24px;
	background: var(--color-cream);
	border-radius: var(--border-radius-card);
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-slate-grey);
}
.horta-trust-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.horta-trust-bar__item svg { width: 16px; height: 16px; color: var(--color-sage); }

/* ---------- CTA banner ---------- */
.horta-cta-banner {
	background: var(--color-sage);
	color: #fff;
	padding: 56px 0;
}
.horta-cta-banner__inner {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 16px;
	text-align: center;
}
.horta-cta-banner h2,
.horta-cta-banner .horta-heading-3 { color: #fff; margin-bottom: 12px; }
.horta-cta-banner p { color: rgba(255, 255, 255, 0.92); margin: 0 auto 24px; max-width: 560px; }
.horta-cta-banner__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* ---------- Pagination ---------- */
.horta-post-grid + .nav-links,
.wp-pagenavi,
.pagination,
.horta-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 48px 0 0;
}
.nav-links a,
.nav-links span,
.horta-pagination a,
.horta-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--color-cloud-grey);
	color: var(--color-charcoal);
	font-weight: 500;
	font-size: 0.875rem;
	background: #fff;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.nav-links a:hover,
.horta-pagination a:hover {
	background: var(--color-cream);
	color: var(--color-forest);
	border-color: var(--color-sage-300);
}
.nav-links .current,
.horta-pagination .current {
	background: var(--color-sage);
	color: #fff;
	border-color: var(--color-sage);
}

/* ---------- Search form ---------- */
.horta-searchform__field {
	position: relative;
	display: flex;
	gap: 8px;
	align-items: center;
}
.horta-searchform__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--color-slate-grey);
}
.horta-searchform__input {
	padding-left: 42px;
}
.horta-searchform__submit { flex-shrink: 0; }

/* ---------- 404 ---------- */
.horta-404 {
	position: relative;
	overflow: hidden;
	min-height: 60vh;
	display: flex;
	align-items: center;
}
.horta-404__inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	padding: 80px 16px;
}
.horta-404__decor {
	font-family: var(--font-display);
	font-size: clamp(7rem, 18vw, 12rem);
	line-height: 1;
	color: var(--color-sage-200);
	margin-bottom: 16px;
	font-weight: 400;
}
.horta-404__searchform { max-width: 520px; margin: 24px auto 32px; }
.horta-404__links {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}
.horta-404__leaf {
	position: absolute;
	right: -60px;
	bottom: -40px;
	width: 320px;
	color: var(--color-sage-100);
	pointer-events: none;
	z-index: -1;
	opacity: 0.6;
}

/* ---------- Reveal animation ---------- */
.horta-reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 600ms ease, transform 600ms ease;
}
.horta-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.horta-reveal { opacity: 1; transform: none; }
	.horta-whatsapp-btn.is-pulse::before { display: none; }
}

/* ---------- Prose (article body) ---------- */
.horta-prose {
	max-width: 720px;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--color-charcoal);
}
.horta-prose > * + * { margin-top: 1em; }
.horta-prose h2,
.horta-prose h3,
.horta-prose h4 {
	font-family: var(--font-display);
	color: var(--color-charcoal);
	line-height: 1.25;
	margin-top: 2em;
}
.horta-prose h2 { font-size: 1.75rem; }
.horta-prose h3 { font-size: 1.375rem; }
.horta-prose h4 { font-size: 1.125rem; }
.horta-prose a {
	color: var(--color-forest);
	text-decoration: underline;
	text-decoration-color: rgba(90, 122, 60, 0.4);
	text-underline-offset: 3px;
}
.horta-prose a:hover {
	color: var(--color-sage);
	text-decoration-color: var(--color-sage);
}
.horta-prose blockquote {
	border-left: 3px solid var(--color-sage);
	padding: 4px 0 4px 18px;
	margin: 24px 0;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25rem;
	color: var(--color-charcoal);
}
.horta-prose ul,
.horta-prose ol { padding-left: 1.5em; }
.horta-prose li + li { margin-top: 6px; }
.horta-prose img,
.horta-prose figure { border-radius: var(--border-radius-card); margin: 32px 0; }
.horta-prose figcaption {
	font-size: 0.875rem;
	color: var(--color-slate-grey);
	margin-top: 8px;
	text-align: center;
	font-style: italic;
}
.horta-prose code {
	background: var(--color-cream);
	padding: 2px 6px;
	font-size: 0.92em;
	border-radius: 4px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.horta-prose pre {
	background: var(--color-charcoal);
	color: #fff;
	padding: 18px;
	border-radius: 12px;
	overflow-x: auto;
	font-size: 0.875rem;
}
.horta-prose pre code { background: transparent; padding: 0; color: inherit; }
.horta-prose hr {
	border: 0;
	height: 1px;
	background: var(--color-cloud-grey);
	margin: 40px 0;
}
.horta-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	margin: 24px 0;
}
.horta-prose th,
.horta-prose td {
	border: 1px solid var(--color-cloud-grey);
	padding: 12px;
	text-align: left;
}
.horta-prose th { background: var(--color-cream); font-weight: 600; }
