/*==================================================
  Dr. Javed Fazal | Consultant Urologist
  style.css — Supplementary styles
  (Primary styling is handled by Tailwind CDN utility
  classes directly in index.html. This file only
  contains the small set of rules Tailwind utilities
  can't express.)
==================================================*/

/* ===================== Base ===================== */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #0A6EBD;
    color: #ffffff;
}

/* ===================== Scrollbar ===================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: #0A6EBD;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #075a99;
}

/* ===================== Header ===================== */

/* No background-color rule here on purpose: the header is
   transparent by default (no bg-* class in the HTML) and
   script.js adds Tailwind's "bg-white shadow-lg" classes on
   scroll. An ID selector here would out-rank those utility
   classes and permanently force the header transparent. */

#header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#header.scrolled {
    backdrop-filter: saturate(180%) blur(8px);
}

/* ===================== Loader ===================== */

#loader {
    transition: opacity 0.5s ease;
}

/* ===================== FAQ ===================== */

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    animation: faqOpen 0.3s ease forwards;
}

@keyframes faqOpen {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== Form Notice ===================== */

.form-notice {
    animation: faqOpen 0.3s ease forwards;
}

/* ===================== Focus Accessibility ===================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #14B8A6;
    outline-offset: 2px;
}

/* ===================== Floating WhatsApp Button ===================== */

#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===================== Reduced Motion ===================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
