/* CareFinderBangalore — Main CSS */
:root {
  --green: #1a6b4a;
  --green-mid: #2d8a62;
  --green-light: #4a9970;
  --green-pale: #d4ede2;
  --green-bg: #f0f7f3;
  --charcoal: #1c2b20;
  --text: #2c3e35;
  --text-mid: #4a6555;
  --text-muted: #7a9988;
  --border: #dceee6;
  --white: #ffffff;
  --warm-white: #f8faf9;
  --shadow: 0 2px 12px rgba(26, 107, 74, 0.1);
  --shadow-md: 0 4px 24px rgba(26, 107, 74, 0.14);
  --r: 12px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px;
}
@media (min-width: 992px) { body { padding-bottom: 0; } }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
}
a { color: var(--green); }

/* ── Navbar ── */
#mainNav { border-bottom: 1px solid var(--border); z-index: 1040; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--green); }
.brand-city { color: var(--green-light); }
.brand-tagline { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.navbar-nav .nav-link { font-size: 0.875rem; font-weight: 500; color: var(--text); border-radius: 8px; padding: 0.45rem 0.7rem; transition: all 0.2s; }
.navbar-nav .nav-link:hover { color: var(--green); background: var(--green-bg); }
.dropdown-menu { border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-md); }
.dropdown-item { font-size: 0.875rem; color: var(--text); }
.dropdown-item:hover { background: var(--green-bg); color: var(--green); }
.btn-success { background: var(--green); border-color: var(--green); font-weight: 600; border-radius: 8px; }
.btn-success:hover { background: var(--green-mid); border-color: var(--green-mid); }
.btn-outline-success { color: var(--green); border-color: var(--green); font-weight: 600; border-radius: 8px; }
.btn-outline-success:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ── Mobile CTA bar ── */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
  background: white; border-top: 1px solid var(--border);
  padding: 0.5rem 1rem; display: flex; gap: 0.5rem;
}
.mobile-cta .flex-1 { flex: 1; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1c2b20 0%, #1a6b4a 70%, #2d8a62 100%);
  padding: 5rem 0 7rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(74, 153, 112, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  color: white; padding: 0.3rem 0.8rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 500; margin-bottom: 1.25rem;
}
.hero h1 { color: white; font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1rem; }
.hero h1 .hl { color: #7de8b8; }
.hero p.lead { color: rgba(255, 255, 255, 0.8); font-size: 1rem; max-width: 520px; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; }
.hero-stat .n { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: #7de8b8; display: block; }
.hero-stat .l { font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Search box ── */
.search-box {
  background: white; border-radius: var(--r); box-shadow: var(--shadow-md);
  padding: 1.75rem; margin-top: -3rem; position: relative; z-index: 10;
}
.search-box .form-select, .search-box .form-control {
  border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.875rem;
}
.search-box .form-select:focus, .search-box .form-control:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(26, 107, 74, 0.1);
}

/* ── Section labels ── */
.sec-tag {
  display: inline-block; background: var(--green-bg); color: var(--green);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 50px; margin-bottom: 0.6rem;
}
.sec-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: 0.25rem; }
.sec-sub { color: var(--text-mid); font-size: 0.9rem; }

/* ── Caregiver card ── */
.card-cg {
  background: white; border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; transition: all 0.25s; height: 100%; display: flex; flex-direction: column;
}
.card-cg:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-cg-img {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-bg);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.card-cg-img img { width: 100%; height: 100%; object-fit: cover; }
.gender-badge {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: rgba(26, 107, 74, 0.9); color: white;
  font-size: 0.68rem; font-weight: 600; padding: 0.18rem 0.55rem; border-radius: 50px;
}
.card-cg-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.cg-name { font-weight: 700; font-size: 0.95rem; color: var(--charcoal); }
.cg-service { font-size: 0.78rem; color: var(--green); font-weight: 600; margin: 0.2rem 0 0.5rem; }
.cg-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: 0.75rem; color: var(--text-mid); margin-bottom: 0.6rem; }
.cg-meta i { color: var(--green-light); font-size: 0.65rem; }
.cg-salary { font-size: 0.875rem; font-weight: 700; color: var(--green); margin-bottom: 0.75rem; }
.card-cg-foot { padding: 0.75rem 1rem; background: var(--green-bg); border-top: 1px solid var(--border); }

/* ── Requirement card ── */
.req-card {
  background: white; border: 1px solid var(--border); border-left: 3px solid var(--green);
  border-radius: var(--r); padding: 1.25rem; height: 100%; transition: box-shadow 0.2s;
}
.req-card:hover { box-shadow: var(--shadow); }
.req-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--green-bg); color: var(--green);
  font-size: 0.72rem; font-weight: 600; padding: 0.18rem 0.55rem; border-radius: 50px; margin-bottom: 0.5rem;
}

/* ── Service card ── */
.service-card {
  background: white; border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 1.4rem 0.75rem; text-align: center; text-decoration: none;
  color: var(--text); display: block; height: 100%; transition: all 0.2s;
}
.service-card:hover { border-color: var(--green); color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-icon {
  width: 48px; height: 48px; background: var(--green-bg); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem; font-size: 1.2rem; color: var(--green); transition: all 0.2s;
}
.service-card:hover .svc-icon { background: var(--green); color: white; }
.svc-name { font-weight: 600; font-size: 0.875rem; }

/* ── Area chip ── */
.area-chip {
  display: block; background: white; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 0.65rem 0.75rem; text-align: center; text-decoration: none;
  color: var(--text); font-size: 0.82rem; font-weight: 500; transition: all 0.2s;
}
.area-chip:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); transform: translateY(-2px); }

/* ── Why card ── */
.why-card { background: var(--green-bg); border-radius: var(--r); padding: 1.5rem; height: 100%; }
.why-icon {
  width: 44px; height: 44px; background: var(--green); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; margin-bottom: 0.9rem;
}

/* ── Testimonial card ── */
.testi-card { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; height: 100%; position: relative; }
.testi-stars { color: #f59e0b; font-size: 0.82rem; margin-bottom: 0.6rem; }
.testi-text { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 0.9rem; }
.testi-author { font-weight: 600; font-size: 0.85rem; color: var(--charcoal); }
.testi-meta { font-size: 0.72rem; color: var(--text-muted); }
.testi-q { position: absolute; top: 1rem; right: 1.25rem; font-size: 3rem; line-height: 1; color: var(--green-pale); font-family: Georgia, serif; }

/* ── FAQ ── */
.faq-accordion .accordion-item { border: 1px solid var(--border); border-radius: var(--r) !important; margin-bottom: 0.5rem; overflow: hidden; }
.faq-accordion .accordion-button { font-weight: 600; font-size: 0.9rem; color: var(--text); background: white; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--green); background: var(--green-bg); box-shadow: none; }
.faq-accordion .accordion-body { font-size: 0.875rem; color: var(--text-mid); line-height: 1.7; }

/* ── Blog card ── */
.blog-card { background: white; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; height: 100%; transition: box-shadow 0.2s; }
.blog-card:hover { box-shadow: var(--shadow); }
.blog-body { padding: 1.25rem; }
.blog-cat { font-size: 0.68rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; }
.blog-title { font-size: 0.95rem; font-weight: 700; color: var(--charcoal); margin: 0.3rem 0; line-height: 1.35; }
.blog-title a { text-decoration: none; color: inherit; }
.blog-title a:hover { color: var(--green); }
.blog-meta { font-size: 0.72rem; color: var(--text-muted); }

/* ── CTA section ── */
.cta-section { background: linear-gradient(135deg, #1a6b4a, #2d8a62); padding: 5rem 0; text-align: center; }
.cta-section h2 { color: white; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.cta-section p { color: rgba(255, 255, 255, 0.85); }

/* ── Info card (sidebar) ── */
.info-card { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; margin-bottom: 1.25rem; }
.info-card h5, .info-card h6 { margin-bottom: 0.75rem; }

/* ── Service-Area hero ── */
.sa-hero { background: linear-gradient(135deg, #1c2b20, #1a6b4a); color: white; padding: 4rem 0; }
.sa-hero h1 { color: white; font-size: clamp(1.4rem, 3vw, 2.4rem); }
.sa-hero p { color: rgba(255, 255, 255, 0.8); }
.sa-sticky { position: sticky; top: 76px; }

/* ── Forms ── */
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.9rem; padding: 0.55rem 0.85rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(26, 107, 74, 0.1);
}

/* ── Modals ── */
.modal-content { border: none; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); }
.modal-header { background: var(--green); color: white; border-radius: 16px 16px 0 0; }
.modal-header .btn-close { filter: invert(1); }

/* ── Caregiver profile ── */
.profile-hero { background: var(--green-bg); border-radius: 16px; padding: 2rem; margin-bottom: 1.5rem; }
.profile-avatar {
  width: 110px; height: 110px; border-radius: 50%; background: var(--green); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 700; flex-shrink: 0;
}
.profile-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.profile-stat .v { font-weight: 700; color: var(--green); font-size: 1.1rem; }
.profile-stat .l { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Highlight box ── */
.highlight-box {
  background: var(--green-bg); border-left: 3px solid var(--green);
  border-radius: 0 var(--r) var(--r) 0; padding: 1rem 1.25rem; margin: 1.25rem 0;
}

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.78rem; }
.breadcrumb-item a { color: var(--green); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }

/* ── Pagination ── */
.pagination .page-link { color: var(--green); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--green); border-color: var(--green); }
.pagination .page-link:hover { background: var(--green-bg); color: var(--green); }

/* ── Footer ── */
.site-footer { background: #1c2b20; }
.footer-heading { color: rgba(255, 255, 255, 0.9); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; font-weight: 700; }
.footer-links { padding: 0; }
.footer-links li { margin-bottom: 0.3rem; }
.footer-links a { color: rgba(255, 255, 255, 0.45); text-decoration: none; transition: color 0.2s; font-size: 0.82rem; }
.footer-links a:hover { color: rgba(255, 255, 255, 0.9); }

/* ── Scroll to top ── */
#scrollTop {
  display: none; position: fixed; bottom: 80px; right: 1rem; z-index: 999;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: white; border: none;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer;
}
@media (min-width: 992px) { #scrollTop { bottom: 1.5rem; } }

/* ── Utilities ── */
.text-green { color: var(--green) !important; }
.bg-green-bg { background: var(--green-bg) !important; }
.border-green { border-color: var(--green) !important; }

/* ── Admin ── */
.stat-card { background: white; border-radius: var(--r); padding: 1.5rem; border: 1px solid var(--border); text-align: center; cursor: pointer; transition: box-shadow 0.2s; }
.stat-card:hover { box-shadow: var(--shadow); }
.stat-val { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--green); }
.stat-lbl { font-size: 0.75rem; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 5rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { gap: 1.25rem; }
  .search-box { margin-top: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--border); }
}
