/* ==========================================================================
   Front Page Styles — Lepapa Theme
   ========================================================================== */

.front-page {
	padding: 0;
	max-width: none;
}

/* ==========================================================================
   Fullpage panel system — desktop only (JS adds .fullpage-active)
   Scroll-snap on .site for gesture detection; translate3d on .front-page
   for fast, GPU-accelerated visual animation.
   ========================================================================== */

body.fullpage-active {
	overflow: hidden;
	height: 100vh;
}

/* .site is the scroll container — snaps through invisible spacers. */
body.fullpage-active .site {
	display: block;
	height: 100vh;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

body.fullpage-active .site::-webkit-scrollbar {
	display: none;
}

/* .front-page is fixed above everything — JS moves it via translate3d.
   pointer-events: none lets wheel/touch events fall through to .site
   so the browser's scroll-snap handles gesture detection natively. */
body.fullpage-active .front-page {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1;
	will-change: transform;
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
	pointer-events: none;
}

/* Re-enable clicks on interactive elements inside sections. */
body.fullpage-active .front-page a,
body.fullpage-active .front-page button {
	pointer-events: auto;
}

body.fullpage-active .front-page.no-transition {
	transition: none !important;
}

body.fullpage-active .front-page > section {
	height: 100vh !important;
	min-height: 100vh !important;
}

/* Spacers created by JS — invisible, provide snap targets. */
.fp-spacer {
	height: 100vh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

/* Footer sits behind .front-page. */
body.fullpage-active .site-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 0;
}

/* Fixed header across all panels. */
body.home .site-header--transparent {
	position: fixed;
	z-index: 200;
}

/* Keep header fixed on homepage when mobile menu is open
   (relative would scroll it off-screen if user is on a lower panel).
   Solid background + dark text to match the menu overlay. */
body.home.mobile-menu-open .site-header--transparent {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 201;
	background: var(--color-light-grey);
}

body.home.mobile-menu-open .site-header--transparent,
body.home.mobile-menu-open .site-header--transparent .header-action-btn,
body.home.mobile-menu-open .site-header--transparent .menu-toggle {
	color: var(--color-text);
}

body.home.mobile-menu-open .site-header--transparent .site-logo img {
	filter: brightness(0);
}

/* Header dark ↔ light toggle. */
.site-header--transparent.site-header--dark-section,
.site-header--transparent.site-header--dark-section .site-title a,
.site-header--transparent.site-header--dark-section .header-nav a,
.site-header--transparent.site-header--dark-section .header-action-btn,
.site-header--transparent.site-header--dark-section .menu-toggle {
	color: var(--color-black);
	transition: color 0.4s ease;
}

.site-header--transparent.site-header--dark-section .site-logo img {
	filter: brightness(0);
}

/* Entrance animations. */
body.fullpage-active .section-hero__overlay,
body.fullpage-active .section-arrivals__images,
body.fullpage-active .section-portrait__overlay,
body.fullpage-active .section-playlist__image,
body.fullpage-active .section-playlist__content {
	opacity: 0;
	transition: opacity 0.15s ease;
}

body.fullpage-active .section--active .section-hero__overlay,
body.fullpage-active .section--active .section-arrivals__images,
body.fullpage-active .section--active .section-portrait__overlay,
body.fullpage-active .section--active .section-playlist__image,
body.fullpage-active .section--active .section-playlist__content {
	opacity: 1;
}

/* Shared section link style
   ========================================================================== */

.section-link {
	font-family: var(--font-body);
	font-size: var(--font-size-accent);
	font-weight: 500;
	color: var(--color-white);
	text-decoration: underline;
	text-underline-offset: 3px;
	letter-spacing: 0.05em;
	transition: opacity var(--transition-fast);
}

.section-link:hover {
	opacity: 0.7;
	color: var(--color-white);
}

.section-link--dark {
	color: var(--color-black);
}

.section-link--dark:hover {
	color: var(--color-black);
}

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

.section-hero {
	position: relative;
	width: 100%;
	min-height: 100vh;
	height: 100vh;
	overflow: hidden;
}

.section-hero__image {
	width: 100%;
	height: 100%;
}

.section-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.section-hero__overlay {
	position: absolute;
	bottom: 80px;
	left: 0;
	right: 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.section-hero__title {
	font-family: var(--font-body);
	font-size: var(--font-size-h2);
	font-weight: 500;
	color: var(--color-white);
	letter-spacing: 0.05em;
	line-height: 1.2;
}

.section-hero__chevron {
	color: var(--color-white);
	margin-top: 8px;
}

/* New Arrivals Section
   ========================================================================== */

.section-arrivals {
	background-color: var(--color-bg-alt);
	min-height: 100vh;
	height: 100vh;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.section-arrivals__images {
	display: flex;
	justify-content: center;
	gap: 24px;
}

.section-arrivals__item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.section-arrivals__image {
	width: clamp(300px, 32.3vw, 465px);
	height: clamp(366px, 39vw, 560px);
	overflow: hidden;
}

.section-arrivals__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.section-arrivals__item-content {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
}

.section-arrivals__item-title {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-black);
	letter-spacing: 0.05em;
	line-height: 1.2;
}

/* Portrait Section
   ========================================================================== */

.section-portrait {
	position: relative;
	width: 100%;
	min-height: 100vh;
	height: 100vh;
	overflow: hidden;
}

.section-portrait__image {
	width: 100%;
	height: 100%;
}

.section-portrait__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.section-portrait__overlay {
	position: absolute;
	bottom: 80px;
	left: 0;
	right: 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.section-portrait__title {
	font-family: var(--font-body);
	font-size: var(--font-size-h2);
	font-weight: 500;
	color: var(--color-white);
	letter-spacing: 0.05em;
	line-height: 1.2;
}

/* Playlist Section
   ========================================================================== */

.section-playlist {
	background-color: var(--color-bg-alt);
	min-height: 100vh;
	height: 100vh;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.section-playlist__image {
	width: clamp(300px, 39vw, 560px);
	height: clamp(300px, 39vw, 560px);
	overflow: hidden;
	margin-bottom: 40px;
}

.section-playlist__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.section-playlist__content {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.section-playlist__title {
	font-family: var(--font-body);
	font-size: var(--font-size-h2);
	font-weight: 500;
	color: var(--color-black);
	letter-spacing: 0.05em;
	line-height: 1.2;
}

/* Responsive — Tablet
   ========================================================================== */

@media (max-width: 1024px) {
	.section-arrivals__images {
		gap: 20px;
	}
}

/* Responsive — Mobile (440px frame)
   ========================================================================== */

/* Mobile fullpage — pure CSS scroll-snap (no JS transforms).
   Make .site the scroll container, same as desktop. */
body.fullpage-mobile {
	overflow: hidden;
	height: 100vh;
}

body.fullpage-mobile .site {
	height: 100vh;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

body.fullpage-mobile .site::-webkit-scrollbar {
	display: none;
}

body.fullpage-mobile .front-page > section {
	scroll-snap-align: start;
	scroll-snap-stop: always;
	height: 100vh;
	min-height: 100vh;
}

body.fullpage-mobile .site-footer {
	scroll-snap-align: start;
}

/* Entrance animations — mobile reuses the same classes. */
body.fullpage-mobile .section-hero__overlay,
body.fullpage-mobile .section-arrivals__images,
body.fullpage-mobile .section-portrait__overlay,
body.fullpage-mobile .section-playlist__image,
body.fullpage-mobile .section-playlist__content {
	opacity: 0;
	transition: opacity 0.15s ease;
}

body.fullpage-mobile .section--active .section-hero__overlay,
body.fullpage-mobile .section--active .section-arrivals__images,
body.fullpage-mobile .section--active .section-portrait__overlay,
body.fullpage-mobile .section--active .section-playlist__image,
body.fullpage-mobile .section--active .section-playlist__content {
	opacity: 1;
}

@media (max-width: 768px) {

	.section-hero__image img {
		object-position: 62% top;
	}

	.section-hero__overlay {
		bottom: 67px;
		gap: 6px;
	}

	.section-hero__chevron {
		display: block;
	}

	/* Arrivals: single image, dark text centered */
	.section-arrivals__image {
		width: min(331px, 85vw);
		height: min(427px, 110vw);
	}

	/* Hide first item on mobile, show only second */
	.section-arrivals__item--first {
		display: none;
	}

	.section-arrivals__item-content {
		gap: 6px;
	}

	/* Portrait */
	.section-portrait__overlay {
		bottom: 67px;
		gap: 6px;
	}

	/* Playlist */
	.section-playlist__image {
		width: min(331px, 85vw);
		height: min(331px, 85vw);
	}

	.section-playlist__content {
		gap: 6px;
	}
}
