/**
 * Bistro Lokal — Custom Theme Styles
 *
 * Author : Vibe Social
 * Version: 1.0.0
 *
 * Sections:
 *  1. Root variables & global resets
 *  2. Sticky transparent navigation
 *  3. Hero section
 *  4. About section
 *  5. Menu highlights cards
 *  6. Experience parallax
 *  7. Offerings grid
 *  8. Gallery masonry + lightbox
 *  9. Location & contact
 * 10. Social strip
 * 11. Footer
 * 12. Animations & scroll reveal
 * 13. Responsive breakpoints
 */

/* ============================================================
   1. ROOT VARIABLES & GLOBAL RESETS
============================================================ */
:root {
	--bl-charcoal: #1A1A1A;
	--bl-wood: #5B3A29;
	--bl-cream: #E9E1D5;
	--bl-olive: #56634A;
	--bl-gold: #B3925A;
	--bl-gold-dark: #8A6F3F;
	--bl-warm-white: #F7F4EF;
	--bl-overlay: rgba(26, 26, 26, 0.85);
	--bl-transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
	--bl-transition-slow: 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
}

::selection {
	background: var(--bl-gold);
	color: var(--bl-warm-white);
}

/* ============================================================
   2. STICKY TRANSPARENT NAVIGATION
============================================================ */
.bistro-lokal-front-page .site-header-wrapper,
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: transparent;
	transition: background-color var(--bl-transition), padding var(--bl-transition), box-shadow var(--bl-transition);
}

/* Background switches to solid charcoal on scroll - JS toggles .is-scrolled */
.site-header.is-scrolled {
	background: rgba(26, 26, 26, 0.96);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
	padding-top: 0.75rem !important;
	padding-bottom: 0.75rem !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* Logo */
.bistro-lokal-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 0;
}

.bistro-lokal-logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	transition: transform var(--bl-transition), border-color var(--bl-transition);
	background-color: var(--bl-charcoal);
}

.site-header.is-scrolled .bistro-lokal-logo {
	border-color: var(--bl-gold);
}

.bistro-lokal-logo-link:hover .bistro-lokal-logo {
	transform: scale(1.05);
}

/* Primary nav */
.site-header .wp-block-navigation a,
.site-header .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--bl-warm-white) !important;
	position: relative;
	padding: 0.25rem 0;
	transition: color var(--bl-transition);
}

.site-header .wp-block-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 1.5px;
	background: var(--bl-gold);
	transition: width var(--bl-transition);
}

.site-header .wp-block-navigation a:hover {
	color: var(--bl-gold) !important;
}

.site-header .wp-block-navigation a:hover::after {
	width: 100%;
}

/* Header CTA */
.header-cta .wp-block-button__link:hover {
	background-color: var(--bl-warm-white) !important;
	color: var(--bl-charcoal) !important;
	border-color: var(--bl-warm-white) !important;
}

/* Mobile menu */
@media (max-width: 781px) {
	.is-hidden-mobile {
		display: none !important;
	}
}

/* ============================================================
   3. HERO SECTION
============================================================ */
.hero-section {
	position: relative;
	overflow: hidden;
}

.hero-section .wp-block-cover__image-background {
	transform: scale(1.05);
	transition: transform 8s ease-out;
	animation: heroKenBurns 20s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
	0% { transform: scale(1.02) translate(0, 0); }
	100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-title {
	animation: heroFadeIn 1.2s ease-out 0.2s both;
}

.hero-subtitle {
	animation: heroFadeIn 1.2s ease-out 0.5s both;
}

.hero-tagline,
.hero-description {
	animation: heroFadeIn 1.2s ease-out 0.7s both;
}

.hero-buttons {
	animation: heroFadeIn 1.2s ease-out 0.9s both;
}

.hero-eyebrow {
	animation: heroFadeIn 1.2s ease-out both;
}

@keyframes heroFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-eyebrow .wp-block-separator.hero-line {
	width: 60px !important;
	height: 1.5px !important;
	border: none !important;
	margin: 0 1rem 0 0 !important;
}

.hero-buttons .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(179, 146, 90, 0.35);
}

.hero-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--bl-warm-white) !important;
	color: var(--bl-charcoal) !important;
}

.hero-buttons .wp-block-button__link {
	transition: all var(--bl-transition);
}

/* Scroll indicator */
.hero-scroll-indicator {
	position: absolute;
	bottom: 2.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--bl-warm-white);
	text-decoration: none;
	animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.55);
	transition: all var(--bl-transition);
}

.hero-scroll-indicator:hover .hero-scroll-circle {
	background: var(--bl-gold);
	border-color: var(--bl-gold);
	transform: scale(1.1);
}

@keyframes scrollBounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   4. ABOUT SECTION
============================================================ */
.about-section {
	position: relative;
}

.about-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		radial-gradient(circle at 10% 20%, rgba(179, 146, 90, 0.04) 0%, transparent 50%),
		radial-gradient(circle at 90% 80%, rgba(91, 58, 41, 0.04) 0%, transparent 50%);
	pointer-events: none;
}

.about-chef-image {
	position: relative;
	overflow: hidden;
}

.about-chef-image img {
	transition: transform 1.2s ease-out;
}

.about-chef-image:hover img {
	transform: scale(1.03);
}

.about-divider {
	width: 70px !important;
	height: 2px !important;
	border: none !important;
	margin-left: 0 !important;
}

/* Icon row */
.about-icons {
	gap: clamp(0.75rem, 2vw, 1.5rem) !important;
}

.about-icon-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	min-width: 70px;
	transition: transform var(--bl-transition);
}

.about-icon-item:hover {
	transform: translateY(-4px);
}

.about-icon-circle {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--bl-gold);
	transition: all var(--bl-transition);
}

.about-icon-circle svg {
	width: 32px;
	height: 32px;
}

.about-icon-item:hover .about-icon-circle {
	color: var(--bl-wood);
}

.about-icon-label {
	font-family: 'Inter', sans-serif;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
	color: var(--bl-charcoal);
	line-height: 1.4;
}

/* ============================================================
   5. MENU HIGHLIGHTS CARDS
============================================================ */
.menu-section {
	position: relative;
	overflow: hidden;
}

.menu-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		radial-gradient(circle at 20% 30%, rgba(179, 146, 90, 0.06) 0%, transparent 60%),
		radial-gradient(circle at 80% 70%, rgba(91, 58, 41, 0.08) 0%, transparent 60%);
	pointer-events: none;
}

.section-divider {
	width: 80px !important;
	height: 2px !important;
	border: none !important;
	margin: 0.75rem auto 0 !important;
}

.menu-card {
	overflow: hidden;
	background: linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
	transition: all var(--bl-transition-slow);
	height: 100%;
}

.menu-card:hover {
	transform: translateY(-8px);
	border-color: var(--bl-gold) !important;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(179, 146, 90, 0.15);
}

.menu-card-image {
	overflow: hidden;
	position: relative;
}

.menu-card-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
	pointer-events: none;
}

.menu-card-image img {
	transition: transform 1.2s ease-out;
}

.menu-card:hover .menu-card-image img {
	transform: scale(1.08);
}

.menu-card-divider {
	width: 40px !important;
	height: 1.5px !important;
	border: none !important;
	margin: 0 auto 1rem !important;
	transition: width var(--bl-transition);
}

.menu-card:hover .menu-card-divider {
	width: 60px !important;
}

/* ============================================================
   6. EXPERIENCE SECTION
============================================================ */
.experience-section {
	position: relative;
}

.experience-section .wp-block-cover__image-background {
	transition: transform 1s ease-out;
}

.experience-title {
	position: relative;
}

.experience-divider {
	width: 60px !important;
	height: 1.5px !important;
	border: none !important;
	margin: 1.25rem auto 1.5rem !important;
}

/* ============================================================
   7. OFFERINGS GRID
============================================================ */
.offerings-section {
	position: relative;
	overflow: hidden;
}

.offerings-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 0;
	max-width: 1280px;
	margin: 0 auto;
	border-top: 1px solid rgba(179, 146, 90, 0.2);
	border-bottom: 1px solid rgba(179, 146, 90, 0.2);
}

.offering-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.85rem;
	padding: 2.5rem 0.75rem;
	border-right: 1px solid rgba(179, 146, 90, 0.2);
	transition: background var(--bl-transition);
	text-align: center;
}

.offering-item:last-child {
	border-right: none;
}

.offering-item:hover {
	background: rgba(179, 146, 90, 0.06);
}

.offering-icon {
	color: var(--bl-gold);
	transition: all var(--bl-transition);
}

.offering-icon svg {
	width: 38px;
	height: 38px;
}

.offering-item:hover .offering-icon {
	transform: translateY(-3px);
	color: var(--bl-warm-white);
}

.offering-label {
	font-family: 'Inter', sans-serif;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--bl-warm-white);
	line-height: 1.5;
	margin: 0;
}

/* ============================================================
   8. GALLERY MASONRY + LIGHTBOX
============================================================ */
.bistro-masonry {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 200px;
	gap: 0.75rem;
	max-width: 1400px;
	margin: 0 auto;
}

.masonry-item {
	position: relative;
	overflow: hidden;
	display: block;
	border-radius: 2px;
	cursor: zoom-in;
}

.masonry-item.masonry-tall { grid-row: span 2; }
.masonry-item.masonry-wide { grid-column: span 2; }

.masonry-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s ease-out;
	display: block;
}

.masonry-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(26, 26, 26, 0.0) 0%, rgba(26, 26, 26, 0.6) 100%);
	opacity: 0;
	transition: opacity var(--bl-transition);
	pointer-events: none;
}

.masonry-item:hover img {
	transform: scale(1.08);
}

.masonry-item:hover .masonry-overlay {
	opacity: 1;
}

/* Lightbox */
.bistro-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.95);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 2rem;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.bistro-lightbox.is-active {
	display: flex;
	opacity: 1;
}

.lightbox-image {
	max-width: 90vw;
	max-height: 88vh;
	object-fit: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	transition: all var(--bl-transition);
}

.lightbox-close:hover {
	background: var(--bl-gold);
	border-color: var(--bl-gold);
	transform: rotate(90deg);
}

/* ============================================================
   9. LOCATION & CONTACT
============================================================ */
.location-info-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.location-info-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.location-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--bl-warm-white);
	color: var(--bl-gold);
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.location-info-icon svg {
	width: 20px;
	height: 20px;
}

.location-info-text {
	flex: 1;
}

.location-info-label {
	font-family: 'Inter', sans-serif;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bl-gold);
	margin: 0 0 0.25rem !important;
}

.location-info-value {
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	color: var(--bl-charcoal);
	line-height: 1.6;
	margin: 0 !important;
}

.location-info-value a {
	color: var(--bl-charcoal);
	text-decoration: none;
	transition: color var(--bl-transition);
}

.location-info-value a:hover {
	color: var(--bl-gold);
}

.location-social {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

.location-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bl-charcoal);
	color: var(--bl-warm-white);
	transition: all var(--bl-transition);
	text-decoration: none;
}

.location-social a svg {
	width: 18px;
	height: 18px;
}

.location-social a:hover {
	background: var(--bl-gold);
	transform: translateY(-3px);
}

.location-map-wrapper {
	width: 100%;
	height: 460px;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(179, 146, 90, 0.2);
}

.location-map-wrapper iframe {
	display: block;
	width: 100%;
	height: 100%;
	filter: saturate(0.9);
	transition: filter var(--bl-transition);
}

.location-map-wrapper:hover iframe {
	filter: saturate(1);
}

/* ============================================================
   10. SOCIAL STRIP
============================================================ */
.social-strip {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.5rem;
	max-width: 1600px;
	margin: 0 auto;
}

.social-strip-item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	display: block;
	text-decoration: none;
}

.social-strip-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s ease-out;
}

.social-strip-overlay {
	position: absolute;
	inset: 0;
	background: rgba(26, 26, 26, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bl-warm-white);
	opacity: 0;
	transition: opacity var(--bl-transition);
}

.social-strip-overlay svg {
	width: 32px;
	height: 32px;
}

.social-strip-item:hover img {
	transform: scale(1.1);
}

.social-strip-item:hover .social-strip-overlay {
	opacity: 1;
}

/* ============================================================
   11. FOOTER
============================================================ */
.site-footer {
	position: relative;
}

.footer-logo-wrap {
	display: flex;
	justify-content: center;
	line-height: 0;
}

.footer-logo-img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid var(--bl-gold);
	background-color: var(--bl-charcoal);
}

.footer-social-icons .wp-social-link {
	background: transparent !important;
	transition: transform var(--bl-transition);
}

.footer-social-icons .wp-social-link:hover {
	transform: translateY(-3px);
}

.footer-social-icons .wp-social-link a {
	color: var(--bl-warm-white) !important;
}

.footer-social-icons .wp-social-link:hover a {
	color: var(--bl-gold) !important;
}

/* ============================================================
   12. ANIMATIONS & SCROLL REVEAL
============================================================ */
.fade-in-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.fade-in-up.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Apply scroll-reveal to common section blocks */
.about-section,
.menu-section,
.experience-section,
.offerings-section,
.gallery-section,
.location-section,
.social-section {
	scroll-margin-top: 80px;
}

/* ============================================================
   13. RESPONSIVE BREAKPOINTS
============================================================ */
@media (max-width: 1200px) {
	.offerings-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.offering-item:nth-child(4n) {
		border-right: none;
	}
	.offering-item:nth-child(n+5) {
		border-top: 1px solid rgba(179, 146, 90, 0.2);
	}
}

@media (max-width: 1024px) {
	.bistro-masonry {
		grid-template-columns: repeat(3, 1fr);
	}
	.social-strip {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 781px) {
	html { scroll-padding-top: 64px; }

	.site-header {
		padding-top: 0.75rem !important;
		padding-bottom: 0.75rem !important;
	}

	.about-columns,
	.location-columns {
		flex-direction: column !important;
	}

	.about-columns .wp-block-column,
	.location-columns .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}

	.menu-cards {
		flex-direction: column !important;
	}

	.menu-cards .wp-block-column {
		flex-basis: 100% !important;
		margin-bottom: 1.5rem;
	}

	.bistro-masonry {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 160px;
	}

	.masonry-item.masonry-wide {
		grid-column: span 2;
	}

	.offerings-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.offering-item {
		border-right: 1px solid rgba(179, 146, 90, 0.2);
		padding: 2rem 0.75rem;
	}

	.offering-item:nth-child(2n) {
		border-right: none;
	}

	.offering-item:nth-child(n+3) {
		border-top: 1px solid rgba(179, 146, 90, 0.2);
	}

	.social-strip {
		grid-template-columns: repeat(3, 1fr);
	}

	.location-map-wrapper {
		height: 320px;
	}

	.about-icons {
		justify-content: center !important;
	}

	.hero-section {
		min-height: 90vh !important;
	}

	.footer-top {
		grid-template-columns: 1fr !important;
		text-align: center;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 0.75rem;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.bistro-masonry {
		grid-template-columns: 1fr;
		grid-auto-rows: 220px;
	}

	.masonry-item.masonry-tall,
	.masonry-item.masonry-wide {
		grid-row: auto;
		grid-column: auto;
	}

	.social-strip {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-buttons {
		flex-direction: column;
		width: 100%;
	}

	.hero-buttons .wp-block-button {
		width: 100%;
	}

	.hero-buttons .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* ============================================================
   PRINT STYLES
============================================================ */
@media print {
	.site-header,
	.site-footer,
	.hero-scroll-indicator,
	.bistro-lightbox {
		display: none !important;
	}
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.hero-section .wp-block-cover__image-background {
		animation: none;
	}

	.hero-scroll-indicator {
		animation: none;
	}
}
