/* --- home.css --- */

/* --- Hero Section (Homepage) --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.6) 0%, rgba(10, 25, 47, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 850px;
    text-align: center;
    color: var(--white);
    padding: 30px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.25;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.hero-content .subhead {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0px 1px 5px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    margin: 0 auto 2em auto;
    line-height: 1.6;
}

.hero .cta-button {
    background-color: var(--accent-green);
    color: var(--white);
    padding: 18px 45px;
    font-size: 1.2rem;
}
.hero .cta-button:hover {
    background-color: var(--accent-green-darker);
}


/* --- Problem Section (Homepage) --- */
/* .problem .container h2 might inherit centering from common.css */
.problem-content { /* This is the flex container */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left; /* Default for children */
}
.problem-text { /* Text column */
    flex: 1.2;
    min-width: 300px; /* Before wrapping */
}
.problem-text strong { color: var(--primary-blue); }

/* Assuming .section-image is on the <img> tag directly for outdated_software_1.webp */
.problem .section-image { /* Image (or its direct wrapper if one exists) */
    flex: 0.8;
    max-width: 450px; /* Desktop max width */
    min-width: 280px; /* Desktop min width */
    /* Inherits general .section-image styles (border-radius, shadow) from common.css */
    margin-top: 20px; /* Add specific margin if needed for this section */
}

/* --- Solution Section (Homepage) --- */
/* .solution .container h2 might inherit centering from common.css */
.solution-content { /* This is the flex container */
    display: flex;
    flex-wrap: wrap-reverse; /* Image above text on mobile stack */
    align-items: center;
    gap: 40px;
    text-align: left; /* Default for children */
}
.solution-text { /* Text column */
    flex: 1.2; /* Example, adjust as needed */
    min-width: 300px;
}
.solution-text strong { color: var(--accent-green); }

.team-image { /* team.png specific styling */
    border-radius: 50%;
    width: 220px;
    height: 220px;
    object-fit: cover;
    box-shadow: 0 0 0 8px var(--white), var(--shadow-lg);
    flex-shrink: 0; /* Prevent shrinking in flex row */
    /* Margin for desktop will be handled by gap in .solution-content */
}


/* --- Benefits Section (Homepage) --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}
.benefit-card {
    background-color: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--primary-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.benefit-card h3 {
    color: var(--dark-gray);
    margin-top: 20px;
    font-size: 1.4rem;
}
.benefit-card p {
    font-size: 0.98rem;
    color: var(--medium-gray);
    max-width: 100%;
    line-height: 1.6;
}
.benefit-image { /* For .ico files or small images in benefit cards */
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 25px;
    display: inline-block; /* To center with text-align on parent if needed */
}

/* --- Social Proof Section (Homepage) --- */
/* .social-proof .container h2 inherits */
.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}
.logos img {
    max-height: 55px;
    width: auto; /* Ensure SVGs scale correctly with height */
    transition: filter 0.3s ease, opacity 0.3s ease;
    filter: grayscale(80%); /* Default for all logos */
    opacity: 0.75;
}
/* If specific SVGs still look bad, target them: */
/* .logos img[src$=".svg"] {
    filter: grayscale(50%);
    opacity: 0.85;
} */
.logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.testimonial { max-width: 750px; margin: 0 auto; }
.testimonial blockquote {
    background: var(--very-light-gray-bg);
    padding: 35px 40px;
    border-left: 6px solid var(--accent-green);
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial blockquote::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--accent-green);
    opacity: 0.3;
    position: absolute;
    left: 15px;
    top: 5px;
    line-height: 1;
}
.testimonial blockquote p {
    font-size: 1.15rem;
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}
.testimonial footer {
    font-style: normal;
    font-weight: 600;
    color: var(--medium-gray);
    text-align: right;
    font-size: 1rem;
}

/* --- CTA Block (Homepage bottom) --- */
.cta-block {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-darker) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    border-radius: 0;
}
.cta-block h2 {
    color: var(--white);
    margin-bottom: 0.6em;
    font-size: 2.6rem;
}
.cta-block p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
    font-size: 1.1rem;
}
/* Uses .cta-button-secondary from common.css */

/* --- FAQ Section (Homepage) --- */
.faq .container { max-width: 850px; }
.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
}
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-item h3 {
    color: var(--dark-gray);
    margin-bottom: 0.8em;
    font-size: 1.3rem;
}
.faq-item p { color: var(--medium-gray); max-width: 100%; line-height: 1.7; }

/* --- Responsive Adjustments for Homepage Specific Elements --- */
@media (max-width: 991px) { /* Tablet */
    .hero-content h1 { font-size: 2.8rem; }
    .cta-block h2 { font-size: 2.2rem; }
}

@media (max-width: 767px) { /* Mobile */
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content .subhead { font-size: 1.1rem; }
    .cta-block h2 { font-size: 2rem; }
    .cta-block p { font-size: 1rem; }

    .hero { min-height: 80vh; padding: 60px 0; } /* Adjust hero height on mobile */

    /* Problem Section Image on Mobile */
    .problem .section-image { /* img tag itself or its direct wrapper */
        width: 90%;
        max-width: 350px; /* Or 'none' to rely purely on percentage */
        min-width: auto; /* Reset desktop min-width */
        margin: 20px auto; /* Center and add vertical spacing */
        /* flex properties (flex-grow, flex-shrink, flex-basis) from desktop become less relevant for width when stacked */
    }

    /* Solution Section Team Image on Mobile */
    .team-image {
        width: 75%;
        max-width: 280px;
        height: auto; /* Maintain aspect ratio */
        border-radius: 12px; /* Changed from 50% for better responsive rectangle */
        object-fit: cover;
        margin: 0 auto 30px auto;
        box-shadow: 0 0 0 6px var(--white), var(--shadow-md);
    }
    /* .solution-text text-align:center is handled by common.css general mobile rule */


    .benefits-grid { gap: 25px; }
    .benefit-card { padding: 25px; }
    .benefit-image { max-height: 60px; margin-bottom: 20px;}

    .testimonial blockquote { padding: 25px; }
    .testimonial blockquote p { font-size: 1.05rem; }
    .testimonial blockquote::before { font-size: 3rem; left: 10px; top: 10px;}

    .faq .container { max-width: 100%; }
}