/* ========================================
   Zli Wellness Acupuncture - Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar-thumb {
    background: #115e59;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Selection color */
::selection {
    background-color: #115e59;
    color: #fff;
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #115e59;
    outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* ========================================
   Navbar Transitions
   ======================================== */
#navbar.scrolled {
    background-color: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-serif {
    color: #0f172a !important;
}

#navbar.scrolled .text-teal-700 {
    color: #115e59 !important;
}

#navbar.scrolled a:not(.bg-teal-700) {
    color: #475569 !important;
}

#navbar.scrolled a:not(.bg-teal-700):hover {
    color: #115e59 !important;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    transition: all 0.3s ease;
}

/* ========================================
   Service Cards
   ======================================== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(17, 94, 89, 0.1);
}

/* ========================================
   Button Hover Effects
   ======================================== */
button[type="submit"]:hover {
    transform: translateY(-1px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ========================================
   Image Hover Effects
   ======================================== */
img {
    will-change: transform;
}

/* ========================================
   Section Spacing
   ======================================== */
section {
    position: relative;
}

/* ========================================
   Decorative Line Animation
   ======================================== */
@keyframes growDown {
    from {
        height: 0;
    }
    to {
        height: 128px;
    }
}

@keyframes growRight {
    from {
        width: 0;
    }
    to {
        width: 128px;
    }
}

/* ========================================
   Pulse Animation for Status Indicator
   ======================================== */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    #navbar,
    #mobile-menu,
    .animate-pulse {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
}
