body {background-color: #f1f1f1 !important;}
body.nav-open {
  overflow: hidden;
}

/* Backdrop overlay */
#overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show backdrop */
#overlay-backdrop.active {
  display: block;
  opacity: 1;
	z-index: 1;
}

.site-header {
  background-image: linear-gradient(to right, #45b9c4, #1d4458);
  padding: 5px 30px 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  min-height: 100px;
}

.header-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo-absolute {
  position: absolute;
  top: 10px;
  left: 30px;
  background: #fff;
  padding: 14px 12px;
/*  border-radius: 8px; */
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-absolute img {
 /* max-width: 150px; */
  width: 135px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* <<< Important: right-align all children */
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.phone {
  color: #fff;
  font-size: 13px;
	margin:2px 10px 0 4px;
}
.phone_link { text-decoration: none;}
.fphone {font-size: 12px !important;}

.social-icons a {
  color: #fff;
  font-size: 12px;
  margin-left: 10px;
}

.social-icons a:first-child {
  margin-left: 0;
}

/* Search + Hamburger */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-icon, .hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.hamburger {
  font-size: 28px;
}

/* Main Nav aligned right */
.main-nav {
  display: flex;
  padding-top: 30px;
  gap: 20px;
  justify-content: flex-end; /* <<< Align menu to right */
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: #fff;
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 500;
}

.mobile-actions {
  display: none; /* Hide on desktop */
}

.search-icon, .hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.hamburger {
  font-size: 28px;
}

/* Expanding search input (hidden by default) */

.search-form {
  max-height: 0;
  overflow: hidden;
  text-align: center;
/*  transition: max-height 0.4s ease-out; */
  padding: 27px 20px 0 0;
  opacity: 0;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
  backdrop-filter: blur(4px);
}

.search-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
input:focus {
    outline: none;
    border: none;
}
.search-form input {
  width: 200px;
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex-grow: 1;
}

.search-button {
  position: relative;
  padding:1px 13px 3px 13px;
  font-size: 14px;
  background-color: #0c3e57;
  color: white;
  border-radius: 4px;
  border:1px solid #ccc;
/*    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: rgb(255, 255, 255); 
  border-left:none;*/
  cursor: pointer;
  margin:0 20px 0 5px;
}

.search-form.show {
  max-height: 100px;
	opacity: 1;
	margin-top: -7px;
}
.search-close-mark { color:#fff;cursor: pointer; margin:5px -12px 0 0; }

#nav-group {
  display: flex;
  padding-top: 30px;
  gap: clamp(20px, 2vw, 100px);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.close-nav {display: none;}
.mobile-search-form {display: none;}


/* --- Mobile Styles --- */
@media (max-width: 768px) {
  .header-top {
    justify-content: space-between;
  }

  .logo-absolute img {
    width: 115px;
  }

  .top-bar {
    display: none; /* Hide phone + social on mobile */
  }
  .mobile-nav {
    display: flex;
	justify-content: flex-end;
	widows: 100%;
	  margin-top: 15px;
  }
 .main-nav a {
	  font-size: 16px;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out;
	padding-top: 2px;
  }

  .main-nav.show {
    display: flex;
    max-height: 500px;
    transition: max-height 0.5s ease-in;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
  }
	.search-form {
    display: none;
    text-align: center;
  }
	
	.desktop-search-icon {display: none;}
	
	#nav-group {
	  position: fixed;
	  top: 0;
	  right: -220px; /* start offscreen */
	  width: 220px;
	  height: 100vh;
	  background-color: #1d4458;
	  display: flex;
	  flex-direction: column;
	  justify-content: flex-start;
	  align-items: flex-start;
	  padding: 50px 20px 20px;
	  gap: 20px;
	  z-index: 1000;
	  transition: right 0.4s ease-in-out;
	}

	/* When shown, slide it in */
	#nav-group.show {
	  right: 0;
	}
	
	.close-nav {
	  position: absolute;
	  top: 5px;
	  right: 16px;
	  font-size: 28px;
	  color: #fff;
	  cursor: pointer;
	  z-index: 1001;
	}
	
	.mobile-search-form {
	  display: none;
	  margin-right: 10px;
	  align-items: center;
	  gap: 6px;
	}
	
	.mobile-search-form.show {
	  display: flex; /* Show and make inline-flex */
	}

	.mobile-search-form input {
	  padding: 6px 8px;
	  font-size: 14px;
	  border-radius: 4px;
	  border: 1px solid #ccc;
	  flex: 1;
	}

	.mobile-search-form button {
	  background: none;
	  border: none;
	  color: #1d4458;
	  font-size: 18px;
	  cursor: pointer;
	}

@media (max-width: 550px) {
	.logo-absolute {left:20px;}
}

/*	
	#nav-group {  display: flex; position: absolute; top:60px; right:0; width:200px; z-index: 100;
	flex-direction: column;
    align-items: left;
    gap: 10px;
    margin-top: 10px;
	padding-left: 14px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out;
	padding-top: 2px;
	background-color: #1d4458;
	min-height: 300px;
		justify-content: flex-start;
	} */
}
