/* Header styles copied from index.html (canonical). Edit this file to change header across all pages. */
/* Make the header sticky so it remains visible when scrolling */
.header-area.header-sticky {
	position: sticky;
	top: 0;
	z-index: 1100; /* above other content */
	background: rgba(255,255,255,0.98); /* near-opaque to avoid content bleed-through */
	backdrop-filter: blur(6px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-area.header-sticky .container { padding-left: 8px; padding-right: 8px; }

/* Fallback: if sticky is prevented by parent stacking/context, force fixed positioning
	 and push the main content down so it doesn't hide under the header. Use conservative
	 height of 70px which matches other theme rules; adjust if your header is taller. */
.header-area.header-sticky.force-fixed {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 1200 !important;
}

/* When header is fixed, offset the main content to avoid overlap. If your pages use a
	 different top-level content element, add an appropriate selector. */
.header-area.header-sticky.force-fixed + main {
	margin-top: 70px !important;
}

.header-area.header-sticky.force-fixed + .container {
	margin-top: 70px !important;
}

.main-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	width: 100%;
	position: relative;
}
.btn-outline-secondary:hover { border-color: #ffffff; }

.logo {
	flex: 0 0 clamp(100px, 12vw, 160px);
	width: clamp(100px, 12vw, 160px);
	margin-right: 12px;
}

.logo img { height: auto; object-fit: contain; }

.nav-container {
	flex: 1.6 1 0%;
	max-width: none;
	margin-left: 8px;
	transition: all 0.3s ease-in-out;
}

.navbar-collapse { transition: all 0.3s ease; }

@media (max-width: 575.98px) {
	.main-nav { padding: 10px; }
	.logo { width: 160px; }
	.container-fluid { position: relative; padding: 0; }
	.nav-container {
		top: 100%; left: 0; right: 0; margin-top: 0.5rem;
		padding: 10px; background-color: rgb(255 255 255 / 50%);
		border-radius: 4px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
		z-index: 1000; width: 50% !important; max-width: 50% !important; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box;
	}
	.navbar-collapse:not(.show) { display: none; }
	.menu-buttons > div { display: flex !important; gap: 4px !important; flex-direction: column !important; width: 100% !important; }
	.menu-buttons button, .menu-buttons a { font-size: 14px !important; padding: 8px 12px !important; margin-bottom: 5px; }
	.custom-dropdown { width: 100% !important; }
	.custom-dropdown button { width: 100%; text-align: center; }
	.custom-dropdown-menu { position: static; width: 100%; font-size: 14px; margin-top: 0; border-radius: 0 0 4px 4px; background-color: rgba(0, 129, 156, 0.97); border-color: rgba(255,255,255,0.06); }

	/* Ensure mobile dropdowns are visible when .show is applied (fallback for pages with stacking contexts) */
	.custom-dropdown-menu.show {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		z-index: 1250 !important;
	}
	.navbar-toggler { border-color: #005a79; color: #005a79; padding: clamp(4px, 1vw, 8px); width: clamp(35px, 8vw, 56px); height: clamp(35px, 8vw, 56px); display:flex; align-items:center; justify-content:center; }
	.navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(0,90,121,0.25); }
	.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 90, 121, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); width: clamp(24px, 5vw, 32px); height: clamp(24px, 5vw, 32px); }
}

@media (min-width: 576px) {
	.container-fluid.p-0 { display:flex; align-items:center; }
	.eddie-logo { width:70px; }
	.container-fluid.p-0 > .d-flex { flex:0 0 33.3333%; max-width:33.3333%; display:flex; align-items:center; gap:8px; }
	.logo { flex:0 0 auto; width: clamp(100px, 8vw, 160px); }
	.nav-container { flex:0 0 66.6666%; max-width:66.6666%; }
	.navbar-expand-sm .navbar-collapse { display:flex !important; width:100%; }
}

/* Media queries for responsive layout */
@media (max-width: 575.98px) {
	.main-nav { flex-direction: column; align-items: stretch; padding: 10px; }
	.logo { margin: 0 auto 15px; text-align: center; }
	.nav-container { width: 100%; margin-top: 5px; }
	.menu-buttons { flex-direction: column; gap: 10px; }
	#modal_trigger { width: 100%; }
}

/* Dropdown styling */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; min-width: 100%; margin-top: 2px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.dropdown-menu.show { display: block; }
.dropdown-menu-dark { background-color: #005a79; border: 1px solid rgba(255,255,255,0.1); }
.dropdown-menu-dark .dropdown-item { color: white; padding: 8px 12px; font-size: clamp(12px, 2.5vw, 14px); }
.dropdown-menu-dark .dropdown-item:hover { background-color: #0082ad; }
.custom-dropdown { position: relative; display: inline-block; }
.custom-dropdown-menu { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; padding: 8px 0; background-color: rgba(0, 129, 156, 0.70); border: 1px solid rgba(255,255,255); border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); list-style: none; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease; z-index: 1000; }
@media (max-width: 575.98px) { .custom-dropdown-menu { background-color: rgba(0, 129, 156, 0.97); } }
.custom-dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.custom-dropdown-menu li { padding: 0; margin: 0; }
.custom-dropdown-menu li a { display: block; padding: 8px 16px; color: white; text-decoration: none; font-size: clamp(12px, 2.5vw, 14px); transition: background-color 0.2s; }
.custom-dropdown-menu li a:hover { background-color: #0082ad; }
.custom-dropdown-menu.show ~ .overlay { position: fixed; inset: 0; z-index: 999; }

/* Modern 3D CTA buttons */
.nav-cta { --c1: #cef1f3; --c2: #005a79; background: linear-gradient(180deg, var(--c1), var(--c2)); color: #ffffff !important; border-color: #ffffff; padding: 8px 14px; transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease; position: relative; overflow: hidden; font-weight: 500; }
.nav-cta::after { content: ''; position: absolute; left: -10%; top: -40%; width: 120%; height: 60%; background: rgba(255,255,255,0.18); transform: rotate(-18deg); pointer-events: none; }
.nav-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 32px rgba(16,24,40,0.16); filter: saturate(1.05); }
.nav-cta:active { transform: translateY(0) scale(0.995); box-shadow: 0 6px 14px rgba(16,24,40,0.12); }

/* Placeholder color for inputs/textareas inside the message modal */
/* Scoped so it only affects the message modal used across pages (#messageModal) */
#messageModal input::placeholder,
#messageModal textarea::placeholder {
	color: #6c757d; /* muted gray that matches other form controls */
	opacity: 1; /* ensure visible in all browsers */
}

/* Vendor-prefixed selectors for older browsers */
#messageModal input::-webkit-input-placeholder,
#messageModal textarea::-webkit-input-placeholder { color: #6c757d; opacity: 1; }
#messageModal input::-moz-placeholder,
#messageModal textarea::-moz-placeholder { color: #6c757d; opacity: 1; }
#messageModal input:-ms-input-placeholder,
#messageModal textarea:-ms-input-placeholder { color: #6c757d; opacity: 1; }
#messageModal input:-moz-placeholder,
#messageModal textarea:-moz-placeholder { color: #6c757d; opacity: 1; }

