/* ===== SITE CHROME: header + footer shared by every page =====
   Loaded from inside the shared header and footer blocks themselves
   (data-sp-shared="header" / "footer"), so the styles travel with the markup
   whenever those blocks are synced to all pages. Moved out of homepage.css. */

.hp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- HEADER -------- */
.hp-site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 9999;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.hp-site-header.hp-header--scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
.hp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.hp-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.hp-header-logo:hover {
  text-decoration: none;
}
.hp-logo-img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.hp-logo-text {
  font-family: 'Titillium', Arial, sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.25s;
}
.hp-site-header.hp-header--scrolled .hp-logo-text {
  color: #1a1a1a;
}
/* Desktop nav — only the direct top-level ul is flex */
.hp-desktop-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
/* Top-level links only */
.hp-desktop-nav > ul > li > a {
  display: block;
  padding: 7px 13px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.hp-desktop-nav > ul > li > a:hover {
  color: #fff;
  background: rgba(255,255,255,0.13);
  text-decoration: none;
}
.hp-site-header.hp-header--scrolled .hp-desktop-nav > ul > li > a {
  color: #333;
}
.hp-site-header.hp-header--scrolled .hp-desktop-nav > ul > li > a:hover {
  color: #33b7bc;
  background: rgba(51,183,188,0.08);
  text-decoration: none;
}
.hp-nav-cta {
  background: #33b7bc !important;
  color: #fff !important;
  border-radius: 5px !important;
  padding: 8px 16px !important;
  margin-left: 6px;
}
.hp-nav-cta:hover {
  background: #27a0a5 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.hp-site-header.hp-header--scrolled .hp-nav-cta {
  color: #fff !important;
}
/* Hamburger button */
.hp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}
.hp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}
.hp-site-header.hp-header--scrolled .hp-hamburger span {
  background: #333;
}
/* Mobile nav drawer */
.hp-mobile-nav {
  display: none;
  background: rgba(10,40,40,0.97);
  padding: 12px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hp-mobile-nav.hp-mobile-nav--open {
  display: block;
}
.hp-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-mobile-nav ul li a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hp-mobile-nav ul li a:hover {
  color: #33b7bc;
  text-decoration: none;
}
@media (max-width: 900px) {
  .hp-desktop-nav { display: none; }
  .hp-hamburger { display: flex; }
}


/* Dropdown nav */
.hp-desktop-nav > ul > li {
  position: relative;
}
/* Sub-menus: hidden by default, NOT flex. Hidden with visibility (not
   display) so closing can wait a moment: a mouse that briefly slips off the
   item on its way down does not lose the menu. */
.hp-desktop-nav .hp-sub-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease, visibility 0s linear 0.25s;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  min-width: 230px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  padding: 6px 0;
  z-index: 200;
  list-style: none;
  margin: 0;
  flex-direction: unset;
  align-items: unset;
  gap: unset;
}
/* Invisible bridge over the 4px gap between the item and its menu, so moving
   the mouse down never leaves the hover area. */
.hp-desktop-nav .hp-sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.hp-has-dropdown:hover .hp-sub-menu,
.hp-has-dropdown:focus-within .hp-sub-menu {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.15s ease, visibility 0s;
}
/* Small arrow after every item that has a dropdown */
.hp-desktop-nav > ul > li.hp-has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.hp-desktop-nav > ul > li.hp-has-dropdown:hover > a::after,
.hp-desktop-nav > ul > li.hp-has-dropdown:focus-within > a::after {
  transform: translateY(0) rotate(-135deg);
}
.hp-desktop-nav .hp-sub-menu > li > a {
  display: block !important;
  padding: 9px 18px !important;
  font-size: 0.85rem !important;
  color: #333 !important;
  font-weight: 500 !important;
  background: transparent !important;
  border-radius: 0 !important;
  white-space: normal;
  line-height: 1.4;
}
.hp-desktop-nav .hp-sub-menu > li > a:hover {
  color: #33b7bc !important;
  background: #f0fafa !important;
  text-decoration: none !important;
}


/* -------- FOOTER BAR -------- */
.hp-footer-bar {
  background: #727776;
  color: rgba(255,255,255,0.75);
  padding: 20px 0;
}
.hp-footer-bar .hp-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.hp-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}
.hp-footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 600;
}
.hp-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.hp-footer-sep {
  color: rgba(255,255,255,0.35);
}
.hp-footer-social {
  display: flex;
  gap: 12px;
}
.hp-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s;
}
.hp-footer-social a:hover {
  background: #33b7bc;
  color: #fff;
  text-decoration: none;
}


/* -------- SUB-PAGES --------
   On the homepage the header floats transparent over the hero photo and turns
   white once you scroll. Every other page has no dark hero behind it, so there
   it is the white bar from the start, and the content is pushed down by the
   bar's height so nothing hides under the fixed header. The theme's own
   #header rules (grey background, 60px bottom padding, sticky offsets) are
   neutralised here because they would otherwise win over the hp- classes. */
body:not(.home) #header.hp-site-header {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  padding: 0 !important;
  min-height: 0 !important;
  width: auto !important;
  float: none !important;
}
body:not(.home) .hp-logo-text {
  color: #1a1a1a;
}
body:not(.home) .hp-desktop-nav > ul > li > a {
  color: #333;
}
body:not(.home) .hp-desktop-nav > ul > li > a:hover {
  color: #33b7bc;
  background: rgba(51,183,188,0.08);
}
body:not(.home) .hp-hamburger span {
  background: #333;
}
body:not(.home) #wrapper {
  padding-top: 66px;
}
/* The theme pulled the content box up 60px to overlap its old grey header bar.
   That bar is gone, so the content starts right below the new header. */
body:not(.home) #page {
  margin-top: 0 !important;
}

/* -------- HOMEPAGE, PHONES --------
   Below 720px the theme paints #header solid white, which hid the white logo
   text and the white menu button against the white bar until you scrolled.
   Keep the header see-through over the dark hero, as it is on desktop. */
@media (max-width: 719px) {
  .home #header.hp-site-header:not(.hp-header--scrolled) {
    background: transparent !important;
  }
}

/* -------- PAGE WIDTH --------
   A run with no break point (a long URL, a file name, words joined by &nbsp;)
   wraps instead of pushing the page wider than a phone screen. */
body {
  overflow-wrap: break-word;
}
