/* ===========================================================
   Rainbow Care — Global Styles
   =========================================================== */

:root{
  --rc-teal: #1a9c8f;
  --rc-teal-dark: #0f7a70;
  --rc-blue: #3a7bd5;
  --rc-blue-soft: #eaf4fb;
  --rc-green: #6fcf97;
  --rc-lavender: #a29bfe;
  --rc-lavender-soft: #f3f1ff;
  --rc-whatsapp: #25d366;
  --rc-dark: #1f2d3d;
  --rc-muted: #5b6b79;
  --rc-bg-soft: #f6fbfa;
  --rc-radius: 20px;
  --rc-shadow: 0 10px 30px rgba(24, 60, 74, 0.08);
  --rc-shadow-hover: 0 20px 40px rgba(24, 60, 74, 0.14);
  font-family: 'Nunito', sans-serif;
}

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

body{
  font-family: 'Nunito', sans-serif;
  color: var(--rc-dark);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  background: #fff;
}

/* Prevent any element from forcing horizontal scroll on small screens */
img, svg, video, iframe{ max-width: 100%; }

h1, h2, h3, h4, h5, .brand-text{
  font-family: 'Poppins', sans-serif;
}

a{ text-decoration: none; }

.section-padding{ padding: 90px 0; }
.bg-soft{ background: var(--rc-bg-soft); }

.section-label{
  display: inline-block;
  color: var(--rc-teal);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: .8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.section-label.light{ color: #d7fff7; }

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

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

/* ===================== BUTTONS ===================== */
.btn-call{
  background: linear-gradient(135deg, var(--rc-teal), var(--rc-blue));
  color: #fff !important;
  border: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(26,156,143,0.3);
  transition: all .3s ease;
}
.btn-call:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(26,156,143,0.4);
  color: #fff;
}

.btn-enquire{
  background: #fff;
  color: var(--rc-teal-dark) !important;
  border: 2px solid var(--rc-teal);
  font-weight: 600;
  transition: all .3s ease;
}
.btn-enquire:hover{
  background: var(--rc-teal);
  color: #fff !important;
  transform: translateY(-3px);
}

.btn-outline-dir{
  background: transparent;
  border: 2px solid var(--rc-blue);
  color: var(--rc-blue) !important;
  font-weight: 600;
  transition: all .3s ease;
}
.btn-outline-dir:hover{
  background: var(--rc-blue);
  color: #fff !important;
  transform: translateY(-3px);
}

/* ===================== NAVBAR ===================== */
#mainNavbar{
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: all .35s ease;
  padding: 14px 0;
  z-index: 1050;
  backdrop-filter: blur(8px);
}
#mainNavbar.scrolled{
  padding: 8px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}
.navbar-brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand img{
  border-radius: 8px;
  height: 68px;
  width: auto;
  transition: height .35s ease;
}
#mainNavbar.scrolled .navbar-brand img{ height: 52px; }
#mainNavbar .nav-link{
  font-weight: 600;
  color: var(--rc-dark);
  margin: 0 8px;
  position: relative;
}
#mainNavbar .nav-link::after{
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--rc-teal);
  transition: width .3s ease;
}
#mainNavbar .nav-link:hover::after{ width: 100%; }
#mainNavbar .nav-link:hover{ color: var(--rc-teal-dark); }

/* ===================== HERO ===================== */
header#home{ margin-top: 0; }
.hero-slide{
  height: 100vh;
  min-height: 620px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,45,55,0.78) 0%, rgba(26,156,143,0.55) 55%, rgba(58,123,213,0.45) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-title{
  font-weight: 800;
  font-size: 3.2rem;
  margin-bottom: 20px;
  animation: fadeInUp .9s ease both;
}
.hero-text{
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: #eafaf6;
  animation: fadeInUp 1.1s ease both;
}
.hero-btns{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1.3s ease both;
}
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next{
  width: 6%;
}
#heroCarousel .carousel-indicators [data-bs-target]{
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  margin: 0 5px;
  padding: 0;
  background-color: #fff;
  opacity: .6;
  flex: 0 0 auto;
}
#heroCarousel .carousel-indicators .active{ opacity: 1; background-color: var(--rc-teal); }

@keyframes fadeInUp{
  from{ opacity: 0; transform: translateY(30px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ===================== ABOUT ===================== */
.about-img-wrap{ position: relative; }
.about-main-img{
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.about-badge{
  position: absolute;
  bottom: -20px;
  right: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--rc-shadow);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 24px);
}
@media (min-width: 992px){
  .about-badge{ right: -15px; bottom: -25px; }
}
.about-badge i{
  font-size: 1.8rem;
  color: var(--rc-teal);
}
.about-badge strong{
  display: block;
  font-size: 1.1rem;
  color: var(--rc-dark);
}
.about-badge span{
  font-size: .8rem;
  color: var(--rc-muted);
}

.trust-item{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--rc-blue-soft);
  border-radius: 14px;
  padding: 14px;
  height: 100%;
  font-weight: 600;
  font-size: .92rem;
  transition: transform .3s ease;
}
.trust-item:hover{ transform: translateY(-4px); background: var(--rc-lavender-soft); }
.trust-item i{ color: var(--rc-teal); font-size: 1.3rem; }

/* ===================== SERVICES ===================== */
.service-card{
  background: #fff;
  border-radius: var(--rc-radius);
  overflow: hidden;
  box-shadow: var(--rc-shadow);
  height: 100%;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover{
  transform: translateY(-10px);
  box-shadow: var(--rc-shadow-hover);
}
.service-img-wrap{
  position: relative;
  height: 220px;
}
.service-img-frame{
  width: 100%; height: 100%;
  overflow: hidden;
}
.service-img-wrap img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.service-card:hover .service-img-wrap img{ transform: scale(1.1); }
.service-icon{
  position: absolute;
  bottom: -24px;
  left: 24px;
  z-index: 3;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--rc-teal), var(--rc-blue));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(26,156,143,0.35);
}
.service-icon i{ display: block; }
.service-body{
  padding: 44px 24px 24px;
}
.service-body h3{
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-body p{
  color: var(--rc-muted);
  font-size: .95rem;
  margin-bottom: 18px;
  min-height: 48px;
}
.service-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===================== WHY CHOOSE US ===================== */
.why-card{
  background: #fff;
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow);
  padding: 34px 28px;
  height: 100%;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
  border-top: 4px solid transparent;
}
.why-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--rc-shadow-hover);
  border-top-color: var(--rc-teal);
}
.why-num{
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--rc-lavender-soft);
  -webkit-text-stroke: 1px #d9d2ff;
}
.why-icon{
  font-size: 2rem;
  color: var(--rc-teal);
  margin-bottom: 16px;
  display: inline-block;
}
.why-card h3{
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-card p{
  color: var(--rc-muted);
  font-size: .93rem;
  line-height: 1.7;
}

/* ===================== HOW IT WORKS ===================== */
.steps-wrap{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}
.steps-wrap::before{
  content: '';
  position: absolute;
  top: 34px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--rc-teal) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.step-item{
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 0 8px;
}
.step-icon{
  width: 68px; height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rc-teal);
  color: var(--rc-teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--rc-shadow);
  transition: all .3s ease;
}
.step-item:hover .step-icon{
  background: linear-gradient(135deg, var(--rc-teal), var(--rc-blue));
  color: #fff;
  transform: scale(1.08);
}
.step-num{
  display: block;
  color: var(--rc-lavender);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.step-item h4{
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-item p{
  color: var(--rc-muted);
  font-size: .87rem;
  line-height: 1.6;
}

@media (max-width: 991px){
  .steps-wrap{
    flex-direction: column;
    gap: 32px;
  }
  .steps-wrap::before{
    top: 0; bottom: 0; left: 33px; right: auto;
    width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--rc-teal) 0 10px, transparent 10px 18px);
  }
  .step-item{
    display: flex;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
  }
  .step-icon{ margin: 0; flex-shrink: 0; }
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-card{
  background: #fff;
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow);
  padding: 50px 40px;
  position: relative;
}
.quote-icon{
  font-size: 2.6rem;
  color: var(--rc-lavender);
  margin-bottom: 10px;
}
.stars{ color: #ffb400; margin-bottom: 18px; font-size: 1.1rem; }
.testimonial-card p{
  font-size: 1.1rem;
  color: var(--rc-dark);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
}
.testimonial-card h5{
  font-weight: 700;
  color: var(--rc-teal-dark);
}
.testi-control{
  width: 44px; height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--rc-shadow);
  opacity: 1;
  color: var(--rc-teal);
  display: flex; align-items: center; justify-content: center;
}
.testi-control.carousel-control-prev{ left: 0; }
.testi-control.carousel-control-next{ right: 0; }
@media (min-width: 992px){
  .testi-control.carousel-control-prev{ left: -10px; }
  .testi-control.carousel-control-next{ right: -10px; }
}
.testi-control span{ color: var(--rc-teal-dark); font-size: 1.3rem; }
.testi-indicators{ position: static; margin-top: 30px; }
.testi-indicators [data-bs-target]{
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  margin: 0 5px;
  padding: 0;
  background-color: #cfe9e5;
  opacity: 1;
  flex: 0 0 auto;
}
.testi-indicators .active{ background-color: var(--rc-teal); }

/* ===================== SERVICE AREA ===================== */
.area-section{
  position: relative;
  background: linear-gradient(135deg, var(--rc-teal-dark), var(--rc-blue)),
              url('https://images.unsplash.com/photo-1524661135-423995f22d0b?w=1600&q=70&auto=format&fit=crop');
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.area-overlay{
  position: absolute; inset: 0;
  background: rgba(15,55,60,0.55);
}
.area-chips{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.area-chips span{
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: all .3s ease;
}
.area-chips span:hover{
  background: #fff;
  color: var(--rc-teal-dark);
  transform: translateY(-3px);
}
.area-chips i{ margin-right: 6px; }

/* ===================== CONTACT ===================== */
.contact-info-card{
  background: var(--rc-blue-soft);
  border-radius: var(--rc-radius);
  padding: 40px;
  height: 100%;
}
.contact-info-card h3{
  font-weight: 700;
  color: var(--rc-dark);
}
.contact-line{
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-line i{
  width: 46px; height: 46px;
  background: #fff;
  color: var(--rc-teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--rc-shadow);
}
.contact-line strong{
  display: block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--rc-muted);
}
.contact-line a, .contact-line span{
  color: var(--rc-dark);
  font-weight: 600;
}
.contact-btns{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-form-card{
  background: #fff;
  border-radius: var(--rc-radius);
  padding: 40px;
  box-shadow: var(--rc-shadow);
  height: 100%;
}
.contact-form-card .form-control,
.contact-form-card .form-select{
  border-radius: 10px;
  border: 1px solid #dfe8ec;
  padding: 12px 14px;
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus{
  border-color: var(--rc-teal);
  box-shadow: 0 0 0 .2rem rgba(26,156,143,0.15);
}
.contact-form-card label{
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
}

.contact-map-card{
  border-radius: var(--rc-radius);
  overflow: hidden;
  box-shadow: var(--rc-shadow);
  height: 100%;
  min-height: 380px;
}
.contact-map-card iframe{
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
}

/* ===================== FINAL CTA ===================== */
.final-cta{
  position: relative;
  padding: 110px 0;
  background: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1600&q=75&auto=format&fit=crop') center/cover;
  text-align: center;
}
.final-cta-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,45,55,0.85), rgba(26,156,143,0.75));
}
.final-cta h2{
  position: relative;
  color: #fff;
  font-weight: 800;
  font-size: 2.4rem;
  margin-bottom: 14px;
}
.final-cta p{
  position: relative;
  color: #eafaf6;
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.final-cta .hero-btns{ position: relative; }

/* ===================== FOOTER ===================== */
.footer{
  background: var(--rc-dark);
  color: #cfd8e0;
  padding: 24px 0;
}
.copyright{
  text-align: center;
  font-size: .9rem;
  color: #b8c4cd;
  margin: 0;
}

/* ===================== FLOATING CALL BUTTON ===================== */
.floating-call{
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--rc-teal), var(--rc-blue));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(26,156,143,0.5);
  z-index: 1040;
  animation: pulseCall 2.4s infinite;
}
.floating-call:hover{ color: #fff; }
@keyframes pulseCall{
  0%{ box-shadow: 0 0 0 0 rgba(26,156,143,0.55); }
  70%{ box-shadow: 0 0 0 16px rgba(26,156,143,0); }
  100%{ box-shadow: 0 0 0 0 rgba(26,156,143,0); }
}
@media (min-width: 992px){
  .floating-call{ bottom: 30px; }
}

/* ===================== FLOATING ENQUIRE NOW (rotated side tab) ===================== */
.floating-enquire-wrap{
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 46px;
  height: 190px;
  z-index: 1040;
  pointer-events: none;
}
.floating-enquire{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 46px;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center center;
  pointer-events: auto;
  background: linear-gradient(135deg, var(--rc-teal), var(--rc-blue));
  color: #fff;
  border: none;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  box-shadow: 0 -6px 20px rgba(26,156,143,0.4);
  transition: box-shadow .3s ease, filter .3s ease;
}
.floating-enquire i{ font-size: 1.1rem; }
.floating-enquire:hover{
  box-shadow: 0 -10px 26px rgba(26,156,143,0.5);
  filter: brightness(1.06);
}

/* ===================== MOBILE CTA BAR ===================== */
.mobile-cta-bar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  z-index: 1045;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
}
.mobile-cta{
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-weight: 700;
  color: #fff !important;
  font-size: .95rem;
}
.mobile-cta.call{ background: linear-gradient(135deg, var(--rc-teal), var(--rc-blue)); }
.mobile-cta.enquire{ background: var(--rc-teal-dark); border: none; }
.mobile-cta i{ margin-right: 6px; }
body{ padding-bottom: 0; }
@media (max-width: 991px){
  body{ padding-bottom: 56px; }
}

/* ===================== ENQUIRY MODAL ===================== */
.enquiry-modal-content{
  border-radius: var(--rc-radius);
  border: none;
}
/* ===================== SCROLL REVEAL ===================== */
.reveal-up, .reveal-left, .reveal-right{
  opacity: 0;
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-up{ transform: translateY(40px); }
.reveal-left{ transform: translateX(-40px); }
.reveal-right{ transform: translateX(40px); }
.reveal-visible{
  opacity: 1 !important;
  transform: translate(0,0) !important;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 767px){
  .section-padding{ padding: 60px 0; }
  .section-title{ font-size: 1.7rem; }
  .hero-title{ font-size: 2.1rem; }
  .hero-text{ font-size: 1rem; }
  .hero-slide{ min-height: 560px; }
  .about-main-img{ height: 320px; }
  .about-badge{ right: 10px; bottom: -20px; padding: 12px 16px; }
  .final-cta h2{ font-size: 1.7rem; }
}
