/* Custom styles for Sarasota Health Solution */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    color: #1f2937;
    background-color: #fef7f6;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

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

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

::-webkit-scrollbar-thumb {
    background: #b92445;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #961a38;
}

/* Hero background */
.hero-bg {
    background-image: linear-gradient(135deg, rgba(58, 11, 23, 0.88) 0%, rgba(103, 22, 43, 0.82) 50%, rgba(150, 26, 56, 0.75) 100%), 
                      url('https://images.pexels.com/photos/29110703/pexels-photo-29110703.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Section divider */
.section-divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #961a38, #d94062);
    border-radius: 2px;
}

/* Service cards */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(150, 26, 56, 0.25);
}

/* Navigation links */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #961a38 0%, #b92445 100%);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7a1831 0%, #961a38 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(150, 26, 56, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Outline button */
.btn-outline {
    border: 2px solid #fce7eb;
    color: #fce7eb;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background: #fce7eb;
    color: #3a0b17;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

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

/* Decorative ornament */
.ornament {
    color: #d94062;
    font-size: 1.5rem;
    line-height: 1;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        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; }
}

/* Form styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #d94062 !important;
    box-shadow: 0 0 0 3px rgba(217, 64, 98, 0.1) !important;
}

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

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d94062;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-bg {
        background: #3a0b17 !important;
        background-image: none !important;
    }
    
    .service-card {
        break-inside: avoid;
    }
}
