/* ==========================================================================
   Drumbeat Custom — main stylesheet
   ========================================================================== */

:root {
	--color-primary: #0b3d63;   /* deep northern blue — placeholder, adjust to match brand */
	--color-accent: #e8a13a;    /* warm accent for CTAs — placeholder */
	--color-text: #23292e;
	--color-bg-light: #f5f7f8;
	--max-width: 1180px;
	--radius: 6px;
}

/* NOTE ON COLOR: the original theme's exact hex values live in Elementor's
   generated per-post CSS files, which aren't reliably fetchable outside the
   WordPress admin. These are close, reasonable placeholders — swap the two
   variables above once you confirm the real brand colors and everything
   else on the page updates automatically. */

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--color-text);
	line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

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

.skip-link:focus {
	position: fixed;
	top: 0; left: 0;
	width: auto; height: auto;
	background: #fff;
	color: #000;
	padding: 1rem;
	z-index: 1000;
}

/* Top bar
   ========================================================================== */
.topbar {
	background: var(--color-primary);
	color: #fff;
	font-size: 0.85rem;
}
.topbar-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0.5rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.topbar-inner a { color: #fff; }
.topbar-social { margin-left: auto; display: flex; gap: 0.75rem; }
.topbar-social a { font-size: 1rem; }

/* Header
   ========================================================================== */
.site-header {
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.site-header-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 2rem;
}
.site-logo img { max-height: 56px; width: auto; }

.menu-toggle {
	display: none;
	margin-left: auto;
	background: none;
	border: none;
	font-size: 1.4rem;
	cursor: pointer;
}

.primary-nav { margin-left: auto; }
.primary-menu-list {
	list-style: none;
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
}
.primary-menu-list a {
	font-weight: 600;
}
.primary-menu-list a:hover { color: var(--color-accent); }

@media (max-width: 780px) {
	.menu-toggle { display: block; }
	.primary-nav {
		display: none;
		width: 100%;
		margin-left: 0;
	}
	.primary-nav.is-open { display: block; }
	.primary-menu-list {
		flex-direction: column;
		gap: 0;
		border-top: 1px solid #eee;
	}
	.primary-menu-list a {
		display: block;
		padding: 0.75rem 0;
	}
	.site-header-inner { flex-wrap: wrap; }
}

/* Hero
   ========================================================================== */
.hero {
	position: relative;
	background: var(--color-primary); /* shows briefly while photos load */
	color: #fff;
	overflow: hidden;
}
.hero-slides { position: relative; min-height: 480px; }
.hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 3rem 1.5rem;
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; }

/* Dark overlay so white/yellow text stays readable over bright snow photos */
.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(11,61,99,0.75), rgba(11,61,99,0.55));
}
.hero-content { position: relative; max-width: 700px; z-index: 1; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; opacity: 0.85; }
.hero h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0.3rem 0 1rem; }
.hero p { font-size: 1.1rem; margin-bottom: 1.5rem; }

.btn {
	display: inline-block;
	padding: 0.8rem 1.8rem;
	border-radius: var(--radius);
	font-weight: 600;
}
.btn-primary {
	background: var(--color-accent);
	color: #1a1a1a;
}
.btn-primary:hover { filter: brightness(1.05); }

/* Intro
   ========================================================================== */
.intro { padding: 3.5rem 1.5rem; background: #fff; }
.intro-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.intro h2 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.intro h3 { font-weight: 400; color: #555; margin-top: 0; }
.intro p { text-align: left; }

/* Items handled / Destinations (shared card grid pattern)
   ========================================================================== */
.items-handled, .destinations { padding: 3.5rem 1.5rem; background: var(--color-bg-light); }
.items-handled-inner, .destinations-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.items-handled h2, .destinations h2:first-child { font-size: 1.8rem; margin-bottom: 2rem; }

.items-grid, .destinations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.5rem;
}
.item-card, .destination-card {
	background: #fff;
	border-radius: var(--radius);
	padding: 2rem 1rem;
	box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.item-card i, .destination-card i {
	font-size: 2rem;
	color: var(--color-accent);
	margin-bottom: 0.75rem;
}
.item-card h3, .destination-card h2 { font-size: 1.05rem; margin: 0; }

.destinations-note { margin-top: 1.5rem; font-size: 0.9rem; color: #666; }

/* CTA
   ========================================================================== */
.cta {
	background: var(--color-primary);
	color: #fff;
	text-align: center;
	padding: 3.5rem 1.5rem;
}
.cta h2 { margin: 0.3rem 0; }
.cta-phone a { color: var(--color-accent); }

/* Footer
   ========================================================================== */
.site-footer {
	background: #14181b;
	color: #aaa;
	text-align: center;
	padding: 1.5rem;
	font-size: 0.85rem;
}

/* Block content width handling
   ========================================================================== */
/* Classic theme (no theme.json), so content width is handled manually:
   normal blocks stay readable-width and centered; wide/full blocks break out. */
.site-main > * {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}
.site-main > .alignwide {
	max-width: 1180px;
}
.site-main > .alignfull {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}
.site-main > * + * {
	margin-top: 1.75rem;
}

/* Tighten the section padding that's baked into the pasted block content
   as inline styles (3.5rem top/bottom felt too airy) — !important is needed
   here since inline styles otherwise always win over external CSS. */
.site-main .wp-block-group {
	padding-top: 2rem !important;
	padding-bottom: 2rem !important;
}

/* Tighten paragraph spacing within the intro text block */
.site-main p {
	margin-top: 0;
	margin-bottom: 0.9rem;
}
.site-main p:last-child {
	margin-bottom: 0;
}

/* Tighten column gaps and card padding */
.wp-block-columns {
	gap: 1rem !important;
}

/* Cover block (single-photo hero fallback, if used) */
.wp-block-cover {
	min-height: 480px;
}
.wp-block-cover .wp-block-heading,
.wp-block-cover p {
	color: #fff;
}

/* Hero carousel — built from an editable Gallery block. Swap/reorder the
   images in the block editor anytime; this CSS + main.js handle rotation. */
.hero-carousel {
	position: relative;
	overflow: hidden;
	min-height: 560px;
	background: var(--color-primary);
	color: #fff;
}
.hero-carousel .wp-block-gallery {
	position: absolute !important;
	inset: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	gap: 0 !important;
}
.hero-carousel .wp-block-gallery > * {
	position: absolute !important;
	inset: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	flex: none !important;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.hero-carousel .wp-block-gallery > *.is-active-slide {
	opacity: 1;
}
.hero-carousel .wp-block-gallery img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	display: block;
}
/* Per-photo crop positions, matching where each photo's actual subject sits
   (same order as the images in the Gallery block: trailer/truck, side-view
   trailer, snowmobiler). If you reorder or swap photos in the block editor,
   update these to match. */
.hero-carousel .wp-block-gallery > *:nth-child(1) img { object-position: center 75% !important; }
.hero-carousel .wp-block-gallery > *:nth-child(2) img { object-position: 25% 70% !important; }
.hero-carousel .wp-block-gallery > *:nth-child(3) img { object-position: center 30% !important; }
.hero-carousel::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(11,61,99,0.75), rgba(11,61,99,0.55));
	z-index: 1;
}
.hero-carousel-overlay {
	position: relative;
	z-index: 2;
	max-width: 700px;
	margin: 0 auto;
	padding: 6rem 1.5rem;
	text-align: center;
}
.hero-carousel-overlay .wp-block-heading,
.hero-carousel-overlay p {
	color: #fff;
}

/* Simple card look for the Items Handled / Destinations columns,
   applied via a "card" block style class added in the editor */
.is-style-card-section {
	background: #fff;
	border-top: 3px solid var(--color-accent);
	border-radius: var(--radius);
	padding: 1.5rem 1rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.is-style-card-section:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
