/* =========================================================
   The Forrester Foundation Sri Lanka Wildlife Conservation
   Design System — Inclusive Modern
   ========================================================= */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --accent: #f59e0b;
  --dark: #1e1b4b;
  --dark-2: #2a2660;
  --text: #1f1b3a;
  --text-muted: #5a5575;
  --border: #e6e3ef;
  --success: #16a34a;
  --max: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(30,27,75,0.06), 0 1px 3px rgba(30,27,75,0.08);
  --shadow-md: 0 10px 30px rgba(30,27,75,0.10);
  --shadow-lg: 0 25px 60px rgba(30,27,75,0.18);
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1em; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

/* Container */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ===============  NAVBAR  =============== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  color: #fff;
  transition: box-shadow .25s ease;
}
.navbar.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 32ch;
}
.brand-sub {
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c7c2e8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56ch;
}
.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: #e6e3ef;
  font-size: .95rem;
  font-weight: 500;
  padding: .4rem .2rem;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: .55rem 1.1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--primary-600); border-bottom: none !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: .45rem .6rem;
  border-radius: 8px;
  margin-left: auto;
  cursor: pointer;
}

@media (max-width: 960px) {
  .brand-name { font-size: .85rem; max-width: 22ch; }
  .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(82vw, 340px);
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.4);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: .75rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-cta { margin-top: .5rem; text-align: center; border-bottom: none !important; }
}

/* ===============  BUTTONS  =============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-accent { background: var(--accent); color: #1e1b4b; }
.btn-accent:hover { background: #d97706; color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-outline-dark { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn-outline-dark:hover { background: var(--dark); color: #fff; }
.btn-ghost { color: var(--primary); padding: .5rem 0; }

/* ===============  REVEAL & COUNTER  =============== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===============  HERO  =============== */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #2a2660 60%, #3c2e7a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(245,158,11,.18), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 5.5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: inline-block;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.hero h1 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.hero-sub {
  font-size: 1.1rem;
  color: #d8d4ee;
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2.2rem;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.6rem;
  max-width: 34rem;
}
.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  display: block;
  font-weight: 600;
}
.hero-stat .lbl {
  font-size: .78rem;
  color: #c7c2e8;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .4rem;
  display: block;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-md);
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 30%;
  width: 40%; height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.hero-card .kicker {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  padding: .3rem .7rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: .5rem; }
.hero-card p { color: #d8d4ee; font-size: .95rem; }
.hero-card ul { margin: 1rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: #c7c2e8; }
.hero-card li { padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 1rem; }
.hero-card li strong { color: #fff; font-weight: 500; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3.5rem 1.25rem; gap: 2.5rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* ===============  SECTIONS  =============== */
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #d8d4ee; }

.section-label {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: inline-block;
}
.section-dark .section-label { color: var(--accent); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 36ch; margin-bottom: 0; }
.section-head .view-all { color: var(--primary); font-weight: 600; }
.section-dark .section-head .view-all { color: var(--accent); }

/* ===============  TWO-COL  =============== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 2.5rem; } }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pillar .num {
  font-family: var(--font-heading);
  font-size: .85rem;
  color: var(--accent);
  letter-spacing: .1em;
  font-weight: 600;
}
.pillar h4 { font-family: var(--font-heading); font-size: 1.05rem; margin: .3rem 0 .4rem; }
.pillar p { font-size: .9rem; color: var(--text-muted); margin: 0; }
@media (max-width: 500px) { .pillars { grid-template-columns: 1fr; } }

/* ===============  CARDS / PROGRAMMES  =============== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: #eae8f3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--text-muted); font-weight: 600; }
.card-top .badge { background: #ede9fe; color: var(--primary); padding: .25rem .6rem; border-radius: 4px; }
.card-body h3 { font-size: 1.2rem; margin: .2rem 0 .3rem; }
.card-body p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.card-body .more { margin-top: auto; padding-top: 1rem; color: var(--primary); font-weight: 600; font-size: .9rem; }

/* ===============  IMPACT STATS  =============== */
.impact-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.impact-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
@media (max-width: 800px) { .impact-head { grid-template-columns: 1fr; gap: 1rem; } }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.impact-stat {
  border-top: 2px solid rgba(255,255,255,.2);
  padding-top: 1.2rem;
}
.impact-stat .num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
  font-weight: 600;
  display: block;
}
.impact-stat .lbl { color: #c7c2e8; margin-top: .6rem; font-size: .92rem; display: block; }
@media (max-width: 800px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===============  TESTIMONIALS  =============== */
.testi-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: flex-start; }
.testi-wrap h2 { max-width: 20ch; }
.testi-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.testi {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testi::before {
  content: "“";
  font-family: var(--font-heading);
  position: absolute;
  top: -14px; left: 18px;
  background: var(--accent);
  color: var(--dark);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}
.testi p { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text); margin-bottom: 1rem; line-height: 1.45; }
.testi cite { font-style: normal; font-weight: 600; color: var(--text); }
.testi cite span { color: var(--text-muted); font-weight: 400; display: block; font-size: .85rem; margin-top: 2px; }
@media (max-width: 800px) { .testi-wrap { grid-template-columns: 1fr; gap: 2rem; } }

/* ===============  CTA BAND  =============== */
.cta-band {
  background: var(--primary);
  color: #fff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ddd7ff; margin-bottom: 0; }
.cta-band .actions { display: flex; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; }
.cta-band .btn-accent:hover { background: #fff; color: var(--primary); }
@media (max-width: 800px) {
  .cta-band { grid-template-columns: 1fr; padding: 2rem; }
  .cta-band .actions { justify-content: flex-start; }
}

/* ===============  PAGE HEADER (inner pages)  =============== */
.page-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #3c2e7a 100%);
  color: #fff;
  padding: 4rem 0 4.5rem;
  position: relative;
}
.page-header h1 { color: #fff; max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-header p { color: #d8d4ee; font-size: 1.1rem; max-width: 60ch; }
.crumbs { font-size: .78rem; text-transform: uppercase; letter-spacing: .15em; color: #c7c2e8; margin-bottom: 1rem; }
.crumbs a { color: var(--accent); }

/* ===============  PROSE (legal / article)  =============== */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--text); }
.prose li { margin-bottom: .4rem; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: .2rem 1.2rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

/* ===============  CONTACT FORM  =============== */
.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-success {
  padding: 1rem 1.2rem;
  background: #dcfce7;
  color: #14532d;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: none;
}
.form-success.show { display: block; }

/* ===============  TEAM / VALUES  =============== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.team-card h4 { font-size: 1.1rem; margin-bottom: .1rem; }
.team-role { font-size: .85rem; color: var(--primary); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: .8rem; }
.team-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.value .icon {
  width: 44px; height: 44px;
  background: #ede9fe;
  color: var(--primary);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: .8rem;
}
.value h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.value p { font-size: .88rem; color: var(--text-muted); margin: 0; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .values-grid { grid-template-columns: 1fr; } }

/* ===============  BLOG  =============== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
.article-meta { color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem; }
.article-hero {
  aspect-ratio: 21/9;
  background: #eae8f3 center/cover;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

/* ===============  FOOTER  =============== */
.footer {
  background: var(--dark);
  color: #d8d4ee;
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer h5 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer .brand { margin-bottom: 1rem; }
.footer .brand-name { white-space: normal; max-width: none; }
.footer p { font-size: .9rem; color: #b8b2d5; margin: 0 0 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; font-size: .92rem; }
.footer li a { color: #c7c2e8; }
.footer li a:hover { color: #fff; }
.reg {
  display: inline-block;
  font-size: .78rem;
  color: #a6a0c6;
  background: rgba(255,255,255,.05);
  padding: .4rem .7rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: background .15s;
}
.socials a:hover { background: var(--primary); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #a6a0c6;
}
.footer-bottom em {
  font-family: var(--font-heading);
  font-style: italic;
  color: #c7c2e8;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===============  CHAT WIDGET  =============== */
.chat-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 90;
  transition: transform .2s, background .2s;
}
.chat-btn:hover { background: var(--primary-600); transform: scale(1.05); }
.chat-panel {
  position: fixed;
  bottom: 96px; right: 24px;
  width: min(360px, 92vw);
  max-height: min(520px, 80vh);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 90;
  border: 1px solid var(--border);
}
.chat-panel.open { display: flex; }
.chat-head { background: var(--dark); color: #fff; padding: 1rem 1.1rem; }
.chat-head h4 { color: #fff; margin: 0 0 .2rem; font-size: 1rem; }
.chat-head small { color: #c7c2e8; font-size: .78rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: var(--bg); }
.chat-msg { padding: .7rem .9rem; border-radius: 14px; font-size: .92rem; max-width: 85%; margin-bottom: .6rem; line-height: 1.4; }
.chat-msg.bot { background: #fff; border: 1px solid var(--border); color: var(--text); }
.chat-msg.me { background: var(--primary); color: #fff; margin-left: auto; }
.chat-foot { padding: .7rem; border-top: 1px solid var(--border); display: flex; gap: .5rem; background: #fff; }
.chat-foot input {
  flex: 1; border: 1px solid var(--border); border-radius: 10px;
  padding: .55rem .75rem; font: inherit;
}
.chat-foot input:focus { outline: none; border-color: var(--primary); }
.chat-foot button { background: var(--primary); color: #fff; border: none; padding: .55rem 1rem; border-radius: 10px; font-weight: 600; cursor: pointer; }

/* ===============  COOKIE BANNER  =============== */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--dark);
  color: #fff;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 95;
  font-size: .9rem;
}
.cookie-banner.show { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cookie-banner p { color: #d8d4ee; margin: 0; flex: 1 1 260px; }
.cookie-banner .cb-actions { display: flex; gap: .5rem; margin-left: auto; }
.cookie-banner button {
  border: none; padding: .5rem .9rem; border-radius: 8px;
  font-weight: 600; cursor: pointer; font-size: .88rem;
}
.cookie-banner .accept { background: var(--accent); color: var(--dark); }
.cookie-banner .decline { background: transparent; color: #c7c2e8; border: 1px solid rgba(255,255,255,.2); }

/* ===============  UTIL  =============== */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.lede { font-size: 1.2rem; color: var(--text-muted); max-width: 56ch; }
.ul-check { list-style: none; padding: 0; }
.ul-check li { padding-left: 1.6rem; position: relative; margin-bottom: .6rem; }
.ul-check li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.tag {
  display: inline-block;
  background: #ede9fe;
  color: var(--primary);
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.section-dark .tag { background: rgba(245,158,11,.15); color: var(--accent); }
