@font-face {
  font-family: "ParangoOtw01Bold-Regular";
  src: url("https://db.onlinewebfonts.com/t/9a1ec757a67db911a72c635dfecceb72.eot");
  src: url("https://db.onlinewebfonts.com/t/9a1ec757a67db911a72c635dfecceb72.eot?#iefix") format("embedded-opentype"),
       url("https://db.onlinewebfonts.com/t/9a1ec757a67db911a72c635dfecceb72.woff2") format("woff2"),
       url("https://db.onlinewebfonts.com/t/9a1ec757a67db911a72c635dfecceb72.woff") format("woff"),
       url("https://db.onlinewebfonts.com/t/9a1ec757a67db911a72c635dfecceb72.ttf") format("truetype"),
       url("https://db.onlinewebfonts.com/t/9a1ec757a67db911a72c635dfecceb72.svg#Parango OT W01 Bold") format("svg");
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: "ParangoOtw01Bold-Regular", sans-serif;
}

/* Shared contact strip */
.branding-header {
  position: relative;
  width: 100%;
  min-height: 71px;
  background: #c9935b;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 2rem;
  gap: 1rem;
  z-index: 6;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16);
}

.contact-us {
  color: white;
  font-size: 1.25rem;
  margin-left: auto;
  white-space: nowrap;
}

.branding-header img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  cursor: pointer;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16);
}

/* Shared primary branding/navigation header */
.branding-header-large {
  position: relative;
  width: 100%;
  background: #b21615;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1rem;
  gap: 1rem;
  height: 200px;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16);
  z-index: 7;
}

.branding-header-large > a {
  min-width: 0;
}

.branding-header-large > a > img {
  display: block;
  width: min(255px, 42vw);
  height: auto;
  max-width: 100%;
  padding-block: 6px;
  object-fit: contain;
}

/* Hamburger remains on the left. */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 auto;
  width: 4rem;
  height: 3rem;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  touch-action: manipulation;
  overflow: hidden;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.hamburger span {
  display: block;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease-in-out;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(22px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-22px) rotate(-45deg); }

/* When open, the control travels into the drawer's upper-right corner and becomes a smaller close button. */
.hamburger.open {
  transform: translate(calc(min(82vw, 320px) - 5.25rem), -72px) scale(0.74);
}

/* Off-canvas navigation now enters from the same side as the hamburger. */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: min(82vw, 320px);
  height: 100dvh;
  min-height: 100vh;
  background-color: #b21615;
  color: white;
  padding: 5.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(-100%);
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.2);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 1.5rem;
}

.sidebar ul li a {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1.2;
}

.sidebar.active {
  transform: translateX(0);
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .hamburger,
  .hamburger span,
  .sidebar {
    transition: none;
  }
}

@media (max-width: 768px) {
  .branding-header {
    min-height: 58px;
    padding: 0.45rem 1rem;
    gap: 0.65rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .contact-us {
    margin-left: auto;
    font-size: 1rem;
    text-align: right;
  }

  .branding-header img {
    height: 27px;
  }

  .branding-header-large {
    height: clamp(118px, 20vw, 145px);
    padding: 0 0.85rem;
    gap: 0.85rem;
  }

  .branding-header-large > a > img {
    width: clamp(165px, 38vw, 220px);
    padding-top: 0 !important;
  }

  .hamburger {
    width: 3.25rem;
    height: 2.5rem;
  }

  .hamburger.open span:nth-child(1) { transform: translateY(18px) rotate(45deg); }
  .hamburger.open span:nth-child(3) { transform: translateY(-18px) rotate(-45deg); }

  .hamburger.open {
    transform: translate(calc(min(86vw, 320px) - 4.45rem), -74px) scale(0.72);
  }

  .sidebar {
    width: min(86vw, 320px);
    padding: 4.75rem 1.4rem 1.5rem;
  }

  .sidebar ul li {
    margin-bottom: 1.2rem;
  }

  .sidebar ul li a {
    font-size: 1.3rem;
  }
}

@media (max-width: 420px) {
  .branding-header {
    min-height: 54px;
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }

  .contact-us {
    font-size: 0.9rem;
  }

  .branding-header img {
    height: 24px;
  }

  .branding-header-large {
    height: 112px;
    padding: 0 0.7rem;
    gap: 0.7rem;
  }

  .branding-header-large > a > img {
    width: min(175px, 52vw);
  }

  .hamburger {
    width: 2.85rem;
    height: 2.2rem;
  }

  .hamburger span {
    height: 3px;
  }

  .hamburger.open span:nth-child(1) { transform: translateY(16px) rotate(45deg); }
  .hamburger.open span:nth-child(3) { transform: translateY(-16px) rotate(-45deg); }


  .hamburger.open {
    transform: translate(calc(min(86vw, 320px) - 3.9rem), -70px) scale(0.68);
  }
}
