/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    padding-top: 1px;
    background-image:
      linear-gradient(90deg, rgba(15,29,50,.62), rgba(15,29,50,.35) 55%, rgba(15,29,50,.18)),
      url("/static/images/water.jpg");
}

main {
  min-height: 65vh;

  background-image:
    linear-gradient(90deg, rgba(15,29,50,.62), rgba(15,29,50,.35) 55%, rgba(15,29,50,.18)),
    url("/static/images/water.jpg");
  background-size:auto;
  background-position: center;
  background-repeat: repeat;
}

/* =========================================================
   HEADER (CLEAN)
   ========================================================= */

/* ---------- Header shell ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;

  /* align opacity with footer */
  background-color:#0f1d32;
  box-shadow: 0 10px 28px rgba(0,0,0, calc(.25 * var(--hdr, 0)));
  transition: background-color .12s linear, box-shadow .12s linear, backdrop-filter .25s ease;
}

/* Home page hero sits behind header */
body.home-hero-page .site-header{
  position: fixed;
  left: 0;
  right: 0;
  /* default transparent until JS sets --hdr */
  --hdr: 0;
}

/* Header “surface” (desktop + mobile) */
.site-header .header-container,
.site-header .mobile-nav{
  background: rgba(18, 122, 98, 0.57);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

/* Transparent at top of hero */
.site-header.is-transparent .header-container,
.site-header.is-transparent .mobile-nav{
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
}

/* Solid after scroll */
.site-header.is-scrolled .header-container,
.site-header.is-scrolled .mobile-nav{
  background: rgba(18, 122, 98, 0.57);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}

/* Default transparent on home hero before JS runs */
body.home-hero-page .site-header .header-container,
body.home-hero-page .site-header .mobile-nav{
  background: transparent;
  box-shadow: none;
}


/* ---------- Desktop header layout (default) ---------- */
.header-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: #fff;
  padding: 10px 20px;
}

/* Center stack holds logo row + nav */
.header-center{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Logo row + promo/phone */
.header-top{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

/* Logo + title row */
.header-text{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.header-text a{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.header-text h1{
  margin: 0;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 2.75rem;
  font-style: italic;
}

/* ---------- Nav (ONE system) ---------- */
.navbar{
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Use .nav-list as the only nav list */
.nav-list{
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0 1.25rem;

  display: flex;
  align-items: center;

  /* spread across the header */
  justify-content: center;
  gap: clamp(.75rem,2.2vw,3rem);
  flex-wrap: wrap;
  row-gap: .5rem;
}

.nav-list li{
  flex: 0 0 auto;         /* equal-width columns */
  text-align: center;
  position: relative;  /* for dropdown positioning */
}

.nav-list a{
  display: block;
  padding: 0.6rem 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.nav-list a:hover{
  color: #00AEEF;
}

/* Keep nav text readable when transparent over hero */
.site-header.is-transparent .nav-list a,
.site-header.is-transparent .header-text h1{
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.site-header.is-transparent .nav-list a:hover{
  color: #00AEEF !important;
}


/* ---------- Dropdown ---------- */
.dropdown{
  position: relative;
  display: inline-block;
}

.dropdown-content{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 200px;
  z-index: 1000;

  background-image:
    linear-gradient(90deg, rgba(15,29,50,.62), rgba(15,29,50,.35) 55%, rgba(15,29,50,.18)),
    url("/static/images/water.jpg");
  box-shadow: 0px 8px 16px rgba(0,0,0, calc(.2 * var(--hdr, 1)));
  backdrop-filter: blur(calc(10px * var(--hdr, 0)));
  border: 1px solid rgba(255,255,255, calc(.45 * (1 - var(--hdr, 0))));
}

.dropdown:hover .dropdown-content{
  display: block;
}

.dropdown-content a{
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  text-align: left;
}

.dropdown-content a:hover{
  background-color: rgba(18, 122, 98, 0.57);
}


/* ---------- Promo + Phone (hidden by default) ---------- */
.header-promo,
.header-phone{
  display: none !important;
}


/* =========================================================
   DESKTOP WIDE (>= 1200px): add promo + phone and use grid
   ========================================================= */
@media (min-width: 1200px){

  .header-promo,
  .header-phone{
    display: flex !important;
    align-items: center;
    white-space: nowrap;
  }

  .header-container{
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 10px 40px;
  }

  .header-top{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .header-promo{ justify-self: start; }
  .header-phone{ justify-self: end; }

  .header-promo a{
    color: #b9dcff;
    font-weight: 700;
    text-decoration: none;
  }
  .header-promo a:hover{
    text-decoration: underline;
  }

  .header-phone a{
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    opacity: 0.95;
  }
  .header-phone a:hover{
    opacity: 1;
    text-decoration: underline;
  }
  .header-container,
  .header-center,
  .navbar{
    max-width: none;
    width: 100%;
  }

}


/* =========================================================
   MOBILE (<= 767.98px): center logo/title; hamburger right
   ========================================================= */
@media (max-width: 767.98px){

  .mobile-nav .header-text{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 8px 48px 8px 12px; /* room for hamburger */
  }

  .mobile-nav .header-text a{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
  }

  .mobile-nav .navbar-toggler{
    position: absolute;
    right: 12px;
  }

  .mobile-nav .header-text img{
    height: 64px;
    width: auto;
  }

  .mobile-nav .header-text h1{
    font-size: 1.35rem;
    line-height: 1.1;
    margin: 0;
    max-width: 100%;
  }
}
