@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Base resets */
* { 
   box-sizing: border-box;
 }

html, body { 
   margin: 0; 
   padding: 0; 
  font-family: "Inter", sans-serif; 
}

/* Header / Nav */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: #FFF; /* requested color */
	color: #fff;
}

.nav-container {
	width: 100%;
	margin: 0 auto;
	padding: 0 16px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative; 
   border-bottom: 2px solid #024173; /* subtle border to separate from content */
}

.logo {
	display: inline-flex;
	align-items: center;
	height: 100%;
   text-decoration: none;
}

.logo-img {
	height: 50px;
	width: auto;
	display: block;
}

/* Brand text next to logo */
.brand-name {
	margin-left: -2px;
	font-weight: 700;
	color: #024173;
	font-size:11px;
	line-height: 1.05;
	white-space: normal;
	/* ensure it stays within the height of the 50px logo image */
	max-height: 50px;
	display: inline-block;
	overflow: hidden;
	/* give it a predictable width so three lines fit nicely */
	max-width: clamp(120px, 22vw, 260px);
	overflow-wrap: anywhere;
}



.nav-toggle {
	display: none; /* shown on mobile */
	background: transparent;
	border: none;
	padding: 8px;
	margin-left: auto; /* keep it to the right on small screens */
	cursor: pointer;
}

.nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.primary-nav { display: flex; align-items: center; }

.nav-list {
	list-style: none;
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
}

.nav-item a {
   font-weight: 600;
	color: #024173;
	text-decoration: none;
	padding: 10px 12px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	position: relative; /* for underline indicator */
	transition: color 180ms ease;
}

/* Dropdown containers */
.nav-item.has-submenu { position: relative; }
.submenu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 260px;
	background: #ffffff;
	color: #024173;
	border: 1px solid rgba(2,65,115,0.15);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
	z-index: 1000;
}
.submenu li a {
	display: block;
	color: #024173;
	padding: 10px 16px;
}
.submenu li a:hover,
.submenu li a:focus-visible { background: rgba(2,65,115,0.08); }

/* Show dropdown on hover (desktop) */
@media (min-width: 1600px) {
	.nav-item.has-submenu:hover > .submenu,
	.nav-item.has-submenu:focus-within > .submenu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	/* Nested submenu positioning to the right */
	.submenu .has-submenu { position: relative; }
	.submenu .has-submenu > .submenu {
		top: -8px;
		left: 100%;
		margin-left: 8px;
	}

	/* Prevent right-edge overflow for last items (e.g., Utility) */
	.nav-list > li.has-submenu:nth-last-child(-n+2) > .submenu {
		left: auto;
		right: 0;
	}
}

/* Underline indicator using ::after */
.nav-item a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  background: #C8A451; /* requested underline color */
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-item a:hover::after,
.nav-item a:focus-visible::after { transform: scaleX(1); }

/* Active/current page indicator persists */
.nav-item a.active::after,
.nav-item a[aria-current="page"]::after { transform: scaleX(1); }

/* Page content spacer for demo */
.page-content { padding: 24px 16px; }


/* Mobile styles */
@media (max-width: 1600px) {
	.nav-toggle { display: inline-flex; }

	.primary-nav {
		position: absolute;
		right: 0;
		left: 0;
		top: 100%;
		/* background: #024173; */
		overflow: hidden;
		display: block; /* container for sliding panel */
	}

	/* Closed state by default */
	.primary-nav:not(.open) .nav-list { max-height: 0; opacity: 0; }

	.nav-list {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0;
		padding: 8px;
		border-top: 1px solid rgba(255,255,255,0.15);
		transition: max-height 250ms ease, opacity 200ms ease;
		max-height: 600px; /* open state default, overridden when closed */
	}

	.primary-nav.open .nav-list { 
      max-height: 660px; 
      opacity: 1; 
      background-color: #024173;
   }

	.nav-item a { 
      width: 100%; 
      padding: 14px 12px; 
      color: #ffffff; 
   }

	.nav-item + .nav-item a { 
      border-top: 1px solid rgba(255,255,255,0.12);
    }

	/* Mobile collapsible submenus */
	.nav-item.has-submenu > .submenu {
		position: relative;
		top: 0;
		left: 0;
		min-width: unset;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: rgba(255,255,255,0.06);
		padding: 0;
		max-height: 0;
		overflow: hidden;
		opacity: 1; /* keep readable when expanded */
		visibility: visible; /* controlled by height */
		transform: none;
		transition: max-height 250ms ease;
	}
	.nav-item.has-submenu.open > .submenu { 
      max-height: 800px; 
   }

	.submenu li a { 
      color: #ffffff; 
      padding: 12px 20px; 
   }

	.submenu .submenu li a { 
      padding-left: 32px; 
   }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
	.nav-item a,
	.nav-list { transition: none !important; }
}


/* ==========================
	 ICU Hero Carousel (hc-*)
	 Namespaced to avoid conflicts
============================ */
.hc-hero-carousel {
	position: relative;
	width: 100%;
	height: 92.8dvh;
	min-height: 460px;
	overflow: hidden;
	background: #024173; /* fallback */
}

.hc-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 700ms ease-in-out;
	z-index: 0;
}
.hc-slide.is-active { opacity: 1; z-index: 2; }

.hc-slide-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hc-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(2,65,115,0.80), rgba(2,65,115,0.58), rgba(2,65,115,0.18));
}

.hc-slide-content {
	position: relative;
	z-index: 3;
	height: 100%;
	display: flex;
	align-items: center;
}

.hc-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.hc-content-wrap { 
   max-width: 48rem; 
   display: flex; 
   flex-direction: column; 
   align-items: flex-start; 
}

.hc-subtitle {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	background-color: rgba(255, 255, 255, 0.18);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-radius: 9999px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	margin-bottom: 16px;
	transform: translateY(10px);
	opacity: 0;
	transition: all 1000ms;
	transition-delay: 100ms;
}

.hc-title {
	font-size: clamp(2rem, 5vw, 4.25rem);
	font-weight: 800;
	color: #C8A451;
	line-height: 1.15;
	margin: 0 0 14px;
	transform: translateY(10px);
	opacity: 0;
	transition: all 1000ms;
	transition-delay: 200ms;
}

.hc-description {
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	color: rgba(255, 255, 255, 0.92);
	max-width: 44rem;
	margin: 0 0 22px;
	transform: translateY(10px);
	opacity: 0;
	transition: all 1000ms;
	transition-delay: 300ms;
}

.hc-cta {
	transform: translateY(10px);
	opacity: 0;
	transition: all 1000ms;
	transition-delay: 400ms;
}

.hc-btn {
	display: inline-flex;
	align-items: center;
	background-color: #fff;
	color: #024173;
	font-size: 1.05rem;
	font-weight: 700;
	padding: 14px 22px;
	border-radius: 9999px;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.hc-btn:hover { filter: brightness(1.02); }
.hc-btn-icon { margin-left: 8px; transition: transform 200ms ease; }
.hc-btn:hover .hc-btn-icon { transform: translateX(4px); }

/* activate content animations */
.hc-slide.is-active .hc-subtitle,
.hc-slide.is-active .hc-title,
.hc-slide.is-active .hc-description,
.hc-slide.is-active .hc-cta { transform: translateY(0); opacity: 1; }

/* Dots */
.hc-navigation-dots {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 10px;
}
.hc-dot {
	width: 10px;
	height: 10px;
	background-color: rgba(255,255,255,0.6);
	border-radius: 9999px;
	border: 0;
	cursor: pointer;
	transition: all 250ms ease;
}
.hc-dot[aria-selected="true"] { width: 40px; background: #C8A451; }
.hc-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Arrows */
.hc-nav-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 9999px;
	background-color: rgba(255, 255, 255, 0.2);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border: none;
	color: #fff;
	cursor: pointer;
	transition: background-color 250ms ease;
}
.hc-nav-button:hover { background-color: rgba(255, 255, 255, 0.35); }
.hc-nav-button-prev { left: 16px; }
.hc-nav-button-next { right: 16px; }
.hc-nav-button svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Progress bar */
.hc-progress-container {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 6px;
	background-color: rgba(255,255,255,0.4);
	z-index: 5;
}
.hc-progress-bar { height: 100%; background: #C8A451; width: 0%; transition: width 6000ms linear; }
.hc-progress-bar.is-paused { transition-duration: 0ms; }

@media (max-width: 700px) {
	.hc-hero-carousel { height: calc(100vh - 60px); }
	.hc-navigation-dots { bottom: 18px; }
}

/* ==========================
	 ICU Home Footer (hf-*)
	 Namespaced to index only
========================== */
.hf-footer { color: #fff; background: linear-gradient(135deg, #024173 0%, #1a5490 100%); position: relative; }
.hf-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #C8A451, #d4b666); }

.hf-top { padding: 48px 0; position: relative; z-index: 1; }
.hf-container { max-width: 98%; margin: 0 auto; padding: 0 16px; }
.hf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 28px; align-items: start; }

.hf-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.hf-logo img { width: 44px; height: auto; display: block; }
.hf-brand-name { font-weight: 800; line-height: 1.1; font-size: clamp(14px, 2.4vw, 18px); }
.hf-tagline { margin: 10px 0 0; opacity: .95; max-width: 520px; }

.hf-heading { font-size: 1.05rem; font-weight: 800; color: #C8A451; margin: 4px 0 12px; }
.hf-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hf-list a { color: #fff; text-decoration: none; opacity: .92; }
.hf-list a:hover { color: #d4b666; }

.hf-address { font-style: normal; opacity: .95; line-height: 1.5; }
.hf-phone, .hf-email { margin: 8px 0 0; }
.hf-phone a, .hf-email a { color: #fff; text-decoration: none; }
.hf-phone a:hover, .hf-email a:hover { color: #d4b666; }

.hf-social { display: flex; gap: 10px; margin-top: 12px; }
.hf-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: #024173; background: #fff; border-radius: 50%; transition: transform 150ms ease, filter 150ms ease; }
.hf-social a:hover { filter: brightness(1.03); transform: translateY(-2px); }

.hf-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 14px 0; background: rgba(0,0,0,.08); }
.hf-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hf-copy { margin: 0; font-size: .95rem; opacity: .92; }
.hf-legal { display: flex; list-style: none; gap: 14px; margin: 0; padding: 0; }
.hf-legal a { color: #fff; text-decoration: none; opacity: .92; }
.hf-legal a:hover { color: #d4b666; }

@media (max-width: 900px) {
	.hf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.hf-grid { grid-template-columns: 1fr; }
	.hf-bottom-inner { flex-direction: column; align-items: flex-start; }
}

