/* ============================================
   American Hospital Supply — Custom Styles
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(184, 93, 70, 0.2);
    color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #d0c4b4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B85D46;
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   Content is visible by default; JS adds animation
   ============================================ */
@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);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    will-change: transform;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(142, 148, 136, 0.15);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   Hero
   ============================================ */
#hero {
    min-height: 100vh;
    min-height: 100dvh;
}

/* ============================================
   Buttons
   ============================================ */
button, a[type="submit"] {
    cursor: pointer;
}

/* ============================================
   Input Focus States
   ============================================ */
input:focus, textarea:focus {
    outline: none;
}

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

@media (min-width: 641px) and (max-width: 1024px) {
    /* Tablet adjustments if needed */
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar, #mobileMenu, button, .scroll-reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
