/*
Theme Name:        Margaux Lune
Theme URI:         https://quiknexa.com/divi-child-theme
Author:            QuikNexa
Author URI:        https://quiknexa.com
Description:       Margaux Lune is a premium Divi 5 child theme built for fine-art and documentary wedding photographers who want their website to feel as considered as their work. With a soft, light-and-airy aesthetic, elegant serif-and-sans typography, and generous white space, it gives high-end photographers a home that signals craft, calm, and quality from the very first scroll — the kind of site that helps couples feel something before they ever read a word.
Version:           1.0.0
Requires at least: 6.2
Requires PHP:      7.4
Tested up to:      6.9
Template:          Divi
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       margaux-lune
Tags:              divi, child-theme, demo-content

*/

/* ===== Custom CSS (from Design step) ===== */

/* ==========================================================================
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   1.0  Base & Resets
   2.0  Header & Navigation
        2.1  Desktop menu underline
        2.2  Desktop submenu (left-border animation)
        2.3  Mobile full-screen menu
        2.4  Mobile submenu collapse
   3.0  Hero — Scroll cue
   4.0  Availability banner
   5.0  Gallery (image zoom + custom cursor)
   6.0  Blog
        6.1  Grid reset
        6.2  "From the journal" stories
   7.0  Bento grid
   8.0  Tabs
   ========================================================================== */
 
 
/* ==========================================================================
   1.0  Base & Resets
   ========================================================================== */
 
html,
body {
	overflow-x: hidden !important;
}
 
blockquote {
	margin: 0;
	padding-top: 20px;
	padding-bottom: 20px;
}
 
 
/* ==========================================================================
   2.0  Header & Navigation
   ========================================================================== */
 
.ml-header .nav li ul {
	border-top: 0;
}
 
.ml-header .et_pb_menu .et-menu-nav > ul ul {
	padding: 0;
}
 
.ml-header .et_pb_menu ul li a {
	width: 100% !important;
}
 
.ml-header .nav li li {
	padding: 0;
	width: -webkit-fill-available !important;
}
 
/* Keep the close button hidden by default
   (fixes it showing in the footer on desktop). */
.ml-menu-close {
	display: none;
}
 
 
/* 2.1  Desktop menu underline
   -------------------------------------------------------------------------- */
 
@media (min-width: 981px) {
 
	.ml-header .et-menu > li > a {
		position: relative;
	}
 
	.ml-header .et_pb_menu__menu > nav > ul > li > a::before {
		content: "" !important;
		position: absolute !important;
		left: 0 !important;
		right: 0 !important;
		top: auto !important;
		bottom: 0 !important; /* sits just under the text */
		transform: none !important; /* cancels Divi's translateY(-50%) */
		width: 0 !important;
		height: 2px !important;
		margin: 0 auto !important;
		background: currentColor !important;
		transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
	}
 
	.ml-header .et_pb_menu__menu > nav > ul > li > a:hover::before,
	.ml-header .et_pb_menu__menu > nav > ul > li.current-menu-item > a::before,
	.ml-header .et_pb_menu__menu > nav > ul > li.current_page_item > a::before,
	.ml-header .et_pb_menu__menu > nav > ul > li.current-cat > a::before {
		width: 100% !important;
	}
}
 
 
/* 2.2  Desktop submenu — left-border animation
   -------------------------------------------------------------------------- */
 
.ml-header .nav li ul.sub-menu li > a {
	position: relative;
	display: block;
	padding-left: 24px;
	transition: all 0.3s ease;
}
 
.ml-header .nav li ul.sub-menu li > a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 2px;
	height: 0;
	background: #000;
	transform: translateY(-50%);
	transition: height 0.3s ease;
}
 
.ml-header .nav li ul.sub-menu li:hover > a::before,
.ml-header .nav li ul.sub-menu li.current-menu-item > a::before {
	height: 70%;
}
 
 
/* 2.3  Mobile full-screen menu
   -------------------------------------------------------------------------- */
 
@media (max-width: 980px) {
 
	/* Full-screen panel — hidden by default, kept in the DOM for animation. */
	.ml-header .et_pb_menu .et_mobile_menu {
		display: flex !important;
		flex-direction: column;
		justify-content: center;
		position: fixed !important;
		top: 0 !important;
		height: 100vh !important;
		padding: 80px 40px;
		gap: 0.2rem;
		background: #f7f4ef !important;
		border: 0 !important;
		box-shadow: none !important;
		overflow-y: auto;
		z-index: 9999999;
		opacity: 0;
		visibility: hidden;
		transform: scale(1.04);
		transition:
			opacity 0.5s ease,
			visibility 0.5s ease,
			transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	}
 
	/* Open state — smooth fade + gentle zoom-in. */
	.ml-header .et_pb_menu .mobile_nav.opened .et_mobile_menu {
		opacity: 1;
		visibility: visible;
		transform: scale(1);
	}
 
	/* Menu links — large, centered, serif. */
	.ml-header .et_pb_menu .et_mobile_menu li a {
		font-weight: 300 !important;
		font-size: 1.5rem !important;
		text-align: center;
		background: transparent !important;
	}
 
	.ml-header .et_pb_menu .et_mobile_menu li a:hover {
		color: #b5988e !important;
	}
 
	/* Close (×) button — fixed top-right, hidden until the menu opens. */
	.ml-menu-close {
		display: block;
		position: fixed;
		top: 1rem;
		right: 1.4rem;
		z-index: 100001;
		width: 48px;
		height: 48px;
		padding: 0;
		font-size: 2.4rem;
		line-height: 48px;
		text-align: center;
		color: #2a2521;
		background: none;
		border: 0;
		cursor: pointer;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: rotate(-90deg);
		transition:
			opacity 0.5s ease 0.15s,
			visibility 0.5s ease,
			transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
	}
 
	body.ml-menu-open .ml-menu-close {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: rotate(0deg);
	}
 
	/* Respect reduced-motion. */
	@media (prefers-reduced-motion: reduce) {
 
		.ml-header .et_pb_menu .et_mobile_menu,
		.ml-menu-close {
			transition: none !important;
			transform: none !important;
		}
	}
}
 
 
/* 2.4  Mobile submenu collapse
   -------------------------------------------------------------------------- */
 
@media (max-width: 980px) {
 
	/* Parent item. */
	.ml-header .et_mobile_menu .menu-item-has-children {
		position: relative;
	}
 
	/* + / − toggle. */
	.ml-header .et_mobile_menu .ml-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 24px;
		height: 24px;
		margin: 0;
		padding: 0;
		font-size: 24px;
		font-weight: 400;
		line-height: 1;
		color: #2a2521;
		cursor: pointer;
		user-select: none;
		flex-shrink: 0;
		transition: transform 0.25s ease;
	}
 
	/* Rotate when opened. */
	.ml-header .et_mobile_menu .menu-item-has-children.open .ml-submenu-toggle {
		transform: rotate(180deg);
	}
 
	/* Hide submenu. */
	.ml-header .et_mobile_menu .sub-menu {
		display: none !important;
		margin: 12px 0 0;
		padding: 0;
		list-style: none;
	}
 
	/* Show submenu. */
	.ml-header .et_mobile_menu .menu-item-has-children.open > .sub-menu {
		display: block !important;
	}
 
	/* Submenu items. */
	.ml-header .et_mobile_menu .sub-menu li {
		margin: 0;
		padding: 0;
	}
 
	.ml-header .et_mobile_menu .sub-menu li a {
		display: block;
		padding: 10px 0 !important;
		font-size: 1.2rem !important;
		text-align: center;
	}
}
 
 
/* ==========================================================================
   3.0  Hero — Scroll cue
   ========================================================================== */
 
/* Gentle drifting bounce. */
.ml-scroll .et-pb-icon {
	animation: ml-scroll-bob 2.4s ease-in-out infinite;
}
 
@keyframes ml-scroll-bob {
	0% {
		transform: translateY(0);
		opacity: 0.55;
	}
	50% {
		transform: translateY(10px);
		opacity: 1;
	}
	100% {
		transform: translateY(0);
		opacity: 0.55;
	}
}
 
/* Hold still for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
 
	.ml-scroll .et-pb-icon {
		animation: none;
		opacity: 0.8;
	}
}
 
 
/* ==========================================================================
   4.0  Availability banner — pulsing dot before the text
   ========================================================================== */
 
.ml-avail .et_pb_text_inner p {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0;
}
 
.ml-avail .et_pb_text_inner p::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #8e9a8b;
	animation: ml-pulse 2.4s ease-in-out infinite;
}
 
@keyframes ml-pulse {
	0%,
	100% {
		opacity: 0.45;
		transform: scale(0.8);
	}
	50% {
		opacity: 1;
		transform: scale(1);
	}
}
 
 
/* ==========================================================================
   5.0  Gallery — image zoom + custom cursor
   ========================================================================== */
 
.ml-gallery .et_pb_image_wrap {
	overflow: hidden;
	display: block;
}
 
.ml-gallery .et_pb_image_wrap img {
	transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
}
 
.ml-gallery .et_pb_image:hover .et_pb_image_wrap img {
	transform: scale(1.04);
}
 
/* Hide the normal cursor over the gallery (desktop only). */
@media (hover: hover) and (pointer: fine) {
 
	.ml-gallery .et_pb_image {
		cursor: none;
	}
}
 
/* The floating "View" label. */
.ml-view-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: rgba(42, 37, 33, 0.82);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
 
.ml-view-cursor.show {
	transform: translate(-50%, -50%) scale(1);
}
 
/* Disable motion/cursor for those who ask. */
@media (prefers-reduced-motion: reduce) {
 
	.ml-gallery .et_pb_image_wrap img {
		transition: none;
	}
 
	.ml-gallery .et_pb_image:hover .et_pb_image_wrap img {
		transform: none;
	}
 
	.ml-view-cursor {
		display: none;
	}
 
	.ml-gallery .et_pb_image {
		cursor: auto !important;
	}
}
 
 
/* ==========================================================================
   6.0  Blog
   ========================================================================== */
 
/* 6.1  Grid reset
   -------------------------------------------------------------------------- */
 
.et_grid_module > .et_pb_post,
.et_pb_blog_grid .et_pb_post {
	border: 0;
	background: transparent;
}
 
 
/* 6.2  "From the journal" stories — module CSS class: ml-stories
   -------------------------------------------------------------------------- */
 
.ml-stories .et_pb_post {
	display: flex;
	flex-direction: column;
}
 
.ml-stories .et_pb_post .et_pb_image_container {
	order: 1;
	margin-bottom: 0;
}
 
.ml-stories .et_pb_post .post-meta {
	order: 2;
}
 
.ml-stories .et_pb_post .entry-title {
	order: 3;
}
 
.ml-stories .et_pb_post .post-content {
	order: 4;
}
 
/* Featured image — slow zoom on hover. */
.ml-stories .et_pb_image_container,
.ml-stories .entry-featured-image-url {
	overflow: hidden;
	display: block;
	position: relative;
}
 
.ml-stories .et_pb_image_container img,
.ml-stories .entry-featured-image-url img {
	transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
}
 
.ml-stories .et_pb_post:hover .et_pb_image_container img,
.ml-stories .et_pb_post:hover .entry-featured-image-url img {
	transform: scale(1.04);
}
 
/* Title — serif, one line, underline hugs the text on hover. */
.ml-stories .entry-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
 
.ml-stories .entry-title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0% 1px;
	transition: background-size 0.45s cubic-bezier(0.16, 1, 0.3, 1);
	padding-bottom: 3px;
}
 
.ml-stories .et_pb_post:hover .entry-title a {
	background-size: 100% 1px;
}
 
 
/* ==========================================================================
   7.0  Bento grid — image zoom + dark gradient overlay
   ========================================================================== */
 
.ml-bento .et_pb_image_wrap {
	overflow: hidden;
	display: block;
	position: relative;
}
 
.ml-bento .et_pb_image_wrap img {
	transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
}
 
.ml-bento .et_pb_image:hover .et_pb_image_wrap img {
	transform: scale(1.05);
}
 
/* Dark gradient overlay so white text stays readable. */
.ml-bento .et_pb_image_wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(20, 16, 13, 0) 30%,
		rgba(20, 16, 13, 0.55) 100%
	);
	transition: background 0.6s ease;
	pointer-events: none;
}
 
.ml-bento .et_pb_image:hover .et_pb_image_wrap::after {
	background: linear-gradient(
		180deg,
		rgba(20, 16, 13, 0.1) 20%,
		rgba(20, 16, 13, 0.65) 100%
	);
}
 
/* Respect reduced-motion. */
@media (prefers-reduced-motion: reduce) {
 
	.ml-bento .et_pb_image_wrap img {
		transition: none;
	}
 
	.ml-bento .et_pb_image:hover .et_pb_image_wrap img {
		transform: none;
	}
}
 
 
/* ==========================================================================
   8.0  Tabs
   ========================================================================== */
 
.ml-tab {
	cursor: pointer;
}
 
.ml-tab.current,
.ml-tab:hover {
	background: var(--gcid-secondary-color);
}
 
.ml-tab.current,
.ml-tab.current *,
.ml-tab:hover,
.ml-tab:hover * {
	color: #fff !important;
}
 
