/*
Theme Name: GR8er Infinity
Theme URI: https://gr8erinfinity.com
Author: Ziv Rozenberg
Description: Clean block theme for gr8erinfinity.com.
Version: 1.4.3
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: gr8er
*/

/* ---------- Layout ---------- */
:root {
	--gr8er-gutter: clamp(20px, 6vw, 120px);
	--gr8er-section-y: clamp(64px, 9vw, 120px);
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }

.gr8er-section {
	padding: var(--gr8er-section-y) var(--gr8er-gutter);
	margin-block-start: 0 !important;
}
.gr8er-section--tight { padding-top: clamp(40px, 5vw, 64px); }
.gr8er-hero { padding-top: clamp(48px, 7vw, 96px); }
main > .wp-block-group + .wp-block-group { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Type ---------- */
.gr8er-h1 {
	font-size: clamp(2.5rem, 6.2vw, 4.75rem) !important;
	line-height: 1.08 !important;
	letter-spacing: -0.025em;
	margin-block: 24px 20px;
	text-wrap: balance;
}
.gr8er-h2 {
	font-size: clamp(2rem, 4.2vw, 3.25rem) !important;
	line-height: 1.12 !important;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin-bottom: 0.5em;
}
.gr8er-lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); text-wrap: pretty; }
.gr8er-small { font-size: 1rem; color: var(--wp--preset--color--muted); }
.gr8er-label {
	font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--wp--preset--color--muted);
	margin-top: 2em;
}

/* Highlight word in hero */
.gr8er-highlight {
	background: linear-gradient(transparent 55%, var(--wp--preset--color--peach) 55%);
	color: inherit;
	padding: 0 0.08em;
}

/* Eyebrow pill: hug the text */
.gr8er-pill {
	display: table;
	margin-inline: auto !important;
	background: var(--wp--preset--color--mint);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 1rem;
	font-weight: 700;
}

/* ---------- Buttons ---------- */
.gr8er-btn .wp-block-button__link {
	border-radius: 18px;
	padding: 18px 32px;
	font-weight: 700;
	white-space: nowrap;
}
.gr8er-btn.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--ink);
}
.gr8er-btn--sm .wp-block-button__link { padding: 12px 22px; font-size: 1rem; }

/* ---------- Cards ---------- */
.gr8er-cards { gap: 24px; margin-top: 40px; }
.gr8er-cards.is-layout-grid,
.gr8er-steps.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)) !important;
}
.gr8er-steps.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)) !important; }
.gr8er-card {
	border-radius: 32px;
	padding: clamp(28px, 3.2vw, 44px) clamp(24px, 3vw, 40px);
	gap: 8px;
	position: relative;
}
.gr8er-card h3 { margin: 0; }
.gr8er-tag {
	background: var(--wp--preset--color--sky);
	border-radius: 10px;
	padding: 4px 12px;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}
.gr8er-cards--pricing { max-width: 820px; margin-inline: auto !important; }
.gr8er-price-card { gap: 12px; }
.gr8er-price-card .wp-block-buttons { margin-top: auto; padding-top: 12px; }
.gr8er-price {
	font-size: clamp(3rem, 5vw, 4rem);
	font-weight: 800;
	line-height: 1;
	margin: 8px 0 0;
	white-space: nowrap;
}
.gr8er-price span { font-size: 1.25rem; font-weight: 600; }
.gr8er-badge {
	position: absolute;
	top: 20px; right: 20px;
	background: var(--wp--preset--color--peach);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 0.875rem;
	font-weight: 800;
	margin: 0;
}

/* ---------- Lists ---------- */
.gr8er-checks { list-style: none; padding-left: 0; }
.gr8er-checks li { position: relative; padding-left: 32px; margin: 10px 0; }
.gr8er-checks li::before {
	content: "";
	position: absolute; left: 0; top: 0.3em;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--wp--preset--color--violet)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.gr8er-checklist { gap: clamp(16px, 4vw, 64px); margin-top: 32px; }
.gr8er-checklist h3 { margin-top: 1.4em; margin-bottom: 0.2em; }
.gr8er-checklist .wp-block-column > h3:first-child { margin-top: 0; }

.gr8er-quotes {
	list-style: none; padding: 0;
	display: grid; gap: 12px;
	max-width: 560px; margin: 12px auto 28px;
}
.gr8er-quotes li {
	background: var(--wp--preset--color--lavender);
	border-radius: 18px;
	padding: 14px 20px;
	font-style: italic;
	text-align: center;
}

/* ---------- Dashboard placeholder ---------- */
.gr8er-shot {
	margin-top: 40px;
	border: 2px dashed #B9B0EC;
	border-radius: 32px;
	padding: clamp(64px, 10vw, 120px) 24px;
}

/* ---------- Steps ---------- */
.gr8er-steps { gap: 32px; margin-top: 48px; }
.gr8er-step { text-align: center; }
.gr8er-step-num {
	width: 64px; height: 64px;
	border-radius: 50%;
	background: var(--wp--preset--color--peach);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 8px !important;
	font-size: 1.625rem; font-weight: 800;
}
.gr8er-step h3 { margin: 12px 0 4px; }

/* ---------- FAQ ---------- */
.gr8er-faq {
	background: var(--wp--preset--color--white);
	border-radius: 20px;
	padding: 18px 24px;
	margin-top: 12px !important;
	box-shadow: 0 1px 0 rgba(45, 49, 66, 0.06);
}
.gr8er-faq summary { font-weight: 800; cursor: pointer; }
.gr8er-faq p { margin: 12px 0 4px; }

/* ---------- Header / footer ---------- */
.gr8er-header { padding: 20px var(--gr8er-gutter); gap: 16px; }
.gr8er-brand { gap: 10px; align-items: center; }
.gr8er-logo { display: flex; line-height: 0; }
.gr8er-site-title { font-size: 24px; font-weight: 800; }
.gr8er-site-title a { text-decoration: none; }
.gr8er-header-right { gap: 24px; align-items: center; }
.gr8er-header .wp-block-navigation a { text-decoration: none; }

.gr8er-footer { padding: 72px var(--gr8er-gutter) 48px; margin-block-start: 0 !important; }
.gr8er-footer a { overflow-wrap: normal; word-break: normal; }

/* ---------- Products ---------- */
.gr8er-pill--peach { background: var(--wp--preset--color--peach); }
.gr8er-product { gap: 10px; }
.gr8er-product .wp-block-buttons { margin-top: auto; padding-top: 12px; }
.gr8er-product-name { font-size: clamp(1.75rem, 2.6vw, 2.25rem) !important; }
.gr8er-product-sub { font-weight: 700; color: var(--wp--preset--color--muted); margin-top: 0; }
.gr8er-status {
	align-self: flex-start;
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 0.875rem;
	font-weight: 800;
	margin: 0 0 8px;
}
.gr8er-status--live { background: var(--wp--preset--color--white); }
.gr8er-status--soon { background: var(--wp--preset--color--peach); }
.gr8er-cards--products { max-width: 1000px; margin-inline: auto !important; }

/* Waitlist placeholder (swap for HubSpot embed) */
.gr8er-waitlist { margin: 32px auto 8px; max-width: 560px; }
.gr8er-waitlist-btn {
	display: inline-block;
	background: var(--wp--preset--color--violet);
	color: var(--wp--preset--color--white) !important;
	border-radius: 18px;
	padding: 18px 32px;
	font-weight: 700;
	text-decoration: none;
}
.gr8er-waitlist-btn:hover { opacity: 0.92; }

/* Header submenu */
.gr8er-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--cream) !important;
	border: 0 !important;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(45, 49, 66, 0.12);
	padding: 8px !important;
	min-width: 240px !important;
}
.gr8er-header .wp-block-navigation__submenu-container a { padding: 8px 12px !important; border-radius: 10px; }
.gr8er-header .wp-block-navigation__submenu-container a:hover { background: var(--wp--preset--color--lavender); }

/* Phone menu overlay */
.gr8er-header .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
	padding: 24px var(--gr8er-gutter) !important;
}
.gr8er-header .is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: 22px !important;
	font-size: 1.375rem;
}
.gr8er-header .is-menu-open .wp-block-navigation__submenu-container {
	box-shadow: none !important;
	background: transparent !important;
	padding: 12px 0 0 16px !important;
	min-width: 0 !important;
	gap: 12px !important;
	font-size: 1.125rem;
	font-weight: 600;
}
.gr8er-header .is-menu-open .wp-block-navigation-item,
.gr8er-header .is-menu-open .wp-block-navigation__submenu-container {
	align-items: flex-start !important;
	text-align: left !important;
}
.gr8er-header .is-menu-open .wp-block-navigation__submenu-container a { padding: 0 !important; }
.gr8er-header .is-menu-open .wp-block-navigation__submenu-container a:hover { background: none; color: var(--wp--preset--color--violet); }

/* ---------- Inner pages ---------- */
.gr8er-page { padding-inline: var(--gr8er-gutter) !important; }
.gr8er-page .wp-block-post-title { margin-bottom: 0.6em; }

/* ---------- Blog and guides ---------- */
.gr8er-posts .wp-block-post-template { gap: 24px; margin-top: 32px; padding: 0; }
.gr8er-post-card { height: 100%; gap: 10px; }
.gr8er-post-card .wp-block-post-title { margin: 0; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.gr8er-post-card .wp-block-post-title a { text-decoration: none; }
.gr8er-post-card .wp-block-post-featured-image { margin: 0 0 8px; }
.gr8er-post-card .wp-block-post-excerpt { margin: 0; }
.gr8er-post-card .wp-block-post-terms a { text-decoration: none; }
.gr8er-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--wp--preset--color--muted); }
.gr8er-posts .wp-block-query-pagination { margin-top: 40px; gap: 16px; }
@media (max-width: 781px) {
	.gr8er-posts .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; }
}


/* ---------- Infinity spinner (submit buttons) ---------- */
.is-loading { position: relative; pointer-events: none; color: transparent !important; }
.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 44px;
	height: 26px;
	background: url("assets/gr8er-spinner.svg") center / contain no-repeat;
}
.wp-block-button__link.is-loading,
.wp-block-button.is-loading .wp-block-button__link { color: transparent !important; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.gr8er-header .gr8er-header-cta { display: none !important; }
	.gr8er-pill { font-size: 0.875rem; padding: 6px 14px; }
	.gr8er-site-title { font-size: 20px; }
	.gr8er-btn .wp-block-button__link { padding: 16px 26px; }
	.gr8er-badge { position: static; align-self: flex-start; }
}

/* Blog index: hero image + intro */
.gr8er-blog-hero { margin: 0 0 1.5rem; }
.gr8er-blog-hero img { width: 100%; height: 100%; object-fit: cover; }
.gr8er-blog-intro { margin-bottom: 1rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.gr8er-blog-intro pre, .gr8er-blog-intro code { background: none; border: 0; padding: 0; white-space: normal; font: inherit; }
