/* ===== Quinio — Design tokens ===== */
:root {
  --navy: #17242A;
  --off-white: #DEF2F1;
  --sage: #87BBA2;
  --turquoise: #3AAEA9;
  --turquoise-dark: #2B7A77;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 5rem;
  --space-xl: 7.5rem;

  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--navy);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(23, 36, 42, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.site-header .logo img { height: 32px; }

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--turquoise); }

.nav-links a.is-active { color: var(--turquoise-dark); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--off-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.is-open { transform: translateX(0); }

  .nav-links a { font-size: 1.25rem; }
}

/* ===== Footer ===== */
.site-footer { background: var(--navy); }

.site-footer .wrap {
  padding: var(--space-lg) 20px var(--space-md);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
}

.footer-top .logo img { height: 32px; }

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--off-white);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--turquoise); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(222, 242, 241, 0.15);
}

.footer-copyright {
  padding-top: var(--space-md);
  color: rgba(222, 242, 241, 0.6);
  font-size: 0.85rem;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  background: var(--turquoise);
  color: var(--navy);
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible { background: var(--turquoise-dark); color: var(--off-white); }

/* ===== Fade-in on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Focus visibility ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 2px;
}
