/*
 * LDR_Header — fixed transparent → white-on-scroll navbar.
 */

.ldr-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: var(--ldr-z-header);
	transition: background-color var(--ldr-dur-base) var(--ldr-ease),
	            box-shadow var(--ldr-dur-base) var(--ldr-ease),
	            backdrop-filter var(--ldr-dur-base) var(--ldr-ease);
	background: transparent;
}

.ldr-header[data-scrolled="true"] {
	background-color: rgb(255 255 255 / 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: var(--ldr-shadow-lg);
}

.ldr-header__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;            /* h-16 mobile */
	gap: 1rem;
}

@media (min-width: 768px) {
	.ldr-header__nav {
		height: 80px;        /* md:h-20 desktop */
	}
}

/* Brand / logo */
.ldr-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
	text-decoration: none;
}
.ldr-header img.ldr-header__logo {
	height: 40px;            /* h-10 */
	width: auto;
	max-width: none;
	display: block;
	transition: filter var(--ldr-dur-base) var(--ldr-ease);
}
@media (min-width: 768px) {
	.ldr-header img.ldr-header__logo { height: 56px; }    /* md:h-14 */
}

/* Default (transparent header at top of page): logo rendered in white so it
   reads against the dark hero/banner background — matches the footer treatment.
   When the header turns white on scroll, we drop the filter so the original
   coloured logo shows. */
.ldr-header:not([data-scrolled="true"]) img.ldr-header__logo {
	filter: brightness(0) invert(1);
}
.ldr-header__brand-text {
	font-family: var(--ldr-font-heading);
	font-weight: 800;
	color: inherit;
}

/* Desktop links */
.ldr-header__links {
	display: none;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 768px) {
	.ldr-header__links { display: flex; }
}
.ldr-header__link {
	font-family: var(--ldr-font-heading);
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: var(--ldr-tracking-nav);
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	transition: color var(--ldr-dur-fast) var(--ldr-ease);
}
.ldr-header[data-scrolled="true"] .ldr-header__link {
	color: var(--ldr-navy);
}
.ldr-header__link:hover {
	color: var(--ldr-lake);
}
.ldr-header__link.is-active {
	color: var(--ldr-lake);
}

/* Right-side actions */
.ldr-header__actions {
	display: none;
	align-items: center;
	gap: 0.75rem;
}
@media (min-width: 768px) {
	.ldr-header__actions { display: inline-flex; }
}

.ldr-header__signin,
.ldr-header__account-trigger {
	font-family: var(--ldr-font-heading);
	font-weight: 600;
	font-size: 0.875rem;
	color: #fff;
	background: transparent;
	border: 0;
	padding: 0.5rem 0.75rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	text-decoration: none;
	border-radius: var(--ldr-radius);
	list-style: none;
}
.ldr-header[data-scrolled="true"] .ldr-header__signin,
.ldr-header[data-scrolled="true"] .ldr-header__account-trigger {
	color: var(--ldr-navy);
}
.ldr-header__account-trigger::-webkit-details-marker { display: none; }

.ldr-header__account { position: relative; }
.ldr-header__account-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--ldr-border);
	border-radius: var(--ldr-radius-lg);
	box-shadow: var(--ldr-shadow-lg);
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ldr-header__account-menu a {
	padding: 8px 10px;
	font-family: var(--ldr-font-heading);
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--ldr-navy);
	text-decoration: none;
	border-radius: var(--ldr-radius-md);
}
.ldr-header__account-menu a:hover { background: var(--ldr-secondary); }

.ldr-header__cta {
	padding: 0.5rem 1.5rem;  /* px-6 py-2 */
	font-size: 0.875rem;     /* text-sm */
}

/* Mobile toggle */
.ldr-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	color: #fff;
	padding: 0.5rem;
	cursor: pointer;
}
@media (min-width: 768px) {
	.ldr-header__toggle { display: none; }
}
.ldr-header[data-scrolled="true"] .ldr-header__toggle { color: var(--ldr-navy); }
.ldr-header__toggle .ldr-header__icon-close { display: none; }
.ldr-header[data-mobile-open="true"] .ldr-header__icon-open  { display: none; }
.ldr-header[data-mobile-open="true"] .ldr-header__icon-close { display: block; }

/* Mobile dropdown menu */
.ldr-header__mobile {
	background: #fff;
	border-top: 1px solid var(--ldr-border);
	box-shadow: var(--ldr-shadow-xl);
	animation: ldr-slide-down 200ms var(--ldr-ease);
}
.ldr-header__mobile[hidden] { display: none; }
@keyframes ldr-slide-down {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 768px) {
	.ldr-header__mobile { display: none !important; }
}

.ldr-header__mobile .ldr-container { padding-top: 1rem; padding-bottom: 1rem; }

.ldr-header__mobile-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ldr-header__mobile-link {
	display: block;
	padding: 12px 16px;
	border-radius: var(--ldr-radius-md);
	font-family: var(--ldr-font-heading);
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: var(--ldr-tracking-nav);
	text-transform: uppercase;
	color: var(--ldr-navy);
	text-decoration: none;
}
.ldr-header__mobile-link:hover { background: var(--ldr-muted); }
.ldr-header__mobile-link.is-active {
	background: var(--ldr-lake-light);
	color: var(--ldr-lake-dark);
}
.ldr-header__mobile-link.is-destructive { color: var(--ldr-destructive); }

.ldr-header__mobile-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--ldr-border);
}
.ldr-header__mobile-cta {
	width: 100%;
	justify-content: center;
}

/* Account dropdown — hide native marker on Firefox */
details.ldr-header__account > summary { list-style: none; }

/* Add space below header on inner pages so content doesn't sit underneath the fixed nav */
body:not(.home) { padding-top: 0; }
