:root {
  /* Brand */
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50:  #eff6ff;
  --blue-200: #bfdbfe;
  --blue-800: #1e40af;
  --blue-900: #1e3a5f;

  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;

  --red-50:  #fef2f2;
  --red-200: #fecaca;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --amber-50:  #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --amber-800: #92400e;

  --cyan-200:    #a5f3fc;
  --cyan-500:    #06b6d4;
  --violet-200:  #ddd6fe;
  --violet-500:  #8b5cf6;
  --rose-200:    #fecdd3;
  --rose-500:    #f43f5e;
  --emerald-200: #a7f3d0;

  /* Neutrals */
  --ink:    #111827;
  --gray-900: #111827;
  --gray-700: #1f2937;
  --gray-600: #374151;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
button { cursor: pointer; font: inherit; border: 0; background: transparent; }

.wrap { max-width: 1380px; width: calc(100% - 2 * clamp(20px, 5vw, 48px)); margin: 0 auto; }

/* ============ SECTION ANCHORS ============ */
section[id] { scroll-margin-top: 90px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: none; width: auto;
  padding: 14px clamp(22px, 6vw, 42px);
}
.brand {
  display: inline-flex; align-items: center;
  color: var(--ink);
}
.brand svg { height: clamp(20px, 4vw, 24px); width: auto; display: block; transition: height 0.28s ease; }
.site-header.scrolled .brand svg { height: 17px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.nav-cta) { font-size: 15px; font-weight: 700; color: var(--gray-600); }
.site-nav a:not(.nav-cta):hover { color: var(--blue-600); }
.site-nav a.current { color: var(--blue-600); }
.nav-cta {
  background: var(--blue-600); color: white;
  padding: 9px 18px; border-radius: 999px;
  border: 2px solid var(--blue-600);
  font-size: 14px; font-weight: 700; line-height: 1;
  transition: all 0.6s ease;
}
.nav-cta:hover { background: transparent; color: var(--blue-600); border-color: var(--blue-600); transform: translateY(-1px); }

/* Mobile menu (hamburger) -- desktop nav is hidden entirely below
   720px in favour of this, so the header stays down to logo +
   toggle instead of squeezing nav items. */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle.open .icon-open { display: none; }
.menu-toggle.open .icon-close { display: block; }
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--gray-200);
  padding: 8px 28px 20px;
}
.mobile-menu a {
  padding: 14px 0; font-size: 16px; font-weight: 700; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu a.current { color: var(--blue-600); }
.mobile-menu a.nav-cta {
  display: block; border-bottom: none; text-align: center; margin-top: 12px;
  background: var(--blue-600); color: white; border-radius: 999px; padding: 12px; line-height: 1;
}
.mobile-menu.open { display: flex; }
@media (max-width: 720px) {
  .site-nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: linear-gradient(180deg, var(--ink) 0%, var(--gray-700) 100%);
  padding: 72px 0 32px;
}
.site-footer .wrap { max-width: 1380px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { display: inline-flex; align-items: center; margin-bottom: 22px; opacity: 1; }
.footer-brand svg { height: clamp(28px, 5vw, 34px); width: auto; display: block; }
.footer-brand svg path, .footer-brand svg circle, .footer-brand svg polygon { fill: var(--white); }
.footer-brand p { font-size: 14px; color: var(--blue-50); line-height: 1.6; margin-bottom: 20px; max-width: 260px; }
.footer-email { font-size: 14px; color: var(--blue-200); font-weight: 600; }
.footer-email:hover { color: var(--white); }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-200); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; color: var(--blue-50); margin-bottom: 13px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.75);
}
.footer-bottom-links a { color: rgba(255,255,255,0.75); margin-left: 18px; }
.footer-bottom-links a:hover { color: var(--white); }
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  /* Keep the 2-column Links/Legal layout even at phone width --
     Gather's footer stays 2-column all the way down (Guides just
     wraps to its own row underneath), collapsing to a single
     stacked column made the footer much longer to scroll through
     than it needed to be. */
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links a:first-child { margin-left: 0; }
}
