/* Shared AsMade V4 site shell. Header and footer markup are injected at install/build time. */
:root {
  --asmade-shell-night: #11110f;
  --asmade-shell-ink: #161512;
  --asmade-shell-accent: #7088b7;
  --asmade-shell-header-height: 78px;
  --asmade-shell-font: "Onest", "Segoe UI", Arial, ui-sans-serif, system-ui, sans-serif;
}

.asmade-header,
.asmade-footer,
.asmade-header *,
.asmade-footer * { box-sizing: border-box; }

.asmade-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(17,17,15,.97);
  color: #fff;
  font-family: var(--asmade-shell-font);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.asmade-header-inner {
  width: min(1320px, calc(100% - 56px));
  min-height: var(--asmade-shell-header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.asmade-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.asmade-brand img {
  display: block;
  width: 84px;
  height: auto;
  filter: invert(1);
}

.asmade-primary-nav {
  min-width: 0;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 18px;
}

.asmade-nav-link {
  position: relative;
  padding: 9px 0;
  color: rgba(255,255,255,.68) !important;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s ease;
}

.asmade-nav-link:hover,
.asmade-nav-link[aria-current="page"] { color: #fff !important; }

.asmade-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--asmade-shell-accent);
}

.asmade-nav-label-short { display: none; }

.asmade-header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--asmade-shell-accent);
  border-radius: 999px;
  background: var(--asmade-shell-accent);
  color: var(--asmade-shell-night) !important;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .18s ease,border-color .18s ease,color .18s ease;
}

.asmade-header-cta:hover {
  border-color: #fff;
  background: #fff;
}

.asmade-header a:focus-visible,
.asmade-footer a:focus-visible {
  outline: 3px solid var(--asmade-shell-accent);
  outline-offset: 4px;
}

.asmade-footer {
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  background: var(--asmade-shell-night);
  color: rgba(255,255,255,.72);
  font-family: var(--asmade-shell-font);
}

.asmade-footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 84px;
}

.asmade-footer-main {
  display: grid;
  grid-template-columns: minmax(240px,1.15fr) minmax(500px,1.85fr);
  gap: clamp(54px,8vw,110px);
}

.asmade-footer-brand img {
  display: block;
  width: 82px;
  height: auto;
  margin-bottom: 22px;
  filter: invert(1);
}

.asmade-footer-brand p {
  max-width: 360px;
  margin: 0 0 10px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  line-height: 1.6;
}

.asmade-footer-brand .asmade-footer-boundary { color: rgba(255,255,255,.62); }

.asmade-footer-links {
  display: grid;
  grid-template-columns: 1.25fr .8fr .8fr .8fr;
  gap: 26px;
}

.asmade-footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.asmade-footer-heading {
  margin: 0 0 7px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.asmade-footer-group a {
  color: rgba(255,255,255,.78) !important;
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none !important;
  transition: color .18s ease;
}

.asmade-footer-group a:hover,
.asmade-footer-group a[aria-current="page"] { color: #fff !important; }

.asmade-footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.58);
  font-size: 10px;
  line-height: 1.6;
}

.asmade-footer-legal p { margin: 0; }
.asmade-footer-legal a { color: rgba(255,255,255,.82) !important; text-decoration: none !important; }
.asmade-footer-legal a:hover { color: #fff !important; }

@media (max-width: 1050px) {
  .asmade-header-inner { width: min(100% - 36px,1320px); }
  .asmade-primary-nav { gap: 13px; }
  .asmade-nav-link { font-size: 11px; }
  .asmade-header-cta { padding: 0 12px; }
  .asmade-footer-main { grid-template-columns: 1fr; gap: 44px; }
  .asmade-footer-links { max-width: 820px; }
}

@media (max-width: 820px) {
  :root { --asmade-shell-header-height: 108px; }
  .asmade-header-inner {
    width: min(100% - 28px,1320px);
    min-height: var(--asmade-shell-header-height);
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 10px 0 9px;
  }
  .asmade-brand { grid-column: 1; grid-row: 1; }
  .asmade-brand img { width: 80px; }
  .asmade-header-cta {
    grid-column: 2;
    grid-row: 1;
    min-height: 40px;
    padding: 0 14px;
    font-size: 10px;
  }
  .asmade-primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .asmade-nav-link {
    min-width: 0;
    padding: 9px 2px 10px;
    font-size: 10px;
    line-height: 1.16;
    text-align: center;
  }
  .asmade-nav-label-full { display: none; }
  .asmade-nav-label-short { display: inline; }
  .asmade-nav-link[aria-current="page"]::after {
    left: 6px;
    right: 6px;
    bottom: -1px;
    height: 2px;
  }
  .asmade-footer-inner { width: min(100% - 28px,1180px); padding: 40px 0 72px; }
  .asmade-footer-legal { flex-direction: column; gap: 10px; }
}

@media (max-width: 600px) {
  .asmade-header-inner { gap: 8px 12px; }
  .asmade-header-cta { padding: 0 11px; }
  .asmade-footer-main { gap: 30px; }
  .asmade-footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; max-width: none; }
  .asmade-footer-group { gap: 7px; min-width: 0; }
  .asmade-footer-heading { font-size: 10px; }
  .asmade-footer-group a { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .asmade-nav-link,
  .asmade-header-cta,
  .asmade-footer-group a { transition: none; }
}
