/* =========================================================
   Agatha Rose — Full Permission
   Fonts and colours are set in theme.json (Appearance → Editor → Styles).
   This file handles layout and the section looks.
   ========================================================= */

:root {
	--ar-plum: var(--wp--preset--color--plum, #360e49);
	--ar-magenta: var(--wp--preset--color--magenta, #c414a4);
	--ar-lilac: var(--wp--preset--color--lilac, #baa7da);
	--ar-frame: var(--wp--preset--color--frame, #4e3fbe);
	--ar-col: 30rem;            /* width of the text column */
	--ar-photo: 18rem;          /* width of the side photos */
	--ar-gutter: clamp(1.25rem, 5vw, 5rem);
	--ar-hero-bg: url("../images/hero-bg.png");
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; }

/* Sections sit flush against each other */
.wp-site-blocks > * { margin-block: 0; }

strong, b { font-weight: 500; }

/* ---------- shared: framed photos ---------- */
.wp-block-image.ar-frame {
	margin: 0;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border: 3px solid var(--ar-frame);
	border-radius: 3px;
	box-shadow: 3px 3px 0 rgba(54, 14, 73, .35);
	background: linear-gradient(170deg, #f0d9b5, #c99f74);
}
.wp-block-image.ar-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =========================================================
   HERO
   ========================================================= */
.ar-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	column-gap: clamp(1rem, 4vw, 4rem);
	padding: clamp(1.5rem, 4.5vh, 2.5rem) clamp(1.25rem, 7.5vw, 7rem) clamp(2.5rem, 7vh, 4rem);
	color: #fff;
	text-shadow: 0 1px 14px rgba(20, 0, 40, .35);
	background-color: #1d0c31;
	background-image: var(--ar-hero-bg);
	background-size: cover;
	background-position: center;
}
body .ar-hero > * { margin: 0; }

.ar-hero .ar-logo {
	position: absolute;
	top: clamp(1rem, 3vh, 1.75rem);
	left: clamp(1rem, 2vw, 1.75rem);
	width: clamp(8.5rem, 16vw, 15rem);
	z-index: 2;
}
.ar-logo img, .ar-signoff img { display: block; width: 100%; height: auto; }

.ar-hero__titles { grid-column: 2; grid-row: 1; text-align: center; }
body .ar-hero__titles > * { margin: 0; }
.ar-hero .ar-hero__title {
	font-size: clamp(2.5rem, 6vw, 5.5rem);
	line-height: .95;
	text-transform: uppercase;
	letter-spacing: -.005em;
	white-space: nowrap !important;
}
.ar-hero .ar-hero__tagline {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.15rem, 2.4vw, 2.1rem);
	line-height: 1.1;
}

.ar-hero .ar-hero__photo {
	grid-column: 2;
	grid-row: 2;
	justify-self: center;
	align-self: start;
	margin-top: clamp(1rem, 4vh, 2.5rem);
	height: clamp(16rem, 62svh, 38rem);
	max-width: 80vw;
}

.ar-hero__link {
	white-space: nowrap !important; /* !important so the editor shows it on one line too */
	grid-row: 2;
	align-self: end;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.4rem, 3.1vw, 2.9rem);
	line-height: 1;
	text-transform: uppercase;
}
.ar-hero__link a { text-decoration-thickness: 2px; text-underline-offset: .12em; }
.ar-hero__link--left  { grid-column: 1; justify-self: start; }
.ar-hero__link--right { grid-column: 3; justify-self: end; }

/* =========================================================
   SECTIONS
   ========================================================= */
.ar-section {
	position: relative;
	padding: clamp(2.5rem, 5vw, 3.5rem) var(--ar-gutter) clamp(5rem, 11vw, 10rem);
	color: #fff;
	overflow: hidden;
}
body .ar-section > * { margin-block: 0; }

.ar-section > h2 {
	text-align: center;
	text-wrap: balance;
	margin-bottom: clamp(2rem, 4.5vw, 3.75rem) !important;
}

/* backgrounds */
.ar-magenta { background: var(--ar-magenta); }
.ar-plum    { background: var(--ar-plum); }

/* lilac sections get a soft grain */
.ar-lilac { background: linear-gradient(165deg, #b6a3d8 0%, var(--ar-lilac) 50%, #c2afe1 100%); }
.ar-lilac::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .3;
	mix-blend-mode: soft-light;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ar-lilac > * { position: relative; }

/* magenta sections with the marble showing through */
.ar-textured {
	background:
		linear-gradient(rgba(186, 18, 156, .86), rgba(186, 18, 156, .86)),
		var(--ar-hero-bg) center / cover no-repeat,
		var(--ar-magenta);
}

/* ---------- the quote band ---------- */
.ar-band {
	display: grid;
	place-items: center;
	min-height: clamp(16rem, 30vw, 26rem);
	padding-block: clamp(3rem, 8vw, 6rem);
}
.ar-band .ar-band__quote {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4.6vw, 4.2rem);
	line-height: 1.08;
	text-align: center;
	text-wrap: balance;
}

/* ---------- text column + side photo ---------- */
.ar-row {
	display: grid;
	grid-template-columns: 1fr minmax(0, var(--ar-col)) 1fr;
	column-gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
}
body .ar-row > * { margin: 0; }
.ar-row > .ar-text { grid-column: 2; grid-row: 1; }
.ar-row > .ar-photo { grid-row: 1; width: min(100%, var(--ar-photo)); }
.ar-media-right > .ar-photo { grid-column: 3; justify-self: center; }
.ar-media-left  > .ar-photo { grid-column: 1; justify-self: center; }
.ar-row > .ar-photo--small { width: min(100%, calc(var(--ar-photo) * .86)); }

/* One size for all body text, everywhere (matches "How to book me.") */
.ar-text { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.12; }
body .ar-text > * { margin-block: 0; }
body .ar-text > * + * { margin-block-start: 1.1em; }
.ar-text p, .ar-text li, .ar-text .ar-lead, .ar-text h3 { font-size: 1em; line-height: inherit; }
/* The opening paragraph of each section is 2pt larger (not in "How to book me.") */
.ar-section:not(#how-to-book-me):not(.ar-plum) .ar-text > p:first-child { font-size: calc(1em + 2pt); }

@media (min-width: 700px) {
	.ar-justify p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
}

.ar-text h3 {
	margin-bottom: -.8em !important; /* sits tight above its paragraph or list */
}
.ar-things h3 { margin-top: 1.9em !important; }
.ar-things > h3:first-of-type { margin-top: 1.2em !important; }

.ar-list { padding-left: 1.3em; margin: 0; }
.ar-list li::marker { font-size: .75em; }
.ar-list--spaced { display: grid; gap: 1.1em; }
body .ar-text > .ar-after-list { margin-block-start: 2.5em; }

.ar-text .ar-signoff {
	width: clamp(11.25rem, 18.75vw, 16.875rem);
	margin: 2.25rem 0 0 auto !important;
}

/* ---------- booking call to action ---------- */
.ar-section > .ar-cta {
	margin-top: clamp(4rem, 9vw, 8rem) !important;
	text-align: center;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.5rem, 4.8vw, 4.3rem);
	line-height: 1;
}
.ar-cta a { text-decoration-thickness: 2px; text-underline-offset: .1em; }
.ar-section.ar-plum { padding-bottom: clamp(3rem, 6vw, 5rem); }

/* ---------- footer ---------- */
.ar-footer {
	background: var(--ar-plum);
	color: #fff;
	text-align: center;
	font-size: .95rem;
	padding: 0 1rem 1.75rem;
}

/* ---------- other pages (privacy etc.) ---------- */
.ar-page { padding: 2rem var(--ar-gutter) 5rem; min-height: 70vh; }
.ar-page__home { font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem; }
.ar-page__home a { text-decoration: none; }
.ar-page__title { margin-top: 3rem; }

/* ---------- scroll-down cue at the bottom of the hero ---------- */
.ar-scroll-cue {
	position: absolute;
	left: calc(50% - 1.5rem);
	bottom: clamp(.9rem, 2.5vh, 1.6rem);
	z-index: 3;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	color: #fff;
	opacity: .85;
	transition: opacity .3s ease;
	filter: drop-shadow(0 1px 6px rgba(20, 0, 40, .45));
}
.ar-scroll-cue:hover, .ar-scroll-cue:focus-visible { opacity: 1; }
.ar-scroll-cue:focus-visible { outline: 1px solid rgba(255, 255, 255, .7); outline-offset: 2px; border-radius: 50%; }
.ar-scroll-cue svg { width: 2.1rem; height: auto; display: block; }

/* =========================================================
   PHONES & SMALL TABLETS
   ========================================================= */
@media (max-width: 900px) {
	.ar-row {
		grid-template-columns: minmax(0, 34rem);
		justify-content: center;
		row-gap: 3rem;
	}
	.ar-row > .ar-text,
	.ar-row > .ar-photo { grid-column: 1; grid-row: auto; }
	.ar-row > .ar-photo,
	.ar-row > .ar-photo--small { justify-self: center; width: min(75vw, 18rem); }
}

@media (max-width: 760px) {
	.ar-hero {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto 1fr auto;
		row-gap: 1.25rem;
		padding-bottom: 4.25rem; /* room for the scroll cue under the links */
	}
	.ar-hero .ar-logo {
		position: static;
		grid-column: 1 / -1;
		grid-row: 1;
		justify-self: center;
		width: 9.5rem;
	}
	.ar-hero__titles { grid-column: 1 / -1; grid-row: 2; }
	.ar-hero .ar-hero__photo {
		grid-column: 1 / -1;
		grid-row: 3;
		margin-top: 0;
		height: clamp(18rem, 55svh, 30rem);
	}
	.ar-hero__link { grid-row: 4; margin-top: .5rem; }
	.ar-hero__link--left  { grid-column: 1; }
	.ar-hero__link--right { grid-column: 2; }
}
