/*
Theme Name: Reveal Salon Suites
Theme URI: https://revealsuites.com
Description: Custom block theme for Reveal Salon Suites - a luxury salon-suite rental brand. Built on native WordPress Gutenberg blocks (child of Twenty Twenty-Five) for a clean, fast, client-editable site with no page-builder bloat.
Author: msewell
Template: twentytwentyfive
Version: 1.3.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: reveal
*/

/* ============================================================
   Reveal - editorial layer
   Custom classes that drive real layout; content stays native.
   ============================================================ */

:root {
	--rv-rose: var(--wp--preset--color--primary);
	--rv-ink: var(--wp--preset--color--contrast);
	--rv-mute: var(--wp--preset--color--contrast-2);
}

/* ---------- Sticky header ----------
   The template-part wrapper is the sticky element (it is the tall-page child
   of .wp-site-blocks). Sticking the inner .rv-header would only stick within
   its short wrapper and scroll away. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(14, 12, 10, 0.80);
	-webkit-backdrop-filter: saturate(150%) blur(16px);
	backdrop-filter: saturate(150%) blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.rv-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-block: 1.1rem;
}
/* WP flow-layout adds a top margin to the 2nd child (the nav cluster); in a
   flex row that margin shoves it down off-center. Zero margins on both children
   so the wordmark and the nav cluster share the same vertical center. */
.rv-header__inner > * { margin-block: 0 !important; align-self: center; }
.rv-header__inner > .wp-block-group { align-items: center; }
.rv-header .wp-block-navigation,
.rv-header .wp-block-navigation > .wp-block-navigation__container { align-items: center; }
/* Kill the WordPress block-gap margin so the hero sits flush under the nav. */
.wp-site-blocks > main { margin-block-start: 0 !important; }
.rv-header .wp-block-site-title { margin: 0; line-height: 1; }
.rv-header .wp-block-site-title a { text-decoration: none; }
.rv-header .wp-block-navigation { --wp--style--block-gap: 0; }
.rv-header .wp-block-navigation .wp-block-navigation__container { gap: clamp(1rem, 2vw, 2rem); }
.rv-header .wp-block-navigation a { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--wp--preset--color--contrast); }
.rv-cta-pill a {
	background: var(--rv-rose);
	color: #141210;
	border-radius: 999px;
	padding: 0.7rem 1.5rem;
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.rv-cta-pill a:hover { background: var(--wp--preset--color--secondary); }
@media (max-width: 781px) {
	.rv-header__inner { gap: 1rem; }
	.rv-cta-pill { display: none; }
}

/* ---------- Shared section rhythm ---------- */
.rv-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.78rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--rv-rose);
	font-weight: 500;
}
.rv-kicker-num {
	font-family: var(--wp--preset--font-family--display);
	color: var(--rv-rose);
	line-height: 0.9;
}

/* ---------- Hero ---------- */
.rv-hero { position: relative; }
/* Dark scrim anchored to the bottom-left, behind the text only. Lets the white
   text read while the top-right of the photo stays visible. */
.rv-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(135% 125% at 0% 100%,
		rgba(8, 7, 6, 0.94) 0%,
		rgba(8, 7, 6, 0.82) 30%,
		rgba(8, 7, 6, 0.50) 47%,
		rgba(8, 7, 6, 0.16) 63%,
		rgba(8, 7, 6, 0) 80%);
}
.rv-hero .wp-block-cover__inner-container {
	position: relative;
	/* WP core sets this to 1, same as the ::after scrim, so the scrim paints
	   on top. Force the text above the scrim. */
	z-index: 3 !important;
	width: 100%;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.rv-hero__inner { max-width: 1200px; margin-inline: auto; width: 100%; }
.rv-hero__head { max-width: 680px; }
.rv-hero__head > * + * { margin-top: var(--wp--preset--spacing--30); }
.rv-stats {
	display: grid;
	grid-template-columns: repeat(3, auto);
	gap: clamp(1.25rem, 2vw, 2.25rem);
	justify-content: start;
	width: fit-content;
	max-width: 26rem;
	margin-top: clamp(1.75rem, 3vw, 2.25rem);
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.26);
}
.rv-stat__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem);
	color: var(--rv-ink);
	line-height: 1;
}
.rv-stat__label {
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--rv-mute);
	margin-top: 0.35rem;
}

/* ---------- Asymmetric split ---------- */
.rv-split {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}
.rv-split--center { align-items: center; }
.rv-statement {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
}
@media (max-width: 781px) {
	.rv-split { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Numbered amenities index ---------- */
.rv-index {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: clamp(2.5rem, 6vw, 6rem);
	row-gap: 2.75rem;
	counter-reset: rvidx;
}
.rv-index__item {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	padding-top: 1.4rem;
}
.rv-index__item::before {
	counter-increment: rvidx;
	content: counter(rvidx, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	color: var(--rv-rose);
	line-height: 1;
}
@media (max-width: 781px) {
	.rv-index { grid-template-columns: 1fr; row-gap: 1.75rem; }
}

/* ---------- Editorial location rows ---------- */
.rv-loc {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}
.rv-loc + .rv-loc { margin-top: clamp(3rem, 7vw, 6rem); }
.rv-loc__media img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: 4px;
}
.rv-loc__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3.5rem, 2rem + 7vw, 7rem);
	color: var(--rv-rose);
	line-height: 0.85;
	display: block;
}
.rv-loc__city {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
	margin: 0.4rem 0 0;
}
.rv-loc--rev .rv-loc__media { order: 2; }
@media (max-width: 781px) {
	.rv-loc, .rv-loc--rev .rv-loc__media { grid-template-columns: 1fr; order: 0; }
	.rv-loc { grid-template-columns: 1fr; }
}

/* ---------- Editorial gallery ---------- */
.rv-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 1fr;
	gap: 0.9rem;
}
.rv-gallery figure { margin: 0; height: 100%; }
.rv-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }
.rv-gallery .rv-g-tall { grid-row: span 2; }
.rv-gallery .rv-g-wide { grid-column: span 2; }
@media (max-width: 781px) {
	.rv-gallery { grid-template-columns: 1fr 1fr; }
	.rv-gallery .rv-g-wide { grid-column: span 2; }
	.rv-gallery .rv-g-tall { grid-row: span 1; }
}

/* ---------- Specialties marquee ---------- */
.rv-marquee {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem);
	color: var(--rv-mute);
	line-height: 1.5;
}
.rv-marquee em { color: var(--rv-rose); font-style: normal; }

/* ---------- CTA overlap ---------- */
.rv-cta__row {
	display: grid;
	grid-template-columns: 1.4fr auto;
	gap: 2rem;
	align-items: center;
}
@media (max-width: 781px) {
	.rv-cta__row { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
