/* ===== Design tokens — matched to the NF Canisterapie logo ===== */
:root {
  --font-display: 'Bree Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ink: #24303B;
  --ink-soft: #566673;
  --ink-faint: #8B97A3;

  --bg: #FFFFFF;
  --bg-alt: #F0F6FB;
  --card: #FFFFFF;

  --primary: #ED4424;
  --primary-dark: #C7350F;
  --primary-light: #FDE3DA;

  --accent: #0065AB;
  --accent-dark: #004E85;
  --accent-light: #DDEEFA;

  --line: rgba(0, 60, 100, 0.1);
  --shadow-sm: 0 2px 10px rgba(0, 60, 100, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 60, 100, 0.12);
  --shadow-lg: 0 24px 60px rgba(0, 60, 100, 0.18);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --container: 1180px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  display: inline-block;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ===== Nav ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.is-scrolled { padding: 10px 0; box-shadow: var(--shadow-sm); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; transition: height 0.3s ease; }
.site-nav.is-scrolled .brand-logo { height: 38px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--primary-light); color: var(--primary-dark); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 940px) {
  .nav-links { position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 340px);
    z-index: 95;
    background: var(--card); flex-direction: column; align-items: stretch; gap: 2px;
    padding: 100px 24px 24px; box-shadow: var(--shadow-lg);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(100%); transition: transform 0.35s ease; }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-primary { padding: 11px 20px; font-size: 14px; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(10,30,50,0.4); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}

/* ===== Hero (homepage) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding-top: 120px;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,42,74,0.85) 0%, rgba(0,42,74,0.25) 55%, rgba(237,68,36,0.35) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding-bottom: 64px; }
.hero-inner .eyebrow { color: #FFD9AE; }
.hero-inner .eyebrow::before { background: #FFD9AE; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { color: rgba(255,255,255,0.9); font-size: 1.2rem; max-width: 54ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(10px);
  max-width: 720px;
}
.hero-stat { background: rgba(0,42,74,0.4); padding: 22px 20px; }
.hero-stat .num { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; color: #fff; }
.hero-stat .label { font-size: 12.5px; letter-spacing: 0.04em; color: rgba(255,255,255,0.8); margin-top: 4px; }
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { padding: 16px 20px; display: flex; align-items: baseline; gap: 10px; }
  .hero-stat .label { margin-top: 0; }
}

/* ===== Page hero (subpages) ===== */
.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding-top: 120px;
}
.page-hero .hero-media::after {
  background: linear-gradient(0deg, rgba(0,42,74,0.88) 0%, rgba(0,42,74,0.2) 60%, rgba(237,68,36,0.3) 100%);
}
.page-hero-inner { position: relative; z-index: 1; padding-bottom: 56px; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.breadcrumb { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,0.75); letter-spacing: 0.04em; }
.breadcrumb a:hover { color: #fff; }

/* ===== Stat counters (in-page) ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 400; color: var(--primary); }
.stat-card .label { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

/* ===== Cards ===== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-photo { aspect-ratio: 4/3; background-size: cover; background-position: center; position: relative; }
.card-body { padding: 26px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { font-size: 15px; margin-bottom: 0; }
.card-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--primary); color: #fff;
  font-size: 11.5px; font-weight: 900; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 999px;
}

.program-card { display: flex; flex-direction: column; }
.program-card .card-body { display: flex; flex-direction: column; flex: 1; }
.program-card .card-link { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--accent); font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.program-card .card-link svg { transition: transform 0.2s ease; }
.program-card:hover .card-link svg { transform: translateX(4px); }

/* facility / small info card used across codelame, kdojsme etc */
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile-photo { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.tile-body { padding: 20px 22px; }
.tile-body h4 { font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; margin-bottom: 8px; color: var(--ink); }
.tile-body p { font-size: 14px; margin: 0; }

/* team member (dog + handler) card */
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo { aspect-ratio: 1/1; background-size: cover; background-position: center top; }
.team-body { padding: 22px; }
.team-dog { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; margin-bottom: 2px; }
.team-handler { font-size: 13px; color: var(--ink-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.team-meta { font-size: 13.5px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.team-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-light); color: var(--accent-dark);
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.badge-gold { background: var(--primary-light); color: var(--primary-dark); }
.team-skills { font-size: 13px; color: var(--ink-faint); border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }

/* ===== Mission / split section ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.landscape { aspect-ratio: 4/3; }

/* ===== Donate ===== */
.donate-panel {
  background: linear-gradient(135deg, var(--primary) 0%, #F26A3D 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .donate-panel { grid-template-columns: 1fr; padding: 36px 26px; } }
.donate-panel .eyebrow { color: #FFE4D6; }
.donate-panel .eyebrow::before { background: #FFE4D6; }
.donate-panel h2 { color: #fff; }
.donate-panel p { color: rgba(255,255,255,0.9); }
.bank-no {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 20px; border-radius: var(--radius-sm); display: inline-block; margin: 10px 0 20px;
  letter-spacing: 0.02em;
}
.qr-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qr-card { background: #fff; border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.qr-card img { width: 100%; max-width: 120px; height: auto; border-radius: 8px; margin: 0 auto 10px; }
.qr-card .amount { font-weight: 700; color: var(--ink); font-size: 15px; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-grid a { border-radius: var(--radius-sm); overflow: hidden; position: relative; display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,42,74,0.4), transparent 45%);
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-grid .wide { grid-column: span 2; }
}

/* ===== Partners strip ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
.partner-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  height: 90px;
  transition: transform 0.3s ease, box-shadow .3s ease, border-color .3s ease;
}
.partner-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--accent); }
.partner-tile img { max-height: 55px; max-width: 100%; object-fit: contain; }

/* ===== Timeline / dates callout ===== */
.callout {
  background: var(--accent-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.callout-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.date-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.date-pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 14.5px; color: var(--accent-dark); }

/* ===== Content blocks (long-form pages) ===== */
.prose { max-width: 74ch; }
.prose h4 { margin-top: 1.6em; font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.01em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { color: var(--ink-soft); margin-bottom: 6px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px 32px; box-shadow: var(--shadow-sm); }

table.rules { width: 100%; border-collapse: collapse; margin: 18px 0; }
table.rules th, table.rules td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table.rules th { color: var(--ink-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; }

/* ===== Merch / pin cards ===== */
.merch-card { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm); }
.merch-photo { width: 76px; height: 76px; border-radius: 50%; background-size: cover; background-position: center; flex-shrink: 0; border: 3px solid var(--bg-alt); }
.merch-name { font-weight: 700; font-size: 14.5px; }
.merch-price { color: var(--primary); font-weight: 700; font-size: 13.5px; }

/* ===== Board / staff member card ===== */
.person-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.person-card:last-child { border-bottom: none; }
.person-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; flex-shrink: 0; }
.person-name { font-weight: 700; font-size: 16px; }
.person-role { font-size: 13.5px; color: var(--ink-faint); }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0 auto 26px; }
.cta-banner .btn-ghost { border-color: rgba(255,255,255,0.6); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.18); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { background: #171E29; color: rgba(255,255,255,0.78); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { margin-bottom: 14px; }
.footer-logo { height: 46px; width: auto; }
.footer-col h5 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 900; }
.footer-col a { display: block; padding: 5px 0; font-size: 14.5px; color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; background: rgba(0,30,52,0.92); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 40px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 26px; right: 30px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .donate-panel { border-radius: var(--radius-md); }
  .qr-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .qr-card { padding: 10px; }
  .container { padding: 0 20px; }
  .callout { padding: 28px 24px; gap: 20px; }
  .callout > .btn { margin-left: 0 !important; width: 100%; justify-content: center; }
  .cta-banner { padding: 36px 24px; }
  .donate-panel, .cta-banner, .callout { border-radius: var(--radius-md); }
  table.rules th, table.rules td { padding: 8px 6px; font-size: 13.5px; }
}
