/*
Theme Name: TAIKOOL
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taikool
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

:root {
	--site-bg: var(--wp--preset--color--background);
	--site-text: var(--wp--preset--color--text);
	--site-primary: var(--wp--preset--color--primary);
	--site-secondary: var(--wp--preset--color--secondary);
	--site-accent: var(--wp--preset--color--accent);
}

/* === header === */
.site-header {
	position: relative;
	z-index: 5;
}
.site-brand a {
	color: var(--site-primary);
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.site-header-nav {
	gap: 1.5rem;
	align-items: center;
}
.site-header-nav .nav-link {
	margin: 0;
}
.site-header-nav .nav-link a {
	color: var(--site-primary);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
}
.site-header-nav .nav-link a:hover {
	color: var(--site-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* === buttons === */
.is-style-outline .wp-element-button {
	background: transparent;
	border: 2px solid var(--site-primary);
	color: var(--site-primary);
}
.is-style-outline .wp-element-button:hover {
	background: rgba(16, 43, 78, 0.06);
}

/* === hero === */
.hero {
	background: var(--site-bg);
}
.hero-grid {
	gap: clamp(2rem, 5vw, 4rem);
}
.hero-copy {
	max-width: 620px;
}
.hero-eyebrow {
	color: var(--site-accent);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0 0 1.25rem;
	text-transform: uppercase;
}
.hero-title {
	font-size: clamp(2.6rem, 5.4vw, 4rem);
	line-height: 1.02;
	margin: 0 0 1.4rem;
}
.hero-lede {
	color: var(--site-primary);
	font-size: 1.12rem;
	line-height: 1.65;
	margin: 0 0 2rem;
	opacity: 0.88;
	max-width: 540px;
}
.hero-product-card {
	border-radius: var(--wp--custom--rounded--lg);
	box-shadow: 0 24px 60px -30px rgba(16, 43, 78, 0.55);
}
.hero-product {
	margin: 0 0 0.9rem;
}
.hero-product img {
	border-radius: var(--wp--custom--rounded--md);
	display: block;
	max-height: 520px;
	object-fit: cover;
	width: 100%;
}
.hero-product-caption {
	color: rgba(247, 249, 252, 0.85);
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	margin: 0;
}
.hero-product-caption strong {
	color: #fff;
}

/* === segments === */
.segments-label,
.cooler-label,
.adviser-label,
.cta-label {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}
.segments-label {
	color: var(--site-secondary);
}
.segments-title {
	color: #fff;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin: 0 0 2.5rem;
	max-width: 720px;
}
.segments-grid {
	gap: 1.5rem;
}
.segment {
	border-top: 1px solid rgba(220, 234, 245, 0.28);
	padding: 1.5rem 1.25rem 0 0;
}
.segment-index p {
	color: var(--site-accent);
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin: 0 0 0.6rem;
}
.segment-title {
	color: #fff;
	font-size: 1.25rem;
	margin: 0 0 0.6rem;
}
.segment > p {
	color: rgba(247, 249, 252, 0.78);
	margin: 0;
}

/* === cooler === */
.cooler-label {
	color: var(--site-accent);
}
.cooler-title {
	color: var(--site-primary);
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	margin: 0 0 1.25rem;
}
.cooler-copy > p:not(.cooler-note):not(.cooler-label) {
	color: var(--site-primary);
	opacity: 0.85;
}
.cooler-list {
	color: var(--site-primary);
	list-style: none;
	margin: 1.5rem 0;
	padding: 0;
}
.cooler-list li {
	margin-bottom: 0.65rem;
	padding-left: 1.4rem;
	position: relative;
}
.cooler-list li::before {
	background: var(--site-accent);
	border-radius: 50%;
	content: "";
	height: 0.5rem;
	left: 0;
	position: absolute;
	top: 0.55em;
	width: 0.5rem;
}
.cooler-note {
	color: var(--site-primary);
	font-size: 0.95rem;
	max-width: 480px;
	opacity: 0.75;
}
.cooler-image img {
	border-radius: var(--wp--custom--rounded--lg);
	box-shadow: 0 24px 60px -34px rgba(16, 43, 78, 0.4);
}

/* === adviser === */
.adviser-label {
	color: var(--site-primary);
}
.adviser-title {
	color: var(--site-primary);
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	margin: 0 0 1rem;
	max-width: 720px;
}
.adviser-lede {
	color: var(--site-primary);
	margin: 0 0 2.5rem;
	max-width: 560px;
	opacity: 0.8;
}
.adviser-grid {
	gap: 2.5rem;
}
.adviser-index p {
	color: var(--site-accent);
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin: 0 0 0.6rem;
}
.adviser-step-title {
	color: var(--site-primary);
	font-size: 1.25rem;
	margin: 0 0 0.6rem;
}
.adviser-step > p {
	color: var(--site-primary);
	margin: 0;
	opacity: 0.82;
}
.adviser-image img {
	border-radius: var(--wp--custom--rounded--lg);
}

/* === cta === */
.cta-label {
	color: var(--site-accent);
}
.cta-title {
	color: #fff;
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 0 auto 1.2rem;
	max-width: 760px;
}
.cta-body {
	color: rgba(247, 249, 252, 0.85);
	margin: 0 auto 2.25rem;
	max-width: 640px;
}
.cta-action .wp-element-button {
	background: var(--site-bg);
	color: var(--site-primary);
}
.cta-action .wp-element-button:hover {
	background: #ffffff;
}

/* === footer === */
.site-footer {
	color: rgba(247, 249, 252, 0.9);
}
.site-footer .wp-block-site-title a {
	color: #fff !important;
}
.site-footer a {
	color: rgba(247, 249, 252, 0.9);
	text-decoration: none;
}
.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.site-footer .has-label-font-size {
	color: rgba(247, 249, 252, 0.7);
	margin-top: 0.6rem;
}
.wp-block-separator {
	background: rgba(220, 234, 245, 0.35);
	border: 0;
	height: 1px;
	margin: 2.5rem 0;
}
.site-footer .has-small-font-size {
	color: rgba(247, 249, 252, 0.7);
}

/* === responsive === */
@media (max-width: 900px) {
	.hero-grid,
	.cooler-grid {
		flex-direction: column !important;
	}
	.hero-media {
		order: -1;
	}
	.segments-grid {
		gap: 1rem;
	}
	.adviser-grid {
		gap: 1.75rem;
	}
}
@media (max-width: 600px) {
	.site-header-nav {
		margin-top: 1rem;
		width: 100%;
	}
	.hero-product img {
		max-height: 420px;
	}
	.hero {
		padding-top: 48px !important;
	}
}

/* === motion === */
.js .reveal-hidden {
	opacity: 0;
	transform: translateY(18px);
}
.js .reveal-hidden.reveal-visible {
	opacity: 1;
	transform: none;
	transition: opacity 0.7s ease, transform 0.7s ease;
}
@media (prefers-reduced-motion: reduce) {
	.js .reveal-hidden {
		opacity: 1;
		transform: none;
	}
}
