/* =========================================
   Safad Investment — Master Stylesheet
   Mobile-first responsive design
   ========================================= */

/* ----- Brand tokens (from official brand guide) ----- */
:root {
  --teal: #205859;
  --teal-deep: #183F40;
  --teal-soft: #C8DDDD;
  --teal-pale: #EAF2F2;
  --teal-glow: rgba(32, 88, 89, 0.12);
  --charcoal: #283335;
  --ink: #231F20;
  --muted: #6B7280;
  --muted-light: #9CA3AF;
  --line: #D9DEE7;
  --line-soft: #E5E7EB;
  --soft: #F4F6F6;
  --paper: #FFFFFF;

  --container: 1200px;
  --container-narrow: 980px;
  --gutter: 24px;
  --gutter-lg: 32px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 2px 8px rgba(15, 39, 66, .06);
  --shadow-md: 0 8px 24px rgba(15, 39, 66, .08);
  --shadow-lg: 0 20px 50px rgba(15, 39, 66, .12);

  --header-h: 92px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ----- Utilities ----- */
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: var(--container-narrow); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 16px;
}
.gold { color: var(--teal); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: all 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-ghost { color: var(--charcoal); border-color: var(--charcoal); background: transparent; }
.btn-ghost:hover { background: var(--charcoal); color: #fff; }
.btn-light { background: #fff; color: var(--teal-deep); border-color: #fff; }
.btn-light:hover { background: var(--teal-soft); }
.link-arrow {
  font-size: 14px; font-weight: 600; color: var(--charcoal);
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow::after { content: "→"; color: var(--teal); transition: transform 0.2s; }
.link-arrow:hover { color: var(--teal); }
.link-arrow:hover::after { transform: translateX(4px); }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  /* NOTE: backdrop-filter intentionally NOT applied here — it would
     create a containing block for position:fixed descendants and
     break the mobile nav. The solid white background gives a clean
     equivalent effect. */
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand-logo img { height: 56px; width: auto; display: block; }
@media (min-width: 768px) { .brand-logo img { height: 64px; } }
.nav-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: #fff;
  padding: 24px var(--gutter);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.06);
}
.site-nav.is-open { transform: translateX(0); }
.site-nav a {
  display: block;
  padding: 16px 4px;
  font-size: 18px; font-weight: 500; color: var(--charcoal);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--teal); }
.site-nav .btn { margin-top: 16px; align-self: flex-start; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; transform: none;
    flex-direction: row; align-items: center; gap: 28px;
    padding: 0; background: none; border: none; overflow: visible;
  }
  .site-nav a {
    padding: 8px 0; font-size: 14px; border: none;
  }
  .site-nav a:hover, .site-nav a.is-active { color: var(--teal); }
  .site-nav .btn { margin-top: 0; }
}

/* =========================================
   HERO
   ========================================= */
.hero {
  background: linear-gradient(180deg, #fafbfb 0%, var(--teal-pale) 100%);
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.05; margin-bottom: 24px;
  max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero .cta {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.hero-image-area {
  margin-top: 56px;
  background: var(--soft);
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 32px;
  color: var(--muted-light);
  font-size: 13px; font-style: italic;
}
.hero-image-area strong {
  display: block; color: var(--teal); font-size: 14px; font-style: normal;
  margin-bottom: 6px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}
@media (min-width: 768px) {
  .hero { padding: 80px 0 110px; }
  .hero-image-area { min-height: 360px; }
}

/* =========================================
   KPI BAND
   ========================================= */
.kpis {
  background: var(--teal);
  color: #fff;
  padding: 48px 0;
}
.kpis-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px;
}
.kpi strong {
  display: block;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.kpi span {
  display: block; color: var(--teal-soft);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
@media (min-width: 768px) {
  .kpis { padding: 60px 0; }
  .kpis-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

/* =========================================
   SECTION DEFAULTS
   ========================================= */
section { padding: 64px 0; }
section h2 { font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 20px; }
section .intro { font-size: clamp(15px, 2vw, 17px); color: var(--ink); max-width: 860px; line-height: 1.75; margin-bottom: 24px; }
@media (min-width: 768px) { section { padding: 90px 0; } }

/* =========================================
   WHO WE ARE
   ========================================= */
.who { background: var(--paper); }
.who .body { display: grid; grid-template-columns: 1fr; gap: 32px; }
.who .body p { font-size: 16.5px; margin-bottom: 16px; line-height: 1.75; color: var(--ink); }
@media (min-width: 900px) {
  .who .body { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
}

/* =========================================
   SERVICES GRID
   ========================================= */
.services { background: var(--soft); }
.services h2 { margin-bottom: 16px; }
.services .intro { margin-bottom: 40px; }
.svcgrid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  margin-top: 24px;
}
.svc {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 24px;
  border-top: 4px solid var(--teal);
  transition: all 0.25s;
  border-radius: var(--radius-sm);
}
.svc:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--teal-deep);
}
.svc .num {
  font-size: 11px; color: var(--teal); font-weight: 700;
  letter-spacing: 0.18em; margin-bottom: 12px; text-transform: uppercase;
}
.svc h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.25; }
.svc p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; line-height: 1.6; }
@media (min-width: 700px) { .svcgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .svcgrid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================
   MISSION GAZA BAND
   ========================================= */
.gaza {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 100%);
  color: #fff; position: relative;
  padding: 80px 0;
}
.gaza::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--teal-soft);
}
.gaza .eyebrow { color: var(--teal-soft); }
.gaza h2 {
  color: #fff; font-size: clamp(30px, 4.5vw, 52px);
  margin-bottom: 22px; line-height: 1.15;
}
.gaza p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px; max-width: 70ch; line-height: 1.75;
}
@media (min-width: 768px) { .gaza { padding: 110px 0; } }

/* =========================================
   CASE STUDIES (FEATURED)
   ========================================= */
.cases { background: var(--paper); }
.cases .heading-row {
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 32px;
}
.cases .heading-row a { flex-shrink: 0; }
.cases-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
.case-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: all 0.25s;
}
.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.case-card .case-image {
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  margin: -28px -24px 22px;
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  color: var(--muted-light);
  font-size: 12px; font-style: italic;
}
.case-card .label {
  font-size: 11px; color: var(--teal); font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 10px;
}
.case-card h3 {
  font-size: 21px; margin-bottom: 12px;
  line-height: 1.25;
}
.case-card .case-meta {
  font-size: 13px; color: var(--muted);
  margin-bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.case-card .case-meta span {
  background: #fff; padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--line);
}
.case-card p {
  color: var(--ink); font-size: 14.5px; line-height: 1.7;
  margin-bottom: 18px; flex-grow: 1;
}
.case-card .case-numbers {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  padding: 14px 0; margin-bottom: 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.case-card .case-numbers div strong {
  display: block; font-size: 18px; color: var(--charcoal); font-weight: 700;
}
.case-card .case-numbers div span {
  display: block; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px;
}
@media (min-width: 700px) {
  .cases .heading-row { flex-direction: row; align-items: center; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1080px) {
  .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* =========================================
   FOUNDER POSITIONING
   ========================================= */
.founder { background: var(--teal-pale); }
.founder-inner {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: start;
}
.founder-photo {
  background: #fff;
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  color: var(--muted-light);
  font-size: 13px; font-style: italic;
  position: relative; overflow: hidden;
}
.founder-photo::before {
  content: ""; position: absolute; top: -8px; left: -8px;
  width: 60px; height: 60px;
  border-top: 4px solid var(--teal); border-left: 4px solid var(--teal);
  border-top-left-radius: var(--radius-md);
}
.founder-photo::after {
  content: ""; position: absolute; bottom: -8px; right: -8px;
  width: 60px; height: 60px;
  border-bottom: 4px solid var(--teal); border-right: 4px solid var(--teal);
  border-bottom-right-radius: var(--radius-md);
}
.founder-text h2 { margin-bottom: 14px; }
.founder-text .role {
  font-size: 14px; font-weight: 600; color: var(--teal);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px;
}
.founder-text p {
  font-size: 16px; line-height: 1.75; color: var(--ink); margin-bottom: 14px;
}
.founder-credentials {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.founder-credentials div { font-size: 12px; }
.founder-credentials strong {
  display: block; color: var(--teal); font-weight: 700;
  font-size: 14px; margin-bottom: 4px;
}
.founder-credentials span { color: var(--muted); }
@media (min-width: 900px) {
  .founder-inner { grid-template-columns: 5fr 7fr; gap: 56px; }
}

/* =========================================
   QUOTE BAND
   ========================================= */
.quote-band {
  background: var(--teal-pale);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 80px 0;
}
.quote-band .wrap-narrow { text-align: center; }
.quote-band blockquote {
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.4; color: var(--charcoal);
  font-style: italic; font-weight: 400;
  margin-bottom: 28px; position: relative;
  padding: 0 8px;
}
.quote-band blockquote::before {
  content: "\201C"; position: absolute; top: -50px; left: 50%;
  transform: translateX(-50%);
  font-size: 100px; color: var(--teal); opacity: 0.3; line-height: 1;
}
.quote-band .attr { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
.quote-band .attr strong {
  color: var(--charcoal); display: block; font-size: 16px;
  margin-bottom: 4px; font-weight: 600;
}

/* =========================================
   PARTNERS / RECOGNITIONS STRIP
   ========================================= */
.recognitions { background: var(--paper); padding: 64px 0; border-bottom: 1px solid var(--line); }
.recognitions .label {
  text-align: center;
  color: var(--muted); font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 28px;
}
.recognitions-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  align-items: center; justify-items: center;
}
.recognitions-grid .item {
  width: 100%; min-height: 88px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--paper); border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--charcoal); font-size: 12px; line-height: 1.35;
  padding: 14px 12px; text-align: center;
  font-weight: 500;
  transition: all 0.2s;
}
.recognitions-grid .item:hover {
  border-color: var(--teal);
  border-style: solid;
  box-shadow: var(--shadow-sm);
}
.recognitions-grid .item img {
  max-height: 48px; max-width: 100%; width: auto; height: auto;
  object-fit: contain;
}
@media (min-width: 600px) { .recognitions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .recognitions-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .recognitions-grid { grid-template-columns: repeat(6, 1fr); } }

/* =========================================
   CLOSING CTA
   ========================================= */
.closing { background: var(--soft); padding: 72px 0; }
.closing-inner {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: center;
}
.closing h2 { margin-bottom: 16px; }
.closing p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.closing .actions { display: flex; flex-direction: column; gap: 12px; }
.closing .actions .btn { justify-content: center; }
@media (min-width: 768px) {
  .closing { padding: 100px 0; }
  .closing-inner { grid-template-columns: 6fr 5fr; gap: 64px; }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
}
.footer-col h4 {
  color: #fff; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 14px; font-weight: 600;
}
.footer-logo { height: 42px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-col p, .footer-col a { font-size: 14px; line-height: 1.85; color: rgba(255, 255, 255, 0.75); }
.footer-col a:hover { color: #fff; }
.footer-col li { margin-bottom: 4px; }
.footer-baseline {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px; color: rgba(255, 255, 255, 0.5);
  display: flex; flex-direction: column; gap: 12px;
}
.footer-baseline a { margin-right: 18px; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.3fr 0.9fr 1.1fr 0.9fr; gap: 40px; }
  .footer-baseline { flex-direction: row; justify-content: space-between; }
}

/* =========================================
   ANIMATIONS
   ========================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----- Skip link (accessibility) ----- */
.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--charcoal); color: #fff; padding: 8px 14px;
  border-radius: var(--radius-sm); font-size: 13px;
  z-index: 999; transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ----- Lock body scroll when mobile menu open ----- */
body.nav-open { overflow: hidden; }

/* =========================================
   PHOTO FILLER PATTERN
   Add class "has-image" to any photo-placeholder wrapper
   to drop border/padding and let the inner <img> fill
   the slot via object-fit: cover.
========================================= */
.has-image { padding: 0 !important; border: 0 !important; background: transparent !important; overflow: hidden; }
.has-image > img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.has-image::before, .has-image::after { display: none !important; }

/* =========================================
   SLIDESHOW COMPONENT
   Drop a <div class="slideshow"> wrapping a
   <div class="slides"> with multiple <img>
   children. JS handles auto-cycle + nav.
========================================= */
.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--soft);
}
.slideshow .slides { position: relative; width: 100%; height: 100%; }
.slideshow .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: block;
}
.slideshow .slide.is-active { opacity: 1; z-index: 1; }
.slideshow .dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 3;
  pointer-events: auto;
}
.slideshow .dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.55); border: 0; padding: 0;
  cursor: pointer; transition: all 0.2s;
}
.slideshow .dots button.is-active { background: #fff; transform: scale(1.3); }
.slideshow .dots button:hover { background: #fff; }
.slideshow .nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; cursor: pointer;
  z-index: 3; transition: background 0.2s; opacity: 0;
}
.slideshow:hover .nav-btn { opacity: 1; }
.slideshow .nav-btn:hover { background: rgba(0,0,0,0.7); }
.slideshow .nav-btn.prev { left: 10px; }
.slideshow .nav-btn.next { right: 10px; }
.slideshow .nav-btn:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .slideshow .slide { transition: none; }
}

/* =========================================
   UN SDG (Sustainable Development Goals)
   Official UN SDG colors. Use .sdg-chip for
   small inline badges, .sdg-card for the
   dedicated alignment section.
========================================= */
.sdg-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sdg-row .sdg-label { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-right: 6px; }
.sdg-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 6px;
  color: #fff; font-weight: 800; font-size: 13px;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-family: inherit;
  flex-shrink: 0;
  cursor: help;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sdg-chip:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 6px 14px rgba(0,0,0,0.18); }
.sdg-chip span { line-height: 1; }
/* Official UN SDG colors */
.sdg-1  { background: #E5243B; }
.sdg-2  { background: #DDA63A; }
.sdg-3  { background: #4C9F38; }
.sdg-4  { background: #C5192D; }
.sdg-5  { background: #FF3A21; }
.sdg-6  { background: #26BDE2; }
.sdg-7  { background: #FCC30B; color: #283335; }
.sdg-8  { background: #A21942; }
.sdg-9  { background: #FD6925; }
.sdg-10 { background: #DD1367; }
.sdg-11 { background: #FD9D24; }
.sdg-12 { background: #BF8B2E; }
.sdg-13 { background: #3F7E44; }
.sdg-14 { background: #0A97D9; }
.sdg-15 { background: #56C02B; }
.sdg-16 { background: #00689D; }
.sdg-17 { background: #19486A; }

/* SDG section — full alignment block */
.sdg-section { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sdg-section .sdg-header {
  display: grid; grid-template-columns: 1fr; gap: 18px; align-items: end; margin-bottom: 32px;
}
.sdg-section .sdg-header .un-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.sdg-section .sdg-header .un-mark::before {
  content: ""; display: inline-block; width: 28px; height: 2px; background: var(--teal);
}
.sdg-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sdg-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px 22px;
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  transition: transform 0.18s, box-shadow 0.18s;
}
.sdg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sdg-card .sdg-chip { width: 56px; height: 56px; font-size: 18px; border-radius: 8px; }
.sdg-card h4 { font-size: 14px; color: var(--charcoal); margin: 0 0 6px; line-height: 1.25; letter-spacing: -0.005em; }
.sdg-card .goal-name { font-size: 13.5px; color: var(--teal-deep); font-weight: 700; margin-bottom: 6px; line-height: 1.3; display: block; }
.sdg-card p { font-size: 13.5px; color: var(--ink); line-height: 1.6; margin: 0; }
@media (min-width: 700px) { .sdg-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1080px) { .sdg-grid { grid-template-columns: repeat(3, 1fr); } }

/* SDG inline strip (in service pages) */
.sdg-inline {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 14px 18px; background: var(--teal-pale);
  border-radius: var(--radius-sm); border-left: 4px solid var(--teal);
  margin: 18px 0;
}
.sdg-inline .sdg-inline-label {
  font-size: 11px; color: var(--teal-deep); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-right: 4px;
}
.sdg-inline .sdg-chip { width: 32px; height: 32px; font-size: 11px; border-radius: 5px; }

/* =========================================
   HERO DIPTYCH — two static feature images
   side-by-side on desktop, stacked on mobile
========================================= */
.hero-diptych { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; border-radius: var(--radius-md); overflow: hidden; }
.hero-diptych figure {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--soft);
  aspect-ratio: 4/3;
}
.hero-diptych figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-diptych figure figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(40,51,53,0) 0%, rgba(40,51,53,0.85) 100%);
  color: #fff; padding: 36px 22px 18px;
  font-size: 13px; line-height: 1.4; letter-spacing: 0.02em;
}
.hero-diptych figure figcaption strong {
  display: block; font-size: 11px; color: var(--teal-soft);
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 6px;
}
@media (min-width: 768px) {
  .hero-diptych { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-diptych figure { aspect-ratio: 1/1; }
}
