
/* Along — shared marketing chrome (header + footer).
 * Link data: web/lib/apex/marketing-chrome.json (sync: scripts/sync-marketing-chrome.js).
 * Apex React: ApexMarketingHeader / ApexMarketingFooter + apex-marketing.css.
 */

:root {
  --header-height: 4.25rem;
}

/* Full-bleed chrome width even when legal.css sets a narrower --max-width */
.site-header .container,
.footer-inner.container,
.footer-copy.container {
  width: min(100% - 2rem, 72rem);
}

.container {
  width: min(100% - 2rem, var(--max-width, 72rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(240, 242, 250, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--separator);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
  color: var(--text);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 99;
  background: rgba(240, 242, 250, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--separator);
  overflow-y: auto;
}

body.nav-open {
  overflow: hidden;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--separator);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .btn-ghost.header-only-mobile {
    display: none;
  }
}


/* Footer */

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--separator);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(14rem, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-width: 22rem;
}

.footer-brand .logo {
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.25rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-link {
  gap: 0.375rem;
}

.footer-link span {
  display: block;
  line-height: 1;
}

.footer-link__icon {
  display: block;
  width: 0.875em;
  height: 0.875em;
  flex-shrink: 0;
  color: currentColor;
  /* Optical center with Latin text (SVG boxes sit high next to glyphs) */
  transform: translateY(0.08em);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-heading {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
}

.footer-list a {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--separator);
  text-align: center;
}

/* Mobile */


@media (max-width: 767px) {
  :root {
    --header-height: 3.75rem;
  }

  .site-header .container,
  .site-footer .container,
  .footer-copy.container {
    width: min(100% - 2rem, var(--max-width, 72rem));
  }

  .header-actions .btn-ghost.header-only-mobile {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .footer-nav {
    gap: 1.5rem 1.25rem;
  }
}
