/*
Theme Name: Opaline Light
Theme URI: https://opalinelight.com
Description: Custom child theme for Opaline Light, built on Hello Elementor.
Author: Charlotte
Template: hello-elementor
Version: 1.0
Text Domain: opaline-light
*/

/* ============================================================
   All Opaline Light custom CSS lives in this single file.
   ============================================================ */

/* --- Variables ------------------------------------------------ */
:root {
	--ol-color-bg:     #F5F0EB;
	--ol-color-text:   #4a3f35;
	--ol-color-logo:   #A8895A;
	--ol-color-muted:  #8B7B6A;
	--ol-color-border: #ddd5c8;
	--ol-font-serif:   'Cormorant Garamond', Georgia, serif;
	--ol-font-sans:    'Jost', 'Helvetica Neue', sans-serif;
}

/* --- Hide old Elementor/UAE HFB header, just in case ----------- */
.hfe-header,
.elementor-location-header {
	display: none !important;
}

/* --- Hide Hello Elementor's default theme footer, replaced by ours --- */
#site-footer.site-footer {
	display: none !important;
}

/* --- Header shell ---------------------------------------------- */
.ol-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--ol-color-bg);
	border-bottom: 1px solid var(--ol-color-border);
	width: 100%;
}

.ol-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 36px;
	height: 116px;
	column-gap: 24px;
}

.ol-header__left {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
}

.ol-header__right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	min-width: 0;
}

.ol-header__center {
	text-align: center;
	white-space: nowrap;
}

/* --- Logo -------------------------------------------------------- */
.ol-logo {
	text-decoration: none;
	display: inline-block;
}

.ol-logo__name {
	font-family: var(--ol-font-serif);
	font-size: 24px;
	font-weight: 400;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--ol-color-logo);
	line-height: 1.1;
	white-space: nowrap;
}

.ol-logo__tagline {
	font-family: var(--ol-font-serif);
	font-style: italic;
	font-size: 13px;
	color: var(--ol-color-muted);
	letter-spacing: 0.06em;
	margin-top: 5px;
	display: block;
	white-space: nowrap;
}

/* --- Desktop nav --------------------------------------------------- */
.ol-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 14px;
	white-space: nowrap;
}

.ol-nav a {
	font-family: var(--ol-font-sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--ol-color-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.ol-nav a:hover {
	color: var(--ol-color-text);
}

/* --- Social icons --------------------------------------------------- */
.ol-socials {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ol-social__link {
	color: var(--ol-color-muted);
	text-decoration: none;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	transition: opacity 0.2s ease;
}

.ol-social__link:hover {
	opacity: 0.6;
}

/* --- Hamburger button (hidden on desktop) ----------------------------- */
.ol-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	width: 32px;
	height: 32px;
}

.ol-hamburger span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--ol-color-text);
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform-origin: center;
}

.ol-hamburger.is-active span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}
.ol-hamburger.is-active span:nth-child(2) {
	opacity: 0;
}
.ol-hamburger.is-active span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Mobile menu drawer ----------------------------------------------- */
.ol-mobile-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--ol-color-bg);
	border-bottom: 1px solid var(--ol-color-border);
	padding: 24px 28px 32px;
	transform: translateY(-8px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.ol-mobile-menu.is-open {
	transform: translateY(0);
	opacity: 1;
}

.ol-mobile-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ol-mobile-menu a {
	font-family: var(--ol-font-sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--ol-color-muted);
	text-decoration: none;
}

.ol-mobile-menu a:hover {
	color: var(--ol-color-text);
}

/* --- Overlay ----------------------------------------------------------- */
.ol-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.2);
	z-index: 999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ol-overlay.is-visible {
	opacity: 1;
}

/* --- Mobile breakpoint --------------------------------------------------- */
@media (max-width: 1024px) {

	.ol-header__inner {
		grid-template-columns: 1fr auto 1fr;
		height: 78px;
		padding: 0 20px;
	}

	.ol-nav {
		display: none;
	}

	.ol-hamburger {
		display: flex;
	}

	.ol-mobile-menu {
		display: block;
	}

	.ol-logo__name {
		font-size: 15px;
		letter-spacing: 0.14em;
	}

	.ol-logo__tagline {
		display: none;
	}
}

/* ============================================================
   FOOTER
   ============================================================ */

.ol-footer {
	background: var(--ol-color-bg);
	border-top: 1px solid var(--ol-color-border);
	padding: 56px 36px 0;
}

.ol-footer__inner {
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 40px;
}

.ol-footer__logo {
	font-family: var(--ol-font-serif);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ol-color-logo);
	margin: 0 0 12px;
}

.ol-footer__quote {
	font-family: var(--ol-font-serif);
	font-style: italic;
	font-size: 12.5px;
	color: var(--ol-color-muted);
	line-height: 1.8;
	margin: 0;
}

.ol-footer__heading {
	font-family: var(--ol-font-sans);
	font-size: 8.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ol-color-text);
	margin: 0 0 14px;
}

.ol-footer__col {
	display: flex;
	flex-direction: column;
}

.ol-footer__col a {
	font-family: var(--ol-font-sans);
	font-size: 12px;
	color: var(--ol-color-muted);
	text-decoration: none;
	margin-bottom: 8px;
	transition: color 0.2s ease;
}

.ol-footer__col a:hover {
	color: var(--ol-color-text);
}

.ol-footer__bottom {
	border-top: 1px solid var(--ol-color-border);
	padding: 20px 0;
	text-align: center;
}

.ol-footer__bottom p {
	font-family: var(--ol-font-sans);
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--ol-color-muted);
	margin: 0;
}

@media (max-width: 1024px) {
	.ol-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 32px 24px;
	}

	.ol-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.ol-footer__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ol-footer__brand {
		grid-column: auto;
		text-align: center;
	}
}
