/* ========================================
   Bootheel Drugs - Custom Styles
   Classic & Elegant Pharmacy Website
======================================== */

/* Custom Properties */
:root {
    --color-midnight: #0f2b4c;
    --color-midnight-light: #1a3d5c;
    --color-mint: #4ade80;
    --color-mint-dark: #22c55e;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-600: #475569;
    --color-slate-800: #1e293b;
    
    --font-playfair: 'Playfair Display', Georgia, serif;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(15, 43, 76, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 43, 76, 0.1), 0 2px 4px -1px rgba(15, 43, 76, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 43, 76, 0.1), 0 4px 6px -2px rgba(15, 43, 76, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 43, 76, 0.1), 0 10px 10px -5px rgba(15, 43, 76, 0.04);
}

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

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

body {
    font-family: var(--font-inter);
    color: var(--color-slate-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.font-playfair {
    font-family: var(--font-playfair);
}

.font-inter {
    font-family: var(--font-inter);
}

/* Custom Gradient for Hero */
.bg-gradient-hero {
    background: linear-gradient(135deg, var(--color-midnight) 0%, #1a3d5c 50%, #0d2440 100%);
}

/* Decorative Circles */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: var(--color-mint);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--color-mint);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.08; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.12; }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-mint);
    color: var(--color-midnight);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid var(--color-mint);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--color-mint-dark);
    border-color: var(--color-mint-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.btn-secondary:hover {
    background: white;
    color: var(--color-midnight);
    border-color: white;
    transform: translateY(-2px);
}

/* Input Fields */
.input-field {
    font-family: var(--font-inter);
    font-size: 0.95rem;
}

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 43, 76, 0.05);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-mint);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--color-midnight);
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Service Cards */
.service-card {
    border: 1px solid var(--color-slate-100);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-mint);
    transform: translateY(-4px);
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Fade Animation */
.section-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Content Animation Delay */
.hero-content {
    animation-delay: 0.2s;
}

/* Scroll Indicator */
.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .circle-3 {
        width: 100px;
        height: 100px;
    }
    
    .font-playfair.text-5xl {
        font-size: 2.5rem;
    }
    
    .font-playfair.text-4xl {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .animate-bounce,
    .decoration-circle {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}

/* Accessibility */
@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;
    }
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--color-mint);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--color-mint);
    color: var(--color-midnight);
}
