/* Shared site header & footer (product pages layout) */

:root {
  --brand: #c17619;
  --brand-light: #d7923c;
  --ink: #121212;
  --dark: #1f1f1f;
  --container: 1300px;
  --page-banner-height: 660px;
  --page-banner-height-mobile: 520px;
}

.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.header-shell {
  position: relative;
  width: calc(100% - 5rem);
  margin-top: 40px;
  padding: 8px 16px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  clip-path: none;
}

.header-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 22px 100%);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  overflow: visible;
}

.site-header .header-inner.container {
  width: 100%;
  max-width: var(--container-max, 1400px);
  margin-inline: auto;
  padding-inline: 40px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  column-gap: 22px;
  flex-wrap: nowrap;
}

.desktop-nav a,
.mobile-menu a {
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-menu a.active,
.mobile-menu a:hover {
  color: var(--brand-light);
}

.desktop-nav .logo-link {
  flex: 0 0 auto;
}

.nav-dropdown {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.nav-dropdown:hover,
.nav-dropdown.is-open {
  z-index: 20;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: var(--brand-light);
}

.nav-dropdown.is-open .nav-dropdown-toggle::after,
.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 200;
  min-width: 320px;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(24, 24, 24, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  text-transform: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--brand-light);
  background: rgba(193, 118, 25, 0.14);
}

.mobile-submenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.mobile-submenu-toggle {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 28px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
}

.mobile-submenu-toggle::after {
  content: " +";
  font-weight: 400;
}

.mobile-submenu.is-open .mobile-submenu-toggle::after {
  content: " −";
}

.mobile-submenu-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.mobile-submenu.is-open .mobile-submenu-panel {
  display: flex;
}

.mobile-submenu-panel a {
  font-size: 20px;
  font-weight: 500;
  color: #000;
}

.mobile-submenu-panel a:hover,
.mobile-submenu-panel a.active {
  color: var(--brand-light);
}

.site-header .logo {
  width: 170px;
  height: auto;
}

.mobile-bar,
.mobile-toggle,
.mobile-menu {
  display: none;
}

/* Product landing heroes — match home page banner inset & corners */
.product-page .da-hero,
.product-page .hms-hero,
.ai-page .ai-hero,
.product-page .page-hero {
  margin: 13px 16px 0;
  border-radius: 30px;
  z-index: 1;
}

footer.footer {
  margin: 24px 0 0;
  border-radius: 24px 24px 0 0;
  padding: 0;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer .footer-bottom {
  display: block;
  border-bottom: none;
  max-width: none;
  margin: 0;
  padding: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 64px 0 32px;
}

.footer-logo {
  width: 160px;
  margin-bottom: 12px;
}

.footer h4 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.footer ul {
  margin: 0;
  padding-left: 20px;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: #d1d5db;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: var(--brand-light);
}

.footer-contact,
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1fr;
  gap: 28px;
  padding: 18px 0;
}

.footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer .contact-item img {
  width: 38px;
  flex: 0 0 auto;
  margin-top: 4px;
}

.footer .contact-item .label {
  color: var(--brand-light);
}

.footer .socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.footer .socials img {
  width: 34px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.footer .legal {
  display: flex;
  gap: 24px;
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .header-shell {
    width: calc(100% - 2.5rem);
    padding-inline: 12px;
  }

  .desktop-nav {
    column-gap: 14px;
  }

  .desktop-nav a,
  .nav-dropdown-toggle {
    font-size: clamp(13px, 0.78vw, 16px);
    letter-spacing: 0.04em;
  }

  .site-header .logo {
    width: 150px;
  }
}

@media (max-width: 1024px) {
  .header-shell {
    width: calc(100% - 32px);
    margin-top: 18px;
  }

  .header-shell::before {
    clip-path: none;
    border-radius: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .mobile-bar .logo {
    width: 80px;
  }

  .hamburger,
  .close-menu {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .hamburger span,
  .hamburger span::before,
  .hamburger span::after {
    display: block;
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .hamburger span {
    position: relative;
  }

  .hamburger span::before,
  .hamburger span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .hamburger span::before {
    top: -9px;
  }

  .hamburger span::after {
    top: 9px;
  }

  .mobile-menu {
    position: fixed;
    z-index: 80;
    inset: 0 auto 0 0;
    display: flex;
    width: calc(100% - 25px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #fff;
    transform: translateX(-105%);
    transition: transform 0.32s ease;
  }

  .mobile-menu a {
    color: #000;
    font-size: 22px;
  }

  .close-menu {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #000;
    font-size: 44px;
    line-height: 1;
  }

  .mobile-toggle:checked ~ .mobile-menu {
    transform: translateX(0);
  }

  .footer-main,
  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer .socials {
    border-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --page-banner-height: var(--page-banner-height-mobile);
  }

  .site-header .header-inner.container {
    padding-inline: 20px;
  }

  .product-page .da-hero,
  .product-page .hms-hero,
  .ai-page .ai-hero,
  .product-page .page-hero {
    margin: 10px 10px 0;
    border-radius: 20px;
  }

  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }

  .footer .legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}
