/* =====================================================================
   appmint.me — shared site chrome v2 (nav + footer)
   Loaded after style.css on every page. Overrides colours, type,
   borders and spacing, but never changes the nav's positioning model.
   ===================================================================== */

/* ---------------- navbar ---------------- */

.nav {
  background: rgba(247, 242, 227, 0.94);
  border-bottom: 2px solid #12140c;
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}

.nav .container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: auto;
  min-height: 74px;
  padding: 10px 0;
}

.nav .logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 1px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #12140c;
  white-space: nowrap;
}

.nav .logo .dot { color: #0b8a65; }

.nav .logo small {
  display: inline-block;
  margin-left: 8px;
  padding-top: 3px;
  font-family: "PT Sans", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #5f6250;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  position: relative;
  padding: 9px 13px;
  border-radius: 999px;
  color: #2f3226;
  font-family: "PT Sans", system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: rgba(18, 20, 12, 0.06);
  color: #12140c;
}

.nav-links a[aria-current="page"] {
  background: #12140c;
  color: #f7f2e3;
}

.nav-links .nav-cta {
  padding: 0;
  margin-left: 8px;
  background: none;
  border-radius: 0;
}

.nav-links .nav-cta:hover { background: none; }

.nav-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 2px solid #12140c;
  border-radius: 999px;
  background: #2fd9a7;
  background-image: none;
  color: #12140c;
  font-family: "PT Sans", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  box-shadow: 3px 3px 0 #12140c;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta .btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #12140c;
}

.nav-cta .btn:focus-visible {
  outline: 3px solid #12140c;
  outline-offset: 3px;
}

/* burger — hidden on desktop */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  width: 46px;
  height: 42px;
  padding: 11px 11px;
  border: 2px solid #12140c;
  border-radius: 13px;
  background: #fffdf6;
  box-shadow: 3px 3px 0 #12140c;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: #12140c;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-inner { position: relative; min-height: 66px; }

  .nav-toggle { display: inline-flex; }

  .nav-links { display: none; }

  .nav-links.open {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    height: auto;
    padding: 12px;
    border: 2px solid #12140c;
    border-radius: 18px;
    background: #f7f2e3;
    box-shadow: 6px 6px 0 rgba(18, 20, 12, 0.9);
    transform: none;
    opacity: 1;
    visibility: visible;
    overflow: visible;
  }

  .nav-links.open a {
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-links.open .nav-cta { margin: 6px 0 0; }
  .nav-links.open .nav-cta .btn { width: 100%; padding: 14px 18px; }
}

/* ---------------- footer ---------------- */

.footer {
  margin-top: 0;
  padding: clamp(48px, 6vw, 84px) 0 0;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(47, 217, 167, 0.12), transparent 55%),
    #101208;
  border-top: 2px solid #12140c;
  color: #f7f2e3;
}

.footer .container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(26px, 3.4vw, 52px);
}

.footer .logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 1px;
  margin-bottom: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 29px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f7f2e3;
}

.footer .logo .dot { color: #2fd9a7; }

.footer .logo small {
  display: inline-block;
  margin-left: 8px;
  padding-top: 3px;
  font-family: "PT Sans", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 242, 227, 0.55);
}

.footer p {
  max-width: 36ch;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(247, 242, 227, 0.64);
}

.footer h4 {
  margin: 0 0 15px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2fd9a7;
}

.footer a {
  display: block;
  margin-bottom: 11px;
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(247, 242, 227, 0.72);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover { color: #2fd9a7; }

/* browser diagnostics disclosure */

.footer-diag {
  margin-top: clamp(28px, 4vw, 44px);
  border: 1.5px solid rgba(247, 242, 227, 0.16);
  border-radius: 14px;
  background: rgba(247, 242, 227, 0.03);
  overflow: hidden;
}

.footer-diag summary {
  display: block;
  padding: 0;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(247, 242, 227, 0.82);
  transition: background 0.15s ease;
}

.footer-diag-summary-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
}

.footer-diag summary::-webkit-details-marker { display: none; }
.footer-diag summary:hover { background: rgba(247, 242, 227, 0.04); }

.footer-diag summary:focus-visible {
  outline: 2px solid #2fd9a7;
  outline-offset: -4px;
}

.footer-diag-title {
  flex: 1;
  min-width: 0;
}

.footer-diag-count {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(47, 217, 167, 0.32);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2fd9a7;
}

.footer-diag-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-right: 1.5px solid rgba(247, 242, 227, 0.6);
  border-bottom: 1.5px solid rgba(247, 242, 227, 0.6);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.footer-diag[open] .footer-diag-chevron { transform: rotate(225deg); }

.footer-diag-body {
  padding: 12px 16px 16px;
  border-top: 1px dashed rgba(247, 242, 227, 0.14);
}

.footer-diag-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
  max-height: min(46vh, 380px);
  margin: 0;
  padding: 0 4px 0 0;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 217, 167, 0.4) transparent;
}

.footer-diag-list::-webkit-scrollbar { width: 6px; }
.footer-diag-list::-webkit-scrollbar-thumb {
  background: rgba(47, 217, 167, 0.35);
  border-radius: 999px;
}

.footer-diag-list li {
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(247, 242, 227, 0.08);
}

.fd-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(247, 242, 227, 0.85);
}

.fd-value {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 62%;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  color: #2fd9a7;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-diag-list code {
  display: block;
  margin-bottom: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  line-height: 1.4;
  color: #2fd9a7;
  overflow-wrap: anywhere;
}

.footer-diag + .footer-bottom { margin-top: clamp(20px, 3vw, 30px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 4.4vw, 56px);
  padding: 18px 0 22px;
  border-top: 1px dashed rgba(247, 242, 227, 0.2);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(247, 242, 227, 0.48);
}

.footer-bottom span:last-child { color: rgba(247, 242, 227, 0.36); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer p { max-width: 44ch; }
  .footer-diag-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { justify-content: flex-start; }
  .footer-diag summary { font-size: 11.5px; }
  .footer-diag-summary-inner { gap: 8px; padding: 12px 14px; }
  .footer-diag-count { font-size: 8.5px; }
  .footer-diag-body { padding: 12px 14px 14px; }
  .footer-diag-list { grid-template-columns: 1fr; max-height: min(44vh, 300px); }
  .fd-value {
    max-width: 58%;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }
}
