/*
Theme Name: ThinkGen
Theme URI: https://github.com/a4k-ai/thinkgen-theme
Author: A4K
Description: ThinkGen child theme of A4K Parent. Warm cream + warm charcoal + electric blue; signature bento grid, hero video treatment, survey card. Structure comes from the parent, content lives in wp-admin.
Template: a4k-parent-theme
Version: 0.5.0
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thinkgen
*/

/* ================================================================
   Think · Make · Vibe · Gen bento grid — the ThinkGen signature.
   Markup: .thinkgen-bento-grid > a.thinkgen-bento-col ×4
================================================================ */
/* Grid: Apple caps their widest tile grid at ~1340px. The section behind
   this stays full-bleed — only the cards are contained. */
.thinkgen-bento-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--20, 20px);
	max-width: var(--wp--custom--grid-wide, 1340px);
	margin-inline: auto;
	padding-inline: var(--wp--custom--gutter, 22px);
	width: 100%;
	box-sizing: border-box;
}

/* Cards: rounded, spaced, and static. Apple transitions colour, never
   scale — no hover zoom anywhere in the grid. */
.thinkgen-bento-col {
	padding: 40px 28px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--border-radius--lg, 18px);
	text-decoration: none;
	color: var(--wp--preset--color--text);
	transition: background-color 0.2s ease;
	cursor: pointer;
}

.thinkgen-bento-badge {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--background);
	padding: 6px 16px;
	font-weight: 800;
	font-size: 0.875rem;
	letter-spacing: -0.02em;
	border-radius: var(--wp--custom--border-radius--full, 9999px);
	margin-bottom: 16px;
}

.thinkgen-bento-icon {
	width: 64px;
	height: 64px;
	margin-bottom: 20px;
}

.thinkgen-bento-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.thinkgen-bento-number {
	font-size: 3rem;
	font-weight: 900;
	color: var(--wp--preset--color--border);
	margin-top: auto;
}

@media (min-width: 1024px) {
	.thinkgen-bento-col:hover { background-color: #fdf8f2; }
}

@media (max-width: 1023px) {
	.thinkgen-bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
	.thinkgen-bento-grid { grid-template-columns: 1fr; }
}

/* Subject tag pills */
.thinkgen-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 12px 0; }
.thinkgen-tag {
	padding: 4px 12px;
	border-radius: var(--wp--custom--border-radius--full, 9999px);
	font-size: 0.75rem;
	font-weight: 600;
}
.thinkgen-tag.tag-black { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--background); }
.thinkgen-tag.tag-darkgray { background: #6b615c; color: var(--wp--preset--color--background); }
.thinkgen-tag.tag-gray { background: #8a807b; color: var(--wp--preset--color--surface); }
.thinkgen-tag.tag-lightgray { background: #b5aca7; color: var(--wp--preset--color--surface); }
.thinkgen-tag.tag-white { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--text); border: 1px solid var(--wp--preset--color--border); }

/* ================================================================
   Hero video treatment (100vh, overlay, staggered fade-up copy)
   Markup: .thinkgen-hero > video + .thinkgen-hero-overlay + .thinkgen-hero-copy
================================================================ */
.thinkgen-hero {
	position: relative;
	/* Full-width band; the video is a cover background and gets cropped.
	   Mobile/tablet: full screen height for impact. */
	width: 100%;
	height: 100svh;
	background-color: var(--wp--preset--color--secondary);
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Desktop: shorter hero band (~65% of the screen) */
@media (min-width: 1024px) {
	.thinkgen-hero {
		height: 65svh;
		min-height: 520px;
	}
}

/* Front page: no block gaps between the full-width sections */
.home .wp-site-blocks main.wp-block-group,
.home .wp-site-blocks main .wp-block-post-content,
.home .wp-block-post-content > * {
	margin-top: 0;
	margin-block-start: 0;
}

.thinkgen-hero video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thinkgen-hero-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
	pointer-events: none;
	z-index: 2;
}

.thinkgen-hero-copy {
	position: relative;
	z-index: 3;
	text-align: center;
	color: var(--wp--preset--color--highlight, #f0ec72);
	pointer-events: none;
}

.thinkgen-hero-copy .hero-tagline,
.thinkgen-hero-copy .hero-subtitle {
	font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.8rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 8px;
	text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
	animation: thinkgen-fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.thinkgen-hero-copy .hero-title {
	font-size: clamp(2.5rem, 1.8rem + 3.5vw, 5.8rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin: 0 0 16px;
	color: inherit;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
	animation: thinkgen-fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.thinkgen-hero-copy .hero-subtitle {
	font-weight: 700;
	animation-delay: 0.8s;
}

@keyframes thinkgen-fade-up {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   Survey / consultation card (glassmorphic)
   Markup: .thinkgen-survey-card wrapping the form
================================================================ */
.thinkgen-survey-card {
	background: rgba(255, 255, 255, 0.45);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 20px 40px rgba(80, 71, 67, 0.08);
}

@supports (backdrop-filter: blur(1px)) {
	.thinkgen-survey-card { backdrop-filter: blur(20px); }
}

@media (max-width: 599px) {
	.thinkgen-survey-card { padding: 24px 16px; }
}

/* ================================================================
   Reduced motion
================================================================ */
@media (prefers-reduced-motion: reduce) {
	.thinkgen-hero video { display: none; }
	.thinkgen-hero-copy .hero-tagline,
	.thinkgen-hero-copy .hero-title,
	.thinkgen-hero-copy .hero-subtitle { animation: none; }
}
