/*
Theme Name: ADDCTED Protein
Theme URI: https://addctedprotein.com
Author: DB
Description: Warm, light, bronze-accented block theme for ADDCTED Premium Whey Protein by DB. Includes an editable homepage with hero, product lineup, manifesto, campaign video, merch grid, Train with DB section and launch signup sections. Every section is a reusable pattern you can edit in the Site Editor.
Version: 1.6.5
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: addcted
Tags: block-theme, full-site-editing, one-column, wide-blocks, custom-colors, editor-style, e-commerce
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
main.wp-block-group > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
img { height: auto; }

.addcted-eyebrow {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	margin-bottom: 0.25rem !important;
}

/* Buttons */
.wp-element-button,
.wp-block-button__link {
	transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	box-shadow: 0 10px 30px -10px rgba(168, 112, 60, .55);
	transform: translateY(-1px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast) !important;
	border-color: var(--wp--preset--color--contrast) !important;
	color: #fff !important;
}
.addcted-btn-sm .wp-block-button__link {
	padding: .7rem 1.1rem !important;
	font-size: var(--wp--preset--font-size--xs) !important;
}

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease;
	border-bottom: 1px solid transparent;
}
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
.wp-site-blocks > header.wp-block-template-part.is-scrolled {
	background: rgba(247, 241, 234, .9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom-color: rgba(30, 23, 20, .08);
}
.addcted-header .addcted-logo { margin: 0; }
.addcted-header .addcted-logo img { width: 150px; height: auto; }
.addcted-header .wp-block-navigation__responsive-container.is-menu-open {
	font-size: 1.25rem;
	padding: 6rem 2rem 2rem;
}

/* ---------- Hero ---------- */
.addcted-hero .wp-block-cover__background {
	background:
		radial-gradient(ellipse 60% 70% at 78% 45%, rgba(242, 222, 212, .95), transparent 70%),
		radial-gradient(ellipse 50% 60% at 10% 90%, rgba(201, 147, 100, .18), transparent 70%),
		var(--wp--preset--color--base) !important;
	opacity: 1 !important;
}
.addcted-hero .wp-block-cover__inner-container { position: relative; z-index: 1; }
.addcted-hero h1 { margin-top: .75rem; }
.addcted-lede { max-width: 44ch; line-height: 1.55; margin-top: 1.75rem !important; }
.addcted-hero .wp-block-buttons { margin-top: 2.25rem !important; }
.addcted-hero__product { position: relative; max-width: 380px; margin-inline: auto; }
.addcted-hero__product img {
	width: 100%;
	border-radius: 28px;
	box-shadow: 0 40px 80px -30px rgba(30, 23, 20, .45), 0 0 0 10px rgba(255, 255, 255, .6);
	animation: addcted-float 7s ease-in-out infinite;
}
@keyframes addcted-float { 50% { transform: translateY(-10px); } }

.addcted-proof { gap: 1rem !important; }
.addcted-proof__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
	line-height: 1;
	margin: 0;
}
.addcted-proof__label {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-top: .25rem !important;
}

/* ---------- Marquee ---------- */
.addcted-marquee { overflow: hidden; }
.addcted-marquee__track {
	gap: 2rem !important;
	width: max-content;
	animation: addcted-marquee 30s linear infinite;
}
.addcted-marquee__track p {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 1;
	margin: 0 !important;
	display: flex;
	align-items: center;
	gap: 2rem;
}
.addcted-marquee__track p::after {
	content: "";
	width: 10px; height: 10px;
	background: currentColor;
	transform: rotate(45deg);
	flex: none;
}
@keyframes addcted-marquee { to { transform: translateX(-50%); } }

/* ---------- Product cards ---------- */
.addcted-shop { gap: 1.5rem !important; align-items: stretch !important; }
.addcted-shop > .wp-block-column { display: flex; }
.wp-block-group.addcted-card,
.wp-block-group.addcted-card.has-background { padding: 0 !important; }
.addcted-card .addcted-vanilla { padding: 0 !important; }
.addcted-card {
	border: 1px solid rgba(30, 23, 20, .08);
	border-radius: 24px;
	overflow: hidden;
	width: 100%;
	box-shadow: 0 24px 60px -36px rgba(30, 23, 20, .35);
}
.addcted-card__cols { margin: 0 !important; height: 100%; gap: 0 !important; }
.addcted-card__media { position: relative; min-height: 420px; background: #000; overflow: hidden; }
.addcted-card__media figure { margin: 0; position: absolute; inset: 0; }
.addcted-card__media img { width: 100%; height: 100% !important; object-fit: cover; object-position: center 45%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.addcted-card:hover .addcted-card__media img { transform: scale(1.04); }
.addcted-card__body { padding: clamp(1.5rem, 3vw, 2.5rem) !important; }
.addcted-card__body > * + * { margin-top: 1rem !important; }
.addcted-card__body h3 { margin-top: .75rem !important; }
.addcted-sub {
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: .06em;
	text-transform: uppercase;
	margin-top: .35rem !important;
}
.addcted-tag {
	display: inline-block;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	padding: .35rem .7rem;
	border: 1px solid var(--wp--preset--color--bronze);
	color: var(--wp--preset--color--bronze);
	border-radius: 999px;
}
.addcted-tag--bronze { border-color: var(--wp--preset--color--bronze); color: var(--wp--preset--color--bronze); }
.addcted-specs { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; }
.addcted-specs li {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
	padding: .5rem .8rem;
	background: var(--wp--preset--color--base);
	border: 1px solid rgba(30, 23, 20, .06);
	border-radius: 999px;
	margin: 0;
}
.addcted-specs strong { color: var(--wp--preset--color--contrast); font-weight: 900; }
.addcted-vanilla {
	min-height: 260px;
	background: radial-gradient(circle at 50% 55%, #fffaf2, #f1e3cc 75%);
	align-items: center !important;
	justify-content: center !important;
	gap: .5rem !important;
}
.addcted-vanilla__word {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3.5rem, 2rem + 5vw, 6rem);
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast);
	line-height: .9;
	margin: 0 !important;
}
.addcted-vanilla__sub { font-size: var(--wp--preset--font-size--xs); letter-spacing: .3em; text-transform: uppercase; margin: 0 !important; }
.addcted-card--vanilla > .addcted-card__body { margin-top: 0 !important; }

/* ---------- Why (media + text) ---------- */
.addcted-why { overflow: hidden; }
.addcted-why .wp-block-media-text__media { min-height: 560px; position: relative; }
.addcted-why .wp-block-media-text__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 75%, var(--wp--preset--color--surface));
}
.addcted-why .wp-block-media-text__content { padding: var(--wp--preset--spacing--70) clamp(1.25rem, 4vw, 4rem) !important; max-width: 680px; }
.addcted-why .wp-block-media-text__content > p:not(.addcted-eyebrow) { max-width: 52ch; margin-top: 1.5rem; }
.addcted-ritual .wp-block-media-text__media::after { background: linear-gradient(270deg, transparent 75%, var(--wp--preset--color--blush)); }
.addcted-ritual .wp-block-media-text__content { margin-left: auto; }
.addcted-ritual .addcted-specs { margin-top: 1.75rem; }
.addcted-ritual .wp-block-media-text__media { min-height: 0 !important; height: auto !important; align-self: stretch; }
.addcted-ritual .wp-block-media-text__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.addcted-ritual .addcted-specs li { background: rgba(255, 255, 255, .7); }
.addcted-ritual .wp-block-buttons { margin-top: 2rem; }
.addcted-pillar { padding-left: 1.25rem; border-left: 2px solid var(--wp--preset--color--bronze); margin-top: 1.5rem !important; }
.addcted-pillar h4 { margin: 0; }
.addcted-pillar p { margin-top: .35rem !important; }

/* ---------- Campaign video ---------- */
.addcted-spot { gap: clamp(2rem, 6vw, 6rem) !important; }
.addcted-spot p:not(.addcted-eyebrow) { max-width: 42ch; margin-block: 1.5rem 2rem; }
.addcted-spot__video {
	margin: 0 auto;
	width: min(340px, 80vw);
	aspect-ratio: 9 / 16;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: 0 30px 80px -30px rgba(201, 147, 100, .5);
}
.addcted-spot__video video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Merch grid ---------- */
.addcted-merch {
	grid-template-columns: 1.2fr 1fr 1fr !important;
	grid-auto-rows: clamp(280px, 30vw, 420px);
}
.addcted-merch__item { position: relative; margin: 0 !important; overflow: hidden; border-radius: 20px; background: #1a1411; }
.addcted-merch__item.is-tall { grid-row: span 2; }
.addcted-merch__item img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.addcted-merch__item:hover img { transform: scale(1.05); }
.addcted-merch__item figcaption {
	position: absolute;
	inset: auto 0 0 0;
	margin: 0 !important;
	padding: 1.25rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, .85));
	display: flex;
	flex-direction: column;
	text-align: left;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--bronze-light);
	letter-spacing: .16em;
	text-transform: uppercase;
}
.addcted-merch__item figcaption strong {
	color: #fff;
	font-size: var(--wp--preset--font-size--base);
	font-weight: 900;
	letter-spacing: .06em;
}

/* ---------- D.B. Fitness ---------- */
.addcted-db {
	background-image: radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, .6), transparent 60%) !important;
}
.addcted-db p:not(.addcted-eyebrow) { margin-block: 1.5rem 2rem; max-width: 56ch; }

/* ---------- Launch ---------- */
.addcted-launch h2 { font-size: clamp(2.75rem, 1.8rem + 4vw, 5.5rem); }
.addcted-launch { background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .7), transparent 60%); }

/* ---------- Key points ---------- */
.addcted-points { align-items: stretch !important; }
.addcted-points > .wp-block-column {
	background: var(--wp--preset--color--surface);
	border-radius: 24px;
	padding: clamp(1.5rem, 2.5vw, 2.25rem);
	border: 1px solid rgba(30, 23, 20, .06);
	box-shadow: 0 20px 50px -36px rgba(30, 23, 20, .35);
	transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.addcted-points > .wp-block-column:hover { transform: translateY(-4px); }
.addcted-point__icon { margin: 0 0 1.25rem !important; }
.addcted-point__icon img {
	width: 56px; height: 56px; padding: 12px; box-sizing: content-box;
	background: var(--wp--preset--color--blush); border-radius: 50%;
}
.addcted-point__title.wp-block-heading { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); margin: 0 0 .5rem !important; }

/* ---------- Dark bands (campaign + footer) ---------- */
.addcted-dark :where(h1, h2, h3, h4) { color: var(--wp--preset--color--base); }
.addcted-dark .has-muted-color { color: #b9ada2 !important; }
.addcted-dark .has-faint-color { color: #8f8379 !important; }
.addcted-dark .has-bronze-color { color: var(--wp--preset--color--bronze-light) !important; }
.addcted-dark .wp-block-separator { color: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .12); }
.addcted-dark .wp-block-button.is-style-outline .wp-block-button__link { color: #fff !important; border-color: rgba(255, 255, 255, .35) !important; }
.addcted-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--contrast) !important; border-color: #fff !important; }
.addcted-dark .wp-block-navigation a { color: var(--wp--preset--color--base) !important; }

/* ---------- Footer ---------- */
.addcted-footer__top .wp-block-image { margin: 0; }
.addcted-footer .wp-block-navigation a:hover { color: var(--wp--preset--color--bronze-light) !important; }

/* ---------- Inner pages ---------- */
.addcted-page .wp-block-post-content > * + * { margin-top: 1.25rem; }
.addcted-page .wp-block-post-content :where(p, li) { color: var(--wp--preset--color--muted); }
.addcted-page { padding-top: 9rem; }

/* ---------- Scroll reveal (front end only, enabled by JS) ---------- */
.addcted-js .addcted-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.addcted-js .addcted-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.addcted-js .addcted-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.addcted-merch { grid-template-columns: repeat(2, 1fr) !important; grid-auto-rows: clamp(260px, 55vw, 460px); }
	.addcted-merch__item.is-tall { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 781px) {
	.addcted-footer .wp-block-navigation { justify-content: flex-start !important; }
	.addcted-hero { padding-top: 10.5rem !important; }
	.addcted-header .addcted-logo img { width: 124px !important; }
	.addcted-hero .wp-block-cover__background { background: radial-gradient(ellipse 90% 40% at 50% 20%, rgba(242, 222, 212, .95), transparent 70%), var(--wp--preset--color--base) !important; }
	.wp-block-columns.addcted-points { flex-wrap: wrap !important; }
	.wp-block-columns.addcted-points > .wp-block-column { flex: 1 1 calc(50% - .75rem) !important; }
	.addcted-hero__cols { flex-direction: column-reverse; }
	.addcted-hero__product { max-width: min(72%, 290px); }
	.wp-block-columns.addcted-proof.is-not-stacked-on-mobile { flex-wrap: wrap !important; row-gap: 1.5rem !important; }
	.wp-block-columns.addcted-proof.is-not-stacked-on-mobile > .wp-block-column { flex: 0 0 calc(50% - .5rem) !important; }
	.addcted-card__media { min-height: 380px; }
	.addcted-why .wp-block-media-text__media { min-height: 520px !important; height: 520px; }
	.addcted-why .wp-block-media-text__media::after { background: linear-gradient(0deg, var(--wp--preset--color--surface), transparent 40%); }
	.addcted-ritual .wp-block-media-text__media::after { background: linear-gradient(0deg, var(--wp--preset--color--blush), transparent 10%); }
	.addcted-header .addcted-btn-sm { display: none; }
}
@media (max-width: 480px) {
	.wp-block-columns.addcted-points > .wp-block-column { flex-basis: 100% !important; }
	.addcted-merch { grid-template-columns: 1fr !important; grid-auto-rows: 120vw; }
	.addcted-merch__item.is-tall { grid-column: span 1; }
	.addcted-hero .wp-block-button { flex: 1 1 100%; }
	.addcted-hero .wp-block-button__link { width: 100%; }
}

/* ---------- Pink drop (merch) ---------- */
.addcted-drop h2 .has-bronze-color { color: #D81B7A !important; }
.addcted-drop .addcted-spot__video { box-shadow: 0 30px 80px -30px rgba(216, 27, 122, .45); border-color: rgba(30, 23, 20, .08); }

@media (max-width: 781px) {
	.addcted-ritual .wp-block-media-text__media { height: auto !important; min-height: 0 !important; }
}
