/* =============================================
   TEETH CARE CENTRE — Premium Dental Website
   Custom Styles (Complementary to Tailwind)
   ============================================= */

/* Base & Resets */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #042f2e; }
::-webkit-scrollbar-thumb { background: #0d9488; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #14b8a6; }

/* ===================== HEADER ===================== */
#main-header.scrolled #top-bar {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

#main-header.scrolled #navbar {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ---- Dropdown items ---- */
.dropdown-item {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  color: #374151;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.dropdown-item:hover {
  background: #f0fdfa;
  color: #0d9488;
  padding-left: 14px;
}

/* ---- Mobile nav items ---- */
.mobile-nav-item {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  border-radius: 12px;
  transition: all 0.15s;
}
.mobile-nav-item:hover {
  background: #f0fdfa;
  color: #0d9488;
}

/* ===================== HERO ===================== */
/* Hero fade-up animations for elements with opacity:0 */
[style*="opacity:0"] {
  animation-fill-mode: forwards;
}

/* ===================== TREATMENT CARDS ===================== */
.treatment-card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.treatment-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
  opacity: 0;
  transition: opacity 0.35s;
  border-radius: 20px;
}

.treatment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(13, 148, 136, 0.12);
  border-color: #5eead4;
}

.treatment-card:hover::before {
  opacity: 1;
}

.treatment-card > * {
  position: relative;
  z-index: 1;
}

.service-tag {
  display: inline-block;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid #ccfbf1;
}

/* ===================== DOCTOR CARDS ===================== */
.doctor-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(13, 148, 136, 0.12);
  border-color: #99f6e4;
}

/* ===================== FORM INPUTS ===================== */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1f2937;
  background: white;
  transition: all 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

select.form-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding-right: 40px;
  cursor: pointer;
}

/* ===================== CONTACT INFO CARDS ===================== */
.contact-info-card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.25s;
  display: block;
}

.contact-info-card:hover {
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.10);
  border-color: #5eead4;
  transform: translateY(-3px);
}

/* ===================== FOOTER ===================== */
.footer-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: rgba(204, 251, 241, 0.60);
  font-weight: 500;
  transition: all 0.2s;
  gap: 6px;
}

.footer-link::before {
  content: '→';
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
  font-size: 12px;
  color: #2dd4bf;
}

.footer-link:hover {
  color: #2dd4bf;
  padding-left: 4px;
}

.footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(204, 251, 241, 0.70);
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.08);
}

.social-btn:hover {
  background: #0d9488;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

/* ===================== REVEAL ON SCROLL ===================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== TESTIMONIAL CAROUSEL ===================== */
#testimonial-slides {
  will-change: transform;
}

/* Dot indicator */
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: #cbd5e1;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  width: 24px;
  background: #0d9488;
}

/* ===================== COUNTER ===================== */
.counter-suffix {
  font-size: 0.7em;
  vertical-align: super;
}

/* ===================== TRUST BANNER ===================== */
.trust-item {
  transition: transform 0.2s;
}

/* ===================== FLOATING CTA BUTTON ANIMATION ===================== */
#floating-whatsapp {
  animation: float-wa 3s ease-in-out infinite;
}

@keyframes float-wa {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

#floating-whatsapp:hover {
  animation-play-state: paused;
}

/* ===================== HERO ANIMATIONS ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 640px) {
  .treatment-card {
    padding: 22px 18px;
  }

  .doctor-card .p-6 {
    padding: 20px 16px;
  }
}

/* ===================== PRINT ===================== */
@media print {
  #main-header, #floating-whatsapp, footer { display: none; }
}
