/* NAB - nabthailand.dk */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700.woff2") format("woff2");
}

:root {
  --red: #A51D32;
  --red-dark: #8a1829;
  --navy: #2D2A4A;
  --orange: #F7941D;
  --tint: #F9EFEC;
  --tint-strong: #F3E2DC;
  --white: #fff;
  --text: #4a4763;
  --muted: #7b7891;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 8px 28px rgba(45, 42, 74, .09);
  --container: 1120px;
  --dots: radial-gradient(rgba(45, 42, 74, .28) 1.5px, transparent 1.5px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--tint);
}

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

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }

p { margin: 0 0 1em; }

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

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

.muted { color: var(--muted); font-size: .9rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: .5em;
}

/* Centrerede sektions-headers (som reference) */
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.6rem;
}
.section-head .section-intro { color: var(--muted); margin-bottom: 0; }

.section { padding: 76px 0; }
.section-white {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 1240px;
  margin: 28px auto;
  box-shadow: var(--shadow);
}
.section-white + .section-white { margin-top: 0; }

/* Hvidt ark øverst (hero + features) - headeren ligger fixed ovenpå arkets top */
.sheet {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 1240px;
  margin: 20px auto 0;
  padding-top: 76px;
  box-shadow: var(--shadow);
  overflow: visible;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .68em 1.6em;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-light { background: var(--white); color: var(--red); }
.btn-light:hover { background: var(--tint); }
.btn-lg { padding: .85em 2em; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* Header - fixed bar, samme bredde som arket. I top: del af arket
   (kun øverste hjørner rundede). Ved scroll: fritsvævende, alle hjørner rundede. */
.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  max-width: 1240px;
  margin: 0 auto;
  z-index: 50;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid rgba(45, 42, 74, .06);
  transition: border-radius .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  border-radius: var(--radius-lg);
  border-bottom-color: transparent;
  box-shadow: 0 10px 30px rgba(45, 42, 74, .14);
}
section[id], .sheet[id] { scroll-margin-top: 108px; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.site-header .brand { margin-right: auto; }
.brand img { height: 44px; width: auto; }
.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: .04em;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--navy); font-weight: 500; font-size: .92rem; }
.site-nav a:hover { color: var(--red); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero-text p {
  max-width: 460px;
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 1.6em;
}

/* Hero-collage: stor flise + små fliser + former (som reference) */
.hero-art { position: relative; }
.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: start;
  padding: 24px 8px 24px 0;
}
.collage-main {
  background: linear-gradient(160deg, var(--tint) 0%, var(--tint-strong) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  box-shadow: var(--shadow);
}
.collage-main img { width: 170px; }
.collage-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding-top: 12px;
}
.tile {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tile-flag {
  width: 128px;
  height: 96px;
  display: flex;
  flex-direction: column;
}
.tile-flag i { display: block; width: 100%; }
.tile-flag i:nth-child(1) { background: var(--red); flex: 1; }
.tile-flag i:nth-child(2) { background: var(--white); flex: 1; }
.tile-flag i:nth-child(3) { background: var(--navy); flex: 2; }
.tile-flag i:nth-child(4) { background: var(--white); flex: 1; }
.tile-flag i:nth-child(5) { background: var(--red); flex: 1; }
.tile-navy {
  width: 96px;
  height: 96px;
  background: var(--navy);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-navy svg { width: 42px; height: 42px; }

.blob { position: absolute; border-radius: 50%; z-index: 0; }
.blob-orange {
  width: 88px; height: 88px;
  background: var(--orange);
  top: -6px; right: 4px;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 10px solid var(--red);
  opacity: .85;
}
.ring-red { width: 54px; height: 54px; left: -14px; bottom: 6px; }

.dots {
  position: absolute;
  background-image: var(--dots);
  background-size: 14px 14px;
  opacity: .5;
}
.dots-hero { width: 120px; height: 90px; left: 34%; bottom: -8px; }
.dots-about { width: 110px; height: 84px; right: -10px; bottom: -14px; }

/* Features (ingen kort-baggrund, centreret - som reference) */
.sheet .section { padding-bottom: 44px; }
.features { margin-top: .5rem; }
.feature { text-align: center; padding: 0 12px 8px; }
.feature p { color: var(--muted); font-size: .95rem; }
.icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  margin-bottom: 16px;
}
.icon-ring svg { width: 26px; height: 26px; }
.more-link { font-weight: 600; font-size: .92rem; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-donation { grid-template-columns: repeat(5, 1fr); gap: 18px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Engangs/Månedlig-toggle */
.freq-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: -0.8rem auto 2rem;
  width: fit-content;
  background: var(--tint);
  border-radius: 999px;
  padding: 5px;
}
.freq-btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted);
  padding: .55em 1.6em;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.freq-btn.active { background: var(--red); color: var(--white); }
.per-month { display: none; font-size: .85rem; color: var(--muted); font-weight: 600; }
.freq-note { display: none; font-size: .8rem; margin: -0.4em 0 .8em; }
.grid-donation.monthly .per-month { display: inline; }
.grid-donation.monthly .freq-note { display: block; }
.grid-donation.monthly .donation-card-limited { opacity: .75; }

/* Donation- og projektkort: billed-felt top + body (som reference-kort) */
.donation-card, .project-card { display: flex; flex-direction: column; }
.donation-art {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donation-art svg { width: 46px; height: 46px; }
.art-red { background: var(--red); color: #fff; }
.art-orange { background: var(--orange); color: #fff; }
.art-navy { background: var(--navy); color: #fff; }
.art-tint { background: var(--tint-strong); color: var(--red); }

/* Donationskort: neutrale toppe, kun ikonet bærer accentfarven */
#doner .donation-art { background: var(--tint); }
#doner .art-red { color: var(--red); }
#doner .art-orange { color: var(--orange); }
#doner .art-navy { color: var(--navy); }
#doner .art-tint { color: var(--red); }
.donation-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 16px 20px;
  text-align: left;
}
.donation-body h3 { margin-bottom: .3em; }
.donation-body p { flex: 1; font-size: .88rem; color: var(--muted); }
.project-card .donation-art { height: 140px; }
.project-card .donation-body { padding: 22px 22px 24px; }
.project-card .donation-body p { font-size: .93rem; }

/* Featured hovedpartner (HHNFT) */
.project-featured {
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
}
.project-featured-art {
  position: relative;
  background: var(--red);
  color: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.project-featured-art svg { width: 84px; height: 84px; }
.featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--orange);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35em 1em;
  border-radius: 999px;
}
.project-featured-body { padding: 36px 40px; }
.project-featured-body h3 { font-size: 1.35rem; }
.project-featured-body .btn { margin-top: .4rem; }

/* Sekundære partnere - kompakte, nedtonede */
.secondary-partners-label {
  margin: 32px 0 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.project-mini {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  box-shadow: none;
  border: 1px solid rgba(45, 42, 74, .1);
}
.project-mini h3 { font-size: 1rem; margin-bottom: .3em; }
.project-mini p { font-size: .88rem; color: var(--muted); margin-bottom: .4em; }
.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--navy);
  flex-shrink: 0;
}
.mini-icon svg { width: 24px; height: 24px; }

/* Betalings-panel: MobilePay + bank i ét kort med divider */
.payment-panel {
  margin: 44px auto 0;
  max-width: 880px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 32px;
  padding: 36px 40px;
  background: var(--tint);
  box-shadow: none;
}
.payment-panel .bank-row { background: var(--white); }
.payment-panel .payment-icon { background: var(--white); }
.payment-divider { background: rgba(45, 42, 74, .1); }
.payment-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.payment-head h3 { margin: 0; }
.payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tint-strong);
  color: var(--red);
  flex-shrink: 0;
}
.payment-icon svg { width: 22px; height: 22px; }
.pill {
  font-size: .75rem;
  font-weight: 600;
  padding: .25em .9em;
  border-radius: 999px;
  margin-left: auto;
}
.pill-free { background: #EAF6EC; color: #2C7A3D; }
.payment-mp { display: flex; gap: 18px; align-items: flex-start; }
.payment-mp img { border-radius: 10px; flex-shrink: 0; }
.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--tint);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.bank-row span { color: var(--muted); font-size: .88rem; }
.bank-row strong {
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: .04em;
}

/* Om NAB / stats (som referencens "summary in numbers") */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  margin-top: 1.2rem;
}
.stat { display: flex; flex-direction: column; }
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.stat-icon svg { width: 22px; height: 22px; }
.si-orange { background: #FEF0DE; color: var(--orange); }
.si-red { background: var(--tint-strong); color: var(--red); }
.si-navy { background: #EAE9F2; color: var(--navy); }
.stat-number { font-size: 1.55rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: .85rem; color: var(--muted); }

.about-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}
.about-photo {
  position: relative;
  z-index: 2;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px 48px;
  box-shadow: var(--shadow);
}
.blob-orange-lg {
  width: 120px; height: 120px;
  background: var(--orange);
  top: 2%; right: 8%;
  z-index: 1;
}
/* Om NAB-panel: vision + bestyrelse i ét kort */
.about-panel {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  padding: 44px 48px;
  background: var(--tint);
  box-shadow: none;
}
.vision-quote {
  margin: 0 0 1.2em;
  padding-left: 18px;
  border-left: 4px solid var(--orange);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}
.about-vision p:last-child { margin-bottom: 0; }
.about-board h3 { margin-bottom: 1em; }
.board-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}
.board-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.board-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.av-red { background: var(--red); }
.av-orange { background: var(--orange); }
.av-navy { background: var(--navy); }
.board-who { display: flex; flex-direction: column; line-height: 1.35; }
.board-who strong { color: var(--navy); font-weight: 600; font-size: .95rem; }
.board-who span:last-child { color: var(--muted); font-size: .82rem; }
.btn-ghost {
  border-color: var(--red);
  color: var(--red);
  background: transparent;
}
.btn-ghost:hover { background: var(--tint); }

/* Dokumenter */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 560px;
}
.doc-list li {
  padding: 14px 18px;
  background: var(--tint);
  border-radius: 10px;
  margin-bottom: 10px;
}
.doc-list a { font-weight: 600; }

/* CTA-banner - samme bredde som de hvide ark, luft over og under */
.cta-section { padding: 0 0 76px; }
.cta-banner {
  background: var(--red);
  border-radius: var(--radius-lg);
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; margin-bottom: .3em; }
.cta-banner p { color: rgba(255, 255, 255, .85); margin: 0; }

/* Footer - lys (som reference) */
.site-footer {
  background: var(--white);
  color: var(--muted);
  padding: 56px 0 0;
  font-size: .92rem;
}
.site-footer h3 { font-size: .95rem; margin-bottom: .9em; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--red); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { max-width: 300px; margin-top: 14px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { width: fit-content; }
.footer-contact p { margin: 0 0 .5em; }
.footer-bottom {
  border-top: 1px solid rgba(45, 42, 74, .08);
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: .85rem;
}

/* Tak-side */
.thanks-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.thanks-page .container { max-width: 640px; }
.thanks-page img { width: 110px; margin-bottom: 24px; }

/* Responsive */
@media (max-width: 1279px) {
  .sheet, .section-white, .cta-banner, .site-header { margin-left: 20px; margin-right: 20px; }
}

@media (max-width: 960px) {
  .grid-donation { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { flex-direction: column; text-align: center; }
  .project-featured { grid-template-columns: 1fr; }
  .project-featured-art { min-height: 140px; }
  .payment-panel { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .payment-divider { width: 100%; height: 1px; }
  .about-panel { grid-template-columns: 1fr; gap: 32px; padding: 32px 28px; }
}

@media (max-width: 700px) {
  .section { padding: 52px 0; }
  .grid-3, .grid-2, .grid-donation { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .sheet, .section-white, .cta-banner, .site-header { margin-left: 10px; margin-right: 10px; }
  .payment-mp { flex-direction: column; align-items: center; text-align: center; }

  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px 20px 20px;
    box-shadow: 0 12px 24px rgba(45, 42, 74, .12);
    gap: 14px;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .site-nav.open { display: flex; }
}
