/*
Theme Name: Atheaa
Template: botiga
Description: Child theme for the Atheaa shop (cosmetics and spices).
Version: 1.1.0
Text Domain: atheaa
*/

:root {
	--atheaa-accent: #A8502A;
	--atheaa-accent-dark: #7E3A1C;
	--atheaa-ink: #2B2622;
	--atheaa-text: #4A443E;
	--atheaa-line: #D9CFC1;
	--atheaa-sand: #F3ECE1;
	--atheaa-paper: #FFFDF9;
	--atheaa-sage: #E4E8DC;
	--atheaa-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--atheaa-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--atheaa-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Typography ---------- */
body,
button,
input,
select,
textarea {
	font-family: var(--atheaa-sans);
}

body {
	font-size: 17px;
	line-height: 1.65;
	overflow-x: clip; /* full-width sections are sized in vw, which includes the scrollbar */
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.site-title a,
.woocommerce-loop-product__title,
.product_title {
	font-family: var(--atheaa-serif);
	font-weight: 600;
	letter-spacing: 0.005em;
}

.site-title,
.site-title a {
	font-size: 30px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------- Header ---------- */
.bhfb-header {
	position: sticky;
	top: 0;
	z-index: 999;
	transition: box-shadow 0.3s var(--atheaa-ease);
}

.admin-bar .bhfb-header {
	top: 32px;
}

.atheaa-scrolled .bhfb-header {
	box-shadow: 0 6px 24px rgba(43, 38, 34, 0.08);
}

.main-navigation a,
.bhfb .menu a {
	position: relative;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bhfb-desktop .menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 1px;
	background: var(--atheaa-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--atheaa-ease);
}

.bhfb-desktop .menu > li > a:hover::after,
.bhfb-desktop .menu > li.current-menu-item > a::after {
	transform: scaleX(1);
}

.site-header-cart .cart-contents .count-number,
.bhfb .count-number {
	background: var(--atheaa-accent) !important;
	color: var(--atheaa-paper);
}

/* ---------- Buttons ---------- */
button,
.button,
.wp-block-button__link,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button {
	font-family: var(--atheaa-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: background-color 0.25s var(--atheaa-ease), color 0.25s var(--atheaa-ease), border-color 0.25s var(--atheaa-ease), transform 0.25s var(--atheaa-ease);
}

.wp-block-button__link {
	padding: 16px 34px;
	border: 1px solid var(--atheaa-accent);
	border-radius: 2px;
	background: var(--atheaa-accent);
	color: var(--atheaa-paper);
}

.wp-block-button__link:hover {
	border-color: var(--atheaa-accent-dark);
	background: var(--atheaa-accent-dark);
	color: var(--atheaa-paper);
	transform: translateY(-2px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--atheaa-ink);
	background: transparent;
	color: var(--atheaa-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--atheaa-ink);
	color: var(--atheaa-paper);
}

.atheaa-eyebrow {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--atheaa-accent);
}

/* ---------- Front page layout ---------- */
.home .entry-header {
	display: none;
}

.home .content-wrapper,
.home .site-main {
	padding-top: 0;
	margin-top: 0;
}

.home .entry-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.home .entry-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

/* ---------- Hero ---------- */
.atheaa-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 7vw, 96px) 24px;
	background:
		radial-gradient(55% 75% at 8% 15%, rgba(168, 80, 42, 0.13), transparent 70%),
		radial-gradient(45% 65% at 95% 90%, rgba(110, 125, 90, 0.20), transparent 70%),
		var(--atheaa-sand);
	border-bottom: 1px solid var(--atheaa-line);
}

.atheaa-hero__inner {
	max-width: 1180px;
	margin: 0 auto !important;
	gap: clamp(32px, 6vw, 88px);
}

.atheaa-hero h1 {
	margin: 0 0 20px;
	font-size: clamp(40px, 5vw, 68px);
	line-height: 1.03;
	font-weight: 500;
	color: var(--atheaa-ink);
	text-wrap: balance;
}

.atheaa-lead {
	margin: 0 0 34px;
	max-width: 30em;
	font-size: clamp(17px, 1.5vw, 20px);
	color: var(--atheaa-text);
}

.atheaa-hero .wp-block-buttons {
	gap: 14px;
}

.atheaa-hero__art {
	position: relative;
	min-height: clamp(340px, 42vw, 560px);
}

.atheaa-hero__art::before {
	content: "";
	position: absolute;
	top: 4%;
	right: -4%;
	width: 62%;
	aspect-ratio: 1;
	border: 1px solid rgba(168, 80, 42, 0.35);
	border-radius: 50%;
	animation: atheaa-spin 40s linear infinite;
	border-top-color: transparent;
}

.atheaa-hero__art .wp-block-image {
	position: absolute;
	margin: 0;
	overflow: hidden;
	box-shadow: 0 30px 60px -28px rgba(43, 38, 34, 0.45);
}

.atheaa-hero__art .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.atheaa-hero__img-a {
	top: 0;
	right: 4%;
	width: 68%;
	height: 88%;
	border-radius: 999px 999px 6px 6px;
}

.atheaa-hero__img-b {
	left: 0;
	bottom: 0;
	width: 46%;
	aspect-ratio: 1;
	border: 8px solid var(--atheaa-paper);
	border-radius: 50%;
	animation: atheaa-float 7s ease-in-out infinite;
}

@keyframes atheaa-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

@keyframes atheaa-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Marquee ---------- */
.atheaa-marquee {
	overflow: hidden;
	padding: 18px 0;
	background: var(--atheaa-ink);
	color: var(--atheaa-sand);
}

.atheaa-marquee__track {
	display: flex;
	width: max-content;
	animation: atheaa-marquee 38s linear infinite;
}

.atheaa-marquee__track span {
	display: inline-flex;
	align-items: center;
	padding: 0 28px;
	font-family: var(--atheaa-serif);
	font-size: 24px;
	font-style: italic;
	white-space: nowrap;
}

.atheaa-marquee__track span::after {
	content: "✦";
	margin-left: 56px;
	font-size: 12px;
	font-style: normal;
	color: #D98A5F;
}

@keyframes atheaa-marquee {
	to { transform: translateX(-50%); }
}

/* ---------- Category cards ---------- */
.atheaa-cats {
	max-width: 1188px;
	margin: 0 auto !important;
	padding: clamp(48px, 7vw, 96px) 24px;
}

.atheaa-section-title {
	margin: 0 0 clamp(28px, 4vw, 48px) !important;
	text-align: center;
	font-size: clamp(32px, 3.8vw, 48px);
	font-weight: 500;
}

.atheaa-cats .wp-block-columns {
	gap: 28px;
	margin: 0;
}

.atheaa-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(360px, 40vw, 520px);
	overflow: hidden;
	border-radius: 6px;
	color: var(--atheaa-paper);
	isolation: isolate;
}

.atheaa-card > .wp-block-image {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0;
}

.atheaa-card > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.1s var(--atheaa-ease);
}

.atheaa-card:hover > .wp-block-image img {
	transform: scale(1.07);
}

.atheaa-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(27, 23, 20, 0) 30%, rgba(27, 23, 20, 0.78) 100%);
}

.atheaa-card__body {
	padding: clamp(24px, 3vw, 40px);
}

.atheaa-card h3 {
	margin: 0 0 6px;
	font-size: clamp(32px, 3.4vw, 44px);
	font-weight: 500;
	color: var(--atheaa-paper);
}

.atheaa-card p {
	margin: 0 0 18px;
	color: rgba(255, 253, 249, 0.88);
}

.atheaa-card .atheaa-card__link {
	margin: 0;
}

.atheaa-card__link a {
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--atheaa-paper);
}

/* whole card is clickable */
.atheaa-card__link a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* ---------- Values ---------- */
.atheaa-values {
	max-width: 1188px;
	margin: 0 auto !important;
	padding: 0 24px clamp(48px, 7vw, 96px);
}

.atheaa-values .wp-block-columns {
	gap: 0;
	margin: 0;
	border-top: 1px solid var(--atheaa-line);
	border-bottom: 1px solid var(--atheaa-line);
}

.atheaa-values .wp-block-column {
	padding: clamp(24px, 3vw, 40px);
}

.atheaa-values .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--atheaa-line);
}

.atheaa-values__num {
	margin: 0 0 14px;
	font-family: var(--atheaa-serif);
	font-size: 22px;
	font-style: italic;
	color: var(--atheaa-accent);
}

.atheaa-values h3 {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 500;
}

.atheaa-values p:last-child {
	margin: 0;
}

/* ---------- Story band ---------- */
.atheaa-story {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(420px, 46vw, 600px);
	overflow: hidden;
	padding: clamp(56px, 8vw, 110px) 24px;
	isolation: isolate;
}

.atheaa-story > .wp-block-image {
	position: absolute;
	inset: -12% 0;
	z-index: -2;
	margin: 0;
}

.atheaa-story > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.atheaa-story::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(20, 17, 15, 0.82) 0%, rgba(20, 17, 15, 0.45) 60%, rgba(20, 17, 15, 0.2) 100%);
}

.atheaa-story__body {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
}

.atheaa-story__body > * {
	max-width: 560px;
}

.atheaa-story .atheaa-eyebrow {
	color: #E6A27C;
}

.atheaa-story h2 {
	margin: 0 0 18px;
	font-size: clamp(34px, 4.2vw, 56px);
	line-height: 1.08;
	font-weight: 500;
	color: var(--atheaa-paper);
}

.atheaa-story p {
	color: rgba(255, 253, 249, 0.86);
}

.atheaa-story .wp-block-buttons {
	margin-top: 28px;
}

.atheaa-story .wp-block-button__link {
	border-color: var(--atheaa-paper);
	background: var(--atheaa-paper);
	color: var(--atheaa-ink);
}

.atheaa-story .wp-block-button__link:hover {
	border-color: var(--atheaa-accent);
	background: var(--atheaa-accent);
	color: var(--atheaa-paper);
}

/* ---------- New products ---------- */
.atheaa-new-products {
	max-width: 1188px;
	margin: 0 auto;
	padding: clamp(48px, 7vw, 96px) 24px;
}

.atheaa-new-products > h2 {
	margin: 0 0 32px;
	text-align: center;
	font-size: clamp(32px, 3.8vw, 48px);
	font-weight: 500;
}

/* ---------- Shop ---------- */
.woocommerce ul.products li.product {
	transition: transform 0.4s var(--atheaa-ease);
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-6px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 22px;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
	font-family: var(--atheaa-sans);
	color: var(--atheaa-accent);
}

.woocommerce span.onsale {
	background: var(--atheaa-accent);
	color: var(--atheaa-paper);
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.atheaa-js .atheaa-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--atheaa-ease), transform 0.9s var(--atheaa-ease);
	transition-delay: var(--atheaa-delay, 0ms);
}

.atheaa-js .atheaa-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.site-title,
	.site-title a {
		font-size: 22px;
		letter-spacing: 0.06em;
	}

	.atheaa-hero__art {
		min-height: 360px;
		margin-top: 12px;
	}

	.atheaa-values .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid var(--atheaa-line);
	}

	.atheaa-marquee__track span {
		font-size: 20px;
	}

	.admin-bar .bhfb-header {
		top: 46px;
	}

	/* keep the scroll-to-top button clear of the language switcher */
	.back-to-top {
		bottom: 84px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atheaa-hero__img-b,
	.atheaa-hero__art::before,
	.atheaa-marquee__track {
		animation: none;
	}

	.atheaa-card > .wp-block-image img,
	.woocommerce ul.products li.product,
	.wp-block-button__link {
		transition: none;
	}
}

/* ---------- Overrides of Botiga's generated button and header styles ---------- */
html {
	overflow-x: clip;
}

.bhfb .site-description {
	display: none;
}

.atheaa-hero__text {
	flex-basis: 54% !important;
}

.atheaa-hero__art {
	flex-basis: 46% !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--atheaa-ink) !important;
	background: transparent !important;
	color: var(--atheaa-ink) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--atheaa-ink) !important;
	color: var(--atheaa-paper) !important;
}

.atheaa-story .wp-block-button__link {
	border-color: var(--atheaa-paper) !important;
	background: var(--atheaa-paper) !important;
	color: var(--atheaa-ink) !important;
}

.atheaa-story .wp-block-button__link:hover {
	border-color: var(--atheaa-accent) !important;
	background: var(--atheaa-accent) !important;
	color: var(--atheaa-paper) !important;
}

/* Card text sits on its own dark gradient so it stays readable on any photo. */
.atheaa-card__body {
	padding-top: 120px;
	background: linear-gradient(180deg, rgba(27, 23, 20, 0) 0%, rgba(27, 23, 20, 0.62) 45%, rgba(27, 23, 20, 0.86) 100%);
}

.atheaa-card .atheaa-card__link a,
.atheaa-card .atheaa-card__link a:hover {
	color: var(--atheaa-paper) !important;
}

/* ---------- Accessibility ---------- */
:focus-visible {
	outline: 3px solid var(--atheaa-accent-dark);
	outline-offset: 3px;
}

.atheaa-story :focus-visible,
.atheaa-card :focus-visible {
	outline-color: var(--atheaa-paper);
}

.atheaa-motion {
	margin: 0;
	padding: 10px 24px 0;
	text-align: right;
}

.atheaa-motion-toggle {
	padding: 8px 14px;
	border: 1px solid var(--atheaa-line);
	border-radius: 2px;
	background: transparent !important;
	color: var(--atheaa-text) !important;
	font-size: 12px;
	cursor: pointer;
}

.atheaa-motion-toggle[aria-pressed="true"] {
	border-color: var(--atheaa-ink);
	color: var(--atheaa-ink) !important;
}

.atheaa-paused .atheaa-hero__img-b,
.atheaa-paused .atheaa-hero__art::before,
.atheaa-paused .atheaa-marquee__track,
.atheaa-marquee:hover .atheaa-marquee__track {
	animation-play-state: paused;
}

/* ---------- Legal pages and footer links ---------- */
.atheaa-company {
	margin: 0 0 1.5em;
	padding: 20px 24px;
	border: 1px solid var(--atheaa-line);
	border-radius: 4px;
	background: var(--atheaa-sand);
}

.atheaa-company > div {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	padding: 4px 0;
}

.atheaa-company dt {
	min-width: 190px;
	font-weight: 500;
	color: var(--atheaa-ink);
}

.atheaa-company dd {
	margin: 0;
}

.atheaa-company__todo {
	font-style: italic;
}

.atheaa-legal {
	padding: 28px 24px 4px;
	background: var(--atheaa-sand);
	border-top: 1px solid var(--atheaa-line);
}

.atheaa-legal ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.atheaa-legal a {
	font-size: 14px;
	color: var(--atheaa-text);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.atheaa-legal a:hover {
	color: var(--atheaa-accent-dark);
}

.page:not(.home) .entry-content {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
	max-width: none;
}

/* ---------- Product page ---------- */
.single-product div.product .product_title {
	margin-bottom: 14px;
	font-size: clamp(32px, 3.4vw, 46px);
	line-height: 1.1;
	font-weight: 500;
}

.single-product div.product p.price {
	margin-bottom: 20px;
	font-size: 24px;
}

.single-product div.product .woocommerce-product-gallery img {
	border-radius: 6px;
}

.single-product .woocommerce-tabs h2,
.single-product .related > h2,
.woocommerce-products-header__title {
	font-weight: 500;
}

.single-product .related > h2 {
	margin-bottom: 32px;
	text-align: center;
	font-size: clamp(30px, 3.4vw, 42px);
}

.woocommerce ul.products li.product img {
	border-radius: 6px;
}

/* Cart, checkout and account keep the full content width. */
body.woocommerce-cart.page .entry-content,
body.woocommerce-checkout.page .entry-content,
body.woocommerce-account.page .entry-content {
	max-width: none;
}
