/* ==========================================================================
   EKH Luxe — base theme styles
   Brand: Navy #142C44 · Midnight #0B1A2B · Champagne Gold #C9A24D · Teal #1F7F8C
   Ivory #F8F5EF · Stone #EDE6DA · Ink #2A2F36
   Elementor's Site Settings (Global Colors & Fonts) drive everything inside
   Elementor content; these styles cover the theme shell and small polish.
   ========================================================================== */

:root {
	--ekh-navy: #142c44;
	--ekh-midnight: #0b1a2b;
	--ekh-gold: #c9a24d;
	--ekh-gold-soft: #e6d3a3;
	--ekh-teal: #1f7f8c;
	--ekh-ivory: #f8f5ef;
	--ekh-stone: #ede6da;
	--ekh-ink: #2a2f36;
	--ekh-muted: #6b7079;
	--ekh-line: rgba(20, 44, 68, 0.12);
	--ekh-serif: "Cormorant Garamond", "Times New Roman", serif;
	--ekh-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--ekh-wrap: 1240px;
	--ekh-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--ekh-sans);
	font-size: 17px;
	line-height: 1.75;
	color: var(--ekh-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--ekh-navy); text-decoration: none; transition: color .3s var(--ekh-ease); }
a:hover { color: var(--ekh-gold); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ekh-serif);
	font-weight: 500;
	line-height: 1.15;
	color: var(--ekh-navy);
	margin: 0 0 .5em;
}

::selection { background: var(--ekh-gold); color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100000;
	padding: 12px 20px; background: #fff; color: var(--ekh-navy);
}

:focus-visible { outline: 2px solid var(--ekh-gold); outline-offset: 3px; }

.ekh-wrap { width: 100%; max-width: var(--ekh-wrap); margin: 0 auto; padding: 0 24px; }
.ekh-section { padding-top: 96px; padding-bottom: 96px; }

.ekh-eyebrow {
	display: inline-block;
	font-family: var(--ekh-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--ekh-gold);
	margin-bottom: 14px;
}

.ekh-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 15px 30px;
	font-family: var(--ekh-sans);
	font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
	border: 1px solid transparent;
	transition: all .35s var(--ekh-ease);
}
.ekh-btn--gold { background: var(--ekh-gold); color: #fff; }
.ekh-btn--gold:hover { background: var(--ekh-navy); color: #fff; }

.ekh-link {
	font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
	border-bottom: 1px solid var(--ekh-gold); padding-bottom: 3px;
}

/* --------------------------------------------------------------------------
   Fallback header
   -------------------------------------------------------------------------- */
.ekh-topbar { background: var(--ekh-midnight); color: rgba(255,255,255,.75); font-size: 13px; letter-spacing: .04em; }
.ekh-topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
body .ekh-topbar a { color: rgba(255,255,255,.85); margin-left: 24px; }
body .ekh-topbar a:hover { color: var(--ekh-gold); }

.ekh-header { position: sticky; top: 0; z-index: 999; background: #fff; box-shadow: 0 1px 0 var(--ekh-line); transition: box-shadow .3s; }
.ekh-header.is-scrolled { box-shadow: 0 10px 30px rgba(11,26,43,.08); }
.admin-bar .ekh-header { top: 32px; }
.ekh-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.ekh-logo img, .custom-logo { display: block; width: 112px; height: auto; }

.ekh-nav { display: flex; align-items: center; gap: 36px; }
.ekh-menu { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
body .ekh-menu a {
	position: relative;
	font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
	color: var(--ekh-navy); padding: 8px 0;
}
.ekh-menu a::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
	background: var(--ekh-gold); transform: scaleX(0); transform-origin: right;
	transition: transform .4s var(--ekh-ease);
}
.ekh-menu a:hover::after,
.ekh-menu .current-menu-item > a::after,
.ekh-menu .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }

.ekh-burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.ekh-burger span:not(.screen-reader-text) { display: block; height: 1.5px; background: var(--ekh-navy); margin: 6px 0; transition: transform .3s, opacity .3s; }
.ekh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.ekh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ekh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1024px) {
	.ekh-topbar__note { display: none; }
	.ekh-topbar__inner { justify-content: center; }
	.ekh-topbar a { margin: 0 10px; }
	.ekh-burger { display: block; }
	.ekh-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; padding: 12px 24px 28px;
		box-shadow: 0 20px 30px rgba(11,26,43,.08);
		display: none;
	}
	.ekh-nav.is-open { display: flex; }
	.ekh-menu { flex-direction: column; gap: 0; }
	.ekh-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--ekh-line); }
	.ekh-menu a::after { display: none; }
	.ekh-nav .ekh-btn { margin-top: 20px; }
}
@media (max-width: 782px) { .admin-bar .ekh-header { top: 0; } }

/* --------------------------------------------------------------------------
   Fallback footer
   -------------------------------------------------------------------------- */
.ekh-footer { background: var(--ekh-midnight); color: rgba(255,255,255,.7); font-size: 15px; }
body .ekh-footer h4 { color: #fff; font-size: 24px; margin-bottom: 18px; }
body .ekh-footer a { color: rgba(255,255,255,.75); }
body .ekh-footer a:hover { color: var(--ekh-gold); }
.ekh-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-top: 80px; padding-bottom: 56px; }
.ekh-footer__brand .ekh-logo img { width: 130px; margin-bottom: 18px; }
.ekh-footer__menu { list-style: none; margin: 0; padding: 0; }
.ekh-footer__menu li { margin-bottom: 10px; }
.ekh-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; padding-bottom: 28px; font-size: 13px; letter-spacing: .04em; }
@media (max-width: 767px) { .ekh-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* --------------------------------------------------------------------------
   Non-Elementor content (blog, standard pages)
   -------------------------------------------------------------------------- */
.ekh-page-header--hero { background: var(--ekh-navy); color: #fff; padding: 120px 0 90px; text-align: center; }
.ekh-page-title { color: #fff; font-size: clamp(40px, 6vw, 68px); margin: 0; }
.ekh-entry { max-width: 820px; }
.ekh-entry__media { margin: 0 0 40px; }
.ekh-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px; }
.ekh-card { background: #fff; border: 1px solid var(--ekh-line); transition: transform .4s var(--ekh-ease), box-shadow .4s var(--ekh-ease); }
.ekh-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(11,26,43,.1); }
.ekh-card__media img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ekh-card__body { padding: 28px; }
.ekh-card__title { font-size: 28px; }
.ekh-404 { text-align: center; padding: 160px 0; background: var(--ekh-ivory); }
.ekh-404 .ekh-page-title { color: var(--ekh-navy); max-width: 760px; margin: 0 auto 16px; }

/* --------------------------------------------------------------------------
   Elementor polish (opt-in via CSS classes set in Elementor > Advanced)
   -------------------------------------------------------------------------- */

/* Sticky header (Elementor Pro Motion Effects → Sticky) */
.ekh-sticky-header { transition: background-color .4s var(--ekh-ease), box-shadow .4s var(--ekh-ease), padding .4s var(--ekh-ease) !important; }
.ekh-sticky-header.elementor-sticky--effects { box-shadow: 0 12px 34px rgba(11,26,43,.10); }
.ekh-sticky-header.elementor-sticky--effects .ekh-header-logo img { width: 92px !important; }
.ekh-header-logo img { transition: width .4s var(--ekh-ease); }

/* Image zoom on hover — add class "ekh-zoom" to an Image widget or a container */
.ekh-zoom { overflow: hidden; }
.ekh-zoom img { transition: transform 1.2s var(--ekh-ease) !important; }
.ekh-zoom:hover img { transform: scale(1.06); }

/* Lift card — add class "ekh-lift" to a container */
.ekh-lift { transition: transform .5s var(--ekh-ease), box-shadow .5s var(--ekh-ease) !important; }
.ekh-lift:hover { transform: translateY(-8px); }

/* Background-image cards zoom (containers with class "ekh-bgzoom") */
.ekh-bgzoom { overflow: hidden; }
.ekh-bgzoom::before { transition: opacity .6s var(--ekh-ease) !important; }

/* Gold underline for text links inside Elementor text */
.elementor-widget-text-editor a { border-bottom: 1px solid var(--ekh-gold); }

/* Buttons: subtle arrow nudge */
.elementor-button .elementor-button-icon { transition: transform .35s var(--ekh-ease); }
.elementor-button:hover .elementor-button-icon { transform: translateX(4px); }

/* Pro Nav Menu dropdown polish */
.ekh-nav-menu .elementor-nav-menu--dropdown { box-shadow: 0 24px 40px rgba(11,26,43,.12); }

/* Pro Form focus ring */
.elementor-form .elementor-field:focus { border-color: var(--ekh-gold) !important; box-shadow: 0 0 0 3px rgba(201,162,77,.15); outline: none; }

/* Thin gold rule used under eyebrows */
.ekh-rule .elementor-divider-separator { transition: width .8s var(--ekh-ease); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.elementor-invisible { visibility: visible !important; }
}

/* Italic accent words inside headings — wrap a word in <em> in any Heading widget
   that has the class "ekh-accent". Colour follows Site Settings → Global Colors → Secondary. */
.ekh-accent em {
	font-style: italic;
	font-weight: 400;
	color: var(--e-global-color-secondary, var(--ekh-gold));
}

/* Keep Elementor's global button style off the fallback burger */
body .ekh-burger,
body .ekh-burger:hover,
body .ekh-burger:focus { background: none; border: 0; box-shadow: none; padding: 10px; }
