/*
 * About (templates/about.php): the photo of Sophie in the shop window, inside the intro text.
 *
 * It was placed at a fixed 1024px wide and never shrank, so on a phone only its left edge showed —
 * a tall slice of shop window, with Sophie (who stands in the middle) cut out. Now it scales to the
 * column everywhere, and on a phone sits in a 4:5 frame, cropped around the page's Photo focus
 * (0% left … 50% middle … 100% right), so she is large in frame.
 */
.about-intro img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 575.98px) {
	.about-intro img {
		width: 100%;
		aspect-ratio: 4 / 5;
		object-fit: cover;
		object-position: var(--photo-focus-x, 50%) 50%;
		border-radius: .75rem;
	}
}

/* =============================================================================================
 * About (new design), templates/about-v2.php
 *
 * The banner (the event pages' banner, in private-events.css) → "Hi, I'm Sophie / How it all
 * started" with the Polaroid and the timeline (white) → Meet the team (cream) → reviews (white) →
 * client logos (a slim pink band) → Instagram → Come say hi (cream) → footer. Each section its own
 * colour, so they read as separate blocks.
 * ============================================================================================= */

/* ── Banner: the script tagline in white, the title, two sentences ── */
.about-banner .about-banner-tagline {
	color: var(--white);
}

.about-banner h1 {
	margin: .25rem 0 1rem;
}

/* On a phone the three lines of the banner sit closer together: with the tagline down to one
   line there is no need for the heading to hold it at arm's length. Here rather than in brand.css
   because the rule it overrides lives in this file, and this file loads last — the same rule
   written anywhere earlier would lose on source order. */
@media (max-width: 767.98px) {
	/* Both classes are on the same <header>. Naming both beats .event-banner h1 in
	   private-events.css, which loads after this file and would otherwise win the bottom
	   margin on a tie. */
	.about-banner.event-banner h1 {
		margin: .15rem 0 .55rem;
	}
}

.about-banner-lede {
	max-width: 30rem;
	margin: 0;
	font-size: 1.05rem;
}

/* ── Hi, I'm Sophie: the Polaroid and the heading ── */
.about-story {
	padding: 4rem 1rem 5rem;
}

.about-story-intro {
	display: grid;
	/* 15rem, not `auto`. An `auto` track is sized by whatever the Polaroid happens to be, which
	   handed the layout to an image that had not loaded yet: a lazy-load placeholder forced to
	   1024px took the whole row and left this track 0px wide, so the intro text wrapped one word
	   per line. The column is the layout’s business, not the image’s. It matches the photo’s own
	   width below. */
	grid-template-columns: 15rem minmax(0, 1fr);
	/* start, not center: the intro beside the Polaroid runs to two paragraphs, so a centred photo
	   would float halfway down a column three times its height. */
	align-items: start;
	gap: 2.5rem;
	max-width: 60rem;
	margin: 0 auto 3.5rem;
}

/* No photo chosen in the editor: one column, so the 15rem photo track does not sit there as an
   empty gutter beside the text. */
.about-story-intro-nophoto {
	grid-template-columns: minmax(0, 1fr);
}

/* The intro, beside the Polaroid. Slightly larger than the timeline copy because it is the first
   thing read and sets the voice for the rest. */
.about-story-lede {
	margin: .9rem 0 0;
	font-size: 1.02rem;
	line-height: 1.7;
	color: #3E3E3F;
}

.about-story-intro h2 {
	margin: .25rem 0 0;
}

/* Belt and braces for the first paint.
   Smush’s lazy-load stylesheet sets width and aspect-ratio with !important from a placeholder
   custom property, and opacity: 0, until its JavaScript swaps the real file in. The Polaroid is
   no longer lazy-loaded (no-lazyload in about-v2.php), but a plugin update or a settings change
   could put the class back and this bug would return silently, so the photo turns those three
   declarations down whatever class it is wearing. */
.about-story-photo.lazyload,
.about-story-photo.lazyloading,
.about-story-photo.lazyloaded {
	width: 15rem !important;
	height: auto !important;
	aspect-ratio: 4 / 5 !important;
	opacity: 1 !important;
}

.about-story-photo {
	width: 15rem;
	/* The partner to the width/height attributes on the tag. Without it the height attribute
	   applies as a presentational hint, the box gets a hard pixel height, and aspect-ratio below
	   is ignored because neither dimension is auto any more. */
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 40%;
	padding: .6rem .6rem 2.2rem;
	background: #fff;
	box-shadow: 0 1rem 2rem rgba(35, 31, 32, .18);
	rotate: -3deg;
}

/* ── The timeline: cards alternating either side of a dashed pink line, each with its numbered
   dot on the line. The list is one grid; each card spans two rows and the next starts one row
   down on the other side, so the cards interlock instead of leaving gaps. ── */
.about-timeline {
	position: relative;
	display: grid;
	/* The centre column is sized from the shadow, not by eye: a 2rem dot with a 4px white
	   ring is 40px across, and the cards cast a 28px blur, so 8rem (128px) leaves 44px
	   clear either side and the dot never sits in a card’s shadow. */
	grid-template-columns: minmax(0, 1fr) 8rem minmax(0, 1fr);
	row-gap: 1.5rem;
	max-width: 60rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

/* The line is a GRID ITEM, not an absolutely positioned overlay the height of the whole list.
   Placed from the first dot's row to the last dot's row, it can only ever be as long as the dots
   it joins — the overlay version ran to the bottom of the grid, which left a tail of dashes
   hanging below the final card with nothing to connect to. */
.about-timeline::before {
	content: "";
	grid-column: 2;
	grid-row: 1 / var(--steps);
	justify-self: center;
	/* Begin and end at the dots' CENTRES rather than their edges: the dots paint over the top
	   (they are position: relative with a z-index), so the line reads as running into the first
	   and out of the last instead of stopping a few pixels short of each. The dot is 2rem, so half
	   of it is 1rem. */
	margin-top: 1rem;
	margin-bottom: -1rem;
	border-left: 2px dashed #ffc3c9;
}

.about-timeline-step {
	display: contents;
}

.about-timeline-dot {
	grid-column: 2;
	grid-row: var(--row);
	justify-self: center;
	align-self: start;
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	/* Flush with the top edge of its own card, so the two start on one line. */
	margin-top: 0;
	border-radius: 50%;
	background: #FE415F;
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	box-shadow: 0 0 0 4px #fff;
}

.about-timeline-card {
	grid-row: var(--row) / span 2;
	align-self: start;
	padding: 1.25rem 1.5rem 1.4rem;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 .75rem 1.75rem rgba(35, 31, 32, .08);
}

/* The last card takes ONE row, not two.
   Every other card spans two so the cards interlock down the page, each starting halfway
   alongside its neighbour. The last card has nothing to interlock with, so its second row is
   never filled and the list ends with a stretch of empty grid — 69px of it at 1440, which sat
   between the final card and whatever section came next and read as a gap nobody had asked for.
   A phone already gives each card a single row, so this changes nothing there. */
.about-timeline-step:last-child .about-timeline-card {
	grid-row: var(--row) / span 1;
}

.about-timeline-step:nth-child(odd) .about-timeline-card {
	grid-column: 1;
}

.about-timeline-step:nth-child(even) .about-timeline-card {
	grid-column: 3;
}

/* Space for a photo, above the words. */
/* A real photo on a card that has one. There is no placeholder variant any more: a card with no
   photo renders nothing, so an empty dashed box can never appear on the page. */
.about-timeline-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin-bottom: 1rem;
	border-radius: .75rem;
	background: var(--light, #FBF9F6);
}

.about-timeline-when {
	font-family: var(--italic);
	font-size: 1.6rem;
	line-height: 1;
	color: #FE415F;
}

.about-timeline-title {
	margin: .2rem 0 .5rem;
	font-size: 1.2rem;
	font-weight: 800;
}

.about-timeline-line {
	margin: 0;
	font-size: .92rem;
	line-height: 1.55;
	color: #231F20;
}

.about-timeline-line + .about-timeline-line {
	margin-top: .6rem;
}

/* ── When the team section is switched off in the editor ──
   The reviews section then follows the timeline directly, and three separate pieces of white
   space run together into one very large gap. Measured at 1440: 69px of empty grid below the last
   card, 5rem of section padding, 4rem of the next section’s padding — 222px, against 97px for the
   reviews-to-clients join just below it. With the team band in place the beige broke that run of
   white in two, which is why it only became obvious once the band could be turned off.
   Both rules are scoped to this class, so the layout with the team section ON is untouched. */

/* The section’s own bottom padding, trimmed from 5rem so the remaining white lands on the same
   spacing as the page’s other section joins: ~98px on a desktop, ~80px on a phone, against 97px
   and 75px for reviews-to-clients. (The empty trailing row that also fed into this gap is dealt
   with up in the timeline rules, in both states.) */
.about-story-no-team {
	padding-bottom: 1.75rem;
}

/* ── Meet the team (cream): three across on a desktop, a short last row centred ── */
.about-team {
	padding: 4.5rem 1rem 4rem;
}

.about-team-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.75rem;
	max-width: 54rem;
	margin: 2.5rem auto 0;
}

.about-team-card {
	flex: 0 1 16.5rem;
	padding: 1rem 1rem 1.4rem;
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 .75rem 1.75rem rgba(35, 31, 32, .08);
	transition: box-shadow .3s ease;
}

.about-team-card:hover {
	box-shadow: 0 1.25rem 2.5rem rgba(35, 31, 32, .16);
}

.about-team-photo {
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: .9rem;
	background: linear-gradient(135deg, #ffc3c9, #ff6ba9 55%, #FE415F);
}

.about-team-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* No photo yet: the first initial, big, on the pinks. */
.about-team-initial {
	display: grid;
	place-items: center;
	height: 100%;
	font-family: var(--title);
	font-size: 5rem;
	color: #fff;
}

.about-team-card h3 {
	margin: 1rem 0 .1rem;
	font-size: 1.25rem;
	font-weight: 800;
}

.about-team-role {
	margin: 0;
	font-size: .85rem;
	font-weight: 600;
	color: #FE415F;
}

.about-team-line {
	margin: .6rem 0 0;
	font-size: .9rem;
	color: #231F20;
}

.about-team-fav {
	margin-top: .9rem;
	padding-top: .8rem;
	border-top: 1px dashed #ffc3c9;
	font-size: .85rem;
	color: #231F20;
}

.about-team-fav-label {
	display: block;
	font-family: var(--italic);
	font-size: 1.35rem;
	line-height: 1;
	color: #FE415F;
}

.about-team-fav strong {
	display: block;
	margin: .2rem 0 .3rem;
	font-size: .95rem;
}

.about-team-fav p {
	margin: 0;
	font-size: .85rem;
	line-height: 1.45;
}

/* ── Reviews (white) and the client logos (a slim pink band, logos only) ── */
.about-reviews {
	padding: 4rem 1rem;
}

.about-clients {
	padding: 1.75rem 0 2.25rem;
}

.about-clients .clients-strip {
	margin-top: 0;
}

/* ── Come say hi (cream), last before the footer ── */
.about-visit {
	padding: 3.5rem 1rem 4rem;
}

.about-visit-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: 3rem;
	max-width: 62rem;
	margin: 0 auto;
}

.about-visit-text h2 {
	margin: .25rem 0 1rem;
}

.about-visit-text p {
	color: #231F20;
}

.about-visit-address {
	font-size: 1.1rem;
	font-weight: 700;
}

.about-visit-address .bi {
	color: #FE415F;
}

.about-visit-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.5rem;
}

/* ── THE MAP IS A PICTURE WITH A LINK ON IT ──────────────────────────────────────────────────
   It was a Google Maps iframe — a whole second web page, and the slowest thing on this one. The
   image carries its own OpenStreetMap credit in the bottom corner; the label below it says where
   a tap goes, because a picture of a map gives no other clue that it is a link.
   Sophie, 21 November 2026. */
.about-visit-map {
	display: block;
	border-radius: 1.25rem;
	overflow: hidden;
	box-shadow: 0 1rem 2rem rgba(35, 31, 32, .12);
	text-decoration: none;
}

/* The picture's own shape, not a 4:3 window onto it: Google's credit runs along the bottom
   corners of the screenshot, and cropping the sides to fit a box clips the end of it. */
.about-visit-map img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1400 / 857;
	object-fit: contain;
}

/* Under the picture rather than across it: Google's logo and "Map data ©2026 Google" sit along
   the bottom edge of the image, and a bar over them would cover the credit we have to show. */
.about-visit-map-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	padding: .7rem 1rem;
	background: var(--red, #FE415F);
	color: #fff;
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: .01em;
	/* The same easing .button uses, so this fades like every other button rather than snapping. */
	transition: background-color .2s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
	.about-visit-map-cta { transition: none; }
}

/* The same pair every other red button on the site uses: --red at rest, --pink on hover
   (.button-red in style.min.css). It filled charcoal instead, which read as a dead button next
   to the two real buttons sitting directly above it on this page. Sophie, 23 November 2026. */
.about-visit-map:hover .about-visit-map-cta,
.about-visit-map:focus-visible .about-visit-map-cta {
	background: var(--pink, #ff6ba9);
}

.about-visit-map:focus-visible {
	outline: 3px solid #231F20;
	outline-offset: 3px;
}

/* ── Tablets and phones ── */
@media (max-width: 991.98px) {
	.about-visit-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
		text-align: center;
	}

	.about-visit-buttons {
		justify-content: center;
	}
}

@media (max-width: 767.98px) {
	.about-story-intro {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
		gap: 1.75rem;
	}

	.about-story-photo {
		width: 12rem;
	}

	.about-story-photo.lazyload,
	.about-story-photo.lazyloading,
	.about-story-photo.lazyloaded {
		width: 12rem !important;
	}

	/* The timeline in one column, its line and dots down the left. */
	.about-timeline {
		grid-template-columns: 2rem minmax(0, 1fr);
		column-gap: .9rem;
		row-gap: 1rem;
	}

	.about-timeline::before {
		/* One column over, and the dots sit 1rem lower on this layout, so the centres it should
		   start and end at are 2rem in: the dot's own margin plus half the dot. */
		grid-column: 1;
		margin-top: 2rem;
		margin-bottom: -2rem;
	}

	.about-timeline-dot {
		grid-column: 1;
		/* Explicit, not auto: the dashed line is a grid item in this column now, and auto-placement
		   would flow the dots past it instead of alongside it. */
		grid-row: var(--row);
		margin-top: 1rem;
	}

	.about-timeline-step:nth-child(n) .about-timeline-card {
		grid-column: 2;
		/* One row each here, rather than the two they span on a desktop: in a single column there
		   is nothing to interlock with, and one row per step is what lets the line span 1..--steps. */
		grid-row: var(--row);
	}

	.about-team,
	.about-reviews {
		padding-top: 3.25rem;
		padding-bottom: 3rem;
	}
}

@media (max-width: 575.98px) {
	.about-team-grid {
		gap: 1rem;
	}

	.about-team-card {
		flex-basis: calc(50% - .5rem);
		padding: .6rem .6rem 1rem;
	}

	.about-team-initial {
		font-size: 3.5rem;
	}
}

/* The map credit. Google's own was along the bottom edge of the screenshot and the tighter crop
   cuts that corner off, so it is set in words under the picture — quiet, grey, and out of the
   way of the label above it. Sophie, 22 November 2026. */
.about-visit-map-credit {
	margin: .45rem 0 0;
	font-size: .72rem;
	line-height: 1.4;
	color: #7a7375;
	text-align: right;
}
