/* =========================================================
   NESTXGEN — SOLUTIONS DESIGN SYSTEM (PRODUCTION)
   File: solutions/solutions.css
   Scope: Service Pages (Digital Fab, Agri-Tech, etc.)
   ========================================================= */

/* --- Layout & Structure --- */
.solution-page-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: calc(100vh - 400px);
}

/* =========================================================
   HERO GAP FIX & VIBRANT TEXT SYSTEM
   ========================================================= */
.solution-hero {
    position: relative;
    /* Physically pull the hero up to hide the gap behind the header */
    margin-top: -85px; 
    padding-top: 140px; /* Space for the navigation content */
    padding-bottom: 80px;
    min-height: 65vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    z-index: 1;
}

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

.solution-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Premium Dimming Overlay */
.solution-hero .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Deep Navy to Transparent Teal gradient for maximum text pop */
    background: linear-gradient(
        180deg, 
        rgba(10, 25, 47, 0.85) 0%, 
        rgba(21, 67, 96, 0.4) 100%
    );
    z-index: 1;
}

.solution-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

/* --- VIBRANT HERO TEXT TREATMENT --- */

.solution-hero .hero-subtitle {
    color: var(--color-accent) !important; /* Branded Gold (#FFC300) */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    /* Glow effect to prevent "dull silver" look */
    text-shadow: 0 0 15px rgba(255, 195, 0, 0.4); 
}

.solution-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #FFFFFF !important; /* Pure White for maximum punch */
    font-weight: 800;
    line-height: 1.1;
    max-width: 850px;
    /* Multi-layer shadow for readability on busy images */
    text-shadow: 
        2px 2px 10px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 166, 147, 0.3); /* Subtle Teal glow */
}

.solution-hero p {
    color: #F9F9F9 !important;
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 700px;
    margin-top: 1.5rem;
    opacity: 1; /* Maximum clarity */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* --- Content Grid & Navigation --- */
.solution-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 50px;
    margin-top: 60px;
    padding-bottom: 80px;
}

/* --- Main Narrative Content --- */
.main-content {
    color: var(--color-text-dark);
}

.main-content h2 {
    color: var(--color-primary);
    font-size: 2.2rem;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-content h2 i {
    color: var(--color-secondary);
    font-size: 1.8rem;
}

.main-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* --- Media Containers (Glass Effect) --- */
.media-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--color-section-bg);
    border: 1px solid var(--color-border);
    margin: 30px 0;
}

.content-image {
    width: 100%;
    height: auto;
    transition: transform var(--transition-base);
}

.content-image:hover {
    transform: scale(1.02);
}

/* --- Premium Sidebar (Glassmorphism) --- */
.sidebar {
    position: sticky;
    top: 120px; /* Aligns with header height */
    height: fit-content;
}

.sidebar-box {
    background: var(--color-body-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.sidebar h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-nav a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

/* --- Special Sidebar CTA Card --- */
.sidebar-cta {
    background: linear-gradient(145deg, var(--color-primary), #0a2d42);
    padding: 35px 25px;
    border-radius: var(--radius-md);
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.sidebar-cta h3 {
    color: #fff;
    border-color: var(--color-accent);
}

.sidebar-cta p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* --- Feature Lists --- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list li::before {
    content: "\f00c"; /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-secondary);
}

/* --- Responsive Adaptations --- */
@media (max-width: 992px) {
    .solution-grid {
        grid-template-columns: 1fr; /* Stack layout on mobile */
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .solution-hero {
        min-height: 50vh;
        text-align: center;
        padding-top: 120px;
        margin-top: -65px; /* Smaller header adjustment for mobile */
    }
    
    .solution-hero .hero-content {
        text-align: center;
    }
}