/* ===================================
   Service Detail Pages Styles
   =================================== */

/* Service Hero Section */
.service-hero {
    margin-top: 80px;
    padding: 6rem 3rem 4rem;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-teal) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.service-hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0.9;
    transition: all 0.3s;
}

.back-link:hover {
    opacity: 1;
    gap: 0.75rem;
}

.service-hero-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.service-hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.service-hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Service Overview Section */
.service-overview {
    padding: 6rem 3rem;
    background: var(--white);
}

.service-content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-intro {
    margin-bottom: 5rem;
}

.lead-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.service-intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-medium);
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 5rem;
}

.benefits-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.benefit-item {
    background: var(--bg-soft);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s;
    border: 2px solid transparent;
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(91, 154, 168, 0.15);
    border-color: var(--primary-teal);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(91, 154, 168, 0.25);
}

.benefit-item h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Highlight Section */
.highlight-section {
    background: var(--bg-light-blue);
    padding: 3.5rem;
    border-radius: 25px;
    margin-bottom: 5rem;
    border-left: 5px solid var(--primary-teal);
}

.highlight-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.highlight-section > p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    line-height: 1.7;
}

/* Outcome Section */
.outcome-section {
    margin-bottom: 5rem;
}

.outcome-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

.outcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.outcome-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 3px solid var(--bg-light-blue);
    transition: all 0.4s;
}

.outcome-card:hover {
    border-color: var(--primary-sage);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 170, 126, 0.2);
}

.outcome-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.outcome-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Info Section */
.info-section {
    margin-bottom: 5rem;
}

.info-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-section > p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--bg-soft);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--accent-sage);
}

.info-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Conditions Section (for specialist care page) */
.conditions-section {
    margin-bottom: 5rem;
}

.conditions-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.condition-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 3px solid var(--bg-light-blue);
    transition: all 0.4s;
}

.condition-card:hover {
    border-color: var(--primary-teal);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(91, 154, 168, 0.2);
}

.condition-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-sage) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(91, 154, 168, 0.25);
}

.condition-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.condition-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Why Section (for respite care page) */
.why-section {
    margin-bottom: 5rem;
}

.why-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.why-section > p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.why-card {
    background: var(--bg-light-blue);
    padding: 3rem;
    border-radius: 25px;
    border-left: 5px solid var(--primary-sage);
}

.why-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    color: var(--primary-teal);
    margin-bottom: 1.5rem;
}

/* Service CTA Section */
.service-cta-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-teal) 100%);
    padding: 4rem 3rem;
    border-radius: 30px;
    text-align: center;
    color: white;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.service-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.service-cta-section > * {
    position: relative;
    z-index: 1;
}

.service-cta-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-navy);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: var(--accent-lime);
    color: var(--primary-navy);
    border-color: var(--accent-lime);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-navy);
}

/* Responsive Design for Service Pages */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .service-hero {
        padding: 5rem 2rem 3.5rem;
    }

    .service-hero h1 {
        font-size: 3.5rem;
    }

    .service-hero-subtitle {
        font-size: 1.35rem;
    }

    .service-hero-icon {
        width: 110px;
        height: 110px;
        font-size: 3.5rem;
    }

    .service-overview {
        padding: 5rem 2rem;
    }

    .lead-text {
        font-size: 1.3rem;
    }

    .service-intro p {
        font-size: 1.1rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .conditions-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .outcome-grid,
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* Mobile Landscape and Small Tablets (481px - 767px) */
@media (max-width: 767px) {
    .service-hero {
        padding: 4rem 1.5rem 3rem;
        margin-top: 70px;
    }

    .back-link {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .service-hero-icon {
        width: 100px;
        height: 100px;
        font-size: 3.2rem;
        margin-bottom: 1.75rem;
    }

    .service-hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1.25rem;
    }

    .service-hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .service-overview {
        padding: 4rem 1.5rem;
    }

    .service-intro {
        margin-bottom: 4rem;
    }

    .lead-text {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .service-intro p {
        font-size: 1.05rem;
    }

    .benefits-section,
    .outcome-section,
    .info-section,
    .conditions-section,
    .why-section {
        margin-bottom: 4rem;
    }

    .benefits-section h2,
    .outcome-section h2,
    .info-section h2,
    .conditions-section h2,
    .why-section h2 {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .benefits-grid,
    .conditions-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .outcome-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .benefit-item,
    .condition-card {
        padding: 2.25rem;
    }

    .outcome-card,
    .info-card {
        padding: 2.25rem;
    }

    .why-card {
        padding: 2.5rem;
    }

    .highlight-section {
        padding: 2.5rem;
        margin-bottom: 4rem;
    }

    .highlight-section h2 {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }

    .highlight-section > p {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
    }

    .feature-list li {
        font-size: 1.05rem;
    }

    .service-cta-section {
        padding: 3.5rem 1.5rem;
        margin-top: 4rem;
    }

    .service-cta-section h2 {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }

    .service-cta-section p {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    .service-hero {
        padding: 3.5rem 1rem 2.5rem;
        margin-top: 65px;
    }

    .back-link {
        font-size: 0.9rem;
    }

    .service-hero-icon {
        width: 85px;
        height: 85px;
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        border-radius: 22px;
    }

    .service-hero h1 {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .service-hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .service-overview {
        padding: 3.5rem 1rem;
    }

    .service-intro {
        margin-bottom: 3.5rem;
    }

    .lead-text {
        font-size: 1.15rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .service-intro p {
        font-size: 0.95rem;
    }

    .benefits-section,
    .outcome-section,
    .info-section,
    .conditions-section,
    .why-section {
        margin-bottom: 3.5rem;
    }

    .benefits-section h2,
    .outcome-section h2,
    .info-section h2,
    .conditions-section h2,
    .why-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        line-height: 1.15;
    }

    .info-section > p,
    .why-section > p {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }

    .benefits-grid,
    .conditions-grid {
        gap: 1.5rem;
    }

    .why-grid {
        gap: 2rem;
    }

    .outcome-grid,
    .info-grid {
        gap: 1.5rem;
    }

    .benefit-item,
    .condition-card,
    .outcome-card,
    .info-card {
        padding: 2rem;
        border-radius: 18px;
    }

    .benefit-icon,
    .condition-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .benefit-item h3,
    .condition-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.85rem;
    }

    .benefit-item p,
    .condition-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .outcome-card h3 {
        font-size: 1.45rem;
    }

    .outcome-card p,
    .info-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .info-card h3 {
        font-size: 1.35rem;
    }

    .why-card {
        padding: 2.25rem;
        border-radius: 20px;
    }

    .why-card h3 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .highlight-section {
        padding: 2rem;
        margin-bottom: 3.5rem;
        border-radius: 20px;
    }

    .highlight-section h2 {
        font-size: 1.85rem;
        margin-bottom: 1rem;
    }

    .highlight-section > p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .feature-list li {
        font-size: 0.95rem;
        margin-bottom: 0.85rem;
    }

    .service-cta-section {
        padding: 3rem 1rem;
        margin-top: 3.5rem;
        border-radius: 25px;
    }

    .service-cta-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.15;
    }

    .service-cta-section p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .cta-buttons {
        gap: 1rem;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
    }
}
