/* =============================================
   SewTrack – Shared header/footer chrome
   Styles the "tech" navbar + footer markup that
   assets/js/components.js injects (same header/footer
   as index.html). Scoped to header/footer/mobile-menu
   classes only, using its own --st- custom properties,
   so it can be linked on legacy Bootstrap pages
   alongside style.css without touching the rest of
   the page's look.
   ============================================= */
:root {
  --st-navy: #102650;
  --st-navy-deep: #091a38;
  --st-orange: #ef7d22;
  --st-orange-dark: #d9650c;
  --st-cream: #f6f1e9;
  --st-line: #dfe3e9;
}

/* Scoped reset — mirrors style-addition.css's global `a`/font rules but
   confined to the injected header/footer so the rest of each legacy
   page's Bootstrap-styled links/type are left alone. */
.topbar,
.site-header,
.site-footer {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.topbar a,
.site-header a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}
.topbar {
  background: var(--st-navy-deep);
  color: #ffffffb8;
  letter-spacing: 0.03em;
  font-size: 12px;
}
.topbar .shell {
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  display: flex;
}
.topbar div div {
  gap: 22px;
  display: flex;
}
.topbar a:hover {
  color: #fff;
}
.site-header {
  z-index: 30;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: #fffdf9f5;
  border-bottom: 1px solid #1026501a;
  position: sticky;
  top: 0;
}
.header-inner {
  align-items: center;
  gap: 34px;
  min-height: 76px;
  display: flex;
}
.brand {
  color: #fff;
  align-items: baseline;
  gap: 8px;
  min-width: max-content;
  line-height: 1;
  display: inline-flex;
}
.brand-name {
  letter-spacing: -0.045em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
}
.brand-name > span {
  color: var(--st-orange);
}
.brand-company {
  color: #ffffff94;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 850;
}
.brand-dark .brand-name {
  color: var(--st-navy);
}
.brand-dark .brand-company {
  color: #657084;
}
.desktop-nav {
  color: #41506a;
  align-items: center;
  gap: 21px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 650;
  display: flex;
}
.desktop-nav a {
  padding: 27px 0;
  position: relative;
}
.desktop-nav a:after {
  content: "";
  background: var(--st-orange);
  height: 2px;
  transition: all 0.2s;
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 100%;
}
.desktop-nav a:hover {
  color: var(--st-navy);
}
.desktop-nav a:hover:after {
  right: 0;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  align-items: center;
  gap: 5px;
  display: flex;
}
.dropdown-panel {
  visibility: hidden;
  opacity: 0;
  border: 1px solid var(--st-line);
  pointer-events: none;
  background: #fff;
  border-radius: 13px;
  width: 345px;
  padding: 12px;
  transition: all 0.2s;
  display: grid;
  position: absolute;
  top: calc(100% - 5px);
  left: -22px;
  transform: translateY(8px);
  box-shadow: 0 22px 55px #091a382b;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.desktop-nav .dropdown-panel a {
  color: #4f5b6e;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 11px;
  font-size: 12px;
  display: flex;
}
.desktop-nav .dropdown-panel a:after {
  display: none;
}
.desktop-nav .dropdown-panel a:hover {
  color: var(--st-navy);
  background: var(--st-cream);
}
.desktop-nav .dropdown-panel a svg {
  fill: none;
  width: 14px;
  stroke: var(--st-orange);
  stroke-width: 2px;
}
.desktop-nav .dropdown-panel .dropdown-overview {
  background: var(--st-navy);
  color: #fff;
  margin-bottom: 6px;
}
.desktop-nav .dropdown-panel .dropdown-overview:hover {
  background: var(--st-navy-deep);
  color: #fff;
}
.header-actions {
  align-items: center;
  gap: 13px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}
.login-link {
  color: var(--st-navy);
}
.app-link {
  color: var(--st-orange);
  border-bottom: 1px solid #ef7d2259;
  padding-bottom: 2px;
}
.button {
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  display: inline-flex;
}
.button:hover {
  transform: translateY(-2px);
}
.button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 17px;
}
.button-primary {
  background: var(--st-orange);
  color: #fff;
  box-shadow: 0 8px 26px #ef7d2238;
}
.button-primary:hover {
  background: var(--st-orange-dark);
}
.button-small {
  min-height: 42px;
  padding-inline: 18px;
}
.mobile-menu {
  margin-left: auto;
  display: none;
  position: relative;
}
.mobile-menu summary {
  border: 1px solid var(--st-line);
  cursor: pointer;
  border-radius: 8px;
  place-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  list-style: none;
  display: grid;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu summary span {
  background: var(--st-navy);
  width: 18px;
  height: 2px;
}
.mobile-menu nav {
  border: 1px solid var(--st-line);
  background: #fff;
  border-radius: 12px;
  width: 260px;
  padding: 15px;
  display: grid;
  position: absolute;
  top: 52px;
  right: 0;
  box-shadow: 0 20px 50px #0c1d3d26;
}
.mobile-menu nav a {
  border-bottom: 1px solid #edf0f4;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 650;
}
.mobile-services {
  border-bottom: 1px solid #edf0f4;
}
.mobile-services > summary {
  color: var(--st-navy);
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  display: flex;
}
.mobile-services > summary::-webkit-details-marker {
  display: none;
}
.mobile-services > summary span {
  color: var(--st-orange);
}
.mobile-services[open] > summary span {
  transform: rotate(45deg);
}
.mobile-services a {
  color: #5b6678;
  margin-left: 10px;
  font-size: 12px !important;
}
.site-footer {
  background: var(--st-navy-deep);
  color: #fff;
  padding: 74px 0 22px;
}
.footer-grid {
  grid-template-columns: 1.7fr 1fr 1.2fr 1fr 1.15fr;
  gap: 38px;
  display: grid;
}
.footer-brand p {
  color: #ffffff8c;
  max-width: 300px;
  margin: 23px 0 14px;
  font-size: 14px;
}
.footer-brand > span {
  color: #ff9f55;
  font-size: 12px;
}
.footer-grid h3 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 4px 0 17px;
  font-size: 12px;
}
.footer-grid > div:not(.footer-brand) {
  flex-direction: column;
  gap: 10px;
  display: flex;
}
.footer-grid > div:not(.footer-brand) a {
  color: #ffffff8c;
  font-size: 13px;
}
.footer-grid a:hover {
  color: #fff;
}
.footer-bottom {
  color: #ffffff59;
  border-top: 1px solid #ffffff1f;
  justify-content: space-between;
  margin-top: 55px;
  padding-top: 20px;
  font-size: 11px;
  display: flex;
}

@media (max-width: 1000px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }
  .topbar {
    display: none;
  }
  .header-inner {
    min-height: 66px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 25px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 18px;
  }
  .brand-name {
    font-size: 21px;
  }
  .brand-company {
    font-size: 8px;
  }
}
