/* css/homepage.css */

/* --- Hero Section --- */
#homepage .hero { /* Added #homepage for specificity if needed */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; 
    color: var(--neutral-white);
    padding: calc(var(--spacing-unit) * 6) 0; 
    text-align: center;
    overflow: hidden; 
}

#homepage .hero-overlay { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 25, 51, 0.6); 
    z-index: 1;
}

#homepage .hero .container { 
    position: relative;
    z-index: 2;
}

#homepage .hero::before, 
#homepage .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.5;
}
#homepage .hero::before {
    width: 300px; height: 300px;
    bottom: -150px; left: 10%;
}
#homepage .hero::after {
    width: 200px; height: 200px;
    top: -100px; right: 15%;
}

#homepage .hero h1 {
    color: var(--neutral-white);
    font-size: 3.2rem; 
    margin-bottom: var(--spacing-unit);
}

#homepage .hero .sub-headline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 2) auto;
}

#homepage .hero .btn-primary { /* Specific style for hero button */
    background-color: var(--secondary-sky-blue);
    color: var(--primary-blue);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#homepage .hero .btn-primary:hover, 
#homepage .hero .btn-primary:focus {
    background-color: var(--neutral-white);
    color: var(--primary-blue);
}

/* --- Company Overview --- */
.company-overview { /* Assuming this section might appear on other pages, but styling can be here if unique to homepage */
    text-align: center;
}
.company-overview h2 {
    margin-bottom: var(--spacing-unit);
}
.company-overview p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    /* color: var(--neutral-dark-gray); -- From global */
}
.company-overview p i.fa-map-marker-alt {
    color: var(--primary-teal);
    margin-right: 4px;
}

/* --- Featured Solutions Section --- */
.featured-solutions h2 {
    text-align: center;
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.solution-card {
    background-color: var(--neutral-white);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Added for consistent card height content alignment */
    flex-direction: column; /* Added */
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.solution-icon-img { 
    display: block;
    margin: 0 auto var(--spacing-unit) auto; 
    height: 60px; 
    width: auto;   
    object-fit: contain; 
}

.solution-card h3 {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 1.4rem;
}
.solution-card p {
    font-size: 0.95rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    /* color: var(--neutral-dark-gray); -- From global */
    flex-grow: 1; /* Added for consistent card height */
}
.solution-card .btn-secondary { /* Ensure button is at bottom */
    margin-top: auto;
}


/* --- Client Success Section --- */
.client-success h2 {
    text-align: center;
}
.metrics-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--spacing-unit);
    margin-bottom: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 2);
}
.metric-item {
    text-align: center;
    padding: var(--spacing-unit);
    min-width: 180px;
}
.metric-item .stat {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: calc(var(--spacing-unit) * 0.25);
}
.metric-item p {
    font-size: 1rem;
    /* color: var(--neutral-dark-gray); -- From global */
    margin-bottom: 0;
}

.testimonials-showcase {
    display: grid;
    grid-template-columns: 1fr; 
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.testimonials-showcase blockquote {
    background-color: var(--neutral-light-gray);
    padding: calc(var(--spacing-unit) * 1.5);
    border-left: 5px solid var(--primary-teal);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 0; 
}
.testimonials-showcase blockquote p {
    font-style: italic;
    margin-bottom: var(--spacing-unit);
    /* color: var(--text-color); -- From global */
}
.testimonials-showcase blockquote footer {
    font-weight: 600;
    color: var(--primary-blue);
    font-style: normal;
}

/* --- Differentiators Section --- */
.differentiators h2 {
    text-align: center;
}
.differentiators-list {
    list-style: none;
    padding: 0;
    margin-top: calc(var(--spacing-unit) * 2);
    display: grid;
    gap: calc(var(--spacing-unit) * 2);
}

.differentiators-list li {
    display: flex;
    align-items: flex-start; 
    background-color: var(--neutral-white);
    padding: calc(var(--spacing-unit) * 1.5); 
    border-radius: var(--border-radius);
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.differentiator-icon {
    font-size: 2rem;
    color: var(--primary-teal);
    margin-right: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 0.25); 
    min-width: 32px; 
    text-align: center;
}
.differentiators-list li h3 {
    margin-bottom: calc(var(--spacing-unit) * 0.25);
    font-size: 1.3rem;
}
.differentiators-list li p {
    font-size: 0.95rem;
    margin-bottom: 0;
    /* color: var(--neutral-dark-gray); -- From global */
}

/* --- Latest Blog Section --- */
.latest-blog h2 {
    text-align: center;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}
.blog-preview-card {
    background-color: var(--neutral-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.blog-preview-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
}
.blog-preview-card .card-content {
    padding: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}
.blog-preview-card h3 {
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.blog-preview-card .excerpt {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-unit);
    /* color: var(--neutral-dark-gray); -- From global */
    flex-grow: 1;
}
.blog-preview-card .btn-secondary {
    align-self: flex-start; 
    margin-top: auto; /* Added to ensure button is at bottom if excerpt varies */
}

/* --- Final CTA Section (Often global, but can be specific to homepage) --- */
#homepage .final-cta { /* If more specific styles for homepage CTA are needed */
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-teal) 100%);
    color: var(--neutral-white);
    /* padding, text-align are usually from .section-padding .text-center */
}
#homepage .final-cta h2 {
    color: var(--neutral-white);
}
#homepage .final-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    font-size: 1.1rem;
}
#homepage .final-cta .btn-primary {
    background-color: var(--neutral-white);
    color: var(--primary-blue);
    font-weight: bold;
}
#homepage .final-cta .btn-primary:hover, 
#homepage .final-cta .btn-primary:focus {
    background-color: var(--secondary-sky-blue);
    color: var(--primary-blue);
}

/* --- Responsive Adjustments for Homepage Specific Sections --- */
@media (max-width: 991px) {
    #homepage .hero h1 { font-size: 2.8rem; } /* Specific to homepage hero */
    #homepage .hero .sub-headline { font-size: 1.2rem; }

    .differentiators-list { /* If this layout is unique to homepage */
        /* grid-template-columns: 1fr; -- This is already in global style.css for this breakpoint */
    }
}

@media (max-width: 767px) {
    #homepage .hero { padding: calc(var(--spacing-unit) * 4) 0; }
    #homepage .hero h1 { font-size: 2.2rem; }
    #homepage .hero .sub-headline { font-size: 1.1rem; }

    /* .solutions-grid, .blog-grid already 1fr in global style.css at this breakpoint */

    .metrics-showcase {
        flex-direction: column;
        align-items: center;
    }
    .metric-item {
        min-width: auto; 
        width: 100%;
        max-width: 250px; 
        margin-bottom: var(--spacing-unit);
    }
    /* .metric-item .stat { font-size: 2.4rem; } -- Global h size should cover this */
    
    /* .testimonials-showcase, .differentiators-list li already handled by global styles for this breakpoint */
}
@media (min-width: 768px) { 
    .testimonials-showcase { /* If this is homepage specific layout */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) { 
    .differentiators-list { /* If this is homepage specific layout */
        grid-template-columns: repeat(2, 1fr);
    }
}