/* ---------------------------------------------------------------------------
 * Direction B · Four Arms. Enqueued only when anglemont_direction() is 'b'.
 * Layout for the -b patterns. Tokens only; no hex (style.css).
 * Delete this file if A wins.
 * ------------------------------------------------------------------------- */

/* --- Announcement bar (above the header, every page) --------------------- */

.am-announce {
	background: var(--am-cta);
	color: var(--am-cta-ink);
	font-size: 14px;
	text-align: center;
}
.am-announce p { margin: 0; padding-block: 9px; }
.am-announce a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Phones (round 5): one line, no inline link; the sticky bar carries Book. */
@media (max-width: 760px) {
	/* Measured at 360px: 12px fits (316 of 328px), 13px doesn't (342). */
	.am-announce p { padding-block: 8px; font-size: clamp(12px, 3.33vw, 13px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.am-announce a { display: none; }
}

/* --- Split hero ---------------------------------------------------------- */

.am-hero-b {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: min(86vh, 800px);
}

.am-hero-b__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 72px var(--am-gutter);
	padding-left: max(var(--am-gutter), calc((100vw - var(--am-wide)) / 2));
}

/* MEASURED (round 4, Edge render of b.): at the column's full width, 52px
   gives 3 lines at 1280 and 1440; 56px is 4 at 1280, 76px (old) was 5.
   4vw reaches the 52px cap from 1300px; at 1280 it is 51px. */
.am-hero-b__title {
	max-width: none;
	text-wrap: balance;
	margin: 0 0 20px;
	font-size: clamp(36px, 4vw, 52px);
	line-height: 1.06;
}

.am-hero-b__media { position: relative; min-height: 360px; }
.am-hero-b__media .am-photo { position: absolute; inset: 0; min-height: 0; }

/* --- Stats strip --------------------------------------------------------- */

.am-stats-b { background: var(--am-surface); border-block: 1px solid var(--am-rule); }

.am-stats-b__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Four equal columns across the content width, each stat centred, rules
   between (round 4: a flush-left first stat made the strip read off-centre). */
.am-stats-b__list li {
	padding: 28px 16px;
	border-left: 1px solid var(--am-rule);
	text-align: center;
}
.am-stats-b__list li:first-child { border-left: 0; }

.am-stats-b__list strong {
	display: block;
	color: var(--am-accent);
	font: 400 clamp(28px, 3.4vw, 40px)/1.1 var(--am-display);
}
.am-stats-b__list span { color: var(--am-soft); font-size: 15px; }

/* --- House (#house): photo left, details right --------------------------- */

.am-house-b__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}

.am-house-b__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }

/* --- Hot tub (#hot-tub): arched photo + numbered list ------------------- */

.am-tub-b__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}

.am-tub-b__arch {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 999px 999px 0 0;
}
.am-tub-b__arch .am-photo--empty { min-height: 100%; border-radius: inherit; }

.am-tub-b__list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	counter-reset: am-point;
}
.am-tub-b__list li {
	counter-increment: am-point;
	display: grid;
	grid-template-columns: 2.5em 1fr;
	padding: 12px 0;
	border-top: 1px solid var(--am-rule);
}
.am-tub-b__list li::before {
	content: counter(am-point);
	color: var(--am-accent);
	font: italic 400 22px/1.2 var(--am-display);
}

/* --- Field guide --------------------------------------------------------- */

.am-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2.4vw, 32px);
	margin: 32px 0 0;
}

.am-card {
	background: var(--am-ground);
	border: 1px solid var(--am-rule);
	border-radius: 6px;
	overflow: hidden;
}
.am-card__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.am-card__photo .am-photo--empty { min-height: 100%; border: 0; }
.am-card h3 { margin: 20px 20px 6px; font-size: 24px; }
.am-card p { margin: 0 20px 24px; color: var(--am-soft); }

/* --- Hosts + steps + CTA ------------------------------------------------- */

.am-hosts-b__grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.am-hosts-b__photo { aspect-ratio: 1; overflow: hidden; border-radius: 50%; max-width: 360px; }

.am-hosts-b__steps { margin-top: clamp(48px, 7vw, 88px); }
.am-hosts-b__cta {
	margin: 48px 0 20px;
	font: italic 400 clamp(24px, 2.6vw, 32px)/1.3 var(--am-display);
	text-align: center;
}
.am-hosts-b__book { justify-content: center; }

/* --- Narrow -------------------------------------------------------------- */

@media (max-width: 860px) {
	/* Phones (round 5): copy and Book first, then the photo at a modest
	   height, so the first screen has the headline and the button. */
	.am-hero-b { grid-template-columns: 1fr; min-height: 0; }
	.am-hero-b__copy { padding-block: 32px 36px; }
	.am-hero-b__media { min-height: 0; height: 42vh; }
	.am-stats-b__list { grid-template-columns: repeat(2, 1fr); }
	.am-stats-b__list li:nth-child(3) { border-left: 0; }
	.am-stats-b__list li:nth-child(n+3) { border-top: 1px solid var(--am-rule); }
	.am-cards { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.am-house-b__grid,
	.am-tub-b__grid,
	.am-hosts-b__grid { grid-template-columns: 1fr; }
	.am-hosts-b__photo { max-width: 240px; }
}
