/* ===============================
   HEADER (FULL)
================================ */

.ws-nowrap { white-space: nowrap; }

/* ✅ Prevent layout jump + reduce "flash" while header loads */
#site-header {
  min-height: 160px;              /* reserve space close to header height */
  opacity: 0;                     /* hide until injected */
  transition: opacity 120ms ease; /* subtle fade-in */
}
#site-header.is-loaded {
  opacity: 1;
}
@media (max-width: 991px) {
  #site-header { min-height: auto; }
}

.header-wrapper {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1100;
}

/* container transparent */
.header-wrapper .container {
  background: transparent;
}

/* MAIN HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LEFT: LOGO */
.header-left {
  flex: 0 0 auto;
}

.site-logo img {
  display: block;
  height: 150px;
  width: auto;
}

/* RIGHT COLUMN: top row top, nav bottom */
.header-right {
  display: flex;
  flex-direction: column;
  height: 150px;
  padding: 30px 0;        /* top + bottom padding inside logo height */
  justify-content: space-between;
  align-items: flex-end;
  box-sizing: border-box;
}

/* TOP ROW */
.header-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 13px;
}

.header-top a,
.header-top span {
  color: #2baab1;
  font-weight: 600;
  text-decoration: none;
}

.header-top i { margin-right: 6px; }

/* ===============================
   HAMBURGER
================================ */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.nav-toggle:focus { outline: none; }

.nav-toggle .fa {
  transition: transform 180ms ease;
}

/* When open: slight pop */
.nav-toggle.is-open .fa {
  transform: rotate(90deg);
}

/* ===============================
   NAV (desktop)
================================ */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: flex-end;
  align-items: flex-end;

  /* tighter spacing */
  gap: 0;
}

/* LINKS */
.site-nav a,
.site-nav .nav-label {
  text-decoration: none;
  font-weight: 600;
  color: #2d9391;

  /* ✅ force uppercase automatically */
  text-transform: uppercase;

  padding: 6px 0 0;           /* remove side padding so spacing is controlled */
  display: inline-block;
  cursor: pointer;
  line-height: 1.1;

  /* ✅ needed for active underline */
  position: relative;
  padding-bottom: 6px;         /* space for underline */
}

.site-nav a:hover,
.site-nav .nav-label:hover {
  color: #2baab1;
}

/* =========================================================
   ✅ ACTIVE UNDERLINE (ANIMATED SLIDE-IN)
   Works with: aria-current="page" (set by header.js)
========================================================= */

/* Underline exists for ALL links but hidden, so it can animate */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #277f7e; /* line colour */

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

/* Active link triggers the slide-in */
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ✅ DESKTOP: 5px spacing + vertical separators */
.site-nav ul li {
  display: flex;
  align-items: flex-end;
}

/* give each item 5px padding around it */
.site-nav ul li > a,
.site-nav ul li > .nav-label {
  padding-left: 5px;
  padding-right: 5px;
}

/* vertical separator + only 5px spacing between items */
.site-nav ul li + li {
  border-left: 1px solid #ccc;
  margin-left: 5px;
  padding-left: 5px;
}

/* DROPDOWNS */
.site-nav .dropdown {
  position: relative;
}

.site-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 0;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0,0,0,.10);
  z-index: 2000;
}

.site-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.site-nav .dropdown-menu a {
  display: block;
  padding: 8px 14px;
  font-weight: 400;
  color: #777;
  line-height: 1.2;
  text-transform: none; /* dropdown items can stay normal case if you want */
}

.site-nav .dropdown-menu a:hover {
  background: rgba(45,147,145,0.08);
  color: #2d9391;
}

/* ===============================
   BODY SCROLL LOCK (menu open)
================================ */
body.nav-open {
  overflow: hidden;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 991px) {

  /* ✅ Row layout: logo left, hamburger right */
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  /* ✅ Keep logo from shrinking */
  .header-left {
    flex: 0 0 auto;
  }

  /* ✅ Mobile logo size requested */
  .site-logo img {
    height: 100px;
  }

  /* ✅ RIGHT COLUMN: just hamburger */
  .header-right {
    height: auto;
    width: auto;
    padding: 0;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
  }

  /* show hamburger */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* hide nav by default */
  .site-nav {
    display: none;
    width: 100%;
  }

  /* show nav when open */
  .site-nav.is-open {
    display: block;
    width: 100%;
  }

  /* hamburger list layout */
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-top: 10px;
  }

  /* remove desktop vertical separators in hamburger */
  .site-nav ul li + li {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
  }

  /* ✅ LEFT align items and give consistent spacing */
  .site-nav.is-open ul li {
    position: relative;
    padding: 12px 0;
    width: 100%;
    text-align: left;
  }

  /* ✅ indent for clickable text */
  .site-nav.is-open ul li > a,
  .site-nav.is-open ul li > .nav-label {
    display: inline-block;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* ✅ separators aligned to the text indent (not full-bleed) */
  .site-nav.is-open ul li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: 0;
    width: calc(100% - 24px);
    height: 1px;
    background: #ddd;
  }

  /* Mobile dropdowns (tap accordion) */
  .site-nav .dropdown-menu {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 10px 12px;
    min-width: 0;
  }

  .site-nav .dropdown.open > .dropdown-menu {
    display: block;
  }

  /* keep top bar hidden on small screens */
  .header-top {
    display: none;
  }
}