/* JanaChetana Microfinance — Pixel-perfect homepage styles */
:root {
  --green: #2E9B25;
  --green-dark: #248a1d;
  --blue: #0057A8;
  --blue-dark: #004688;
  --navy: #062B63;
  --orange: #FF9800;
  --white: #ffffff;
  --bg-hero: #eef6ee;
  --bg-services: #f5f7fa;
  --text: #062B63;
  --text-muted: #4a5f7a;
  --shadow: 0 4px 20px rgba(6, 43, 99, 0.1);
  --shadow-card: 0 6px 24px rgba(6, 43, 99, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --font: 'Inter', system-ui, sans-serif;
  --font-brand: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 50px; font-weight: 600; font-size: 0.88rem;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 13px 26px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #041e47; }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }

/* Call Now card button (hero) */
.btn-call-card {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 12px 22px; border-radius: 12px; border: 2px solid #c5d9e8;
  background: var(--white); color: var(--navy); min-width: 160px; transition: var(--transition);
}
.btn-call-card i { color: var(--green); font-size: 1.1rem; }
.btn-call-label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.btn-call-num { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.btn-call-card:hover { border-color: var(--green); box-shadow: var(--shadow); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.topbar { padding: 12px 0; border-bottom: 1px solid #eef2f6; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo { width: 80px; height: 80px; object-fit: contain; }
.brand-name {
  display: block; font-family: var(--font-brand); font-size: 1.55rem; font-weight: 800;
  color: var(--blue); line-height: 1.15; letter-spacing: -0.02em;
}
.brand-sub {
  display: block; font-size: 0.58rem; font-weight: 700; color: var(--blue);
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1px;
}
.brand-tagline {
  display: block; font-size: 0.62rem; color: var(--text-muted); margin-top: 4px;
  font-weight: 500; max-width: 280px; line-height: 1.35;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-phone { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--navy); font-size: 0.88rem; }
.topbar-phone i { color: var(--blue); }

/* Login dropdown */
.login-dropdown { position: relative; }
.login-toggle .chevron { font-size: 0.6rem; margin-left: 3px; }
.login-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card);
  border: 1px solid #e4ebf3; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); z-index: 100; padding: 6px 0;
}
.login-dropdown.open .login-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.login-menu-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px;
  font-size: 0.86rem; font-weight: 500; color: var(--navy); transition: var(--transition);
}
.login-menu-item:hover { background: #f0f7ff; color: var(--blue); }
.login-menu-item i { color: var(--blue); width: 18px; text-align: center; font-size: 0.9rem; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav */
.main-nav { background: var(--blue); }
.nav-list { display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav-link {
  display: block; padding: 14px 20px; color: rgba(255,255,255,0.92);
  font-weight: 500; font-size: 0.88rem; position: relative; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 3px; background: var(--green); border-radius: 3px 3px 0 0;
}

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 50px 0 30px;
  background: var(--bg-hero);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(46,155,37,0.07) 0%, transparent 70%),
    linear-gradient(180deg, #f0f8f0 0%, #eef5ee 100%);
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'%3E%3Cpath fill='%23c8e6c9' d='M0 300 Q300 200 600 280 T1200 250 L1200 400 L0 400Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 30px;
}
.hero-title { font-size: clamp(1.7rem, 3.5vw, 2.45rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.ht-blue { color: var(--navy); }
.ht-green { color: var(--green); }
.hero-subtitle {
  font-size: 0.92rem; color: var(--navy); margin-bottom: 26px;
  line-height: 1.65; font-weight: 500;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-visual { display: flex; justify-content: center; align-items: center; overflow: visible; background: transparent; }
.hero-image {
  width: 100%; max-width: 507px; height: auto; object-fit: contain;
  background: transparent; border: none; box-shadow: none;
  filter: drop-shadow(0 14px 28px rgba(6, 43, 99, 0.18));
}

/* Highlights */
.highlights { margin-top: -24px; position: relative; z-index: 2; padding-bottom: 16px; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.highlight-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 26px 20px;
  box-shadow: var(--shadow-card); text-align: center; transition: var(--transition);
  border: 1px solid #f0f4f8;
}
.highlight-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(6,43,99,0.14); }
.highlight-icon {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 14px; font-size: 1.25rem;
}
.icon-green { background: rgba(46,155,37,0.12); color: var(--green); }
.icon-blue { background: rgba(0,87,168,0.12); color: var(--blue); }
.highlight-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.highlight-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* Sections */
.section-pad { padding: 64px 0; }
.section-title { font-size: clamp(1.35rem, 2.8vw, 1.75rem); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.section-title.centered { text-align: center; }
.section-header { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 36px; }
.section-line { flex: 1; max-width: 100px; height: 2px; background: linear-gradient(90deg, transparent, var(--green), transparent); }

/* About */
.about { background: var(--white); }
.about-inner { display: grid; grid-template-columns: 0.95fr 1.15fr 0.75fr; gap: 28px; align-items: center; }
.about-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; object-fit: cover; min-height: 260px; }
.about-content p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.9rem; line-height: 1.65; }
.about-title { margin-bottom: 18px; }
.about-side-card {
  background: linear-gradient(160deg, #eef8ee, #e2f2e2); border-radius: var(--radius-lg);
  padding: 26px 20px; border: 1px solid rgba(46,155,37,0.18); text-align: center;
}
.side-card-icon {
  width: 50px; height: 50px; background: var(--green); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin: 0 auto 14px;
}
.about-side-card h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.about-side-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* Services */
.services { background: var(--bg-services); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px 22px;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid #eef2f6;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.service-icon {
  width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.15rem; margin-bottom: 14px;
}
.service-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* Process + Login */
.process-login { background: var(--white); }
.process-login-inner { display: grid; grid-template-columns: 1.5fr 0.85fr; gap: 36px; align-items: start; }
.timeline { display: flex; gap: 0; margin-top: 28px; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 78px; left: 8%; right: 8%;
  height: 2px; border-top: 2px dashed #b8cfe0; z-index: 0;
}
.timeline-step { flex: 1; text-align: center; position: relative; z-index: 1; padding: 0 6px; display: flex; flex-direction: column; align-items: center; }
.timeline-icon {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin-bottom: 8px; font-size: 1rem;
}
.timeline-marker { display: flex; justify-content: center; margin-bottom: 10px; }
.timeline-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--white);
  font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(0,87,168,0.25);
}
.timeline-icon.icon-green { background: rgba(46,155,37,0.12); color: var(--green); }
.timeline-icon.icon-blue { background: rgba(0,87,168,0.12); color: var(--blue); }
.timeline-body h4 { font-size: 0.72rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.timeline-body p { font-size: 0.65rem; color: var(--text-muted); line-height: 1.4; }

.login-access-col {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid #dce6f0; box-shadow: var(--shadow-card);
}
.login-access-header {
  background: var(--blue); color: var(--white); font-weight: 700; font-size: 1rem;
  padding: 16px 22px; text-align: center;
}
.login-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px 18px 12px; }
.login-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px;
  background: #f8fafc; border-radius: var(--radius); border: 1px solid #e4ebf3;
  font-size: 0.78rem; font-weight: 600; color: var(--navy); transition: var(--transition);
}
.login-card i { font-size: 1.3rem; color: var(--blue); }
.login-card:hover { border-color: var(--blue); background: #f0f7ff; }
.login-access-col .btn { margin: 0 18px 20px; border-radius: 50px; }

/* CTA */
.cta-banner {
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 45%, var(--green) 100%);
  padding: 44px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-text h2 { font-size: clamp(1.1rem, 2.2vw, 1.55rem); font-weight: 800; color: var(--white); margin-bottom: 6px; }
.cta-text p { color: rgba(255,255,255,0.92); font-size: 0.9rem; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cta-phone {
  background: rgba(6,43,99,0.85); color: var(--white); border: 2px solid rgba(255,255,255,0.3);
}
.btn-cta-phone:hover { background: var(--navy); }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #041e47 100%);
  color: rgba(255,255,255,0.82); padding: 52px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr 1fr; gap: 28px; padding-bottom: 36px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer-logo-img { margin-bottom: 12px; object-fit: contain; }
.footer-company-name { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 10px; line-height: 1.4; }
.footer-tagline-line { font-size: 0.78rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.social-links { display: flex; gap: 8px; margin-top: 16px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem;
  color: var(--white); transition: var(--transition);
}
.social-links a:hover { background: var(--green); }
.footer-links li { margin-bottom: 7px; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-links a:hover { color: var(--green); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.82rem; align-items: flex-start; }
.footer-contact i { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: var(--green); }
.footer-map-card { display: flex; align-items: center; gap: 12px; }
.footer-map-circle {
  width: 90px; height: 90px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.2);
}
.footer-map-text { font-size: 0.78rem; line-height: 1.5; }
.footer-map-text strong { display: block; color: var(--white); font-weight: 600; }
.footer-map-text span { color: rgba(255,255,255,0.7); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.75rem; color: rgba(255,255,255,0.55);
}
.footer-bottom-right {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  justify-content: flex-end; margin-left: auto;
}
.footer-legal { display: flex; gap: 10px; align-items: center; }
.footer-legal a { color: rgba(255,255,255,0.6); }
.footer-legal a:hover { color: var(--green); }
.footer-credit {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin: 0;
}
.footer-credit-link {
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  font-weight: 600;
}
.footer-credit-link:hover {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr 1fr; }
  .about-side-card { grid-column: 1 / -1; max-width: 360px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-login-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .brand-tagline { display: none; }
  .topbar-phone span { display: none; }
  .hamburger { display: flex; }
  .main-nav { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
  .main-nav.open { max-height: 400px; }
  .nav-list { flex-direction: column; padding: 8px 0; }
  .nav-link { padding: 12px 20px; width: 100%; text-align: center; }
  .nav-link.active::after { left: 30%; right: 30%; bottom: 4px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-image { max-width: 340px; margin: 0 auto; }
  .highlight-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .timeline { flex-direction: column; gap: 0; }
  .timeline::before {
    top: 0; bottom: 0; left: 19px; right: auto; width: 2px; height: auto;
    border-top: none; border-left: 2px dashed #b8cfe0;
  }
  .timeline-step { display: flex; text-align: left; gap: 14px; padding-bottom: 22px; }
  .timeline-marker { margin: 0; flex-shrink: 0; }
  .timeline-icon { margin: 0 0 6px; }
  .timeline-body h4 { font-size: 0.88rem; }
  .timeline-body p { font-size: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-buttons { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-right { margin-left: 0; justify-content: center; }
}

@media (max-width: 480px) {
  .brand-sub { font-size: 0.5rem; }
  .hero-buttons .btn, .btn-call-card { width: 100%; }
  .login-cards { grid-template-columns: 1fr; }
}
