/* ===================================
   Amex Pharmacy Number 3 - Custom Styles
   =================================== */

/* CSS Custom Properties */
:root {
    --color-coral-500: #ff6b4a;
    --color-coral-600: #e85a3a;
    --color-coral-100: #ffe8e2;
    --color-charcoal-900: #1a1a1a;
    --color-charcoal-800: #2d2d2d;
    --color-charcoal-700: #404040;
    --color-charcoal-600: #525252;
    --color-charcoal-500: #737373;
    --color-charcoal-400: #a3a3a3;
    --color-charcoal-200: #d4d4d4;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
}

/* Clip Path for Hero */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Navigation */
.nav-text {
    font-family: var(--font-serif);
}

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

/* Reveal Animations */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Scroll Reveal (for below-fold content) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Hover Effects */
a, button {
    transition: all var(--transition-normal);
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--color-coral-500);
    outline-offset: 2px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: var(--color-stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-charcoal-600);
}

/* Selection Color */
::selection {
    background: var(--color-coral-500);
    color: white;
}

/* Mobile Menu Transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), opacity var(--transition-normal);
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Image Hover Zoom */
img {
    transition: transform var(--transition-slow);
}

/* Form Input Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.15);
}

/* Back to Top Button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:not(.visible) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .clip-diagonal {
        clip-path: none;
    }
    
    h1, h2, h3 {
        line-height: 1.2;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #back-to-top,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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