/* ==========================================================================
   site-layout.css — Standardized header + footer for every public marketing
   page (apps/web/index.html, apps/web/pages/*.html, apps/web/signup/*.html)
   and every apps/login/*.html page.

   Before this file existed, each of those 14 pages hand-rolled its own
   <header>/<footer> markup AND its own inline CSS for it — different nav
   link sets, different footer content (some had a full brand/Company/Legal
   footer, others just a one-line copyright, apps/login pages had NO footer
   at all), and copy-pasted :root color variables that had already drifted
   slightly between pages. This file is the single source of truth going
   forward; site-layout.js (loaded alongside it) injects the actual markup
   into each page's empty <header id="siteHeader">/<footer id="siteFooter">
   placeholders.

   Uses its own --site-* prefixed variables rather than reusing each page's
   own :root block, specifically so this file works correctly no matter
   what (if anything) a given page's own inline <style> defines under
   plain --green-800 etc. — no collision, no dependency on page load order.
   ========================================================================== */

:root {
  --site-green-900: #0f3a1f;
  --site-green-800: #144d28;
  --site-green-700: #1b5e20;
  --site-green-600: #1f6e27;
  --site-green-100: #e8f3ec;
  --site-white: #ffffff;
  --site-line: #e5e7eb;
  --site-text: #1f2937;
  --site-muted: #4b5563;
  --site-maxw: 1100px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--site-white);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .site-nav {
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--site-green-800);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header .site-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.site-header .site-nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
}
.site-header .site-nav-links a {
  color: var(--site-green-800);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: color .2s ease;
}
.site-header .site-nav-links a:hover { color: var(--site-green-600); text-decoration: underline; }
.site-header .site-nav-links a.active { color: var(--site-green-600); }

@media (max-width: 560px) {
  .site-header .site-nav-links { gap: 14px; }
  .site-header .site-nav-links a { font-size: 13.5px; }
  .site-header .site-brand span { display: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--site-green-800);
  color: #d1fae5;
  margin-top: 40px;
}
.site-footer .site-footer-wrap {
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: 40px 20px 0;
}
.site-footer .site-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 28px;
}
.site-footer .site-footer-brand {
  display: flex;
  gap: 12px;
  flex: 1 1 280px;
  min-width: 240px;
}
.site-footer .site-footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-footer .site-footer-brand h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.site-footer .site-footer-brand p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(209,250,229,.85);
  max-width: 340px;
}
.site-footer .site-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.site-footer .site-footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background .15s ease;
}
.site-footer .site-footer-social a:hover { background: rgba(255,255,255,.22); }

.site-footer .site-footer-col {
  flex: 0 0 auto;
  min-width: 140px;
}
.site-footer .site-footer-col h5 {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(209,250,229,.6);
}
.site-footer .site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer .site-footer-links a {
  color: #d1fae5;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
}
.site-footer .site-footer-links a:hover { text-decoration: underline; }

.site-footer .site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(209,250,229,.75);
  text-align: center;
}
.site-footer .site-footer-payments {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.site-footer .site-payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  height: 44px;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.site-footer .site-payment-badge img {
  height: 30px;
  max-width: 96px;
  width: auto;
  display: block;
  object-fit: contain;
}
.site-footer .site-footer-bottom a {
  color: #d1fae5;
  font-weight: 600;
  text-decoration: none;
}
.site-footer .site-footer-bottom a:hover { text-decoration: underline; }

.site-footer .site-footer-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(209,250,229,.6);
}
.site-footer .site-footer-powered img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .site-footer .site-footer-top { flex-direction: column; gap: 24px; }
}