/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Child theme for GeneratePress — home for allrootsolutions theme customizations (CSS, generate_* hooks, template overrides). Keeps changes upgrade-safe so the parent theme can update without overwriting them.
Author: allrootsolutions
Template: generatepress
Version: 0.1.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* Add custom CSS below. This file is auto-enqueued by GeneratePress (handle "generate-child", loaded after the parent stylesheet). */

/* =========================================================================
   All Root Solutions — homepage components
   Tokens come from theme.json (var(--wp--preset--*)). Section patterns live
   in /patterns. Keep purely structural/visual rules here; design values in
   theme.json.
   ========================================================================= */

/* --- Hero ---------------------------------------------------------------- */
.ars-hero-inner {
	max-width: 720px;
	margin-inline: 0;
	text-align: left;
}

.ars-hero-title {
	margin-bottom: 1.25rem;
	font-size: clamp(2.75rem, 6vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.ars-text-gold {
	color: var(--wp--preset--color--gold);
}

/* --- Eyebrow badge pill -------------------------------------------------- */
.ars-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
	padding: 0.5rem 1.25rem;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 4px;
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
}

.ars-badge::before {
	content: "\2713"; /* check mark */
	font-weight: 700;
}

/* --- Buttons ------------------------------------------------------------- */
/* Ghost / outline button for use on dark backgrounds. */
.wp-block-button.ars-btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--white);
}

.wp-block-button.ars-btn-ghost .wp-block-button__link:hover,
.wp-block-button.ars-btn-ghost .wp-block-button__link:focus {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

/* Solid (gold) button hover. */
.wp-block-button:not(.ars-btn-ghost) .wp-block-button__link:hover,
.wp-block-button:not(.ars-btn-ghost) .wp-block-button__link:focus {
	filter: brightness(1.06);
}

/* --- Landing page shell (front-page.php, content-only) ------------------- */
.ars-page {
	width: 100%;
}

/* --- Eyebrow / pill label ----------------------------------------------- */
.ars-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 1rem;
	border-radius: 4px;
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
}

/* --- Solid small tag ----------------------------------------------------- */
.ars-tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 4px;
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* --- Arrow text link ----------------------------------------------------- */
.ars-link-arrow,
.ars-link-arrow a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--wp--preset--color--gold);
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
}

.ars-link-arrow:hover,
.ars-link-arrow a:hover {
	text-decoration: underline;
}

/* --- Image / logo placeholders ------------------------------------------ */
.ars-image-ph {
	display: block;
	width: 100%;
	min-height: 180px;
	border-radius: 8px;
	background:
		repeating-linear-gradient(45deg, rgba(127, 127, 127, 0.12) 0 12px, rgba(127, 127, 127, 0.05) 12px 24px),
		#e6e1d8;
}

/* Darker placeholder fill on dark sections. */
.has-night-background-color .ars-image-ph,
.ars-image-ph.is-dark {
	background:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 12px, rgba(255, 255, 255, 0.02) 12px 24px),
		#2a2a2a;
}

/* --- Testimonial stars --------------------------------------------------- */
.ars-stars {
	color: var(--wp--preset--color--gold);
	letter-spacing: 0.15em;
	font-size: 1.1rem;
	line-height: 1;
}

/* --- Sticker card + academy badge bubble (Mascot Academy) --------------- */
.ars-sticker {
	border: 4px solid var(--wp--preset--color--forest);
	border-radius: 16px;
	box-shadow: 12px 12px 0 var(--wp--preset--color--forest);
}

.ars-academy-figure {
	position: relative;
}

.ars-academy-badge {
	position: absolute;
	top: -1.5rem;
	right: -1rem;
	z-index: 2;
	width: 200px;
	height: 200px;
	padding: 1.5rem;
	border-radius: 50%;
	border: 4px solid var(--wp--preset--color--white);
	background: var(--wp--preset--color--forest);
	transform: rotate(8deg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* --- Header: brand logo (gold-on-black lockup, knocked-out bg) ----------- */
.ars-header-inner {
	align-items: center;
}

.ars-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 0;
}

.ars-logo-img {
	display: block;
	height: 60px;
	width: auto;
}

/* --- Header nav links (mixed-case, lighter weight per design) ------------ */
.ars-navlink,
.ars-navlink a {
	color: var(--wp--preset--color--light);
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
}

.ars-navlink a:hover,
.ars-navlink.is-active a,
.ars-navlink.is-active {
	color: var(--wp--preset--color--gold);
}

.ars-navlink.is-active a {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

/* --- Header search/globe icon (plain, no box) --------------------------- */
.ars-search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.ars-search-icon:hover {
	opacity: 1;
}

/* --- Footer link hovers + newsletter signup ----------------------------- */
.ars-footer-links a:hover,
.ars-footer-legal a:hover {
	color: var(--wp--preset--color--gold);
}

.ars-subscribe {
	display: flex;
	gap: 0.5rem;
}

.ars-subscribe-input {
	flex: 1;
	min-width: 0;
	padding: 0.75rem;
	border: 1px solid #514535;
	border-radius: 4px;
	background: transparent;
	color: var(--wp--preset--color--light);
}

.ars-subscribe-button {
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold-contrast);
	font-weight: 700;
	cursor: pointer;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 781px) {
	.ars-academy-badge {
		width: 140px;
		height: 140px;
		top: -1rem;
		right: -0.5rem;
		padding: 1rem;
	}

	.ars-sticker {
		box-shadow: 8px 8px 0 var(--wp--preset--color--forest);
	}
}

/* --- Refinement pass ----------------------------------------------------- */

/* Outline tag variant (e.g. product "HYDRATION") — visible on light cards. */
.ars-tag.is-outline {
	background: transparent;
	color: var(--wp--preset--color--forest);
	border: 2px solid var(--wp--preset--color--forest);
}

/* Footer column links: plain, no bullets, no underline. */
.ars-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ars-footer-links li {
	margin: 0 0 0.75rem;
}

.ars-footer-links a {
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}

/* Section H2 — design spec: Montserrat Bold, 40px, line-height 48px, no tracking.
   Preset font-size class is dropped from these headings (it carries !important),
   so size/weight/line-height are controlled here. */
.ars-section-title {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
}

/* Section heading gold underline bar (Product Spotlight / Research). */
.ars-heading-bar::after {
	content: "";
	display: block;
	width: 128px;
	height: 6px;
	margin-top: 0.75rem;
	background: var(--wp--preset--color--gold);
}

/* Trust-bar logo row. */
.ars-trust-logos {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.ars-trust-logo {
	flex: 0 0 auto;
	height: 44px;
	width: auto;
	opacity: 0.55;
	transition: opacity 0.15s ease;
}

.ars-trust-logo:hover {
	opacity: 0.9;
}

/* Value-pillars colored icon badges. */
.ars-pillar-icon {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	border: 2px solid;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 1.25rem 0 0.5rem;
}

.ars-pillar-icon.is-gold {
	background: rgba(251, 176, 59, 0.1);
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold);
}

.ars-pillar-icon.is-green {
	background: rgba(52, 252, 12, 0.1);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.ars-pillar-icon.is-white {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.5);
	color: #ffffff;
}

/* Pillar card: full-bleed image strip at top, then padded body (design: image
   flush to card edges, ~1.9:1; content inset 40px). Card uses overflow:hidden
   so the image is clipped to the 4px corner radius. */
.ars-pillar-photo {
	width: 100%;
	aspect-ratio: 1.9;
	background-color: #2a2a2a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Icon badge is the first element in the padded body — the 40px padding already
   supplies the gap below the image, so drop its legacy top margin. */
.ars-pillar-body .ars-pillar-icon {
	margin-top: 0;
}

/* Product side card: flex column so its bottom image grows to match the
   featured card's height (equal-height masonry row). */
.ars-card-side {
	display: flex;
	flex-direction: column;
}

.ars-card-side .ars-image-ph {
	flex: 1 1 auto;
}

/* Featured product card: the bottle image must fill the full card height
   (the copy column / equal-height row makes the card taller than the image's
   min-height, which otherwise leaves a gap below the photo). */
.ars-card-featured {
	display: flex;
	flex-direction: column;
}

.ars-card-featured > .wp-block-columns {
	flex: 1 1 auto;
}

.ars-card-featured .wp-block-column.is-vertically-aligned-stretch {
	align-self: stretch;
}

.ars-card-featured .ars-image-ph {
	height: 100%;
}

/* Mascot "Join 5,000+" avatars: solid 48px circles (the ars-image-ph
   placeholder's min-height:180px was distorting them into tall ovals). */
.ars-academy-avatar {
	flex: 0 0 48px;
	min-height: 0;
}

/* Real-image fill for placeholders that get an inline background-image. */
.ars-image-ph.has-photo {
	background-image: none;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
