/* Base styles and the shared header/footer, ported from
   intranet.zenpo.com/app/globals.css (body, headings, links, .btn, .nav) and
   components/SiteNav.tsx / components/SiteFooter.tsx (inline styles).
   Tokens come from tokens.css, which scripts/sync-from-marketing.sh regenerates. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 600px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); }
img { display: block; max-width: 100%; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }

/* — header (SiteNav.tsx) — */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg);
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4);
  padding: 12px 44px;
  border-bottom: 2px solid var(--color-divider);
}
.site-nav a { color: inherit; text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--color-accent); }
.site-nav .btn-primary { color: var(--color-bg); }
.site-nav .btn-primary:hover { color: var(--color-bg); }
.site-nav svg [hidden] { display: none; }

.nav-brand-link { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav-brand-link img { width: 38px; height: 38px; }
.nav-brand-text {
  font-family: var(--font-brand);
  font-size: clamp(17px, 5.6vw, 25px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.nav-menu { display: contents; }
.nav-menu-button { display: none; }

@media (max-width: 920px) {
  .site-nav { padding: 12px 20px; }
  .nav-menu-button {
    display: inline-flex; align-items: center; gap: 8px;
    min-width: 44px; min-height: 44px; padding: 4px 12px;
    background: none; border: 1px solid var(--color-divider);
    font: inherit; font-size: 14px; color: var(--color-text); cursor: pointer;
  }
  .nav-menu-button[aria-expanded="true"] { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-divider);
    padding: 4px 20px 16px;
  }
  .nav-menu.nav-menu-open { display: flex; }
  .nav-menu a { display: flex; align-items: center; min-height: 44px; }
  .nav-menu .btn { margin-top: 8px; }
}

/* — footer (SiteFooter.tsx) — */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 44px 28px;
}
.site-footer-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 40px;
}
.footer-brand-link { display: flex; align-items: center; gap: 12px; color: var(--color-bg); text-decoration: none; }
.footer-brand-link img { width: 44px; height: 44px; }
.footer-brand-name { font-family: var(--font-brand); font-size: 21px; line-height: 1.15; color: var(--footer-brand); }
.footer-slogan { font-size: 13px; color: var(--footer-muted); margin: 16px 0 20px; }
.footer-socials { display: flex; gap: 14px; align-items: center; }
.footer-socials a { color: var(--footer-icon); display: inline-flex; }
.footer-socials a:hover { color: #ffffff; }
.footer-socials svg { display: block; }
.footer-cb {
  font-size: 11px; font-weight: 800;
  border: 2px solid currentColor; padding: 1px 4px;
  text-decoration: none; line-height: 1.2;
}
.site-footer h6 { color: var(--footer-heading); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-links a { color: var(--footer-text); text-decoration: none; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-address { color: var(--footer-muted); line-height: 1.5; }
.site-footer-bottom {
  max-width: 1140px; margin: 36px auto 0;
  border-top: 1px solid var(--footer-divider);
  padding-top: 18px;
  font-size: 12px; color: var(--footer-heading);
}
@media (max-width: 600px) {
  .site-footer { padding: 40px 20px 24px; }
}
