/*
 * Joy Coffee — front-end styles.
 *
 * Hand-written, no framework, no build step. Colour, type and spacing values all
 * come from theme.json via the --wp--preset--* custom properties, so changing the
 * brand palette means editing one JSON file, not hunting through this stylesheet.
 *
 * Contents
 *   1.  Tokens
 *   2.  Base and reset
 *   3.  Accessibility helpers
 *   4.  Layout
 *   5.  Buttons
 *   6.  Header and navigation
 *   7.  Hero
 *   8.  Sections
 *   9.  Menu
 *   10. Hours and open/closed status
 *   11. Placeholders and badges
 *   12. Contact and map
 *   13. Footer and mobile action bar
 *   14. Prose and misc
 */

/* ------------------------------------------------------------------ *
 * 1. Tokens
 * ------------------------------------------------------------------ */

:root {
	--joy-cream: var(--wp--preset--color--cream, #f9f4ec);
	--joy-sand: var(--wp--preset--color--sand, #ede2d1);
	--joy-ink: var(--wp--preset--color--ink, #1e1712);
	--joy-body: var(--wp--preset--color--body, #4a3b31);
	--joy-espresso: var(--wp--preset--color--espresso, #241812);
	--joy-crema: var(--wp--preset--color--crema, #c08a47);
	--joy-accent: var(--wp--preset--color--accent, #8a5324);

	/*
	 * Status colours are solid pairs rather than a tint over whatever section
	 * they land on. A translucent pill inherits its backdrop, so the same green
	 * passed contrast on cream and failed it on sand.
	 */
	--joy-open-bg: #e2efe6;
	--joy-open-text: #14532d;
	--joy-closed-bg: #f8e5e2;
	--joy-closed-text: #8a2621;

	--joy-font-display: var(--wp--preset--font-family--display, Georgia, serif);
	--joy-font-body: var(--wp--preset--font-family--body, system-ui, sans-serif);
	--joy-font-wordmark: var(--wp--preset--font-family--wordmark, 'Poppins', system-ui, sans-serif);

	/*
	 * The exact teal the old joy-coffee.ro used for its "JOY coffee" wordmark
	 * image, sampled from the source PNG. Kept separate from the colour palette
	 * above -- it belongs to this one wordmark, not to the site's own palette.
	 */
	--joy-wordmark-color: #66cccc;

	--joy-wrap: 76rem;
	--joy-wrap-narrow: 44rem;
	--joy-gutter: clamp(1.25rem, 5vw, 3rem);

	--joy-radius: 0.625rem;
	--joy-radius-pill: 999px;

	--joy-border: color-mix(in srgb, var(--joy-ink) 14%, transparent);
	--joy-shadow: 0 1px 2px rgba(36, 24, 18, 0.06), 0 8px 24px rgba(36, 24, 18, 0.06);

	/* Height of the mobile action bar, so content can clear it. */
	--joy-actionbar-height: 4.25rem;

	/* Sticky chrome heights, used to offset anchor targets. */
	--joy-header-height: 4.25rem;
	--joy-jump-height: 4rem;
}

/* ------------------------------------------------------------------ *
 * 2. Base and reset
 * ------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;

	/* Anchor targets must clear the sticky header. */
	scroll-padding-top: calc(var(--joy-header-height) + 1rem);
}

body {
	margin: 0;
	background: var(--joy-cream);
	color: var(--joy-body);
	font-family: var(--joy-font-body);
	font-size: var(--wp--preset--font-size--medium, 1.0625rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* The action bar is fixed on small screens; keep it from covering the footer. */
@media (max-width: 47.99em) {
	body {
		padding-bottom: var(--joy-actionbar-height);
	}
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-family: var(--joy-font-display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--joy-ink);
	text-wrap: balance;
}

p,
ul,
ol,
dl,
figure {
	margin: 0 0 1rem;
}

p {
	text-wrap: pretty;
}

a {
	color: var(--joy-accent);
	text-underline-offset: 0.15em;
}

a:hover,
a:focus {
	text-decoration: none;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

address {
	font-style: normal;
}

button {
	font: inherit;
	color: inherit;
}

/* ------------------------------------------------------------------ *
 * 3. Accessibility helpers
 * ------------------------------------------------------------------ */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* One visible focus style everywhere, never removed. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--joy-accent);
	outline-offset: 2px;
	border-radius: 3px;
}

.joy-skip {
	position: absolute;
	top: -100%;
	left: 0.5rem;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--joy-espresso);
	color: var(--joy-cream);
	border-radius: 0 0 var(--joy-radius) var(--joy-radius);
	text-decoration: none;
	font-weight: 600;
}

.joy-skip:focus {
	top: 0;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ------------------------------------------------------------------ *
 * 4. Layout
 * ------------------------------------------------------------------ */

.joy-wrap {
	width: 100%;
	max-width: var(--joy-wrap);
	margin-inline: auto;
	padding-inline: var(--joy-gutter);
}

.joy-wrap--narrow {
	max-width: var(--joy-wrap-narrow);
}

.joy-grid {
	display: grid;
	gap: clamp(1.5rem, 4vw, 2.5rem);
}

.joy-grid--three {
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.joy-split {
	display: grid;
	gap: clamp(2rem, 6vw, 4rem);
}

@media (min-width: 48em) {
	.joy-split {
		grid-template-columns: 1fr 1fr;
	}
}

/* ------------------------------------------------------------------ *
 * 5. Buttons
 * ------------------------------------------------------------------ */

.joy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem; /* Comfortable touch target. */
	padding: 0.7rem 1.5rem;
	border: 1px solid var(--joy-ink);
	border-radius: var(--joy-radius-pill);
	background: transparent;
	color: var(--joy-ink);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.joy-button:hover,
.joy-button:focus {
	background: var(--joy-ink);
	color: var(--joy-cream);
}

.joy-button--primary {
	background: var(--joy-espresso);
	border-color: var(--joy-espresso);
	color: var(--joy-cream);
}

.joy-button--primary:hover,
.joy-button--primary:focus {
	background: var(--joy-accent);
	border-color: var(--joy-accent);
	color: #fff;
}

/* ------------------------------------------------------------------ *
 * 6. Header and navigation
 * ------------------------------------------------------------------ */

/*
 * The site's logo was a 131×39px raster wordmark -- too small to use as a
 * hero or social-preview image (see front-page.php and inc/seo.php), and it
 * upscales visibly. Its font (identified by eye: geometric, single weight,
 * a flat-topped hooked lowercase "f", perfectly round "o"/"e") is Poppins
 * Light, so the header renders the site name as real text in that font
 * instead of the image. Self-hosted rather than linked from Google Fonts --
 * the site otherwise makes no third-party requests (see docs/deployment.md,
 * "Analytics and cookies") and two small woff2 subsets cost less than a
 * render-blocking cross-origin request would anyway.
 */
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/poppins-light-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122;
}

@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/poppins-light-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-024F, U+0300-0301, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113;
}

/*
 * Opaque by default. A translucent header only works where the backdrop filter
 * actually composites; where it does not -- older Safari, Firefox with the
 * feature disabled, some embedded webviews -- page text shows straight through
 * the bar and the navigation becomes unreadable. The blur is an enhancement
 * layered on top of a background that is already solid.
 */
.joy-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--joy-cream);
	border-bottom: 1px solid var(--joy-border);
}

@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
	.joy-header {
		background: color-mix(in srgb, var(--joy-cream) 88%, transparent);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}
}

.joy-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--joy-wrap);
	margin-inline: auto;
	padding: 0.75rem var(--joy-gutter);
}

.joy-header__title {
	margin: 0;
	font-family: var(--joy-font-wordmark);
	font-size: 1.625rem;
	font-weight: 300;
	letter-spacing: 0.01em;
}

.joy-header__title a {
	color: var(--joy-wordmark-color);
	text-decoration: none;
}

.joy-header .custom-logo {
	max-height: 3rem;
	width: auto;
}

.joy-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--joy-border);
	border-radius: var(--joy-radius);
	background: transparent;
	cursor: pointer;
}

.joy-header__toggle-bars,
.joy-header__toggle-bars::before,
.joy-header__toggle-bars::after {
	display: block;
	width: 1.15rem;
	height: 2px;
	background: var(--joy-ink);
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.joy-header__toggle-bars {
	position: relative;
}

.joy-header__toggle-bars::before,
.joy-header__toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.joy-header__toggle-bars::before {
	top: -6px;
}

.joy-header__toggle-bars::after {
	top: 6px;
}

.joy-header__toggle[aria-expanded="true"] .joy-header__toggle-bars {
	background: transparent;
}

.joy-header__toggle[aria-expanded="true"] .joy-header__toggle-bars::before {
	transform: translateY(6px) rotate(45deg);
}

.joy-header__toggle[aria-expanded="true"] .joy-header__toggle-bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

.joy-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.joy-nav a {
	color: var(--joy-ink);
	text-decoration: none;
	font-weight: 500;
}

.joy-nav a:hover,
.joy-nav a:focus,
.joy-nav .current-menu-item > a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.joy-lang ul {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.joy-lang a,
.joy-lang span {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: var(--joy-radius);
	text-decoration: none;
	color: var(--joy-body);
}

.joy-lang .is-current span {
	background: var(--joy-sand);
	color: var(--joy-ink);
}

/* Small screens: the nav collapses behind the toggle. */
@media (max-width: 47.99em) {
	.joy-nav {
		position: absolute;
		inset-inline: 0;
		top: 100%;
		display: none;
		flex-direction: column;
		gap: 1rem;
		padding: 1.25rem var(--joy-gutter) 1.75rem;
		background: var(--joy-cream);
		border-bottom: 1px solid var(--joy-border);
		box-shadow: var(--joy-shadow);
	}

	.joy-nav.is-open {
		display: flex;
	}

	.joy-nav__list {
		flex-direction: column;
		gap: 0.25rem;
	}

	.joy-nav__list a {
		display: block;
		padding: 0.6rem 0;
		font-size: 1.125rem;
	}

	.joy-lang {
		padding-top: 0.5rem;
		border-top: 1px solid var(--joy-border);
	}
}

@media (min-width: 48em) {
	.joy-header__toggle {
		display: none;
	}

	.joy-nav {
		display: flex;
		align-items: center;
		gap: 2rem;
	}
}

/* ------------------------------------------------------------------ *
 * 7. Hero
 * ------------------------------------------------------------------ */

.joy-hero {
	display: grid;
	gap: clamp(1.5rem, 5vw, 3rem);
	max-width: var(--joy-wrap);
	margin-inline: auto;
	padding: clamp(2rem, 6vw, 4rem) var(--joy-gutter) clamp(2.5rem, 7vw, 5rem);
	align-items: center;
}

@media (min-width: 56em) {
	.joy-hero {
		grid-template-columns: 1.1fr 1fr;
	}

	.joy-hero__body {
		order: -1;
	}
}

.joy-hero__media img,
.joy-hero__media .joy-placeholder {
	border-radius: var(--joy-radius);
	box-shadow: var(--joy-shadow);
	width: 100%;
	object-fit: cover;
}

.joy-hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--joy-accent);
}

.joy-hero__title {
	font-size: var(--wp--preset--font-size--xx-large, clamp(2.25rem, 6vw, 4rem));
	margin-bottom: 0.35em;
}

.joy-hero__lede {
	font-size: var(--wp--preset--font-size--large, 1.375rem);
	max-width: 34ch;
}

.joy-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

/* ------------------------------------------------------------------ *
 * 8. Sections
 * ------------------------------------------------------------------ */

.joy-section {
	padding-block: clamp(2.5rem, 7vw, 5rem);
}

.joy-section--flush {
	padding-block: 0;
}

.joy-section--dark {
	background: var(--joy-espresso);
	color: color-mix(in srgb, var(--joy-cream) 88%, transparent);
}

.joy-section--dark h2,
.joy-section--dark h3 {
	color: var(--joy-cream);
}

.joy-section--dark a {
	color: var(--joy-crema);
}

.joy-section--sand {
	background: var(--joy-sand);
}

.joy-section__title {
	font-size: var(--wp--preset--font-size--x-large, 2rem);
}

.joy-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.joy-section__head .joy-section__title {
	margin-bottom: 0;
}

.joy-section__link {
	font-weight: 600;
}

.joy-pillar h3 {
	font-size: var(--wp--preset--font-size--large, 1.375rem);
}

.joy-pillar p:last-child {
	margin-bottom: 0;
}

.joy-pagehead {
	padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(1rem, 3vw, 1.5rem);
	background: var(--joy-sand);
}

.joy-pagehead__title {
	font-size: var(--wp--preset--font-size--xx-large, clamp(2.25rem, 6vw, 4rem));
	margin-bottom: 0.25em;
}

.joy-pagehead__lede {
	max-width: 52ch;
	font-size: var(--wp--preset--font-size--large, 1.375rem);
	margin-bottom: 1rem;
}

/* ------------------------------------------------------------------ *
 * 9. Menu
 * ------------------------------------------------------------------ */

.joy-jump {
	position: sticky;
	top: var(--joy-header-height);
	z-index: 50;
	background: var(--joy-cream);
	border-bottom: 1px solid var(--joy-border);
	padding-block: 0.75rem;
}

/*
 * On the menu page two sticky bars stack, so section anchors need to clear both
 * or a jump link drops the heading behind the section nav.
 */
.joy-menu__section {
	scroll-margin-top: calc(var(--joy-header-height) + var(--joy-jump-height) + 1rem);
}

.joy-jump__list {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.joy-jump__list a {
	display: inline-block;
	white-space: nowrap;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--joy-border);
	border-radius: var(--joy-radius-pill);
	background: var(--joy-cream);
	color: var(--joy-body);
	text-decoration: none;
	font-size: 0.9375rem;
}

.joy-jump__list a:hover,
.joy-jump__list a:focus {
	background: var(--joy-sand);
	color: var(--joy-ink);
}

.joy-menu__section + .joy-menu__section {
	margin-top: clamp(2.5rem, 6vw, 4rem);
}

.joy-menu__section-head {
	padding-bottom: 0.75rem;
	margin-bottom: 1.25rem;
	border-bottom: 2px solid var(--joy-ink);
}

.joy-menu__section-title {
	margin-bottom: 0.2em;
	font-size: var(--wp--preset--font-size--x-large, 2rem);
}

.joy-menu__section-note {
	margin: 0;
	max-width: 60ch;
	color: color-mix(in srgb, var(--joy-body) 85%, transparent);
}

.joy-menu__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 48em) {
	.joy-menu__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(2rem, 5vw, 4rem);
	}
}

.joy-menu__head {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
}

/*
 * The dotted leader between name and price, the way a printed menu reads.
 * Only drawn when a price exists -- otherwise it trails off to nothing and
 * reads as a stray rule.
 */
.joy-menu__head.has-price::after {
	content: "";
	flex: 1 1 auto;
	order: 1;
	height: 0;
	margin-bottom: 0.28em;
	border-bottom: 1px dotted color-mix(in srgb, var(--joy-ink) 35%, transparent);
}

.joy-menu__name {
	order: 0;
	margin: 0;
	font-size: 1.0625rem;
	font-family: var(--joy-font-body);
	font-weight: 600;
	color: var(--joy-ink);
}

.joy-menu__price {
	order: 2;
	margin: 0;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--joy-ink);
}

.joy-menu__description {
	margin: 0.3rem 0 0;
	font-size: 0.9375rem;
	max-width: 52ch;
	color: color-mix(in srgb, var(--joy-body) 88%, transparent);
}

/*
 * Items with a photograph get a small one beside the text -- enough to
 * recognise the drink, not enough to turn a menu into a gallery. Items
 * without one keep the plain row; no placeholder, so the list stays even.
 */
.joy-menu__item.has-photo {
	display: grid;
	grid-template-columns: 5.25rem minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
}

.joy-menu__photo {
	aspect-ratio: 3 / 2;
	border-radius: var(--joy-radius);
	overflow: hidden;
	background: var(--joy-sand);
}

.joy-menu__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 48em) {
	.joy-menu__item.has-photo {
		grid-template-columns: 6.5rem minmax(0, 1fr);
	}
}

.joy-menu__footnote {
	margin-top: clamp(2rem, 5vw, 3rem);
	font-size: 0.9375rem;
	color: color-mix(in srgb, var(--joy-body) 80%, transparent);
}

.joy-menu--preview .joy-menu__section + .joy-menu__section {
	margin-top: 2.5rem;
}

.joy-empty {
	padding: 2rem;
	border: 1px dashed var(--joy-border);
	border-radius: var(--joy-radius);
	text-align: center;
}

/* ------------------------------------------------------------------ *
 * 10. Hours and open/closed status
 * ------------------------------------------------------------------ */

.joy-status {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0.35rem 0.85rem 0.35rem 0.6rem;
	border-radius: var(--joy-radius-pill);
	background: var(--joy-open-bg);
	color: var(--joy-open-text);
	font-size: 0.9375rem;
	font-weight: 600;
}

.joy-status.is-closed {
	background: var(--joy-closed-bg);
	color: var(--joy-closed-text);
}

.joy-status__dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: currentColor;
	flex: none;
}

/*
 * No dark-section variant: the solid pill above is legible on cream, sand and
 * espresso alike. The previous translucent override only covered
 * .joy-section--dark and silently failed contrast inside the footer, which is
 * dark but is not that class.
 */

.joy-hours {
	margin: 0;
	max-width: 22rem;
}

.joy-hours__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--joy-border);
}

.joy-hours__row:last-child {
	border-bottom: 0;
}

.joy-hours dt {
	margin: 0;
}

.joy-hours dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.joy-hours__row.is-today {
	font-weight: 700;
	color: var(--joy-ink);
}

.joy-hours__today {
	font-weight: 400;
	opacity: 0.7;
}

.joy-section--dark .joy-hours__row.is-today,
.joy-footer .joy-hours__row.is-today {
	color: inherit;
}

/* ------------------------------------------------------------------ *
 * 11. Placeholders and badges
 * ------------------------------------------------------------------ */

/*
 * Deliberately looks unfinished. These frames mark where the owner's real
 * photographs go; stock imagery would hide the gap instead of flagging it.
 */
.joy-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	padding: 1.5rem;
	text-align: center;
	background: repeating-linear-gradient(
		45deg,
		var(--joy-sand),
		var(--joy-sand) 12px,
		color-mix(in srgb, var(--joy-sand) 70%, var(--joy-cream)) 12px,
		color-mix(in srgb, var(--joy-sand) 70%, var(--joy-cream)) 24px
	);
	border: 1px dashed color-mix(in srgb, var(--joy-ink) 30%, transparent);
	border-radius: var(--joy-radius);
	color: color-mix(in srgb, var(--joy-ink) 70%, transparent);
}

.joy-placeholder span {
	font-weight: 600;
	font-size: 0.9375rem;
}

.joy-placeholder small {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.75;
}

.joy-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.joy-badges__item {
	padding: 0.1rem 0.55rem;
	border: 1px solid var(--joy-border);
	border-radius: var(--joy-radius-pill);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: color-mix(in srgb, var(--joy-body) 90%, transparent);
}

/* ------------------------------------------------------------------ *
 * 12. Contact and map
 * ------------------------------------------------------------------ */

.joy-address {
	margin-bottom: 1.25rem;
	font-style: normal;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--joy-ink);
}

.joy-address__street,
.joy-address__town,
.joy-address__hint {
	display: block;
}

.joy-address__street {
	font-size: 1.125rem;
	font-weight: 600;
}

.joy-address__hint {
	margin-top: 0.25rem;
	font-size: 0.9375rem;
	color: color-mix(in srgb, var(--joy-body) 75%, transparent);
}

.joy-contact-list {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.6rem;
}

/* Full body colour, not a tint: at 12px a muted grey fell below 4.5:1. */
.joy-contact-list__label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--joy-body);
}

.joy-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.joy-social a {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border: 1px solid currentColor;
	border-radius: var(--joy-radius-pill);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 600;
}

.joy-map {
	position: relative;
	min-height: 22rem;
	display: grid;
	place-items: center;
	background: var(--joy-sand);
}

.joy-map__consent {
	max-width: 32rem;
	padding: 2rem var(--joy-gutter);
	text-align: center;
}

.joy-map__alt {
	margin-bottom: 0;
	font-size: 0.9375rem;
}

.joy-map iframe {
	display: block;
	width: 100%;
	height: 24rem;
	border: 0;
}

.joy-reviews__note {
	max-width: 48ch;
}

.joy-reviews__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.joy-reviews__list a {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--joy-border);
	border-radius: var(--joy-radius-pill);
	text-decoration: none;
	font-weight: 600;
}

.joy-reviews__list a:hover,
.joy-reviews__list a:focus {
	background: var(--joy-sand);
}

/* ------------------------------------------------------------------ *
 * 13. Footer and mobile action bar
 * ------------------------------------------------------------------ */

.joy-footer {
	background: var(--joy-espresso);
	color: color-mix(in srgb, var(--joy-cream) 82%, transparent);
	padding-top: clamp(2.5rem, 7vw, 4.5rem);
}

.joy-footer__inner {
	display: grid;
	gap: clamp(2rem, 5vw, 3rem);
	max-width: var(--joy-wrap);
	margin-inline: auto;
	padding-inline: var(--joy-gutter);
}

@media (min-width: 48em) {
	.joy-footer__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.joy-footer__heading {
	font-size: 1.125rem;
	color: var(--joy-cream);
	margin-bottom: 0.75rem;
}

.joy-footer a {
	color: var(--joy-crema);
}

.joy-footer .joy-hours__row {
	border-color: color-mix(in srgb, var(--joy-cream) 16%, transparent);
}

.joy-footer .joy-hours__row.is-today {
	color: var(--joy-cream);
}

.joy-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.joy-footer__legal {
	margin-top: clamp(2rem, 5vw, 3rem);
	padding: 1.25rem var(--joy-gutter);
	border-top: 1px solid color-mix(in srgb, var(--joy-cream) 16%, transparent);
	text-align: center;
	font-size: 0.875rem;
}

.joy-footer__legal p {
	margin: 0;
}

.joy-actionbar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 90;
	display: flex;
	gap: 0.5rem;
	padding: 0.6rem var(--joy-gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
	background: color-mix(in srgb, var(--joy-cream) 95%, transparent);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--joy-border);
}

.joy-actionbar__button {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.6rem 1rem;
	border: 1px solid var(--joy-ink);
	border-radius: var(--joy-radius-pill);
	color: var(--joy-ink);
	text-decoration: none;
	font-weight: 600;
}

.joy-actionbar__button--primary {
	background: var(--joy-espresso);
	border-color: var(--joy-espresso);
	color: var(--joy-cream);
}

/* The action bar is a small-screen affordance only. */
@media (min-width: 48em) {
	.joy-actionbar {
		display: none;
	}
}

/* ------------------------------------------------------------------ *
 * 14. Prose and misc
 * ------------------------------------------------------------------ */

.joy-prose > * + * {
	margin-top: 1rem;
}

.joy-prose h2 {
	margin-top: 2rem;
	font-size: var(--wp--preset--font-size--x-large, 2rem);
}

.joy-prose h3 {
	margin-top: 1.5rem;
	font-size: var(--wp--preset--font-size--large, 1.375rem);
}

.joy-prose img,
.joy-page__media img,
.joy-single__media img {
	border-radius: var(--joy-radius);
}

.joy-prose blockquote {
	margin: 1.5rem 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--joy-crema);
	font-family: var(--joy-font-display);
	font-size: var(--wp--preset--font-size--large, 1.375rem);
	color: var(--joy-ink);
}

.joy-single__eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.joy-single__price {
	font-size: var(--wp--preset--font-size--large, 1.375rem);
	font-weight: 700;
	color: var(--joy-ink);
}

.joy-single__lede {
	font-size: var(--wp--preset--font-size--large, 1.375rem);
}

.joy-single__back {
	margin-top: 2rem;
}

.joy-results {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.5rem;
}

.joy-results__title {
	font-size: var(--wp--preset--font-size--large, 1.375rem);
	margin-bottom: 0.25em;
}

.joy-404__lede {
	font-size: var(--wp--preset--font-size--large, 1.375rem);
	max-width: 46ch;
}

.joy-404__phone {
	margin-top: 1.5rem;
}

.joy-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem;
}

/* ------------------------------------------------------------------ *
 * 15. Legal pages and footer links
 * ------------------------------------------------------------------ */

.joy-legal h2 {
	margin-top: 2rem;
	font-size: var(--wp--preset--font-size--large, 1.375rem);
}

.joy-legal ul {
	padding-left: 1.25rem;
}

.joy-legal li + li {
	margin-top: 0.75rem;
}

.joy-legal__table {
	width: 100%;
	margin: 1rem 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.joy-legal__table th,
.joy-legal__table td {
	padding: 0.5rem 0.75rem 0.5rem 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid color-mix(in srgb, var(--joy-ink) 15%, transparent);
}

.joy-footer__links {
	margin-top: 0.5rem;
	font-size: 0.875rem;
}

.joy-footer__links a {
	color: inherit;
}
