/**
 * Bananchal Farms — How to Reach page.
 *
 * Loaded only on the page with the slug "how-to-reach". Tokens come from
 * assets/css/style.css, which is always enqueued first.
 *
 * The panels follow the reference the client supplied: a tinted header bar over a
 * white body. The reference used a flat pale yellow; here the header is the amber
 * token at low opacity over cream, so it sits inside the brand rather than beside it.
 *
 * rgba() values repeat the RGB of --bf-green-darker (#12301b) and --bf-amber
 * (#f5b715); custom properties cannot be used inside rgba().
 *
 * 1. Hero
 * 2. Travel panels
 * 3. Last stretch + map
 * 4. Closing CTA
 * 5. Responsive
 * 6. Reduced motion
 */

/* ==========================================================================
   1. Hero
   ========================================================================== */

.bf-reach-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 320px;
	padding: 2rem 0 2.5rem;
	background-color: var(--bf-green-darker);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--bf-white);
}

@media (min-width: 768px) {
	.bf-reach-hero {
		min-height: 380px;
		padding: 2.5rem 0 3rem;
	}
}

.bf-reach-hero__inner {
	width: 100%;
}

.bf-reach-hero__scrim { display: none; }

.bf-reach-hero__title {
	margin: 0;
	color: var(--bf-white);
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 500;
	line-height: 1.1;
	max-width: 720px;
	text-wrap: balance;
	text-shadow: 0 2px 26px rgba(18, 48, 27, 0.42);
}

/* ==========================================================================
   2. Travel panels
   ========================================================================== */

.bf-reach__panels {
	display: grid;
	gap: 1.75rem;
}

.bf-reach__panel {
	overflow: hidden;
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-lg);
	background-color: var(--bf-white);
	box-shadow: var(--bf-shadow-sm);
}

.bf-reach__panel-head {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 0;
	padding: 1.15rem clamp(1.25rem, 3vw, 2rem);
	border-bottom: 1px solid var(--bf-line);
	background-color: rgba(245, 183, 21, 0.16);
	color: var(--bf-green-dark);
	font-size: 1.5rem;
	line-height: 1.2;
}

.bf-reach__panel-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: var(--bf-amber);
	color: var(--bf-charcoal);
	font-size: 1.05rem;
	line-height: 1;
}

.bf-reach__panel-body {
	padding: clamp(1.25rem, 3vw, 2rem);
}

.bf-reach__panel-lead {
	margin: 0 0 1.15rem;
	color: var(--bf-ink);
	line-height: 1.8;
}

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

.bf-reach__list li {
	position: relative;
	padding: 0.55rem 0 0.55rem 1.65rem;
	color: var(--bf-ink);
	line-height: 1.8;
}

/* A gold marker instead of a bullet, matching the checklists elsewhere. */
.bf-reach__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 1.15rem;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--bf-amber);
}

/* ==========================================================================
   3. Last stretch + map
   ========================================================================== */

.bf-reach__last-text {
	margin: 0;
	color: var(--bf-ink);
	line-height: 1.85;
}

.bf-reach__map-figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-lg);
	background-color: var(--bf-sand);
	box-shadow: var(--bf-shadow);
}

/* An illustrated map is tall and detailed — let it size to its own aspect. */
.bf-reach__map-figure img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   4. Closing CTA
   ========================================================================== */

.bf-reach-cta__title {
	margin-bottom: 0.85rem;
}

.bf-reach-cta__text {
	max-width: 46rem;
	margin: 0 auto 1.9rem;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.8;
}

.bf-reach-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	justify-content: center;
}

/* ==========================================================================
   5. Responsive
   ========================================================================== */

@media (min-width: 992px) {
	/* Air and Rail side by side, Road spanning under them. */
	.bf-reach__panels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bf-reach__panel:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 575.98px) {
	.bf-reach__panel-head {
		font-size: 1.3rem;
	}
}

/* ==========================================================================
   6. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.bf-reach__panel {
		transition: none;
	}
}
