:root{
  /* Layout + font */
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Neutrals (comfort) */
  --bg: #F7F7F2;       /* Baby’s Breath vibe */
  --card: #FAFAF7;     /* Seedpearl vibe */
  --text: #1F2937;
  --muted: #6B7280;

  /* Brand blues (logo-aligned) */
  --primary: #001F5B;     /* PMS Reflex Blue C (approx) */
  --blue-soft: #4F83CC;   /* Pantone 662 (approx) */
  --blue-light: #D6E4F2;  /* Pantone 657 (approx) */

  /* Greens (Pantone 352/359 vibe) */
  --green-soft: #9FD9B3;
  --green-action: #A1D884;

  --border: rgba(0,0,0,0.07);
  --shadow: 0 14px 32px rgba(0,0,0,0.08);
  --radius: 20px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: var(--font);
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(214,228,242,0.75), transparent 60%),
    radial-gradient(900px 620px at 90% 10%, rgba(159,217,179,0.35), transparent 55%),
    var(--bg);
  color: var(--text);
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background:
    linear-gradient(
      to bottom,
      rgba(247,247,242,0.95),
      rgba(247,247,242,0.78)
    );
  border-bottom: 1px solid var(--border);
  transition: background .2s ease, box-shadow .2s ease;
}

.header.scrolled{
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark{
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

.brand-text strong{
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}

.brand-text small{
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;   /* was 2px */
  letter-spacing: 0.3px;
}

/* Hamburger icon */
.hamburger{
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
}

/* Animate hamburger to X when open */
.menu-btn[aria-expanded="true"] .hamburger span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .hamburger span:nth-child(2){
  opacity: 0;
}

.menu-btn[aria-expanded="true"] .hamburger span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

.hamburger span{
  transition: transform .2s ease, opacity .2s ease;
}

/* Navigation */
.links{
  display: flex;
  align-items: center;
  gap: 8px;
}

.links a{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 10px;   /* was 8px */
  border-radius: 12px;
  white-space: nowrap;
}

.links a:hover{
  background: rgba(214,228,242,0.6);
  color: var(--primary);
}

/*Header row layout */
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;   /* ⬅ THIS adds height */
}


/* Separator between links and actions */
.nav-sep{
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 6px;
}

/* Donate button in nav */
.nav-donate{
  padding: 11px 16px;
  font-size: 14px;
  border-radius: 999px;
}


/* Instagram icon */
.icon-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(214,228,242,0.6);
}

.icon-link svg{
  width: 18px;
  height: 18px;
  fill: var(--primary);
}

.icon-link:hover{
  background: rgba(159,217,179,0.35);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  font-weight:750;
  font-size:14px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
}
.btn-full{width:100%}

.btn-primary{
  background: var(--green-action);
  color: #fff;
  border: none;
}
.btn-primary:hover{filter: brightness(1.05)}

.btn-ghost{
  background: rgba(214,228,242,0.85);
  color: var(--primary);
}

/* HERO (video background) */
.hero{
  position: relative;
  overflow: hidden;
  padding: 68px 0 28px;
}
.hero-video{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-video video{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity: 0.40;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(247,247,242,0.65) 0%,
    rgba(247,247,242,0.45) 45%,
    rgba(247,247,242,0.20) 100%
  );
}
.hero .container{ position: relative; z-index: 2; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.pill{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(214,228,242,0.9);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size:13px;
  margin:0 0 14px;
}

h1{font-size:42px; line-height:1.08; margin:0 0 14px; color: var(--primary)}
.sub{color: var(--text); font-size:16px; line-height:1.65; margin:0 0 18px}

.cta-row{display:flex; gap:12px; flex-wrap:wrap}

.mini-stats{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.mini-stat{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:12px;
  background: rgba(250,250,247,0.85);
}
.mini-stat strong{display:block; font-size:13px; color: var(--primary)}
.mini-stat span{display:block; font-size:12px; color: var(--muted); margin-top:2px}

/* Trust strip */
.strip{padding:18px 0 40px}
.strip-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
.strip-card{
  display:flex; gap:12px; align-items:flex-start;
  padding:16px;
  border-radius: var(--radius);
  background: rgba(250,250,247,0.9);
  border:1px solid var(--border);
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
}
.icon{width:18px; height:18px; border-radius:6px; margin-top:3px;}
.icon.blue{background: var(--blue-soft)}
.icon.green{background: var(--green-action)}
.icon.light{background: rgba(214,228,242,0.9)}
.strip-card strong{display:block; color: var(--primary)}
.strip-card p{margin:4px 0 0}

/* Sections */
.section{padding:56px 0}
.section.alt{
  background: rgba(214,228,242,0.35);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.section-head{margin-bottom:18px}
h2{font-size:30px; margin:0 0 8px; color: var(--primary)}
.muted{color: var(--muted)}
.tiny{font-size:12px}

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(250,250,247,0.92);
  box-shadow: var(--shadow);
  padding:18px;
}
.card.cozy{background: rgba(250,250,247,0.96)}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:14px;
}

.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:stretch;
}

.chips{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}
.chip{
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--border);
  background: rgba(214,228,242,0.65);
  color: var(--primary);
}

/* Photo card */
.photo-card{padding:0; overflow:hidden}
.photo-card img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  aspect-ratio: 4/3;
}
.overlay{
  padding:14px 16px;
  background: rgba(250,250,247,0.95);
  border-top:1px solid var(--border);
}
.overlay strong{display:block; font-size:13px; color: var(--primary)}
.overlay span{display:block; font-size:12px; color:var(--muted)}

/* Mission */
.mission-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.aims-list{
  margin:0;
  padding-left:18px;
}
.aims-list li{margin: 10px 0; line-height: 1.6}

/* Events */
.event{
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.event-img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.event-body{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  flex: 1; /* CRITICAL: fills remaining height */
}

.event-body h3{
  margin: 0;
  color: var(--primary);
}

.event-body p{
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.event-body .link{
  margin-top: auto;          /* pushes link to bottom */
  align-self: flex-start;    /* left aligned */
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.event-body .link:hover{
  opacity: 0.85;
}

/* Team */
.team-wrap{
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(250,250,247,0.7);
  overflow: hidden;
  padding: 14px;
}

.team-marquee{
  overflow: hidden;
}

.team-row{
  display:flex;
  gap:12px;
  width: max-content;
  will-change: transform;
}

/* Start marquee only once section is in view */
.team-wrap.reveal.in .team-row{
  animation: teamMarquee 40s linear infinite;
}

@keyframes teamMarquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.team-card{
  width: 170px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(250,250,247,0.95);
  padding: 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
}
.team-card img{
  width: 100%;
  height: auto;          /* let image decide height */
  object-fit: contain;   /* preserve full image */
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  background: rgba(247,247,242,0.6); /* optional, looks nice behind transparent PNGs */
}
.team-card strong{display:block; font-size: 13px; color: var(--primary)}
.team-card span{display:block; margin-top:2px}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.gallery img{
  width:100%;
  height:100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
  transition: transform .18s ease;
}
.gallery img:hover{transform: translateY(-2px)}

.gallery img:nth-child(1){grid-column: span 7; aspect-ratio: 16/10}
.gallery img:nth-child(2){grid-column: span 5; aspect-ratio: 1/1}
.gallery img:nth-child(3){grid-column: span 4; aspect-ratio: 4/5}
.gallery img:nth-child(4){grid-column: span 4; aspect-ratio: 4/5}
.gallery img:nth-child(5){grid-column: span 4; aspect-ratio: 4/5}
.gallery img:nth-child(6){grid-column: span 12; aspect-ratio: 21/9}

.gallery-block{
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(250,250,247,0.85);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.gallery-video{
  flex: 0 0 auto;
  width: 240px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
  background: #000;
}

.gallery-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gallery-title{
  margin: 0;
  color: var(--primary);
  font-size: 18px;
}

.gallery-controls{
  display:flex;
  gap: 8px;
}

.gbtn{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(214,228,242,0.85);
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.gbtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
}

/* The horizontal “row” that never wraps */
.gallery-strip{
  display:flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: thin; /* Firefox */
}

.gallery-strip::-webkit-scrollbar{ height: 10px; }
.gallery-strip::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
}
.gallery-strip::-webkit-scrollbar-track{
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
}

/* Each image is “card sized” and consistent */
.gallery-strip img{
  flex: 0 0 auto;
  width: 240px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
  transition: transform .18s ease;
}
.gallery-strip img:hover{ transform: translateY(-2px); }

@media (max-width: 920px){
  .gallery-strip img{
    width: 210px;
    height: 160px;
  }
}

/* Fix anchor scroll offset for sticky header */
.gallery-block{
  scroll-margin-top: 110px; /* adjust if header height changes */
}

/* Donate QR (used in your HTML) */
.donate-card{border-color: rgba(0,166,81,0.25)}
.qr-wrap{
  margin: 10px 0 8px;
  border-radius: 18px;
  border: 1px dashed rgba(0,166,81,0.35);
  background: rgba(159,217,179,0.12);
  padding: 12px;
  display:grid;
  place-items:center;
}
.qr-wrap img{
  width: 180px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.upi{margin-top:8px}
.upi strong{color: var(--primary)}

#donate{
  scroll-margin-top: 100px; /* adjust if needed */
}

/* Contact */
.contact-list{display:grid; gap:10px; margin-top:10px}
.contact-list div{color: var(--muted)}
.contact-list strong{color: var(--primary)}

.form{display:grid; gap:12px; margin-top:8px}
label{display:grid; gap:6px; font-size:13px; color: var(--muted)}
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(250,250,247,0.98);
  color: var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(79,131,204,0.55);
  box-shadow: 0 0 0 4px rgba(214,228,242,0.75);
}

/* Checklist */
.checklist{margin:12px 0 14px; padding-left:18px}
.checklist li{margin:8px 0; color: var(--text)}

/* Footer (your HTML includes footer-overlay) */
.footer{
  position: relative;
  padding: 34px 0 46px;
  border-top: 1px solid var(--border);
  background-image: url("assets/uploads/footer-bg.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.footer-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,31,91,0.72);
  z-index:0;
}
.footer .container{ position:relative; z-index:1; }

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 14px;
  align-items:start;
}
.footer strong{color: #fff}
.footer p, .footer .muted, .footer .tiny{color: rgba(255,255,255,0.82)}
.footer-links{display:grid; gap:8px}
.footer-links a{color: rgba(255,255,255,0.82)}
.footer-links a:hover{color:#fff}

/* Scroll reveal */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{
  opacity:1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; transition:none}
  .btn, .gallery img{transition:none}
  .team-row{opacity:1; transform:none; animation:none !important}
}

/* Responsive */
@media (max-width: 920px){
  h1{font-size:34px}

  .hero-grid{grid-template-columns: 1fr}
  .mini-stats{grid-template-columns: 1fr}
  .strip-grid{grid-template-columns: 1fr}
  .grid-3{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .about-grid{grid-template-columns: 1fr}
  .mission-grid{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr}

  .links{
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .nav-sep{
    display: none;
  }
}

/* =========================
   LIGHTBOX
   ========================= */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 200;
}

.lightbox.show{
  display: block;
}

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}

.lightbox-dialog{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: rgba(250,250,247,0.96);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
  overflow: hidden;
  padding: 12px;
}

.lightbox-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(214,228,242,0.85);
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
}

.lightbox-img{
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 14px;
  background: #111;
}

.lightbox-caption{
  margin-top: 10px;
  padding: 0 4px 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .lightbox-dialog{ transition: none; }
}

/* =========================
   MOBILE MENU (DROPDOWN)
   Desktop unchanged
   ========================= */
.menu-btn{ display: none; } /* hidden on desktop */

@media (max-width: 920px){

  /* Two-row header: brand on top, menu button under it */
  .nav{
    padding: 10px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Keep brand row */
  .brand{
    gap: 10px;
  }

  /* Mobile logo size (desktop stays big) */
  .brand-mark{
    width: 56px;
    height: 56px;
  }

  .brand-text strong{ font-size: 14px; }
  .brand-text small{ font-size: 11px; }

  /* Show menu button on mobile */
  .menu-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(214,228,242,0.65);
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
  }

  .menu-btn:hover{
    background: rgba(214,228,242,0.85);
  }

  /* Hide nav by default on mobile */
  .links{
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(250,250,247,0.96);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  }

  /* When open, show it */
  .links.open{
    display: flex;
  }

  /* Make each link full-width and tappable */
  .links a{
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
  }

  /* Remove separator on mobile */
  .nav-sep{ display: none; }

  /* Make icon + donate look nice inside dropdown */
  .icon-link{
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .nav-donate{
    width: 100%;
    text-align: center;
    padding: 12px 14px;
  }
}

/* =========================
   MOBILE HEADER: brand left, menu right (same row)
   ========================= */
@media (max-width: 920px){

  /* Force the header container into a 2-column grid */
  .header .nav.container{
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand menu"
      "links links";
    align-items: center;
    row-gap: 10px;
    padding: 10px 12px;
  }

  /* Put brand on the left */
  .header .brand{
    grid-area: brand;
    min-width: 0;
  }

  /* Put menu button on the right (same line) */
  .header .menu-btn{
    grid-area: menu;
    justify-self: end;
    align-self: center;
    margin: 0;     /* kill any margin that pushes it down */
  }

  /* Dropdown links row (hidden until opened) */
  .header .links{
    grid-area: links;
    width: 100%;
  }
}

/* =========================
   END OF CSS
   ========================= */
