/* Jessie Jean — theme styles that theme.json can't express. Keep this file small. */

/* ---------- Labels (small uppercase eyebrow text) ---------- */
.is-style-jj-label,
.jj-label {
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.3em;
	text-transform: uppercase;
	font-weight: 400;
	line-height: 1.4;
}

/* ---------- Header ---------- */
.jj-header-overlay {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 20;
}
.jj-header-overlay a,
.jj-header-overlay .wp-block-navigation__responsive-container-open {
	color: #FFFFFF;
}
.jj-header .jj-book a,
.jj-header-overlay .jj-book a {
	display: inline-block;
	padding: 0.85rem 0.25rem;
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 400;
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

/* Full-screen menu: large light links on white */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.75rem clamp(1.25rem, 4vw, 3.5rem) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: clamp(4rem, 12vh, 8rem);
	padding-left: clamp(0rem, 6vw, 6rem);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--sans);
	font-size: clamp(2.25rem, 4.5vw, 3.5rem);
	font-weight: 300;
	letter-spacing: -0.01em;
	text-transform: none;
	line-height: 1.15;
	color: var(--wp--preset--color--ink);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--emerald);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.6rem;
}

/* ---------- Hero ---------- */
.jj-hero {
	position: relative;
	min-height: min(100svh, 980px);
	min-height: max(560px, min(100svh, 980px));
	overflow: hidden;
	background: #2A2620;
	display: flex;
	align-items: center;
	justify-content: center;
}
.jj-hero__slides {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	max-width: none !important;
}
.jj-hero__slides > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1.4s ease;
}
.jj-hero__slides > .wp-block-image:first-child,
.jj-hero__slides > .wp-block-image.is-active {
	opacity: 1;
}
.jj-hero.is-rotating .jj-hero__slides > .wp-block-image:first-child:not(.is-active) {
	opacity: 0;
}
.jj-hero__slides img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.jj-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(18, 20, 24, 0.30);
	pointer-events: none;
}
.jj-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #FFFFFF;
}
.jj-hero__content .wp-block-image {
	margin-inline: auto;
}
.jj-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1.5rem;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 0.25rem;
}
.jj-hero__dots button {
	width: 44px;
	height: 44px;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.jj-hero__dots button span {
	display: block;
	width: 28px;
	height: 1px;
	background: #FFFFFF;
	opacity: 0.45;
	transition: opacity 0.4s ease;
}
.jj-hero__dots button[aria-current="true"] span {
	opacity: 1;
}

/* ---------- Image tiles ---------- */
.jj-tiles {
	gap: 6px !important;
	padding: 6px !important;
}
.jj-tiles > .wp-block-column {
	margin: 0 !important;
}
.jj-tile {
	position: relative;
	overflow: hidden;
}
.jj-tile .wp-block-cover__image-background {
	transition: transform 0.9s ease;
}
.jj-tile:hover .wp-block-cover__image-background {
	transform: scale(1.03);
}
.jj-tile .wp-block-cover__inner-container {
	position: static;
}
.jj-tile a {
	color: #FFFFFF;
	font-size: 0.875rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	font-weight: 400;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
/* whole tile is the link target */
.jj-tile a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ---------- Services list ---------- */
.jj-service {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-block: 1.6rem 1.7rem;
}
.jj-service:first-child {
	border-top: 0;
	padding-top: 0;
}
.jj-service .jj-service-name {
	font-size: clamp(1.75rem, 2.6vw, 2.25rem);
	font-weight: 300;
	letter-spacing: -0.01em;
}
.jj-consult {
	font-style: italic;
	color: var(--wp--preset--color--ink);
	margin-top: 1.5rem !important;
}
.jj-service h3 {
	margin: 0;
}
.jj-service p {
	margin: 0;
}

/* ---------- Product cards ---------- */
.jj-product-photo {
	aspect-ratio: 4 / 5;
	display: flex !important;
	align-items: center;
	justify-content: center;
}
.jj-product a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.jj-product {
	position: relative;
}

/* ---------- Reviews ---------- */
.jj-review.wp-block-quote {
	border: 0;
	padding: 0;
	margin: 0;
	text-align: center;
}
.jj-review.wp-block-quote p {
	font-family: var(--wp--preset--font-family--sans);
	font-style: italic;
	font-weight: 300;
	font-size: 1.375rem;
	line-height: 1.4;
}
.jj-review.wp-block-quote cite {
	display: block;
	margin-top: 1rem;
	font-style: normal;
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--stone);
}

/* ---------- Email signup ---------- */
.jj-signup-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}
.jj-signup-form input[type="email"] {
	flex: 1 1 260px;
	height: 52px;
	box-sizing: border-box;
	border: 1px solid #C9C2B6;
	background: #FFFFFF;
	padding: 0 18px;
	font: inherit;
	font-size: 15px;
	color: var(--wp--preset--color--ink);
	border-radius: 0;
}
.jj-signup-form input[type="email"]:focus {
	outline: 2px solid var(--wp--preset--color--emerald);
	outline-offset: 2px;
}
.jj-signup-form button {
	flex: 0 0 auto;
	height: 52px;
	padding: 0 32px;
	background: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--ink);
	color: #FFFFFF;
	font: inherit;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 0;
}
.jj-signup-form button:hover {
	background: var(--wp--preset--color--emerald);
	border-color: var(--wp--preset--color--emerald);
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Footer ---------- */
.jj-footer {
	border-top: 4px solid var(--wp--preset--color--ink);
}
.jj-footer p {
	margin: 0;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	.jj-hero__slides > .wp-block-image,
	.jj-tile .wp-block-cover__image-background {
		transition: none;
	}
}

html {
	scroll-behavior: smooth;
}

.jj-hero__tag {
	text-transform: uppercase;
	letter-spacing: 0.4em;
	font-weight: 400;
}
.jj-btn-light .wp-block-button__link {
	border-color: #FFFFFF;
	color: #FFFFFF;
}
.jj-btn-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--emerald);
	border-color: var(--wp--preset--color--emerald);
}
.jj-signup {
	border-top: 1px solid var(--wp--preset--color--line);
}
.jj-hero .wp-block-image.aligncenter img {
	max-width: 82vw;
	height: auto;
}

/* Header spacing from the screen edges */
.jj-header-overlay > .wp-block-group,
.jj-header {
	padding-left: clamp(1.25rem, 4vw, 3.5rem) !important;
	padding-right: clamp(1.25rem, 4vw, 3.5rem) !important;
}

/* Phones: shorter tiles, two products per row */
@media (max-width: 781px) {
	.jj-tile {
		min-height: 420px !important;
	}
	.wp-block-columns.is-not-stacked-on-mobile.jj-products {
		flex-wrap: wrap !important;
		gap: 1.5rem 1rem !important;
	}
	.wp-block-columns.is-not-stacked-on-mobile.jj-products > .wp-block-column {
		flex-basis: calc(50% - 0.5rem) !important;
		flex-grow: 0 !important;
	}
}

/* ---------- Hero video ---------- */
.jj-hero__video {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	max-width: none !important;
	z-index: 0;
}
.jj-hero__video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.jj-hero::after {
	background: rgba(18, 20, 24, 0.22);
	z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
	.jj-hero__video video {
		visibility: hidden;
	}
	.jj-hero {
		background: #2A2620 url("../images/hero-poster.webp") center / cover no-repeat;
	}
}
@media (max-width: 781px) {
	.jj-hero__video video {
		object-position: 72% 50%;
	}
}

/* ---------- Product videos (must-haves) ---------- */
.jj-product-video {
	margin: 0 !important;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #E0DEDF;
}
.jj-product-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (max-width: 781px) {
	.wp-block-columns.is-not-stacked-on-mobile.jj-products {
		justify-content: center;
	}
}
.jj-product .has-lead-font-size {
	line-height: 1.3;
}
@media (min-width: 782px) {
	#services .wp-block-column:first-child {
		position: sticky;
		top: 6rem;
		align-self: flex-start;
	}
}
@media (max-width: 781px) {
	#services .wp-block-columns {
		gap: 3.5rem !important;
	}
}

/* Tile labels: bolder and readable on light photos */
.jj-tile a {
	font-weight: 500;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 16px rgba(0, 0, 0, 0.45);
}
.jj-tile::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(18, 20, 24, 0.38), rgba(18, 20, 24, 0));
	pointer-events: none;
	z-index: 0;
}
.jj-tile .wp-block-cover__inner-container {
	z-index: 2;
}

/* ---------- Tile labels: Hermès-style white box + scroll glide ---------- */
.jj-tile::after {
	display: none;
}
.jj-tile .wp-block-cover__inner-container {
	position: static;
}
.jj-tile p {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 40px;
	margin: 0;
	z-index: 2;
}
.jj-tile a {
	display: inline-block;
	background: #FFFFFF;
	color: var(--wp--preset--color--ink) !important;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.28em;
	text-shadow: none;
	padding: 9px 13px 9px 17px;
	transition: background-color 0.35s ease, color 0.35s ease;
}
.jj-tile a::after {
	content: none;
}
.jj-tile a:hover,
.jj-tile a:focus-visible {
	background: var(--wp--preset--color--ink);
	color: #FFFFFF !important;
}

.jj-tile p {
	will-change: transform;
}

/* ===================== Editorial spread layout ===================== */
.jj-label { color: var(--wp--preset--color--ink); }

/* Services spread */
.jj-spread-cols { gap: 0 !important; margin: 0 !important; }
.jj-spread-cols > .wp-block-column { margin: 0 !important; }
#services .wp-block-column:first-child { position: static; }
.jj-spread-img { margin: 0 !important; height: 100%; }
.jj-spread-img img { width: 100%; height: 640px; object-fit: cover; object-position: 50% 55%; display: block; }
.jj-spread-text {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 64px 32px; gap: 0;
}
.jj-spread-text > * { margin-block: 0 !important; }
.jj-spread-text h2 { margin-top: 24px !important; margin-bottom: 24px !important; font-size: clamp(2.2rem, 3vw, 2.75rem); }
.jj-svc { font-size: 1.25rem; font-weight: 300; margin: 0 !important; line-height: 1.75; }
.jj-spread-text .jj-consult { margin-top: 24px !important; color: var(--wp--preset--color--stone); font-size: 0.95rem; }
.jj-spread-text .wp-block-buttons { margin-top: 24px !important; }
@media (max-width: 781px) { .jj-spread-img img { height: 420px; } }

/* Tight boxed buttons (match the tile labels) */
.jj-box .wp-block-button__link,
.jj-box-white .wp-block-button__link {
	padding: 9px 13px 9px 17px; font-size: 12px; letter-spacing: 0.28em; line-height: 1.4;
}
.jj-box-white .wp-block-button__link { background: #FFFFFF; color: var(--wp--preset--color--ink); border-color: #FFFFFF; }
.jj-box-white .wp-block-button__link:hover { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #FFFFFF; }

/* Shop */
.jj-prod-name { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; margin: 0; }
.jj-prod-name a { color: var(--wp--preset--color--ink); }
.jj-product { text-align: center; }

/* Book */
.jj-book-cover .wp-block-cover__inner-container { padding-bottom: 56px; }
.jj-reserve { color: #FFFFFF; font-size: 1.375rem; font-weight: 300; margin-bottom: 20px !important; }

/* Reviews: one at a time */
.jj-reviews .jj-review { display: none; }
.jj-reviews .jj-review:first-child,
.jj-reviews.is-rotating .jj-review.is-active { display: block; animation: jj-fade 0.9s ease; }
.jj-reviews.is-rotating .jj-review:first-child:not(.is-active) { display: none; }
.jj-reviews .jj-review p { font-size: 1.5rem; }
@keyframes jj-fade { from { opacity: 0; } to { opacity: 1; } }

/* The Letter */
.jj-letter { border-top: 0; }
.jj-signup-form { align-items: flex-end; gap: 16px; }
.jj-signup-form input[type="email"] {
	border: 0; border-bottom: 1px solid var(--wp--preset--color--ink); background: transparent; height: 44px; padding: 0 2px;
}
.jj-signup-form button {
	height: auto; background: transparent; color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--ink);
	padding: 9px 13px 9px 17px; font-size: 12px; letter-spacing: 0.28em;
}
.jj-signup-form button:hover { background: var(--wp--preset--color--ink); color: #FFFFFF; }

/* Footer */
.jj-footer { background: #FFFFFF; text-align: center; }
.jj-footer-links { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.jj-copyright { font-size: 11px; color: #8A8F98; margin-top: 10px !important; }

/* ---------- Footer spacing (match prototype) ---------- */
.jj-footer { padding-top: 76px !important; padding-bottom: 40px !important; }
.jj-footer > * { margin-block: 0 !important; }
.jj-footer > .wp-block-image { margin-bottom: 56px !important; }
.jj-footer > p.has-small-font-size { line-height: 2; margin-bottom: 36px !important; }
.jj-footer > .jj-footer-links { margin-bottom: 34px !important; }
.jj-footer > .jj-copyright { margin-top: 0 !important; }
@media (max-width: 781px) {
  .jj-footer { padding-top: 60px !important; }
  .jj-footer > .jj-footer-links { gap: 14px 22px; }
}

/* ---------- Services spread: shorter crop, less white ---------- */
#services .jj-spread-img img { height: 480px; object-position: 50% 42%; }
@media (max-width: 781px) { #services .jj-spread-cols { gap: 0 !important; } }
#services .jj-spread-text { padding: 40px 32px !important; }
#services .jj-spread-text h2 { margin-top: 18px !important; margin-bottom: 18px !important; }
#services .jj-spread-text .jj-consult,
#services .jj-spread-text .wp-block-buttons { margin-top: 20px !important; }
@media (max-width: 781px) {
  #services .jj-spread-img img { height: 340px; }
  #services .jj-spread-text { padding: 44px 24px 52px !important; }
}

/* ---------- Lock the header ON the hero (all screen sizes) ---------- */
.home .wp-site-blocks { position: relative; padding-top: 0 !important; }
.jj-header-overlay {
  position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 50 !important; background: transparent !important; margin: 0 !important;
}
.jj-header-overlay > .wp-block-group { background: transparent !important; }
.jj-header-overlay + *, .wp-site-blocks > .jj-header-overlay + main { margin-block-start: 0 !important; margin-top: 0 !important; }
.jj-header-overlay ~ main > .jj-hero:first-child,
main > .wp-block-group:first-child.jj-hero { margin-top: 0 !important; }

/* ---------- Phones: must-haves as a swipe row ---------- */
@media (max-width: 781px) {
  .wp-block-columns.is-not-stacked-on-mobile.jj-products {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -20px !important;
    padding-inline: 20px !important;
    scroll-padding-inline: 20px;
  }
  .wp-block-columns.is-not-stacked-on-mobile.jj-products::-webkit-scrollbar { display: none; }
  .wp-block-columns.is-not-stacked-on-mobile.jj-products > .wp-block-column {
    flex: 0 0 64% !important;
    max-width: 64%;
    scroll-snap-align: start;
  }
}
