/* Custom Styles for Plymouth Podiatry */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent content flash on load */
body {
    opacity: 1;
}

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

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

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

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

/* Navigation transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B4A;
    transition: width 0.3s ease;
}

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

/* Service cards hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B4A, #E85535);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Patient cards hover effect */
.patient-card {
    position: relative;
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure all text is readable */
.text-white {
    color: #ffffff;
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-charcoal-700 {
    color: #27272A;
}

.text-charcoal-600 {
    color: #3F3F46;
}

.text-charcoal-500 {
    color: #52525B;
}

.text-charcoal-800 {
    color: #18181B;
}

/* High contrast for important text */
.font-semibold {
    font-weight: 600;
}

/* Ensure form inputs have good contrast */
input,
select,
textarea {
    background-color: #ffffff;
}

/* Mobile menu link hover */
.mobile-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Hero section responsive adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1025px) {
    #hero h1 {
        font-size: 4.5rem;
    }
}

/* Print styles */
@media print {
    nav,
    #mobile-menu-btn,
    .animate-bounce {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-gradient-to-br {
        background: #fff !important;
    }
}
