/* Piedmont Pharmacy — Custom Styles */

/* Base adjustments */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

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

/* Smooth focus outlines */
:focus-visible {
    outline: 2px solid #c9704e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on images */
img, svg {
    display: block;
}

/* Subtle text rendering */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 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;
    }
    
    .float-slow,
    .float-medium,
    .float-fast {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuBtn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: #36312e !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .hover-lift {
        border: 1px solid ButtonText;
    }
}

/* Touch device adjustments */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover {
        transform: none;
    }
    
    a:hover, button:hover {
        opacity: 0.85;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
}

/* Small phone adjustments */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
