/* =========================================================
   MENU.CSS — ANIMAZE GRAPHIC

   Features:
   - Fixed header
   - Sticky while scrolling
   - Smooth shrink on scroll
   - Desktop Services dropdown
   - Mobile burger menu
   - Mobile Services dropdown
   - Responsive
========================================================= */


/* =========================================================
   MENU RESET
========================================================= */

.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}


/* =========================================================
   BODY
========================================================= */

body {
  margin: 0;
  padding-top: 0;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  height: 90px;

  z-index: 99999;

  display: flex;

  align-items: center;

  background: #ffffff;

  border-bottom:
    1px solid rgba(40, 48, 68, 0.08);

  box-shadow:
    0 0 0 rgba(0, 0, 0, 0);

  transition:
    height 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}


/* =========================================================
   HEADER AFTER SCROLL
========================================================= */

.site-header.is-stuck {

  height: 70px;

  background:
    rgba(255, 255, 255, 0.97);

  border-bottom:
    1px solid rgba(40, 48, 68, 0.10);

  box-shadow:
    0 7px 25px rgba(0, 0, 0, 0.10);

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);
}


/* =========================================================
   NAV
========================================================= */

.site-header .nav {

  width: 100%;

  max-width: 1320px;

  height: 100%;

  margin: 0 auto;

  padding:
    0 30px;

  display: flex;

  align-items: center;

  gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.site-header .brand {

  display: flex;

  align-items: center;

  flex: 0 0 auto;

  margin-right: auto;

  text-decoration: none;
}


.site-header .brand img {

  display: block;

  width: 210px;

  height: auto;

  max-width: 100%;

  object-fit: contain;

  transition:
    width 0.3s ease;
}


/* Smaller logo on scroll */

.site-header.is-stuck .brand img {

  width: 175px;
}


/* =========================================================
   NAVIGATION LIST
========================================================= */

.site-header .nav-list {

  display: flex;

  align-items: center;

  height: 100%;

  margin: 0;

  padding: 0;

  gap: 30px;

  list-style: none;
}


/* =========================================================
   NAV ITEM
========================================================= */

.site-header .nav-item {

  position: relative;

  display: flex;

  align-items: center;

  height: 100%;

  margin: 0;

  padding: 0;
}


/* =========================================================
   NAV LINK
========================================================= */

.site-header .nav-item > a {

  position: relative;

  display: inline-flex;

  align-items: center;

  height: 100%;

  padding: 0;

  font-family:
    var(--display, Arial, sans-serif);

  font-size: 15px;

  font-weight: 700;

  line-height: 1;

  color:
    var(--ink, #283044);

  text-decoration: none;

  white-space: nowrap;

  transition:
    color 0.2s ease;
}


/* Hover */

.site-header .nav-item > a:hover {

  color:
    var(--orange, #ff6752);
}


/* =========================================================
   SERVICES ARROW
========================================================= */

.site-header .has-sub > a i {

  display: inline-block;

  margin-left: 7px;

  margin-top: 2px;

  font-size: 9px;

  transition:
    transform 0.25s ease;
}


/* Rotate arrow */

.site-header .has-sub:hover > a i {

  transform:
    rotate(180deg);
}


/* =========================================================
   NAV UNDERLINE
========================================================= */

.site-header .nav-item > a::after {

  content: "";

  position: absolute;

  left: 0;

  bottom: 19px;

  width: 0;

  height: 2px;

  background:
    var(--orange, #ff6752);

  transition:
    width 0.25s ease;
}


.site-header .nav-item:hover > a::after {

  width: 100%;
}


/* Active */

.site-header .nav-item.is-active > a {

  color:
    var(--orange, #ff6752);
}


.site-header .nav-item.is-active > a::after {

  width: 100%;
}


/* =========================================================
   SERVICES DROPDOWN
========================================================= */

.site-header .submenu {

  position: absolute;

  top: calc(100% - 1px);

  left: -18px;

  width: 268px;

  margin: 0;

  padding: 8px 0;

  list-style: none;

  background: #ffffff;

  border:
    1px solid
    var(--line, rgba(40, 48, 68, 0.10));

  border-radius:
    var(--radius, 8px);

  box-shadow:
    0 18px 40px
    rgba(16, 16, 18, 0.14);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transform:
    translateY(10px);

  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}


/* Hover bridge */

.site-header .submenu::before {

  content: "";

  position: absolute;

  top: -12px;

  left: 0;

  width: 100%;

  height: 12px;
}


/* Open dropdown */

.site-header .has-sub:hover > .submenu {

  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transform:
    translateY(0);
}


/* =========================================================
   DROPDOWN ITEMS
========================================================= */

.site-header .submenu li {

  width: 100%;

  margin: 0;

  padding: 0;
}


.site-header .submenu a {

  display: block;

  width: 100%;

  padding:
    10px 20px;

  font-family:
    var(--body, Arial, sans-serif);

  font-size: 15px;

  font-weight: 500;

  line-height: 1.4;

  color:
    var(--ink, #283044);

  text-decoration: none;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    padding-left 0.18s ease;
}


.site-header .submenu a:hover {

  padding-left: 26px;

  background:
    var(--orange-10, #fff1ed);

  color:
    var(--orange, #ff6752);
}


/* =========================================================
   PHONE
========================================================= */

.site-header .nav-cta {

  display: flex;

  align-items: center;

  flex: 0 0 auto;

  margin-left: 5px;
}


.site-header .phone {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  font-family:
    var(--mono, Arial, sans-serif);

  font-size: 14px;

  font-weight: 700;

  line-height: 1;

  color:
    var(--ink, #283044);

  text-decoration: none;

  white-space: nowrap;

  transition:
    color 0.2s ease;
}


.site-header .phone i {

  color:
    var(--orange, #ff6752);

  font-size: 15px;

  transition:
    transform 0.2s ease;
}


.site-header .phone:hover {

  color:
    var(--orange, #ff6752);
}


.site-header .phone:hover i {

  transform:
    translateY(-1px);
}


/* =========================================================
   BURGER
========================================================= */

.site-header .burger {

  display: none;

  align-items: center;

  justify-content: center;

  width: 44px;

  height: 42px;

  margin:
    0 0 0 auto;

  padding: 0;

  border:
    1px solid
    var(--line, rgba(40, 48, 68, 0.10));

  border-radius:
    var(--radius, 8px);

  background:
    #ffffff;

  color:
    var(--ink, #283044);

  font-size: 18px;

  cursor: pointer;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}


.site-header .burger:hover {

  color:
    var(--orange, #ff6752);

  border-color:
    var(--orange, #ff6752);
}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 1100px) {


  /* -------------------------------------------------------
     HEADER
  ------------------------------------------------------- */

  .site-header {

    height: 70px;
  }


  .site-header.is-stuck {

    height: 70px;
  }


  /* -------------------------------------------------------
     NAV
  ------------------------------------------------------- */

  .site-header .nav {

    max-width: 100%;

    padding:
      0 20px;

    gap: 20px;
  }


  /* -------------------------------------------------------
     LOGO
  ------------------------------------------------------- */

  .site-header .brand {

    margin-right: auto;
  }


  .site-header .brand img,
  .site-header.is-stuck .brand img {

    width: 160px;
  }


  /* -------------------------------------------------------
     HIDE DESKTOP NAV
  ------------------------------------------------------- */

  .site-header .nav-list {

    display: none;
  }


  /* -------------------------------------------------------
     HIDE PHONE
  ------------------------------------------------------- */

  .site-header .nav-cta {

    display: none;
  }


  /* -------------------------------------------------------
     SHOW BURGER
  ------------------------------------------------------- */

  .site-header .burger {

    display: flex;

    position: relative;

    z-index: 10002;
  }


  /* =======================================================
     MOBILE MENU PANEL
  ======================================================== */

  .site-header .nav-list.is-open {

    position: fixed;

    top: 70px;

    left: 0;

    width: 100%;

    height:
      calc(100vh - 70px);

    max-height:
      calc(100vh - 70px);

    display: block;

    margin: 0;

    padding:
      5px 20px 25px;

    overflow-y: auto;

    overscroll-behavior:
      contain;

    -webkit-overflow-scrolling:
      touch;

    background:
      #ffffff;

    border-bottom:
      1px solid
      var(--line, rgba(40, 48, 68, 0.10));

    box-shadow:
      0 20px 35px
      rgba(16, 16, 18, 0.12);

    z-index: 10000;
  }


  /* =======================================================
     MOBILE ITEMS
  ======================================================== */

  .site-header
  .nav-list.is-open
  .nav-item {

    display: block;

    width: 100%;

    height: auto;
  }


  /* =======================================================
     MOBILE LINKS
  ======================================================== */

  .site-header
  .nav-list.is-open
  .nav-item > a {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    height: auto;

    min-height: 56px;

    padding:
      16px 0;

    font-size: 17px;

    border-bottom:
      1px solid
      var(--line, rgba(40, 48, 68, 0.10));
  }


  /* Remove underline */

  .site-header
  .nav-list.is-open
  .nav-item > a::after {

    display: none;
  }


  /* =======================================================
     MOBILE SERVICES ARROW
  ======================================================== */

  .site-header
  .nav-list.is-open
  .has-sub > a i {

    font-size: 12px;

    transition:
      transform 0.25s ease;
  }


  /* =======================================================
     MOBILE SUBMENU
  ======================================================== */

  .site-header
  .nav-list.is-open
  .submenu {

    position: static;

    width: 100%;

    max-height: 0;

    margin: 0;

    padding: 0;

    overflow: hidden;

    background:
      var(--bone, #fff7f3);

    border: 0;

    border-radius: 0;

    box-shadow: none;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: none;

    transition:
      max-height 0.32s ease,
      padding 0.32s ease;
  }


  /* Disable desktop hover */

  .site-header
  .nav-list.is-open
  .has-sub:hover
  .submenu {

    max-height: 0;

    padding: 0;
  }


  /* Open submenu */

  .site-header
  .nav-list.is-open
  .has-sub.is-open
  .submenu {

    max-height: 500px;

    padding:
      6px 0;
  }


  /* Rotate arrow */

  .site-header
  .nav-list.is-open
  .has-sub.is-open
  > a i {

    transform:
      rotate(180deg);
  }


  /* -------------------------------------------------------
     SUBMENU LINKS
  ------------------------------------------------------- */

  .site-header
  .nav-list.is-open
  .submenu a {

    display: block;

    width: 100%;

    padding:
      11px 18px;

    font-size: 15px;

    box-sizing: border-box;
  }


  .site-header
  .nav-list.is-open
  .submenu a:hover {

    padding-left: 22px;
  }


  /* -------------------------------------------------------
     LOCK BODY WHEN MOBILE MENU OPEN
  ------------------------------------------------------- */

  body.nav-open {

    overflow: hidden;
  }

}


/* =========================================================
   MOBILE 600px
========================================================= */

@media (max-width: 600px) {

  .site-header .nav {

    padding:
      0 18px;
  }


  .site-header .brand img,
  .site-header.is-stuck .brand img {

    width: 150px;
  }

}


/* =========================================================
   MOBILE 420px
========================================================= */

@media (max-width: 420px) {

  .site-header .nav {

    padding:
      0 16px;
  }


  .site-header .brand img,
  .site-header.is-stuck .brand img {

    width: 140px;
  }


  .site-header .burger {

    width: 42px;

    height: 40px;
  }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.site-header a:focus-visible,
.site-header button:focus-visible {

  outline:
    2px solid
    var(--orange, #ff6752);

  outline-offset:
    3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .site-header,
  .site-header img,
  .site-header a,
  .site-header i,
  .site-header .submenu,
  .site-header .burger {

    transition: none;
  }

}