/* Header CSS */

/* 
=============================
Home Header
============================= 
*/

.header-home {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #111;
}

/* makes the standard header sticky on the homepage */
body.home .header-home {
  position: relative;
  z-index: 10;
  margin-bottom: -90px;
}

.header_home_topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 65px;
  z-index: 100;
}

.header-home__logo {
  flex-shrink: 0;
}

.header-home__logo img {
  max-height: 50px;
  width: auto;
}

/* 
=============================
Sidebar Logo (theme swap)
============================= 
*/

/* Default: hide both until theme is known */
.sidebar-logo-dark,
.sidebar-logo-light {
  display: none;
}

/* Dark background shows white logo (main-logo-home.php) */
.sidebar-theme-dark .sidebar-logo-light {
  display: block;
}

/* Light background shows black/custom logo (the_custom_logo) */
.sidebar-theme-light .sidebar-logo-dark {
  display: block;
}

/* 
=============================
Nav Icons (View Work, Search, Hamburger)
============================= 
*/

.header_home_nav_icons,
.header_standard_nav_icons {
  display: flex;
  align-items: center;
  gap: 80px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header_home_nav_icons a,
.header_standard_nav_icons a {
  text-decoration: none !important;
}

/* Shift nav icons only when sidebar is open, logo stays in place */
body.sidebar-open .header_home_nav_icons,
body.sidebar-open .header_standard_nav_icons {
  transform: translateX(-242px);
}

.green_btn_header,
.green_btn_header_no_animation {
  padding: 6px 28px;
  background-color: var(--color-accent);
  font-size: clamp(0.875rem, 5vw, 1rem);
  text-decoration: none;
  font-family: var(--font-mont);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-contrast);
  transition: ease-in-out 0.3s all;
  /* height: 37px; */
  letter-spacing: 1.6px;
  text-align: center;
}

.green_btn_header:hover {
  transform: scale(1.1);
}

.search-text {
  font-size: 1rem;
  text-decoration: none;
  font-family: var(--font-mont);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--color-base);
  transition: ease-in-out 0.3s all;
}

.search-text:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.search-text--dark {
  color: #1a1a1a;
}

.search-text--dark:hover {
  color: var(--color-accent, #85c446);
}

.green_btn_header--dark {
  border: 2px solid var(--color-accent, #85c446);
}

.menu-btn-2 {
  position: relative;
  width: 34px;
  height: 31px;
}

.menu-icon--default,
.menu-icon--hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

.menu-icon--default {
  opacity: 1;
  display: block;
}

.menu-icon--hover {
  opacity: 0;
  display: block;
  transform: translate(-50%, -50%) scale(0);
}

.menu-btn-2:hover .menu-icon--default {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.menu-btn-2:hover .menu-icon--hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.menu-btn__outer {
  cursor: pointer;
}

/* 
=============================
Sidebar Nav (shared structure)
============================= 
*/

.new-menu-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 242px;
  height: 100vh;
  background-color: var(--color-contrast, #000);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1100;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 0 50px;
}

.new-menu-sidebar.open-new {
  transform: translateX(0);
}

.new-menu-sidebar.close-new {
  transform: translateX(100%);
}

/* Prevent body scroll when sidebar open */
body.sidebar-open {
  overflow: hidden;
}

.sidebar-logo {
  display: none;
}

.sidebar-topbar {
  display: flex;
  justify-content: end;
  padding-top: 60px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 150px;
}

.sidebar-menu-item {
  position: relative;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-base, #fff);
  font-family: var(--font-oswald);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  padding: 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-variation-settings: "wght" 400;
  border-bottom: 2px solid var(--color-accent, #85c446);
  transition:
    color 0.3s ease,
    font-variation-settings 0.3s ease;
}

.sidebar-menu-link:hover {
  font-weight: 600;
}

/* Arrow indicator */
.sidebar-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--color-accent, #85c446);
  border-bottom: 2px solid var(--color-accent, #85c446);
  transform: rotate(-45deg);
  transition: transform 0.3s ease-in-out;
  flex-shrink: 0;
}

.sidebar-menu-item.open .sidebar-arrow {
  transform: rotate(45deg);
}

.sidebar-menu-link .sidebar-arrow {
  opacity: 0;
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

.sidebar-menu-link:hover .sidebar-arrow {
  opacity: 1;
}

/* Submenu */
.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease;
}

.sidebar-submenu.open {
  max-height: 400px;
  opacity: 1;
}

.sidebar-submenu-item a {
  display: block;
  padding: 2px;
  text-decoration: none;
  color: var(--color-contrast-3);
  font-family: var(--font-lato, "Lato", sans-serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.sidebar-submenu-item a:hover {
  color: var(--color-accent, #85c446);
}

/* Close button */
button.sidebar-close {
  background: transparent !important;
  padding: 10px 0 0 0 !important;
}

button.header_home_arrow:hover svg,
.header_home_scrolldown:hover svg {
  stroke: var(--base, #fff);
  stroke-width: 4px;
  overflow: visible;
  padding: 0 !important;
}

/* Bottom section, hidden by default (shown on mobile) */
.sidebar-bottom {
  display: none !important;
}

.close-btn-new {
  display: none !important;
}

/* 
=============================
Sidebar Themes
============================= 
*/

.new-menu-sidebar.sidebar-theme-dark {
  background-color: #000;
}

.new-menu-sidebar.sidebar-theme-light {
  background-color: #fff;
}

.sidebar-theme-light .sidebar-menu-link {
  color: #1a1a1a;
}

.sidebar-theme-light .sidebar-menu-item.open > .sidebar-menu-link {
  color: var(--color-accent, #85c446);
}

.sidebar-theme-light .sidebar-submenu-item a {
  color: #555;
}

.sidebar-theme-light .sidebar-submenu-item a:hover {
  color: var(--color-accent, #85c446);
}

.sidebar-theme-light .sidebar-close svg {
  stroke: #1a1a1a;
}

/* 
=============================
Standard Header
============================= 
*/

.header-standard {
  position: relative;
  width: 100%;
  background-color: var(--color-base);
  z-index: 100;
}

body.home .header-standard {
  position: sticky;
  top: 0;
  z-index: 5;
}

.header_standard_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  max-width: 100%;
}

.header_standard_logo {
  flex-shrink: 0;
}

.header_standard_logo img,
.header_standard_logo svg {
  max-height: 50px;
  width: auto;
}

/* 
=============================
Responsive
============================= 
*/

@media screen and (max-width: 1006px) {
  body.sidebar-open .green_btn_header {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  /* Sidebar mobile: full-width overlay */
  .new-menu-sidebar {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0 20px;
  }

  /* Show logo and close button */
  .sidebar-topbar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-shrink: 0;
  }

  .sidebar-logo {
    flex-shrink: 0;
    display: block;
  }

  .sidebar-logo img {
    max-height: 40px;
    width: auto;
  }

  .sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
  }

  .sidebar-close:hover {
    opacity: 0.7;
  }

  /* Center menu links */
  .sidebar-nav {
    /* padding: 0 24px; */
    align-items: center;
  }

  .sidebar-menu {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .sidebar-menu-item {
    position: relative;
    width: 100%;
  }

  .sidebar-menu-link {
    justify-content: center;
    padding: 14px 0;
    letter-spacing: 3px;
    border-bottom: 0px;
  }

  .sidebar-submenu {
    text-align: center;
  }

  .sidebar-submenu-item a {
    padding: 6px 0;
    text-align: center;
  }

  /* Show CTA and search */
  .sidebar-bottom {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 24px 40px;
    flex-shrink: 0;
  }

  .sidebar-cta {
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    text-align: center;
    background: var(--color-accent, #85c446);
    color: #000;
    font-family: var(--font-oswald);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
  }

  .sidebar-cta:hover {
    opacity: 0.85;
  }

  .sidebar-search {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
  }

  .sidebar-search-btn:hover {
    opacity: 0.7;
  }

  .sidebar-search-input {
    display: none;
  }
}