/* ============================================
   The Bair Co. — Shared Styles
   Gemeenschappelijke CSS voor alle pagina's
   ============================================ */

/* --- Design Tokens --- */
:root {
  --black: #0a0a0a;
  --white: #f0ede8;
  --grey: #888;
  --pink: #ec4899;
  --blue: #2E8AFF;
  --emerald: #10b981;
  --red: #ef4444;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* --- Base --- */
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noiseFilter)' opacity='0.015' /%3E%3C/svg%3E");
  z-index: -1;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; margin-bottom: 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin-bottom: 1em; font-size: 1rem; font-weight: 400; }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* --- Header (donker thema) --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  position: relative;
  z-index: 100;
  background: var(--black);
}

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--white);
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.brand-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }

nav { display: flex; gap: 0.3rem; align-items: center; }

.nav-pill {
  padding: 0.45rem 1rem; border-radius: 100px;
  font-size: 0.82rem; font-weight: 400;
  transition: background 0.3s, color 0.3s;
  letter-spacing: 0.01em; color: var(--white); text-decoration: none;
}
.nav-pill:hover { background: var(--white); color: var(--black); }

.social-icons { display: flex; gap: 0.5rem; align-items: center; margin-left: 0.5rem; }
.social-icon {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(240, 237, 232, 0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.social-icon:hover { border-color: rgba(240, 237, 232, 0.5); background: rgba(240, 237, 232, 0.1); transform: translateY(-2px); }
.social-icon svg { width: 14px; height: 14px; fill: var(--white); transition: fill 0.3s; }

.mob-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.mob-toggle span { width: 24px; height: 2px; background: var(--white); transition: all 0.3s var(--ease); display: block; }

.mob-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--black); flex-direction: column; padding: 1rem; gap: 0.5rem; z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.mob-nav a { padding: 0.75rem 1rem; text-decoration: none; color: var(--white); border-radius: 8px; transition: all 0.3s var(--ease); }
.mob-nav a:hover { background: rgba(240, 237, 232, 0.1); }

@media (max-width: 768px) {
  .mob-toggle { display: flex; }
  nav { display: none; }
  .mob-nav.active { display: flex; }
}

/* --- Footer --- */
footer {
  background: var(--black); color: var(--white);
  padding: 4rem 2.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; color: var(--grey); margin-bottom: 1.5rem; max-width: 300px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--grey); margin-bottom: 0.75rem; transition: color 0.3s; text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.7rem; color: rgba(255, 255, 255, 0.25); }
.footer-legal { display: flex; gap: 2rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.25); transition: color 0.3s; text-decoration: none; }
.footer-bottom a:hover { color: var(--grey); }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}

/* --- Reveal Animations --- */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.visible { animation: revealIn 0.7s var(--ease) forwards; }
.reveal:not(.visible) { animation: revealFallback 0.8s var(--ease) 2s forwards; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}
