/* ==========================================================================
   Sundar Jeevan Foundation — site stylesheet
   Palette derived from the brand mark, muted for a clinical/trust register.
   ========================================================================== */

:root{
  --navy:        #14213d;
  --navy-2:      #1c2c52;
  --navy-3:      #24345c;
  --blue:        #1f6fa8;
  --blue-soft:   #eaf3fa;
  --red:         #c3352b;
  --red-dark:    #a32a22;
  --green:       #2f8a4b;
  --amber:       #b8720f;

  --bg-soft:     #f5f7fb;
  --bg-card:     #ffffff;
  --text:        #232b3d;
  --text-muted:  #626d84;
  --border:      #e3e7ef;

  --radius:      10px;
  --shadow-sm:   0 2px 10px rgba(20,33,61,0.06);
  --shadow-md:   0 10px 30px rgba(20,33,61,0.10);
  --font-head:   'Poppins', 'Segoe UI', sans-serif;
  --font-body:   'Inter', 'Segoe UI', sans-serif;
}

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  font-family:var(--font-body);
  color:var(--text);
  background:#ffffff;
  font-size:1rem;
  line-height:1.7;
}
.nav-call-btn {
    animation: blink 5s infinite;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.4;
    }
}
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-head);
  color:var(--navy);
  font-weight:600;
  letter-spacing:-0.01em;
}

a{ color:var(--blue); text-decoration:none; }
a:hover{ color:var(--navy); }

.text-muted-2{ color:var(--text-muted) !important; }
.bg-soft{ background:var(--bg-soft); }
.bg-navy{ background:var(--navy) !important; }
.text-navy{ color:var(--navy) !important; }
.section{ padding-block:5rem; }
@media (max-width:767.98px){ .section{ padding-block:3.25rem; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  font-family:var(--font-head); font-weight:600; font-size:.78rem;
  letter-spacing:.09em; text-transform:uppercase; color:var(--red);
  margin-bottom:.65rem;
}
.eyebrow::before{ content:""; width:22px; height:2px; background:var(--red); display:inline-block; }

.section-title{ max-width:44rem; }
.section-title p{ color:var(--text-muted); margin-top:.85rem; font-size:1.05rem; }

/* ---------------- Buttons ---------------- */
.btn{ font-family:var(--font-head); font-weight:600; border-radius:8px; padding:.7rem 1.5rem; }
.btn-lg{ padding:.9rem 1.9rem; }
.btn-red{ background:var(--red); border-color:var(--red); color:#fff; }
.btn-red:hover{ background:var(--red-dark); border-color:var(--red-dark); color:#fff; }
.btn-outline-navy{ border:2px solid var(--navy); color:var(--navy); background:transparent; }
.btn-outline-navy:hover{ background:var(--navy); color:#fff; }
.btn-outline-light-2{ border:2px solid rgba(255,255,255,.55); color:#fff; background:transparent; }
.btn-outline-light-2:hover{ background:#fff; color:var(--navy); border-color:#fff; }
.btn:focus-visible{ outline:3px solid var(--blue); outline-offset:2px; }

/* ---------------- Navbar ---------------- */
.navbar-sjf{
  padding-block:.9rem; background:rgba(255,255,255,.97);
  border-bottom:1px solid transparent; transition:box-shadow .2s ease, padding .2s ease;
}
.navbar-sjf.is-scrolled{ box-shadow:var(--shadow-sm); border-bottom-color:var(--border); padding-block:.55rem; }
.navbar-sjf .navbar-brand{ display:flex; align-items:center; gap:.65rem; }
.navbar-sjf .navbar-brand img{ height:44px; width:44px; object-fit:contain; }
.brand-text-name{ font-family:var(--font-head); font-weight:700; font-size:1.08rem; color:var(--navy); line-height:1.15; display:block; }
.brand-text-sub{ font-family:var(--font-body); font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color:var(--red); font-weight:600; }
.navbar-sjf .nav-link{ font-family:var(--font-head); font-weight:500; color:var(--text); padding:.5rem 1rem !important; }
.navbar-sjf .nav-link.active,
.navbar-sjf .nav-link:hover{ color:var(--red); }
.nav-call-btn{ display:flex; align-items:center; gap:.5rem; }

/* ---------------- Hero ---------------- */
.hero{
  position:relative; color:#fff; padding-block:7.5rem 5.5rem;
  background-size:cover; background-position:center;
  display:flex; align-items:center; min-height:78vh;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(18,26,49,.93) 0%, rgba(18,26,49,.82) 42%, rgba(18,26,49,.45) 100%);
}
.hero > .container{ position:relative; z-index:2; }
.hero h1{ color:#fff; font-size:clamp(2rem,4.2vw,3.1rem); font-weight:700; text-wrap:balance; }
.hero .lead{ color:#dfe4f0; font-size:1.12rem; max-width:42rem; }
.hero-badges{ display:flex; flex-wrap:wrap; gap:.6rem 1rem; margin-top:2.25rem; padding-top:1.6rem; border-top:1px solid rgba(255,255,255,.18); }
.hero-badge{ display:flex; align-items:center; gap:.5rem; font-size:.9rem; font-weight:500; color:#e7eaf4; }
.hero-badge i{ color:#7fd39a; font-size:1.05rem; }

/* Page header (inner pages) */
.page-header{
  background:linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  color:#fff; padding-block:4.5rem 3.5rem; position:relative; overflow:hidden;
}
.page-header h1{ color:#fff; font-size:clamp(1.8rem,3.4vw,2.6rem); }
.page-header .breadcrumb{ margin-bottom:.9rem; }
.page-header .breadcrumb a{ color:#c7cee6; }
.page-header .breadcrumb-item.active{ color:#fff; }
.page-header .breadcrumb-item + .breadcrumb-item::before{ color:#8892b3; }
.page-header p{ color:#c7cee6; max-width:40rem; margin-top:.75rem; }

/* ---------------- Cards ---------------- */
.card-sjf{
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow-sm); transition:transform .18s ease, box-shadow .18s ease; height:100%;
}
.card-sjf:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.card-sjf .card-body{ padding:2rem 1.7rem; }

.icon-tile{
  width:56px; height:56px; border-radius:12px; display:flex; align-items:center;
  justify-content:center; font-size:1.5rem; margin-bottom:1.1rem; flex:none;
}
.icon-tile.tile-red{ background:#fbebe9; color:var(--red); }
.icon-tile.tile-blue{ background:var(--blue-soft); color:var(--blue); }
.icon-tile.tile-navy{ background:#eaedf5; color:var(--navy); }
.icon-tile.tile-green{ background:#e9f6ee; color:var(--green); }

.card-sjf.top-red{ border-top:3px solid var(--red); }
.card-sjf.top-blue{ border-top:3px solid var(--blue); }
.card-sjf.top-navy{ border-top:3px solid var(--navy); }
.card-sjf.top-green{ border-top:3px solid var(--green); }

/* ---------------- Journey / process steps ---------------- */
.journey-step{ position:relative; text-align:center; }
.journey-step .step-img{
  width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius);
  box-shadow:var(--shadow-sm); margin-bottom:1.1rem;
}
.step-index{
  width:34px; height:34px; border-radius:50%; background:var(--navy); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:var(--font-head);
  font-weight:700; font-size:.92rem; margin:0 auto .8rem;
}
.journey-line{
  display:none;
}
@media (min-width:992px){
  .journey-line{
    display:block; position:absolute; top:17px; left:calc(50% + 40px); right:calc(-50% + 40px);
    height:2px; background:repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
  }
  .journey-col:last-child .journey-line{ display:none; }
}
.journey-step h3{ font-size:1.05rem; }
.journey-step p{ color:var(--text-muted); font-size:.92rem; }

/* ---------------- Why / points ---------------- */
.point-row{ display:flex; gap:1rem; align-items:flex-start; padding-block:1rem; border-bottom:1px solid var(--border); }
.point-row:last-child{ border-bottom:none; }
.point-check{
  flex:none; width:30px; height:30px; border-radius:50%; background:var(--green);
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:.85rem;
}
.point-row h4{ font-size:1.02rem; margin-bottom:.15rem; }
.point-row p{ color:var(--text-muted); font-size:.92rem; margin:0; }

/* ---------------- CTA banner ---------------- */
.cta-banner{ background:var(--navy); color:#fff; }
.cta-banner h2{ color:#fff; }
.cta-banner p{ color:#c7cee6; }

/* ---------------- Blog ---------------- */
.blog-card img{ width:100%; aspect-ratio:16/10; object-fit:cover; }
.blog-card .card-body{ padding:1.5rem 1.5rem 1.7rem; }
.blog-card h3{ font-size:1.05rem; line-height:1.45; }
.blog-read{ font-family:var(--font-head); font-weight:600; font-size:.85rem; color:var(--red); display:inline-flex; align-items:center; gap:.35rem; }

/* ---------------- Keyword / SEO tags ---------------- */
.kw-wrap{ display:flex; flex-wrap:wrap; gap:.55rem; }
.kw-tag{
  font-size:.85rem; font-weight:500; padding:.5rem 1rem; border-radius:999px;
  background:var(--bg-soft); border:1px solid var(--border); color:var(--text);
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.kw-tag:hover{ background:var(--navy); border-color:var(--navy); color:#fff; }

/* ---------------- Contact ---------------- */
.contact-info-row{ display:flex; gap:1rem; padding-block:1.1rem; border-bottom:1px solid var(--border); }
.contact-info-row:last-child{ border-bottom:none; }
.contact-info-row .icon-tile{ margin-bottom:0; }
.contact-info-row h4{ font-size:.98rem; margin-bottom:.2rem; }
.contact-info-row p, .contact-info-row a{ color:var(--text-muted); font-size:.94rem; }
.map-frame{ border:0; width:100%; height:100%; min-height:320px; border-radius:var(--radius); }

.form-control, .form-select{ border-radius:8px; border-color:var(--border); padding:.7rem .9rem; }
.form-control:focus, .form-select:focus{ border-color:var(--blue); box-shadow:0 0 0 .2rem rgba(31,111,168,.15); }
.form-label{ font-weight:600; font-size:.9rem; color:var(--navy); }

/* ---------------- Accordion (FAQ) ---------------- */
.accordion-item{ border:1px solid var(--border); border-radius:var(--radius) !important; overflow:hidden; margin-bottom:.75rem; }
.accordion-button{ font-family:var(--font-head); font-weight:600; color:var(--navy); }
.accordion-button:not(.collapsed){ background:var(--blue-soft); color:var(--navy); box-shadow:none; }
.accordion-button:focus{ box-shadow:0 0 0 .2rem rgba(31,111,168,.15); }

/* ---------------- Footer ---------------- */
footer.site-footer{ background:#0f1830; color:#aab2cf; padding-top:4rem; }
footer.site-footer h5{ color:#fff; font-family:var(--font-head); font-size:1rem; margin-bottom:1.1rem; }
footer.site-footer .footer-brand{ display:flex; align-items:center; gap:.7rem; margin-bottom:1rem; }
footer.site-footer .footer-brand img{ height:38px; }
footer.site-footer .footer-brand span{ font-family:var(--font-head); font-weight:700; color:#fff; font-size:1.05rem; }
footer.site-footer ul{ list-style:none; padding:0; margin:0; }
footer.site-footer ul li{ margin-bottom:.65rem; }
footer.site-footer a{ color:#aab2cf; }
footer.site-footer a:hover{ color:#fff; }
footer.site-footer p{ font-size:.92rem; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); margin-top:2.5rem; padding-block:1.25rem; font-size:.85rem; color:#7d86a6; }

/* ---------------- Back to top ---------------- */
#backToTop{
  position:fixed; right:1.25rem; bottom:1.25rem; z-index:1040; width:46px; height:46px;
  border-radius:50%; background:var(--navy); color:#fff; border:none; display:flex;
  align-items:center; justify-content:center; opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease; box-shadow:var(--shadow-md);
}
#backToTop.show{ opacity:1; visibility:visible; transform:translateY(0); }
#backToTop:hover{ background:var(--red); }

/* ---------------- Mobile sticky call bar ---------------- */
.mobile-call-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:1030; display:flex; gap:.6rem;
  padding:.7rem .9rem; background:#fff; border-top:1px solid var(--border); box-shadow:0 -8px 20px rgba(20,33,61,.08);
}
.mobile-call-bar .btn{ flex:1; justify-content:center; display:flex; align-items:center; gap:.4rem; }
@media (min-width:992px){ .mobile-call-bar{ display:none; } }
@media (max-width:991.98px){ body{ padding-bottom:70px; } }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--navy); color:#fff; padding:.6rem 1rem; z-index:2000;
}
.skip-link:focus{ left:1rem; top:1rem; }
