/* ============================================================
   SOLUTION DETAIL PAGE — Shared Styles
   ============================================================ */

/* --- Solution Hero --- */
.solution-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--gradient-dark);
}

.solution-hero-bg {
    position: absolute;
    inset: 0;
}

.solution-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    animation: heroZoom 25s ease-in-out infinite alternate;
}

.solution-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(13, 40, 24, 0.3) 0%,
            rgba(13, 40, 24, 0.6) 50%,
            rgba(13, 40, 24, 0.95) 100%);
}

.solution-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-5xl) 0 var(--space-3xl);
    width: 100%;
}

.solution-hero-content .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.solution-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.solution-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.solution-breadcrumb a:hover {
    color: var(--emerald-light);
}

.solution-breadcrumb .sep {
    width: 16px;
    height: 16px;
    opacity: 0.4;
}

.solution-sbu-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.4rem 1rem;
    background: rgba(82, 183, 136, 0.15);
    border: 1px solid rgba(82, 183, 136, 0.3);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--emerald-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.solution-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    max-width: 700px;
}

.solution-hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.solution-hero-stats {
    display: flex;
    gap: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-stat {
    text-align: left;
}

.solution-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--emerald-light);
    line-height: 1;
    margin-bottom: 4px;
}

.solution-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Solution Overview --- */
.solution-overview {
    padding: var(--space-5xl) 0;
    background: var(--white);
}

.solution-overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.solution-overview-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--forest-green-dark);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.solution-overview-text p {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.solution-overview-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.solution-overview-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.solution-overview-visual:hover img {
    transform: scale(1.05);
}

.solution-overview-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 60px rgba(27, 67, 50, 0.15);
    pointer-events: none;
}

/* --- Key Features / Services --- */
.solution-features {
    padding: var(--space-5xl) 0;
    background: var(--sand-light);
}

.solution-features .section-header {
    margin-bottom: var(--space-3xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(82, 183, 136, 0.15);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(82, 183, 136, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--forest-green);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* --- Info Cards / Process --- */
.solution-process {
    padding: var(--space-5xl) 0;
    background: var(--white);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--emerald), rgba(82, 183, 136, 0.1));
}

.process-step {
    display: flex;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
    position: relative;
}

.process-step-number {
    width: 64px;
    height: 64px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(82, 183, 136, 0.3);
    position: relative;
    z-index: 1;
}

.process-step-content h3 {
    font-size: 1.15rem;
    color: var(--forest-green);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-sm);
}

.process-step-content p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* --- Image Gallery --- */
.solution-gallery {
    padding: var(--space-5xl) 0;
    background: var(--sand-light);
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 67, 50, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item-label {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-item-label {
    opacity: 1;
    transform: translateY(0);
}

/* --- CTA Banner --- */
.solution-cta {
    padding: var(--space-4xl) 0;
    background: var(--gradient-dark);
    text-align: center;
}

.solution-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--white);
    margin-bottom: var(--space-md);
}

.solution-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

.solution-cta .btn-primary {
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

/* --- Related Solutions --- */
.related-solutions {
    padding: var(--space-5xl) 0;
    background: var(--white);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.related-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--sand-light);
    transition: all 0.4s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.related-card-image {
    height: 180px;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.08);
}

.related-card-content {
    padding: var(--space-lg);
}

.related-card-content h4 {
    font-size: 1rem;
    color: var(--forest-green);
    margin-bottom: var(--space-sm);
}

.related-card-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.related-card-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--emerald);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.related-card:hover .related-card-link {
    gap: 12px;
}

/* --- Floating Action Dots --- */
.floating-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(82, 183, 136, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.float-dot.active {
    background: var(--emerald);
    border-color: var(--emerald-light);
    transform: scale(1.3);
}

.float-dot:hover {
    background: var(--emerald);
}

/* --- Back to Top --- */
.back-to-solutions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    color: var(--white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
}

.back-to-solutions.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-solutions:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .solution-hero {
        min-height: 60vh;
    }

    .solution-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .solution-hero-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .floating-dots {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}