/* ============================
   The Mothers Home PG Services
   ============================ */

:root {
  --warm-primary: #c2410c;
  --warm-primary-dark: #9a3412;
  --warm-secondary: #f59e0b;
  --warm-bg-light: #fdf6ee;
  --text-dark: #2b1d14;
  --text-muted: #6b5c4f;
  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(43, 29, 20, 0.08);
  --shadow-hover: 0 16px 40px rgba(43, 29, 20, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: #fffaf4;
  padding-bottom: 66px;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Playfair Display', serif;
}

.section-padding { padding: 90px 0; }

.section-tag {
  display: inline-block;
  color: var(--warm-primary);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section-title {
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 18px;
  color: var(--text-dark);
}

.section-text { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }

.bg-warm-light { background: var(--warm-bg-light); }

/* Buttons */
.btn-warm {
  background: linear-gradient(135deg, var(--warm-primary), var(--warm-secondary));
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 28px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.3);
}
.btn-warm:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(194, 65, 12, 0.4);
  color: #fff;
}
.btn-outline-warm {
  border: 2px solid var(--warm-primary);
  color: var(--warm-primary);
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 26px;
  background: transparent;
  transition: all 0.3s ease;
}
.btn-outline-warm:hover {
  background: var(--warm-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ===== NAVBAR ===== */
.main-navbar {
  background: rgba(255, 250, 244, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(43, 29, 20, 0.06);
  padding: 14px 0;
  transition: all 0.3s ease;
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-dark) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 56px);
}
.navbar-brand i { color: var(--warm-primary); margin-right: 6px; }
.navbar-brand span { color: var(--warm-primary); }

@media (max-width: 575px) {
  .navbar-brand { font-size: 1rem; max-width: calc(100% - 46px); }
}
@media (max-width: 400px) {
  .navbar-brand { font-size: 0.85rem; }
}
.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 6px;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--warm-primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== HERO ===== */
header#home { margin-top: -1px; }
.hero-slide {
  height: 92vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,29,20,0.55) 0%, rgba(43,29,20,0.75) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 720px; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.2;
}
.hero-content p { font-size: 1.15rem; margin-bottom: 30px; color: #f1e7dc; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.carousel-control-prev, .carousel-control-next { width: 6%; }

/* ===== ABOUT ===== */
.about-img-wrap { position: relative; }
.about-img { width: 100%; height: 520px; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -25px; right: -20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-badge i { font-size: 1.8rem; color: var(--warm-secondary); }
.about-badge strong { display: block; font-size: 0.95rem; }
.about-badge span { font-size: 0.8rem; color: var(--text-muted); }

.about-highlights { list-style: none; padding: 0; margin: 24px 0; }
.about-highlights li {
  padding: 10px 0;
  font-weight: 500;
  border-bottom: 1px dashed #e5d9c9;
}
.about-highlights li i { color: var(--warm-primary); margin-right: 10px; }
.about-highlights li:last-child { border-bottom: none; }

/* ===== PRICING ===== */
.pricing-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 36px 26px;
  text-align: center;
  height: 100%;
  position: relative;
  transition: all 0.35s ease;
  border: 1px solid #f0e4d4;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.pricing-card.popular { border: 2px solid var(--warm-primary); }
.popular-tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--warm-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 50px;
}
.pricing-icon {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde9d6, #fbd2a8);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.9rem;
  color: var(--warm-primary);
}
.pricing-card h5 { font-weight: 700; margin-bottom: 10px; }
.pricing-card .price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--warm-primary);
  margin-bottom: 14px;
}
.pricing-card .price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.pricing-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 22px; min-height: 66px; }

.important-note {
  background: #fff3e0;
  border: 1px solid #f5c98f;
  border-radius: var(--radius);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.important-note i { font-size: 1.8rem; color: var(--warm-primary); }
.important-note p { margin: 0; color: var(--text-dark); }

/* ===== FACILITIES ===== */
.facility-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #f0e4d4;
}
.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, #fff, #fff6ea);
}
.facility-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fde9d6, #fbd2a8);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--warm-primary);
}
.facility-card h6 { font-weight: 700; margin-bottom: 8px; }
.facility-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ===== WHY US ===== */
.why-us-img { width: 100%; height: 480px; object-fit: cover; }
.why-item {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  transition: all 0.3s ease;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.why-item i { color: var(--warm-secondary); font-size: 1.2rem; }

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  height: 220px;
  box-shadow: var(--shadow-soft);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(43,29,20,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-size: 1.8rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.lightbox-content { background: transparent; border: none; }
.lightbox-close { position: absolute; top: -40px; right: 0; z-index: 5; }
#lightboxImage { width: 100%; max-height: 82vh; object-fit: contain; }

/* ===== CONTACT ===== */
.contact-info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #f0e4d4;
}
.contact-info-card h4 { font-weight: 700; margin-bottom: 24px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed #e5d9c9;
  font-weight: 500;
  color: var(--text-dark);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list li i { color: var(--warm-primary); font-size: 1.2rem; margin-top: 2px; }
.contact-list a { color: var(--text-dark); text-decoration: none; }
.contact-list a:hover { color: var(--warm-primary); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 400px;
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--warm-primary-dark), var(--warm-primary));
  color: #fff;
  padding: 90px 0;
  text-align: center;
}
.final-cta h2 { font-weight: 700; font-size: 2.4rem; margin-bottom: 16px; }
.final-cta p { font-size: 1.1rem; margin-bottom: 32px; color: #ffe6cc; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
.footer {
  background: #1f150e;
  color: #cbb9a8;
  padding: 26px 0;
}
.footer p { margin: 0; font-size: 0.9rem; }

/* ===== ENQUIRY MODAL ===== */
.enquiry-modal-content { border-radius: var(--radius); border: none; overflow: hidden; }
.enquiry-modal-content .modal-header {
  background: linear-gradient(135deg, var(--warm-primary), var(--warm-secondary));
  color: #fff;
  border: none;
}
.enquiry-modal-content .btn-close { filter: brightness(0) invert(1); }
.call-note { color: var(--text-muted); font-size: 0.9rem; }
.call-note a { color: var(--warm-primary); font-weight: 600; text-decoration: none; }

/* ===== FLOATING SIDE BUTTONS ===== */
.floating-side-buttons {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
}
.floating-side-btn.enquire {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 20px 12px;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 4px 20px rgba(0,0,0,0.2);
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--warm-primary), var(--warm-secondary));
  transition: all 0.3s ease;
}
.floating-side-btn.enquire i { transform: rotate(90deg); }
.floating-side-btn.enquire:hover {
  color: #fff;
  padding-right: 20px;
  box-shadow: -6px 6px 26px rgba(0,0,0,0.28);
}

.floating-call-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--warm-primary), var(--warm-primary-dark));
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 999;
  animation: pulse-call 2.2s infinite;
}
.floating-call-btn:hover { color: #fff; transform: scale(1.08); }
@keyframes pulse-call {
  0% { box-shadow: 0 0 0 0 rgba(194,65,12,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(194,65,12,0); }
  100% { box-shadow: 0 0 0 0 rgba(194,65,12,0); }
}

/* ===== MOBILE BOTTOM CTA BAR ===== */
.mobile-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  display: flex;
  z-index: 1000;
  border-top: 1px solid #f0e4d4;
}
.mobile-cta-item {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}
.mobile-cta-item i { font-size: 1.2rem; color: var(--warm-primary); }
.mobile-cta-btn { color: #fff !important; background: var(--warm-primary); }
.mobile-cta-btn i { color: #fff; }

@media (min-width: 992px) { body { padding-bottom: 0; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .section-padding { padding: 60px 0; }
  .section-title { font-size: 1.9rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .about-img { height: 360px; }
  .about-badge { right: 10px; bottom: -20px; padding: 12px 16px; }
  .why-us-img { height: 320px; }
}

@media (max-width: 575px) {
  .hero-slide { height: 82vh; }
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content p { font-size: 1rem; }
}
