/* pages.css — homepage shell, hero, welcome/stats, style cards.
   per-section css lives in reviews-cta / gallery / contact / booking.css */

/* homepage sections — only the hero is fullscreen; the rest are normal containers */
.snap-section {
	position: relative;
	padding-block: clamp(4rem, 9vh, 7rem);
}

/* hero */
.hero {
	position: relative;
	min-height: 100svh;
	display: grid;
	align-content: center;
	overflow: hidden;
	isolation: isolate;
}
/* two stacked images crossfade every 5s (scripts.js); active layer runs a slow linear zoom */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.hero__bg.is-active { opacity: 1; }
.hero__bg.is-zooming { animation: aht-hero-zoom 7s linear both; }
@keyframes aht-hero-zoom {
	from { transform: scale(1); }
	to   { transform: scale(1.12); }
}
/* dark-brown vignette: darkened edges, readable middle */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(105% 105% at 50% 42%,
			rgba(34, 22, 16, .45) 0%,
			rgba(24, 15, 9, .78) 48%,
			rgba(8, 5, 2, .98) 100%);
}

/* centered single column, no logo */
.hero__inner {
	max-width: 820px;
	margin-inline: auto;
	text-align: center;
}
.hero__text { max-width: 100%; }
.hero__actions { justify-content: center; }

.hero h1 { max-width: 20ch; margin-inline: auto; }   /* two lines via hero.php */
.hero h1 br { display: block; }
.hero p {
	margin-top: 1.2rem;
	margin-inline: auto;
	color: var(--cream);
	font-size: 1.12rem;
	max-width: 52ch;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .9rem;
	margin-top: 2.1rem;
}

/* scroll hint chevron with a padded hitbox */
.hero__hint {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	translate: -50% 0;
	padding: .9rem 1.6rem;
	color: var(--gold);
	font-size: 1.2rem;
	line-height: 1;
	opacity: .85;
	cursor: pointer;
	transition: color var(--dur-1) var(--ease-out), opacity var(--dur-1) var(--ease-out);
}
.hero__hint:hover, .hero__hint:focus-visible { color: var(--yellow); opacity: 1; }

/* welcome (merged about) + stat counters */
.split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.split__media { position: relative; }
.split__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
/* gold frame offset behind the photo */
.split__media::before {
	content: "";
	position: absolute;
	inset: 1.2rem -1.2rem -1.2rem 1.2rem;
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	z-index: -1;
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: start;
	gap: clamp(1.5rem, 4vw, 3.2rem);
	margin-top: 2.2rem;
}
.stat__number {
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	font-weight: 700;
	color: var(--yellow);
	line-height: 1.05;
}
.stat__label {
	color: var(--sand);
	font-size: var(--fs-small);
	margin-top: .3rem;
}

/* phones: the 5fr/6fr split overflows sideways — stack to one column */
@media (max-width: 760px) {
	.split {
		grid-template-columns: 1fr;
		gap: 2.4rem;
	}
	.split__media {
		width: 100%;
		max-width: 460px;
		margin-inline: auto;
	}
	/* keep the offset frame off the screen edge */
	.split__media::before { inset: 1rem -.8rem -.8rem 1rem; }

	.stats {
		grid-template-columns: repeat(3, 1fr);
		justify-content: stretch;
		gap: 1rem;
	}
}

/* mini gallery — one card per style category */
.style-cards {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.1rem;
	margin-top: 2.4rem;
}
.style-card {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4.2;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	/* ring + shadow via box-shadow so they animate smoothly and don't reflow;
	   border stays the only line at rest (no double outline) */
	box-shadow: 0 0 0 0 var(--gold), 0 0 0 0 transparent;
	transition: transform .5s var(--ease-out),
	            border-color .5s var(--ease-out),
	            box-shadow .5s var(--ease-out);
}
.style-card:hover {
	transform: translateY(-6px);
	border-color: var(--gold);
	box-shadow: 0 0 0 4px var(--gold), var(--shadow);
}
.style-card img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform var(--dur-2) var(--ease-out);
}
.style-card:hover img { transform: scale(1.06); }
/* flat brown band behind the caption */
.style-card__text {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 1;
	padding: .95rem 1.15rem 1.05rem;
	background: rgba(34, 22, 16, .82);
}
.style-card__text h3 { font-size: 1.08rem; }
.style-card__from {
	color: var(--yellow);
	font-size: .93rem;
	font-weight: 600;
	margin-top: .2rem;
}
.section-foot { margin-top: 2.2rem; text-align: center; }

@media (max-width: 1100px) { .style-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .style-cards { grid-template-columns: repeat(2, 1fr); gap: .8rem; } }

/* style-cards marquee (≤860px only) — scripts.js adds .is-marquee, wraps cards
   in .sc-track and glides once. mask fades only the side that still has content
   to scroll: scripts.js ramps --sc-fade-l/-r from 0 (at that edge) to the fade
   width. desktop never gets the class, so the grid is untouched. */
@media (max-width: 860px) {
	.style-cards.is-marquee {
		display: block;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;   /* no back-swipe navigation */
		scroll-behavior: auto;            /* scripts.js drives scrollLeft */
		scrollbar-width: none;
		-ms-overflow-style: none;
		-webkit-mask-image: linear-gradient(to right,
			transparent 0, #000 var(--sc-fade-l, 0px),
			#000 calc(100% - var(--sc-fade-r, 0px)), transparent 100%);
		mask-image: linear-gradient(to right,
			transparent 0, #000 var(--sc-fade-l, 0px),
			#000 calc(100% - var(--sc-fade-r, 0px)), transparent 100%);
	}
	.style-cards.is-marquee::-webkit-scrollbar { display: none; }
	.style-cards.is-marquee .sc-track {
		display: flex;
		width: max-content;
		padding-inline: .35rem;   /* breathing room at the ends */
	}
	.style-cards.is-marquee .style-card {
		flex: 0 0 clamp(150px, 44vw, 190px);
		margin-right: 1.1rem;
		/* override the scroll-reveal hidden state so cards stay visible on the strip */
		opacity: 1 !important;
		transform: none !important;
	}
}

/* branch strip (booking-wizard no-js fallback) */
.branch-strip {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.4rem;
	margin-top: 2.4rem;
}
.branch-mini {
	background: var(--brown);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.6rem 1.7rem;
	text-align: left;
	transition: border-color var(--dur-1) var(--ease-out),
	            transform var(--dur-1) var(--ease-out);
}
.branch-mini:hover { border-color: var(--gold); transform: translateY(-4px); }
.branch-mini h3 { color: var(--gold); font-size: 1.05rem; }
.branch-mini p { color: var(--sand); font-size: .95rem; margin-top: .4rem; }
.branch-mini a { font-weight: 600; color: var(--cream); }
@media (max-width: 640px) { .branch-strip { grid-template-columns: 1fr; } }

/* generic interior page head */
.page-head { text-align: center; padding-top: clamp(3rem, 7vh, 5rem); }
