/* ============================================================
   PAGES.CSS — Shared styles for all KC Homecare pages
   ============================================================ */

/* ========== NAV QUOTE BUTTON ========== */
.nav-quote {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 2.2rem;
  background: #25D366;
  color: #fff !important;
  border: 2px solid #25D366;
  border-radius: 5rem;
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-quote i {
  font-size: 1.8rem;
}

.nav-quote:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ========== BUBBLE RIPPLE EFFECT ON BUTTONS ========== */
.bubble-btn,
.btn {
  position: relative;
  overflow: hidden;
}

.bubble-btn::after,
.btn::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0);
  animation: none;
  pointer-events: none;
}

.bubble-btn.rippling::after,
.btn.rippling::after {
  animation: bubble-burst 0.7s ease-out forwards;
}

@keyframes bubble-burst {
  0%   { transform: scale(0); opacity: 0.8; }
  40%  { transform: scale(2.5); opacity: 0.5; }
  100% { transform: scale(5); opacity: 0; }
}

.btn-bubble-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: float-bubble 0.9s ease-out forwards;
}

@keyframes float-bubble {
  0%   { transform: translateY(0) scale(1); opacity: 0.8; }
  100% { transform: translateY(-80px) scale(0); opacity: 0; }
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-float {
  position: fixed;
  bottom: 9rem;
  right: 3rem;
  z-index: 999;
  width: 6rem;
  height: 6rem;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.5);
  text-decoration: none;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.7);
}

.whatsapp-float i {
  animation: wa-pulse 2.5s ease infinite;
}

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

.whatsapp-tooltip {
  position: absolute;
  right: 7.5rem;
  background: #fff;
  color: #333;
  padding: 0.6rem 1.4rem;
  border-radius: 5rem;
  font-size: 1.4rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 3rem;
  z-index: 999;
  width: 5rem;
  height: 5rem;
  background: #064c5f;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(6,76,95,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #10b981;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.5);
}

.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

/* ========== PAGE HERO ========== */
.page-hero {
  min-height: 55vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12rem 7% 6rem;
  margin-top: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,76,95,0.75) 0%, rgba(28,25,23,0.7) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.page-hero-content h1 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}

.page-hero-content p {
  font-size: 2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* ========== PHOTO BANNER SECTION ========== */
.photo-banner-section {
  padding: 6rem 7%;
  background: #fafaf9;
}

.photo-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 2fr;
  grid-template-rows: 28rem;
  gap: 1.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

.photo-banner-slot {
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.photo-banner-slot.wide {
  grid-column: span 1;
}

.photo-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,76,95,0.0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 0.8rem;
  opacity: 0;
  transition: all 0.4s ease;
}

.photo-banner-slot:hover .photo-banner-overlay {
  background: rgba(6,76,95,0.65);
  opacity: 1;
}

.photo-banner-overlay i { font-size: 3rem; }

.photo-banner-overlay span {
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
}

/* ========== ABOUT PAGE ========== */
.about-page-content {
  padding: 6rem 7%;
}

.about-page-content .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 6rem;
}

.about-text-block h2 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.about-text-block p {
  font-size: 1.65rem;
  color: #57534e;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.value-card {
  background: #fff;
  border-radius: 1.2rem;
  padding: 3.5rem 3rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
  border-top: 4px solid #064c5f;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.value-card i {
  font-size: 3.5rem;
  color: #064c5f;
  margin-bottom: 2rem;
}

.value-card h3 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 1.2rem;
}

.value-card p {
  font-size: 1.6rem;
  color: #57534e;
  line-height: 1.7;
}

/* ========== TEAM SECTION ========== */
.team-photo-section {
  padding: 6rem 7%;
  background: #fafaf9;
  text-align: center;
}

.section-subtext {
  font-size: 1.7rem;
  color: #57534e;
  margin-bottom: 4rem;
  margin-top: -3rem;
}

.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.team-photo-slot {
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.team-photo-slot:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-photo-img {
  height: 30rem;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

.team-info {
  background: #fff;
  padding: 2rem;
}

.team-info h4 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 2rem;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 0.5rem;
}

.team-info span {
  font-size: 1.5rem;
  color: #064c5f;
  font-weight: 500;
}

/* ========== SERVICES PAGE ========== */
.services-page {
  padding: 4rem 7% 8rem;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(38rem, 1fr));
  gap: 3.5rem;
}

.service-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}

.service-card-img {
  height: 22rem;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

.service-card-body {
  padding: 3rem;
  position: relative;
}

.service-icon {
  width: 6rem;
  height: 6rem;
  background: #064c5f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(6,76,95,0.4);
}

.service-icon i {
  font-size: 2.5rem;
  color: #fff;
}

.service-card-body h3 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 1.5rem;
}

.service-card-body p {
  font-size: 1.6rem;
  color: #57534e;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.service-card-body ul { margin-bottom: 2.5rem; }

.service-card-body ul li {
  font-size: 1.5rem;
  color: #57534e;
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-card-body ul li i {
  color: #25D366;
  font-size: 1.4rem;
}

/* ========== GALLERY PAGE ========== */
.gallery-section {
  padding: 4rem 7% 8rem;
}

.gallery-filter {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
}

.filter-btn {
  padding: 1rem 2.5rem;
  border: 2px solid #064c5f;
  background: transparent;
  color: #064c5f;
  border-radius: 5rem;
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #064c5f;
  color: #fff;
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 2rem;
}

.gallery-item {
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gallery-img {
  height: 26rem;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-img.empty-slot {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  border: 3px dashed #adb5bd;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,76,95,0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 1rem;
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-overlay.always-show {
  background: rgba(6,76,95,0.15);
  opacity: 1;
}

.gallery-overlay.always-show .gallery-overlay-icon i { color: #6b7280; }
.gallery-overlay.always-show p { color: #6b7280; }

.gallery-item:hover .gallery-overlay:not(.always-show) {
  background: rgba(6,76,95,0.7);
  opacity: 1;
}

.gallery-overlay-icon {
  width: 5.5rem;
  height: 5.5rem;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay-icon i { font-size: 2.2rem; }

.gallery-overlay p {
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  padding: 0 1rem;
}

.gallery-label {
  display: block;
  padding: 1.2rem 1.8rem;
  background: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  color: #1c1917;
}

.gallery-item.hidden { display: none; }

/* ========== TESTIMONIALS PAGE ========== */
.testimonials-page {
  padding: 4rem 7% 8rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
  gap: 3rem;
  margin-bottom: 6rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 4rem 3rem 3rem;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 2rem;
  left: 3rem;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 8rem;
  color: rgba(6,76,95,0.1);
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.13);
}

.testimonial-photo-slot {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  border: 4px dashed #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-avatar i {
  font-size: 3.5rem;
  color: #9ca3af;
}

.photo-add-hint {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #064c5f;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.3rem 1rem;
  border-radius: 5rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover .photo-add-hint { opacity: 1; }

.testimonial-stars { margin-bottom: 2rem; }

.testimonial-stars i {
  color: #f59e0b;
  font-size: 1.8rem;
}

.testimonial-card p {
  font-size: 1.6rem;
  color: #57534e;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-card h4 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 2rem;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 0.5rem;
}

.testimonial-card span {
  font-size: 1.4rem;
  color: #064c5f;
  font-weight: 500;
}

.testimonials-cta {
  text-align: center;
  background: linear-gradient(135deg, #064c5f, #10b981);
  border-radius: 2rem;
  padding: 6rem 4rem;
  color: #fff;
}

.testimonials-cta h3 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.testimonials-cta p {
  font-size: 1.8rem;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.testimonials-cta .btn {
  background: #25D366;
  border-color: #25D366;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.testimonials-cta .btn:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
}

/* ========== CONTACT PAGE ========== */
.contact-page {
  padding: 4rem 7% 8rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 2.5rem;
  margin-bottom: 6rem;
}

.contact-info-card {
  background: #fff;
  border-radius: 1.2rem;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-top: 4px solid #064c5f;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.contact-info-card i {
  font-size: 3.5rem;
  color: #064c5f;
  margin-bottom: 1.5rem;
}

.contact-info-card:nth-child(2) i { color: #25D366; }

.contact-info-card h4 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 2rem;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 1rem;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 1.55rem;
  color: #57534e;
  line-height: 1.8;
  display: block;
  text-decoration: none;
}

.contact-info-card a:hover { color: #064c5f; }

.contact-form-section {
  display: flex;
  gap: 5rem;
  align-items: stretch;
  margin-bottom: 5rem;
}

.contact-form-img {
  flex: 1 1 40rem;
  border-radius: 1.5rem;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  min-height: 50rem;
  position: relative;
  overflow: hidden;
}

.contact-form {
  flex: 1 1 45rem;
  background: #fff;
  padding: 4rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.contact-form h3 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 3rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 3rem;
}

.contact-form .box {
  width: 100%;
  padding: 1.4rem 1.8rem;
  border: 2px solid #e7e5e4;
  border-radius: 0.5rem;
  font-size: 1.6rem;
  color: #1c1917;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  font-family: var(--font-body, 'Work Sans', sans-serif);
  background: #fff;
  display: block;
}

.contact-form .box:focus {
  border-color: #064c5f;
  box-shadow: 0 0 0 3px rgba(6,76,95,0.1);
  outline: none;
}

.contact-form textarea.box {
  height: 14rem;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.whatsapp-cta-box {
  background: linear-gradient(135deg, rgba(37,211,102,0.1), rgba(37,211,102,0.05));
  border: 2px solid rgba(37,211,102,0.3);
  border-radius: 1.5rem;
  padding: 3.5rem 4rem;
}

.whatsapp-cta-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.whatsapp-cta-inner > i {
  font-size: 5rem;
  color: #25D366;
  flex-shrink: 0;
}

.whatsapp-cta-inner > div { flex: 1; }

.whatsapp-cta-inner h3 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 0.8rem;
}

.whatsapp-cta-inner p {
  font-size: 1.6rem;
  color: #57534e;
}

.whatsapp-cta-inner .btn {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  flex-shrink: 0;
}

.whatsapp-cta-inner .btn:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
}

/* ========== PAGES.JS MOBILE MENU FIX ========== */
/* ---- This is the critical mobile navbar block ---- */
@media (max-width: 768px) {

  .header .navbar {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: -110%;
    width: 32rem;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 1.2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid #d6eae6;
    transition: right 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
  }

  .header .navbar.active {
    right: 2rem;
  }

  .header .navbar ul {
    flex-direction: column;
    gap: 0;
    padding: 1.5rem;
  }

  .header .navbar ul li { width: 100%; }

  .header .navbar a {
    display: block;
    padding: 1.4rem 1.8rem;
    border-bottom: 1px solid #e7e5e4;
    border-radius: 0.6rem;
    font-size: 1.5rem;
  }

  .header .navbar a:hover,
  .header .navbar a.active {
    background: #edfaf7;
    color: #064c5f;
  }

  .header .navbar a::after { display: none; }

  .header .navbar ul li:last-child a { border-bottom: none; }

  /* hide Get Free Quote text on small screens */
  .nav-quote { display: none; }

  .page-hero-content h1 { font-size: 4rem; }

  .photo-banner-grid { grid-template-columns: 1fr; }
  .photo-banner-slot.wide { grid-column: span 1; }

  .services-cards { grid-template-columns: 1fr; }

  .whatsapp-float {
    bottom: 8rem;
    right: 2rem;
    width: 5.5rem;
    height: 5.5rem;
    font-size: 2.6rem;
  }

  .back-to-top {
    right: 2rem;
    bottom: 1.5rem;
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.8rem;
  }

  .whatsapp-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-section { flex-direction: column; }
  .contact-form-img { min-height: 30rem; }
}

@media (max-width: 991px) {
  .photo-banner-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .photo-banner-slot.wide { grid-column: span 2; }

  .about-page-content .row { grid-template-columns: 1fr; }
}