/* ==========================================================================
   PARAM DENTAL CLINIC - LANDING PAGE STYLESHEET
   Framework   : Bootstrap 5.3.3 (custom overrides only, no core changes)
   Fonts       : Poppins (headings), Inter (body)
   Author Note : Sab colors CSS variables (:root) se control hote hain,
                 taaki theme change karna easy ho — sirf yahan values badlo.
                 Har interactive element (card/icon/button/link/image) par
                 hover + transition effect diya gaya hai for a polished feel.
   ========================================================================== */

/* ---------- 0. GLOBAL BASE + SMOOTH SCROLL + SCROLLBAR ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--pd-dark);
  overflow-x: hidden;
}

::selection {
  background: #0D6EFD;
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#0D6EFD, #20C997);
  border-radius: 20px;
}

/* ---------- 1. GLOBAL COLOR VARIABLES & BASE STYLES ---------- */
:root {
  --pd-primary: #0D6EFD;
  --pd-secondary: #20C997;
  --pd-accent: #FFC107;
  --pd-white: #FFFFFF;
  --pd-light: #F8F9FA;
  --pd-dark: #212529;
  --pd-primary-rgb: 13, 110, 253;
}

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

.text-secondary-custom {
  color: var(--pd-secondary) !important;
}

.bg-secondary-custom {
  background-color: var(--pd-secondary) !important;
}

.bg-accent {
  background-color: var(--pd-accent) !important;
}

.text-accent {
  color: var(--pd-accent) !important;
}

.btn-primary {
  background-color: var(--pd-primary);
  border-color: var(--pd-primary);
  transition: background-color .3s ease, border-color .3s ease, transform .25s ease, box-shadow .3s ease;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, .3);
}

.btn-secondary-custom {
  background-color: var(--pd-secondary);
  border-color: var(--pd-secondary);
  color: #fff;
  transition: background-color .3s ease, border-color .3s ease, transform .25s ease, box-shadow .3s ease;
}

.btn-secondary-custom:hover {
  background-color: #1baa84;
  border-color: #1baa84;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(32, 201, 151, .3);
}

.btn-accent {
  background-color: var(--pd-accent);
  border-color: var(--pd-accent);
  color: #212529;
  transition: background-color .3s ease, border-color .3s ease, transform .25s ease, box-shadow .3s ease;
}

.btn-accent:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #212529;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 193, 7, .35);
}

.btn-outline-primary {
  transition: all .3s ease;
}

.btn-outline-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, .2);
}

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

.section-eyebrow {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: .85rem;
  color: var(--pd-primary);
}

.rounded-4xl {
  border-radius: 1.5rem;
}

/* ---------- 2. HEADER / STICKY NAVBAR ---------- */
.navbar {
  transition: all .3s ease;
  padding-top: 14px;
  padding-bottom: 14px;
  backdrop-filter: blur(15px);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  padding-top: 8px;
  padding-bottom: 8px;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--pd-primary) !important;
  transition: transform .3s ease;
  display: inline-flex;
  align-items: center;
}

.navbar-brand:hover {
  transform: scale(1.03);
}

.navbar-brand img {
  height: 80px;
  margin-right: 8px;
}

.nav-link {
  font-weight: 400;
  color: var(--pd-dark) !important;
  margin: 0 6px;
  position: relative;
  transition: color .3s ease;
}

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

.nav-link i {
  transition: transform .3s ease;
}

.nav-link:hover i {
  transform: scale(1.15);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #0D6EFD, #20C997);
  transition: width .35s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}





/* ---------- 3. HERO BANNER SECTION ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(13, 110, 253, .95) 0%, rgba(32, 201, 151, .85) 100%), url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  color: #fff;
  padding: 140px 0 90px;
}

.hero .doctor-img {
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.doctor-img {
  transition: transform .6s ease, box-shadow .6s ease;
}

.doctor-img:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 35px 70px rgba(0, 0, 0, .30);
}

.hero h1 {
  font-weight: 800;
  font-size: 2.9rem;
  line-height: 1.15;
}

.badge-pill-soft {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: .9rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: background .3s ease, transform .3s ease;
  display: inline-block;
}

.badge-pill-soft:hover {
  background: rgba(255, 255, 255, .3);
  transform: translateY(-2px);
}

/* ---------- 4. EMERGENCY CONTACT STRIP ---------- */
.emergency-strip {
  margin: 60px 0;
}

.emergency-box {
  background: var(--pd-dark);
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  transition: box-shadow .3s ease;
}

.emergency-item {
  padding: 30px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 800;
  transition: background-color .3s ease, transform .25s ease;
  cursor: pointer;
}

.emergency-item i {
  font-size: 22px;
  color: #FFD54F;
  transition: transform .3s ease;
}

.emergency-item:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-3px);
}

.emergency-item:hover i {
  transform: scale(1.2) rotate(-8deg);
}

@media(max-width:768px) {

  .emergency-item {
    justify-content: flex-start;
    padding: 18px;
  }

  .emergency-item:nth-child(2n) {
    border-right: none;
  }

  .emergency-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .25);
  }
}

/* ---------- 5. ABOUT CLINIC SECTION ---------- */
.about-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.about-img-wrap img {
  transition: transform .6s ease;
}

.about-img-wrap:hover img {
  transform: scale(1.05);
}

.about-stat-card {
  position: absolute;
  bottom: -25px;
  right: -15px;
  background: #fff;
  border-radius: 1rem;
  padding: 18px 26px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
  transition: transform .3s ease, box-shadow .3s ease;
}

.about-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
}

.about-stat-card .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--pd-primary);
}

/* ---------- 6. SERVICES CARDS SECTION ---------- */
.service-card {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
  transition: transform .4s cubic-bezier(.25, .8, .25, 1), box-shadow .4s ease;
  height: 100%;
}

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

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(13, 110, 253, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--pd-primary);
  margin-top: -45px;
  border: 4px solid #fff;
  position: relative;
  z-index: 2;
  transition: transform .3s ease, background .3s ease;
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.1) rotate(-6deg);
  background: var(--pd-primary);
  color: #fff;
}

.service-card .card-img-top {
  height: 170px;
  object-fit: cover;
  cursor: pointer;
  transition: transform .6s ease, filter .6s ease;
}

.service-card:hover .card-img-top {
  transform: scale(1.1);
  filter: brightness(.9);
}

.service-card a.btn {
  transition: all .3s ease;
}

.service-card a.btn:hover {
  transform: translateX(4px);
}

/* ---------- 7. WHY CHOOSE US ICON BOXES ---------- */
.why-card {
  background: #fff;
  padding: 35px 25px;
  border-radius: 18px;
  text-align: center;
  transition: .4s;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
  height: 100%;
  border: 1px solid #f1f1f1;
  cursor: pointer;
}

.why-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 45px rgba(13, 110, 253, .20);
}

.why-icon-box {
  width: 80px;
  height: 80px;
  margin: auto;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #4facfe);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 34px;
  transition: .4s;
}

.why-card:hover .why-icon-box {
  transform: rotateY(360deg) scale(1.15);
  background: linear-gradient(135deg, #198754, #20c997);
}

.why-card h5 {
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.why-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Mobile */

@media(max-width:768px) {

  .why-card {
    padding: 25px 18px;
  }

  .why-icon-box {
    width: 65px;
    height: 65px;
    font-size: 28px;
  }

}

/* ---------- 8. MEET OUR DOCTORS SECTION ---------- */
.doctor-card {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
  transition: transform .4s ease, box-shadow .4s ease;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, .14);
}

.doctor-card img {
  height: 280px;
  object-fit: cover;
  width: 100%;
  cursor: pointer;
  transition: transform .6s ease, filter .6s ease;
}

.doctor-card:hover img {
  transform: scale(1.1);
  filter: brightness(.9);
}

.doctor-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pd-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pd-primary);
  margin-right: 6px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.doctor-social a:hover {
  background: var(--pd-primary);
  color: #fff;
  transform: translateY(-3px);
}

.doctor-card .btn {
  transition: all .3s ease;
}

.doctor-card .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, .25);
}

/* ---------- 9. TREATMENT PROCESS STEPS ---------- */
.process-step {
  text-align: center;
  position: relative;
  padding: 0 10px;
}

.process-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pd-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 14px;
  box-shadow: 0 8px 20px rgba(13, 110, 253, .3);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .3s ease;
}

.process-step:hover .process-num {
  transform: scale(1.15) rotate(-8deg);
  background: var(--pd-secondary);
}

.process-connector {
  position: absolute;
  top: 32px;
  right: -50%;
  width: 100%;
  border-top: 3px dashed #cfd8ff;
  z-index: 0;
}

/* ---------- 10. BEFORE/AFTER & CLINIC GALLERY ---------- */
.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transition: transform .18s ease;
}

.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25, .8, .25, 1), filter .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.12);
  filter: brightness(.85);
}

.gallery-item:active {
  transform: scale(.97);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 110, 253, .75) 0%, rgba(32, 201, 151, .15) 100%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
}

.gallery-overlay i {
  transform: scale(.4) rotate(-15deg);
  opacity: 0;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}

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

.gallery-item:hover .gallery-overlay i {
  transform: scale(1) rotate(0deg);
  opacity: 1;
  transition-delay: .05s;
}

.ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  transition: transform .3s ease;
}

.gallery-item:hover .ba-label {
  transform: translateY(-2px);
}

/* Clinic gallery carousel images */
#clinicCarouselInner .carousel-item img {
  cursor: zoom-in;
  transition: transform .6s ease;
}

#clinicCarouselInner .carousel-item:hover img {
  transform: scale(1.04);
}

/* Lightbox modal — smooth zoom + fade open */
#lightboxModal .modal-dialog {
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
  transform: scale(.85);
  opacity: 0;
}

#lightboxModal.show .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

#lightboxImg {
  transition: opacity .45s ease, transform .45s ease;
}

/* ---------- 11. PRICING PLAN CARDS ---------- */
.pricing-card {
  border-radius: 1.25rem;
  border: 1px solid #eee;
  padding: 36px 28px;
  height: 100%;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  background: #fff;
}

.pricing-card.featured {
  border: 2px solid var(--pd-primary);
  transform: scale(1.03);
  box-shadow: 0 20px 45px rgba(13, 110, 253, .15);
}

.pricing-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, .1);
  transform: translateY(-8px);
  border-color: var(--pd-primary);
}

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

.price-tag {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--pd-primary);
  transition: transform .3s ease;
}

.pricing-card:hover .price-tag {
  transform: scale(1.06);
}

.pricing-card .btn {
  transition: all .3s ease;
}

.pricing-card:hover .btn {
  transform: translateY(-3px);
}

/* ---------- 12. TESTIMONIALS CAROUSEL ---------- */
.testimonial-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 32px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
  margin: 10px;
  transition: transform .35s ease, box-shadow .35s ease;
}

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

.testimonial-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  transition: border-color .3s ease, transform .3s ease;
}

.testimonial-card:hover img {
  border-color: var(--pd-primary);
  transform: scale(1.08);
}

.rating i {
  color: var(--pd-accent);
  font-size: .9rem;
  transition: transform .3s ease;
}

.testimonial-card:hover .rating i {
  transform: scale(1.1);
}

/* ---------- 13. VIDEO TESTIMONIAL ---------- */
.video-wrap {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
}

.video-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
}

.video-wrap:hover img {
  transform: scale(1.06);
  filter: brightness(.75);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pd-primary);
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .3s ease;
}

.video-wrap:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #fff;
}

/* ---------- 14. FAQ ACCORDION ---------- */
.accordion-button {
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(13, 110, 253, .08);
  color: var(--pd-primary);
  box-shadow: none;
}

.accordion-button:hover {
  background-color: rgba(13, 110, 253, .05);
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-item {
  transition: box-shadow .3s ease;
}

/* ---------- 15. APPOINTMENT FORM SECTION ---------- */
.appointment-section {
  background: linear-gradient(135deg, rgba(13, 110, 253, .06), rgba(32, 201, 151, .08));
}

.appointment-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
  transition: box-shadow .3s ease;
}

.form-control,
.form-select {
  padding: .65rem .9rem;
  border-radius: .6rem;
  border: 1px solid #dfe3e8;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.form-control:hover,
.form-select:hover {
  border-color: #b9c2cc;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pd-primary);
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

.appointment-card .btn {
  transition: all .3s ease;
}

/* ---------- 16. GOOGLE MAP EMBED ---------- */
.map-wrap {
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow .3s ease;
}

.map-wrap:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, .15);
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 1rem;
}

/* ---------- 17. FOOTER / CONTACT INFO ---------- */
footer {
  background: var(--pd-dark);
  color: #c9ccd1;
}

footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
}

footer a {
  color: #c9ccd1;
  text-decoration: none;
  transition: color .3s ease, padding-left .3s ease;
}

footer ul a:hover {
  padding-left: 4px;
}

footer a:hover {
  color: var(--pd-accent);
}

footer .social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: background .3s ease, transform .3s ease, color .3s ease;
}

footer .social-icons a:hover {
  background: var(--pd-primary);
  color: #fff;
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  font-size: .9rem;
}

/* ---------- 18. FLOATING ACTION BUTTONS (WhatsApp/Call/Book/Scroll-top) ---------- */
/* Floating Buttons */


.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.fab:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.fab:active {
  transform: scale(.95);
}

.fab-whatsapp {
  background: #25D366;
}

.fab-call {
  background: var(--pd-primary);
}

.fab-book {
  background: var(--pd-accent);
  color: #212529;
}

.fab-top {
  background: var(--pd-dark);
  display: none;
}


/* ---------- 19. RESPONSIVE / MOBILE OVERRIDES ---------- */
@media (max-width:991px) {
  .hero {
    padding: 130px 0 60px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .about-stat-card {
    position: static;
    margin-top: 16px;
    display: inline-block;
  }

  .process-connector {
    display: none;
  }
}

/* ==========================================================================
   20. SITE-WIDE ANIMATION SYSTEM
   - Keyframes for entrance effects
   - Scroll-reveal framework (.reveal / .reveal-left / .reveal-right /
     .reveal-zoom / .reveal-stagger) toggled via IntersectionObserver in JS
   - Hero load-in sequence, navbar drop-in, floating button pop-in
   - Respects prefers-reduced-motion
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(.5);
  }

  70% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Scroll-reveal base classes ---------- */
.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity .75s cubic-bezier(.25, .8, .25, 1), transform .75s cubic-bezier(.25, .8, .25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-55px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.25, .8, .25, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(55px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.25, .8, .25, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(.9);
  transition: opacity .6s ease, transform .6s cubic-bezier(.34, 1.56, .64, 1);
}

.reveal-zoom.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger the direct children of a container once the container is revealed */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.25, .8, .25, 1);
}

.reveal-stagger.active>* {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.active>*:nth-child(1) {
  transition-delay: .03s;
}

.reveal-stagger.active>*:nth-child(2) {
  transition-delay: .08s;
}

.reveal-stagger.active>*:nth-child(3) {
  transition-delay: .13s;
}

.reveal-stagger.active>*:nth-child(4) {
  transition-delay: .18s;
}

.reveal-stagger.active>*:nth-child(5) {
  transition-delay: .23s;
}

.reveal-stagger.active>*:nth-child(6) {
  transition-delay: .28s;
}

.reveal-stagger.active>*:nth-child(7) {
  transition-delay: .33s;
}

.reveal-stagger.active>*:nth-child(8) {
  transition-delay: .38s;
}

.reveal-stagger.active>*:nth-child(9) {
  transition-delay: .43s;
}

.reveal-stagger.active>*:nth-child(10) {
  transition-delay: .48s;
}

.reveal-stagger.active>*:nth-child(11) {
  transition-delay: .53s;
}

.reveal-stagger.active>*:nth-child(12) {
  transition-delay: .58s;
}

/* ---------- Navbar drop-in on load ---------- */
.navbar {
  animation: fadeInDown .6s ease both;
}

/* ---------- Hero entrance sequence ---------- */
.hero-anim-item {
  opacity: 0;
  animation: fadeInUp .8s cubic-bezier(.25, .8, .25, 1) forwards;
}

.hero h1.hero-anim-item {
  animation-delay: .15s;
}

.hero p.hero-anim-item {
  animation-delay: .3s;
}

.hero .hero-btns.hero-anim-item {
  animation-delay: .45s;
}

.hero .badge-pill-soft.hero-anim-item {
  animation-delay: .6s;
}

.hero-img-anim {
  opacity: 0;
  animation: fadeInRight .9s cubic-bezier(.25, .8, .25, 1) forwards;
  animation-delay: .35s;
}

/* ---------- Emergency strip icons: gentle idle float ---------- */
.emergency-item i {
  animation: floatY 3s ease-in-out infinite;
}

.emergency-item:nth-child(2) i {
  animation-delay: .3s;
}

.emergency-item:nth-child(3) i {
  animation-delay: .6s;
}

.emergency-item:nth-child(4) i {
  animation-delay: .9s;
}

/* ---------- Floating action buttons: staggered pop-in ---------- */
.fab-anim {
  opacity: 0;
  transform: scale(.4);
  animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

.floating-buttons .fab-book {
  animation-delay: 1.1s;
}

.floating-buttons .fab-call {
  animation-delay: 1.3s;
}

.floating-buttons .fab-whatsapp {
  animation-delay: 1.5s;
}

/* ---------- Respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-zoom,
  .reveal-stagger>*,
  .hero-anim-item,
  .hero-img-anim,
  .fab-anim,
  .navbar,
  .emergency-item i {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
