/* Custom styles for Medcare Medical Pharmacy */

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #fefdfb;
    color: #1c1917;
    line-height: 1.6;
}

/* Typography */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #d4733a;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Hairline divider */
.hairline {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(161, 68, 32, 0.2), transparent);
}

/* Text shadow for hero */
.text-shadow-subtle {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu styles */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 400px;
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #d4733a;
    outline-offset: 2px;
}

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

/* Form styles */
input,
textarea {
    background-color: #fefdfb;
    color: #1c1917;
}

input::placeholder,
textarea::placeholder {
    color: #a8a29e;
}

/* Testimonial card hover */
.fade-in:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Section spacing */
section {
    position: relative;
}

/* Custom gradient backgrounds */
.bg-gradient-custom {
    background: linear-gradient(135deg, #fdf8ef 0%, #fdf6f0 50%, #f9edcf 100%);
}
