/*
Theme Name: Rêves
Author: Rêves
Description: Custom theme for Rêves Lounge & Nightclub — site chrome and design tokens only. Domain features live in the reves plugin.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reves-theme
*/

/* Site chrome only — design tokens live in assets/css/tokens.css. */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg-base);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: var(--fw-light);
	line-height: var(--lh-display);
	letter-spacing: var(--track-display);
	text-transform: uppercase;
}

em {
	font-style: normal;
}

a {
	color: var(--gold);
	text-decoration: none;
}

a:hover {
	color: var(--gold-light);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	word-wrap: normal;
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	html {
		scroll-behavior: auto;
	}
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--gutter);
	z-index: 100;
	padding: 10px 16px;
	background: var(--gold);
	color: var(--on-gold);
	font-size: var(--fs-label);
	letter-spacing: var(--track-button);
	text-transform: uppercase;
}

.skip-link:focus {
	top: 8px;
}

:focus-visible {
	outline: 1px solid var(--gold);
	outline-offset: 3px;
}

/* ---- Shared controls ---------------------------------------------- */

.rv-logo {
	display: block;
	width: auto;
	height: 44px;
}

/*
 * The logo painted with the animated gold shimmer: the image's alpha is
 * used as a mask over the shimmer gradient. Size it with width; height follows
 * --logo-ratio. --logo-url is versioned by functions.php so a replaced
 * logo file is never served from cache. Stops under
 * prefers-reduced-motion (static gold).
 */
.rv-logo-shimmer {
	display: block;
	width: 100%;
	aspect-ratio: var(--logo-ratio);
	background: var(--gold-shimmer) 0 0 / 250% 100%;
	-webkit-mask: var(--logo-url) center / contain no-repeat;
	mask: var(--logo-url) center / contain no-repeat;
	animation: rv-shimmer 9s 2s ease-in-out infinite;
}

@keyframes rv-shimmer {

	0%,
	100% {
		background-position: 100% 0;
	}

	50% {
		background-position: 0 0;
	}
}

.rv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 18px 32px;
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	background: var(--gold);
	color: var(--on-gold);
	font: inherit;
	font-size: var(--fs-label);
	font-weight: var(--fw-semibold);
	letter-spacing: var(--track-button);
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
}

.rv-btn:hover {
	border-color: var(--gold-hover);
	background: var(--gold-hover);
	color: var(--on-gold);
}

.rv-btn--compact {
	padding: 12px 20px;
	letter-spacing: var(--track-nav);
}

/* On gold surfaces: navy fill, gold text. */
.rv-btn--inverse {
	border-color: var(--on-gold);
	background: var(--on-gold);
	color: var(--gold);
}

.rv-btn--inverse:hover {
	border-color: var(--bg-raised);
	background: var(--bg-raised);
	color: var(--gold-light);
}

.rv-btn--outline {
	border-color: var(--hairline-outline);
	background: transparent;
	color: var(--gold);
	font-weight: var(--fw-regular);
}

.rv-btn--outline:hover {
	border-color: var(--gold);
	background: transparent;
	color: var(--gold-light);
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px var(--gutter);
	background: var(--bg-header);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--hairline);
}

.site-header__logo .rv-logo {
	height: 40px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.site-header__toggle {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 0 12px 8px;
	border: 0;
	background: none;
	cursor: pointer;
}

.site-header__toggle-bar {
	width: 22px;
	height: 1px;
	background: var(--gold);
	transition: transform 0.25s ease;
}

.is-nav-open .site-header__toggle-bar:first-of-type {
	transform: translateY(3.5px) rotate(45deg);
}

.is-nav-open .site-header__toggle-bar:last-of-type {
	transform: translateY(-3.5px) rotate(-45deg);
}

.site-nav {
	display: none;
}

.site-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Mobile: the nav drops below the header as a full-width panel. */
.is-nav-open .site-nav {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 8px var(--gutter) 32px;
	background: var(--bg-base);
	border-bottom: 1px solid var(--hairline-strong);
}

.is-nav-open .site-nav a {
	display: block;
	padding: 18px 0;
	border-bottom: 1px solid var(--rule);
	color: var(--text);
	font-size: 22px;
	font-weight: var(--fw-light);
	letter-spacing: var(--track-display);
	text-transform: uppercase;
}

.is-nav-open .site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav a[aria-current="page"] {
	color: var(--gold);
}

@media (min-width: 900px) {

	.site-header {
		padding: 14px var(--gutter);
	}

	.site-header__logo .rv-logo {
		height: 46px;
	}

	.site-header__toggle {
		display: none;
	}

	.site-nav {
		display: block;
		margin-left: auto;
	}

	.site-nav__list {
		display: flex;
		gap: clamp(14px, 2.2vw, 32px);
	}

	.site-nav a {
		color: var(--text-muted);
		font-size: var(--fs-label);
		letter-spacing: var(--track-nav);
		text-transform: uppercase;
	}

	.site-nav a:hover {
		color: var(--gold-light);
	}

	.site-header__actions {
		margin-left: clamp(14px, 2.2vw, 32px);
	}
}

/* ---- Fallback content (index.php) ---------------------------------- */

.site-content {
	padding: var(--section-y) var(--gutter);
}

.site-content__title {
	margin-bottom: 32px;
	font-size: var(--fs-page-title);
}

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

.site-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 32px var(--gutter);
	border-top: 1px solid var(--hairline);
	color: var(--text-faint);
	font-size: var(--fs-label);
	letter-spacing: var(--track-wordmark);
	text-transform: uppercase;
}

.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.site-footer__brand .rv-logo {
	height: 36px;
}

.site-footer__descriptor {
	color: var(--text-faint);
	font-size: var(--fs-micro);
	letter-spacing: 0.26em;
}

/* Social profiles: gold outline icons, each a 44px tap target. */
.site-footer__social {
	display: flex;
	gap: 4px;
	/* The tap targets' padding, so the first icon lines up with the logo. */
	margin: 0 -12px;
	padding: 0;
	list-style: none;
}

.site-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--gold);
	transition: color 0.2s ease;
}

.site-footer__social a:hover {
	color: var(--gold-light);
}

.site-footer__icon {
	display: block;
}
