/* Import color variables */
:root {
    --primary-color: #008B8B;  /* Teal color from header */
    --secondary-color: #4B0082;  /* Deep purple */
    --accent-color: #FFA500;  /* Orange */
    --text-color: #333333;
    --light-gray: #F5F7FA;
    --white: #ffffff;
    
    /* Quick link colors */
    --purple-btn: #800080;  /* Assessment Purple */
    --green-btn: #4CAF50;   /* Service Areas Green */
    --yellow-btn: #FFD700;  /* Referrals Yellow */
    --orange-btn: #FF6347;  /* Caregivers Orange */

    /* Service card colors */
    --service-purple: #9B59B6;  /* Purple for Skilled Nursing */
    --service-green: #2ECC71;   /* Green for Speech Therapy */
    --service-yellow: #F1C40F;  /* Yellow for Occupational */
    --service-red: #E74C3C;     /* Red for Physical Therapy */
}

/* Services Hero Section */
.services-hero {
    background: linear-gradient(135deg, rgba(0,139,139,0.95), rgba(75,0,130,0.95)),
                url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0 150px;
    position: relative;
    text-align: center;
}

.services-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
}

.services-hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.services-hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

/* Services Mission */
.services-mission {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.mission-statement h2 {
    text-align: center;
    line-height: 1.5;
    margin-bottom: 50px;
}

.purple-text {
    color: var(--purple-btn);
}

.green-text {
    color: var(--green-btn);
}

/* Services Intro */
.services-intro {
    text-align: center;
    margin-bottom: 50px;
}

.services-intro h2 {
    color: var(--secondary-color);
    font-size: 2.5em;
}

/* Mission Content */
.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.mission-text p {
    color: var(--text-color);
    line-height: 1.8;
}

.mission-image img {
    width: 100%;
    max-width: 300px; /* Limiting the maximum width */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background-color: var(--white);
}

.services-intro {
    text-align: center;
    margin-bottom: 50px;
}

.services-intro img {
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 30px;
}

.services-intro h2 {
    color: var(--secondary-color);
    font-size: 2.5em;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5em;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover i {
    animation: floatIcon 2s ease-in-out infinite;
}

.service-card h3 {
    color: var(--text-color);
    font-size: 1.3em;
}

/* Main service cards colors */
.service-card.purple {
    border-top: 4px solid var(--purple-btn);
}
.service-card.purple i {
    color: var(--purple-btn);
}

.service-card.green {
    border-top: 4px solid var(--green-btn);
}
.service-card.green i {
    color: var(--green-btn);
}

.service-card.yellow {
    border-top: 4px solid var(--yellow-btn);
}
.service-card.yellow i {
    color: var(--yellow-btn);
}

.service-card.gold {
    border-top: 4px solid var(--orange-btn);
}
.service-card.gold i {
    color: var(--orange-btn);
}

/* Additional Services Grid */
.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.additional-services-grid .service-card {
    border-top: 4px solid var(--primary-color);
}

.additional-services-grid .service-card i {
    color: var(--primary-color);
}

/* Service Details */
.services-details {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.service-detail {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-detail:nth-child(1) {
    border-left: 4px solid var(--purple-btn);
}

.service-detail:nth-child(2) {
    border-left: 4px solid var(--green-btn);
}

.service-detail:nth-child(3) {
    border-left: 4px solid var(--yellow-btn);
}

.service-detail:nth-child(4) {
    border-left: 4px solid var(--orange-btn);
}

.service-detail:nth-child(5) {
    border-left: 4px solid var(--purple-btn);
}

.service-detail:nth-child(6) {
    border-left: 4px solid var(--green-btn);
}

.service-detail h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li i {
    color: var(--primary-color);
}

/* Core Values Section */
.core-values {
    padding: 80px 0;
    background-color: var(--white);
}

.core-values h2 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.value-card:nth-child(1) {
    border-top: 4px solid var(--purple-btn);
}

.value-card:nth-child(2) {
    border-top: 4px solid var(--green-btn);
}

.value-card:nth-child(3) {
    border-top: 4px solid var(--yellow-btn);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-card:nth-child(1) .value-icon i {
    color: var(--purple-btn);
}

.value-card:nth-child(2) .value-icon i {
    color: var(--green-btn);
}

.value-card:nth-child(3) .value-icon i {
    color: var(--yellow-btn);
}

/* Commitments Section */
.commitments {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.commitments h2 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.commitments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.commitment-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.commitment-item:nth-child(1) i { color: var(--purple-btn); }
.commitment-item:nth-child(2) i { color: var(--green-btn); }
.commitment-item:nth-child(3) i { color: var(--yellow-btn); }
.commitment-item:nth-child(4) i { color: var(--orange-btn); }
.commitment-item:nth-child(5) i { color: var(--purple-btn); }
.commitment-item:nth-child(6) i { color: var(--green-btn); }

/* Care Checklist */
.care-checklist {
    padding: 80px 0;
    background-color: var(--white);
}

.care-checklist h2 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.checklist-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    top: -20px;
    left: 30px;
}

.checklist-item:nth-child(1) .number { background: var(--purple-btn); }
.checklist-item:nth-child(2) .number { background: var(--green-btn); }
.checklist-item:nth-child(3) .number { background: var(--yellow-btn); }
.checklist-item:nth-child(4) .number { background: var(--orange-btn); }
.checklist-item:nth-child(5) .number { background: var(--purple-btn); }
.checklist-item:nth-child(6) .number { background: var(--green-btn); }
.checklist-item:nth-child(7) .number { background: var(--yellow-btn); }
.checklist-item:nth-child(8) .number { background: var(--orange-btn); }
.checklist-item:nth-child(9) .number { background: var(--purple-btn); }
.checklist-item:nth-child(10) .number { background: var(--green-btn); }

/* Agency Checklist */
.agency-checklist {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.agency-checklist h2 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.checklist-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.agency-requirements li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
}

.agency-requirements li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Driver Safety */
.driver-safety {
    padding: 80px 0;
    background-color: var(--white);
}

.driver-safety h2 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list li i {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Staggered animations */
.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }
.service-card:nth-child(4) { animation-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.5em;
    }

    .services-hero p {
        font-size: 1.2em;
    }

    .mission-content {
        grid-template-columns: 1fr;
    }

    .mission-image img {
        max-width: 250px; /* Even smaller on mobile */
    }

    .services-grid,
    .additional-services-grid,
    .values-grid,
    .commitments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .services-hero h1 {
        font-size: 2em;
    }

    .services-hero p {
        font-size: 1em;
    }

    h2 {
        font-size: 2em !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .value-card,
    .commitment-item {
        animation: none !important;
        transform: none !important;
    }
    
    .service-card:hover,
    .value-card:hover,
    .commitment-item:hover {
        transform: none !important;
    }
    
    .service-card i:hover {
        animation: none !important;
    }
} 