/* ==========================================================================
   Better Together — Global Design System (v2, logo-aligned)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens — pulled directly from the logo: red, black, white */
  --ink: #16130F;
  --ink-soft: #514c47;
  --paper: #FBFAF7;
  --paper-raised: #FFFFFF;
  --red: #D90007;
  --red-deep: #A50005;
  --line: rgba(22, 19, 15, 0.12);

  /* Type */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale (8px base) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Layout */
  --max-width: 1200px;
  --radius: 2px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Type scale --------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
h1, .h1 { font-size: clamp(2.8rem, 6vw + 1rem, 5.5rem); }
h2, .h2 { font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem); }
h3, .h3 { font-size: clamp(1.3rem, 1.5vw + 1rem, 1.7rem); }
.lede {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.65;
  text-transform: none;
  letter-spacing: normal;
}

/* Stacked headline — the signature treatment, echoing the logo's two-line
   BETTER / TOGETHER lockup. Second line can render hollow via
   .stack-outline for emphasis moments (hero, section titles). */
.stack { display: block; }
.stack-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
}
.section--dark .stack-outline {
  -webkit-text-stroke: 2px var(--paper-raised);
  text-stroke: 2px var(--paper-raised);
}

/* Layout helpers ------------------------------------------------------------ */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.section { padding: var(--space-7) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--dark { background: var(--ink); color: var(--paper-raised); }
.section--dark .eyebrow { color: var(--red); }
.section--dark .lede { color: rgba(251, 250, 247, 0.75); }

/* Buttons -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.9rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.section--dark .btn-secondary { color: var(--paper-raised); border-color: var(--paper-raised); }
.section--dark .btn-secondary:hover { color: var(--red); border-color: var(--red); }

/* Divider — simple, direct, no ornament ---------------------------------- */
.rule {
  width: 100%;
  height: 3px;
  background: var(--ink);
}
.rule--red { background: var(--red); }
.section--dark .rule { background: var(--paper-raised); }

/* Site header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 62px;
  width: auto;
  transition: transform 0.6s ease;
}
.brand:hover .brand-logo {
  transform: rotate(360deg);
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo { transition: none; }
  .brand:hover .brand-logo { transform: none; }
}
.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: var(--space-2);
}
.nav-links {
  display: flex;
  gap: var(--space-4);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ink);
  }
}

/* Site footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper-raised);
  padding: var(--space-6) 0 var(--space-3);
  border-top: 3px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-2);
}
.footer-grid a, .footer-grid p {
  display: block;
  font-size: 0.92rem;
  color: rgba(251, 250, 247, 0.85);
  margin-bottom: var(--space-1);
}
.footer-grid a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(251, 250, 247, 0.15);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: rgba(251, 250, 247, 0.55);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
