/* =====================================================================
   NGO Website - Design system
   Palette : white base / civic blue / marigold orange / field green
   Type    : Bricolage Grotesque (display) + Mulish (body)
   Signature: the "seva band" - a slim blue→orange→green ribbon that
              marks every section, card and the footer.
   ===================================================================== */

:root {
  --blue:       #14549C;
  --blue-deep:  #0B3A72;
  --blue-soft:  #E7F0FB;
  --orange:     #F4772E;
  --orange-soft:#FDEEE2;
  --green:      #2E9E5C;
  --green-soft: #E6F5EC;
  --ink:        #1E2836;
  --muted:      #5B6B7E;
  --mist:       #F1F6FC;
  --card-radius: 18px;
  --shadow-soft: 0 10px 30px rgba(20, 60, 110, .08);
  --shadow-lift: 0 16px 40px rgba(20, 60, 110, .14);
  --band: linear-gradient(90deg, var(--blue) 0 34%, var(--orange) 34% 67%, var(--green) 67% 100%);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Mulish', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; }

/* ---------------- Seva band (signature element) ---------------- */
.seva-band { height: 5px; background: var(--band); border-radius: 3px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--blue);
}
.eyebrow::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--band); }

/* ---------------- Topbar ---------------- */
.topbar { background: var(--blue-deep); color: #dbe8f8; padding: .35rem 0; font-size: .85rem; }
.topbar-social a { color: #cfe0f5; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); font-size: .75rem; }
.topbar-social a:hover { background: var(--orange); color: #fff; }
.translate-slot { min-height: 24px; }
.translate-slot .goog-te-gadget { font-size: 0; }
.translate-slot .goog-te-gadget .goog-te-combo { font-size: .78rem; border-radius: 6px; padding: 1px 4px; }
/* Google Translate injects its own top banner iframe + pushes <body> down when a
   language is picked - hide the banner and cancel the offset it forces inline. */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ---------------- Navbar ---------------- */
.site-nav { background: #fff; box-shadow: 0 2px 18px rgba(15, 50, 95, .07); padding: .55rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; color: #fff; font-size: 1.15rem; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--green));
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.site-nav .nav-link { font-weight: 700; color: var(--ink); padding: .55rem .8rem; border-radius: 8px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--blue); background: var(--blue-soft); }
.dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--shadow-lift); padding: .5rem; border-top: 4px solid transparent; border-image: none; }
.dropdown-menu::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--band); margin: -0.2rem .4rem .35rem; }
.dropdown-item { border-radius: 8px; font-weight: 600; padding: .5rem .8rem; }
.dropdown-item:hover { background: var(--blue-soft); color: var(--blue-deep); }
.btn-donate {
  background: var(--orange); color: #fff; font-weight: 800; border: 0;
  border-radius: 999px; padding: .55rem 1.3rem;
  box-shadow: 0 8px 20px rgba(244, 119, 46, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-donate:hover { background: #de6316; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(244,119,46,.4); }
.btn-outline-nav { border: 2px solid var(--blue); color: var(--blue); font-weight: 700; border-radius: 999px; padding: .5rem 1.2rem; }
.btn-outline-nav:hover { background: var(--blue); color: #fff; }
.btn-green { background: var(--green); color: #fff; font-weight: 700; border-radius: 999px; border: 0; padding: .55rem 1.3rem; }
.btn-green:hover { background: #23824a; color: #fff; }
.btn-blue { background: var(--blue); color: #fff; font-weight: 700; border-radius: 999px; border: 0; padding: .55rem 1.3rem; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }

/* ---------------- Hero ---------------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, var(--blue-soft), transparent), radial-gradient(900px 420px at -10% 110%, var(--green-soft), transparent), #fff; overflow: hidden; }
.hero .swiper-slide { padding: 4.5rem 0 5rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; }
.hero h1 .accent { position: relative; color: var(--blue); white-space: nowrap; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .18em; background: var(--band); border-radius: 4px; opacity: .85; z-index: -1; }
.hero .lead { color: var(--muted); max-width: 34rem; }
.hero-visual { border-radius: 26px; box-shadow: var(--shadow-lift); overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--blue-soft), var(--green-soft)); display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .placeholder-icon { font-size: 5rem; color: var(--blue); opacity: .3; }
.hero .swiper-pagination-bullet-active { background: var(--orange); }

/* ---------------- Stats ---------------- */
.stats-strip { background: var(--blue-deep); color: #fff; position: relative; }
.stats-strip::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--band); }
.stat-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: #fff; }
.stat-label { color: #b9cfeb; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------------- Sections & cards ---------------- */
.section { padding: 4.5rem 0; }
.section.tint { background: var(--mist); }
.section-head { max-width: 40rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }

.card-ngo {
  background: #fff; border: 0; border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft); overflow: hidden; height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-ngo:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card-ngo .card-top-band { height: 4px; background: var(--band); }
.card-ngo .card-img-top { aspect-ratio: 16/9; object-fit: cover; background: var(--blue-soft); }
.card-img-placeholder { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--blue); background: linear-gradient(135deg, var(--blue-soft), var(--green-soft)); }
.badge-type { font-weight: 700; border-radius: 999px; padding: .35em .9em; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.badge-blue { background: var(--blue-soft); color: var(--blue-deep); }
.badge-orange { background: var(--orange-soft); color: #b4520f; }
.badge-green { background: var(--green-soft); color: #1c6b3c; }

/* ---------------- Campaign progress ---------------- */
.progress-seva { height: 10px; border-radius: 999px; background: var(--blue-soft); }
.progress-seva .progress-bar { background: var(--band); border-radius: 999px; }

/* ---------------- Donate banner ---------------- */
.donate-banner {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 55%, var(--green));
  color: #fff; border-radius: 24px; position: relative; overflow: hidden;
}
.donate-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.donate-banner h3 { color: #fff; font-weight: 800; }

/* ---------------- Testimonials ---------------- */
.testimonial-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow-soft); padding: 1.6rem; height: 100%; }
.testimonial-card .quote { color: var(--orange); font-size: 1.5rem; }

/* ---------------- People ---------------- */
.person-card { text-align: center; }
.person-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 1.2rem auto .6rem; border: 4px solid var(--blue-soft); background: var(--mist); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--blue); }

/* ---------------- Gallery ---------------- */
.gallery-filter .btn { border-radius: 999px; font-weight: 700; }
.gallery-item { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft); position: relative; display: block; aspect-ratio: 4/3; background: var(--blue-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: .5rem .8rem; background: linear-gradient(transparent, rgba(10,30,60,.75)); color: #fff; font-size: .85rem; font-weight: 600; }
.video-frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 16/9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8, 20, 40, .92); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; }
.lightbox .close-btn { position: absolute; top: 1rem; right: 1.4rem; background: none; border: 0; color: #fff; font-size: 2rem; }

/* ---------------- Forms ---------------- */
.form-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow-soft); padding: 2rem; }
.form-card .form-control, .form-card .form-select { border-radius: 10px; padding: .65rem .9rem; border-color: #d8e3f0; }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(20,84,156,.12); }
label.form-label { font-weight: 700; font-size: .9rem; }

/* ---------------- CAPTCHA ---------------- */
.captcha-widget { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.captcha-image-wrap {
  position: relative; display: inline-flex; flex-shrink: 0; line-height: 0;
  border-radius: 10px; overflow: hidden; border: 1px solid #d8e3f0; box-shadow: var(--shadow-soft);
}
.captcha-refresh-btn {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-soft); font-size: .75rem; transition: transform .2s ease;
}
.captcha-refresh-btn:hover { transform: rotate(90deg); }
.captcha-refresh-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.captcha-widget .captcha-input { flex: 1 1 160px; min-width: 140px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------------- Floating donate ---------------- */
.floating-donate {
  position: fixed; right: 18px; bottom: 18px; z-index: 1500;
  display: flex; align-items: center; gap: .5rem;
  background: var(--orange); color: #fff; font-weight: 800;
  padding: .7rem 1.2rem; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(244,119,46,.45);
  animation: pulse 2.4s infinite;
}
.floating-donate:hover { color: #fff; background: #de6316; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
/* The sticky header already carries an always-visible "Donate Now" button on desktop
   (>= the navbar-expand-lg breakpoint) - showing this too is pure duplication there.
   On mobile that header CTA is hidden inside the collapsed menu, so keep it there. */
@media (min-width: 992px) {
  .floating-donate { display: none; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: #0A2C55; color: #c6d7ec; margin-top: 4rem; }
.site-footer .footer-brand { display: flex; align-items: center; gap: .6rem; }
.site-footer .brand-text { color: #fff; }
.footer-head { color: #fff; font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #c6d7ec; }
.footer-links a:hover { color: var(--orange); }
.footer-text { color: #a9c0dc; font-size: .92rem; }
.footer-contact li { font-size: .88rem; }
.footer-social a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #dbe8f8; }
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-nl { max-width: 220px; border-radius: 999px; }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero { background: linear-gradient(120deg, var(--blue-deep), var(--blue)); color: #fff; padding: 3rem 0 2.6rem; position: relative; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--band); }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #9db9dc; margin: 0; }
.page-hero .breadcrumb a { color: #cfe0f5; }
.page-hero .breadcrumb-item.active { color: #fff; }

/* ---------------- Tables & documents ---------------- */
.table-ngo { background: #fff; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.table-ngo thead { background: var(--blue-soft); }
.doc-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border-radius: 14px; box-shadow: var(--shadow-soft); }
.doc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: #b4520f; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }

/* ---------------- QR / print cards ---------------- */
/* Fixed width AND height so the front and back of a printed ID card always
   match exactly, regardless of how much text is on either side - a real
   card can't be one size on one face and a different size on the other. */
.id-card { width: 340px; max-width: 100%; min-height: 520px; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lift); background: #fff; margin: 0 auto; }
.id-card .id-head { background: linear-gradient(120deg, var(--blue-deep), var(--blue)); color: #fff; padding: .9rem 1rem; text-align: center; }
.id-card .seva-band { height: 4px; flex-shrink: 0; }
.id-card .id-body { flex: 1 1 auto; }
.id-card .id-body:not(.back-mission) { display: flex; flex-direction: column; justify-content: center; }
.id-card .id-sign { flex-shrink: 0; }

/* ---------------- Utility ---------------- */
.min-vh-60 { min-height: 60vh; }
.text-orange { color: var(--orange) !important; }
.text-green { color: var(--green) !important; }
.text-blue { color: var(--blue) !important; }
.bg-mist { background: var(--mist); }
.rounded-ngo { border-radius: var(--card-radius); }

/* ---------------- Responsive tweaks ---------------- */
@media (max-width: 991px) {
  .nav-cta { margin-top: .8rem; }
  .hero .swiper-slide { padding: 3rem 0 3.6rem; }
}
@media (max-width: 575px) {
  .floating-donate span { display: none; }
  .section { padding: 3rem 0; }
}

/* ---------------- Print (ID card / certificate) ---------------- */
@media print {
  .topbar, .site-nav, .site-footer, .floating-donate, .no-print { display: none !important; }
  body { background: #fff; }
}
