/*
Theme Name: Hello Elementor Child
Theme URI: https://edlerhub.world
Description: Edler Hub child theme — implements the Edler Hub Design System (brand fonts, tokens, header, footer, components) over Hello Elementor.
Author: Edler Hub
Template: hello-elementor
Version: 1.3.0
Text Domain: hello-elementor-child
*/

/* Tokens + webfonts come from brand.css (enqueued first). */

/* ============ SITE HEADER (design-system nav) ============ */
.eh-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 14px 0;
	background: var(--bg);
	box-shadow: 0 1px 0 var(--border), 0 2px 10px rgba(10,22,40,0.05);
	transition: padding var(--t-slow) var(--ease-out),
	            box-shadow var(--t-slow) var(--ease-out);
}
.eh-site-header.scrolled {
	background: var(--header-glass);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	backdrop-filter: saturate(180%) blur(10px);
	box-shadow: 0 1px 0 var(--border), 0 6px 18px rgba(10,22,40,0.07);
	padding: 9px 0;
}
.eh-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.eh-brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.eh-logo { height: 64px; width: auto; transition: height var(--t-slow) var(--ease-out); display: block; }
.eh-site-header.scrolled .eh-logo { height: 52px; }

/* Logo swaps with the theme: dark logo on light bg, yellow logo on dark bg */
.eh-logo-light { display: none; }
.eh-logo-dark  { display: block; }
html[data-eh-theme="dark"] .eh-logo-light { display: block; }
html[data-eh-theme="dark"] .eh-logo-dark  { display: none; }

.eh-nav { display: flex; align-items: center; gap: 28px; }
.eh-menu {
	display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
}
.eh-menu li { margin: 0; }
.eh-menu a {
	font-family: var(--font-sans);
	text-decoration: none;
	color: var(--fg);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: -0.01em;
	transition: color var(--t-base) var(--ease-out);
}
.eh-menu a:hover { color: var(--link); }

/* Mobile menu toggle — a real <button> (accessible: aria-expanded). */
.eh-nav-burger {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}
.eh-nav-burger span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--fg);
	border-radius: 2px;
	transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.eh-nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.eh-nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.eh-nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
	.eh-nav-burger { display: flex; }
	.eh-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--bg);
		border-top: 1px solid var(--border);
		flex-direction: column; align-items: stretch;
		gap: 0; padding: 0; max-height: 0; overflow: hidden;
		box-shadow: var(--shadow-md);
		transition: max-height var(--t-slow) var(--ease-out);
	}
	.eh-nav.eh-nav-open { max-height: 480px; }
	.eh-menu { flex-direction: column; gap: 0; }
	.eh-menu li { border-top: 1px solid var(--border); }
	.eh-menu li:first-child { border-top: 0; }
	.eh-menu a { display: block; padding: 15px 32px; }
	.eh-theme-toggle { margin: 14px 32px; }
}

/* ============ SITE FOOTER (inspirational, dynamic) ============ */
.eh-site-footer {
	background: var(--eh-navy-900);
	color: #fff;
	padding: 32px 0 22px;
	margin-top: 0;
	font-family: var(--font-sans);
	position: relative;
	overflow: hidden;
}
.eh-site-footer::before {
	content: '';
	position: absolute;
	width: 420px; height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245,183,0,0.06) 0%, transparent 70%);
	top: -240px; left: -80px;
	pointer-events: none;
}
.eh-footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}
.eh-footer-brand { display: inline-flex; align-items: center; line-height: 0; flex: 0 0 auto; text-decoration: none; }
.eh-footer-logo { height: 96px; width: auto; display: block; }
.eh-footer-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
}
.eh-footer-rotator {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(15px, 1.5vw, 20px);
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: #fff;
	margin: 0;
	min-height: 1.25em;
	max-width: 100%;
}
.eh-footer-rotator .eh-rot-line { display: inline-block; transition: opacity 320ms var(--ease-out); }
.eh-footer-rotator .eh-rot-line::after { content: '.'; color: var(--accent); }
.eh-footer-social { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.eh-footer-social a { color: var(--eh-navy-200); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; transition: color var(--t-base) var(--ease-out); }
.eh-footer-social a:hover { color: var(--accent); }
.eh-footer-legal { font-size: 11px; color: var(--eh-navy-300); letter-spacing: 0.03em; margin-top: 0; }
.eh-footer-legal a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.18); text-underline-offset: 3px; transition: color var(--t-base) var(--ease-out); }
.eh-footer-legal a:hover { color: var(--accent); text-decoration-color: var(--accent); }
@media (max-width: 760px) {
	.eh-footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 22px; }
	.eh-footer-meta { align-items: center; text-align: center; }
	.eh-footer-social { justify-content: center; }
	.eh-footer-logo { height: 80px; }
}

/* Screen-reader-only utility (used site-wide). */
.eh-srt {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ THEME TOGGLE (compact square icon button) ============ */
.eh-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: var(--r-sm);
	border: 1px solid var(--border-strong);
	background: var(--surface);
	color: var(--fg);
	cursor: pointer;
	transition: border-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
.eh-theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.eh-theme-toggle svg { width: 16px; height: 16px; flex: 0 0 auto; }
.eh-theme-toggle .eh-icon-sun { display: none; }
html[data-eh-theme="dark"] .eh-theme-toggle .eh-icon-sun  { display: block; }
html[data-eh-theme="dark"] .eh-theme-toggle .eh-icon-moon { display: none; }

/* ============ LIGHT BRAND POLISH ON ELEMENTOR CONTENT ============ */
/* Applies to inner pages that still use Elementor (homepage is standalone). */
.elementor-button, .elementor-button-wrapper .elementor-button {
	font-family: var(--font-sans);
	border-radius: var(--r-md);
}
