/* ============================================
   Thamer Medical PLLC — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f8;
}
::-webkit-scrollbar-thumb {
    background: #7B2D5B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5C1A3A;
}

/* Selection color */
::selection {
    background: #7B2D5B;
    color: #fff;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — content is visible
   by default, JS adds the animation class.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 91, 0.08);
}

#navbar.scrolled .font-serif {
    color: #7B2D5B !important;
}

#navbar.scrolled .text-plum-900\/70 {
    color: rgba(123, 45, 91, 0.7) !important;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.2s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

/* Subtle gradient animation on hero background */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   Service Cards
   ============================================ */
.group:hover .group-hover\:bg-plum-100 {
    background-color: #fce7f3;
}

.group:hover .group-hover\:bg-amber-100 {
    background-color: #FDE68A;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(123, 45, 91, 0.1);
}

/* ============================================
   Button hover lift effect
   ============================================ */
button, a {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar, #contact-form, #form-success {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
