/* Homepage-only styles (loaded on the front page only). */

/* "What Size Tent Do I Need?": a tent by a pool behind the heading, fading into the cream page below it. */
.bb-finder-section {
	--pool-h: clamp(420px, 36vw, 720px);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: clamp(72px, 7vw, 110px);
}
.bb-finder-section > .wp-block-group__inner-container { position: static; } /* so the picture spans the whole section, not just the 1100px column */
.bb-finder-section .bb-finder__bg {
	position: absolute;
	z-index: -2;
	top: 0;
	left: 0;
	right: 0;
	width: auto;
	max-width: none !important; /* the page's constrained layout would cap it at the 1100px column */
	height: var(--pool-h);
	margin: 0 !important;
	-webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.bb-finder-section .bb-finder__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.bb-finder-section::before { /* darkens the top so the white heading reads on the sky and the tent */
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	right: 0;
	height: var(--pool-h);
	background: linear-gradient(to bottom, rgba(42, 22, 48, .72) 0, rgba(42, 22, 48, .45) 38%, rgba(42, 22, 48, 0) 80%);
	pointer-events: none;
}
.bb-finder-section .bb-section-title,
.bb-finder-section .bb-section-lead { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.bb-finder-section .bb-finder { margin-top: clamp(40px, 14vw, 230px); } /* the card starts below the tent roof, so the picture shows */
@media (max-width: 760px) {
	.bb-finder-section { --pool-h: 380px; padding-top: 56px; }
	.bb-finder-section .bb-finder { margin-top: 120px; }
}

/* ---------- Linen showcase: "Linens That Steal the Show" (inc/linen-feature.php) ---------- */
.bb-linen {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--bb-night) 0%, #3b1c46 52%, var(--bb-purple-dark) 100%);
	color: #fff;
}
.bb-linen::before, .bb-linen::after { /* soft glows, decoration only */
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.bb-linen::before { right: -160px; top: -200px; width: 560px; height: 560px; background: radial-gradient(closest-side, rgba(254, 216, 0, .18), rgba(254, 216, 0, 0)); }
.bb-linen::after { left: -200px; bottom: -260px; width: 600px; height: 600px; background: radial-gradient(closest-side, rgba(244, 166, 215, .2), rgba(244, 166, 215, 0)); }
.bb-linen__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.bb-linen .bb-eyebrow { margin: 0 0 8px; color: var(--bb-yellow); font-size: .9rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.bb-linen .bb-linen__title { margin: 0 0 .35em; color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; text-align: left; text-transform: uppercase; }
.bb-linen .bb-linen__title::after { margin-left: 0; margin-right: auto; }
.bb-linen__lead { max-width: 46ch; margin: 0; color: rgba(255, 255, 255, .9); font-size: 1.15rem; line-height: 1.65; }
.bb-linen__stats { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 26px 0 !important; padding: 0 !important; list-style: none; }
.bb-linen__stats li { margin: 0; color: rgba(255, 255, 255, .85); font-size: .95rem; line-height: 1.2; }
.bb-linen__stats strong { display: block; color: var(--bb-yellow); font-family: var(--bb-heading-font); font-size: 2.2rem; font-weight: 700; line-height: 1.05; }
.bb-linen__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.bb-linen__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 30px;
	border: 2px solid var(--bb-yellow);
	border-radius: 999px;
	background: var(--bb-yellow);
	color: var(--bb-night);
	font-weight: 800;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.bb-linen a.bb-linen__btn { text-decoration: none !important; }
.bb-linen__btn:hover, .bb-linen__btn:focus-visible { border-color: #fff; background: #fff; color: var(--bb-purple-dark); }
.bb-linen__btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.bb-linen__btn--ghost:hover, .bb-linen__btn--ghost:focus-visible { background: #fff; color: var(--bb-purple-dark); }
.bb-linen a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* The fabric wall: eight photo tiles, every other one stepped down. */
.bb-linen__wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 !important; padding: 0 0 30px !important; list-style: none; }
.bb-linen__tile { margin: 0; }
.bb-linen__tile:nth-child(even) { margin-top: 30px; }
.bb-linen .bb-linen__tile a {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 18px;
	background: var(--bb-purple-dark);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
	color: #fff;
	text-decoration: none !important;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.bb-linen__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.bb-linen__tile a::after { /* a sheen that sweeps across on hover */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
	transform: translateX(-120%);
	pointer-events: none;
}
.bb-linen__label { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 46px 14px 14px; background: linear-gradient(to top, rgba(26, 15, 31, .92), rgba(26, 15, 31, 0)); line-height: 1.2; }
.bb-linen__label strong { font-family: var(--bb-heading-font); font-size: 1.35rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.bb-linen__label span { color: rgba(255, 255, 255, .85); font-size: .85rem; }
@media (hover: hover) {
	.bb-linen__tile a:hover, .bb-linen__tile a:focus-visible { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 22px 40px rgba(0, 0, 0, .45); }
	.bb-linen__tile a:hover img, .bb-linen__tile a:focus-visible img { transform: scale(1.08); }
	.bb-linen__tile a:hover::after, .bb-linen__tile a:focus-visible::after { transform: translateX(120%); transition: transform .8s ease; }
}
@media (prefers-reduced-motion: reduce) {
	.bb-linen__tile a, .bb-linen__tile img { transition: none; }
	.bb-linen__tile a:hover, .bb-linen__tile a:focus-visible { transform: none; }
	.bb-linen__tile a:hover::after { display: none; }
}
/* Tiles rise into place as the section scrolls into view (browsers without scroll-driven animation just show them). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.bb-linen__tile { animation: bb-linen-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
		@keyframes bb-linen-rise { from { opacity: 0; transform: translateY(50px) scale(.96); } to { opacity: 1; transform: none; } }
	}
}
@media (max-width: 1000px) {
	.bb-linen__grid { grid-template-columns: 1fr; }
	.bb-linen__lead { max-width: 60ch; }
}
@media (max-width: 640px) {
	.bb-linen__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 24px !important; }
	.bb-linen__tile:nth-child(even) { margin-top: 24px; }
	.bb-linen__tile:nth-child(n+7) { display: none; } /* six tiles on a phone: three tidy rows */
	.bb-linen__actions .bb-linen__btn { flex: 1 1 100%; }
	.bb-linen__label strong { font-size: 1.15rem; }
	.bb-linen__label span { display: none; }
}

/* The homepage's full-width sections touch each other: the default 32px margin under each one let the cream page background
   show as a stripe between them (e.g. above "Shop Our Rentals" and "How It Works"). */
.home .entry-content > .wp-block-group.alignfull { margin-top: 0 !important; margin-bottom: 0 !important; }

/* "Browse Rentals" slides down to the rentals section; leave room for the sticky header. */
/* home.css only loads on the front page, so this needs no html:has(...) test (that kind of test makes the browser re-check the whole page on every change) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#shop-our-rentals { scroll-margin-top: 100px; }
#tent-calculator { scroll-margin-top: 100px; }
/* cache check 1795121037 */
