/* Website-specific styles layered on top of colors_and_type.css */

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--hf-blue);
  color: #fff;
  font-size: var(--fs-xs);
  height: var(--topbar-h);
}
.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: none; color: #fff; }
.topbar__email { display: inline-flex; align-items: center; gap: 8px; }
.topbar__socials { display: flex; align-items: center; gap: 14px; }
.topbar__socials a {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.topbar__socials svg { width: 14px; height: 14px; }

/* Language toggle */
.topbar__lang { display: flex; align-items: center; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
  line-height: 1;
}
.lang-toggle:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.4);
}
.lang-toggle svg { opacity: .8; }
.lang-toggle__label { letter-spacing: 0.05em; }

/* Header-level toggle: hidden on desktop (topbar has it), shown on mobile */
.lang-toggle--header {
  background: var(--neutral-100);
  border-color: var(--border);
  color: var(--fg-1);
  display: none;
  margin-left: 8px;
}
.lang-toggle--header:hover {
  background: var(--hf-blue-50);
  border-color: var(--hf-blue);
  color: var(--hf-blue);
}
@media (max-width: 768px) {
  .lang-toggle--header { display: inline-flex; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-5);
}
.header__logo img { height: 56px; width: auto; display: block; }
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 10px;
  color: var(--fg-1);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.header__burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg-1);
  cursor: pointer;
}
.header__burger:hover { background: var(--hf-blue-50); color: var(--hf-blue); }

/* Collapse the desktop nav early; show hamburger to match the live site */
@media (max-width: 1180px) {
  .nav__list { display: none; }
  .header__burger { display: inline-flex; }
  /* Hide the desktop donate button — it's already in the mobile drawer */
  .nav > .btn--donate { display: none; }
}
.nav__link:hover { color: var(--hf-blue); text-decoration: none; background: var(--hf-blue-50); }
.nav__link.is-active { color: var(--hf-blue); }
.nav__chev { width: 10px; height: 10px; opacity: .6; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 240px;
  padding: 8px;
  display: none;
}
.nav__item:hover > .dropdown,
.nav__item.is-open > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--fg-1);
}
.dropdown a:hover { background: var(--hf-blue-50); color: var(--hf-blue); text-decoration: none; }
.dropdown--nested {
  position: absolute;
  top: 0; left: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 240px;
  padding: 8px;
  display: none;
  margin-left: 4px;
}
.dropdown__nest { position: relative; }
.dropdown__nest:hover > .dropdown--nested { display: block; }
.dropdown__nest > a {
  display: flex; align-items: center; justify-content: space-between;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(420px, 60vw, 680px);
  overflow: hidden;
  background: var(--neutral-900);
  color: #fff;
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide.is-active .hero__img { animation: heroZoom 8s ease forwards; }
.hero__slide.is-active .hero__caption { animation: heroFadeUp .8s .3s ease both; }

/* Full-bleed background image */
.hero__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
}
.hero__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,62,106,.85) 0%,
    rgba(0,105,180,.65) 45%,
    rgba(0,0,0,.25) 100%
  );
}

/* Text overlay on top of image */
.hero__caption {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 680px;
  padding: var(--space-8) var(--space-7);
  display: flex; flex-direction: column; justify-content: center;
  margin-left: max(var(--space-7), calc((100% - 1200px) / 2 + var(--space-7)));
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  opacity: .85;
  margin-bottom: 12px;
}
.hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  color: #fff;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero__sub {
  font-size: 1.125rem;
  max-width: 480px;
  margin-bottom: var(--space-5);
  opacity: .95;
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
}
.hero__cta { align-self: flex-start; }
.hero__dots {
  position: absolute;
  bottom: 24px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 5;
}
.hero__dots button {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--t);
}
.hero__dots button.is-active { background: #fff; }
.hero__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t);
}
.hero__arrow:hover { background: rgba(255,255,255,.3); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

/* Ken Burns zoom animation */
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
/* Text fade-up entrance */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .hero__caption {
    margin-left: 0;
    padding: var(--space-6) var(--space-5);
    max-width: none;
  }
}

/* ---------- Intro / About ---------- */
.intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.intro__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: var(--fw-bold);
  color: var(--hf-blue);
  font-size: var(--fs-xs);
  margin-bottom: 12px;
}
.intro__title {
  font-size: var(--fs-h1);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--space-5);
}
.intro__title em { color: var(--hf-blue); font-style: normal; }
.intro__body p { color: var(--fg-2); font-size: 1.0625rem; line-height: 1.7; }
.intro__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background-image: url('../images/about-section.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intro__photo::after {
  content: none;
}
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; } }

/* ---------- Appeals ---------- */
.appeals__intro { text-align: center; max-width: 720px; margin: 0 auto var(--space-7); }
.appeals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .appeals__grid { grid-template-columns: 1fr; } }
.appeal-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.appeal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.appeal-card__img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.appeal-card__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45));
}
.appeal-card__body {
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.appeal-card__tag {
  align-self: flex-start;
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--hf-blue);
}
.appeal-card__title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  margin: 0;
}
.appeal-card__sub { color: var(--fg-2); font-size: var(--fs-small); margin: 0; flex: 1; }
.appeal-card__cta { margin-top: var(--space-3); align-self: flex-start; }

/* ---------- Programmes ---------- */
.programmes__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-7);
}
.programmes__intro h3 {
  font-size: var(--fs-h2);
  text-transform: none;
  margin-bottom: var(--space-3);
}
.programmes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1000px) { .programmes__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .programmes__grid { grid-template-columns: 1fr; } }

.programme {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.programme:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.programme__cover {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
}
.programme__cover img { max-width: 80%; max-height: 80%; height: auto; }
.programme__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.programme__title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.programme__title a { color: var(--fg-1); }
.programme__title a:hover { color: var(--hf-blue); text-decoration: none; }
.programme__blurb {
  font-size: var(--fs-small);
  color: var(--fg-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.programme__link {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- Impact ---------- */
.impact {
  background: var(--hf-blue);
  color: #fff;
}
.impact .section-heading { color: #fff; }
.impact .section-heading::after { background: #fff; }
.impact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  text-align: center;
}
@media (max-width: 800px) { .impact__grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.stat__icon {
  width: 96px; height: 96px;
  margin: 0 auto var(--space-4);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.stat__icon svg { width: 44px; height: 44px; }
.stat__num {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  opacity: .92;
}

/* ---------- News ---------- */
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .news__grid { grid-template-columns: 1fr; } }
.news-card {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-card__img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-card__date {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--hf-blue);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--fw-bold);
  text-align: center;
  line-height: 1.2;
}
.news-card__date strong { display: block; font-size: 1.125rem; }
.news-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__title { font-size: 1.0625rem; font-weight: var(--fw-bold); margin: 0; }
.news-card__title a { color: var(--fg-1); }
.news-card__title a:hover { color: var(--hf-blue); text-decoration: none; }
.news-card__meta { font-size: var(--fs-xs); color: var(--fg-3); }
.news-card__excerpt { font-size: var(--fs-small); color: var(--fg-2); margin: 0; flex: 1; }
.news-card__more {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--fw-bold);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--hf-blue-darker);
  color: #fff;
  padding: var(--space-9) 0 0;
}
.footer a { color: #fff; opacity: .85; }
.footer a:hover { opacity: 1; color: #fff; text-decoration: none; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-8);
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__col h4 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
  color: #fff;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__col li { font-size: var(--fs-small); }
.footer__logo img { height: 56px; width: auto; margin-bottom: var(--space-4); }
.footer__newsletter input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: inherit;
  font-size: var(--fs-small);
  margin-bottom: 8px;
}
.footer__newsletter input::placeholder { color: rgba(255,255,255,.6); }
.footer__newsletter button { margin-top: 8px; width: 100%; }
.footer__check {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: var(--fs-xs);
  opacity: .8;
  margin: 8px 0;
  line-height: 1.4;
}
.footer__check input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  margin: 0; margin-top: 2px;
  accent-color: var(--hf-blue);
  cursor: pointer;
}
.footer__check label { cursor: pointer; }
.footer__contact { font-size: var(--fs-small); line-height: 1.7; opacity: .9; }
.footer__contact a { display: block; }
.footer__socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-4); }
.footer__socials a {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 1;
}
.footer__socials a:hover { background: rgba(255,255,255,.24); }
.footer__socials svg { width: 14px; height: 14px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: var(--space-4) 0;
  font-size: var(--fs-xs);
  opacity: .7;
  text-align: center;
  line-height: 1.7;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--hf-blue);
  color: #fff;
  padding: 12px 24px;
  font-weight: var(--fw-bold);
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Mobile menu drawer ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.mobile-menu.is-open { display: block; }

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.mobile-menu__drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 85vw);
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}

.mobile-menu__close {
  width: 40px; height: 40px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--fg-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.mobile-menu__close:hover { background: var(--neutral-100); }

.mobile-menu__nav {
  padding: var(--space-4) 0;
  flex: 1;
}

.mobile-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu__nav a {
  display: block;
  padding: 12px var(--space-5);
  color: var(--fg-1);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mobile-menu__nav a:hover {
  background: var(--hf-blue-50);
  color: var(--hf-blue);
  text-decoration: none;
}

.mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px var(--space-5);
  border: none;
  background: none;
  color: var(--fg-1);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
}
.mobile-menu__toggle:hover {
  background: var(--hf-blue-50);
  color: var(--hf-blue);
}

.mobile-menu__sub {
  display: none;
  padding-left: var(--space-5);
  background: var(--neutral-50);
}
.mobile-menu__sub a {
  text-transform: none;
  font-weight: var(--fw-medium);
}

.mobile-menu__cta {
  padding: var(--space-5);
  border-top: 1px solid var(--border);
}
.mobile-menu__cta .btn { width: 100%; }

/* ---------- Single post responsive ---------- */
@media (max-width: 900px) {
  .single-post + aside { display: none; }
  .single-post { grid-column: 1 / -1; }
}

/* ---------- Entry content defaults ---------- */
.entry-content h2 { margin-top: var(--space-7); }
.entry-content h3 { margin-top: var(--space-6); }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: var(--space-5); }
.entry-content blockquote {
  border-left: 3px solid var(--hf-blue);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  background: var(--neutral-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- WordPress pagination ---------- */
.nav-links {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.nav-links a, .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  border: 1px solid var(--border);
}
.nav-links a:hover { background: var(--hf-blue-50); color: var(--hf-blue); text-decoration: none; }
.nav-links .current { background: var(--hf-blue); color: #fff; border-color: var(--hf-blue); }

/* ============================================================
   Mobile refinements for Swedish site
   ============================================================ */

/* Hide topbar on mobile — email/socials too cramped */
@media (max-width: 768px) {
  .topbar { display: none; }
}

/* Reduce header height on mobile */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header__logo img { height: 40px; }
}

/* Hero: reduce padding, font size on small screens */
@media (max-width: 600px) {
  .hero { height: clamp(320px, 70vh, 480px); }
  .hero__caption { padding: var(--space-5); }
  .hero__title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .hero__sub { font-size: 0.95rem; margin-bottom: var(--space-4); }
  .hero__cta { padding: 10px 24px; font-size: var(--fs-xs); }
  .hero__arrow { display: none; }
}

/* Reduce section spacing on mobile */
@media (max-width: 768px) {
  .section { padding: var(--space-7) 0; }
  .section--tight { padding: var(--space-6) 0; }
}

/* Intro section: reduce text on mobile */
@media (max-width: 600px) {
  .intro__title { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .intro__body p { font-size: 0.95rem; }
}

/* Programme cards: better spacing on mobile */
@media (max-width: 540px) {
  .programmes__grid { gap: var(--space-3); }
  .programme__body { padding: var(--space-3) var(--space-4) var(--space-4); }
}

/* Impact stats: smaller numbers on mobile */
@media (max-width: 600px) {
  .stat__num { font-size: clamp(2rem, 8vw, 2.5rem); }
  .stat__icon { width: 72px; height: 72px; }
  .stat__icon svg { width: 32px; height: 32px; }
  .impact__grid { gap: var(--space-5); }
}

/* News cards: tighter on mobile */
@media (max-width: 540px) {
  .news__grid { gap: var(--space-3); }
  .news-card__body { padding: var(--space-4); }
}

/* Footer: reduce padding on mobile */
@media (max-width: 540px) {
  .footer { padding-top: var(--space-7); }
  .footer__grid { gap: var(--space-5); }
  .footer__bottom { font-size: var(--fs-xs); padding: var(--space-3) 0; }
  .footer__socials { justify-content: flex-start; }
  .footer__check input[type="checkbox"] { width: 14px; height: 14px; min-width: 14px; }
  .footer__newsletter input { font-size: 16px; /* prevents iOS zoom */ }
}

/* Page hero: smaller on mobile */
@media (max-width: 600px) {
  .page-hero { padding: var(--space-6) 0 var(--space-5); }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* Buttons: full width on very small screens where helpful */
@media (max-width: 400px) {
  .hero__cta { width: 100%; justify-content: center; }
  .appeal-card__cta .btn { width: 100%; justify-content: center; }
}

/* Fix long Swedish words that might overflow */
.hero__title,
.intro__title,
.section-heading,
.programme__title,
.appeal-card__title,
.news-card__title {
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ============================================================
   WHERE WE WORK — Hero, Continent Tabs & Country Cards
   ============================================================ */

/* World-map hero — clean blue gradient */
.wwh-hero {
  background: linear-gradient(135deg, var(--hf-blue) 0%, #003e6a 100%);
  padding: var(--space-10) 0 var(--space-8);
  text-align: center;
  position: relative;
  color: #fff;
}
.wwh-hero__inner {
  position: relative;
  z-index: 1;
}
.wwh-hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  color: #fff;
  margin: 0 0 var(--space-3);
}
.wwh-hero__crumbs {
  font-size: var(--fs-small);
  color: rgba(255,255,255,.7);
}
.wwh-hero__crumbs a {
  color: rgba(255,255,255,.8);
}
.wwh-hero__crumbs a:hover { color: #fff; }

.where-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: clamp(260px, 40vw, 480px);
  display: flex;
  align-items: flex-end;
}
.where-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.6) 50%, rgba(255,255,255,.85) 100%);
}
.where-hero__content {
  position: relative;
  padding-bottom: var(--space-8);
  text-align: center;
}
.where-hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  color: var(--neutral-900);
  margin: 0 0 var(--space-2);
}
.where-hero__crumbs {
  font-size: var(--fs-small);
  color: var(--fg-2);
}
.where-hero__crumbs a { color: rgba(255,255,255,.8); }
.where-hero__crumbs span { margin: 0 var(--space-2); }

/* Continent tabs row */
.continent-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-7);
}
.continent-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--neutral-0);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--t);
}
.continent-tab:hover { border-color: var(--hf-blue); color: var(--hf-blue); }
.continent-tab.is-active { background: var(--hf-blue); border-color: var(--hf-blue); color: #fff; }
.continent-tab__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Panels */
.continent-panel { display: none; }
.continent-panel.is-active { display: block; animation: fadeInPanel .3s ease; }
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Country cards grid */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}
.country-card {
  background: var(--neutral-0);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--hf-blue);
  transition: box-shadow var(--t), transform var(--t);
}
.country-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.country-card__flag {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: var(--space-3);
  border-radius: 4px;
}
.country-card__name {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-3);
  color: var(--fg-1);
}
.country-card__addr {
  font-size: var(--fs-small);
  color: var(--fg-2);
  line-height: var(--lh-normal);
  margin: 0 0 var(--space-2);
  white-space: pre-line;
}
.country-card__contact {
  font-size: var(--fs-small);
  color: var(--fg-2);
  line-height: 1.8;
}
.country-card__contact a { color: var(--hf-blue); word-break: break-all; }
.country-card__contact svg {
  width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; flex-shrink: 0;
}

/* ============================================================
   REGULAR DONATIONS — Alternating image-text rows (HFI replica)
   ============================================================ */

.donation-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-4);
}
.donation-row--reverse {
  grid-template-columns: 1fr 300px;
}
.donation-row--reverse .donation-row__img {
  order: 2;
}
.donation-row--reverse .donation-row__content {
  order: 1;
}
.donation-row__img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.donation-row__content p {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg-1);
  margin-bottom: var(--space-3);
}
.donation-row__content strong {
  color: var(--fg-1);
  font-weight: var(--fw-bold);
}
.donation-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-5) 0;
}

/* Legacy card styles kept for backwards compat */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--space-5);
}
.donation-card {
  background: var(--neutral-0);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.donation-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.donation-card__header {
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: #fff;
}
.donation-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,.15);
  padding: 6px;
}
.donation-card__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  margin: 0;
  color: inherit;
}
.donation-card__body { padding: var(--space-5); flex: 1; }
.donation-card__tier {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.donation-card__tier:last-child { border-bottom: none; }
.donation-card__amount {
  display: block;
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  color: var(--fg-1);
  margin-bottom: 2px;
}
.donation-card__desc {
  display: block;
  font-size: var(--fs-small);
  color: var(--fg-2);
  line-height: var(--lh-normal);
}
.donation-card__footer {
  padding: 0 var(--space-5) var(--space-5);
  text-align: center;
}
.donation-card__footer .btn { width: 100%; }

/* ============================================================
   GLOBAL IMPACT — Stats cards
   ============================================================ */

.impact-hero-stat {
  text-align: center;
  margin-bottom: var(--space-8);
  padding: var(--space-7) var(--space-5);
  background: var(--hf-blue);
  border-radius: var(--radius-lg);
  color: #fff;
}
.impact-hero-stat__number {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.impact-hero-stat__label { font-size: var(--fs-h4); font-weight: var(--fw-medium); opacity: .9; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}
.impact-card {
  background: var(--neutral-0);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--card-color, var(--hf-blue));
}
.impact-card__title {
  padding: var(--space-4) var(--space-5) 0;
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--card-color, var(--hf-blue));
  margin: 0;
}
.impact-card__stats {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-4);
}
.impact-card__number {
  display: block;
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
  color: var(--fg-1);
  line-height: var(--lh-tight);
}
.impact-card__desc {
  display: block;
  font-size: var(--fs-small);
  color: var(--fg-2);
  line-height: var(--lh-normal);
}

/* Mobile adjustments for new pages */
@media (max-width: 640px) {
  .continent-tabs { gap: var(--space-1); }
  .continent-tab { padding: 8px 14px; font-size: var(--fs-xs); }
  .country-grid,
  .donation-grid,
  .impact-grid { grid-template-columns: 1fr; }
  .donation-row,
  .donation-row--reverse {
    grid-template-columns: 1fr;
  }
  .donation-row--reverse .donation-row__img,
  .donation-row--reverse .donation-row__content {
    order: unset;
  }
  .donation-row__img img {
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
  .wwh-hero {
    padding: var(--space-8) 0 var(--space-6);
  }
}

/* ============================================================
   STÄLL EN FRÅGA — Ask a Question section (every page)
   ============================================================ */
.ask-section {
  background: linear-gradient(135deg, var(--hf-blue) 0%, #003e6a 100%);
  color: #fff;
  padding: var(--space-10) 0;
}
.ask-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  align-items: start;
}
.ask-section__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  margin: 0 0 var(--space-4);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.ask-section__desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  opacity: .9;
  margin-bottom: var(--space-5);
}
.ask-section__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ask-section__info div {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
}
.ask-section__info a {
  color: #fff;
  opacity: .85;
}
.ask-section__info a:hover { opacity: 1; text-decoration: underline; }
.ask-section__info svg { flex-shrink: 0; opacity: .7; }

/* Form card */
.ask-section__form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.ask-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.ask-form__field {
  margin-bottom: var(--space-4);
}
.ask-form__field label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--fg-1);
  margin-bottom: 6px;
}
.ask-form__field label span { color: var(--hf-red); }
.ask-form__field input,
.ask-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--fg-1);
  background: var(--neutral-50, #f9f9f9);
  transition: border-color var(--t), box-shadow var(--t);
  box-sizing: border-box;
}
.ask-form__field input:focus,
.ask-form__field textarea:focus {
  outline: none;
  border-color: var(--hf-blue);
  box-shadow: 0 0 0 3px rgba(0,105,180,.12);
  background: #fff;
}
.ask-form__field textarea { resize: vertical; min-height: 120px; }
.ask-form__footer { margin-top: var(--space-2); }
.ask-form__submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px 24px;
}
.ask-form__submit:disabled { opacity: .65; cursor: wait; }

/* Status messages */
.ask-form__status {
  margin-top: var(--space-4);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  text-align: center;
}
.ask-form__status--ok {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.ask-form__status--err {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

@media (max-width: 800px) {
  .ask-section__inner { grid-template-columns: 1fr; }
  .ask-form__row { grid-template-columns: 1fr; }
  .ask-section { padding: var(--space-8) 0; }
}
@media (max-width: 500px) {
  .ask-section__form { padding: var(--space-4); }
}

/* ============================================================
   PROGRAMME SINGLE PAGE
   ============================================================ */
.prog-hero {
  color: #fff;
  padding: var(--space-10) 0 var(--space-8);
  text-align: center;
}
.prog-hero__inner { max-width: 720px; margin: 0 auto; }
.prog-hero__icon { height: 80px; margin-bottom: var(--space-5); filter: brightness(0) invert(1); }
.prog-hero__title {
  color: #fff;
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  margin: 0 0 var(--space-4);
  text-transform: uppercase;
}
.prog-hero__sub {
  font-size: 1.125rem;
  opacity: .92;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.prog-hero__cta { background: #fff; color: var(--fg-1); font-weight: var(--fw-bold); }
.prog-hero__cta:hover { background: var(--neutral-100); color: var(--fg-1); }

.prog-intro {
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  color: var(--fg-2);
  line-height: var(--lh-normal);
  max-width: 760px;
  margin: 0 auto;
}

/* Stats bar */
.prog-stats { padding: var(--space-5) 0; }
.prog-stats__grid {
  display: flex;
  justify-content: center;
  gap: var(--space-7);
  flex-wrap: wrap;
}
.prog-stats__item {
  font-size: var(--fs-h3);
  font-weight: var(--fw-extrabold);
  color: var(--fg-1);
  text-align: center;
}

/* Alternating image-text blocks */
.prog-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.prog-block--reverse .prog-block__img { order: 2; }
.prog-block--reverse .prog-block__content { order: 1; }
.prog-block__img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.prog-block__heading {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-4);
}
.prog-block__content p {
  color: var(--fg-2);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Gallery */
.prog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}
.prog-gallery__item img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.prog-gallery__item img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

@media (max-width: 800px) {
  .prog-block { grid-template-columns: 1fr; }
  .prog-block--reverse .prog-block__img { order: 0; }
  .prog-block--reverse .prog-block__content { order: 0; }
  .prog-stats__grid { gap: var(--space-4); }
  .prog-stats__item { font-size: var(--fs-h4); }
  .prog-hero__title { font-size: var(--fs-h1); }
}

/* ============================================================
   VÅRT ARBETE — Programmes overview page
   ============================================================ */
.work-hero {
  background: linear-gradient(135deg, var(--hf-blue) 0%, #003e6a 100%);
  color: #fff;
  padding: var(--space-10) 0 var(--space-8);
  text-align: center;
}
.work-hero__title {
  color: #fff;
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  margin: 0 0 var(--space-4);
  text-transform: uppercase;
}
.work-hero__sub {
  font-size: 1.125rem;
  opacity: .9;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Stats bar */
.work-stats {
  background: var(--neutral-0);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
  margin-top: -1px;
}
.work-stats__grid {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.work-stats__item { text-align: center; }
.work-stats__num {
  display: block;
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  color: var(--hf-blue);
  line-height: 1.1;
}
.work-stats__label {
  font-size: var(--fs-small);
  color: var(--fg-2);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Programme cards grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}
.work-card {
  background: var(--neutral-0);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}
.work-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.work-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.work-card:hover .work-card__img img { transform: scale(1.06); }
.work-card__badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.work-card__icon { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.work-card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.work-card__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-2);
}
.work-card__text {
  font-size: var(--fs-small);
  color: var(--fg-2);
  line-height: 1.65;
  flex: 1;
  margin: 0 0 var(--space-3);
}
.work-card__link {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  transition: opacity var(--t);
}
.work-card:hover .work-card__link { opacity: .8; }

@media (max-width: 600px) {
  .work-stats__grid { gap: var(--space-5); }
  .work-stats__num { font-size: var(--fs-h2); }
  .work-hero__title { font-size: var(--fs-h1); }
}

/* Image placeholder for programme pages */
.prog-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed #ccc;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--neutral-50, #f7f7f7);
  color: #999;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}
