/**
 * The Molar Dental Care — Clean Responsive Overrides
 * Only contains critical mobile fixes and requested animations.
 * Non-destructive to original Webflow desktop design.
 */

/* ── 1. ANIMATIONS (All Screens) ── */

.hero-avatar-list {
  animation: orbit-circle 60s linear infinite;
  transform-origin: center center;
  left: 50% !important;
}

.avatar-category-item {
  animation: counter-orbit 60s linear infinite;
  background-color: #7d2925;
  color: white;
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 600;
}

.hero-button-info {
  z-index: 25;
}

@keyframes rotate-circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-icon { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-circle {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes counter-orbit {
  from { transform: rotate(90deg) rotate(0deg); } 
  to { transform: rotate(90deg) rotate(-360deg); }
}

/* ── 2. MOBILE & TABLET FIXES (≤991px) ── */

@media screen and (max-width: 991px) {
  /* Logo scaling only on smaller screens */
  .logo {
    height: 44px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain !important;
  }

  /* Reliable Mobile Menu Interaction Overrides */
  .nav-menu.w--open {
    display: block !important;
    visibility: visible !important;
    background-color: #fdf2f2 !important;
    z-index: 1002 !important;
    opacity: 1 !important;
    top: 100% !important;
  }
}

/* Mobile-specific form and animation tweaks */
@media screen and (max-width: 479px) {
  .form-input, .contact-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .grid-form-input {
    grid-template-columns: 1fr !important;
  }

  /* Speed up orbit on mobile for better visibility */
  .hero-avatar-list {
    animation-duration: 40s !important;
  }
  
  .logo {
    height: 38px !important;
    max-width: 100px !important;
  }
}

/* ── 3. UTILITY ── */
.review-ticker, .about-gallery-ticker, .online-services-track {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll globally on mobile */
@media screen and (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
    position: relative;
  }
}

/* Site-wide fix for long email addresses (e.g. consultation@themolardentalcare.in) */
.footer-contact-title, 
.appointment-call-title, 
.address-title, 
.accordion-description,
.error-message {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* Feature (Our Values) Section Shape Enhancements */
.feature-icon-item {
  border-radius: 50% !important;
  box-shadow: 0 4px 15px rgba(125, 41, 37, 0.1);
  background-color: #fff !important;
  border: 1px solid rgba(125, 41, 37, 0.05) !important;
  transition: transform 0.3s ease;
  overflow: visible !important;
}

.feature-item-right:hover .feature-icon-item {
  transform: scale(1.1);
  background-color: #fdf2f2 !important;
}

.feature-icon {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
}

.feature-bg-video {
  border-radius: 2.5rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden !important;
}

/* Smile Assessment Section Brand Theme */
.assessment-select:focus {
  outline: none;
  border-color: #7d2925;
}

.assessment-result-card {
  background: linear-gradient(145deg, #ffffff, #fdf2f2) !important;
}

.result-label {
  color: #7d2925 !important;
}

.btn-assessment-primary {
  background-color: #7d2925 !important;
}

.btn-assessment-primary:hover {
  background-color: #9e3d39 !important;
}

.btn-assessment-secondary:hover {
  background-color: #fdf2f2 !important;
  border-color: #7d2925 !important;
  color: #7d2925 !important;
}

@media screen and (max-width: 767px) {
  .assessment-grid {
    grid-template-columns: 1fr !important;
  }
  .assessment-actions {
    flex-direction: column !important;
  }
}
