/* ------------------------------------------------------------------
  HEADER STYLES
------------------------------------------------------------------- */
.site-header {
  display: flex;
  flex-direction: column;
  background-image: url('/Assets/Images/Pawbackground.png'); /* Header background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #a8dbcf;  /* Background fallback color */
  padding: 0.5rem 1rem;
}

/* Top row: logo and client action buttons */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
}

/* Logo group */
.logo-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  height: 90px;
  margin-right: 0.5rem;
}
.title-group {
  display: flex;
  flex-direction: column;
}
.title-group h1 {
  color: #136171;  /* Primary heading color */
  font-size: 2rem;
  margin: 0;
}
.title-group .tagline {
  color: #a75e99;  /* Tagline accent color */
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Client action buttons */
.client-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.client-btn {
  padding: 0.5rem 1rem;
  background: #fff;           /* Button background */
  border: 2px solid #f86fd8; /* Accent border */
  color: #136171;            /* Button text color */
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  border-radius: 10px;
}
.client-btn:hover {
  background: #feb7d8;  /* Hover background accent */
}

.client-btn:visited {
  color: #136171;
}

/* ------------------------------------------------------------------
   NAVIGATION
------------------------------------------------------------------ */
.main-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.3rem;
}
.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.main-nav li {
  position: relative;
  padding: 0 1rem;
}
.main-nav > ul > li:not(:last-child)::after {
  content: "|";
  color: #136171;   /* Menu item separator color */
  position: absolute;
  right: 0;
  top: 10%;
  width: 1px;
  height: 80%;
}
.dropdown-menu li::after {
  content: none;
}
.main-nav a {
  color: #136171;  /* link color */
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.main-nav a:hover {
  color: #429baf;  /* Link hover color */
}
.main-nav a.active {
  color: #a75e99;  /* Active link accent */
  font-weight: bold;
}

/* ------------------------------------------------------------------
   DROPDOWN
------------------------------------------------------------------ */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  background-color: #feb7d8;  /* Dropdown background */
  border: 1px solid #136171;  /* Dropdown border */
  border-radius: 4px;
  padding: 0.1rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}
.dropdown-menu li {
  padding: 0.3rem 1rem;
}
.dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid #136171;
}
.dropdown-menu li a {
  text-decoration: none;
  color: #136171;
  font-size: 1rem;
  display: block;
  padding: 0.2rem;
}
.dropdown-menu a:hover {
  color: #429baf;
}
.dropdown:hover .dropdown-menu {
  display: block !important;
}
.dropdown-menu:not(:hover) {
  display: none;
}

/* ------------------------------------------------------------------
   RESPONSIVE (max‑768px and 600px)
------------------------------------------------------------------ */
@media (max-width: 768px) {
    .header-top {
      align-items: flex-start;
      position: relative;
    }

    .dropdown-menu {
      display: none !important;
      visibility: hidden;
    }

  .main-nav {
    justify-content: center;
    width: 100%;
  }

  .main-nav ul {
    gap: 0.25rem;
    justify-content: center;
    width: 100%;
  }

  .main-nav li {
    padding: 0 0.45rem;
  }

  .client-actions {
    position: absolute;
    top: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 9.5rem;
  }

  .client-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  .title-group h1 {
    font-size: 1.6rem;
  }
  .title-group .tagline {
    font-size: 1rem;
  }
  .main-nav a {
    font-size: 0.95rem;
  }
  .site-header {
    background-size: contain;
    background-position: top center;
  }
}

@media (max-width: 600px) {
  .header-top {
    align-items: flex-start;
    position: relative;
  }

  .dropdown-menu {
      display: none !important;
      visibility: hidden;
    }

  .main-nav {
    justify-content: center;
    width: 100%;
  }

  .main-nav ul {
    gap: 0.15rem;
    justify-content: center;
    width: 100%;
  }

  .main-nav li {
    padding: 0 0.35rem;
  }

  .main-nav > ul > li:not(:last-child)::after {
    right: -0.1rem;
  }

  .client-actions {
    position: absolute;
    top: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    width: 9rem;
  }

  .client-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }

  .title-group h1 {
    font-size: 1.6rem;
  }
  .title-group .tagline {
    font-size: 1rem;
  }
  .main-nav a {
    font-size: 0.95rem;
  }
  .site-header {
    background-size: contain;
    background-position: top center;
  }
}

/* ------------------------------------------------------------------
   LANDSCAPE ORIENTATION
------------------------------------------------------------------ */
@media screen and (max-width: 1024px) and (orientation: landscape) {
 .dropdown-menu {
      display: none !important;
      visibility: hidden;
    }

  .main-nav {
    justify-content: center;
    width: 100%;
  }

  .main-nav ul {
    gap: 0.25rem;
    justify-content: center;
    width: 100%;
  }

  .main-nav li {
    padding: 0 0.45rem;
  }

  .header-top {
    align-items: flex-start;
    position: relative;
  }

  .client-actions {
    position: absolute;
    top: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 9.5rem;
  }

  .client-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  .title-group h1 {
    font-size: 1.6rem;
  }
  .title-group .tagline {
    font-size: 1rem;
  }
  .main-nav a {
    font-size: 1.2rem;
  }
  .site-header {
    background-size: contain;
    background-position: top center;
  }
}
