/* ===================================
   SERVICE DETAIL PAGES STYLESHEET
   ===================================*/

/* --- Page Transition Overlay --- */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    pointer-events: none;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition-overlay.active {
    transform: scaleY(1);
    transform-origin: top;
}

body.page-loaded .page-transition-overlay {
    animation: slideOut 0.6s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes slideOut {
    0% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* --- Service Hero --- */
.service-hero {
    padding: 10rem 0 5rem;
    color: var(--white);
    position: relative;
}

.service-hero .badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem;
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--white);
    transform: translateX(-4px);
}

.back-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* --- Service Detail Layout --- */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.service-main h2 {
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
}

.service-main h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-main);
}

.service-main p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* --- Quote/Highlight Box --- */
.service-highlight-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: 2rem 2.5rem;
    border-radius: 0 16px 16px 0;
    margin: 2.5rem 0;
}

.service-highlight-box .lead {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.7;
}

/* --- Issues Grid --- */
.issues-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.issue-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.issue-item:hover {
    background: var(--secondary-light);
    transform: translateX(4px);
}

.issue-item i {
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.issue-item span {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* --- Process Steps --- */
.process-steps {
    margin-top: 1rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(44, 62, 56, 0.08);
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.5;
    flex-shrink: 0;
    width: 50px;
    line-height: 1;
    padding-top: 0.25rem;
}

.process-step h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.process-step p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* --- Parent Note (Teen page) --- */
.parent-note {
    background: linear-gradient(135deg, var(--secondary-light), rgba(212, 191, 167, 0.15));
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 3rem;
    border: 1px solid rgba(212, 191, 167, 0.3);
}

.parent-note h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--primary);
}

.parent-note h3 i {
    font-size: 1.5rem;
}

.parent-note p:last-child {
    margin-bottom: 0;
}

/* --- Sidebar --- */
.service-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    padding: 2rem;
}

.sidebar-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.sidebar-card h4 i {
    font-size: 1.4rem;
    color: var(--primary);
}

.sidebar-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

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

.sidebar-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(44, 62, 56, 0.06);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.sidebar-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-list li strong {
    color: var(--text-main);
}

.sidebar-cta {
    background: var(--primary);
    color: var(--white);
    padding: 2rem;
    border: none;
}

.sidebar-cta h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.sidebar-cta .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.sidebar-cta .btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.sidebar-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.sidebar-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

/* --- Other Services Section --- */
.other-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.other-service-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 220px;
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.other-service-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

.other-service-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    transition: var(--transition);
}

.other-service-card:hover .other-service-arrow {
    background: var(--primary);
    transform: translateX(4px);
}

/* --- Clickable Service Cards (Homepage) --- */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card-link .service-card {
    cursor: pointer;
    position: relative;
}

.service-card .learn-more-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.service-card .learn-more-indicator i {
    transition: transform 0.3s ease;
}

.service-card:hover .learn-more-indicator i {
    transform: translateX(5px);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }

    .other-services-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 768px) {
    .service-hero {
        padding: 8rem 0 3rem;
    }

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

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

    /* Fix Logo Size on Mobile */
    .logo-img { height: 60px; }
    .logo-img--footer { height: 60px; }
    .glass-nav { padding: 0.3rem 0; }

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

    .other-services-grid {
        grid-template-columns: 1fr;
    }

    .other-service-card {
        min-height: 180px;
    }

    .service-highlight-box {
        padding: 1.5rem;
    }

    .process-step {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-number {
        width: auto;
    }

    .sidebar-card,
    .sidebar-cta {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-hero {
        padding: 7rem 0 2.5rem;
    }

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

    /* Extra small screens logo fix */
    .logo-img { height: 50px; }

    .service-main h2 {
        font-size: 1.75rem;
    }

    .service-main h3 {
        font-size: 1.3rem;
    }

    .parent-note {
        padding: 1.5rem;
    }
}
