/* ============================================================
   Charity NGO CMS — Front-end Design System
   Clean, professional international standard for nonprofits
   Brand: Deep Teal #0D7377 / #14919B + Warm Coral #E85D4C
   ============================================================ */
:root {
  --primary: #0D7377;
  --primary-dark: #095456;
  --primary-light: #14919B;
  --accent: #E85D4C;
  --accent-dark: #C94A3B;
  --accent-soft: rgba(232, 93, 76, 0.12);
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 12px 40px -12px rgba(15, 23, 42, .2);
  --shadow-lg: 0 25px 60px -20px rgba(15, 23, 42, .3);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-h: 78px;
  --topbar-h: 42px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; }
ul { list-style: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.icon { width: 1em; height: 1em; vertical-align: -.125em; fill: none; flex-shrink: 0; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
i.icon { font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 600;
  border: 2px solid var(--primary); cursor: pointer;
  transition: all .25s ease; font-size: 15px; line-height: 1.2;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Topbar ---------- */
.topbar, .site-topbar {
  background: var(--primary-dark);
  color: #f3e9c8;
  font-size: 13px;
  line-height: 1.4;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.topbar-note {
  font-weight: 600;
  white-space: nowrap;
}
.topbar-link {
  color: inherit;
  opacity: .9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-link:hover { opacity: 1; color: #fff; }
.topbar-link .icon { width: 14px; height: 14px; flex-shrink: 0; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.topbar-social {
  color: inherit;
  opacity: .85;
  display: inline-flex;
}
.topbar-social:hover { opacity: 1; color: #fff; }
.topbar-cta {
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12.5px;
}
.topbar-cta:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 768px) {
  .topbar-note, .topbar-link span { display: none; }
  .topbar-link .icon { display: inline-block; }
  .topbar-left { gap: 12px; }
}

/* ---------- Header (sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h);
}
.header-right {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-name { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.15; }
.brand-name em { font-style: normal; color: var(--primary); font-weight: 700; display: block; font-size: 12.5px; letter-spacing: 0; }
.brand-logo { max-height: 48px; width: auto; display: block; flex-shrink: 0; }
.brand-text {
  display: flex; flex-direction: column; justify-content: center;
  line-height: 1.2; min-width: 0;
}
.brand-name-line {
  font-size: 14.5px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand-tagline {
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.01em; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 220px;
}
@media (max-width: 1100px) {
  .brand-tagline { display: none; }
}
@media (max-width: 900px) {
  .brand-name-line { font-size: 13px; max-width: 140px; white-space: normal; }
}
.brand-logo-footer { max-height: 64px; }

.main-nav .nav-menu { display: flex; gap: 2px; align-items: center; }
.main-nav .menu-item > a {
  display: block; padding: 10px 15px; font-weight: 600;
  color: var(--ink); font-size: 14.5px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.main-nav .menu-item > a:hover,
.main-nav .menu-item.active > a { color: var(--primary); background: var(--accent-soft); }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .2s; z-index: 60;
}
.main-nav .menu-item { position: relative; }
.main-nav .menu-item.has-children:hover .sub-menu,
.main-nav .menu-item.has-children:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: none;
}
.main-nav .sub-menu a {
  padding: 9px 12px; display: block; border-radius: 8px;
  font-weight: 500; color: var(--ink); font-size: 14px;
}
.main-nav .sub-menu a:hover { background: var(--bg); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 0; font-size: 26px;
  cursor: pointer; color: var(--ink); line-height: 1; padding: 4px;
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative; height: min(720px, 88vh);
  overflow: hidden; background: var(--primary-dark);
}
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; transition: opacity .9s ease; display: flex;
}
.slide-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
  pointer-events: none; display: block;
}
.slide-overlay { z-index: 1; }
.slide-content { z-index: 2; }
.slide.current { opacity: 1; z-index: 1; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(16,31,66,.92) 0%, rgba(16,31,66,.72) 45%, rgba(16,31,66,.4) 100%);
}
.slide-content {
  position: relative; z-index: 2; align-self: center;
  color: #fff; max-width: 680px; padding: 40px 0;
}
.slide-kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  padding: 6px 14px; background: rgba(201,162,39,.15);
  border-radius: 999px; border: 1px solid rgba(201,162,39,.35);
}
.slide-heading {
  font-size: clamp(2rem, 4.5vw, 3.4rem); color: #fff;
  margin-bottom: 20px; line-height: 1.15; font-weight: 800;
}
.slide-heading span { color: var(--accent); }
.slide-text {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  margin-bottom: 28px; max-width: 540px; line-height: 1.6;
}
.slide-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: .2s; backdrop-filter: blur(6px);
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 8px;
}
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.35); cursor: pointer; transition: .2s; padding: 0;
}
.slider-dots button.active { background: var(--accent); width: 28px; border-radius: 999px; }

/* ---------- Sections common ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg); }
.section-dark {
  background: var(--primary-dark); color: rgba(255,255,255,.85);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker,
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Decorative underline (soscry style) */
.section-title::after {
  content: ""; display: block; width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 16px auto 0; border-radius: 2px;
}
.section-head-left { text-align: left; max-width: none; margin: 0 0 40px; }
.section-head-left .section-title::after { margin-left: 0; }

/* ---------- Welcome / About ---------- */
/* Image LEFT + content RIGHT, side by side on desktop/tablet */
.welcome-grid {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 1fr) !important;
  gap: 40px 48px;
  align-items: center;
}
.welcome-media {
  position: relative;
  min-width: 0;
}
.welcome-media > img,
.welcome-media .welcome-main-photo {
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.welcome-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.welcome-body .section-title {
  text-align: left;
  margin-bottom: 0;
}
.welcome-body .section-title::after {
  margin-left: 0;
}
.welcome-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--primary-dark); color: #fff;
  padding: 12px 18px; border-radius: 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md); font-weight: 700; font-size: 14px;
}
.welcome-badge-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.welcome-badge-icon .icon, .welcome-badge-icon i { width: 20px; height: 20px; font-size: 18px; color: var(--ink); }
.welcome-text { margin: 14px 0 8px; }
.welcome-text p { margin-bottom: 12px; line-height: 1.65; }
.welcome-features { display: grid; gap: 16px; margin-top: 20px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-icon .icon, .feature-icon i { width: 20px; height: 20px; font-size: 18px; color: var(--primary); }
.feature h4 { font-size: 16px; margin-bottom: 2px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Services / Features ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; border: 1px solid var(--line);
  transition: all .3s ease; position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity .3s;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon .icon, .service-icon i { width: 26px; height: 26px; font-size: 22px; color: #fff; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Services with photos */
.services-photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-photo-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: all .3s ease;
}
.service-photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-photo-card .photo {
  aspect-ratio: 16/11; overflow: hidden; background: var(--bg-alt);
}
.service-photo-card .photo img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
}
.service-photo-card:hover .photo img { transform: scale(1.05); }
.service-photo-card .body { padding: 24px; }
.service-photo-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-photo-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- How We Work / Process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; counter-reset: step;
}
.process-step {
  text-align: center; position: relative; padding: 28px 18px;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800; font-size: 1.15rem;
  margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(31,51,112,.3);
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--muted); margin: 0; }
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 56px; left: calc(50% + 40px);
  width: calc(100% - 80px); height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ---------- Stats ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 70px 0;
}
.stats-title { text-align: center; color: #fff; margin-bottom: 40px; font-size: 1.8rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(201,162,39,.2); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.stat-icon .icon, .stat-icon i { width: 22px; height: 22px; font-size: 20px; color: var(--accent); }
.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800;
  color: #fff; line-height: 1.1; display: inline;
}
.stat-suffix { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.stat-label {
  display: block; margin-top: 6px; font-size: 14.5px;
  color: rgba(255,255,255,.7); font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  position: relative; transition: all .3s;
}
.testimonial:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.quote-icon {
  color: var(--accent); opacity: .5; font-size: 28px;
  display: block; margin-bottom: 14px;
}
.quote-icon .icon { width: 28px; height: 28px; }
.testimonial blockquote {
  font-size: 15.5px; color: var(--body); margin-bottom: 22px;
  line-height: 1.65; font-style: italic;
}
.testimonial figcaption {
  display: flex; align-items: center; gap: 12px;
}
.testimonial figcaption img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: var(--bg-alt);
}
.testimonial figcaption strong { display: block; font-size: 15px; color: var(--ink); }
.testimonial figcaption span { font-size: 13px; color: var(--muted); }

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative; padding: 90px 0;
  background-size: cover; background-position: center;
  background-color: var(--primary-dark);
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(16,31,66,.94) 0%, rgba(16,31,66,.8) 100%);
}
.cta-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; color: #fff;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,.8); max-width: 480px; margin: 0; }

/* ---------- Contact section ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start;
}
.contact-info-list { display: grid; gap: 20px; margin-top: 24px; }
.contact-info-item {
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-info-item .icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .icon-wrap .icon { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 2px; }
.contact-info-item p, .contact-info-item a { font-size: 14.5px; color: var(--muted); margin: 0; }
.contact-info-item a:hover { color: var(--primary); }

.contact-form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form-card h3 { margin-bottom: 6px; }
.contact-form-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 15px;
  color: var(--ink); background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,51,112,.12); background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,.75);
  padding-top: 70px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px; padding-bottom: 50px;
}
.footer-col h4 {
  color: #fff; font-size: 15px; margin-bottom: 18px;
  letter-spacing: .02em;
}
.footer-about .brand { margin-bottom: 16px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-mark { background: var(--accent); color: var(--ink); }
.footer-about p { font-size: 14.5px; line-height: 1.65; margin-bottom: 12px; }
.footer-meta { font-size: 13.5px; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.footer-social a:hover { background: var(--accent); color: var(--ink); }
.footer-social .icon { width: 16px; height: 16px; }
.footer-menu a, .footer-col ul a {
  display: block; padding: 5px 0; font-size: 14.5px;
  color: rgba(255,255,255,.7); transition: color .2s;
}
.footer-menu a:hover, .footer-col ul a:hover { color: var(--accent); }
.footer-contact li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px; font-size: 14.5px;
}
.footer-contact .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; text-align: center; font-size: 13.5px;
  color: rgba(255,255,255,.5);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in, .reveal.visible { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  padding: 14px 22px; border-radius: 12px; color: #fff;
  font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-md);
  animation: toastIn .35s ease;
}
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Page / inner pages ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1a3a6e 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 64px 0 56px;
  text-align: left;
  border-bottom: 3px solid var(--accent);
  overflow: hidden;
}
.page-hero-has-bg { background-color: var(--primary-dark); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(16,31,66,.88) 0%, rgba(16,31,66,.72) 55%, rgba(16,31,66,.55) 100%);
  z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.page-hero-inner { max-width: 720px; }
.page-hero-title,
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 12px 0 10px;
}
.page-hero-text,
.page-hero p {
  color: rgba(255,255,255,.85);
  margin: 0;
  max-width: 560px;
  line-height: 1.55;
  font-size: 1.05rem;
}
.kicker-on-dark {
  color: var(--accent);
  background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.35);
}
.page-content { font-size: 1.05rem; line-height: 1.7; color: var(--body); }
.page-content h2, .page-content h3 { margin: 1.4em 0 0.5em; color: var(--ink); }
.page-content p { margin-bottom: 1em; }
.page-content ul, .page-content ol { margin: 0 0 1em 1.25em; }
.page-content li { margin-bottom: 0.4em; }
.page-content img { max-width: 100%; border-radius: 12px; height: auto; }
.cms-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.cms-service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.cms-service-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.cms-service-card .body { padding: 16px; }
.cms-service-card h3 { font-size: 16px; margin: 0 0 8px; }
.cms-service-card p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 1024px) {
  .cms-service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cms-service-grid { grid-template-columns: 1fr; }
}
.breadcrumb { font-size: 13.5px; margin-bottom: 12px; opacity: .7; }
.breadcrumb a { color: #fff; }

/* Home intro cards */
.home-intro { background: #fff; }
.home-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.home-intro-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: 12px;
}
.home-intro-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.home-mini-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.home-mini-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.home-mini-card h3 { font-size: 15px; margin: 0 0 4px; }
.home-mini-card p { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 768px) {
  .home-intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-intro-cards { grid-template-columns: 1fr; }
}


/* ---------- Process with background ---------- */
.process-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.process-bg-overlay {
  position: absolute;
  inset: 0;
  /* Lighter veil so the background photo stays clearly visible */
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.55) 0%,
    rgba(248, 250, 252, 0.62) 50%,
    rgba(248, 250, 252, 0.58) 100%
  );
  z-index: 1;
}
.process-section .process-step {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(16, 31, 66, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 24px rgba(16, 31, 66, 0.08);
}
.process-section .section-title,
.process-section .process-step h3 { color: var(--ink); }
.process-section .process-step p { color: var(--body); }


/* ---------- Services section with background (homepage) ---------- */
.section-services {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #e8eef7;
}
.services-bg-overlay {
  position: absolute;
  inset: 0;
  /* clearer photo — lower white wash */
  background: linear-gradient(180deg, rgba(16,31,66,.25) 0%, rgba(248,250,252,.55) 40%, rgba(248,250,252,.72) 100%);
  z-index: 1;
  pointer-events: none;
}
.section-services .section-title { color: var(--ink); }
.section-services .section-head p { color: var(--body); }

.services-photo-grid-6,
.services-photo-grid-9 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .services-photo-grid-6,
  .services-photo-grid-9 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-photo-grid-6,
  .services-photo-grid-9 { grid-template-columns: 1fr; }
}
.service-photo-card .photo {
  background: #e2e8f0;
}
.service-photo-card .photo img {
  object-fit: cover;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .services-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:last-child)::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .welcome-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 86vw);
    background: #fff; box-shadow: var(--shadow-lg); z-index: 120;
    transform: translateX(100%); transition: transform .3s ease;
    padding: 80px 24px 24px; overflow-y: auto;
  }
  .main-nav.open { transform: none; }
  .main-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav .menu-item > a { padding: 12px 14px; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0;
    padding: 0 0 0 14px; background: transparent;
  }
  .hero-slider { height: min(560px, 78vh); }
  .slide-heading { font-size: 1.85rem; }
  .slider-arrow { display: none; }
  .section { padding: 64px 0; }
  .services-grid, .services-photo-grid,
  .testimonials-grid, .stats-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner p { margin: 0 auto; }
  .header-cta { display: none; }
}

@media (max-width: 480px) {
  .slide-actions { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; justify-content: center; }
}


/* ---------- Packages pricing cards (from CMS HTML) ---------- */
.cms-service-grid .cms-service-card .pkg-price,
.page-content .pkg-price {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0 6px;
}
.page-content .pkg-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}
.cms-service-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(16,31,66,.1);
  position: relative;
}
.cms-service-card.featured::before {
  content: "Popular";
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: var(--ink);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- Contact page polish ---------- */
.contact-section .contact-side-title {
  font-size: 1.25rem; margin: 0 0 18px; color: var(--ink);
}
.contact-form-wrap {
  padding: 28px 28px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.contact-form .field label { font-weight: 600; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,51,112,.12);
}


/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  padding: 16px;
  pointer-events: none;
}
.cookie-banner-inner {
  pointer-events: auto;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(201,162,39,.35);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
}
.cookie-banner-text a { color: var(--accent); }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}


/* ---------- Section backgrounds (CMS section_bg) ---------- */
.has-section-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.88);
  z-index: 1;
}
.services-overlay {
  background: linear-gradient(110deg, rgba(16,31,66,.82) 0%, rgba(16,31,66,.55) 50%, rgba(16,31,66,.4) 100%);
}

/* Force panel on background */
.force-panel {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,.94);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(16,31,66,.12);
  border: 1px solid rgba(255,255,255,.6);
}

/* ---------- Services floating layout + square compact slider ---------- */
.services-showcase {
  padding: 56px 0;
  min-height: auto;
}
.services-float-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.services-intro-panel {
  background: rgba(255,255,255,.94);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 16px 40px rgba(16,31,66,.14);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
}
.services-intro-panel .kicker { color: var(--accent); }
.services-showcase .services-intro-panel .section-title {
  color: var(--ink);
  text-align: left;
  font-size: 1.75rem;
}
.services-showcase .services-intro-panel .section-title::after {
  margin-left: 0;
}
.services-showcase .services-intro-panel .page-content { color: var(--body); }

/* Square-ish floating card: fixed 320px side (matches photo square) */
.services-float-card {
  position: sticky;
  top: 96px;
  width: 320px;
  max-width: 320px;
  box-sizing: border-box;
  background: rgba(255,255,255,.98);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 40px rgba(16,31,66,.2);
  border: 1px solid rgba(201,162,39,.4);
  display: flex;
  flex-direction: column;
  margin-left: auto;
}

.svc-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.svc-slide {
  display: none;
  flex-direction: column;
  width: 100%;
  animation: svcFade .4s ease;
}
.svc-slide.is-active {
  display: flex;
}
@keyframes svcFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Square photo — width = height = full card inner width */
.svc-slide-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #e2e8f0;
  flex-shrink: 0;
}
.svc-slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-slide-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1F3370, #101F42);
  color: #C9A227;
  font-size: 13px;
  font-weight: 700;
  aspect-ratio: 1 / 1;
}
.svc-slide-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.svc-slide-title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.3;
}
.svc-slide-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.svc-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.svc-nav-btn:hover {
  border-color: var(--accent);
  background: rgba(201,162,39,.12);
}
.svc-dots {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 140px;
}
.svc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
}
.svc-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}
@media (max-width: 900px) {
  .services-float-layout {
    grid-template-columns: 1fr;
  }
  .services-float-card {
    position: relative;
    top: auto;
    width: min(320px, 100%);
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ---------- SOS CRY strip (under hero) ---------- */
.sos-cry-strip {
  background: linear-gradient(90deg, #101F42 0%, #1F3370 55%, #1a3568 100%);
  color: #e2e8f0;
  border-bottom: 3px solid var(--accent);
  padding: 12px 0;
}
.sos-cry-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
}
.sos-cry-strip-text {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
/* Fixed 48px thumb — strip height stays the same */
.sos-cry-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(201,162,39,.45);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.sos-cry-thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.sos-cry-badge {

  flex-shrink: 0;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}
.sos-cry-copy { min-width: 0; }
.sos-cry-title {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.sos-cry-sub {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(226,232,240,.9);
  max-width: 640px;
}
.sos-cry-btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .sos-cry-strip-inner { flex-direction: column; align-items: stretch; }
  .sos-cry-btn { width: 100%; justify-content: center; }
  .sos-cry-thumb { width: 44px; height: 44px; }
  .sos-cry-thumb img { width: 44px; height: 44px; }
}

/* ---------- Home explore (More about HDSL) background ---------- */
.section.home-explore.has-section-bg,
.home-explore.has-section-bg {
  position: relative;
  background-color: #1F3370 !important; /* fallback if image 404 */
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}
.home-explore .explore-bg-overlay {
  position: absolute;
  inset: 0;
  /* lighter so the photo is clearly visible */
  background: linear-gradient(180deg, rgba(16,31,66,.45) 0%, rgba(248,250,252,.82) 55%, rgba(248,250,252,.90) 100%);
  z-index: 1;
  pointer-events: none;
}
.home-explore .service-card {
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 28px rgba(16,31,66,.12);
}
.home-explore .section-title { color: var(--ink); }
.home-explore .kicker { color: var(--accent); }

/* Mission photo — ~25% on About image, 75% below bottom edge */
.welcome-media {
  overflow: visible;
}
.welcome-mission-badge {
  position: absolute;
  right: 14px;
  bottom: 0;
  /* 75% of card hangs below the photo bottom line */
  transform: translateY(75%);
  width: min(58%, 320px);
  max-width: 320px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(16, 31, 66, 0.42), 0 0 0 2px rgba(201, 162, 39, 0.75);
  background: linear-gradient(160deg, #1a1208 0%, #0c0a06 55%, #14100a 100%);
  z-index: 4;
  line-height: 1.4;
  transition: transform .2s ease, box-shadow .2s ease;
}
.welcome-mission-badge:hover {
  transform: translateY(calc(75% - 3px));
  box-shadow: 0 18px 40px rgba(16, 31, 66, 0.48), 0 0 0 2px rgba(201, 162, 39, 0.9);
}
.welcome-mission-badge img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto !important;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
/* NVIWODA mission card (HTML — same placement as old graphic) */
.welcome-mission-card .mission-card-inner {
  position: relative;
  padding: 16px 16px 18px 18px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 12px;
  margin: 4px;
  background:
    radial-gradient(ellipse at top right, rgba(201, 162, 39, 0.12), transparent 55%),
    linear-gradient(165deg, #1c140a 0%, #0a0805 100%);
}
.mission-card-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #000000 0 33%, #FCDC04 33% 66%, #D90000 66% 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.mission-card-title {
  margin: 0 0 10px 28px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8c547;
  line-height: 1.2;
}
.mission-card-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 248, 230, 0.88);
  font-weight: 400;
}
/* room for ~75% of a ~320px-wide mission card under the photo */
.welcome-grid {
  padding-bottom: 120px;
}
@media (max-width: 900px) {
  .welcome-mission-badge {
    width: min(62%, 280px);
    max-width: 280px;
  }
  .welcome-grid {
    padding-bottom: 100px;
  }
}
@media (max-width: 640px) {
  .welcome-mission-badge {
    width: min(68%, 220px);
    max-width: 220px;
    right: 10px;
  }
  .welcome-badge {
    max-width: calc(100% - 150px);
  }
  .welcome-grid {
    padding-bottom: 80px;
  }
}

/* ---------- Services page (international standard — Option A) ---------- */
.svc-page-intro {
  padding-top: 48px;
  padding-bottom: 24px;
}
.svc-page-intro-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.svc-page-intro-inner .section-title {
  text-align: center;
}
.svc-page-intro-inner .section-title::after {
  margin-left: auto;
  margin-right: auto;
}
.svc-page-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--body);
  margin-top: 8px;
}
.svc-page-lead p { margin-bottom: 0.75em; }
.svc-page-sub {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.svc-std-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}
.svc-std-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-sm);
}
.svc-std-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.svc-std-card.is-featured {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 8px 28px rgba(16, 31, 66, 0.08);
}
.svc-std-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #101F42, #1F3370);
  overflow: hidden;
}
.svc-std-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.svc-std-card:hover .svc-std-card-media img {
  transform: scale(1.04);
}
.svc-std-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
}
.svc-std-card-placeholder .icon,
.svc-std-card-placeholder i {
  width: 40px;
  height: 40px;
  font-size: 36px;
}
.svc-std-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.svc-std-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.svc-std-card-body h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.3;
}
.svc-std-card-body p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}
.svc-std-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
}
.svc-std-link:hover {
  color: var(--accent);
}
.svc-std-link .icon {
  width: 14px;
  height: 14px;
}

.svc-page-cta {
  padding-top: 20px;
}
.svc-page-cta-panel {
  background: linear-gradient(135deg, #101F42 0%, #1F3370 100%);
  color: #e2e8f0;
  border-radius: calc(var(--radius) + 4px);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.svc-page-cta-text h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.svc-page-cta-text p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  max-width: 420px;
  font-size: 15px;
  line-height: 1.5;
}
.svc-page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.svc-page-cta-actions .btn-outline {
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.svc-page-cta-actions .btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 1024px) {
  .svc-std-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .svc-std-grid { grid-template-columns: 1fr; gap: 20px; }
  .svc-page-cta-panel { padding: 28px 22px; }
  .svc-page-cta-actions { width: 100%; }
  .svc-page-cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Our Force page (standard professional layout) ---------- */
.force-intro {
  padding-top: 48px;
  padding-bottom: 20px;
}
.force-intro-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.force-intro-inner .section-title {
  text-align: center;
}
.force-intro-inner .section-title::after {
  margin-left: auto;
  margin-right: auto;
}
.force-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--body);
  margin: 8px 0 0;
}

.force-std-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.force-std-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.force-std-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.force-std-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #101F42, #1F3370);
  overflow: hidden;
}
.force-std-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.force-std-card:hover .force-std-card-media img {
  transform: scale(1.04);
}
.force-std-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
}
.force-std-card-body {
  padding: 22px 22px 24px;
}
.force-std-card-body h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.force-std-card-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.force-ops {
  padding-top: 12px;
  padding-bottom: 12px;
}
.force-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.force-ops-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.force-ops-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft, rgba(201,162,39,.15));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.force-ops-icon .icon,
.force-ops-icon i {
  width: 20px;
  height: 20px;
  font-size: 18px;
}
.force-ops-item h3 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--ink);
}
.force-ops-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.force-page-cta {
  padding-top: 28px;
}

@media (max-width: 1024px) {
  .force-std-grid,
  .force-ops-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .force-std-grid,
  .force-ops-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- About page only: top-align + sticky floating image ---------- */
/* Image stays on screen while you scroll the About text, until the section ends. */
.about-page-section {
  padding-top: 48px;
  padding-bottom: 72px;
}
.about-welcome-grid {
  align-items: start !important;
  padding-bottom: 48px;
}
.about-welcome-grid .welcome-media {
  margin-top: 0;
  position: sticky;
  top: calc(var(--header-h, 78px) + 16px);
  align-self: start;
  z-index: 2;
}
.about-welcome-grid .welcome-body {
  justify-content: flex-start;
  padding-top: 4px;
}
@media (max-width: 900px) {
  /* Stacked layout on tablet/phone: sticky not useful, disable it */
  .about-page-section {
    padding-top: 36px;
    padding-bottom: 56px;
  }
  .about-welcome-grid {
    padding-bottom: 40px;
  }
  .about-welcome-grid .welcome-media {
    position: static;
    top: auto;
  }
}

/* ---------- Donate page (classic, international NGO standard) ---------- */
.section-donate {
  padding-top: 48px;
  padding-bottom: 72px;
  background: linear-gradient(180deg, #f7f9fb 0%, #fff 48%);
}
.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 36px 40px;
  align-items: start;
}
.donate-card {
  background: #fff;
  border: 1px solid var(--line, #e5e9ef);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(16, 31, 66, 0.06);
  padding: 28px 32px 32px;
}
.donate-card-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line, #e5e9ef);
}
.donate-card-head h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--ink);
}
.donate-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}
.donate-intro { margin-bottom: 20px; }

.donate-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.donate-form-grid .field-full { grid-column: 1 / -1; }
.donate-form .field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.donate-form .req { color: var(--accent, #E85D4C); }
.donate-form .optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}
.donate-form input,
.donate-form select,
.donate-form textarea {
  width: 100%;
  border: 1px solid #d5dbe6;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
  background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.donate-form input:focus,
.donate-form select:focus,
.donate-form textarea:focus {
  outline: none;
  border-color: var(--primary, #0D7377);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.12);
}
.donate-form-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line, #e5e9ef);
}
.donate-form-actions .btn {
  min-width: 220px;
}
.donate-form .form-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Aside: programme list as structured cards */
.donate-aside-block {
  background: #fff;
  border: 1px solid var(--line, #e5e9ef);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 8px 24px rgba(16, 31, 66, 0.05);
}
.donate-aside-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.donate-aside-lead {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
.donate-cause-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.donate-cause-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 12px;
  border-radius: 12px;
  background: #f7f9fb;
  border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.donate-cause-item:hover {
  background: #f0f7f7;
  border-color: rgba(13, 115, 119, 0.18);
}
.donate-cause-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 115, 119, 0.1);
  color: var(--primary, #0D7377);
  font-size: 1rem;
}
.donate-cause-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 3px;
}
.donate-cause-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.donate-trust {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.08), rgba(232, 93, 76, 0.06));
  border: 1px solid rgba(13, 115, 119, 0.12);
}
.donate-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent, #E85D4C);
  color: #fff;
}
.donate-trust strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.donate-trust p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 960px) {
  .donate-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .donate-card { padding: 22px 20px 26px; }
}
@media (max-width: 640px) {
  .donate-form-grid { grid-template-columns: 1fr; }
  .donate-form-actions .btn { width: 100%; }
}

/* ---------- Team section — compact, image-forward ---------- */
.section-team {
  padding-top: 56px;
  padding-bottom: 56px;
}
.team-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.team-card-compact {
  background: #fff;
  border: 1px solid var(--line, #e5e9ef);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16, 31, 66, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.team-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 31, 66, 0.1);
}
.team-card-compact .team-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f6;
}
.team-card-compact .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card-body {
  padding: 14px 16px 16px;
}
.team-card-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.3;
}
.team-card-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 900px) {
  .team-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 560px) {
  .team-grid-compact { grid-template-columns: 1fr; }
  .team-card-compact .team-photo { aspect-ratio: 16 / 9; }
}

/* ---------- Homepage welcome: tighter vertical spacing ---------- */
.welcome-section {
  padding-top: 48px;
  padding-bottom: 48px;
}
.welcome-section .welcome-grid {
  gap: 28px 36px;
}
.welcome-section .section-title {
  margin-top: 4px;
  margin-bottom: 12px;
}
.welcome-section .kicker {
  margin-bottom: 6px;
}

/* Classic image presentation site-wide */
.service-card img,
.cause-card img,
.card-media img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.cause-card .card-media,
.service-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

/* ---------- Causes catalogue (international NGO standard) ---------- */
.section-causes {
  padding-top: 48px;
  padding-bottom: 72px;
  background: linear-gradient(180deg, #f7f9fb 0%, #fff 40%);
}
.causes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cause-card {
  background: #fff;
  border: 1px solid var(--line, #e5e9ef);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(16, 31, 66, 0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cause-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(16, 31, 66, 0.1);
}
.cause-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f6;
  position: relative;
}
.cause-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.cause-card:hover .cause-card-media img {
  transform: scale(1.04);
}
.cause-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.12), rgba(232, 93, 76, 0.08));
}
.cause-card-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 115, 119, 0.15);
  color: var(--primary, #0D7377);
  font-size: 1.35rem;
}
.cause-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.cause-card-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}
.cause-card-title a {
  color: var(--ink);
  text-decoration: none;
}
.cause-card-title a:hover {
  color: var(--primary, #0D7377);
}
.cause-card-excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.cause-card-progress {
  margin-top: 4px;
}
.cause-progress-bar {
  height: 6px;
  border-radius: 99px;
  background: #e8edf3;
  overflow: hidden;
  margin-bottom: 8px;
}
.cause-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary, #0D7377), var(--accent, #E85D4C));
  min-width: 0;
  transition: width .4s ease;
}
.cause-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.cause-card-meta strong {
  color: var(--ink);
}
.cause-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cause-card-actions .btn {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.causes-empty {
  text-align: center;
  padding: 48px 20px;
}

@media (max-width: 960px) {
  .causes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (max-width: 560px) {
  .causes-grid {
    grid-template-columns: 1fr;
  }
  .cause-card-actions {
    flex-direction: column;
  }
}

/* Single cause detail */
.section-cause-single {
  padding-top: 40px;
  padding-bottom: 64px;
}
.cause-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 36px 40px;
  align-items: start;
}
.cause-single-photo {
  margin: 0 0 24px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 31, 66, 0.08);
}
.cause-single-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.cause-sidebar {
  position: sticky;
  top: calc(var(--header-h, 78px) + 16px);
}
.cause-box {
  background: #fff;
  border: 1px solid var(--line, #e5e9ef);
  border-radius: 16px;
  padding: 22px 22px 24px;
  box-shadow: 0 8px 24px rgba(16, 31, 66, 0.06);
}
.cause-box-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.cause-box-figures {
  margin-bottom: 10px;
}
.cause-box-goal {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}
.cause-box-label {
  font-size: 0.85rem;
  color: var(--muted);
}
.cause-progress-bar--sidebar {
  margin: 10px 0 6px;
  height: 8px;
}
.cause-box-funded {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.cause-box-note {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 900px) {
  .cause-single-grid {
    grid-template-columns: 1fr;
  }
  .cause-sidebar {
    position: static;
  }
}

/* ---------- Our Programmes — soft NGO background ---------- */
.section-programmes {
  position: relative;
  background:
    linear-gradient(180deg, rgba(247, 249, 251, 0.97) 0%, rgba(240, 247, 247, 0.95) 50%, rgba(247, 249, 251, 0.98) 100%);
  overflow: hidden;
}
.section-programmes::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(13, 115, 119, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 80%, rgba(232, 93, 76, 0.05), transparent 50%);
  pointer-events: none;
}
.section-programmes .container {
  position: relative;
  z-index: 1;
}
.section-programmes .service-card {
  background: #fff;
  border: 1px solid rgba(13, 115, 119, 0.08);
  box-shadow: 0 8px 24px rgba(16, 31, 66, 0.05);
}

/* ---------- Team photos — keep faces in frame ---------- */
.team-card-compact .team-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f6;
}
.team-card-compact .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

/* ---------- Cause cards — prefer upper subject (faces) ---------- */
.cause-card-media img {
  object-fit: cover;
  object-position: center 22%;
}
.cause-card-media {
  aspect-ratio: 16 / 10;
}


/* NVIWODA official logo */
.brand-logo {
  height: 48px;
  width: auto;
  max-width: min(280px, 52vw);
  object-fit: contain;
  display: block;
}
.brand-logo-full {
  height: 52px;
  max-width: min(320px, 58vw);
}
.brand-has-logo {
  gap: 0;
}
@media (max-width: 640px) {
  .brand-logo,
  .brand-logo-full {
    height: 40px;
    max-width: min(220px, 62vw);
  }
}
