/* =====================================================================
   Infant Organisation — main stylesheet
   Translates the original React/Tailwind design system (warm orange
   "primary", sky "secondary", magenta "accent" palette + Inter/Poppins
   type pairing) into plain CSS layered on top of Bootstrap 5.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Primary (Infant Organisation Blue) */
  --color-primary-50:  #EEF6FC;
  --color-primary-100: #D8EAF8;
  --color-primary-200: #B5D7F0;
  --color-primary-300: #86BDE4;
  --color-primary-400: #5FA6D8;
  --color-primary-500: #2B78B8;
  --color-primary-600: #0E5A95;
  --color-primary-700: #083A67;
  --color-primary-800: #062A4C;
  --color-primary-900: #041E38;

  /* Secondary (sky blue) */
  --color-secondary-50:  #F4FAFE;
  --color-secondary-100: #E4F2FB;
  --color-secondary-200: #C9E3F7;
  --color-secondary-500: #5FA6D8;
  --color-secondary-600: #2B78B8;
  --color-secondary-700: #0E5A95;

  /* Accent (magenta) */
  --color-accent-50:  #fdf4ff;
  --color-accent-100: #fae8ff;
  --color-accent-200: #f5d0fe;
  --color-accent-500: #d946ef;
  --color-accent-600: #c026d3;
  --color-accent-700: #a21caf;

  /* Warm (orange-red, used for shadows/CTAs) */
  --color-warm-50:  #EEF6FC;
  --color-warm-100: #D8EAF8;
  --color-warm-200: #B5D7F0;
  --color-warm-500: #2B78B8;
  --color-warm-600: #083A67;

  /* Soft (neutral slate, text + backgrounds) */
  --color-soft-50:  #f8fafc;
  --color-soft-100: #f1f5f9;
  --color-soft-200: #e2e8f0;
  --color-soft-400: #94a3b8;
  --color-soft-500: #64748b;
  --color-soft-600: #475569;
  --color-soft-700: #334155;
  --color-soft-800: #1e293b;
  --color-soft-900: #0f172a;
  --color-soft-950: #020617;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --shadow-gentle:   0 2px 10px -1px rgba(0, 0, 0, 0.1);
  --shadow-peaceful: 0 4px 20px -2px rgba(20, 184, 166, 0.18);
  --shadow-warm:     0 4px 20px -2px rgba(242, 122, 58, 0.25);
  --shadow-glass:    0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);

  /* Bootstrap variable overrides so native BS components (buttons,
     forms, modals) inherit the brand palette automatically. */
  --bs-primary: var(--color-primary-600);
  --bs-primary-rgb: 14, 90, 149;
  --bs-link-color: var(--color-primary-600);
  --bs-link-hover-color: var(--color-primary-700);
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--color-soft-900);
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-soft-900);
  background: linear-gradient(-45deg,#EEF6FC,#FFFFFF,#EAF4FB,#D8EAF8);
  background-size: 400% 400%;
  animation: gentleFloat 24s ease infinite;
  -webkit-font-smoothing: antialiased;
}

@keyframes gentleFloat {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  * { scroll-behavior: auto !important; }
}

main { flex: 1 0 auto; }

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

a { text-decoration: none; }

.font-display { font-family: var(--font-display); }

/* ---------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------- */
.heading-xl {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3.75rem);
  background: linear-gradient(135deg,#2B78B8 0%,#0E5A95 55%,#041E38 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-soft-900);
}

.heading-lg {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-soft-900);
}

.heading-md {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  color: var(--color-soft-900);
}

.heading-sm {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
  color: var(--color-soft-900);
}

.text-body {
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-soft-600);
}

.text-gradient {
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-secondary-500), var(--color-accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn-primary,
a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  border: none;
  border-radius: 50px;
  min-height: 52px;
  background: linear-gradient(
135deg,
#2B78B8 0%,
#0E5A95 55%,
#041E38 100%
);
  box-shadow: 0 4px 15px rgba(242, 122, 58, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary:hover,
a.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(242, 122, 58, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:active { transform: scale(0.97); }

.btn-secondary,
a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary-600);
  border: 1px solid var(--color-primary-300);
  border-radius: 50px;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 15px rgba(242, 122, 58, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-secondary:hover,
a.btn-secondary:hover {
  color: var(--color-primary-700);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(242, 122, 58, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--color-primary-600);
  border: none;
}
.btn-white:hover { background: var(--color-warm-50); color: var(--color-primary-700); }

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */
.card-soft {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1rem;
  box-shadow: var(--shadow-glass);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card-soft.hoverable:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.form-control,
.form-select {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-primary-200);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  min-height: 52px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 0.2rem rgba(242, 122, 58, 0.18);
}

textarea.form-control { min-height: 120px; }

.form-label {
  font-weight: 500;
  color: var(--color-soft-700);
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------------
   Backgrounds / patterns
   --------------------------------------------------------------------- */
.bg-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(242, 122, 58, 0.10) 1px, transparent 0);
  background-size: 20px 20px;
}

.bg-dots {
  background-image: radial-gradient(circle at 2px 2px, rgba(14, 165, 233, 0.10) 1px, transparent 0);
  background-size: 24px 24px;
}

.bg-gradient-hero {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-soft-50) 50%, var(--color-secondary-50) 100%);
}

.bg-gradient-warm-light {
  background: linear-gradient(135deg, var(--color-warm-50) 0%, #ffffff 50%, var(--color-primary-50) 100%);
}

.bg-gradient-section {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-secondary-50) 50%, var(--color-accent-50) 100%);
}

.bg-gradient-cta {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-accent-500) 100%);
}

.bg-gradient-footer {
  background: linear-gradient(160deg, var(--color-soft-800) 0%, var(--color-soft-900) 55%, var(--color-soft-950) 100%);
}

/* ---------------------------------------------------------------------
   Header / Navbar
   --------------------------------------------------------------------- */
.topbar {
  background: linear-gradient(90deg, var(--color-primary-600), var(--color-primary-500), var(--color-secondary-500));
  color: #fff;
  font-size: 0.875rem;
}

.topbar a { color: #fff; opacity: 0.92; }
.topbar a:hover { opacity: 1; color: var(--color-primary-100); }

.site-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-gentle);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-navbar .navbar-brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-navbar .nav-link {
  font-weight: 500;
  color: var(--color-soft-600);
  padding: 0.65rem 1rem !important;
  border-radius: 0.75rem;
  transition: background .2s ease, color .2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--color-primary-600);
  background: var(--color-primary-50);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(
135deg,
var(--color-primary-500),
var(--color-primary-800)
);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-soft-500);
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { color: #e2e8f0; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--color-primary-300); }
.site-footer h5 { color: #fff; font-family: var(--font-display); }
.site-footer .social-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.site-footer .social-icon:hover { background: var(--color-primary-600); color: #fff; transform: translateY(-2px); }

.footer-bottom { background: var(--color-soft-950); border-top: 1px solid rgba(255,255,255,0.08); }

.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  color: #fff;
  border: none;
  box-shadow: var(--shadow-warm);
  z-index: 1040;
}
.scroll-top-btn.show { display: flex; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
   .hero-caption {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: auto;
    max-width: 700px;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);

    padding: 18px 35px;
    border-radius: 12px;

    border-left: 6px solid #007BFF;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);

    text-align: center;
}

.hero-caption h2 {
    margin: 0;
    color: #0d3b66;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .hero-caption {
        max-width: 90%;
        padding: 15px 25px;
        bottom: 25px;
    }

    .hero-caption h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .hero-caption {
        max-width: 92%;
        padding: 12px 18px;
        bottom: 15px;
        border-left-width: 4px;
    }

    .hero-caption h2 {
        font-size: 1.2rem;
    }
}
.hero-carousel { height: 280px; }
@media (min-width: 576px) { .hero-carousel { height: 360px; } }
@media (min-width: 992px) { .hero-carousel { height: 480px; } }

.hero-carousel .carousel-item-bg {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-carousel .carousel-caption-custom {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-logo-ring{
  width:320px;
  height:320px;
  position:relative;
  border-radius:50%;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto;
}

.hero-logo-ring::before{
  content:"";
  position:absolute;
  inset:0;
  border:3px solid var(--color-primary-300);
  border-radius:50%;
  z-index:2;
  pointer-events:none;
}

.hero-logo-img{
  width:85%;
  height:85%;
  object-fit:contain;
  display:block;
  position:relative;
  z-index:1;
}

.hero-wave{
  display:none;
}

/* ---------------------------------------------------------------------
   Trust badges / stat tiles
   --------------------------------------------------------------------- */
.trust-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------------
   Progress bars (campaigns)
   --------------------------------------------------------------------- */
.campaign-progress {
  height: 8px;
  border-radius: 50px;
  background: var(--color-warm-200);
  overflow: hidden;
}
.campaign-progress .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-accent-500));
  border-radius: 50px;
  transition: width 1s ease;
}

.badge-status-active { background: #dcfce7; color: #15803d; }
.badge-status-completed { background: var(--color-warm-100); color: var(--color-warm-600); }

/* ---------------------------------------------------------------------
   Step wizard (Donate page)
   --------------------------------------------------------------------- */
.wizard-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 2.5rem; }
.wizard-step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: var(--color-soft-200);
  color: var(--color-soft-500);
}
.wizard-step-circle.active,
.wizard-step-circle.complete {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  color: #fff;
}
.wizard-step-label { font-size: 0.8rem; margin-top: 0.4rem; color: var(--color-soft-500); text-align: center; }
.wizard-step-label.active { color: var(--color-primary-600); font-weight: 600; }
.wizard-connector { flex: 1; height: 3px; background: var(--color-soft-200); margin: 0 0.5rem; max-width: 80px; }
.wizard-connector.complete { background: var(--color-primary-500); }

.amount-pill {
  border: 2px solid var(--color-primary-200);
  border-radius: 1rem;
  padding: 0.85rem 0.5rem;
  text-align: center;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
}
.amount-pill:hover { border-color: var(--color-primary-400); }
.amount-pill.selected {
  border-color: var(--color-primary-500);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  box-shadow: 0 4px 14px rgba(14,90,149,0.30);
}

/* ---------------------------------------------------------------------
   Volunteer modal
   --------------------------------------------------------------------- */
#volunteerModal .modal-content {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
}
#volunteerModal .modal-header {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-accent-500));
  color: #fff;
  border: none;
}
#volunteerModal .btn-close { filter: invert(1) brightness(2); }

/* ---------------------------------------------------------------------
   Misc utilities
   --------------------------------------------------------------------- */
.section-py { padding-top: 5rem; padding-bottom: 5rem; }
@media (max-width: 767.98px) { .section-py { padding-top: 3rem; padding-bottom: 3rem; } }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.object-fit-cover { object-fit: cover; }

.gallery-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  position: relative;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-thumb:hover img { transform: scale(1.08); }

.focus-visible-ring:focus-visible {
  outline: 3px solid var(--color-primary-400);
  outline-offset: 2px;
}

/* Placeholder hero/section illustrations (local SVG, no external hotlinking) */
.illustration-tile {
  border-radius: 1rem;
  overflow: hidden;
}
#focus-areas {
  overflow: visible !important;
}

#focus-areas .row.g-3.mt-4 {
  margin-top: 3rem !important;
}

.trust-tile-icon {
  margin-bottom: 15px !important;
}