/* ===================================================================
 * flocks.css — shared visual framework for the flocks brand
 *
 * Used by:
 *   - /admin/flocks/*.php  (the design lab — canonical reference)
 *   - /messages/           (planned migration)
 *
 * Loads:
 *   Bricolage Grotesque + Inter + Material Symbols Rounded
 *   should be linked SEPARATELY in each page's <head> (faster than @import).
 *
 * Conventions:
 *   - 2 fonts only: Bricolage Grotesque (headlines, wordmark) + Inter (everything else).
 *   - Material Symbols Rounded for ALL icons; never inline SVG.
 *   - The brown dot after "flocks" is always var(--secondary).
 *   - Page-specific styles stay inline in each page's <style> block.
 * =================================================================== */


/* =========================================
 * RESET + BASE
 * ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }


/* =========================================
 * BRAND TOKENS
 * ========================================= */
:root {
  --primary:   #002FA7;            /* Klein Blue — body bg, hero, CTAs */
  --secondary: #AC7C00;            /* amber/brown — the "." in flocks., link hover */
  --canvas:    #FFFFFF;            /* white inside the canvas card */
  --cream:     #FFF7E8;            /* alternate section bg, soft surfaces */
  --ink:       #1A1A1A;            /* body text, footer bg */
  --muted:     #7A6A4A;            /* secondary text */
  --line:      rgba(172,124,0,0.18);
  --soft-line: rgba(0,0,0,0.07);
}


/* =========================================
 * BODY BASELINE
 * ========================================= */
body {
  font-family: 'Inter', sans-serif;
  background: var(--primary);
  color: #FFFFFF;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}


/* =========================================
 * MATERIAL SYMBOLS ROUNDED — base class
 * Pages can override font-variation-settings per use site.
 * ========================================= */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}


/* =========================================
 * TOPBAR
 * Hidden by default; shows after the brand-sentinel scrolls out of view.
 * The IntersectionObserver toggles `.visible`. A <noscript> override in each
 * page keeps it visible for users without JS.
 * ========================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateY(-100%);
  transition: transform 0.28s ease;
}
.topbar.visible { transform: translateY(0); }
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}
.topbar-page {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.topbar-menu {
  background: transparent;
  border: none;
  color: #FFFFFF;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s;
}
.topbar-menu:hover { background: rgba(255,255,255,0.10); }
.topbar-menu .material-symbols-rounded {
  font-size: 28px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 28;
}
@media (max-width: 600px) {
  .topbar-inner { padding: 12px 20px; }
  .topbar-brand { font-size: 20px; }
}

.brand-sentinel { height: 1px; width: 100%; }


/* =========================================
 * BRAND MOMENT
 * The big "flocks." wordmark + payoff that lives between the topbar
 * and the canvas, on the Klein Blue body.
 * ========================================= */
.brand-moment {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 32px 80px;
  text-align: center;
  color: #FFFFFF;
}
.brand-mark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(96px, 16vw, 220px);
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: #FFFFFF;
  margin-bottom: 22px;
}
.brand-mark span { color: var(--secondary); }
.brand-payoff {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.85);
  max-width: 32ch;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .brand-moment { padding: 50px 22px 60px; }
  .brand-payoff { font-size: 16px; }
}

/* The page-eyebrow is used on preview pages (app.php, web.php) — a small
   uppercase link above the page title that goes back to the dashboard. */
.page-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 26px;
  transition: color 0.15s;
}
.page-eyebrow:hover { color: #FFFFFF; }
.page-eyebrow span { color: var(--secondary); }

/* page-title size varies per page — pages set their own clamp(); this is a fallback */
.page-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 13vw, 168px);
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: #FFFFFF;
  margin-bottom: 24px;
}


/* =========================================
 * CANVAS — the white rounded card that holds page sections
 * ========================================= */
.canvas {
  max-width: 1200px;
  margin: 0 auto 72px;
  background: var(--canvas);
  color: var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}
.canvas > section { padding: 84px 56px; }
@media (max-width: 820px) {
  .canvas { margin: 0; border-radius: 0; box-shadow: none; }
  .canvas > section { padding: 60px 26px; }
}

/* alternating section background */
.section-cream { background: var(--cream); }


/* =========================================
 * EYEBROW + SECTION HEAD
 * Shared "label + title + intro" header at the top of each section.
 * Pages may override the .label appearance (square vs faded text).
 * ========================================= */
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 18px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-head p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}
@media (max-width: 600px) {
  .section-head h2 { font-size: 32px; }
}


/* =========================================
 * SITE FOOTER — full-bleed, sits OUTSIDE the canvas
 * Place <footer class="site-footer"> between </main> and the page <script>.
 * ========================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 80px 56px 40px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-block { max-width: 36ch; }
.footer-brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.footer-brand span { color: var(--secondary); }
.footer-tag {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}
.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--secondary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-bottom-links a:hover { color: var(--secondary); }
@media (max-width: 820px) {
  .site-footer { padding: 56px 26px 32px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
    margin-bottom: 40px;
  }
  .footer-brand-block {
    grid-column: 1 / -1;
    max-width: none;
  }
  .footer-brand { font-size: 28px; }
  .footer-bottom { font-size: 11px; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}


/* =========================================
 * NAV DRAWER — fullscreen hamburger menu
 * Toggle via JS by adding/removing `.open` on .nav-drawer.
 * Body gets `.drawer-open` to lock scroll while the drawer is open.
 * ========================================= */
body.drawer-open { overflow: hidden; }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(180deg, var(--primary) 0%, #002286 100%);
  color: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
  display: flex;
  flex-direction: column;
}
.nav-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0s;
}
.nav-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}
.nav-drawer-brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-decoration: none;
}
.nav-drawer-brand span { color: var(--secondary); }
.nav-drawer-close {
  background: transparent;
  border: none;
  color: #FFFFFF;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-drawer-close:hover { background: rgba(255,255,255,0.10); }
.nav-drawer-close .material-symbols-rounded {
  font-size: 28px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 28;
}
.nav-drawer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 56px 48px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 40px;
}
.nav-drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nav-drawer-list a {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-decoration: none;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.nav-drawer-list a:hover { color: var(--secondary); transform: translateX(4px); }
.nav-drawer-list a .num {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  min-width: 32px;
}
.nav-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
}
.nav-drawer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-drawer-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
.nav-drawer-cta .material-symbols-rounded {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 18;
}
.nav-drawer-login {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-drawer-login:hover { color: #FFFFFF; border-bottom-color: #FFFFFF; }
.nav-drawer-foot {
  padding: 20px 56px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-drawer-foot a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-drawer-foot a:hover { color: var(--secondary); }
@media (max-width: 600px) {
  .nav-drawer-top { padding: 14px 22px; }
  .nav-drawer-body { padding: 16px 26px 32px; gap: 32px; }
  .nav-drawer-list { gap: 8px; }
  .nav-drawer-list a .num { display: none; }
  .nav-drawer-foot { padding: 16px 26px 22px; font-size: 11px; }
}
