/* ************************************* ## DO NOT PUBLISH THIS FILE, ALL CSS IS PUBLISHED VIA THE INDEX PAGE ###################### ************************************* */
:root {
  --hh-container-padding: 15px;
}

/* Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1em;
}
/* Base Typography & Layout */
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--hh-default-font-color);
  font-size: var(--hh-font-size);
  line-height: 1.5;
}
button {
  font-family: inherit;
  font-size: var(--hh-font-size);
}
h1 {
  font-size: var(--hh-h1-size);
}
h2 {
  font-size: var(--hh-h2-size);
}
h3 {
  font-size: var(--hh-h3-size);
}
/* Header Layout */
header .logo-row .container {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  padding-top: var(--hh-container-padding);
}
/* Adjust grid layout for larger screens */
@media (min-width: 768px) {
  header .logo-row .container {
    grid-template-columns: 1fr 4fr 1fr;
  }
}
/* Navigation Row Styling */
header .nav-row {
  border-top: 1px solid var(--hh-accent-dark);
  border-bottom: 1px solid var(--hh-accent-dark);
}
/* Navigation Container */
header .nav-row .container {
  text-align: center;
  padding: 0;
}
/* Navigation Links (Hidden by default on mobile) */
header .nav-row .container a {
  display: none;
  color: var(--hh-default-font-color);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  padding: calc(var(--hh-grid-gap) * 0.7) calc(var(--hh-grid-gap) * 0.5);
}
/* Adjust padding for larger screens */
@media (min-width: 1024px) {
  header .nav-row .container a {
    padding: calc(var(--hh-grid-gap) * 1.5) var(--hh-grid-gap);
  }
}
/* Navigation Hover & Focus Effects */
header .nav-row .container a:hover,
header .nav-row .container a:focus {
  color: var(--hh-primary);
}
/* Show navigation links on larger screens */
@media (min-width: 768px) {
  header .nav-row .container a {
    display: inline-block;
  }
}
/* Social Media Column */
header .logo-row .container .social-column {
  justify-content: start;
  display: none;
  grid-auto-flow: column;
}
/* Show social column on larger screens */
@media (min-width: 768px) {
  header .logo-row .container .social-column {
    display: inline-grid;
  }
}
/* Center align logo */
header .logo-column {
  text-align: center;
}
header .logo-column img,
footer a img {
  margin-inline: auto;
}
/* Search Column */
header .logo-row .container .search-column {
  display: none;
}
/* Show search column on larger screens */
@media (min-width: 768px) {
  header .logo-row .container .search-column {
    display: grid;
    justify-content: end;
  }
}
/* Header Icons */
header a.hh-icon {
  padding: var(--hh-container-padding);
}
header a.hh-icon svg {
  fill: var(--hh-primary);
  height: 20px;
}
/* Container Layout */
.container {
  max-width: 1320px;
  padding: 0 var(--hh-container-padding);
  margin: 0 auto;
}
/* Padding adjustments for containers */
.container {
  padding-top: calc(var(--hh-grid-gap) * 2);
  padding-bottom: calc(var(--hh-grid-gap) * 2);
}
/* Footer Styling */
footer.hh-footer {
  background-color: var(--hh-secondary);
  padding: calc(var(--hh-grid-gap) * 4) var(--hh-grid-gap);
  color: white;
  line-height: 1.5;
}
/* Center align footer content */
footer .container {
  text-align: center;
}
/* Footer Social Media */
footer .container .social-column {
  display: grid;
  justify-self: center;
  grid-auto-flow: column;
}
/* Footer Logo */
footer img {
  width: 200px;
  margin-bottom: var(--hh-grid-gap);
}
/* Footer Icons */
footer a.hh-icon {
  padding: var(--hh-container-padding);
}
footer a.hh-icon svg {
  fill: white;
  height: 20px;
}
/* Sidebar Navigation Variables */
:root {
  --sidebar-bg: var(--hh-secondary);
  --sidebar-text: white;
  --sidebar-width: 280px;
  --transition-speed: 0.3s;
}
/* Ensure Header Has a Smooth Transition */
header {
  position: relative;
  width: 100%;
  z-index: 100;
  background-color: var(---sidebar-text);
  transition: transform var(--transition-speed) ease-in-out,
    box-shadow var(--transition-speed) ease-in-out;
  margin-block-end: var(--spacing-lg);
}
/* Fixed Header Styling */
header.fixed {
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  transform: translateY(0);
  animation: fadeInHeader var(--transition-speed) ease-in-out;
  background: #fff;
}
/* Prevent Content Jump */
body.has-fixed-header {
  padding-top: var(--header-height);
}
/* Fade-in Effect */
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Mobile Menu Toggle (Now Positioned to the Right) */
#mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.8rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  /* Moved to right */
  z-index: 1002;
  border-radius: 4px;
  transition: opacity var(--transition-speed) ease-in-out;
}
/* Keep the button visible when the header is fixed */
header.fixed #mobile-menu-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
/* Ensure Icons are Visible */
#mobile-menu-toggle svg,
#close-menu svg {
  width: 28px;
  height: 28px;
  fill: var(--hh-primary);
}
/* Sidebar Navigation (Now Slides from the Right) */
@media (max-width: 767px) {
  #mobile-menu-toggle {
    display: block;
  }
  .nav-row {
    position: fixed;
    top: 0;
    right: 0;
    /* Slide in from the right */
    width: var(--sidebar-width);
    height: 100vh;
    /* Ensure it covers full height */
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transform: translateX(100%);
    /* Start off-screen on the right */
    transition: transform var(--transition-speed) ease-in-out,
      opacity var(--transition-speed) ease-in-out;
    opacity: 0;
    visibility: hidden;
  }
  /* Sidebar Open */
  .nav-row.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    z-index: 1000;
    width: var(--sidebar-width);
    height: 100vh;
    /* Ensures full coverage of screen */
  }
  /* Ensure hamburger menu is hidden when menu is open */
  .nav-row.open + #mobile-menu-toggle {
    display: none;
  }
  /* Ensure the Close Button is Within the Menu */
  #close-menu {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1003;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    border-radius: 4px;
  }
  #close-menu svg {
    width: 24px;
    height: 24px;
    fill: var(--hh-default-bg-color);
  }
  /* Fix for top part of navigation not being fully blue */
  .nav-row.open::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--sidebar-bg);
    z-index: -1;
  }
  /* Navigation Links */
  .nav-links {
    display: grid;
    gap: var(--hh-grid-gap);
    margin-block-start: 1em;
  }
  .nav-links a {
    text-decoration: none;
    color: var(---sidebar-text);
    font-size: var(--hh-h3-size);
  }
  /* Fix for ensuring entire background is covered */
  .nav-row.open div {
    display: grid;
    gap: var(--hh-grid-gap);
    margin-block-start: 5em;
  }
  .nav-row.open a {
    text-decoration: none;
    color: var(--hh-default-bg-color);
  }
  /* Sidebar Closing Animation */
  .nav-row.closing {
    transform: translateX(100%);
    opacity: 0;
  }
}
/* ========================================================================== BACK TO TOP ========================================================================== */
.hh-back-to-top {
  --bottom-right-placement: 1rem;
  --size: 1.5rem;
  --animation-speed: 0.3s;
  all: unset;
  cursor: pointer;
  position: fixed;
  z-index: 10;
  inset: auto;
  bottom: var(--bottom-right-placement);
  right: var(--bottom-right-placement);
  block-size: var(--size);
  inline-size: var(--size);
  background: var(--hh-primary);
  fill: var(--hh-primarybutton-text-color);
  padding: 0.5rem;
  opacity: 0.4;
  max-block-size: 100vh;
  transition: opacity var(--animation-speed) ease-in-out,
    max-block-size var(--animation-speed) ease-in-out;
  box-sizing: content-box;
}
.hh-back-to-top svg {
  inline-size: 100%;
  block-size: 100%;
}
.hh-back-to-top:hover {
  opacity: 1;
}
.hh-back-to-top.hh-hide-back-to-top {
  opacity: 0;
  max-block-size: 0;
  z-index: -1;
}
.hh-back-to-top:focus-visible {
  outline: -webkit-focus-ring-color auto 1px;
}
@media (min-width: 600px) {
  .hh-back-to-top {
    --bottom-right-placement: 2rem;
  }
}
/* ========================================================================== SKIP LINKS ========================================================================== */
.skip-link {
  position: absolute;
  top: -44px;
  /* Moves link out of sight by default */
  left: 0;
  background: #000;
  color: #fff;
  padding: 10px 8px;
  z-index: 100;
  transition: top 0.2s ease-in-out;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  /* Brings link into view when focused */
}

.hh-btn-primary {
  display: inline-block;
  cursor: pointer;
  padding: var(--hh-primarybutton-paddding)
    calc(var(--hh-primarybutton-paddding) * 4);
  text-align: center;
  font-weight: bold;
  background-color: var(--hh-primary);
  color: var(--hh-primarybutton-text-color) !important;
  text-transform: uppercase;
  text-decoration: none;
  border: solid 2px var(--hh-primary);
}

.hh-btn-primary:hover,
.hh-btn-primary:focus {
  background-color: var(--hh-primarybutton-text-color);
  color: var(--hh-primary) !important;
  border: solid 2px var(--hh-primary);
}

.hh-btn-primary-inverted {
  display: inline-block;
  cursor: pointer;
  padding: var(--hh-primarybutton-paddding)
    calc(var(--hh-primarybutton-paddding) * 4);
  text-align: center;
  font-weight: bold;
  background-color: var(--hh-primarybutton-text-color);
  color: var(--hh-primary) !important;
  text-transform: uppercase;
  text-decoration: none;
  border: solid 2px var(--hh-primary);
}

.hh-btn-primary-inverted:hover,
.hh-btn-primary-inverted:focus {
  background-color: var(--hh-primary);
  color: var(--hh-primarybutton-text-color) !important;
  border: solid 2px var(--hh-primary);
}

.hh-btn-secondary {
  display: inline-block;
  cursor: pointer;
  padding: var(--hh-primarybutton-paddding)
    calc(var(--hh-primarybutton-paddding) * 4);
  text-align: center;
  font-weight: bold;
  background-color: var(--hh-secondary);
  color: var(--hh-secondarybutton-text-color) !important;
  text-transform: uppercase;
  text-decoration: none;
  border: solid 2px var(--hh-secondary);
}

.hh-btn-secondary:hover,
.hh-btn-secondary:focus {
  background-color: var(--hh-secondarybutton-text-color);
  color: var(--hh-secondary) !important;
  border: solid 2px var(--hh-secondary);
}
