/*
Theme Name: Gems of Arlington
Theme URI: https://ajtinternational00.wixstudio.com/gemsofarlington
Description: Twenty Twenty-Five child theme for Gems of Arlington built with native block (Gutenberg) markup: grid-line layout, marquee header, sticky location stack, photo carousel, Book Now services list, newsletter band and orange footer.
Author: Ilfusion
Template: twentytwentyfive
Version: 1.5.1
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gems-of-arlington
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--gems-ink: var(--wp--preset--color--contrast, #241a00);
	--gems-cream: var(--wp--preset--color--base, #efede7);
	--gems-line: 1px;
	--gems-bar: 86px;
	--gems-pad: clamp(20px, 3.47vw, 50px);
	--gems-sticky-top: 0px;
}

body.admin-bar {
	--gems-sticky-top: 32px;
}

/* Smooth scrolling for in-page anchors (#about, #locations …).
   The admin-bar offset is already handled by core's html { scroll-padding-top }. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ==========================================================================
   Resets for the full-bleed, grid-line layout
   (core pads every .has-background group/columns block via :where(); undo it
   inside our sections, then add padding back per component)
   ========================================================================== */

:where(.gems-header, .gems-home, .gems-book, .gems-biz, .gems-footer) .has-background,
:where(.gems-header, .gems-footer).has-background {
	padding: 0;
}

/* No gap above the footer on any template */
footer.wp-block-template-part {
	margin-block-start: 0;
}

/* "Full Width (No Title)" page template */
main.gems-page {
	margin-block-start: 0;
}

.gems-page > .wp-block-post-content > * {
	margin-block: 0;
}

/* Wrapper groups pasted into page content (homepage / Book Now) */
div.gems-home,
div.gems-book {
	margin-block: 0;
}

div.gems-home > *,
div.gems-book > * {
	margin-block: 0;
}

.wp-block-columns.gems-grid,
.wp-block-columns.gems-header__bar {
	margin: 0;
	gap: var(--gems-line);
	align-items: stretch;
}

.gems-grid > .wp-block-column,
.gems-header__bar > .wp-block-column {
	min-width: 0;
	margin: 0;
}

/* Keep 50/50 splits exact even when one side has padding and the other doesn't. */
@media (min-width: 782px) {
	body .wp-block-columns.gems-split > .wp-block-column {
		flex-basis: 50% !important;
		flex-grow: 1;
	}
}

.wp-block-image.gems-fill {
	margin: 0;
	height: 100%;
}

.wp-block-image.gems-fill img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Shared text styles */
.gems-home .gems-subtitle {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
	letter-spacing: -0.04em;
}

.gems-home .gems-subtitle a {
	color: inherit;
	text-decoration: none;
}

.gems-home .gems-subtitle a:hover {
	text-decoration: underline;
}

.gems-home .gems-label {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.4;
}

.gems-section-head.wp-block-group {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px var(--gems-pad);
	text-align: center;
}

.gems-section-head > .wp-block-heading {
	margin: 0;
}

/* Full-width "bar" buttons (Don’t Miss Out / VISIT / Book Now) */
.wp-block-buttons.gems-bar {
	gap: 0;
	margin: 0;
}

.gems-bar .wp-block-button {
	width: 100%;
	margin: 0;
}

.gems-bar .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: var(--gems-bar);
	padding: 0 20px;
	border-top: var(--gems-line) solid var(--gems-ink);
	border-radius: 0;
	font-size: 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

div.gems-header > * {
	margin-block: 0;
}

/* Marquee */
.gems-marquee.wp-block-group {
	display: flex;
	align-items: center;
	height: 45px;
	overflow: hidden;
}

.gems-marquee .gems-marquee__track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	margin: 0;
}

.gems-marquee__track > p.gems-marquee__item {
	margin: 0;
	padding-inline: 17px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.gems-marquee__track.is-animated {
	animation: gems-marquee 30s linear infinite;
}

.gems-marquee:hover .gems-marquee__track.is-animated {
	animation-play-state: paused;
}

@keyframes gems-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* Logo | navigation | account row */
.wp-block-columns.gems-header__bar {
	padding: 0 0 var(--gems-line);
}

.gems-header__bar > .wp-block-column {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 115px;
	padding: 0 16px;
	box-sizing: border-box;
}

.gems-header__bar > .wp-block-column > * {
	margin: 0;
}

.gems-header .gems-logo img {
	width: clamp(56px, 10.7vw, 154px);
	height: auto;
}

.gems-header .gems-nav .wp-block-navigation-item__content {
	padding: 4px 0;
}

.gems-header .gems-account {
	gap: 28px;
}

.gems-header .gems-login a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gems-ink);
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}

.gems-header .gems-login a::before {
	content: "";
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill-rule='evenodd' d='M14 0a14 14 0 1 1 0 28 14 14 0 0 1 0-28Zm0 6a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 12c-3.9 0-7.3 1.6-9 4.1A12 12 0 0 0 14 26a12 12 0 0 0 9-3.9c-1.7-2.5-5.1-4.1-9-4.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill-rule='evenodd' d='M14 0a14 14 0 1 1 0 28 14 14 0 0 1 0-28Zm0 6a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 12c-3.9 0-7.3 1.6-9 4.1A12 12 0 0 0 14 26a12 12 0 0 0 9-3.9c-1.7-2.5-5.1-4.1-9-4.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gems-header .gems-login a:hover {
	text-decoration: underline;
}

.gems-header .gems-cart {
	position: relative;
	display: inline-flex;
	color: var(--gems-ink);
	text-decoration: none;
}

.gems-header .gems-cart__count {
	position: absolute;
	inset: 11px 0 auto;
	font-size: 11px;
	line-height: 1;
	text-align: center;
}

/* Mobile overlay menu */
.gems-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: center;
	padding-top: 64px;
}

.gems-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: center;
	gap: 28px;
}

.gems-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-size: 22px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.gems-hero.wp-block-group {
	position: relative;
	overflow: hidden;
}

.gems-hero .wp-block-image.gems-hero__image {
	margin: 0;
}

.gems-hero .gems-hero__image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.gems-hero .gems-hero__title {
	position: absolute;
	top: 42.5%;
	left: 50%;
	width: 62%;
	margin: 0;
	transform: translate(-50%, -50%);
	font-size: 9.766vw;
	font-weight: 700;
	line-height: 0.8;
	letter-spacing: -0.02em;
}

/* ==========================================================================
   Welcome strip
   ========================================================================== */

.gems-welcome.wp-block-group {
	padding: 18px clamp(16px, 8.2vw, 118px);
}

.gems-welcome > p {
	margin: 0;
	font-size: clamp(14px, 1.379vw, 19.86px);
	line-height: 1.7;
	text-transform: uppercase;
}

.gems-welcome > p + p {
	margin-top: 1.7em;
}

/* ==========================================================================
   Explore our local businesses
   ========================================================================== */

.gems-explore .gems-explore__media {
	display: flex;
	flex-direction: column;
}

.gems-explore .gems-overlay {
	position: relative;
	flex: 1 1 auto;
	min-height: 520px;
	margin: 0;
	overflow: hidden;
}

.gems-overlay .wp-block-image.gems-fill {
	position: absolute;
	inset: 0;
}

/* Keep the faces below the heading now that the section is shorter */
.gems-explore .gems-overlay .gems-fill img {
	object-position: 50% 30%;
}

.gems-overlay .gems-overlay__text {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 50px 40px 0;
}

.gems-overlay__text > .gems-explore__title {
	max-width: 400px;
	margin: 0;
	line-height: 1;
	letter-spacing: -0.03em;
}

.gems-overlay__text > .gems-subtitle {
	margin: 21px 0 0;
}

.gems-explore .gems-explore__media > .gems-bar {
	margin: 0;
}

/* Experience cards: stacked rows (icon left, title + text right) that share the photo's height */
.gems-explore .gems-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-auto-rows: 1fr;
	gap: var(--gems-line);
	height: 100%;
	margin: 0;
}

.gems-cards > .gems-card.wp-block-group {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-content: center;
	column-gap: 40px;
	min-height: 200px;
	margin: 0;
	padding: 40px 48px;
	box-sizing: border-box;
}

.gems-card .wp-block-image.gems-card__icon {
	display: flex;
	grid-row: 1 / span 2;
	align-self: center;
	align-items: center;
	justify-content: center;
	width: 110px;
	height: 110px;
	margin: 0;
}

.gems-card .gems-card__icon img {
	width: 110px;
	height: 110px;
	object-fit: contain;
}

.gems-card > .gems-card__title.has-text-align-center {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	text-align: left;
}

.gems-card > p.has-text-align-center {
	max-width: 400px;
	margin: 12px 0 0;
	text-align: left;
}

/* ==========================================================================
   Who we are
   ========================================================================== */

.gems-who .gems-who__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 720px;
	padding: 6px 40px 16px;
	box-sizing: border-box;
}

.gems-who__text > * {
	margin: 0;
}

.gems-who .wp-block-image.gems-who__icon {
	display: block;
	width: 117px;
	margin: 0 auto;
}

.gems-who .gems-who__icon img {
	width: 117px;
	height: auto;
}

.gems-who__text > .wp-block-heading {
	margin-top: 32px;
}

.gems-who__text > p {
	max-width: 483px;
	margin-top: 25.5px;
}

.gems-who__text > p.gems-who__lead {
	max-width: none;
	margin-top: 3px;
	letter-spacing: -0.05em;
}

.gems-who__text > p.gems-who__lead + p {
	margin-top: 38px;
}

/* Photo columns that fill the row height */
.gems-grid .gems-media-col {
	position: relative;
	overflow: hidden;
}

.gems-media-col > .wp-block-image.gems-fill {
	position: absolute;
	inset: 0;
}

/* ==========================================================================
   Our prime locations (sticky title + stacking rows)
   ========================================================================== */

.gems-locations .gems-locations__head {
	min-height: 198px;
}

div.gems-location {
	margin: 0;
	padding-top: var(--gems-line);
}

.gems-location .gems-location__info {
	display: flex;
	flex-direction: column;
}

/* A row with no VISIT / button bar (e.g. "More gems coming soon") keeps the same height as the others */
@media (min-width: 782px) {
	.gems-location .gems-location__info > .gems-location__text:only-child {
		min-height: 559px;
	}
}

.gems-location .gems-location__text {
	flex: 1 1 auto;
	min-height: 473px;
	margin: 0;
	padding: 25px;
	box-sizing: border-box;
}

.gems-location__text > .gems-location__title {
	max-width: 400px;
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.4;
}

.gems-location__text > p {
	max-width: 500px;
	margin: 17px 0 0;
}

.gems-location .gems-location__info > .gems-bar {
	margin: 0;
}

/* Featured businesses (Query Loop) */
.gems-locations > .wp-block-query {
	margin: 0;
}

.gems-locations .gems-locations__rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gems-locations__rows > li {
	margin: 0;
}

.gems-location__text > .gems-location__title {
	text-transform: uppercase;
}

.gems-location__text > .gems-location__excerpt {
	max-width: 500px;
	margin: 17px 0 0;
}

.gems-location__excerpt .wp-block-post-excerpt__excerpt,
.gems-gem-card__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.gems-media-col > .wp-block-post-featured-image a {
	display: block;
	height: 100%;
}

/* VISIT bar (Read More block) — matches the button bars */
.gems-location__info > .wp-block-read-more,
.gems-gem-card > .wp-block-read-more {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: auto;
	min-height: var(--gems-bar);
	margin: 0;
	padding: 0 20px;
	border-top: var(--gems-line) solid var(--gems-ink);
	background: var(--wp--preset--color--accent-3, #e0ca6b);
	color: var(--gems-ink);
	font-size: 20px;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.gems-location__info > .wp-block-read-more:hover,
.gems-location__info > .wp-block-read-more:focus-visible,
.gems-gem-card > .wp-block-read-more:hover,
.gems-gem-card > .wp-block-read-more:focus-visible {
	background: var(--gems-ink);
	color: var(--gems-cream);
}

@media (min-width: 1024px) and (min-height: 800px) {
	.gems-locations .gems-locations__head {
		position: sticky;
		top: var(--gems-sticky-top);
		z-index: 3;
	}

	.gems-locations > div.gems-location,
	.gems-locations__rows > li {
		position: sticky;
		top: calc(var(--gems-sticky-top) + 198px);
		z-index: 2;
	}
}

/* ==========================================================================
   Stats
   ========================================================================== */

.gems-stats .gems-stats__head {
	min-height: 208px;
	padding: 100px var(--gems-pad) 48px;
	box-sizing: border-box;
}

.gems-stats > .gems-grid {
	padding-top: var(--gems-line);
}

.gems-grid .gems-stat {
	min-height: 388px;
	padding: 51px 25px 40px;
	box-sizing: border-box;
}

.gems-stat > * {
	margin: 0;
}

.gems-stat > .gems-stat__number {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.4;
}

.gems-stat > .gems-label {
	max-width: 290px;
	margin-top: 4px;
}

.gems-stat > p:not(.gems-label) {
	max-width: 290px;
	margin-top: 22px;
}

/* ==========================================================================
   Instagram strip
   ========================================================================== */

.gems-insta .gems-insta__head {
	min-height: 215px;
	margin: 0;
	padding: 70px 50px 32px;
	box-sizing: border-box;
}

.gems-insta__head > * {
	margin: 0;
}

.gems-insta__head > .gems-subtitle {
	margin-top: 9px;
}

.gems-insta .gems-insta__track {
	display: flex;
	gap: 4px;
	margin: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--gems-ink) transparent;
}

.gems-insta__track > .wp-block-image.gems-insta__item {
	flex: 0 0 40%;
	margin: 0;
	scroll-snap-align: start;
}

.gems-insta__track > .gems-insta__item img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

/* Arrow buttons (added by assets/js/gems.js) */
.gems-carousel {
	position: relative;
}

.gems-carousel.is-ready .gems-insta__track {
	scrollbar-width: none;
}

.gems-carousel.is-ready .gems-insta__track::-webkit-scrollbar {
	display: none;
}

.gems-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-3, #e0ca6b);
	color: var(--gems-ink);
	opacity: 0.9;
	transform: translateY(-50%);
	cursor: pointer;
	transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.gems-carousel__arrow[hidden] {
	display: none;
}

.gems-carousel__arrow:hover {
	opacity: 1;
	background: var(--gems-ink);
	color: var(--gems-cream);
}

.gems-carousel__arrow:focus-visible {
	opacity: 1;
	outline: 2px solid var(--gems-ink);
	outline-offset: 3px;
}

.gems-carousel__arrow--prev {
	left: 23px;
}

.gems-carousel__arrow--prev svg {
	transform: scaleX(-1);
}

.gems-carousel__arrow--next {
	right: 23px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.gems-testimonials .gems-section-head {
	min-height: 178px;
}

.gems-testimonials > .gems-grid {
	padding-top: var(--gems-line);
}

.gems-grid .gems-testimonial {
	min-height: 380px;
	padding: 70px 50px 50px;
	box-sizing: border-box;
}

.gems-testimonial > p {
	max-width: 380px;
	margin: 0;
}

.gems-testimonial > p.gems-label {
	margin-top: 40px;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */

.gems-newsletter > .gems-grid {
	padding-top: var(--gems-line);
}

.gems-grid .gems-newsletter__brand,
.gems-grid .gems-newsletter__form {
	min-height: 401px;
	padding: 50px;
	box-sizing: border-box;
}

.gems-grid .gems-newsletter__brand {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 30px;
}

.gems-newsletter__brand > p.gems-brand {
	margin: 0;
	font-size: clamp(26px, 2.344vw, 33.75px);
	font-weight: 900;
	line-height: 1;
}

.gems-brand a {
	color: var(--gems-ink);
	text-decoration: none;
}

.gems-newsletter__brand > .gems-illustrations {
	position: relative;
	width: 250px;
	height: 165px;
	margin: 0;
}

.gems-illustrations > .wp-block-image {
	position: absolute;
	margin: 0;
}

.gems-illustrations > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.gems-illustrations > .gems-illustrations__camera {
	top: 63px;
	left: 0;
	width: 133px;
}

.gems-illustrations > .gems-illustrations__column {
	top: 0;
	left: 101px;
	width: 95px;
}

.gems-illustrations > .gems-illustrations__tickets {
	top: 37px;
	left: 150px;
	width: 99px;
}

.gems-newsletter__form > * {
	margin: 0;
}

form.gems-form {
	max-width: 620px;
	margin-top: 58px;
	padding: 0 24px;
	box-sizing: border-box;
}

.gems-form p {
	margin: 0;
}

.gems-form label {
	font-size: 15px;
	line-height: 1.7;
}

.gems-form__field label {
	display: block;
}

.gems-form input[type="email"] {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	margin-top: 8px;
	padding: 0 2px;
	border: 0;
	border-bottom: var(--gems-line) solid var(--gems-ink);
	border-radius: 0;
	background: transparent;
	color: var(--gems-ink);
	font: inherit;
}

.gems-form p.gems-form__check {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 25px;
}

.gems-form input[type="checkbox"] {
	display: grid;
	flex: 0 0 auto;
	place-content: center;
	width: 16px;
	height: 16px;
	margin: 0;
	border: var(--gems-line) solid var(--gems-ink);
	border-radius: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.gems-form input[type="checkbox"]:checked::before {
	content: "";
	width: 10px;
	height: 10px;
	background: var(--gems-ink);
}

.gems-form input:focus-visible,
.gems-form button:focus-visible {
	outline: 2px solid var(--gems-ink);
	outline-offset: 3px;
}

.gems-form .gems-form__submit {
	width: 100%;
	height: 44px;
	margin-top: 32px;
	border: var(--gems-line) solid var(--gems-ink);
	border-radius: 0;
	background: var(--wp--preset--color--accent-7, #e6daa8);
	color: var(--gems-ink);
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 17px;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.gems-form .gems-form__submit:hover {
	background: var(--gems-ink);
	color: var(--gems-cream);
}

/* ==========================================================================
   All businesses (/gems/)
   ========================================================================== */

.gems-archive .gems-archive__head {
	flex-direction: column;
	min-height: 260px;
	padding: 60px var(--gems-pad);
}

.gems-archive__head > .gems-archive__title {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.04em;
}

.gems-archive__head > .gems-subtitle {
	margin: 12px 0 0;
}

main.gems-archive > .gems-archive__query {
	margin: 0;
	border-top: var(--gems-line) solid var(--gems-ink);
}

.gems-archive__query .gems-gem-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.gems-gem-grid > li {
	display: flex;
	margin: 0;
	border-right: var(--gems-line) solid var(--gems-ink);
	border-bottom: var(--gems-line) solid var(--gems-ink);
}

.gems-gem-grid > li:nth-child(3n) {
	border-right: 0;
}

.gems-gem-grid .gems-gem-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
}

.gems-gem-card > * {
	margin: 0;
}

.gems-gem-card > .gems-gem-card__image {
	border-bottom: var(--gems-line) solid var(--gems-ink);
}

.gems-gem-card__image a {
	display: block;
}

.gems-gem-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.gems-gem-card > .gems-gem-card__body {
	flex: 1 1 auto;
	padding: 25px;
}

.gems-gem-card__body > * {
	margin: 0;
}

.gems-gem-card__body > .gems-gem-card__title {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.4;
	text-transform: uppercase;
}

.gems-gem-card__title a {
	color: inherit;
	text-decoration: none;
}

.gems-gem-card__title a:hover {
	text-decoration: underline;
}

.gems-gem-card__body > .gems-gem-card__excerpt {
	margin-top: 12px;
}

.gems-archive__query > .gems-archive__pagination {
	margin: 0;
	padding: 32px 20px;
}

.gems-archive__query .gems-archive__empty {
	margin: 0;
	padding: 80px 20px;
}

/* ==========================================================================
   Book Now — services list
   ========================================================================== */

.gems-services.wp-block-group {
	padding: 115px clamp(20px, 6.39vw, 92px) 113px;
}

.gems-services > .gems-services__title {
	margin: 0;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
}

.gems-services > .gems-services__list {
	margin: 62px 0 0;
	border-bottom: var(--gems-line) solid rgba(36, 26, 0, 0.45);
}

.gems-services__list > .gems-service {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 344px) auto;
	align-items: start;
	min-height: 129px;
	margin: 0;
	padding: 32px 0;
	border-top: var(--gems-line) solid rgba(36, 26, 0, 0.45);
	box-sizing: border-box;
}

.gems-service > .gems-service__name {
	margin: 0;
	padding-right: 24px;
	font-size: 24px;
	line-height: 1.33;
	letter-spacing: 0;
}

.gems-service > .gems-service__meta {
	margin: 0;
}

.gems-service__meta > p {
	margin: 0;
	font-size: 16px;
	line-height: 2;
}

.gems-service > .gems-service__action {
	margin: 0;
	justify-content: flex-end;
}

.gems-service__action .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 151px;
	min-height: 40px;
	padding: 0 20px;
	box-sizing: border-box;
	font-size: 16px;
}

/* ==========================================================================
   Business pages (/gems/{business}/ — post type from the gems-core plugin)
   ========================================================================== */

main.gems-biz > * {
	margin-block: 0;
}

.gems-biz-hero .gems-biz-hero__text {
	display: flex;
	flex-direction: column;
	min-height: 559px;
	padding: 25px;
	box-sizing: border-box;
}

.gems-biz-hero__text > * {
	margin: 0;
}

.gems-biz-hero__text > .gems-biz-hero__eyebrow a {
	text-decoration: none;
}

.gems-biz-hero__text > .gems-biz-hero__eyebrow a:hover {
	text-decoration: underline;
}

.gems-biz-hero__text > .gems-biz-hero__title {
	max-width: 528px;
	margin-top: 32px;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.04em;
}

.gems-biz-hero__text > .gems-biz-hero__excerpt {
	max-width: 500px;
	margin-top: 17px;
}

.gems-biz-hero__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.gems-media-col > .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.gems-media-col > .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gems-biz-body.wp-block-group {
	padding: 70px var(--gems-pad) 90px;
	border-top: var(--gems-line) solid var(--gems-ink);
}

.gems-biz-body .gems-biz-content {
	max-width: 1100px;
	margin: 0 auto;
}

.gems-biz-body .gems-biz-content > *,
.gems-biz-body .gems-biz__layout > * {
	margin-block: 0;
}

.gems-biz-body .gems-biz__layout > * + * {
	margin-top: 48px;
}

.gems-biz__layout > p.gems-biz__intro {
	max-width: 760px;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	letter-spacing: -0.02em;
}

.gems-biz-body .wp-block-columns.gems-biz__details {
	gap: var(--gems-line);
	border: var(--gems-line) solid var(--gems-ink);
	background: var(--gems-ink);
}

.gems-biz__details > .gems-biz__card {
	padding: 32px;
	background: var(--gems-cream);
}

.gems-biz__card > * {
	margin: 0;
}

.gems-biz__card > * + * {
	margin-top: 12px;
}

.gems-biz__card > .wp-block-heading {
	font-size: var(--wp--preset--font-size--large);
}

.gems-biz__card .wp-block-button__link {
	font-size: 16px;
	padding: 0.75rem 1.5rem;
}

.gems-biz__card > .wp-block-social-links {
	margin-top: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

div.gems-footer {
	padding-top: var(--gems-line);
}

.gems-footer .gems-footer__col {
	min-height: 227px;
	padding: 50px;
	box-sizing: border-box;
}

.gems-footer .gems-footer__col > * {
	margin: 0;
}

.gems-footer .gems-footer__nav {
	font-weight: 400;
	letter-spacing: 0;
}

.gems-footer .gems-footer__nav .wp-block-navigation-item__content {
	padding: 0;
}

.gems-footer ul.gems-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gems-footer__links > li + li {
	margin-top: 8px;
}

.gems-footer a {
	color: var(--gems-ink);
	text-decoration: none;
}

.gems-footer a:hover {
	text-decoration: underline;
}

.gems-footer .gems-footer__copy {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.gems-footer__copy > p {
	line-height: 1.5;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet landscape */
@media (max-width: 1023px) {
	.gems-cards > .gems-card.wp-block-group {
		grid-template-columns: 72px minmax(0, 1fr);
		column-gap: 24px;
		min-height: 0;
		padding: 32px 28px;
	}

	.gems-card .wp-block-image.gems-card__icon,
	.gems-card .gems-card__icon img {
		width: 72px;
		height: 72px;
	}

	.gems-who .gems-who__text {
		min-height: 0;
		padding: 48px 32px;
	}

	.gems-grid .gems-stat {
		min-height: 320px;
	}

	.gems-grid .gems-testimonial {
		min-height: 0;
		padding: 48px 32px;
	}

	.gems-footer .gems-footer__col {
		padding: 40px 32px;
	}
}

/* Columns stack (WordPress core stacks columns below 782px) */
@media (max-width: 781px) {
	body.admin-bar {
		--gems-sticky-top: 46px;
	}

	.gems-header__bar > .wp-block-column {
		min-height: 64px;
		padding: 0 10px;
	}

	.gems-header .gems-nav {
		--wp--style--block-gap: 24px;
	}

	.gems-explore .gems-overlay {
		min-height: clamp(420px, 120vw, 640px);
	}

	.gems-overlay .gems-overlay__text {
		padding: 28px 20px 0;
	}

	.gems-media-col > .wp-block-image.gems-fill {
		position: static;
	}

	.gems-who .gems-media-col .gems-fill img {
		aspect-ratio: 1;
	}

	.gems-location .gems-media-col .gems-fill img {
		aspect-ratio: 720 / 559;
	}

	.gems-location .gems-location__text {
		min-height: 0;
		padding: 24px 20px 40px;
	}

	.gems-locations .gems-locations__head,
	.gems-testimonials .gems-section-head {
		min-height: 120px;
	}

	.gems-stats .gems-stats__head {
		min-height: 0;
		padding: 56px 20px 40px;
	}

	.gems-insta .gems-insta__head {
		min-height: 0;
		padding: 48px 20px 28px;
	}

	.gems-insta__track > .wp-block-image.gems-insta__item {
		flex-basis: 72%;
	}

	.gems-grid .gems-newsletter__brand,
	.gems-grid .gems-newsletter__form {
		min-height: 0;
		padding: 40px 20px;
	}

	.gems-grid .gems-newsletter__brand {
		gap: 40px;
	}

	form.gems-form {
		margin-top: 32px;
		padding: 0;
	}

	.gems-footer .gems-footer__col {
		min-height: 0;
	}

	.gems-biz-hero .gems-biz-hero__text {
		min-height: 0;
		padding: 24px 20px 40px;
	}

	.gems-media-col > .wp-block-post-featured-image {
		position: static;
	}

	.gems-media-col > .wp-block-post-featured-image img {
		aspect-ratio: 720 / 559;
	}

	.gems-biz-body.wp-block-group {
		padding: 48px 20px 64px;
	}

	.gems-services.wp-block-group {
		padding-top: 64px;
		padding-bottom: 72px;
	}

	.gems-services > .gems-services__list {
		margin-top: 40px;
	}

	.gems-services__list > .gems-service {
		grid-template-columns: minmax(0, 1fr) auto;
		row-gap: 8px;
		min-height: 0;
		padding: 24px 0;
	}

	.gems-service > .gems-service__name {
		grid-column: 1 / -1;
		padding-right: 0;
		font-size: 22px;
	}

	.gems-service > .gems-service__action {
		align-self: center;
	}

	.gems-carousel__arrow {
		width: 44px;
		height: 44px;
	}

	.gems-carousel__arrow--prev {
		left: 12px;
	}

	.gems-carousel__arrow--next {
		right: 12px;
	}
}

/* Tablet: business cards 2-up */
@media (min-width: 600px) and (max-width: 1023px) {
	.gems-archive__query .gems-gem-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gems-gem-grid > li:nth-child(3n) {
		border-right: var(--gems-line) solid var(--gems-ink);
	}

	.gems-gem-grid > li:nth-child(2n) {
		border-right: 0;
	}
}

/* Tablet portrait: 4-up grids become 2 × 2 */
@media (min-width: 600px) and (max-width: 781px) {
	body .wp-block-columns.gems-grid-4:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: calc(50% - 0.5px) !important;
		flex-grow: 1;
	}
}

/* Phones */
@media (max-width: 599px) {
	body .wp-block-columns.gems-header__bar > .gems-header__logo,
	body .wp-block-columns.gems-header__bar > .gems-header__account {
		flex-basis: 40% !important;
	}

	body .wp-block-columns.gems-header__bar > .gems-header__nav {
		flex-basis: 20% !important;
	}

	.gems-header .gems-account {
		gap: 14px;
	}

	.gems-header .gems-login a {
		gap: 8px;
	}

	.gems-header .gems-login a::before {
		flex-basis: 24px;
		width: 24px;
		height: 24px;
	}

	.gems-archive__query .gems-gem-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gems-gem-grid > li {
		border-right: 0;
	}

	.gems-archive .gems-archive__head {
		min-height: 0;
		padding: 48px 20px;
	}

	.gems-cards > .gems-card.wp-block-group {
		grid-template-columns: 56px minmax(0, 1fr);
		column-gap: 20px;
		padding: 28px 20px;
	}

	.gems-card .wp-block-image.gems-card__icon,
	.gems-card .gems-card__icon img {
		width: 56px;
		height: 56px;
	}

	.gems-who .gems-who__text {
		padding: 40px 20px;
	}

	.gems-grid .gems-stat {
		min-height: 0;
		padding: 40px 20px;
	}

	.gems-grid .gems-testimonial {
		padding: 40px 20px;
	}

	.gems-footer .gems-footer__col {
		padding: 32px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gems-marquee__track.is-animated {
		animation: none;
	}
}

/* ==========================================================================
   Business without a photo yet: branded "Photo coming soon" tile
   (output by gems_featured_image_fallback() in functions.php)
   ========================================================================== */
figure.wp-block-post-featured-image.gems-no-photo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 0;
	background-color: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

figure.wp-block-post-featured-image.gems-no-photo > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

figure.wp-block-post-featured-image.gems-no-photo img {
	display: block;
	width: 38%;
	max-width: 220px;
	height: auto;
	aspect-ratio: 462 / 339;
	object-fit: contain;
}

.gems-no-photo .gems-no-photo__label {
	font-family: var(--wp--preset--font-family--space-grotesk, inherit);
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gems-gem-card > figure.gems-no-photo,
.gems-gem-card > figure.gems-no-photo > a {
	aspect-ratio: 4 / 3;
	height: auto;
}

@media (max-width: 781px) {
	.gems-media-col > figure.wp-block-post-featured-image.gems-no-photo {
		aspect-ratio: 720 / 559;
	}

	figure.wp-block-post-featured-image.gems-no-photo img {
		aspect-ratio: 462 / 339;
	}
}
