/* SFGS 2026 redesign — global header/footer + design tokens.
   Page-content CSS (hero, service sections, etc.) gets appended here
   incrementally as each new page is built in Phase 3. */
:root {
  --ink: #080a09;
  --ink-soft: #111411;
  --paper: #f4f2ec;
  --paper-soft: #e9e6de;
  --green: #00b140;
  --green-dark: #007d2d;
  --line: #d3d0c8;
  --light-line: rgba(255, 255, 255, 0.18);
  --muted: #6e716c;
  --font-geist-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-geist-mono: "SF Mono", Monaco, Consolas, "Courier New", monospace;
}

.shell {
  margin-inline: auto;
  max-width: 1240px;
  width: min(90vw, 1240px);
}

.site-header {
  align-items: center;
  background: rgba(244, 242, 236, 0.94);
  border-bottom: 1px solid rgba(8, 10, 9, 0.11);
  box-shadow: 0 10px 40px rgba(8, 10, 9, 0.035);
  backdrop-filter: blur(16px);
  color: var(--ink);
  display: grid;
  grid-template-columns: 210px 1fr auto;
  height: 82px;
  inset: 0 0 auto;
  padding: 0 4vw;
  position: fixed;
  z-index: 50;
}

.brand,
.brand img {
  height: 58px;
}

.brand {
  align-items: center;
  display: inline-flex;
  overflow: hidden;
  width: fit-content;
}

.brand img {
  object-fit: contain;
  width: 138px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  justify-content: center;
}

.site-nav a {
  color: #3d413d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--green);
}

.header-cta,
.button {
  align-items: center;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 20px;
  justify-content: center;
  letter-spacing: 0.11em;
  min-height: 54px;
  padding-inline: 25px;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  width: fit-content;
}

.header-cta {
  background: var(--ink);
  color: white;
  min-height: 46px;
}

.header-cta:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  height: 44px;
  padding: 10px;
  width: 44px;
}

.menu-toggle span {
  background: var(--ink);
  display: block;
  height: 1px;
  margin: 7px 0;
  width: 24px;
}

.scroll-progress {
  background: var(--green);
  height: 2px;
  inset: 0 0 auto;
  pointer-events: none;
  position: fixed;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  width: 100%;
  z-index: 100;
}

footer {
  background: #e8e5dd;
  border-top: 1px solid #cfcbc1;
  color: var(--ink);
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr 1.2fr 1fr;
  padding: 72px 5vw 34px;
}

.footer-brand {
  align-items: center;
  display: inline-flex;
  height: 96px;
  overflow: hidden;
  width: fit-content;
}

.footer-brand img {
  height: 88px;
  object-fit: contain;
  width: 176px;
}

footer > p {
  color: #4f544f;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  max-width: 470px;
}

.footer-links {
  display: grid;
  gap: 12px;
  justify-self: end;
}

.footer-links a {
  color: #4f544f;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid #c9c5bb;
  color: #686d68;
  display: flex;
  flex-wrap: wrap;
  font-size: 8px;
  gap: 22px;
  grid-column: 1 / -1;
  justify-content: space-between;
  letter-spacing: 0.08em;
  padding-top: 28px;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid rgba(10, 13, 11, 0.18);
    display: none;
    inset: 82px 0 auto;
    padding: 24px 5vw 32px;
    position: fixed;
  }

  .site-nav.open {
    display: grid;
    gap: 0;
  }

  .site-nav a {
    border-bottom: 1px solid rgba(10, 13, 11, 0.14);
    display: block;
    font-size: 15px;
    padding: 15px 0;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 72px;
  }

  .brand,
  .brand img {
    height: 52px;
  }

  .brand img {
    width: 124px;
  }

  .site-nav {
    inset: 72px 0 auto;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 58px 22px 30px;
  }

  .footer-links {
    justify-self: start;
  }

  .footer-bottom {
    display: grid;
    justify-content: start;
  }
}
