/* ============================================================
   Saral SAAS Ecosystem pages — shared layout
   Uses main site header (navbar) and footer.
   Each page sets its own --eco-brand color for theming.
   ============================================================ */

/* -------- Page wrapper -------- */
.eco-page {
    padding-top: 120px;
    padding-bottom: var(--space-6, 4rem);
    font-family: var(--font-family, "Noto Sans"), sans-serif;
    color: var(--text-primary, #13253c);
    line-height: 1.6;
}

.eco-page .eco-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--section-padding-x, 5%);
}

/* -------- Brand accent per page -------- */
.eco-page {
    --eco-brand: var(--accent, #1276c6);
    --eco-brand-light: var(--accent-light, #4ebdff);
}

/* -------- Hero -------- */
.eco-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, #13253c, var(--eco-brand));
    border-radius: 1rem;
    padding: 3rem 2rem;
    color: #fff;
    margin-bottom: var(--space-4, 2rem);
}

.eco-hero__text { flex: 1.3; }
.eco-hero__img  { flex: 1; }

.eco-hero h1 {
    font-family: var(--font-heading, "Geologica"), sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.eco-hero p {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    opacity: 0.92;
}

.eco-hero__cta {
    display: inline-block;
    background: var(--eco-brand-light, #fff);
    color: var(--eco-brand);
    padding: 0.65rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.eco-hero__cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.eco-hero img {
    width: 100%;
    border-radius: 0.75rem;
    object-fit: cover;
    max-height: 280px;
}

/* -------- Section -------- */
.eco-section {
    background: #fff;
    border-radius: 1.25rem;
    padding: var(--space-4, 2rem);
    margin-bottom: var(--space-4, 2rem);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2eaf1;
}

.eco-section h2 {
    font-family: var(--font-heading, "Geologica"), sans-serif;
    font-size: 1.5rem;
    color: var(--eco-brand);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--eco-brand-light, var(--eco-brand));
    font-weight: 700;
}

.eco-section h3 {
    font-family: var(--font-heading, "Geologica"), sans-serif;
    font-size: 1.15rem;
    margin: 1.25rem 0 0.6rem;
    color: var(--text-primary, #13253c);
    font-weight: 700;
}

/* -------- Grid / Cards -------- */
.eco-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0;
}

.eco-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.eco-card {
    background: #f8fbfd;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e2eaf1;
    font-size: 0.9rem;
}

.eco-card strong {
    color: var(--eco-brand);
}

/* -------- Split (text + image) -------- */
.eco-split {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.eco-split__text { flex: 1.4; min-width: 260px; }
.eco-split__img  { flex: 1;   min-width: 200px; }

.eco-split img {
    width: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
    max-height: 250px;
}

/* -------- Table -------- */
.eco-table-wrap {
    overflow-x: auto;
}

.eco-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.eco-table th {
    background: var(--eco-brand);
    color: #fff;
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
}

.eco-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e2eaf1;
}

.eco-table tr:nth-child(even) td {
    background: #f8fbfd;
}

/* -------- FAQ -------- */
.eco-faq-item {
    border-bottom: 1px solid #e2eaf1;
    padding: 0.75rem 0;
}

.eco-faq-item strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    color: var(--text-primary, #13253c);
}

.eco-faq-item p, .eco-faq-item div {
    font-size: 0.85rem;
    color: var(--text-secondary, #31475b);
}

/* -------- Final CTA -------- */
.eco-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--eco-brand), var(--eco-brand-light));
    border-radius: 1.25rem;
    padding: var(--space-4, 2rem);
    color: #fff;
}

.eco-cta h2 {
    color: #fff;
    border-left-color: rgba(255,255,255,0.5);
}

.eco-cta .eco-hero__cta {
    background: #fff;
    color: var(--eco-brand);
    display: inline-block;
    margin-top: 1rem;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
    .eco-hero {
        flex-direction: column;
        padding: 2rem 1.25rem;
    }

    .eco-section {
        padding: 1.5rem 1rem;
    }

    .eco-split {
        flex-direction: column;
    }

    .eco-split img {
        max-height: 200px;
    }
}
