/* 
   Partners in Rural Clinical Care - Custom CSS Styles
   Modernized with Tailwind integration
*/

:root {
    --color-purple-dark: #4b2e83;
    --color-purple-light: #8a4af3;
    --color-coral: #ff6f61;
    --color-coral-light: #ffb4ad;
    --color-sage: #7c9c8a;
    --color-beige: #f5f2ea;
    --color-warm-brown: #8b6c5c;
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
    scroll-padding-top: 8rem; /* Account for taller header */
    scroll-behavior: smooth;
    background-color: var(--color-beige);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
}

/* Custom Background Colors */
.bg-gradient-purple {
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple-light) 100%);
}

.bg-gradient-warm {
    background: linear-gradient(135deg, #4b2e83 0%, #6a4098 100%);
}

.bg-coral {
    background-color: var(--color-coral);
}

.bg-sage {
    background-color: var(--color-sage);
}

.bg-beige {
    background-color: var(--color-beige);
}

.bg-white-section {
    background-color: white;
}

/* Custom Text Colors */
.text-coral {
    color: var(--color-coral);
}

.text-purple-custom {
    color: var(--color-purple-dark);
}

.hover-coral:hover {
    color: var(--color-coral);
}

/* Custom Border Colors */
.border-coral {
    border-color: var(--color-coral);
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Header styles */
.header-shadow {
    box-shadow: 0 4px 20px rgba(75, 46, 131, 0.15);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-coral);
    transition: width 0.3s ease;
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 100%;
}

/* Content Container */
.content-container {
    position: relative;
    z-index: 1;
}

.footer-pattern {
    background-color: var(--color-purple-dark);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-in;
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slideIn {
    animation: slideIn 1s ease-out;
}

/* Animation for Service Cards on Hover */
.service-card .service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Social media icons */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.social-icon:hover {
    background-color: var(--color-coral);
    transform: translateY(-3px);
}

/* Success Stories */
.success-story-quote {
    position: relative;
}

.success-story-quote::before {
    content: """;
    position: absolute;
    top: -30px;
    left: -20px;
    font-size: 5rem;
    color: var(--color-coral);
    opacity: 0.2;
    font-family: 'Merriweather', serif;
}

/* Blog Post Cards */
.blog-post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-post-card .blog-image {
    transition: transform 0.5s ease;
    overflow: hidden;
}

.blog-post-card:hover .blog-image img {
    transform: scale(1.05);
}

/* Call to Action Buttons */
.cta-button {
    background-color: var(--color-coral);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.4);
}

/* Hero Section Specific Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -5rem;
    right: -5rem;
    width: 15rem;
    height: 15rem;
    background-color: rgba(255, 111, 97, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -5rem;
    left: -5rem;
    width: 20rem;
    height: 20rem;
    background-color: rgba(75, 46, 131, 0.05);
    border-radius: 50%;
    z-index: -1;
}

/* Footer Styles */
footer {
    position: relative;
    width: 100%;
    z-index: 10;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

footer .social-icon {
    transition: transform 0.3s ease;
}

footer .social-icon:hover {
    transform: translateY(-3px);
}

/* Navigation Enhancements */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-coral);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section::after,
    .hero-section::before {
        display: none;
    }
    
    nav a::after {
        bottom: -2px;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
}