/* ==========================================================================
   ROW — Gutenberg block styles
   Applies the theme's design system to core blocks so pages can be built
   entirely in the block editor without custom block code.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section wrappers
   -------------------------------------------------------------------------- */

.wp-block-group.is-style-row-section {
	position: relative;
	padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.wp-block-group.is-style-row-section-alt {
	position: relative;
	padding: clamp(4.5rem, 9vw, 8rem) 0;
	background: linear-gradient(180deg, var(--row-bg) 0%, #101317 45%, var(--row-bg) 100%);
	border-top: 1px solid rgba(237, 228, 211, 0.045);
	border-bottom: 1px solid rgba(237, 228, 211, 0.045);
}

.wp-block-group.is-style-row-band {
	position: relative;
	padding: clamp(3.5rem, 7vw, 6rem) 0;
	background:
		radial-gradient(900px 500px at 18% 0%, rgba(224, 86, 47, 0.1), transparent 62%),
		linear-gradient(180deg, #0d1014, #090b0e);
	border-top: 1px solid rgba(201, 163, 91, 0.16);
	border-bottom: 1px solid rgba(201, 163, 91, 0.16);
}

/* Constrain inner content to the theme container. */
.wp-block-group.is-style-row-section > .wp-block-group__inner-container,
.wp-block-group.is-style-row-section-alt > .wp-block-group__inner-container,
.wp-block-group.is-style-row-band > .wp-block-group__inner-container {
	width: min(calc(100% - 3rem), var(--row-max, 1280px));
	margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.wp-block-group.is-style-row-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: 92svh;
	padding: calc(var(--row-header, 84px) + 4.5rem) 0 clamp(4rem, 8vw, 7rem);
	background: #050608;
	overflow: hidden;
}

.wp-block-group.is-style-row-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: var(--row-img-hero-keyart, url("../img/hero-keyart.svg"));
	background-size: cover;
	background-position: 64% center;
}

.wp-block-group.is-style-row-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(5, 6, 8, 0.97) 0%, rgba(5, 6, 8, 0.86) 30%, rgba(5, 6, 8, 0.4) 58%, rgba(5, 6, 8, 0.2) 100%),
		linear-gradient(180deg, rgba(5, 6, 8, 0.75) 0%, transparent 28%, transparent 58%, rgba(5, 6, 8, 0.6) 84%, var(--row-bg) 100%);
}

.wp-block-group.is-style-row-hero > .wp-block-group__inner-container {
	position: relative;
	z-index: 2;
	width: min(calc(100% - 3rem), 1360px);
	margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.wp-block-heading.is-style-row-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 1.15rem;
	color: var(--row-gold);
	font-family: var(--wp--preset--font-family--body, "Barlow", system-ui, sans-serif);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.wp-block-heading.is-style-row-eyebrow::before {
	content: "";
	width: 34px;
	height: 1px;
	flex: none;
	background: linear-gradient(90deg, var(--row-gold), transparent);
}

.wp-block-heading.is-style-row-display {
	margin: 0;
	color: var(--row-bone);
	font-family: var(--wp--preset--font-family--display, "Cinzel", Georgia, serif);
	font-size: clamp(3.2rem, 8.5vw, 8.4rem);
	font-weight: 700;
	letter-spacing: 0.012em;
	line-height: 0.86;
	text-shadow: 0 12px 70px rgba(0, 0, 0, 0.7);
	text-wrap: balance;
}

.wp-block-heading.is-style-row-section-title {
	max-width: 20ch;
	margin: 0;
	color: var(--row-bone);
	font-family: var(--wp--preset--font-family--display, "Cinzel", Georgia, serif);
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.05;
	text-wrap: balance;
}

.wp-block-heading.is-style-row-section-title em {
	color: var(--row-gold-bright, #f0d49a);
	font-style: italic;
}

.wp-block-paragraph.is-style-row-lede {
	max-width: 625px;
	margin-top: 1.6rem;
	color: #d7cfc1;
	font-size: clamp(1.06rem, 1.55vw, 1.24rem);
	line-height: 1.65;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.wp-block-paragraph.is-style-row-section-desc {
	max-width: 62ch;
	margin-top: 1.1rem;
	color: var(--row-steel, #8d98a5);
	font-size: 1.0625rem;
	line-height: 1.7;
}

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

.wp-block-button.is-style-row-primary .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.95rem 1.7rem;
	border: 1px solid rgba(224, 86, 47, 0.9);
	border-radius: 2px;
	background: var(--row-ember, #e0562f);
	box-shadow: 0 14px 40px rgba(224, 86, 47, 0.24);
	color: var(--row-ink, #050608);
	font-family: var(--wp--preset--font-family--body, "Barlow", system-ui, sans-serif);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: background 200ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wp-block-button.is-style-row-primary .wp-block-button__link:hover {
	background: var(--row-ember-deep, #a62f1d);
	color: var(--row-bone, #ede4d3);
	transform: translateY(-2px);
}

.wp-block-button.is-style-row-secondary .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.95rem 1.7rem;
	border: 1px solid rgba(237, 228, 211, 0.28);
	border-radius: 2px;
	background: transparent;
	color: var(--row-bone, #ede4d3);
	font-family: var(--wp--preset--font-family--body, "Barlow", system-ui, sans-serif);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1), background 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wp-block-button.is-style-row-secondary .wp-block-button__link:hover {
	border-color: var(--row-gold, #c9a35b);
	background: rgba(201, 163, 91, 0.08);
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.wp-block-group.is-style-row-card {
	position: relative;
	height: 100%;
	padding: clamp(1.4rem, 2.4vw, 2rem);
	border: 1px solid var(--row-gunmetal, #242a31);
	border-radius: 8px;
	background: var(--row-charcoal, #14171b);
	transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wp-block-group.is-style-row-card:hover {
	transform: translateY(-4px);
	border-color: rgba(224, 86, 47, 0.5);
}

.wp-block-columns.is-style-row-grid {
	gap: clamp(1rem, 2vw, 1.75rem);
	align-items: stretch;
}

/* --------------------------------------------------------------------------
   Editor adjustments
   -------------------------------------------------------------------------- */

.editor-styles-wrapper .wp-block-group.is-style-row-hero {
	min-height: 60vh;
}

.editor-styles-wrapper .wp-block-group.is-style-row-section,
.editor-styles-wrapper .wp-block-group.is-style-row-section-alt,
.editor-styles-wrapper .wp-block-group.is-style-row-band {
	padding: 2.5rem 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button.is-style-row-primary .wp-block-button__link,
	.wp-block-group.is-style-row-card {
		transition: none;
	}

	.wp-block-button.is-style-row-primary .wp-block-button__link:hover,
	.wp-block-group.is-style-row-card:hover {
		transform: none;
	}
}
