/* --- 1. GLOBALS & SMOOTH SCROLL --- */
html {
	scroll-behavior: smooth;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.6;
	color: #333;
	overflow-x: hidden;
	width: 100%;
	background: #f4f6f8;
}

.blog-page .post-content {
	margin-top: 1rem;
}

h1,
h2,
h3 {
	line-height: 2;
}

h4 {
	line-height: 1.5;
	padding-top: 0.75rem;
}

p {
	margin-bottom: 1.2em;
}

.primary-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem);
}
/* --- 2. NAVIGATION --- */
.main-nav {
	position: absolute; /* It stays in normal flow, nesting naturally at the top of the hero */
	width: 100%;
	z-index: 1000;

	/* Your elegant smoky look */
	background: rgba(149, 149, 149, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	padding: 0.75rem 6%;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
}

.logo img {
	height: 3rem;
	width: auto;
	display: block;
}

.nav-accent-link {
	color: #ff7500;
	padding: 5px 12px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: 600;
}

/* --- HAMBURGER MENU --- */
/* Hide the checkbox by default */
.nav-toggle {
	position: absolute;
	opacity: 0;
}

/* Hamburger lines */
.nav-toggle-label {
	margin-left: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	width: 2.6rem;
	height: 2.2rem;
	position: relative;
	background: transparent;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
	content: "";
	display: block;
	height: 4px;
	width: 100%;
	background: #ffffff;
	position: absolute;
	border-radius: 2px;
	transition: all 0.25s ease;
}

.nav-toggle-label:hover span,
.nav-toggle-label:hover span::before,
.nav-toggle-label:hover span::after {
	background: #ff7500;
}

.nav-toggle-label span {
	top: 50%;
	transform: translateY(-50%);
}

.nav-toggle-label span::before {
	top: -8px;
}

.nav-toggle-label span::after {
	top: 8px;
}

/* Animate into X when checked */
.nav-toggle:checked + .nav-toggle-label span {
	background: transparent;
}

.nav-toggle:checked + .nav-toggle-label span::before {
	transform: rotate(45deg);
	top: 0;
}

.nav-toggle:checked + .nav-toggle-label span::after {
	transform: rotate(-45deg);
	top: 0;
}

/* Mobile menu styling */
.nav-links {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;

	max-height: 0;
	overflow: hidden;

	transition: max-height 0.35s ease;

	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);

	z-index: 2000;
}

.nav-toggle:checked ~ .nav-links {
	max-height: 400px;
}

.nav-links a {
	padding: 1.5rem;
	text-align: center;
	text-decoration: none;
	color: #ff7500;
	font-weight: 600;
	transition: all 0.2s ease;
}

.nav-links a:active {
	color: #333;
	background-color: rgba(0, 0, 0, 0.05);
	transform: scale(0.98);
}

/* --- 3. MOBILE-FIRST CONTENT --- */
section {
	padding: 4rem 5%;
	max-width: 1200px;
	margin: 0 auto;
}

h2 {
	text-align: center;
	margin-bottom: 2rem;
	font-size: 2rem;
}

/* Hero */
.hero {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 2rem auto;

	aspect-ratio: 16 / 9;

	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	border-top-left-radius: 0;
	border-top-right-radius: 0;

	background: #ffffff url("/resources/ch_lane.jpeg") 100% / 100% no-repeat;

	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

	overflow: visible;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.1);
	color: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 20px;
}

/* About */

#about {
	color: #ffff;
	background: #109e9e;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.2);
	max-width: 1100px;
	margin: 0 auto;
}

.adventure-link {
	font-weight: bold;
	color: #000;
	padding: 0px 6px 0px 0px;
	text-decoration: none;
}
.adventure-link:hover {
	color: #fff;
	text-decoration: underline;
}
.adventure-link:active {
	color: #ff7500;
}

/* Services */
.services-container {
	display: flex;
	flex-direction: column;
	gap: 1.8rem;
}

.service-item {
	background: #f9f9f9;
	padding: 2rem;
	border-radius: 10px;
	border-top: 5px solid #ff7500;

	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);

	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.service-item h3 {
	font-size: 1.35rem;
	margin-bottom: 0.3rem;
}

.service-item img {
	width: 100%;
	max-width: 260px;
	border-radius: 8px;
	margin: 1rem auto;
	display: block;
	padding: none;
}
.adventure-highlight {
	background: #fff3e0;
	border-top-color: #d35400;
}

/* --- SYNCHRONIZED BLOG IMAGE OVERLAY --- */

.blog-image-wrapper {
	position: relative;
	display: inline-block; /* Change from 'block' to 'inline-block' to hug the image width */
	vertical-align: middle; /* Removes the baseline gap */
	width: auto; /* Let the container be defined by the image size */
	max-width: 260px;
	margin: 1rem auto;
	border-radius: 8px;
	overflow: hidden;
	line-height: 0;
}

.blog-image-wrapper img {
	display: block; /* This is the "magic" line that kills the extra bottom space */
	width: 100%;
	height: auto;
	transition: transform 0.5s ease;
}

/* The darkening mask */
.image-mask {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Adjust for desired darkness */
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 1;
}

/* The text reveal */
.image-reveal-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -40%); /* Start slightly lower */
	color: #fff;
	font-weight: bold;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0;
	transition: all 0.4s ease;
	z-index: 2;
	white-space: nowrap;
}

/* --- THE HOVER ACTION --- */
@media (hover: hover) {
	/* 1. Zoom the image UP (Matches your other page) */
	.blog-image-wrapper:hover img {
		transform: scale(1.1);
	}

	/* 2. Fade in the darkening mask */
	.blog-image-wrapper:hover .image-mask {
		opacity: 1;
	}

	/* 3. Fade and slide up the text */
	.blog-image-wrapper:hover .image-reveal-text {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

/* Forms */

#contact {
	color: #ffff;
	background: #109e9e;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.2);
	max-width: 1100px;
	margin: 0 auto;
}

.contact-intro {
	max-width: 650px;
	margin: 0 auto 2rem auto;
	text-align: center;
	opacity: 0.9;
}
.contact-note {
	display: block;
	text-align: center;
	margin-top: 0.8rem;
	opacity: 0.85;
}
form {
	display: flex;
	flex-direction: column;
}

/* Honeypot spam trap */
.fax-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
input,
textarea {
	width: 100%;
	padding: 12px;
	margin-bottom: 1rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 16px;
}

input:focus,
textarea:focus {
	outline: none;
	border-color: #ff7500;
	box-shadow: 0 0 0 2px rgba(255, 117, 0, 0.2);
}

button {
	background: #fff;
	color: #000;
	padding: 16px;
	border: none;
	border-radius: 8px;
	font-weight: 500;
	font-size: 1.2rem;
	cursor: pointer;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

button:hover {
	color: #fff;
	background-color: #ff7500;
	padding: 16px;
	border: none;
	transition: ease-in-out 0.1s;
	box-shadow: rgba(0, 0, 0, 0.45) 0px 8px 20px;
	transform: translateY(-1px);
}

button:active {
	box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 8px;
	transition: ease-in-out 0.15s;
	transform: translateY(2px);
}

.contact-link {
	font-weight: bold;
	text-decoration: underline;
}
.contact-link:hover {
	color: #ff7500;
}

.cf-turnstile {
	margin: 1rem 0;
	display: flex;
	justify-content: center;
}

/* Footer */
/* --- SITE FOOTER --- */
.site-footer {
	width: 100%;
	/* Rich, professional off-black/slate anchor background */
	background: #111827;
	border-top: 1px solid #1f2937;
	padding: 2.5rem 0;
	margin-top: 4rem;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem);

	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
	text-align: center;
}

/* Payment Badge Styling */
.footer-payments {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.payment-text {
	font-size: 0.85rem;
	/* Clean, crisp light grey for readability */
	color: #9ca3af;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.payment-icons {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	/* Forces the Square icon inline path to fill with crisp white */
	color: #ffffff;
	opacity: 0.9;
}

/* Minor color update inside your generic card wireframe SVG */
.payment-icons svg rect {
	stroke: #374151; /* Adds a nice subtle border to the mini card shape */
}

/* Copyright Text */
.footer-copyright p {
	font-size: 0.85rem;
	color: #6b7280; /* Muted but highly legible contrast against dark background */
	margin: 0;
}

/* Instagram Anchor Link */
.instagram-link {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: #f3f4f6; /* Bright near-white for high visibility */
	font-size: 0.9rem;
	font-weight: 500;
	padding: 8px 14px;
	border-radius: 6px;
	background-color: #1f2937; /* Dark button background track */
	border: 1px solid #374151;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-link:hover {
	color: #ffffff;
	background-color: #374151; /* Lighter grey shift on hover */
	border-color: #4b5563;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.icon-instagram {
	transition: transform 0.2s ease;
}

.instagram-link:hover .icon-instagram {
	transform: scale(1.08);
}

/* --- 4. BLOG PAGE / TIMELINE --- */
.blog-page .blog-timeline {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	padding: 4rem 5%;
	max-width: 1200px;
	margin: 0 auto;
}

.blog-page .blog-post {
	background: #ffffff;

	padding: 2rem;
	margin-bottom: 2.5rem;

	border-radius: 12px;

	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.blog-page .post-header {
	text-align: center;
	margin-bottom: 2rem;
}

.blog-page .category-tag {
	display: inline-block;
	background: #fff3e0;
	color: #e67e22;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: bold;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.blog-page .post-header h2 {
	font-size: 2rem;
	margin: 0.3rem 0;
	line-height: 1.2;
}

.blog-page .post-meta {
	color: #777;
	font-size: 0.9rem;
}

.blog-page .featured-image {
	width: 100%;
	max-height: 400px;
	object-fit: cover;

	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);

	margin: 1.5rem 0;
	transition: transform 0.3s ease;
}

.blog-page .featured-image:hover {
	transform: scale(1.02);
}

.blog-page .post-content p {
	font-size: 1.15rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.blog-page .post-content {
	margin-top: 1rem;
}

.blog-page .post-content .lead {
	font-size: 1.4rem;
	font-weight: 500;
	color: #222;
}

.cta-button {
	display: inline-block;
	background: #e67e22;
	color: white;
	padding: 15px 30px;
	text-decoration: none;
	border-radius: 8px;
	font-weight: bold;
	text-align: center;
}

.back-btn-wrapper {
	display: flex;
	justify-content: flex-end;
}

.back-top-btn {
	display: inline-block;
	color: #ff7500;
	font-weight: 600;
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 6px;
}

.back-top-btn:hover {
	background: #f5f5f5;
}

/* ----- Thanks Page ------- */

.thanks-container {
	max-width: 600px;
	margin: 120px auto;
	text-align: center;
	padding: 2rem;
}

.thanks-container h1 {
	margin-bottom: 1rem;
}

.home-button {
	display: inline-block;
	margin-top: 2rem;
	padding: 12px 20px;
	background: #ff7500;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
}

.home-button:hover {
	background: #e36400;
}

.blog-link,
.read-more {
	position: relative;
	display: inline-block;
	text-decoration: none;
	color: #000;
	font-weight: bold;
	padding: 4px 0;
	background: transparent;
	border: none;
	box-shadow: none;
	transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-link span,
.read-more span {
	position: relative;
	display: inline-block;
}

.blog-link:hover,
.read-more:hover {
	color: #ff7500;
	background: transparent;
	transform: none;
}

.blog-link span::after,
.read-more span::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	height: 2px;
	width: 100%;
	background-color: #ff7500;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-link:hover span::after,
.read-more:hover span::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* --- 5. MEDIA QUERIES --- */

@media screen and (min-width: 768px) {
	/* Hero */

	.hero h1 {
		font-size: 4rem;
	}

	/* Logo */
	.logo img {
		height: 4.4rem;
	} /* Services */

	.services-container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}

	.service-tall {
		grid-row: span 2;
	}

	.service-wide {
		grid-column: span 2;
	}

	#about {
		max-width: 1200px;
		text-align: center;
		margin: 0 auto;
	}
	form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
		max-width: 800px;
		margin: 0 auto;
	}
	#message,
	.cf-turnstile,
	button {
		grid-column: span 2;
	}

	button {
		width: 250px;
		justify-self: center;
	}
	/* Blog posts */
	.blog-page .blog-post {
		margin: 4rem auto;
	}

	.blog-page .post-header h1 {
		font-size: 3.5rem;
	}

	/* Navigation */
	.nav-toggle-label {
		display: none;
	}

	.nav-links {
		position: static;
		max-height: none;
		flex-direction: row;
		background: transparent;
		box-shadow: none;
		width: auto;
		display: flex; /* Ensure flex is active */
		align-items: center;
	}

	.nav-links a {
		position: relative;
		display: inline-block;
		text-decoration: none;
		color: #222;
		font-size: 1.1rem;
		font-weight: 500;
		letter-spacing: 0.02em;
		/* Reset mobile padding and apply desktop spacing */
		padding: 4px 0;
		margin-left: 28px;
		transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}

	/* Target the animated underline */
	.nav-links a::after {
		content: "";
		position: absolute;
		left: 0;
		bottom: 0; /* Snug to the bottom of the text */
		height: 2px;
		width: 100%;
		background-color: #ff7500;

		/* The "Hidden" State */
		transform: scaleX(0);
		transform-origin: right; /* Animate out towards the right */
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.nav-links a:hover {
		color: #ff7500;
	}
	.nav-links a:hover::after {
		transform: scaleX(1);
		transform-origin: left; /* Animate in from the left */
	}

	.nav-links a.active::after {
		width: 100%;
	}

	.footer-container {
		flex-direction: row; /* Snaps everything into a gorgeous horizontal toolbar */
		justify-content: space-between;
		gap: 0;
	}

	.footer-payments {
		align-items: flex-start; /* Aligns items cleanly to the bottom-left */
	}

	.footer-payments .payment-icons {
		justify-content: flex-start;
	}
}

/* Very small screens adjustments */
@media screen and (max-width: 400px) {
	.blog-page .logo {
		display: none;
	}

	.nav-container {
		justify-content: flex-end;
	}
}
