/*
Theme Name: So Live So Ride
Theme URI: https://solivesoride.com
Author: Handmade Digital
Author URI: https://handmade-digital.com
Description: Custom block theme for So Live So Ride Moto Ranch, the motorcycle-only campground, training ground and guide service in Ozone, Arkansas.
Version: 3.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solivesoride
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; color-scheme: dark; --slsr-header-h: 76px; }
/* No root block gap between the sticky header and the page content */
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group.alignfull + main, main.wp-block-group { margin-block-start: 0 !important; }
.wp-site-blocks > header + * { margin-block-start: 0 !important; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { height: auto; }
a, button, summary, .wp-block-button__link { touch-action: manipulation; -webkit-tap-highlight-color: rgba(226, 90, 28, 0.25); }
::selection { background: var(--wp--preset--color--accent); color: #fff; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; border-radius: 2px; }
.wp-block-button__link:focus-visible, .slsr-choice:focus-visible { outline-offset: 2px; }
[id] { scroll-margin-top: 6rem; }
/* The quote block's cite is not a heading; keep it small. */
.wp-block-quote cite { display: block; margin-top: 1rem; font-size: 0.8rem; font-family: var(--wp--preset--font-family--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); font-style: normal; }
.wp-block-quote p { font-size: var(--wp--preset--font-size--x-large); line-height: 1.15; margin-bottom: 0; }
.slsr-top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ---------- Utilities ---------- */
.slsr-mono {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
}
.slsr-mono.is-accent { color: var(--wp--preset--color--accent); }
.slsr-coords { font-family: var(--wp--preset--font-family--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--wp--preset--color--contrast-2); }
.slsr-coords::before { content: "[ "; } .slsr-coords::after { content: " ]"; }

/* Brand topo texture: the client's own contour lines (white at 20% alpha) tiled over the teal page.
   Night-colored sections and photo bands sit on top of it, so it comes and goes down the page. */
body { background-image: url("assets/img/topo.png"); background-size: 1400px auto; background-position: center top; background-repeat: repeat; }
.slsr-topo { position: relative; }
.slsr-footer::after { background: linear-gradient(180deg, rgba(17,37,46,0.55) 0%, rgba(17,37,46,0.86) 45%, rgba(11,26,32,0.96) 100%); }


.slsr-strike::after {
	content: ""; display: block; height: 4px; width: 4rem;
	background: var(--wp--preset--color--accent); margin-top: 0.8rem;
}
.has-text-align-center.slsr-strike::after { margin-left: auto; margin-right: auto; }

.slsr-price { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 800; line-height: 1; color: var(--wp--preset--color--accent); font-variant-numeric: tabular-nums; }
.slsr-price small { font-family: var(--wp--preset--font-family--mono); font-size: 0.74rem; font-weight: 400; letter-spacing: 0.08em; color: var(--wp--preset--color--contrast-2); }
.slsr-card h3, .is-style-card h3 { font-size: var(--wp--preset--font-size--x-large); margin: 0; }
.wp-block-column.slsr-card { display: flex; flex-direction: column; }
.slsr-card-body { display: flex; flex-direction: column; flex: 1; gap: 0.9rem; padding: 1.5rem 1.5rem 1.4rem; text-align: left; }
.slsr-card-body > * { margin: 0; max-width: none; }
.slsr-card-lead { color: var(--wp--preset--color--contrast-2); }
.slsr-card-list, .slsr-card-body .wp-block-list { font-size: 0.95rem; padding-left: 0 !important; }
.slsr-card-list li { margin-bottom: 0.35rem; }
.slsr-card-foot { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.slsr-card-foot .slsr-price small { display: block; margin: 0.2rem 0 0; }
.slsr-card-foot .wp-block-buttons { margin: 0; }
.slsr-price small { display: block; margin: 0.25rem 0 0; }

.slsr-notice { border-left: 3px solid var(--wp--preset--color--accent); background: rgba(226, 90, 28, 0.08); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; }

.slsr-icon img { width: 140px; filter: invert(1) brightness(1.1); }

.slsr-card { background: var(--wp--preset--color--base-3); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease; }
.slsr-card:hover { transform: translateY(-4px); border-color: rgba(226,90,28,0.55); }
.slsr-card .wp-block-image { overflow: hidden; }
.slsr-card .wp-block-image img { transition: transform 0.7s cubic-bezier(0.16,1,0.3,1); display: block; }
.slsr-card:hover .wp-block-image img { transform: scale(1.04); }

/* ---------- Hero ---------- */
.slsr-hero.wp-block-cover { min-height: calc(100vh - var(--slsr-header-h)) !important; min-height: calc(100svh - var(--slsr-header-h)) !important; max-height: 940px; }
.slsr-hero .wp-block-cover__inner-container { width: 100%; }
.slsr-hero h1 { text-shadow: 0 6px 40px rgba(0,0,0,0.45); }
.slsr-hero .wp-block-cover__video-background { filter: saturate(1.05); }
.slsr-page-hero.wp-block-cover { min-height: 60vh; min-height: 60svh; max-height: 720px; }
.slsr-page-hero .wp-block-cover__inner-container { width: 100%; }
.slsr-page-hero h1 { text-shadow: 0 6px 40px rgba(0,0,0,0.5); }

/* Photo bands with gentle parallax where the browser supports scroll-driven animation */
.slsr-band.wp-block-cover { min-height: 60vh; overflow: hidden; }
.slsr-band .wp-block-cover__inner-container { width: 100%; }
@supports (animation-timeline: view()) {
	.slsr-motion .slsr-band .wp-block-cover__image-background,
	.slsr-motion .slsr-page-hero .wp-block-cover__image-background {
		animation: slsr-parallax linear both; animation-timeline: view(); height: 120%; top: -10%;
	}
}
@keyframes slsr-parallax { from { transform: translateY(-6%); } to { transform: translateY(6%); } }

/* ---------- Header ---------- */
.slsr-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(11, 26, 32, 0.6);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255,255,255,0.06);
	transition: background-color 0.3s ease;
}
.slsr-header.is-scrolled { background: rgba(11, 26, 32, 0.94); }
.admin-bar .slsr-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .slsr-header { top: 46px; } }
.slsr-header .wp-block-site-logo img { width: 54px; display: block; transition: transform 0.25s ease; }
.slsr-header > .wp-block-group { min-height: calc(var(--slsr-header-h) - 1.4rem); }
.slsr-header .wp-block-site-logo:hover img { transform: rotate(-4deg) scale(1.05); }
.slsr-header .wp-block-navigation-item__content { position: relative; padding: 0.3rem 0; }
.slsr-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
	background: var(--wp--preset--color--accent); transition: right 0.25s cubic-bezier(0.16,1,0.3,1);
}
.slsr-header .wp-block-navigation-item:hover .wp-block-navigation-item__content::after,
.slsr-header .current-menu-item .wp-block-navigation-item__content::after { right: 0; }
.slsr-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base-2); padding: 5rem 2rem 2rem; }
.slsr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 2rem; }
.slsr-header .wp-block-navigation__responsive-container-close { top: 1.2rem; right: 1.2rem; }
.slsr-header .slsr-cta .wp-block-button__link { padding: 0.7rem 1.2rem; font-size: 0.95rem; }

/* ---------- Buttons ---------- */
.wp-block-button__link { padding: 0.9rem 1.6rem; white-space: nowrap; transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,26,32,0.45); }
.wp-block-button__link:active { transform: translateY(0) scale(0.98); }
.is-style-outline .wp-block-button__link { border: 2px solid rgba(255,255,255,0.7); background: transparent; color: var(--wp--preset--color--contrast); }
.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

/* ---------- Footer ---------- */
.slsr-footer { position: relative; isolation: isolate; }
.slsr-footer::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/img/footer-bg.jpg") center 35% / cover no-repeat; }
.slsr-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--wp--preset--color--base) 0%, rgba(17,37,46,0.86) 45%, rgba(11,26,32,0.96) 100%); }
.slsr-footer .wp-block-navigation-item__content { font-size: 0.95rem; letter-spacing: 0.04em; }
.slsr-footer-logo img { width: 100px; }
.slsr-footer-fine { font-size: 0.8rem; color: var(--wp--preset--color--contrast-2); }
.slsr-footer-fine a { color: var(--wp--preset--color--contrast-2); text-decoration: none; }
.slsr-footer-fine a:hover { color: var(--wp--preset--color--accent); }
.slsr-footer .wp-block-social-links .wp-social-link { transition: transform 0.2s ease; }
.slsr-footer .wp-block-social-links .wp-social-link:hover { transform: translateY(-3px); }

/* ---------- Gallery / photos ---------- */
.wp-block-gallery.slsr-gallery figure { overflow: hidden; border-radius: 8px; }
.wp-block-gallery.slsr-gallery img { transition: transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.wp-block-gallery.slsr-gallery figure:hover img { transform: scale(1.04); }
.wp-block-image.slsr-photo img { border-radius: 8px; }
.slsr-map iframe { width: 100%; height: 440px; border: 0; border-radius: 8px; display: block; filter: grayscale(0.25) contrast(1.05); }

/* ---------- Events (shortcode) ---------- */
.slsr-events { border-top: 1px solid rgba(255,255,255,0.1); }
.slsr-event { display: grid; grid-template-columns: 9rem 1fr auto; gap: 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.slsr-event-date { font-family: var(--wp--preset--font-family--mono); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin: 0; }
.slsr-event-name { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin: 0; }
.slsr-hero-video-toggle { position: absolute; right: var(--wp--preset--spacing--30); bottom: var(--wp--preset--spacing--30); z-index: 3; font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--contrast); background: rgba(11,26,32,0.6); border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; padding: 0.45rem 0.7rem; cursor: pointer; }
.slsr-hero-video-toggle:hover { background: rgba(11,26,32,0.9); }
.slsr-event-tag { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); margin: 0.25rem 0 0; }
.slsr-event-meta { color: var(--wp--preset--color--contrast-2); font-size: 0.95rem; margin: 0.4rem 0 0; max-width: 60ch; }
.slsr-events-empty { color: var(--wp--preset--color--contrast-2); padding: 1.5rem 0; }
.slsr-events-past { margin-top: 1.5rem; color: var(--wp--preset--color--contrast-2); }
.slsr-events-past summary { cursor: pointer; font-family: var(--wp--preset--font-family--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.slsr-events-past ul { list-style: none; padding: 0.75rem 0 0; margin: 0; }
.slsr-events-past li { padding: 0.35rem 0; }
.slsr-events-past li span { font-family: var(--wp--preset--font-family--mono); font-size: 0.78rem; margin-right: 0.75rem; }
@media (max-width: 781px) {
	.slsr-event { grid-template-columns: 1fr; gap: 0.5rem; }
	.slsr-event-action { margin-top: 0.5rem; }
}

/* ---------- Event booking strip (shortcode on the Stay page) ---------- */
.slsr-event-booking { background: var(--wp--preset--color--base-3); border: 1px solid rgba(226,90,28,0.5); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: var(--wp--preset--spacing--40); }
.slsr-event-booking-head h2 { margin: 0.2rem 0 0.6rem; }
.slsr-event-booking-dates { font-size: 1.2rem; margin: 0 0 0.5rem; }
.slsr-event-booking-fee { color: var(--wp--preset--color--contrast-2); margin: 0 0 1.5rem; max-width: 65ch; }
.slsr-event-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.slsr-choice { display: grid; gap: 0.3rem; padding: 1.4rem; border-radius: 8px; background: var(--wp--preset--color--base-2); border: 1px solid rgba(255,255,255,0.1); color: var(--wp--preset--color--contrast); text-decoration: none; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.25s ease; }
.slsr-choice:hover { transform: translateY(-4px); border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); }
.slsr-choice-label { font-family: var(--wp--preset--font-family--heading); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.slsr-choice-price { font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem; font-weight: 700; color: var(--wp--preset--color--accent); }
.slsr-choice-price small { font-family: var(--wp--preset--font-family--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.06em; color: var(--wp--preset--color--contrast-2); }
.slsr-choice-blurb { color: var(--wp--preset--color--contrast-2); font-size: 0.95rem; }
.slsr-choice-cta { margin-top: 0.6rem; font-weight: 600; }
.slsr-event-booking-alt { margin: 1.25rem 0 0; color: var(--wp--preset--color--contrast-2); font-size: 0.95rem; }
@media (max-width: 781px) { .slsr-event-choices { grid-template-columns: 1fr; } }

/* ---------- VikBooking on dark ---------- */
.slsr-booking { background: #fff; color: #1a1f22; border-radius: 8px; padding: clamp(1rem, 3vw, 2rem); }
.slsr-booking * { font-family: var(--wp--preset--font-family--body) !important; }
.slsr-booking h3, .slsr-booking h4, .slsr-booking .vblistroomname, .slsr-booking .vbo-roomlist-name a, .slsr-booking .vbo-roomdetails-name { font-family: var(--wp--preset--font-family--heading) !important; text-transform: uppercase; }
.slsr-booking .vblistroomname a, .slsr-booking .vbo-roomlist-name a { color: #1a1f22 !important; text-decoration: none; font-size: 1.6rem; }
.slsr-booking .vbo-roomlist-price, .slsr-booking .vbo-roomdetails-price, .slsr-booking .vbsrchroomprice, .slsr-booking .vblistroomcost { color: var(--wp--preset--color--accent) !important; }
.slsr-booking .btn, .slsr-booking button, .slsr-booking input[type="submit"], .slsr-booking .vbo-pref-color-btn, .slsr-booking a.vblistroomdetails, .slsr-booking .vbo-roomlist-details-btn {
	background: var(--wp--preset--color--accent) !important; border-color: var(--wp--preset--color--accent) !important; color: #fff !important;
	border-radius: 4px !important; font-family: var(--wp--preset--font-family--heading) !important; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.slsr-booking .btn:hover, .slsr-booking button:hover, .slsr-booking a.vblistroomdetails:hover { background: #1a1f22 !important; border-color: #1a1f22 !important; }
.slsr-booking a { color: var(--wp--preset--color--accent-2); }

/* ---------- Page with title ---------- */
.slsr-plain { padding-top: var(--wp--preset--spacing--50); }
.slsr-plain .wp-block-post-title { margin-bottom: 2rem; }
.slsr-plain h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.slsr-label { font-family: var(--wp--preset--font-family--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); }

/* ---------- Motion ---------- */
.slsr-motion .slsr-rise { opacity: 0; transform: translateY(28px); }
.slsr-motion .is-in .slsr-rise { opacity: 1; transform: none; transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
.slsr-motion .slsr-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); transition-delay: calc(var(--i, 0) * 70ms); will-change: opacity, transform; }
.slsr-motion .slsr-reveal.is-in { opacity: 1; transform: none; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
	.slsr-rise, .slsr-reveal { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
	.slsr-band .wp-block-cover__image-background, .slsr-page-hero .wp-block-cover__image-background { animation: none !important; height: 100%; top: 0; }
	.wp-block-button__link, .slsr-card, .slsr-choice { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.slsr-hero.wp-block-cover { min-height: calc(86svh - var(--slsr-header-h)) !important; }
	html { --slsr-header-h: 66px; }
	.slsr-page-hero.wp-block-cover { min-height: 48svh; }
	.slsr-header .wp-block-site-logo img { width: 44px; }
	.slsr-icon img { width: 100px; }
	.slsr-header .slsr-cta { display: none; }
}

/* Shortcode output fills the wide container instead of the narrow content column */
.slsr-events, .slsr-event-booking { max-width: none; }
.slsr-booking > * { max-width: none; }

/* VikBooking room grid: center the cards in the box instead of hugging the left */
.slsr-booking ul.vblist { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 1.5rem; width: 100% !important; margin: 0; padding: 0; list-style: none; }
.slsr-booking li.room_result { flex: 0 1 400px; max-width: 460px; margin: 0 !important; float: none !important; }
.slsr-booking .room_result-inner, .slsr-booking .vblistroomblock { width: 100%; }
