/* ── FONTS via Bunny Fonts (no Google, GDPR-safe) ── */
/* Barlow Condensed: narrow, punchy display font for headings */
/* DM Sans: clean readable body font */
@import url('https://fonts.bunny.net/css?family=barlow-condensed:600,700,800|dm-sans:300,400,500');

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

:root {
  --ink:    #0d1117;
  --paper:  #f5f2ec;
  --accent: #c8440a;
  --muted:  #7a7165;
  --line:   #d8d3ca;
  --card:   #edeae3;
  --dark:   #111418;
  --dark2:  #1a1f28;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* subtle noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .35;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  max-width: 12ch;
}
h1 em { font-style: normal; color: var(--accent); }

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

p { margin-bottom: .8rem; }
p:last-child { margin-bottom: 0; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

nav { display: flex; gap: 1.5rem; align-items: center; }
nav a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
  white-space: nowrap;
}
nav a:hover, nav a.active { color: var(--ink); }
nav a.active { font-weight: 600; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: .25rem;
}
.lang-switch a {
  font-size: .72rem !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  padding: .3rem .55rem !important;
  color: var(--muted) !important;
  text-decoration: none;
  transition: background .15s, color .15s !important;
  white-space: nowrap;
  border-radius: 0 !important;
  line-height: 1;
}
.lang-switch a:hover { background: var(--card); color: var(--ink) !important; }
.lang-switch a.lang-active {
  background: var(--ink) !important;
  color: var(--paper) !important;
}
.lang-switch .lang-divider {
  width: 1px; background: var(--line);
  align-self: stretch; flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  position: relative;
  z-index: 201;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); transition: .3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

/* ── MOBILE NAV ── */
@media (max-width: 860px) {
  header nav {
    display: none;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 0;
    border-top: 1px solid var(--line);
    z-index: 200;
    overflow-y: auto;
  }
  header nav.open {
    display: flex;
    position: fixed;
    inset: 60px 0 0 0;
  }
  header nav a {
    font-size: 1.2rem;
    color: var(--ink);
    width: 100%;
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
  }
  header nav a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .lang-switch { margin-left: 0; margin-top: .5rem; }
  .lang-switch a { font-size: .85rem !important; padding: .5rem .8rem !important; }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--dark);
  color: white;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,68,10,.22) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.page-hero .eyebrow::before { content: ''; display: block; width: 2rem; height: 2px; background: var(--accent); }
.page-hero h1 { color: white; }
.page-hero p {
  font-size: .95rem;
  color: rgba(255,255,255,.58);
  max-width: 50ch;
  margin-top: .7rem;
  font-weight: 300;
}

/* ── LAYOUT ── */
.wrap { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.5rem); }

.section-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-label::after { content: ''; height: 1px; background: var(--line); width: 2.5rem; }

/* grids — all collapse to 1 col on small screens */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.25rem; margin-top: 2rem;
}

/* ── CARDS ── */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: all .25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
  transform: scaleY(0); transition: transform .25s; transform-origin: bottom;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.09); }
.card:hover::before { transform: scaleY(1); }

.card-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem; font-size: 1.1rem; flex-shrink: 0;
}
.card-icon svg {
  width: 42px; height: 42px;
  stroke: var(--accent); stroke-width: 1.5;
  fill: none;
}
.dark-section .card-icon svg { stroke: rgba(255,255,255,.75); }

/* ── DARK CARDS ── */
.dark-section { background: var(--dark); color: white; }
.dark-section h2 { color: white; }
.dark-section .section-label { color: #6a6d75; }
.dark-section .section-label::after { background: #2a2d35; }

.dark-card {
  background: var(--dark2);
  border: 1px solid #252930;
  border-radius: 4px; padding: 1.6rem;
  transition: background .2s;
}
.dark-card:hover { background: #1e2330; }
.dark-card h3 { color: white; }
.dark-card p { color: #8a8d96; font-size: .875rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-size: .875rem; font-weight: 500;
  padding: .75rem 1.5rem;
  border-radius: 2px; text-decoration: none;
  transition: all .2s; letter-spacing: .02em;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #a33408; }

.btn-group { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* full-width buttons on very small screens */
@media (max-width: 400px) {
  .btn { width: 100%; text-align: center; }
  .btn-group { flex-direction: column; }
}

/* ── ACCENT BANNER ── */
.accent-banner {
  background: linear-gradient(135deg, var(--accent), #8b2e04);
  color: white;
  border-radius: 6px;
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin: 0 clamp(1.25rem, 4vw, 3.5rem);
}
.accent-banner h2 { color: white; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.accent-banner p { color: rgba(255,255,255,.75); font-size: .88rem; margin-top: .4rem; }

.btn-white {
  display: inline-block;
  background: white; color: var(--accent);
  font-size: .875rem; font-weight: 600;
  padding: .75rem 1.5rem; border-radius: 2px;
  text-decoration: none; white-space: nowrap;
  transition: opacity .2s;
}
.btn-white:hover { opacity: .88; }

@media (max-width: 600px) {
  .accent-banner { flex-direction: column; }
  .accent-banner > div:last-child { width: 100%; text-align: center; }
  .btn-white { width: 100%; text-align: center; }
}

/* ── CONTACT STRIP ── */
.contact-strip {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem);
  display: flex; gap: 1.5rem;
  flex-wrap: wrap; align-items: center;
  justify-content: space-between;
}
.contact-strip h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: .2rem; }
.contact-strip p { color: var(--muted); font-size: .88rem; }
.contact-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 600px) {
  .contact-strip { flex-direction: column; }
  .contact-actions { width: 100%; flex-direction: column; }
  .contact-actions .btn { width: 100%; text-align: center; }
}

/* ── FOOTER ── */
footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--line);
}
footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer nav a { font-size: .88rem; color: var(--muted); }
footer nav a:hover { color: var(--ink); }
footer .copy { font-size: .82rem; color: var(--muted); }

@media (max-width: 600px) {
  footer { flex-direction: column; text-align: center; }
  footer nav { justify-content: center; }
}

/* ── FADE-IN ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp .45s forwards; }
.fade-up:nth-child(1) { animation-delay: .05s; }
.fade-up:nth-child(2) { animation-delay: .12s; }
.fade-up:nth-child(3) { animation-delay: .19s; }
.fade-up:nth-child(4) { animation-delay: .26s; }
.fade-up:nth-child(5) { animation-delay: .33s; }
.fade-up:nth-child(6) { animation-delay: .40s; }
