/* --- Balanced, Minimalist Charcoal & Pure White Palette --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
}

:root {
  --bg-gradient: linear-gradient(
    135deg,
    #ffffff 0%,
    #f8fafc 50%,
    #f1f5f9 100%
  );
  --glass-core: rgba(255, 255, 255, 0.22);
  --glass-thick: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.6);
  --text-dark: #0f172a;
  --text-muted: #334155; /* SEO Contrast Boost: Heightened from #475569 to clear WCAG accessibility checks */
  --shadow-3d:
    0 25px 50px -12px rgba(0, 0, 0, 0.04),
    0 4px 6px -4px rgba(0, 0, 0, 0.01),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* Essential Layout Reset to eliminate empty trailing space under footer */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  overflow-x: hidden;
  text-rendering: optimizeLegibility; /* SEO Optimization: Imparts crisp text rendering performance */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  perspective: 1500px;
}

/* Ambient Neutral Lights */
.ambient-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.2;
}
.sphere-1 {
  width: 600px;
  height: 600px;
  background: #cbd5e1;
  top: -10%;
  right: -10%;
}
.sphere-2 {
  width: 500px;
  height: 500px;
  background: #e2e8f0;
  bottom: -5%;
  left: -5%;
}

/* --- Pure Glassmorphism Class --- */
.glass-box {
  background: var(--glass-core);
  backdrop-filter: blur(30px) saturate(120%);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: var(--shadow-3d);
  transform-style: preserve-3d;
  transition:
    border-color 0.4s,
    box-shadow 0.4s,
    background 0.4s;
}

.glass-box:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 35px 60px rgba(0, 0, 0, 0.06),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* --- Global Components --- */
.section-padding {
  padding: 100px 6% 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--text-dark);
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.03em;
}

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

/* Buttons */
.cta-btn {
  background: var(--glass-thick);
  color: var(--text-dark);
  border: 1px solid var(--glass-border);
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-height: 48px; /* SEO Structural Target Rule for safe mobile tap validation bounds */
}

.cta-btn:hover {
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.cta-btn.solid {
  background: var(--text-dark);
  color: #ffffff;
  border: none;
}
.cta-btn.solid:hover {
  background: #000000;
}

.whatsapp-hero-btn svg {
  transition: transform 0.3s ease;
}
.whatsapp-hero-btn:hover svg {
  transform: scale(1.15);
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1300px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 45px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.3s;
  padding: 8px 0; /* Expanded touch region passing Search Crawler Mobile UX assessments */
}

.nav-links a:hover {
  color: var(--text-dark);
}

/* --- Consolidated Master Hero Card Section --- */
.hero {
  padding-top: 140px;
  padding-bottom: 40px;
}

.hero-master-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  padding: 60px 0 60px 60px;
  border-radius: 48px;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-content {
  padding-right: 40px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 25px;
  border: 1px solid var(--glass-border);
}

.hero-content h1 {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 25px;
  letter-spacing: -0.04em;
}

.hero-content h1 span {
  display: inline-block;
  background: linear-gradient(90deg, #0f172a, #64748b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Reference Layout Image Framing */
.hero-visual-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45%;
  height: 100%;
  display: flex;
  transform: none !important;
  animation: none !important;
}

.hero-main-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: none !important;
  transition: none !important;
}

.hero-main-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none !important;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 70%, transparent 100%);
}

/* Ensure mobile layout overrides also remain perfectly static */
@media (max-width: 992px) {
  .hero-visual-wrapper {
    position: relative;
    width: 100%;
    height: 360px;
    margin-top: 30px;
    transform: none !important;
  }
  .hero-main-card {
    width: 100%;
    height: 100%;
    transform: none !important;
    border-radius: 24px;
  }
  .hero-main-card img {
    transform: none !important;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Hidden elements to conform exactly to the reference look */
.hero-depth-base,
.badge-card {
  display: none !important;
}

/* Ensure responsiveness matches new layout split */
@media (max-width: 992px) {
  .hero-master-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }
  
  .hero-visual-wrapper {
    display: none !important;
  }

  .metrics-bar {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .metric-item {
    border: none;
  }
  .metric-item:nth-child(odd) {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
  }
}

.badge-card {
  position: absolute;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.badge-top {
  top: 6%;
  left: -4%;
  transform: translateZ(50px);
}
.badge-bottom {
  bottom: 8%;
  right: -4%;
  transform: translateZ(70px);
}

/* --- Dynamic Running Metrics Bar --- */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
  margin-top: 40px;
}

.metric-item {
  text-align: center;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.metric-item:last-child {
  border-right: none;
}

.metric-item h3 {
  font-size: 3rem;
  color: var(--text-dark);
  font-weight: 800;
}

.metric-item p {
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 5px;
  font-size: 0.95rem;
}

.metric-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 5px;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  contain: content; /* SEO optimization for heavy render layouts */
}

.service-card {
  padding: 45px 35px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-img-frame {
  height: 200px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 10px;
}

.service-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img-frame img {
  transform: scale(1.05);
}

/* --- Doctors Grid --- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  contain: content; /* SEO performance boost: limits paint calculation loops */
}

.doctor-card {
  padding: 24px;
  text-align: center;
}

.doctor-img-box {
  width: 100%;
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
}

.doctor-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.doctor-card .specialty {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.doctor-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.doctor-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.doctor-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid var(--glass-border);
}

.doctor-socials a:hover {
  background: var(--text-dark);
  color: #ffffff;
}

/* --- Continuously Dynamic Review Ticker --- */
.reviews-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
}

.testimonial-card {
  width: 420px;
  padding: 40px;
  flex-shrink: 0;
  cursor: pointer;
}

.stars {
  color: #0f172a;
  margin-bottom: 20px;
}

.patient-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.patient-profile img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- Booking Modal Glassmorphic System --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.booking-modal {
  width: 90%;
  max-width: 580px;
  padding: 40px;
  border-radius: 32px;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-overlay.active .booking-modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
}
.close-modal {
  cursor: pointer;
  font-size: 1.3rem;
  opacity: 0.6;
  transition: 0.3s;
  padding: 8px; /* Safe minimum targets check */
}
.close-modal:hover {
  opacity: 1;
}

/* --- Custom Interactive Cards Setup --- */
.appointment-deck {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 25px;
}

.appointment-slot-card {
  padding: 20px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.appointment-slot-card:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(15, 23, 42, 0.15);
}

.appointment-slot-card.card-selected {
  background: #ffffff;
  border-color: var(--text-dark);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.slot-details h5 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.slot-details p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.slot-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-dark);
}

/* --- Dynamic Patient Intake Form Area --- */
.intake-form-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.intake-form-wrapper.visible {
  max-height: 400px;
  opacity: 1;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.form-group input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: 0.3s;
}
.form-group input:focus {
  border-color: var(--text-dark);
  background: #ffffff;
}

/* --- Footer (Clean Bottom Mount Setup) --- */
footer {
  margin-top: auto;
  padding: 80px 6% 40px;
  border-radius: 48px 48px 0 0;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 50px;
}

.footer-column h4 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 25px;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-column ul a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s;
  padding: 4px 0; /* UX optimization for crawler link detection layout health */
}

.footer-column ul a:hover {
  color: var(--text-dark);
}

.schedule-table li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- Responsive Viewports --- */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .hero-master-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }
  .metrics-bar {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .metric-item {
    border: none;
  }
  .metric-item:nth-child(odd) {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
  }
}

@media (max-width: 640px) {
  /* Dynamic alignment changes for navbar container on mobile sizes */
  nav {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 20px;
    width: 95%;
  }

  /* Fixed from display:none to visible flex list */
  .nav-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    padding: 5px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
  }

  .nav-links a {
    font-size: 0.9rem;
    font-weight: 700;
  }

  nav .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero-master-card {
    padding: 35px 24px;
    border-radius: 36px;
    gap: 30px;
  }
  .metrics-bar {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    margin-top: 25px;
  }
  .metric-item {
    border-right: none !important;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
  .metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
  }
  .hero-content p {
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 30px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-tag {
    display: flex;
    margin: 0 auto 20px;
    width: max-content;
  }
  
  .badge-card {
    display: none;
  }
  .hero-visual-wrapper {
    height: 320px;
  }
  .hero-main-card {
    width: 100%;
    transform: none !important;
    border-radius: 24px;
    height: 100%;
  }
  .hero-depth-base {
    display: none;
  }
  .appointment-slot-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Adjust marquee framework vertically on smaller screens */
  .reviews-marquee-wrapper {
    mask-image: linear-gradient(
      to bottom,
      transparent,
      #000 10%,
      #000 90%,
      transparent
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent,
      #000 10%,
      #000 90%,
      transparent
    );
    height: 500px;
  }
  .marquee-track {
    flex-direction: column;
    width: 100%;
    height: max-content;
    align-items: center;
  }
  .testimonial-card {
    width: 100%;
    max-width: 420px;
  }
}
/* ==========================================================================
   BULLETPROOF RESPONSIVE NAVIGATION & CORRECT 'X' TRANSFORMS
   ========================================================================== */

/* Force layout container to hold its structure on a single row */
nav.glass-box {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: relative !important;
}

#menu-toggle {
  display: none !important;
}

/* Define explicit rendering values for the hamburger container */
.hamburger-btn {
  display: none;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 26px !important;
  height: 18px !important;
  cursor: pointer !important;
  z-index: 1000 !important;
}

/* Force lines to have structural thickness and center orientation origins */
.hamburger-btn span {
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  background-color: #0f172a !important; 
  border-radius: 4px !important;
  
  /* 🌟 FIX: Force lines to rotate around their exact center point, preventing the tick mark bug */
  transform-origin: center !important; 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINT SWITCH (TRIGGERS AT 1260PX FOR 8 LINK ITEMS)
   ========================================================================== */
@media (max-width: 1260px) {
  
  .hamburger-btn {
    display: flex !important;
  }

  nav .nav-links {
    position: absolute !important;
    top: calc(100% + 15px) !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.96) !important; 
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05) !important;
    
    flex-direction: column !important;
    padding: 30px !important;
    gap: 15px !important;
    align-items: stretch !important;
    text-align: center !important;
    margin: 0 !important;
    
    opacity: 0 !important;
    transform: translateY(-15px) !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    z-index: 999 !important;
  }

  nav .nav-links li {
    width: 100% !important;
    margin: 0 !important;
  }

  nav .nav-links li a {
    display: block !important;
    padding: 12px !important;
    width: 100% !important;
    font-size: 1.1rem !important;
    color: #0f172a !important;
    background: transparent !important;
  }

  /* Restyle the final list item into a real button inside mobile overlay menu */
  nav .nav-links .book-btn {
    background: #0f172a !important; 
    color: #ffffff !important;      
    border-radius: 14px !important;  
    padding: 14px 24px !important;  
    font-weight: 700 !important;    
    margin-top: 10px !important;     
  }

  /* ==========================================================================
     OPENED MENU 'X' ANIMATION TRIGGERS
     ========================================================================== */
  
  #menu-toggle:checked ~ .nav-links {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  /* 🌟 FIX: Balanced structural rotation values that form a perfect 'X' */
  #menu-toggle:checked ~ .hamburger-btn span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg) !important;
  }

  #menu-toggle:checked ~ .hamburger-btn span:nth-child(2) {
    opacity: 0 !important;
  }

  #menu-toggle:checked ~ .hamburger-btn span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg) !important;
  }
}

/* --- Desktop Layout Custom Button Style --- */
@media (min-width: 1261px) {
  nav .nav-links .book-btn {
    background: #0f172a !important; 
    color: #ffffff !important;      
    padding: 10px 20px !important;  
    border-radius: 12px !important; 
    font-weight: 700 !important;
    transition: background-color 0.2s ease !important;
  }
  nav .nav-links .book-btn:hover {
    background: #1e293b !important; 
  }
}

/* ==========================================================================
   PREMIUM MAGNETIC PULSE UNDERLINE SYSTEM (NAV & FOOTER LINKS)
   ========================================================================== */

/* 1. Clear styling and anchor contexts */
.nav-links li a,
.footer-links a,
.footer-section ul li a,
footer a {
  position: relative !important;
  text-decoration: none !important;
  padding-bottom: 6px !important; /* Spaces text away from the rising baseline */
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 2. Construct the Invisible Double-Sided Magnetic Dot baseline */
.nav-links li a::after,
.footer-links a::after,
.footer-section ul li a::after,
footer a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 0 !important;
  height: 2px !important;
  background-color: #0f172a !important; /* Deep Premium Charcoal Black Line */
  border-radius: 4px !important;
  opacity: 0 !important;
  
  /* Elastic bounce easing curve to mimic magnetic spring physics */
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              left 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s ease !important;
}

/* 3. Active Elastic Stretch Target Trigger on Hover */
.nav-links li a:hover::after,
.footer-links a:hover::after,
.footer-section ul li a:hover::after,
footer a:hover::after {
  width: 100% !important;
  left: 0 !important;
  opacity: 1 !important;
}
/* ==========================================================================
   THE UNSEEN: CINEMATIC LIQUID MERCURY INVERSION SYSTEM
   ========================================================================== */

/* 1. Base Shell Container Setup */
.whatsapp-hero-btn, .cta-btn.solid {
  position: relative !important;
  overflow: hidden !important;
  z-index: 1 !important;
  background: #0f172a !important; /* Rich baseline charcoal */
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  
  /* Highly-cushioned matching deceleration transition timeline */
  transition: 
    color 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.8s ease !important;
}

/* 2. Slow Luxurious Liquid Pulse Engine */
.whatsapp-hero-btn::before, .cta-btn.solid::before {
  content: '' !important;
  position: absolute !important;
  
  /* Anchor to bottom-center to act as a droplet impact point */
  bottom: -50px !important;
  left: 50% !important;
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important; /* Perfect circle container */
  background: #ffffff !important; /* Pure Stark White Liquid */
  z-index: -1 !important;
  
  /* Flattened and shrunk to a single dot, positioned out of viewport */
  transform: translate(-50%, 50%) scale(0) !important;
  
  /* 1.2 Second Duration with an ultra-smooth cinematic deceleration curve */
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform-origin: center center !important;
}

/* ==========================================================================
   HYDRAULIC EXPLOSION TRIGGER STATE (HOVER STATE)
   ========================================================================== */

.whatsapp-hero-btn:hover, .cta-btn.solid:hover {
  color: #0f172a !important; /* Ink drops font to deep charcoal */
  border-color: #ffffff !important;
  transform: scale(1.04) translateY(-3px) !important; /* Elegant floating lift */
}

/* Force the fluid element to expand gracefully from the bottom center */
.whatsapp-hero-btn:hover::before, .cta-btn.solid:hover::before {
  transform: translate(-50%, 50%) scale(4.5) !important;
}