/* Distro theme -- lightweight custom CSS. Mobile-first: base rules target small screens, larger breakpoints add layout only. */

*,
*::before,
*::after {
	box-sizing: border-box;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

/* ---------- Full-height hero: text/button entrance animation only (image appears immediately) ---------- */

@keyframes hero-content-reveal {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-reveal .wp-block-cover__inner-container > * {
	animation: hero-content-reveal 1s ease-out both;
	animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
	.hero-reveal .wp-block-cover__inner-container > * {
		animation: none;
	}
}

/* ---------- Header ---------- */

.site-header {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 100;
	background-color: var(--wp--preset--color--base);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-actions {
	align-items: center;
}

/* Keep anchor-linked sections (from nav "scroll to section" links) clear of the sticky header. */
[id] {
	scroll-margin-top: 90px;
}

/* ---------- Cards (shared look for any element using the "surface" color) ---------- */

.distro-card,
.has-surface-background-color {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.distro-card:hover,
.has-surface-background-color:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Buttons ---------- */

.wp-block-button__link {
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* ---------- Scroll-reveal (driven by assets/js/main.js, no jQuery) ---------- */

.distro-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.distro-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.distro-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Cards: every group sitting directly in a column stretches to match its row (site-wide, not just pricing) ---------- */

.wp-block-columns > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.wp-block-columns > .wp-block-column > .wp-block-group {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

/* Clear heading vs. body hierarchy inside cards. */

[style*="1a1a2e"] p:not(.has-text-color) {
	color: var(--wp--preset--color--muted);
}

/* Reserve two lines of height for card headings so a wrapped title doesn't
   push that card's body text out of alignment with its neighbors. */
[style*="1a1a2e"] h3 {
	min-height: 3.4rem;
}

/* Icon badge shown above a card heading. */

.card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 10px;
	background: rgba(106, 61, 245, 0.18);
	color: var(--wp--preset--color--accent-2);
	margin: 0 auto 0.75rem;
}

.card-icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

/* Round numbered badge used for step-by-step sections. */

.step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 auto 0.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	font-size: 1.15rem;
	font-weight: 700;
}

/* ---------- Pricing cards: equal height, aligned buttons ---------- */

.pricing-cards {
	align-items: stretch;
}

.pricing-cards .wp-block-column {
	display: flex;
	flex-direction: column;
}

.pricing-card {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

/* ---------- Footer ---------- */

.site-footer .wp-block-navigation {
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Mobile-first breakpoints ---------- */

/* Base (mobile) styles above are the default. From here up we only add layout refinements. */

@media (min-width: 700px) {
	.site-header-actions {
		gap: 2rem;
	}
}

@media (min-width: 1000px) {
	.site-header {
		padding-top: 1.25rem;
		padding-bottom: 1.25rem;
	}
}
