/* =====================================================
   Ray Black & The Flying Carpets — Atomic-Age Edition
   Fixed dark sidebar + one-page scroll
   Palette: extracted directly from the band's official
   "Downtown Ride" album cover design deck (Urban Zotel, Jun 2022) —
   deep navy #27203f, coral #e26c6c, cream #eeece0, warm cream #d8d0c5
   Fonts: Anton (display/wordmark), Kaushan Script (signature script),
          Jost (Futura-style geometric sans, body)
   ===================================================== */

:root {
	--rbfc-navy: #27203f;
	--rbfc-navy-dark: #1c172d;
	--rbfc-cream: #eeece0;
	--rbfc-cream-warm: #d8d0c5;
	--rbfc-coral: #e26c6c;
	--rbfc-coral-dark: #9f4d4e;
	--rbfc-ink: #2b2740;
	--rbfc-sidebar-w: 300px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--rbfc-cream);
	color: var(--rbfc-ink);
	font-family: 'Jost', sans-serif;
	font-weight: 400;
	line-height: 1.7;
	overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0 0 0.4em; color: inherit; }

a { color: var(--rbfc-coral-dark); text-decoration: none; }
a:hover { color: var(--rbfc-coral); }

.script-title {
	font-family: 'Kaushan Script', cursive;
	font-weight: 400;
	font-size: 2.5rem;
	color: var(--rbfc-coral-dark);
	line-height: 1;
	margin-bottom: 0.5em;
}
.script-title--center { text-align: center; }

.section__lede { text-align: left; color: #55524a; margin-top: -0.6em; margin-bottom: 2em; }
.section__lede--center { text-align: center; }

/* ---------- Atomic decorative shapes ---------- */
.atomic-burst {
	position: absolute;
	width: 140px;
	height: 140px;
	top: -30px;
	right: 6%;
	background:
		repeating-conic-gradient(var(--rbfc-coral) 0deg 8deg, transparent 8deg 24deg);
	border-radius: 50%;
	opacity: 0.55;
	pointer-events: none;
	z-index: 0;
}
.atomic-burst--small { width: 90px; height: 90px; top: 10px; }

.atomic-boomerang {
	position: absolute;
	width: 220px;
	height: 110px;
	pointer-events: none;
	z-index: 0;
	opacity: 0.5;
}
.atomic-boomerang--1 {
	top: 10px;
	left: -60px;
	background: var(--rbfc-coral-dark);
	border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
	transform: rotate(-18deg);
}

.atomic-orbit {
	position: absolute;
	top: 20px;
	right: 8%;
	width: 160px;
	height: 160px;
	border: 3px solid var(--rbfc-coral-dark);
	border-radius: 50%;
	opacity: 0.35;
	pointer-events: none;
}
.atomic-orbit::before,
.atomic-orbit::after {
	content: '';
	position: absolute;
	inset: -24px;
	border: 2px solid var(--rbfc-coral);
	border-radius: 50%;
	opacity: 0.6;
}
.atomic-orbit::after { inset: 24px; border-color: var(--rbfc-coral); }

/* ---------- Buttons / forms ---------- */
.btn {
	display: inline-block;
	padding: 0.85em 2em;
	font-family: 'Anton', sans-serif;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	border-radius: 999px;
	border: 2px solid transparent;
	transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn--atomic {
	background: var(--rbfc-coral);
	color: var(--rbfc-cream);
	box-shadow: 4px 4px 0 var(--rbfc-coral);
}
.btn--atomic:hover { background: var(--rbfc-coral-dark); color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--rbfc-coral); }

.atomic-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.atomic-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.atomic-form input[type="text"],
.atomic-form input[type="email"],
.atomic-form textarea {
	background: rgba(244, 236, 216, 0.95);
	border: none;
	border-radius: 4px;
	padding: 0.9em 1em;
	font-family: 'Jost', sans-serif;
	color: var(--rbfc-ink);
}
.atomic-form textarea { resize: vertical; }
.atomic-form__consent { font-size: 0.85rem; display: flex; gap: 8px; align-items: flex-start; }
.atomic-form button { align-self: flex-start; }
.form-success { color: var(--rbfc-coral); font-family: 'Anton', sans-serif; font-size: 1.1rem; }

@media (max-width: 560px) {
	.atomic-form__row { grid-template-columns: 1fr; }
}

/* Placeholder styling — obvious in-browser so missing assets aren't silently broken */
.placeholder-img {
	background: var(--rbfc-navy-dark);
	border: 2px dashed var(--rbfc-coral);
	display: block;
	overflow: hidden;
}
.placeholder-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.site-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--rbfc-sidebar-w);
	height: 100vh;
	background: var(--rbfc-navy);
	border-right: 4px solid var(--rbfc-coral);
	z-index: 40;
	overflow-y: auto;
}
.site-sidebar__inner { padding: 40px 30px; }

.site-sidebar__logo { display: block; margin-bottom: 40px; text-align: center; }
.site-sidebar__logo-img,
.site-sidebar__logo img { max-width: 100%; height: auto; }

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.site-nav__list a {
	display: block;
	font-family: 'Kaushan Script', cursive;
	font-weight: 400;
	font-size: 1.15rem;
	color: var(--rbfc-cream-warm);
	padding: 8px 10px;
	border-radius: 6px;
	transition: background 0.15s ease, color 0.15s ease;
}
.site-nav__list a:hover {
	background: var(--rbfc-coral-dark);
	color: #fff;
}

.nav-toggle {
	display: none;
	position: fixed;
	top: 16px;
	left: 16px;
	z-index: 60;
	flex-direction: column;
	gap: 5px;
	background: var(--rbfc-navy);
	border: 2px solid var(--rbfc-coral);
	border-radius: 8px;
	padding: 10px;
	cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--rbfc-cream); display: block; }

.site-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 39;
}

@media (max-width: 900px) {
	.nav-toggle { display: flex; }
	.site-sidebar {
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		width: min(300px, 82vw);
	}
	.site-sidebar.is-open { transform: translateX(0); }
	.site-sidebar.is-open ~ .site-overlay,
	.site-overlay.is-open { display: block; }
	.site-main { margin-left: 0 !important; }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.site-main { margin-left: var(--rbfc-sidebar-w); }

.section {
	position: relative;
	padding: 90px 60px;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	overflow: hidden;
}

/* Scroll-reveal: only engages once JS has run (body.js-reveal-ready is added
   in main.js), so content stays fully visible if JS fails to load. */
.js-reveal-ready .section {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal-ready .section.in-view {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.js-reveal-ready .section { opacity: 1; transform: none; transition: none; }
}

/* About / Press / Download / Contact use a media + text split */
.section--about,
.section--press,
.section--download,
.section--contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	padding: 0;
	align-items: stretch;
}
.section--about .section__media,
.section--press .section__media,
.section--download .section__media,
.section--contact .section__media {
	position: relative;
	min-height: 480px;
	overflow: hidden;
}
.section__media-img { width: 100%; height: 100%; object-fit: cover; }
.section__media-img--mono { filter: grayscale(1); }
/* Parallax images are pre-scaled so the translateY applied on scroll never
   reveals empty edges; see assets/js/main.js for the scroll handler. */
.js-parallax {
	transform: scale(1.18);
	will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
	.js-parallax { transform: none !important; }
}
.section__media-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(23,24,28,0.35), rgba(23,24,28,0.75));
}
.section--about .section__body,
.section--press .section__media-content,
.section--download .section__media-content,
.section--contact .section__media-content {
	padding: 80px 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.section--press .section__media-content,
.section--download .section__media-content,
.section--contact .section__media-content {
	position: relative;
	z-index: 2;
	background: var(--rbfc-navy);
	color: var(--rbfc-cream-warm);
}
.section--press .script-title,
.section--download .script-title,
.section--contact .script-title { color: var(--rbfc-coral); }

.section--about .section__text p { color: #4a473f; }

@media (max-width: 860px) {
	.section--about,
	.section--press,
	.section--download,
	.section--contact { grid-template-columns: 1fr; }
	.section--about .section__media,
	.section--press .section__media,
	.section--download .section__media,
	.section--contact .section__media { min-height: 280px; }
	.section--about .section__body,
	.section--press .section__media-content,
	.section--download .section__media-content,
	.section--contact .section__media-content { padding: 50px 28px; }
}

.pull-quote {
	margin: 1.4em 0 0;
	padding: 1em 1.4em;
	border-left: 4px solid var(--rbfc-coral-dark);
	background: rgba(42, 167, 161, 0.08);
	font-style: italic;
}
.pull-quote cite { display: block; margin-top: 0.5em; font-style: normal; color: var(--rbfc-coral-dark); font-size: 0.85rem; }

/* ---------- The Band ---------- */
.band-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 34px;
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}
.band-member { text-align: center; }
.band-member__photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	margin-bottom: 16px;
	/* Approximates the album art's warm-cream duotone cutout-head treatment
	   until real cutout photos are uploaded via the Customizer. */
	filter: grayscale(0.9) sepia(0.25) brightness(1.03) contrast(1.05);
}
.band-member__name { font-family: 'Anton', sans-serif; font-size: 1.3rem; color: var(--rbfc-coral-dark); }
.band-member__role { font-style: italic; color: #55524a; font-size: 0.9rem; }

/* ---------- Music / Discography ---------- */
.section--music { background: var(--rbfc-cream-warm); }
.album {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 40px;
	max-width: 1100px;
	margin: 0 auto 60px;
	position: relative;
	z-index: 1;
}
.album:last-child { margin-bottom: 0; }
.album--reverse { grid-template-columns: 1fr 300px; }
.album--reverse .album__cover { order: 2; }
.album__cover { aspect-ratio: 1 / 1; border-radius: 10px; box-shadow: 6px 6px 0 var(--rbfc-coral-dark); }
.album__title { font-family: 'Anton', sans-serif; font-size: 1.6rem; color: var(--rbfc-coral-dark); }
.album__meta { color: var(--rbfc-coral-dark); font-weight: 500; margin-bottom: 1em; }
.album__reviews-title { font-size: 1rem; margin-top: 1.1em; color: var(--rbfc-ink); }
.album__review-source { text-decoration: underline; font-size: 0.85rem; color: #55524a; margin: 0 0 0.4em; }
.album__review { color: #4a473f; font-size: 0.95rem; }

@media (max-width: 720px) {
	.album, .album--reverse { grid-template-columns: 1fr; }
	.album--reverse .album__cover { order: 0; }
	.album__cover { max-width: 300px; }
}

/* ---------- Videos ---------- */
.video-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}
.video-item__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
}
.video-item__frame iframe,
.video-item__frame .wp-embed-responsive-wrapper,
.video-item__frame .wp-block-embed__wrapper {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-item__frame .wp-embed-responsive-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-item__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.4rem;
	color: var(--rbfc-cream);
	background: rgba(23,24,28,0.35);
}
.video-item figcaption { margin-top: 10px; text-align: center; color: #55524a; font-size: 0.9rem; }

/* ---------- Gallery ---------- */
.section--gallery { background: var(--rbfc-cream-warm); }
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	max-width: 1300px;
	margin: 0 auto;
}
.gallery-item { aspect-ratio: 1 / 1; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Social ---------- */
.section--social { text-align: center; }
.social-links { display: flex; gap: 24px; justify-content: center; position: relative; z-index: 1; }
.social-links a { font-family: 'Anton', sans-serif; color: var(--rbfc-coral-dark); font-size: 1.1rem; }

/* ---------- Responsive section padding ---------- */
@media (max-width: 720px) {
	.section { padding: 60px 24px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	background: var(--rbfc-navy);
	color: var(--rbfc-cream-warm);
	padding: 60px;
	text-align: center;
}
.site-footer__social { display: flex; gap: 16px; justify-content: center; margin-bottom: 30px; }
.social-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--rbfc-coral);
	color: var(--rbfc-navy);
	display: flex;
	align-items: center;
	justify-content: center;
}
.social-icon:hover { background: var(--rbfc-coral); color: #fff; }

.site-footer__links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.site-footer__links a { font-size: 0.9rem; color: var(--rbfc-cream-warm); }
.site-footer__links a:hover { color: var(--rbfc-coral); }

.site-footer__copyright,
.site-footer__legal { font-size: 0.85rem; color: #b9b3a2; margin: 4px 0; }
.site-footer__legal a { color: #b9b3a2; }

@media (max-width: 720px) {
	.site-footer { padding: 40px 24px; }
}
