/* ===== Mother Home Care - Global Styles ===== */

:root {
  --primary: #0E56A4;
  --primary-dark: #0a3d75;
  --primary-light: #e8f1fb;
  --accent: #28a745;
  --accent-dark: #1e7e34;
  --text-dark: #333;
  --text-muted: #666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #dee2e6;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

img { max-width: 100%; height: auto; }

/* ===== Navbar ===== */
.navbar {
  background: var(--bg-white);
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img { padding: 12px 0; max-height: 60px; }

.navbar .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 16px !important;
  transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important;
}

.navbar-toggler {
  border: none;
  font-size: 24px;
  color: var(--primary);
}

.navbar-toggler:focus { box-shadow: none; }

/* Top Bar */
.top-bar {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar a { color: #fff; }
.top-bar a:hover { color: #cce0f5; }

.top-bar .bi { margin-right: 4px; }

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a6fc4 50%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-section h1 span { color: #cce0f5; }

.hero-section p {
  font-size: 1.15rem;
  color: #cce0f5;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-section .btn-primary {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 50px;
  transition: var(--transition);
}

.hero-section .btn-primary:hover {
  background: #cce0f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero-section .btn-outline-light {
  border: 2px solid #fff;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.hero-section .btn-outline-light:hover {
  background: #fff;
  color: var(--primary);
}

.hero-img {
  max-width: 480px;
  margin: 0 auto;
  display: block;
}

/* ===== Section Headings ===== */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-heading h2 span { color: var(--primary); }

.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-heading .underline {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ===== Trust Badges ===== */
.trust-badges {
  background: var(--bg-white);
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}

.trust-badge .bi {
  font-size: 28px;
  color: var(--primary);
}

.trust-badge span {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
}

/* ===== Cards ===== */
.service-card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card .card-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 16px;
}

.service-card .card-icon .bi {
  font-size: 32px;
  color: var(--primary);
}

.service-card .card-body {
  padding: 0 24px 28px;
  text-align: center;
}

.service-card .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card .card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Why Choose Us cards */
.why-card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.why-card .icon-circle {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.why-card .icon-circle .bi {
  font-size: 36px;
  color: #fff;
}

.why-card h5 { font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}

.cta-banner h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; }
.cta-banner p { color: #cce0f5; margin-bottom: 24px; font-size: 1.05rem; }

.cta-banner .btn-cta {
  background: #fff;
  color: var(--primary);
  padding: 14px 36px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
}

.cta-banner .btn-cta:hover {
  background: #cce0f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== Inline Contact Form ===== */
.inline-contact {
  background: var(--primary-light);
  padding: 50px 0;
}

.inline-contact h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.inline-contact p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.inline-contact .form-control {
  border-radius: 50px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  font-size: 15px;
}

.inline-contact .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(14,86,164,0.15);
}

.inline-contact .btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.inline-contact .btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  height: 100%;
  position: relative;
}

.testimonial-card .quote-icon {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 40px;
  color: var(--primary-light);
}

.testimonial-card .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.testimonial-card h5 { font-weight: 700; margin-bottom: 4px; }
.testimonial-card .stars { color: #f5a623; margin-bottom: 10px; }
.testimonial-card p { color: var(--text-muted); font-size: 0.95rem; font-style: italic; }

/* ===== FAQ Accordion ===== */
.faq-section { padding: 80px 0; }

.faq-section .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-section .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 16px 20px;
}

.faq-section .accordion-button:not(.collapsed) {
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: none;
}

.faq-section .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(14,86,164,0.15);
}

.faq-section .accordion-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0 20px 16px;
}

/* ===== Footer ===== */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 60px 0 0;
}

.footer h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.15rem;
}

.footer h5 {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer a { color: #aaa; transition: var(--transition); }
.footer a:hover { color: #fff; }

.footer .footer-links { list-style: none; padding: 0; }
.footer .footer-links li { margin-bottom: 8px; }
.footer .footer-links li a { color: #aaa; font-size: 0.95rem; }
.footer .footer-links li a:hover { color: #fff; padding-left: 4px; }

.footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer .contact-item .bi {
  font-size: 20px;
  color: var(--primary);
  margin-top: 3px;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 8px;
  transition: var(--transition);
}

.footer .social-links a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header p { color: #cce0f5; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.breadcrumb { justify-content: center; }
.breadcrumb-item a { color: #cce0f5; }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: #8ab4d8; }

/* ===== Services Page ===== */
.service-detail-card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--transition);
}

.service-detail-card:hover { box-shadow: var(--shadow-hover); }

.service-detail-card .card-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
}

.service-detail-card .card-body {
  padding: 24px;
}

.service-detail-card .card-body ul {
  list-style: none;
  padding: 0;
}

.service-detail-card .card-body ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-detail-card .card-body ul li:last-child { border-bottom: none; }

.service-detail-card .card-body ul li .bi {
  color: var(--accent);
  font-size: 18px;
}

/* ===== Membership Pricing ===== */
.pricing-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured:hover { transform: scale(1.05) translateY(-6px); }

.pricing-card .badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.pricing-card .price-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.pricing-card .features {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  text-align: left;
}

.pricing-card .features li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.pricing-card .features li:last-child { border-bottom: none; }

.pricing-card .features li .bi { color: var(--accent); font-size: 16px; }

.pricing-card .btn-plan {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  width: 100%;
}

.pricing-card .btn-plan:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.pricing-card.featured .btn-plan {
  background: var(--primary);
}

/* ===== Gallery ===== */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin-bottom: 20px;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 20px 16px 14px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h6 { font-weight: 600; margin-bottom: 2px; }
.gallery-overlay small { color: #ccc; }

/* ===== Booking Form ===== */
.booking-form {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.booking-form .step-indicator {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}

.booking-form .step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #ccc;
  font-weight: 600;
}

.booking-form .step.active { color: var(--primary); }
.booking-form .step .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.booking-form .step.active .step-num { background: var(--primary); color: #fff; }
.booking-form .step.completed .step-num { background: var(--accent); color: #fff; }

.booking-form .step-line {
  width: 40px;
  height: 2px;
  background: #eee;
  margin: 0 8px;
}

.booking-form .form-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.booking-form .form-control,
.booking-form .form-select {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.booking-form .form-control:focus,
.booking-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(14,86,164,0.15);
}

/* ===== Payment Section ===== */
.payment-option {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  cursor: pointer;
}

.payment-option:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.payment-option .icon-circle {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.payment-option .icon-circle .bi {
  font-size: 30px;
  color: var(--primary);
}

.payment-option h5 { font-weight: 700; margin-bottom: 8px; }
.payment-option p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Campaign Cards ===== */
.campaign-card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.campaign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.campaign-card .campaign-icon {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.campaign-card .campaign-icon.blue { background: var(--primary-light); color: var(--primary); }
.campaign-card .campaign-icon.green { background: #e6f7ed; color: var(--accent); }
.campaign-card .campaign-icon.orange { background: #fff3e0; color: #e67e22; }
.campaign-card .campaign-icon.red { background: #fde8e8; color: #e74c3c; }

.campaign-card .card-body { padding: 24px; }
.campaign-card .card-title { font-weight: 700; margin-bottom: 10px; }
.campaign-card .card-text { color: var(--text-muted); font-size: 0.95rem; }

.campaign-card .badge-status {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-active { background: #e6f7ed; color: var(--accent); }
.badge-upcoming { background: #fff3e0; color: #e67e22; }

/* ===== Contact Page ===== */
.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.contact-card .icon-circle {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-card .icon-circle .bi { font-size: 30px; color: var(--primary); }
.contact-card h5 { font-weight: 700; margin-bottom: 8px; }
.contact-card p { color: var(--text-muted); font-size: 0.95rem; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 12px rgba(14,86,164,0.3);
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== WhatsApp FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-fab:hover { transform: scale(1.1); color: #fff; }

/* ===== Animation Utilities ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero-section h1 { font-size: 2.2rem; }
  .hero-img { margin-top: 30px; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-6px); }
}

@media (max-width: 767px) {
  .hero-section { padding: 50px 0 40px; text-align: center; }
  .hero-section h1 { font-size: 1.8rem; }
  .hero-section p { margin: 0 auto 24px; }
  .hero-section .btn-group-custom { display: flex; flex-direction: column; gap: 12px; align-items: center; }
  .section-heading h2 { font-size: 1.7rem; }
  .top-bar { font-size: 12px; }
  .navbar-brand img { max-height: 48px; }
  .booking-form { padding: 24px 16px; }
  .booking-form .step-indicator { flex-wrap: wrap; gap: 8px; }
  .booking-form .step-line { display: none; }
}
