/* ----------------------------------------------------------------
   FlaggedLeads — shared base styles
   Color tokens, reset, typography, buttons, nav, footer, motion.
   Page-specific styles live inline or in page-scoped stylesheets.
   ---------------------------------------------------------------- */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --amber:        oklch(88% 0.09 70);
  --amber-deep:   oklch(82% 0.11 68);
  --amber-input:  oklch(92% 0.06 70);
  --amber-line:   oklch(78% 0.07 68);
  --amber-faint:  oklch(85% 0.10 69);

  --text:         oklch(18% 0.015 55);
  --text-2:       oklch(32% 0.02 58);
  --text-3:       oklch(39% 0.015 60);

  --green:        oklch(36% 0.12 155);
  --red:          oklch(38% 0.10 25);

  --btn-bg:       oklch(22% 0.01 55);
  --btn-bg-h:     oklch(30% 0.01 55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', system-ui, sans-serif;
  background: var(--amber);
  color: var(--text);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -- Buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  font-family: inherit; font-weight: 700; font-size: 0.95rem;
  border-radius: 6px; border: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.btn-dark {
  background: var(--btn-bg); color: var(--amber);
}
.btn-dark:hover {
  background: var(--btn-bg-h);
  box-shadow: 0 2px 16px oklch(18% 0 0 / 0.15);
}

/* -- Nav -- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px clamp(1.5rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, oklch(88% 0.09 70 / 0.95), oklch(88% 0.09 70 / 0));
}
#nav.scrolled {
  background: oklch(88% 0.09 70 / 0.97);
  border-bottom: 1px solid var(--amber-line);
}

.logo { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-links { display: none; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-size: 0.85rem; font-weight: 600; color: var(--text-2);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 12px 18px; font-size: 0.85rem; }

/* Mobile hamburger toggle */
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--amber-line);
  border-radius: 6px;
  cursor: pointer; padding: 0;
  color: var(--text);
  transition: background-color 0.15s;
}
.nav-toggle:hover { background: var(--amber-faint); }
.nav-toggle svg { display: block; width: 22px; height: 22px; }
.nav-toggle .icon-open { display: block; }
.nav-toggle .icon-close { display: none; }
#nav.menu-open .nav-toggle .icon-open { display: none; }
#nav.menu-open .nav-toggle .icon-close { display: block; }
#nav.menu-open .nav-toggle { background: var(--amber-faint); }

/* Mobile menu panel — drops down below the fixed nav when toggled */
@media (max-width: 767.98px) {
  #nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: var(--amber);
    border-bottom: 1px solid var(--amber-line);
    padding: 1rem clamp(1.5rem, 4vw, 3rem);
  }
  #nav.menu-open .nav-links a {
    font-size: 1.05rem;
    padding: 0.6rem 0;
    width: 100%;
  }
}

/* -- Footer -- */
footer {
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  font-size: 0.8rem; color: var(--text-3);
}
footer a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--amber-line);
  text-underline-offset: 2px;
  transition: color 0.15s;
}
footer a:hover { color: var(--text); }

/* -- Reveal -- */
.reveal {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.reveal.visible { opacity: 1; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
}

@media (min-width: 768px) {
  .nav-right { gap: 2rem; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
