/* ==========================================================================
   Aruvi Homeo Clinic — Custom Styles & Gentle Motion
   ========================================================================== */

:root {
  --brand-teal: #1B5E63;
  --brand-sage: #6E8F4E;
  --brand-cream: #FAF7F0;
  --brand-mint: #EAF4F2;
  --brand-slate: #1F2937;
}

/* Smooth scrolling with offset for sticky navbar */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

/* Enhance Tamil typography readability when site is in Tamil mode */
html[lang="ta"] body {
  font-family: "Noto Sans Tamil", "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.65;
}

html[lang="ta"] h1,
html[lang="ta"] h2,
html[lang="ta"] h3 {
  font-family: "Noto Sans Tamil", "Playfair Display", Georgia, serif;
  line-height: 1.35;
}

/* Subtle custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--brand-cream);
}

::-webkit-scrollbar-thumb {
  background: rgba(27, 94, 99, 0.3);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(27, 94, 99, 0.55);
}

/* Gentle Scroll Fade-In Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Interactive FAQ Accordion Transition */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.faq-panel > div {
  overflow: hidden;
}

.faq-panel.open {
  grid-template-rows: 1fr;
}

/* Selected Condition Card Highlight */
.condition-card.is-selected {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
  box-shadow: 0 12px 26px -8px rgba(27, 94, 99, 0.35);
}

.condition-card.is-selected .cond-primary {
  color: #ffffff;
}

.condition-card.is-selected .cond-secondary {
  color: rgba(255, 255, 255, 0.88);
}

.condition-card.is-selected > div {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* Form Validation Error Styling */
.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}
