/* ========================================
   Elsa Pharmacy — Custom Styles
   ======================================== */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ========================================
   Floating Animations
   ======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ========================================
   Scroll Reveal (progressive enhancement)
   Only applied when JS is available and
   user prefers motion — content remains
   visible by default for no-JS readers.
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

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

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

#navbar.scrolled .text-charcoal-800 {
    color: #1f2937 !important;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fb923c;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    cursor: default;
}

/* ========================================
   Buttons & Links
   ======================================== */
a {
    text-decoration: none;
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
textarea:focus {
    border-color: #fb923c !important;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15) !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: #ffe8de;
    color: #1f2937;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.25rem;
    }

    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    #navbar,
    #mobile-menu-btn,
    .animate-float,
    .animate-float-delayed {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
