/* ===========================================================
   Uddipath Foundation — Design tokens
   Indigo  #3D2278   Marigold #E8961E   Leaf #2F8F4E
   Terracotta #C1442B   Paper #FBF5EC   Ink #2A1B3D
=========================================================== */

:root{
  --indigo: #3D2278;
  --indigo-dark: #281552;
  --marigold: #E8961E;
  --marigold-dark: #C87710;
  --leaf: #2F8F4E;
  --terracotta: #C1442B;
  --paper: #FBF5EC;
  --paper-deep: #F3E9D8;
  --ink: #2A1B3D;
  --ink-soft: #5B4B70;
  --white: #ffffff;

  --font-display: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Hind Siliguri", "Segoe UI", sans-serif;

  --radius: 16px;
  --shadow-soft: 0 12px 30px -12px rgba(42, 27, 61, 0.25);
  --wrap: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

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

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--indigo);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h2{ font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3{ font-size: 1.25rem; }

p{ margin: 0 0 1em; }
a{ color: inherit; }

img{ max-width: 100%; display: block; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section{ padding: 88px 0; }
.section-tinted{ background: var(--paper-deep); }

.eyebrow{
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 0.6em;
}
.eyebrow-light{ color: var(--marigold); }
.center{ text-align: center; }
.section-lead{
  max-width: 620px;
  margin: -0.4em auto 3rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn{
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}
.btn-small{ padding: 10px 22px; font-size: 0.9rem; }
.btn-accent{
  background: var(--marigold);
  color: var(--indigo-dark);
  box-shadow: 0 8px 20px -6px rgba(232,150,30,0.6);
}
.btn-accent:hover{ transform: translateY(-2px); background: var(--marigold-dark); }
.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ===========================================================
   Header
=========================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(61, 34, 120, 0.1);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1px;
  padding-bottom: 1px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark{ height: 68px; width: auto; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--indigo);
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-name em{ font-style: normal; color: var(--terracotta); font-size: 0.85em; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a{ text-decoration: none; color: var(--ink); }
.main-nav a:hover{ color: var(--terracotta); }
.nav-cta{
  background: var(--indigo);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav-cta:hover{ background: var(--indigo-dark); color: var(--white) !important; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--indigo);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   Hero
=========================================================== */
.hero{
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-media{ position: absolute; inset: 0; }
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.hero-scrim{
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(40,21,82,0.94) 20%, rgba(61,34,120,0.75) 55%, rgba(61,34,120,0.45) 100%);
}
.hero-inner{
  position: relative;
  padding: 80px 24px 130px;
  max-width: 760px;
}
.hero-brand-title{
  font-family: Arial, sans-serif;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.5em;
}
.hero .eyebrow{ color: var(--marigold); margin-bottom: 1em; }
.hero h1{
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.accent-text{ color: var(--marigold); }
.hero-sub{
  font-size: 1.1rem;
  max-width: 560px;
  color: rgba(255,255,255,0.92);
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.5rem; }

/* Signature stitch divider — echoes the running-stitch of a sewing machine */
.stitch-divider{
  position: relative;
  height: 22px;
  background: var(--paper);
}
.stitch-divider::before{
  content: "";
  position: absolute;
  top: -22px; left: 0; right: 0; height: 22px;
  background: var(--indigo-dark);
  -webkit-mask: linear-gradient(#000 0 0);
}
.stitch-divider::after{
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 3px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--marigold) 0 18px,
    transparent 18px 30px
  );
  opacity: 0.9;
}

.stitch-rule{
  height: 3px;
  margin: 3rem auto;
  max-width: 220px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--terracotta) 0 14px,
    transparent 14px 24px
  );
}

/* ===========================================================
   About
=========================================================== */
.about-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-copy p{ color: var(--ink-soft); }
.about-copy strong{ color: var(--indigo); }

.about-facts{
  display: grid;
  gap: 16px;
  position: sticky;
  top: 100px;
}
.fact-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--marigold);
}
.fact-num{
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--terracotta);
}
.fact-label{ color: var(--ink-soft); font-size: 0.92rem; }

/* ===========================================================
   Vision / Mission / Values
=========================================================== */
.vmv-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 2.5rem;
}
.vmv-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.vmv-icon{
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--paper-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--terracotta);
}
.vmv-card p{ color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0; }

/* ===========================================================
   Loan Products
=========================================================== */
.product-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 1rem;
}
.product-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.product-card::before{
  content: "";
  position: absolute;
  top: 14px; left: 14px; right: 14px; bottom: 14px;
  border: 2px dashed rgba(232,150,30,0.35);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.product-card h3{ margin-bottom: 0.4em; }
.product-desc{ color: var(--ink-soft); font-size: 0.95rem; }
.product-specs{
  list-style: none;
  margin: 1.2em 0 0;
  padding: 1em 0 0;
  border-top: 1px solid var(--paper-deep);
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}
.product-specs li{ display: flex; flex-direction: column; }
.product-specs span{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leaf);
}
.product-card-cta{
  background: var(--indigo);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-card-cta::before{ border-color: rgba(255,255,255,0.25); }
.product-card-cta h3{ color: var(--white); }
.product-card-cta .product-desc{ color: rgba(255,255,255,0.85); }

/* ===========================================================
   DIP Microcredit Programme band
=========================================================== */
.program{
  background: var(--indigo-dark);
  color: var(--white);
  padding: 90px 0;
  position: relative;
}
.program-grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.program-media img{
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,0.45);
}
.program-copy p{ color: rgba(255,255,255,0.88); }
.program-copy h2{ color: var(--white); }
.program-copy strong{ color: var(--marigold); }

/* ===========================================================
   Activities
=========================================================== */
.activity-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 1rem;
}
.activity-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}
.activity-icon{
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.activity-card p{ color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

.awareness-band{
  margin-top: 60px;
  background: var(--leaf);
  border-radius: 24px;
  padding: 44px 40px;
  color: var(--white);
}
.awareness-title{
  color: var(--white);
  text-align: center;
  margin-bottom: 1.6rem;
}
.awareness-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.awareness-item{ text-align: center; }
.awareness-icon{ font-size: 1.7rem; display: block; margin-bottom: 8px; }
.awareness-item h4{
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.4em;
  color: var(--white);
}
.awareness-item p{
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
}

/* ===========================================================
   Success stories
=========================================================== */
.story-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 1rem;
}
.story-card{
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.story-photo{ aspect-ratio: 4/5; overflow: hidden; }
.story-photo img{ width: 100%; height: 100%; object-fit: cover; }
.story-body{ padding: 22px 24px 26px; }
.story-meta{
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--terracotta);
  margin-bottom: 0.8em;
}
.story-body p:last-child{ color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

.gallery-strip{
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gallery-strip img{
  border-radius: var(--radius);
  height: 260px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* ===========================================================
   Contact
=========================================================== */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.contact-copy p{ color: var(--ink-soft); }
.contact-list{ margin: 2rem 0; display: grid; gap: 20px; }
.contact-item{ display: flex; gap: 16px; align-items: flex-start; }
.contact-icon{
  font-size: 1.3rem;
  background: var(--paper-deep);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-label{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--leaf);
}
.contact-item p{ margin: 0.2em 0 0; color: var(--ink-soft); }
.contact-item a{ text-decoration: none; color: var(--indigo); font-weight: 600; }

.contact-map{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 320px;
}
.contact-map iframe{ width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ===========================================================
   Footer
=========================================================== */
.site-footer{
  background: var(--indigo-dark);
  color: rgba(255,255,255,0.85);
  padding: 46px 0;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand{ display: flex; align-items: center; gap: 14px; }
.footer-mark{
  height: 40px; width: 40px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 6px;
}
.footer-brand strong{ font-family: var(--font-display); color: var(--white); font-size: 1.05rem; }
.footer-brand p{ margin: 2px 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-nav{ display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.92rem; }
.footer-nav a{ text-decoration: none; color: rgba(255,255,255,0.8); }
.footer-nav a:hover{ color: var(--marigold); }
.footer-copy{ font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 0; width: 100%; text-align: center; }

@media (min-width: 700px){
  .footer-copy{ width: auto; text-align: right; }
}

/* ===========================================================
   Responsive
=========================================================== */
@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-facts{ position: static; grid-template-columns: repeat(2,1fr); }
  .vmv-grid, .product-grid, .activity-grid, .story-grid{ grid-template-columns: repeat(2,1fr); }
  .program-grid{ grid-template-columns: 1fr; }
  .program-media{ max-width: 360px; }
  .awareness-grid{ grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .main-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 16px;
    border-bottom: 1px solid rgba(61,34,120,0.1);
    display: none;
  }
  .main-nav.is-open{ display: flex; }
  .nav-toggle{ display: flex; }
  .nav-cta{ margin-top: 6px; }

  .hero-inner{ padding: 110px 24px 90px; }
  .section{ padding: 64px 0; }

  .about-facts{ grid-template-columns: 1fr 1fr; }
  .vmv-grid, .product-grid, .activity-grid, .story-grid{ grid-template-columns: 1fr; }
  .awareness-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-strip{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; text-align: center; }
  .footer-nav{ justify-content: center; }
}
