/**
 * Stoness RV Travel — main stylesheet
 */

/* --------------------------------------------------------------------------
   Design tokens — bookstore / publishing house palette
   Inspired by modern book-store themes (Booklovers-style)
   -------------------------------------------------------------------------- */
:root {
	--color-parchment: #faf9f7;
	--color-sand: #f3f1ed;
	--color-burgundy: #d4573f;
	--color-burgundy-dark: #b84732;
	--color-burgundy-light: #e86f58;
	--color-forest: #1e2a3a;
	--color-forest-dark: #141c28;
	--color-forest-light: #2c3e50;
	--color-gold: #c9a86c;
	--color-gold-light: #dbbe85;
	--color-gold-dark: #a88b4e;
	--color-ink: #1a1a1a;
	--color-ink-muted: #6e6e6e;
	--color-white: #ffffff;
	--color-border: rgba(26, 26, 26, 0.1);
	--color-amazon: #ff9900;
	--color-amazon-dark: #e88b00;

	/* Semantic aliases used across the theme */
	--color-sage: var(--color-sand);
	--color-sage-dark: #e8e5e0;
	--color-teal: var(--color-forest-light);
	--color-teal-dark: var(--color-forest);
	--color-navy: var(--color-ink);
	--color-navy-light: var(--color-forest-light);
	--color-cream: var(--color-parchment);
	--color-text: var(--color-ink);
	--color-text-muted: var(--color-ink-muted);

	--font-display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-hero: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
	--font-hero-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--shadow-sm: 0 2px 12px rgba(26, 26, 26, 0.06);
	--shadow-md: 0 8px 32px rgba(26, 26, 26, 0.1);
	--shadow-lg: 0 20px 50px rgba(26, 26, 26, 0.14);

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;

	--header-height: 76px;
	--topbar-height: 40px;
	--container-max: 1240px;
	--transition: 0.25s ease;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-burgundy);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color var(--transition);
}

a:hover {
	color: var(--color-burgundy-dark);
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.25;
	color: var(--color-navy);
}

p {
	margin: 0 0 1rem;
}

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99999;
	width: auto;
	height: auto;
	padding: 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	background: var(--color-white);
	color: var(--color-navy);
	box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--primary {
	background: var(--color-burgundy);
	color: var(--color-white);
	border-color: var(--color-burgundy);
	box-shadow: 0 4px 14px rgba(212, 87, 63, 0.28);
}

.btn--primary:hover {
	background: var(--color-burgundy-dark);
	border-color: var(--color-burgundy-dark);
	color: var(--color-white);
}

.btn--secondary {
	background: var(--color-forest);
	color: var(--color-white);
	border-color: var(--color-forest);
}

.btn--secondary:hover {
	background: var(--color-forest-dark);
	border-color: var(--color-forest-dark);
	color: var(--color-white);
}

.btn--amazon {
	background: var(--color-amazon);
	color: var(--color-ink);
	border-color: var(--color-amazon);
	font-weight: 700;
}

.btn--amazon:hover {
	background: var(--color-amazon-dark);
	border-color: var(--color-amazon-dark);
	color: var(--color-ink);
}

.btn--amazon-lg {
	padding: 0.875rem 1.75rem;
	font-size: 1rem;
}

.btn--amazon-cta {
	background: var(--color-amazon);
	color: var(--color-ink);
	border-color: var(--color-amazon);
	font-weight: 700;
}

.btn--amazon-cta:hover {
	background: var(--color-amazon-dark);
	border-color: var(--color-amazon-dark);
	color: var(--color-ink);
}

.btn--outline {
	background: transparent;
	color: var(--color-white);
	border-color: rgba(255, 255, 255, 0.85);
}

.btn--outline:hover {
	background: rgba(255, 255, 255, 0.15);
	color: var(--color-white);
}

.btn--sm {
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
}

.btn--purchase {
	width: 100%;
	background: var(--color-forest);
	color: var(--color-white);
	border-color: var(--color-forest);
}

.btn--purchase:hover {
	background: var(--color-forest-dark);
	color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.site-topbar {
	background: var(--color-forest);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.8125rem;
}

.site-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--topbar-height);
}

.site-topbar__message {
	margin: 0;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.site-topbar__link {
	flex-shrink: 0;
	padding: 0.3rem 0.85rem;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--color-ink);
	background: var(--color-amazon);
	border-radius: var(--radius-sm);
	transition: background var(--transition);
}

.site-topbar__link:hover {
	background: var(--color-amazon-dark);
	color: var(--color-ink);
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--color-white);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
	transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.home .site-header {
	position: fixed;
	width: 100%;
	background: transparent;
	border-bottom-color: transparent;
	box-shadow: none;
}

.home .site-header.is-scrolled {
	background: rgba(8, 8, 8, 0.96);
	border-bottom-color: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
}

.home .site-branding__title,
.home .site-branding__tagline,
.home .stoness-menu > li > a,
.home .menu-toggle__bar {
	color: var(--color-white);
}

.home .site-branding__title {
	font-size: clamp(1.125rem, 2.5vw, 1.5rem);
	font-weight: 700;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
	letter-spacing: 0.02em;
}

.home .site-branding__tagline {
	color: rgba(255, 255, 255, 0.88);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
	font-weight: 600;
}

.home .site-header.is-scrolled .site-branding__title,
.home .site-header.is-scrolled .site-branding__tagline,
.home .site-header.is-scrolled .stoness-menu > li > a {
	color: var(--color-white);
}

.home .site-branding__link:hover .site-branding__title,
.home .site-branding__link:hover .site-branding__tagline {
	color: var(--color-gold-light);
}

.home .stoness-menu > li > a {
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.home .stoness-menu > li > a:hover {
	color: var(--color-gold-light);
	background: rgba(255, 255, 255, 0.08);
}

.site-header__shop {
	display: none;
	margin-left: 0.75rem;
}

.btn--shop {
	padding: 0.55rem 1rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	background: var(--color-white);
	color: var(--color-ink);
	border-color: var(--color-white);
	white-space: nowrap;
}

.btn--shop:hover {
	background: var(--color-gold-light);
	border-color: var(--color-gold-light);
	color: var(--color-ink);
}

.home .btn--shop {
	background: transparent;
	color: var(--color-white);
	border-color: rgba(255, 255, 255, 0.7);
}

.home .btn--shop:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--color-white);
	color: var(--color-white);
}

@media (min-width: 1025px) {
	.site-header__shop {
		display: inline-flex;
	}

	.primary-navigation {
		gap: 0.25rem;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-height);
	gap: 1rem;
}

.site-branding__link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--color-ink);
}

.site-branding__link:hover {
	color: var(--color-burgundy);
}

.site-branding__link:hover .site-branding__title {
	color: var(--color-burgundy);
}

.site-branding__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 0.125rem;
}

.site-branding__title {
	font-family: var(--font-display);
	font-size: clamp(1.125rem, 2.8vw, 1.5rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--color-ink);
	letter-spacing: -0.02em;
	transition: color var(--transition);
}

.site-branding__tagline {
	font-family: var(--font-body);
	font-size: clamp(0.6875rem, 1.8vw, 0.75rem);
	font-weight: 500;
	color: var(--color-ink-muted);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Hamburger toggle */
.menu-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: transparent;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	z-index: 1002;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
	background: var(--color-cream);
	outline: none;
}

.menu-toggle__bar {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--color-navy);
	border-radius: 2px;
	transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Primary nav — desktop */
.primary-navigation {
	display: flex;
	align-items: center;
}

.stoness-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.125rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.stoness-menu > li {
	position: relative;
}

.stoness-menu > li > a {
	display: block;
	padding: 0.5rem 0.875rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: var(--color-ink);
	border-radius: var(--radius-sm);
	transition: background var(--transition), color var(--transition);
}

.stoness-menu > li > a:hover,
.stoness-menu > li.current-menu-item > a,
.stoness-menu > li.current_page_item > a {
	color: var(--color-burgundy);
	background: rgba(212, 87, 63, 0.08);
}

/* Dropdown submenus */
.stoness-submenu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	background: var(--color-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--color-border);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
	z-index: 100;
}

.stoness-menu > li:hover > .stoness-submenu,
.stoness-menu > li:focus-within > .stoness-submenu,
.stoness-menu > li.is-open > .stoness-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.stoness-submenu a {
	display: block;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	color: var(--color-text);
	white-space: nowrap;
}

.stoness-submenu a:hover {
	background: var(--color-parchment);
	color: var(--color-burgundy);
}

.site-header__overlay {
	display: none;
}

/* Mobile navigation */
@media (max-width: 1024px) {
	.menu-toggle {
		display: flex;
	}

	.primary-navigation {
		position: fixed;
		top: 0;
		right: 0;
		width: min(320px, 88vw);
		height: 100vh;
		height: 100dvh;
		padding: calc(var(--header-height) + 1rem) 1.25rem 2rem;
		background: var(--color-ink);
		box-shadow: -4px 0 24px rgba(0, 0, 0, 0.35);
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		z-index: 1001;
	}

	.primary-navigation.is-open {
		transform: translateX(0);
	}

	.stoness-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.stoness-menu > li > a {
		padding: 0.875rem 0.5rem;
		font-size: 0.9375rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		color: rgba(255, 255, 255, 0.9);
	}

	.site-header__shop {
		display: inline-flex;
		width: 100%;
		margin: 1rem 0 0;
		justify-content: center;
	}

	.stoness-submenu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0 0 0 1rem;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.stoness-menu > li.is-open > .stoness-submenu {
		max-height: 600px;
		padding-bottom: 0.5rem;
	}

	.stoness-submenu a {
		padding: 0.625rem 0.5rem;
		font-size: 0.875rem;
		border-bottom: 1px solid var(--color-border);
		white-space: normal;
	}

	.site-header__overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(36, 55, 67, 0.5);
		z-index: 1000;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.site-header__overlay.is-visible {
		opacity: 1;
		visibility: visible;
	}

	body.nav-open {
		overflow: hidden;
	}
}

@media (min-width: 1025px) {
	.menu-toggle {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Hero — full-bleed bookstore carousel with overlay content
   -------------------------------------------------------------------------- */
.hero--bookstore {
	position: relative;
	min-height: clamp(480px, 72vh, 640px);
	overflow: hidden;
	background: var(--color-forest-dark);
}

.hero__media {
	position: absolute;
	inset: 0;
}

.hero__shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(105deg, rgba(20, 28, 40, 0.92) 0%, rgba(20, 28, 40, 0.72) 42%, rgba(20, 28, 40, 0.25) 100%),
		linear-gradient(0deg, rgba(20, 28, 40, 0.55) 0%, transparent 45%);
	pointer-events: none;
}

.hero__overlay {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(480px, 72vh, 640px);
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.hero__slider {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1s ease;
	pointer-events: none;
}

.hero__slide.is-active {
	opacity: 1;
	z-index: 1;
	pointer-events: auto;
}

.hero__slide img {
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.hero__content {
	max-width: 640px;
}

.hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-gold-light);
}

.hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	color: var(--color-white);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.hero__subtitle {
	margin: 0 0 1.75rem;
	font-size: clamp(1rem, 2vw, 1.125rem);
	color: rgba(255, 255, 255, 0.88);
	max-width: 42ch;
	line-height: 1.65;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hero__content .btn--primary {
	background: var(--color-burgundy);
	color: var(--color-white);
	border-color: var(--color-burgundy);
	box-shadow: 0 4px 18px rgba(212, 87, 63, 0.35);
	font-weight: 700;
}

.hero__content .btn--primary:hover {
	background: var(--color-burgundy-dark);
	border-color: var(--color-burgundy-dark);
	color: var(--color-white);
}

.btn--hero-outline {
	color: var(--color-white);
	border-color: rgba(255, 255, 255, 0.75);
	background: transparent;
	font-weight: 600;
}

.btn--hero-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--color-white);
	color: var(--color-white);
}

.hero__controls {
	display: flex;
	gap: 0.5rem;
	margin-top: 2rem;
	padding: 0;
}

.hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.hero__dot.is-active,
.hero__dot:hover {
	background: var(--color-white);
	border-color: var(--color-white);
	transform: scale(1.15);
}

@media (min-width: 768px) {
	.hero__overlay {
		justify-content: center;
	}
}

/* --------------------------------------------------------------------------
   Pillar cards
   -------------------------------------------------------------------------- */
.section {
	padding-block: 3.5rem;
}

.section--pillars {
	padding-block: 3.5rem 4rem;
	background: var(--color-sand);
}

.section--pillars .container {
	max-width: none;
	width: 100%;
	padding-inline: 1.25rem;
}

@media (min-width: 768px) {
	.section--pillars .container {
		padding-inline: 60px;
	}
}

.section--alt {
	background: var(--color-parchment);
	border-radius: var(--radius-lg);
	padding-inline: clamp(1rem, 3vw, 2rem);
	margin-block: 0.5rem;
	border: 1px solid var(--color-border);
}

.section--western {
	background: linear-gradient(135deg, var(--color-forest-dark) 0%, var(--color-forest) 55%, #2a3d52 100%);
	border-radius: var(--radius-lg);
	color: var(--color-white);
}

.section--amazon {
	padding-block: 2rem 3rem;
}

.section--western .section__title,
.section--western h2,
.section--western h3,
.section--western blockquote {
	color: var(--color-white);
}

.section--solar {
	padding-bottom: 4rem;
}

.section__header {
	margin-bottom: 2.5rem;
	text-align: center;
	max-width: 720px;
	margin-inline: auto;
}

.section__header--left {
	text-align: left;
	margin-inline: 0;
	max-width: 640px;
}

.section__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--color-burgundy);
}

.section__eyebrow--light {
	color: var(--color-gold-light);
}

.section__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 3.5vw, 2.375rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.section__lead {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.section__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2.5rem;
}

.pillar-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.pillar-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.pillar-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	transition: transform var(--transition), box-shadow var(--transition);
}

.pillar-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.pillar-card__inner {
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
}

@media (min-width: 576px) {
	.pillar-card__inner {
		grid-template-columns: minmax(260px, 46%) 1fr;
		min-height: 400px;
	}

	.pillar-card--guides .pillar-card__inner {
		grid-template-columns: 1fr minmax(260px, 46%);
	}
}

.pillar-card__media {
	position: relative;
	display: flex;
	align-items: stretch;
	align-self: stretch;
	width: 100%;
	min-width: 0;
	padding: 0.75rem 2.5rem;
	overflow: hidden;
	background: linear-gradient(180deg, var(--color-sand) 0%, var(--color-parchment) 100%);
}

@media (max-width: 575px) {
	.pillar-card__media {
		min-height: 340px;
		margin-inline: auto;
		max-width: 320px;
	}
}

@media (min-width: 576px) {
	.pillar-card__media {
		margin-inline: 0;
		min-height: 100%;
	}
}

/* Guides card: text left, image right on desktop */
@media (min-width: 576px) {
	.pillar-card--guides .pillar-card__body {
		order: 1;
	}

	.pillar-card--guides .pillar-card__media {
		order: 2;
	}
}

.pillar-slider {
	position: relative;
	flex: 1;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.pillar-slider__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
	box-sizing: border-box;
	pointer-events: none;
}

.pillar-slider__slide.is-active {
	opacity: 1;
	z-index: 1;
	pointer-events: auto;
}

.pillar-slider__slide img {
	display: block;
	width: auto;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: center center;
}

.pillar-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(44, 36, 22, 0.55);
	color: var(--color-white);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background var(--transition), transform var(--transition);
}

.pillar-slider__arrow:hover {
	background: rgba(44, 36, 22, 0.82);
	transform: translateY(-50%) scale(1.05);
}

.pillar-slider__arrow--prev {
	left: 0.4rem;
}

.pillar-slider__arrow--next {
	right: 0.4rem;
}

.pillar-slider__arrow[hidden] {
	display: none;
}

.pillar-card__body {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--color-white);
	min-height: 100%;
}

.pillar-card__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 2.5vw, 1.875rem);
}

.pillar-card__title a {
	text-decoration: none;
	color: var(--color-ink);
	transition: color var(--transition);
}

.pillar-card__title a:hover {
	color: var(--color-burgundy);
}

.pillar-card__tagline {
	margin: 0 0 0.875rem;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--color-burgundy);
	line-height: 1.45;
}

.pillar-card__excerpt {
	margin: 0 0 1rem;
	color: var(--color-text-muted);
	font-size: 1rem;
	line-height: 1.6;
}

.pillar-card__list {
	margin: 0 0 1rem;
	padding: 0 0 0 1.125rem;
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	line-height: 1.55;
	flex: 1;
}

.pillar-card__list li {
	margin-bottom: 0.375rem;
}

.pillar-card__list li:last-child {
	margin-bottom: 0;
}

.pillar-card__link {
	display: inline-flex;
	align-items: center;
	margin-top: auto;
	padding-top: 0.75rem;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	color: var(--color-burgundy);
	border-top: 1px solid var(--color-border);
	width: 100%;
	transition: color var(--transition);
}

.pillar-card__link:hover {
	color: var(--color-burgundy-dark);
}

.pillar-card--novels {
	border-top: 3px solid var(--color-burgundy);
}

.pillar-card--guides {
	border-top: 3px solid var(--color-gold);
}

/* --------------------------------------------------------------------------
   Home layout (main + sidebar)
   -------------------------------------------------------------------------- */
.home-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding-block: 2rem 3rem;
	background: var(--color-white);
}

@media (min-width: 992px) {
	.home-layout {
		grid-template-columns: 1fr 300px;
		gap: 2.5rem;
		align-items: start;
	}

	.home-layout__sidebar {
		position: sticky;
		top: calc(var(--header-height) + 1.5rem);
	}
}

/* --------------------------------------------------------------------------
   Book grid (novels)
   -------------------------------------------------------------------------- */
.book-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 1.75rem;
}

@media (min-width: 576px) {
	.book-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
}

.book-card {
	display: flex;
	flex-direction: column;
	background: var(--color-white);
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.book-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
}

.book-card__cover-link {
	display: block;
	overflow: hidden;
	background: var(--color-parchment);
	padding: 1rem 1rem 0;
}

.book-card__cover {
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: contain;
	transition: transform 0.4s ease;
}

.book-card:hover .book-card__cover {
	transform: scale(1.03);
}

.book-card__info {
	padding: 1rem 1.125rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.book-card__author {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-ink-muted);
}

.book-card__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

.book-card__title a {
	text-decoration: none;
	color: var(--color-ink);
}

.book-card__title a:hover {
	color: var(--color-burgundy);
}

.book-card__info .btn--purchase {
	margin-top: 0.5rem;
}

/* Amazon author shop banner */
.amazon-banner {
	display: grid;
	grid-template-columns: 1fr;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: linear-gradient(135deg, var(--color-forest-dark) 0%, var(--color-forest) 100%);
	box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
	.amazon-banner {
		grid-template-columns: 1.4fr 1fr;
	}
}

.amazon-banner__content {
	padding: clamp(2rem, 4vw, 3rem);
	color: var(--color-white);
}

.amazon-banner__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: var(--color-white);
}

.amazon-banner__text {
	margin: 0 0 1.5rem;
	max-width: 48ch;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.65;
}

.amazon-banner__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	background:
		linear-gradient(135deg, rgba(255, 153, 0, 0.15) 0%, rgba(255, 153, 0, 0.05) 100%),
		rgba(0, 0, 0, 0.15);
}

.amazon-banner__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 1rem 1.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--color-ink);
	background: var(--color-amazon);
	border-radius: var(--radius-md);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   Travel guides
   -------------------------------------------------------------------------- */
.guide-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.guide-card {
	background: var(--color-white);
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.guide-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.guide-card__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.guide-card__cover {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: contain;
	padding: 1rem 1rem 0;
	background: var(--color-parchment);
}

.guide-card__title {
	margin: 0;
	padding: 1rem;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	color: var(--color-ink);
}

.guide-card:hover .guide-card__title {
	color: var(--color-burgundy);
}

/* CTA banner */
.cta-banner {
	display: grid;
	grid-template-columns: 1fr;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
	.cta-banner {
		grid-template-columns: 1fr 1fr;
	}
}

.cta-banner__image {
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
}

.cta-banner__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem;
	background: linear-gradient(135deg, var(--color-forest-dark) 0%, var(--color-forest) 100%);
	color: var(--color-white);
}

.cta-banner__content h3 {
	margin: 0 0 0.75rem;
	color: var(--color-white);
	font-size: 1.375rem;
}

.cta-banner__content p {
	margin: 0 0 1.25rem;
	color: rgba(255, 255, 255, 0.85);
}

.cta-banner__content .btn--primary {
	align-self: flex-start;
	background: var(--color-burgundy);
	color: var(--color-white);
	border-color: var(--color-burgundy);
}

.cta-banner__content .btn--primary:hover {
	background: var(--color-burgundy-dark);
	border-color: var(--color-burgundy-dark);
	color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Products
   -------------------------------------------------------------------------- */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1rem;
}

.product-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.625rem;
	padding: 1rem;
	background: var(--color-white);
	border-radius: var(--radius-md);
	text-decoration: none;
	color: var(--color-navy);
	text-align: center;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	color: var(--color-burgundy);
}

.product-card img {
	width: 100%;
	max-width: 150px;
	height: auto;
	object-fit: contain;
	border-radius: var(--radius-sm);
}

.product-card span {
	font-size: 0.8125rem;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Western promo
   -------------------------------------------------------------------------- */
.western-promo {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 768px) {
	.western-promo {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
}

.western-promo__title {
	margin: 0 0 1rem;
	font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.western-promo__title a {
	color: var(--color-gold-light);
	text-decoration: none;
}

.western-promo__title a:hover {
	color: var(--color-white);
}

.western-promo__collage {
	margin-bottom: 1rem;
	border-radius: var(--radius-sm);
}

.western-promo__scene img {
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
}

.western-promo__quote blockquote {
	margin: 0 0 1.25rem;
	padding: 0;
	border: none;
	font-style: italic;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

.western-promo__quote blockquote p {
	margin: 0;
}

.western-promo .btn--outline {
	border-color: rgba(255, 255, 255, 0.7);
	color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Video embed
   -------------------------------------------------------------------------- */
.video-embed {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	background: var(--color-forest-dark);
}

.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --------------------------------------------------------------------------
   Sidebar widgets
   -------------------------------------------------------------------------- */
.sidebar-widget {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	box-shadow: var(--shadow-sm);
}

.sidebar-widget--featured {
	padding: 1rem;
}

.sidebar-widget__title {
	margin: 0 0 0.875rem;
	padding-bottom: 0.625rem;
	font-family: var(--font-display);
	font-size: 1.0625rem;
	border-bottom: 3px solid var(--color-gold);
}

.sidebar-featured {
	display: block;
	text-decoration: none;
	color: inherit;
	text-align: center;
}

.sidebar-featured img {
	margin-inline: auto;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
}

.sidebar-featured p {
	margin: 0.875rem 0 0;
	font-size: 0.875rem;
	color: var(--color-navy);
}

.sidebar-featured:hover p {
	color: var(--color-burgundy);
}

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

.sidebar-list li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--color-border);
	font-size: 0.875rem;
}

.sidebar-list li:last-child {
	border-bottom: none;
}

.sidebar-list a {
	text-decoration: none;
	font-weight: 500;
}

.sidebar-list--comments .comment-author {
	font-weight: 600;
	color: var(--color-navy);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--color-ink);
	color: rgba(255, 255, 255, 0.75);
	margin-top: 0;
}

.site-footer__inner {
	padding-block: 3rem 2rem;
}

.site-footer__cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.site-footer__cols {
		display: grid;
		grid-template-columns: auto auto 1fr;
		align-items: start;
		column-gap: clamp(2.5rem, 6vw, 5rem);
		row-gap: 2rem;
	}
}

.site-footer__brand {
	max-width: 320px;
	text-align: right;
	margin-left: auto;
}

@media (min-width: 768px) {
	.site-footer__brand {
		grid-column: 3;
		justify-self: end;
		margin-left: 0;
		align-self: start;
	}
}

.site-footer__brand-link {
	display: block;
	text-decoration: none;
	color: inherit;
	text-align: right;
}

.site-footer__brand-link:hover .site-footer__title {
	color: var(--color-gold-light);
}

.site-footer__heading {
	margin: 0 0 0.875rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.45);
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.site-footer__links a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-size: 0.9375rem;
}

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

.site-footer__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.25rem;
	color: var(--color-white);
}

.site-footer__tagline {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.5;
}

.site-footer__bottom {
	background: #0a0a0a;
	padding-block: 1rem;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__bottom p {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
.back-to-top {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-burgundy);
	color: var(--color-white);
	border: none;
	border-radius: 50%;
	box-shadow: var(--shadow-md);
	cursor: pointer;
	z-index: 900;
	transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.back-to-top:hover {
	background: var(--color-burgundy-dark);
	transform: translateY(-2px);
}

.back-to-top[hidden] {
	display: none;
}

/* --------------------------------------------------------------------------
   Inner page banner
   -------------------------------------------------------------------------- */
.page-banner {
	position: relative;
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-forest-dark);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.page-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(44, 66, 56, 0.88) 0%,
		rgba(92, 34, 48, 0.78) 100%
	);
}

.page-banner__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	text-align: center;
	padding-inline: 1.25rem;
}

.page-banner__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4.5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-white);
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   Generic page content
   -------------------------------------------------------------------------- */
.page-content {
	padding-block: 2.5rem 3rem;
}

.page-content__body {
	background: var(--color-white);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Small screen refinements
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
	.site-branding__tagline {
		display: none;
	}

	.hero__actions {
		flex-direction: column;
	}

	.hero__actions .btn {
		width: 100%;
	}

	.book-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.book-card__info {
		padding: 0.75rem;
	}

	.book-card__title {
		font-size: 0.8125rem;
	}

	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-footer__inner {
		flex-direction: column;
	}

	.site-footer__brand {
		text-align: right;
		margin-left: auto;
	}

	.site-footer__nav {
		justify-content: center;
	}
}

@media (max-width: 380px) {
	.book-grid {
		grid-template-columns: 1fr;
		max-width: 220px;
		margin-inline: auto;
	}
}
