/*
Theme Name: la'Seine
Theme URI: https://laseinehall.com/
Author: Rakur Studio
Description: Photo-first block theme for la'Seine Wedding Hall: full-screen slideshow, photo strip, masonry gallery with filters and lightbox. Works with the la'Seine Core plugin (Packages, Love stories, Gallery, Enquiry).
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: laseine
*/

/* ---------- Base ---------- */
:root { --lsn-header-h: 84px; }
html { scroll-behavior: smooth; }
img { height: auto; }
:where(a) { text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }
::selection { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--night); }
.wp-site-blocks > *, main.wp-block-group > * { margin-block-start: 0; margin-block-end: 0; }
.wp-block-heading { text-wrap: balance; }
.wp-block-heading em { color: var(--wp--preset--color--gold); }
[id] { scroll-margin-top: calc(var(--lsn-header-h) + 16px); }

.lsn-eyebrow { font-size: 0.75rem !important; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; }
.lsn-eyebrow a { color: inherit; text-decoration: none; }
.lsn-link, .lsn-link a, a.lsn-link, .wp-block-read-more.lsn-link {
	font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; text-decoration: none;
	color: var(--wp--preset--color--ivory);
}
.lsn-link a:hover, a.lsn-link:hover, .wp-block-read-more.lsn-link:hover { color: var(--wp--preset--color--gold); }

/* ---------- Header ---------- */
.wp-site-blocks > .wp-block-template-part:has(> .lsn-header) { display: contents; }
.lsn-header {
	position: sticky; top: 0; z-index: 50;
	margin-inline: auto; width: 100%; max-width: 100%; box-sizing: border-box;
	background: transparent;
	transition: max-width 0.45s cubic-bezier(.2, .8, .2, 1), top 0.45s cubic-bezier(.2, .8, .2, 1), background-color 0.35s ease, box-shadow 0.45s ease;
}
.admin-bar .lsn-header { top: var(--wp-admin--admin-bar--height, 32px); }
body:not(.home) .lsn-header { background: var(--wp--preset--color--night); }
.lsn-header.is-floating {
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 12px) !important;
	max-width: min(1320px, calc(100% - 24px));
	background-color: rgba(21, 18, 15, 0.78) !important;
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	border: 1px solid rgba(245, 239, 230, 0.12);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
	padding-left: clamp(1rem, 2.5vw, 1.75rem) !important;
	padding-right: clamp(0.75rem, 1.5vw, 1rem) !important;
	padding-top: 0.6rem !important; padding-bottom: 0.6rem !important;
}
.lsn-header.is-floating > .alignwide { max-width: none; }
html.has-modal-open .lsn-header.is-floating { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: var(--wp--preset--color--night) !important; }
.lsn-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--ivory); }
.lsn-header .wp-block-navigation a:hover, .lsn-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--gold); }
.lsn-header .wp-block-navigation, .lsn-header .wp-block-buttons { flex-shrink: 0; white-space: nowrap; }
.lsn-header .wp-block-button.is-style-outline .wp-block-button__link { border-color: rgba(245, 239, 230, 0.55); }
.lsn-wordmark a { color: var(--wp--preset--color--ivory); text-decoration: none; letter-spacing: 0.02em; white-space: nowrap; }
.lsn-wordmark a:hover { color: var(--wp--preset--color--gold); }
/* Home: the header floats over the full-screen slideshow. */
.home .lsn-main--home { margin-top: calc(-1 * var(--lsn-header-h)) !important; }

/* Mobile menu overlay */
.lsn-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem 1.5rem 2rem; }
.lsn-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 4.5rem; }
.lsn-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 0 !important; width: 100%; }
.lsn-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--umber); }
.lsn-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display); font-size: 2.25rem; letter-spacing: 0; text-transform: none; padding: 0.7rem 0 !important; display: block; width: 100%;
}
.lsn-header .wp-block-navigation__responsive-container-open svg, .lsn-header .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

/* ---------- Page heads (inner pages) ---------- */
.lsn-page-head > * { max-width: var(--wp--style--global--wide-size) !important; }
.lsn-page-head .wp-block-post-title, .lsn-page-head h1 { margin-top: 0.4rem; }
.lsn-page-head p:not(.lsn-eyebrow) { max-width: 44rem; }

/* ---------- Facts ---------- */
.lsn-facts { gap: 2.5rem !important; border-top: 1px solid var(--wp--preset--color--line); padding-top: 1.75rem; margin-top: 2.25rem !important; }
.lsn-fact { gap: 0.1rem !important; }
.lsn-fact p { margin: 0; }
.lsn-fact__num { font-family: var(--wp--preset--font-family--display); font-size: 3rem; line-height: 1; color: var(--wp--preset--color--gold); }

/* ---------- Venue photos ---------- */
.lsn-venue__media { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
.lsn-venue__media .wp-block-image { margin: 0; position: relative; overflow: hidden; height: 256px; }
.lsn-venue__media .wp-block-image.lsn-venue__tall { grid-row: span 2; height: 520px; }
.lsn-venue__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.lsn-venue__media .wp-block-image:hover img { transform: scale(1.04); }
.lsn-venue__media figcaption, .lsn-strip figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 2.5rem 1rem 0.9rem !important;
	font-size: 0.6875rem !important; letter-spacing: 0.16em; text-transform: uppercase; text-align: left !important; color: var(--wp--preset--color--ivory) !important;
	background: linear-gradient(to top, rgba(21, 18, 15, 0.75), rgba(21, 18, 15, 0)) !important;
}

/* ---------- Package cards (photo with text over it) ---------- */
.lsn-pcard, .lsn-scard { position: relative; overflow: hidden; isolation: isolate; height: 100%; background: var(--wp--preset--color--umber); }
.lsn-pcard .wp-block-post-featured-image, .lsn-scard .wp-block-post-featured-image { margin: 0; height: 100%; }
.lsn-pcard .wp-block-post-featured-image img, .lsn-scard .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.lsn-pcard .wp-block-post-featured-image { aspect-ratio: 5 / 4; }
.lsn-scard .wp-block-post-featured-image { aspect-ratio: 3 / 4; }
.lsn-pcard:hover img, .lsn-scard:hover img { transform: scale(1.04); }
.lsn-pcard__body {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	padding: clamp(1.5rem, 3vw, 2.5rem); box-sizing: border-box;
	background: linear-gradient(to top, rgba(21, 18, 15, 0.94) 0%, rgba(21, 18, 15, 0.6) 55%, rgba(21, 18, 15, 0) 100%);
}
.lsn-pcard__body > * { margin: 0 !important; }
.lsn-pcard .wp-block-post-title a, .lsn-scard .wp-block-post-title a { color: var(--wp--preset--color--ivory); text-decoration: none; }
.lsn-pcard .wp-block-post-title a::after, .lsn-scard .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.lsn-pcard__meta { color: var(--wp--preset--color--sand); font-size: var(--wp--preset--font-size--small); }
.lsn-pcard__price { color: var(--wp--preset--color--gold); font-size: var(--wp--preset--font-size--small); letter-spacing: 0.04em; }
.lsn-pcard__meta:empty, .lsn-pcard__price:empty { display: none; }
.lsn-pcard .wp-block-read-more { position: relative; z-index: 2; margin-top: 0.9rem !important; }
.lsn-scard__title {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; z-index: 1;
	padding: 4rem 1.25rem 1.1rem; background: linear-gradient(to top, rgba(21, 18, 15, 0.85), rgba(21, 18, 15, 0));
}
.wp-block-post-template.is-layout-grid > li { display: flex; }
.wp-block-post-template.is-layout-grid > li > * { flex: 1; }

/* Journal cards */
.lsn-post-card .wp-block-post-title a { color: var(--wp--preset--color--ivory); text-decoration: none; }
.lsn-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--gold); }
.lsn-post-card .wp-block-post-featured-image { overflow: hidden; margin: 0; }
.lsn-post-card .wp-block-post-featured-image img { transition: transform 0.8s ease; }
.lsn-post-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }

/* Event type links */
.lsn-term-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.75rem; }
.lsn-term-links a { padding: 0.7rem 1.1rem; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--ivory); text-decoration: none; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.lsn-term-links a:hover { border-color: var(--wp--preset--color--sand); }
.lsn-term-links a[aria-current="page"] { background: var(--wp--preset--color--ivory); color: var(--wp--preset--color--night); border-color: var(--wp--preset--color--ivory); }

/* ---------- Single package / story ---------- */
.lsn-single-hero .wp-block-cover__inner-container > * { max-width: var(--wp--style--global--wide-size); margin-left: auto !important; margin-right: auto !important; }
.lsn-single-hero .wp-block-post-title { font-size: var(--wp--preset--font-size--display); line-height: 0.98; margin-top: 0.5rem; }
.lsn-story-meta p { margin: 0; }
.lsn-story-meta p:empty { display: none; }
.lsn-story-meta p + p::before { content: "·"; margin-right: 1.5rem; color: var(--wp--preset--color--gold); }
.lsn-price-note { font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; line-height: 1.3; }
.lsn-inclusions { line-height: 2.1; color: var(--wp--preset--color--sand); }
.lsn-prose { color: var(--wp--preset--color--sand); }
.lsn-prose h2, .lsn-prose h3, .lsn-prose strong { color: var(--wp--preset--color--ivory); }
.lsn-prose h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.lsn-story-body .wp-block-gallery img { object-fit: cover; }

/* ---------- Enquiry form ---------- */
.lsn-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.75rem; }
.lsn-form--compact { grid-template-columns: 1fr; }
.lsn-form p { margin: 0; }
.lsn-form__field { display: flex; flex-direction: column; gap: 0.35rem; }
.lsn-form label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--sand); }
.lsn-form input, .lsn-form select {
	height: 50px; border: 0; border-bottom: 1px solid #6B5F52; border-radius: 0; padding: 0 0.1rem;
	font: inherit; font-size: 1.0625rem; background: transparent; color: var(--wp--preset--color--ivory); width: 100%; box-sizing: border-box;
	color-scheme: dark;
}
.lsn-form select option { background: var(--wp--preset--color--night); color: var(--wp--preset--color--ivory); }
.lsn-form input:focus, .lsn-form select:focus { outline: none; border-bottom: 2px solid var(--wp--preset--color--gold); }
.lsn-form__actions, .lsn-form__status { grid-column: 1 / -1; }
.lsn-form__submit {
	width: 100%; height: 56px; border: 0; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--night);
	font: inherit; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; margin-top: 0.5rem;
}
.lsn-form__submit:hover { background: var(--wp--preset--color--ivory); }
.lsn-form__submit:disabled { opacity: 0.6; cursor: wait; }
.lsn-form__status.is-success { color: #9FD8A8; }
.lsn-form__status.is-error { color: #F2A99A; }
.lsn-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lsn-contact-list { list-style: none; padding: 0; margin-top: 2rem; line-height: 2.2; }
.lsn-contact-list a { color: var(--wp--preset--color--ivory); text-decoration: none; border-bottom: 1px solid var(--wp--preset--color--line); }
.lsn-contact-list a:hover { color: var(--wp--preset--color--gold); }

/* ---------- Footer ---------- */
.lsn-footer__head { font-family: var(--wp--preset--font-family--body) !important; font-size: 0.75rem !important; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wp--preset--color--gold); margin-bottom: 1rem; }
.lsn-footer__list { list-style: none; padding: 0; margin: 0; line-height: 2.1; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--sand); }
.lsn-footer a { color: var(--wp--preset--color--sand); text-decoration: none; }
.lsn-footer a:hover { color: var(--wp--preset--color--ivory); }
.lsn-footer .lsn-wordmark a { color: var(--wp--preset--color--ivory); }

/* ---------- Page-load feedback ---------- */
.lsn-pageload {
	position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; height: 2px; z-index: 100000; pointer-events: none;
	background: var(--wp--preset--color--gold); transform-origin: left center; transform: scaleX(0); opacity: 0;
}
.lsn-pageload.is-active { opacity: 1; transform: scaleX(0.92); transition: transform 10s cubic-bezier(0.08, 0.82, 0.17, 1), opacity 0.2s ease; }
html.lsn-is-navigating, html.lsn-is-navigating a { cursor: progress; }
.wp-block-button__link.is-loading { pointer-events: none; }
.wp-block-button__link.is-loading::before {
	content: ""; display: inline-block; width: 0.95em; height: 0.95em; margin-right: 0.6em; vertical-align: -0.14em;
	border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lsn-spin 0.7s linear infinite;
}
@keyframes lsn-spin { to { transform: rotate(360deg); } }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	:root { --lsn-header-h: 72px; }
	.lsn-hide-mobile { display: none !important; }
	.lsn-form { grid-template-columns: 1fr; }
	.lsn-venue__media .wp-block-image { height: 180px; }
	.lsn-venue__media .wp-block-image.lsn-venue__tall { height: 368px; }
	.lsn-header.is-floating { top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px) !important; max-width: calc(100% - 16px); }
	.lsn-pcard .wp-block-post-featured-image { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.lsn-header, .lsn-pcard img, .lsn-scard img, .lsn-venue__media img { transition: none !important; }
	.lsn-pageload.is-active { transition: opacity 0.2s ease; }
}

/* Phones: love stories two per row. */
@media (max-width: 781px) {
	.lsn-stories .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.lsn-stories .lsn-scard__title { font-size: 1.25rem !important; padding: 3rem 0.85rem 0.8rem; }
}

/* Gallery shortcode inside a normal page: use the wide width, not the text column. */
.is-layout-constrained > .lsn-gallery, .is-layout-constrained > .lsn-gallery__notice { max-width: var(--wp--style--global--wide-size) !important; }
.single-lsn_story .lsn-stories-section { padding-top: var(--wp--preset--spacing--60) !important; }

/* Logo images */
.lsn-logo { display: inline-block; line-height: 0; flex-shrink: 0; }
.lsn-logo img { display: block; width: 168px; height: auto; transition: width 0.45s cubic-bezier(.2, .8, .2, 1), opacity 0.2s ease; }
.lsn-logo:hover img { opacity: 0.8; }
.lsn-header.is-floating .lsn-logo img { width: 148px; }
.lsn-logo--full img { width: 190px; }
.lsn-footer .lsn-logo--full { margin-bottom: 0.5rem; }
@media (max-width: 781px) { .lsn-header .lsn-logo img { width: 132px; } }

/* Stories without a photo yet: the emblem on a dark tile. */
.lsn-ph-emblem { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #2E2925, #1A1613 75%); }
.lsn-scard .lsn-ph-emblem img, .lsn-post-card .lsn-ph-emblem img { width: 38% !important; height: auto !important; object-fit: contain !important; opacity: 0.35; transform: none !important; }
.lsn-post-card .lsn-ph-emblem { aspect-ratio: 4 / 3; }
