/* Domiciliary Care Services Page Specific Styles */

/* Dropdown Menu Styles - Consistent with services.html */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: rgba(75, 172, 36, 0.1);
    color: #4BAC24;
    border-left-color: #4BAC24;
    transform: translateX(5px);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4BAC24;
    transition: width 0.3s ease;
}

.dropdown-toggle:hover {
    color: #4BAC24;
}

.dropdown-toggle:hover::after {
    width: 100%;
}

.dropdown-toggle.active {
    color: #4BAC24;
    font-weight: 600;
}

.dropdown-toggle.active::after {
    width: 100%;
}

/* Hero Section */
.domiciliary-hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/hero-image.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 120px;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.domiciliary-hero .hero-content {
    max-width: 800px;
    padding: 2rem;
}

.domiciliary-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

.domiciliary-hero .hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Introduction Section */
.domiciliary-intro {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.intro-content .section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-family: 'Times New Roman', serif;
}

.intro-text {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

/* Service Overview Section */
.service-overview {
    padding: 4rem 0;
    background: #f8f9fa;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-content .section-title {
    font-size: 2.3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-family: 'Times New Roman', serif;
}

.overview-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.key-benefits {
    margin-top: 2rem;
}

.key-benefits h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.key-benefits ul {
    list-style: none;
    padding: 0;
}

.key-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #555;
}

.key-benefits li i {
    color: #4BAC24;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.overview-image {
    text-align: center;
}

.care-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Services Provided Section */
.services-provided {
    /* padding: 4rem 0; */
    background: white;
}

.services-provided .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-family: 'Times New Roman', serif;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-item {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(30px);
    
    text-align: center;
    justify-items: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #4BAC24;
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-item .service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4BAC24, #7bdf53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
}

.service-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-details li {
    color: #555;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-details li::before {
    content: '•';
    color: #4BAC24;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Care Plans Section */
.care-plans {
    padding: 4rem 0;
    background: #f8f9fa;
}

.care-plans .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.plan-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(30px);
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #4BAC24;
}

.plan-card.featured {
    border: 2px solid #4BAC24;
    background: linear-gradient(135deg, #ffffff, #cef7be);
}

.plan-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.plan-card .plan-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4BAC24, #7bdf53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.plan-card h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
}

.plan-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.plan-features li {
    color: #555;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.plan-features li::before {
    content: '✓';
    color: #4BAC24;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Care Process Section */
.care-process {
    padding: 4rem 0;
    background: white;
}

.care-process .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-family: 'Times New Roman', serif;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.process-step:nth-child(even) {
    transform: translateX(30px);
}

.process-step:hover {
    background: #cef7be;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4BAC24, #7bdf53);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Quality Assurance Section */
.quality-assurance {
    padding: 4rem 0;
    background: #f8f9fa;
}

.quality-assurance .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-family: 'Times New Roman', serif;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.quality-item {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.quality-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.quality-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.quality-item .quality-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4BAC24, #7bdf53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.quality-item h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.quality-item p {
    color: #666;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c3e50, #4BAC24);
    color: white;
}

.testimonials .section-title {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-family: 'Times New Roman', serif;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: #7bdf53;
    position: absolute;
    top: -10px;
    left: -15px;
    font-family: serif;
}

.testimonial-author h5 {
    color: #7bdf53;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.testimonial-author span {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* CTA Section */
.domiciliary-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2c3e50, #4BAC24);
    color: white;
    text-align: center;
}

.domiciliary-cta .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
}

.domiciliary-cta .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: white;
    color: #4BAC24;
}

.cta-buttons .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #4BAC24;
    transform: translateY(-2px);
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #4BAC24;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .dropdown {
        width: 80%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(75, 172, 36, 0.1);
        backdrop-filter: none;
        border-radius: 5px;
        margin: 1rem 0;
        padding: 0;
        min-width: auto;
        width: 100%;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: all 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        max-height: 200px;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu a {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        border-left: none;
        text-align: center;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(75, 172, 36, 0.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .domiciliary-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .domiciliary-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .quality-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .service-item,
    .plan-card,
    .quality-item,
    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .domiciliary-hero {
        height: 50vh;
        margin-top: 100px;
    }
    
    .domiciliary-hero .hero-title {
        font-size: 2rem;
    }
    
    .domiciliary-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-item .service-icon,
    .plan-card .plan-icon,
    .quality-item .quality-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .domiciliary-intro,
    .service-overview,
    .services-provided,
    .care-plans,
    .care-process,
    .quality-assurance,
    .testimonials,
    .domiciliary-cta {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Animation delays for staggered effects */
.service-item:nth-child(1) { transition-delay: 0.1s; }
.service-item:nth-child(2) { transition-delay: 0.2s; }
.service-item:nth-child(3) { transition-delay: 0.3s; }
.service-item:nth-child(4) { transition-delay: 0.4s; }
.service-item:nth-child(5) { transition-delay: 0.5s; }
.service-item:nth-child(6) { transition-delay: 0.6s; }

.plan-card:nth-child(1) { transition-delay: 0.1s; }
.plan-card:nth-child(2) { transition-delay: 0.2s; }
.plan-card:nth-child(3) { transition-delay: 0.3s; }

.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(2) { transition-delay: 0.2s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.4s; }
.process-step:nth-child(5) { transition-delay: 0.5s; }

.quality-item:nth-child(1) { transition-delay: 0.1s; }
.quality-item:nth-child(2) { transition-delay: 0.2s; }
.quality-item:nth-child(3) { transition-delay: 0.3s; }
.quality-item:nth-child(4) { transition-delay: 0.4s; }

.testimonial-card:nth-child(1) { transition-delay: 0.1s; }
.testimonial-card:nth-child(2) { transition-delay: 0.2s; }
.testimonial-card:nth-child(3) { transition-delay: 0.3s; }

/* Accessibility Improvements */
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid #4BAC24;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .domiciliary-cta {
        display: none;
    }
    
    .domiciliary-hero {
        height: auto;
        background: none;
        color: #000;
        margin-top: 0;
    }
    
    .testimonials {
        background: none;
        color: #000;
    }
    
    .service-item,
    .plan-card,
    .quality-item,
    .testimonial-card {
        background: #f0f0f0;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}