/* ---------------------------------------------------------------------------
   The landing page header and footer, around the delivery tracking pages.

   Values are taken from the style block in index.html so the chrome renders
   identically. Prefixed dz-, because the two stylesheets share 22 selector
   names including .btn, .card, .wrap and .hero.
--------------------------------------------------------------------------- */

.dz-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Header -------------------------------------------------------------- */

.dz-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: transparent;
}

.dz-nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 0 12px 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(249, 245, 240, 0.5));
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow: 0 14px 36px -16px rgba(28, 23, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.dz-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}
.dz-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.dz-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-self: center;
}
.dz-nav-links a {
  font-size: 15px;
  color: var(--ink);
  opacity: 0.78;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.dz-nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--crimson);
  transition: width 0.3s;
}
.dz-nav-links a:hover::after,
.dz-nav-links a[aria-current='page']::after {
  width: 100%;
}
.dz-nav-links a[aria-current='page'] {
  opacity: 1;
  font-weight: 600;
}

.dz-nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dz-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.3s;
  white-space: nowrap;
  background: var(--crimson);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(116, 3, 24, 0.7);
}
.dz-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}
.dz-btn svg {
  width: 18px;
  height: 18px;
}

/* ---- Language ------------------------------------------------------------ */

.dz-lang {
  position: relative;
}
.dz-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid rgba(17, 17, 17, 0.14);
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s;
  white-space: nowrap;
  min-height: 0;
}
.dz-lang-toggle:hover {
  border-color: var(--crimson);
}
.dz-lang-toggle svg {
  width: 16px;
  height: 16px;
}
.dz-lang-toggle .dz-chev {
  transition: transform 0.2s;
}
.dz-lang.open .dz-lang-toggle .dz-chev {
  transform: rotate(180deg);
}

.dz-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.3);
  padding: 6px;
  min-width: 170px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.2s;
  z-index: 50;
}
.dz-lang.open .dz-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dz-lang-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: 0.15s;
  min-height: 0;
}
.dz-lang-menu button:hover {
  background: rgba(116, 3, 24, 0.07);
}
.dz-lang-menu button.active {
  background: rgba(116, 3, 24, 0.1);
  color: var(--crimson);
  font-weight: 600;
}

/* ---- Mobile menu --------------------------------------------------------- */

.dz-menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 9px;
  border-radius: 12px;
  min-height: 0;
}
.dz-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}
.dz-menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.dz-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.dz-menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.dz-mobile-menu {
  position: absolute;
  top: 86px;
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 1108px;
  background: rgba(249, 245, 240, 0.98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 26px 56px -22px rgba(0, 0, 0, 0.32);
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 80;
}
.dz-mobile-menu.open {
  display: flex;
}
.dz-mobile-menu a {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.dz-mobile-menu a:hover,
.dz-mobile-menu a:active {
  background: rgba(116, 3, 24, 0.07);
  color: var(--crimson);
}

/* ---- Footer -------------------------------------------------------------- */

.dz-foot {
  padding: 70px 0 40px;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.dz-foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 46px;
}
.dz-foot-grid h5 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--crimson);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
}
.dz-foot-grid a {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 11px;
  transition: color 0.2s;
  text-decoration: none;
}
.dz-foot-grid a:hover {
  color: var(--crimson);
}
.dz-foot-brand p {
  color: var(--muted);
  font-size: 15px;
  max-width: 280px;
  margin-top: 14px;
}

.dz-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.dz-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--crimson);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.dz-socials a:hover {
  transform: translateY(-3px);
}
.dz-socials svg {
  width: 18px;
  height: 18px;
}

.dz-foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* ---- Page frame ---------------------------------------------------------- */

/* The header is fixed, so the application needs room above it. */
.dz-page {
  padding-top: 104px;
  min-height: 60vh;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
  .dz-nav-links {
    display: none;
  }
  .dz-menu-toggle {
    display: flex;
  }
  .dz-nav-inner {
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .dz-foot-grid {
    grid-template-columns: 1fr;
  }
}

/* Below this the bar overflows, so the call to action moves into the menu. */
@media (max-width: 560px) {
  .dz-nav-cta .dz-btn {
    display: none;
  }
  .dz-mobile-menu .dz-menu-cta {
    display: block;
  }
}

.dz-mobile-menu .dz-menu-cta {
  display: none;
  color: var(--crimson);
  font-weight: 600;
}

@media (max-width: 480px) {
  .dz-nav-inner {
    gap: 8px;
    padding: 0 8px 0 10px;
  }
  .dz-btn {
    padding: 11px 16px;
    font-size: 14px;
  }
  .dz-lang-toggle {
    padding: 8px 9px;
    font-size: 13px;
  }
  .dz-brand img {
    width: 44px;
    height: 44px;
  }
  .dz-page {
    padding-top: 92px;
  }
}
