/* 
  Manipal Dental Clinic - Fresh Mint Theme
*/

:root {
  /* Colors - Fresh & Modern */
  --color-primary: #0d9488; /* Teal 600 */
  --color-primary-dark: #115e59; /* Teal 800 */
  --color-primary-light: #99f6e4; /* Teal 200 */
  --color-secondary: #f0fdfa; /* Mint 50 */
  --color-accent: #f59e0b; /* Amber 500 (Gold) */
  --color-bg: #ffffff;
  --color-text: #334155; /* Slate 700 */
  --color-heading: #134e4a; /* Teal 900 */
  
  /* Typography */
  --font-heading: 'Lexend', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Effects */
  --shadow-soft: 0 10px 40px -10px rgba(13, 148, 136, 0.15);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
}

/* Base */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: radial-gradient(#ccfbf1 1px, transparent 1px);
  background-size: 40px 40px; /* Subtle dot pattern */
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
}

/* Utility */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 2.5rem 0; }

/* Navigation */
.nav-sticky {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 7rem; /* Increased for better header clearance */
  padding-bottom: 2rem;
}

.hero-blob {
  position: absolute;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.6;
}

.gmb-badge {
    background: white;
    padding: 0.8rem 1.8rem;
    border-radius: 99px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    border: 1px solid #f1f5f9;
    margin-top: 1.5rem;
    animation: fadeIn 1s ease-out;
}

.gmb-stars {
    color: #f59e0b;
    display: flex;
    gap: 2px;
}

.blob-1 { top: -10%; right: -10%; width: 500px; height: 500px; background: #ccfbf1; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; animation: morph 10s infinite alternate; }
.blob-2 { bottom: 10%; left: -5%; width: 300px; height: 300px; background: #ffe4e6; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; animation: morph 8s infinite alternate-reverse; }

.hero-image-container {
  position: relative;
  perspective: 1000px;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 40px rgba(13, 148, 136, 0.2));
  transition: transform 0.1s ease-out;
}

/* Floating Elements Animation */
.float { animation: float 6s ease-in-out infinite; }
.float-delay { animation: float 6s ease-in-out 3s infinite; }

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

@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(-5%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
.animate-bounce-slow {
  animation: bounce-slow 3s infinite;
}

/* Service Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem; /* Increased padding */
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(13, 148, 136, 0.05);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1);
  border-color: var(--color-primary-light);
}

.card::after {
  content: 'Learn More →';
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 1.2rem; /* More square-round radius */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover .icon-box {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.card:hover .icon-box i {
  color: white !important;
}

/* Buttons */
.btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

/* Stats Counter */
.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

/* Modal System */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.modal-content {
  background: white;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 2.5rem;
  position: relative;
  transform: translateY(100px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 3rem 3rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 0 3rem 3rem;
  overflow-y: auto;
}

.close-modal {
  background: #f1f5f9;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
}

.close-modal:hover {
  background: #e2e8f0;
  color: #ef4444;
  transform: rotate(90deg);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 2rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 1.5rem;
  border: 1px solid #f1f5f9;
}

.benefit-item i {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

/* Testimonials Carousel */
.testimonial-carousel-wrapper {
    position: relative;
    padding: 0 3rem; /* Space for arrows */
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 3rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    scroll-behavior: smooth;
}

.testimonial-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.testimonial-track .testimonial-card {
    flex: 0 0 100%; /* Default mobile: 1 card */
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .testimonial-track .testimonial-card {
        flex: 0 0 calc(50% - 1rem); /* Tablet: 2 cards */
    }
}

@media (min-width: 1024px) {
    .testimonial-track .testimonial-card {
        flex: 0 0 calc(33.333% - 1.333rem); /* Desktop: 3 cards */
    }
}

/* Nav Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.2);
}

.carousel-nav-btn.prev { left: 0; }
.carousel-nav-btn.next { right: 0; }

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.08);
    border-color: var(--color-primary-light);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    opacity: 0.1;
    margin-bottom: -1.5rem;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #f8fafc;
}

.patient-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
}

.review-stars {
    color: var(--color-accent);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 2px;
}

.treatment-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--color-heading);
  color: #ccfbf1;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 1.2rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: #0d9488;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.05);
}

.faq-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-header h4 {
    font-weight: 600;
    color: #0d9488;
}

.faq-icon {
    width: 2rem;
    height: 2rem;
    background: #f0fdfa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: #0d9488;
    color: white;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .hero-section { padding-top: 6rem; text-align: center; }
  .hero-image-container { margin-top: 3rem; }
}

/* 2-Column Mobile Services Layout */
@media (max-width: 640px) {
  .section-padding {
    padding: 3rem 0;
  }
  .card {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .icon-box {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
  }
  .card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .card p {
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
  }
  .card::after {
    display: none; /* Hide 'Learn More' on small mobile cards for space */
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}
