/* Custom CSS Only */

.hero p.text-sand-200\/60.text-sm.mb-4, .hero .text-sand-200\/40 {
	color: white;
}

/* Nav link hover — matches underline colour per header state */
#site-header:not(.header-scrolled) .nav-link:hover,
#site-header:not(.header-scrolled) .nav-dropdown-trigger:hover {
	color: #fff !important;
}

#site-header.header-scrolled .nav-link:hover,
#site-header.header-scrolled .nav-dropdown-trigger:hover {
	color: #2aa3cc !important;
}

/* Services dropdown */
.nav-dropdown {
	position: relative;
	display: inline-block;
	vertical-align: middle;
}

/* Invisible bridge so hover survives the gap between trigger and menu */
.nav-dropdown::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 0.625rem;
}

.nav-dropdown-trigger {
	background: none;
	border: none;
	cursor: pointer;
	font: inherit;
	padding: 0;
	margin: 0;
}

.nav-dropdown-chevron {
	width: 1.25rem;
	height: 1.25rem;
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
	transition: transform 0.25s ease;
}

.nav-dropdown.is-open .nav-dropdown-chevron {
	transform: rotate(180deg);
}

.nav-dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	min-width: 15rem;
	padding: 0.5rem;
	border-radius: 0.75rem;
	background: #0d4f6b;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	z-index: 100;
}

@media (min-width: 768px) {
	.nav-dropdown:hover .nav-dropdown-menu,
	.nav-dropdown.is-open .nav-dropdown-menu {
		display: flex;
		flex-direction: column;
	}
}

.nav-dropdown.is-open::after {
	height: 0.75rem;
	left: -0.5rem;
	right: -0.5rem;
}

.nav-dropdown-link {
	position: relative;
	display: block;
	width: 100%;
	padding: 0.625rem 0.875rem;
	border-radius: 0.5rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown-link:hover {
	color: #fff;
	background: #155f7a;
}

#site-header,
#site-header nav {
	overflow: visible;
}

#site-header .header-bar {
	overflow: visible;
}

#menu-toggle {
	position: relative;
	z-index: 60;
}

#menu-toggle .hamburger-icon {
	position: relative;
	display: block;
	width: 1.25rem;
	height: 1.125rem;
	overflow: visible;
}

.menu-icon-bar {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	transform-origin: center;
	transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.menu-icon-bar:nth-child(1) {
	top: 0;
}

.menu-icon-bar:nth-child(2) {
	top: 8px;
}

.menu-icon-bar:nth-child(3) {
	top: 16px;
}

#menu-toggle.is-open .menu-icon-bar:nth-child(1),
#menu-toggle.is-open .menu-icon-bar:nth-child(3) {
	top: 8px;
}

#menu-toggle.is-open .menu-icon-bar:nth-child(1) {
	transform: rotate(45deg);
}

#menu-toggle.is-open .menu-icon-bar:nth-child(2) {
	opacity: 0;
}

#menu-toggle.is-open .menu-icon-bar:nth-child(3) {
	transform: rotate(-45deg);
}

#mobile-menu {
	display: none;
	opacity: 0;
	max-height: calc(100dvh - 5rem);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transition: opacity 0.25s ease;
	position: relative;
	z-index: 55;
}

#mobile-menu.mobile-menu-open {
	opacity: 1;
}

.mobile-services summary {
	list-style: none;
	cursor: pointer;
}

.mobile-services summary::-webkit-details-marker {
	display: none;
}

.mobile-services summary::marker {
	content: '';
}

.mobile-services-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	font-size: 1.125rem;
	line-height: 1.75rem;
	color: #0e2d38;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	transition: color 0.15s ease;
}

.mobile-services-toggle:hover {
	color: #1a7595;
}

.mobile-services-chevron {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
	transition: transform 0.25s ease;
}

.mobile-services[open] .mobile-services-chevron {
	transform: rotate(180deg);
}

.mobile-services-link {
	display: block;
	font-size: 1.0125rem;
	line-height: 1.575rem;
	color: #0e2d38;
	padding-top: 0.375rem;
	padding-bottom: 0.375rem;
	transition: color 0.15s ease;
}

.mobile-services-link:hover {
	color: #1a7595;
}

/* Service page shared */
.service-intro {
	text-align: center;
}

.service-intro p {
	text-align: center;
}

.service-hero-title {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

/* Hero typography */
.hero-title {
	font-size: 2.25rem;
	line-height: 1.15;
}

.hero-subtitle {
	font-size: 1rem;
	line-height: 1.5rem;
}

@media (min-width: 768px) {
	.hero-title {
		font-size: 3rem;
	}

	.hero-subtitle {
		font-size: 1.1rem;
		line-height: 1.625rem;
	}
}

@media (min-width: 1024px) {
	.hero-title {
		font-size: 4rem;
	}

	.hero-subtitle {
		font-size: 1.2rem;
		line-height: 1.7rem;
	}
}

/* Sitewide button sizing — matches header Get Started */
.btn-primary {
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	gap: 0.5rem;
}

.btn-primary-light {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: 9999px;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
	background: #fff;
	color: #0d4f6b;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
}

.btn-primary-light:hover {
	background: #faf8f5;
}

.btn-outline-light {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: 9999px;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: all 0.2s ease;
}

.btn-outline-light:hover {
	background: rgba(255, 255, 255, 0.2);
}

.btn-seafoam {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: 9999px;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
	color: #fff;
	background-color: rgb(91 196 172);
	box-shadow: 0 10px 15px -3px rgba(13, 79, 107, 0.2);
	transition: all 0.2s ease;
}

.btn-seafoam:hover {
	background-color: rgb(62 181 154);
}

/* Hero — full width; vertically centred on mobile (incl. iOS Safari) */
.hero > .container-narrow {
	width: 100%;
}

@media (max-width: 767px) {
	.hero {
		display: flex;
		flex-direction: column;
		min-height: 50svh;
		min-height: 50dvh;
	}

	.hero.min-h-screen {
		min-height: 100svh;
		min-height: 100dvh;
	}

	.hero > .container-narrow {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 0;
		padding-top: calc(4rem + env(safe-area-inset-top, 0px));
		padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
		box-sizing: border-box;
	}
}

@media (min-width: 768px) {
	/* Service page heroes only — homepage uses .min-h-screen */
	.hero:not(.min-h-screen) {
		min-height: 65vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.hero:not(.min-h-screen) > .container-narrow {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		justify-content: center;
		width: 100%;
	}

	.hero.min-h-screen {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 100vh;
		min-height: 100dvh;
	}

	.hero.min-h-screen > .container-narrow {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		justify-content: center;
		width: 100%;
		padding-top: 7rem;
		padding-bottom: 6rem;
	}
}

/* Section shape dividers */
.shape-divider {
	line-height: 0;
	font-size: 0;
	overflow: hidden;
	width: 100%;
}

.shape-divider svg {
	display: block;
	width: 100%;
	height: 2.5rem;
	margin-bottom: -1px;
}

.shape-divider--hero {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	overflow: hidden;
	pointer-events: none;
	line-height: 0;
}

.shape-divider--hero svg {
	display: block;
	width: 100%;
	height: 2.5rem;
	margin-bottom: -1px;
}

.min-h-screen.hero .shape-divider--hero svg {
	height: 3.5rem;
}

.shape-divider--footer {
	line-height: 0;
	overflow: hidden;
	width: 100%;
}

.shape-divider--footer svg {
	display: block;
	width: 100%;
	height: 2.5rem;
	margin: 0;
}

@media (min-width: 768px) {
	.shape-divider svg,
	.shape-divider--hero svg,
	.shape-divider--footer svg {
		height: 5rem;
	}

	.min-h-screen.hero .shape-divider--hero svg {
		height: 8rem;
	}
}

@media (min-width: 1024px) {
	.min-h-screen.hero .shape-divider--hero svg {
		height: 10rem;
	}
}

/* Hero entrance — CSS-only fade in */
@keyframes heroFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.hero-animate {
	opacity: 0;
	animation: heroFadeIn 0.6s ease forwards;
}

.hero-animate[data-hero-delay="0.1"] {
	animation-delay: 0.1s;
}

.hero-animate[data-hero-delay="0.15"] {
	animation-delay: 0.15s;
}

.hero-animate[data-hero-delay="0.2"] {
	animation-delay: 0.2s;
}

.hero-animate[data-hero-delay="0.3"] {
	animation-delay: 0.3s;
}

.hero-animate[data-hero-delay="0.5"] {
	animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
	.hero-animate {
		animation: none;
		opacity: 1;
	}
}

.section-padding-tight-top {
	padding-top: 3rem;
}

@media (min-width: 768px) {
	.section-padding-tight-top {
		padding-top: 4rem;
	}
}

.section-padding-tight-bottom {
	padding-bottom: 3rem;
}

@media (min-width: 768px) {
	.section-padding-tight-bottom {
		padding-bottom: 4rem;
	}
}
