/* ==========================================================================
   Mulish — self-hosted (GDPR-friendly, no Google Fonts CDN)
   Single variable font file covers weights 300–800 (latin subset).
   ========================================================================== */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/mulish/mulish-latin-var.woff2') format('woff2');
}

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --color-green: #94C943;
  --color-yellow: #F9B02D;
  --color-dark: #3a3a3a;
  --color-darker: #2c2c2c;
  --color-text: #4a4a4a;
  --color-muted: #6b6b6b;
  --color-cream: #fbfaf6;
  --color-footer-text: #9a9a9a;

  --max-width: 1180px;
  --page-gutter: clamp(20px, 4vw, 48px);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Mulish', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Shared animations — reused by page content sections */
@keyframes fmFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes fmFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Topbar — thin accent bar above the header
   ========================================================================== */
.topbar {
  background: var(--color-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  padding: 9px 20px;
}

/* ==========================================================================
   Header — sticky bar with logo and primary navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-header__logo {
  height: clamp(40px, 5.5vw, 58px);
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .03em;
}

.main-nav__link {
  color: var(--color-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.main-nav__link:hover,
.main-nav__link--active {
  color: var(--color-yellow);
}

/* ==========================================================================
   Footer — copyright and legal links
   ========================================================================== */
.site-footer {
  background: var(--color-darker);
  color: var(--color-footer-text);
  padding: 34px var(--page-gutter);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  font-size: 13.5px;
}

.site-footer__copy {
  font-weight: 600;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-link {
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-link:hover {
  color: var(--color-green);
}

/* ==========================================================================
   Responsive — stack the header on narrow viewports
   ========================================================================== */
@media (max-width: 860px) {
  .site-header__inner {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .main-nav {
    gap: 14px 18px;
  }
}
