/**
 * DSL Site Header — mirrors the header from www.dreamstartlabs.com
 *
 * Fixed top bar: transparent over hero areas, blurs to dark ocean on scroll.
 * White text, gold dot indicators, dropdown sub-menus, outline "Book a demo" CTA.
 */

body.dsl-has-site-header {
	padding-top: 64px !important;
}

.dsl-site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	height: 64px;
	background: transparent;
	transition: background-color 0.3s ease, backdrop-filter 0.3s ease, transform 0.3s ease;
}

.dsl-site-header--stuck {
	background-color: rgba(13, 35, 38, 0.88);
	backdrop-filter: blur(50px);
	-webkit-backdrop-filter: blur(50px);
	box-shadow: 0 1px 0 rgba(255, 179, 18, 0.12);
}

.dsl-site-header--hide:not(:hover) {
	transform: translateY(-100%);
}

.dsl-site-header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* --- Logo --- */

.dsl-site-header-logo img {
	height: 40px;
	width: auto;
	display: block;
	transition: height 0.3s ease;
}

.dsl-site-header-logo a {
	display: block;
	line-height: 0;
}

/* --- Navigation --- */

.dsl-site-header-nav {
	display: block;
}

.dsl-site-header-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
}

.dsl-site-header-menu-item {
	position: relative;
}

.dsl-site-header-menu-item > a {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 48px;
	padding: 0 14px;
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none !important;
	transition: color 0.25s ease;
	line-height: 1;
}

.dsl-site-header-menu-item > a::before {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #f99507;
	scale: 0;
	opacity: 0;
	transition: scale 0.25s ease, opacity 0.25s ease;
}

.dsl-site-header-menu-item > a:hover {
	color: #ffffff;
}

.dsl-site-header-menu-item > a:hover::before {
	scale: 1;
	opacity: 0.5;
}

/* Dropdown arrow for items with children */
.dsl-site-header-menu-item--has-dropdown > a::after {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='.8' stroke-width='2' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
	background-position: 50% center;
	background-repeat: no-repeat;
	opacity: 0.7;
	transition: opacity 0.25s ease, rotate 0.25s ease;
}

.dsl-site-header-menu-item--has-dropdown > a:hover::after {
	opacity: 1;
}

.dsl-site-header-menu-item--has-dropdown:hover > a::after {
	rotate: 180deg;
}

/* --- Sub-menu (dropdown) --- */

.dsl-site-header-submenu {
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%) translateY(8px);
	display: block;
	opacity: 0;
	visibility: hidden;
	background: linear-gradient(180deg, #1f4042 0%, #0d2326 80%);
	border-radius: 12px;
	padding: 8px 20px;
	margin: 0;
	list-style: none;
	min-width: 180px;
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
	box-shadow: 0 16px 40px rgba(13, 35, 38, 0.4);
}

.dsl-site-header-menu-item--has-dropdown:hover .dsl-site-header-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.dsl-site-header-submenu li a {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 12px;
	font-size: 0.9rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none !important;
	white-space: nowrap;
	transition: color 0.25s ease;
}

.dsl-site-header-submenu li a::before {
	content: "";
	display: block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: #f99507;
	scale: 0;
	transition: scale 0.25s ease;
}

.dsl-site-header-submenu li a:hover {
	color: #ffffff;
}

.dsl-site-header-submenu li a:hover::before {
	scale: 1;
}

/* --- CTA button --- */

.dsl-site-header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 28px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #ffffff;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	border-radius: 32px;
	text-decoration: none !important;
	transition: all 0.25s ease;
	white-space: nowrap;
	line-height: 1;
}

.dsl-site-header-cta:hover,
.dsl-site-header-cta:focus {
	background: #f99507;
	border-color: #f99507;
	color: #0d2326;
}

/* --- Responsive: hide nav on small screens, keep logo + CTA --- */

@media (max-width: 900px) {
	.dsl-site-header-nav {
		display: none;
	}

	.dsl-site-header-container {
		justify-content: space-between;
	}
}

@media (max-width: 600px) {
	.dsl-site-header-cta {
		padding: 0 16px;
		font-size: 0.85rem;
		height: 38px;
	}

	.dsl-site-header-logo img {
		height: 32px;
	}
}

/* --- Dark mode override: header always has the dark ocean background on DSL job pages --- */

body.dsl-jobs-public-page .dsl-site-header {
	background-color: rgba(13, 35, 38, 0.88);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

/* Ensure the existing Frappe navbar sits right below the DSL header */
body.dsl-jobs-public-page .navbar {
	margin-top: 0 !important;
}

body.dsl-jobs-public-page.dsl-jobs-form-success .dsl-site-header {
	position: fixed;
}

/* Adjust web-form-container top margin on job pages */
body.dsl-jobs-public-page .web-form-container {
	margin-top: 32px;
}

/* ================================================================
 * DSL Site Footer — mirrors the footer from www.dreamstartlabs.com
 * ================================================================ */

.dsl-site-footer {
	background: linear-gradient(180deg, #1f4042 0%, #0d2326 80%);
	padding-bottom: 32px;
	margin-top: 80px;
	color: #ffffff;
}

.dsl-site-footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* --- Content columns --- */

.dsl-site-footer-content {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	border-top: 1px solid #246061;
	padding-top: 40px;
	padding-bottom: 40px;
}

.dsl-site-footer-col-title {
	color: #fff2c6;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
}

.dsl-site-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.dsl-site-footer-menu li {
	position: relative;
}

.dsl-site-footer-menu li a {
	color: #ffffff;
	font-size: 0.95rem;
	text-decoration: none;
	transition: color 0.25s ease, text-decoration 0.25s ease;
	line-height: 1.8;
}

.dsl-site-footer-menu li a:hover {
	color: #ffcd4a;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- Social links --- */

.dsl-site-footer-social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding-bottom: 32px;
}

.dsl-site-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.8);
	transition: all 0.2s ease;
	position: relative;
}

.dsl-site-footer-social a:hover {
	color: #0d2326;
	background: #ffffff;
}

.dsl-site-footer-social a svg {
	width: 22px;
	height: 22px;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}

.dsl-site-footer-social a:hover svg {
	opacity: 1;
}

.dsl-site-footer-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Copyright bar --- */

.dsl-site-footer-copyright {
	border-top: 1px solid rgba(36, 96, 97, 0.6);
	padding-top: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.dsl-site-footer-copyright-menu ul {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dsl-site-footer-copyright-menu a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8rem;
	text-decoration: none;
	transition: color 0.25s ease;
}

.dsl-site-footer-copyright-menu a:hover {
	color: #ffffff;
}

.dsl-site-footer-copyright-text {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8rem;
}

/* --- Responsive footer --- */

@media (max-width: 768px) {
	.dsl-site-footer-content {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (max-width: 480px) {
	.dsl-site-footer-content {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.dsl-site-footer-copyright-menu ul {
		flex-direction: column;
		gap: 8px;
		align-items: center;
	}
}

/* ================================================================
 * Hide upstream Frappe navbar and footer
 * ================================================================ */

.dsl-hidden-upstream {
	display: none !important;
}

/* Adjust body top padding since upstream navbar is hidden */
body.dsl-has-site-header {
	padding-top: 64px !important;
}