/* ====================================
   SAMENWERKINGSPAGINA'S - Food2Grow
   Gebruikt voor:
   - /samenwerken-met-scholen/
   - /samenwerken-met-restaurants/
   - /samenwerken-met-voedselketen/

   Bouwt voort op global.css:
   .page-hero, .page-hero--with-bg, .page-hero-bg, .hero-subtitle,
   .page-hero-actions, .section-intro, .cta-section, .cta-buttons, .btn,
   .info-divider en de section-striping (wit / lichtgrijs / CTA-tint).
   ==================================== */

/* ====================================
   SECTIEBASIS
   ==================================== */
.collab-section {
    padding: var(--section-padding);
}

.collab-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.collab-section-note {
    max-width: 760px;
    margin: 2.5rem auto 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.75;
}

.collab-section-note:last-child {
    margin-bottom: 0;
}

/* Tekstlink met pijl, zelfde gevoel als .inline-link op andere pagina's */
.collab-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.collab-inline-link::after {
    content: '\2192';
    text-decoration: none;
    transition: transform 0.2s ease;
}

.collab-inline-link:hover,
.collab-inline-link:focus-visible {
    color: var(--primary-green-dark);
}

.collab-inline-link:hover::after {
    transform: translateX(3px);
}

.collab-inline-link:focus-visible {
    outline: 3px solid rgba(46, 139, 87, 0.35);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ====================================
   HERO
   ==================================== */
.collab-hero-lead {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 660px;
    margin: 0.9rem auto 0;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* ====================================
   FEATURE — tekst met optionele foto
   ==================================== */
.collab-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.collab-feature-grid--reverse .collab-feature-text {
    order: 2;
}

.collab-feature-grid--reverse .collab-feature-image {
    order: 1;
}

.collab-feature-grid--text-only {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.collab-feature-grid--text-only .collab-feature-list {
    display: inline-block;
    text-align: left;
}

.collab-feature-text h2 {
    color: var(--primary-green);
    margin-bottom: 1.25rem;
}

.collab-feature-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.collab-feature-list {
    list-style: none;
    margin: 1.5rem 0 1.25rem;
    padding: 0;
}

.collab-feature-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.75;
}

.collab-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-green);
    opacity: 0.55;
}

.collab-note {
    margin: 1.5rem 0 0;
    padding: 1.15rem 1.35rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    border-left: 4px solid var(--primary-green);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.75;
}

.collab-inline-cta {
    margin: 1.5rem 0 0;
}

.collab-feature-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 420px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collab-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.collab-feature-image:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* ====================================
   KAARTRASTER — waarom / manieren / wat we bieden
   ==================================== */
.collab-card-grid {
    display: grid;
    gap: 24px;
}

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

.collab-card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.collab-card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.collab-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--white);
    border: 1px solid var(--f2g-card-border);
    border-radius: var(--f2g-card-radius);
    padding: 1.75rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.collab-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

.collab-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 11px;
    color: var(--primary-green);
    background: #f0fdf4;
    border-radius: 50%;
    flex-shrink: 0;
}

.collab-card-icon svg {
    width: 100%;
    height: 100%;
}

.collab-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0;
}

.collab-card p {
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin: 0;
}

/* ====================================
   VOORBEELDEN VAN ACTIES
   ==================================== */
.collab-examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.collab-example-group {
    background: var(--white);
    border: 1px solid var(--f2g-card-border);
    border-radius: var(--f2g-card-radius);
    padding: 1.75rem;
}

.collab-example-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.collab-example-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 9px;
    color: var(--primary-green);
    background: #f0fdf4;
    border-radius: 50%;
    flex-shrink: 0;
}

.collab-example-icon svg {
    width: 100%;
    height: 100%;
}

.collab-example-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0;
}

.collab-example-text {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin: 0 0 1rem;
}

.collab-example-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.collab-example-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.collab-example-list li:last-child {
    margin-bottom: 0;
}

.collab-example-list li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.45em;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
    transform: rotate(-45deg);
}

/* ====================================
   STAPPENPLAN
   ==================================== */
.collab-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.collab-step {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    border-radius: var(--f2g-card-radius);
    padding: 1.85rem 1.6rem;
}

.collab-step-number {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-green);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.collab-step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.55rem;
}

.collab-step p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin: 0;
}

/* ====================================
   TRANSPARANTIE / VERTROUWEN
   ==================================== */
.collab-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.collab-trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.75rem 1.6rem;
    background: var(--white);
    border: 1px solid var(--f2g-card-border);
    border-radius: var(--f2g-card-radius);
}

.collab-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 12px;
    color: var(--primary-green);
    background: #f0fdf4;
    border-radius: 50%;
}

.collab-trust-icon svg {
    width: 100%;
    height: 100%;
}

.collab-trust-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0;
}

.collab-trust-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin: 0;
}

.collab-trust-item .collab-inline-link {
    margin-top: auto;
    font-size: 0.9rem;
}

/* ====================================
   FAQ — details/summary
   ==================================== */
.collab-faq .section-intro {
    margin-bottom: 2.5rem;
}

.collab-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collab-faq-item {
    background: var(--white);
    border: 1px solid var(--f2g-card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.collab-faq-item[open] {
    border-color: var(--primary-green);
}

.collab-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-green);
    cursor: pointer;
    list-style: none;
}

.collab-faq-question::-webkit-details-marker {
    display: none;
}

.collab-faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--primary-green);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.collab-faq-item[open] .collab-faq-question::after {
    transform: rotate(45deg);
}

.collab-faq-question:focus-visible {
    outline: 3px solid rgba(46, 139, 87, 0.35);
    outline-offset: -3px;
}

.collab-faq-answer {
    padding: 0 1.5rem 1.35rem;
    border-top: 1px solid #f0fdf4;
}

.collab-faq-answer p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin: 1rem 0 0;
}

/* ====================================
   ANDERE SAMENWERKINGSVORMEN
   ==================================== */
.collab-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.collab-related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--f2g-card-border);
    border-radius: var(--f2g-card-radius);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.collab-related-card:hover,
.collab-related-card:focus-visible {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: var(--primary-green);
}

.collab-related-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 10px;
    color: var(--primary-green);
    background: #f0fdf4;
    border-radius: 50%;
    flex-shrink: 0;
}

.collab-related-icon svg {
    width: 100%;
    height: 100%;
}

.collab-related-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.collab-related-title {
    font-weight: 600;
    color: var(--primary-green);
}

.collab-related-text {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.65;
}

.collab-related-arrow {
    margin-left: auto;
    color: var(--primary-green);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.collab-related-card:hover .collab-related-arrow {
    transform: translateX(4px);
}

/* ====================================
   EIND-CTA
   ==================================== */
.collab-cta .collab-eyebrow {
    margin-bottom: 0.5rem;
}

.collab-cta-note {
    max-width: 620px;
    margin: 1.75rem auto 0;
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
    .collab-card-grid--3,
    .collab-card-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .collab-feature-grid {
        gap: 40px;
    }

    .collab-feature-image {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .collab-feature-grid,
    .collab-feature-grid--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Op mobiel altijd eerst de tekst, daarna de foto */
    .collab-feature-grid--reverse .collab-feature-text {
        order: 1;
    }

    .collab-feature-grid--reverse .collab-feature-image {
        order: 2;
    }

    .collab-feature-image {
        height: 260px;
    }

    .collab-card-grid--2,
    .collab-card-grid--3,
    .collab-card-grid--4,
    .collab-examples-grid,
    .collab-trust-grid,
    .collab-steps-grid,
    .collab-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .collab-hero-lead {
        font-size: 0.98rem;
    }

    .collab-card,
    .collab-example-group,
    .collab-trust-item {
        padding: 1.5rem 1.35rem;
    }

    .collab-step {
        padding: 1.6rem 1.35rem;
    }

    .collab-faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .collab-faq-answer {
        padding: 0 1.25rem 1.15rem;
    }

    .collab-related-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .collab-feature-image {
        height: 220px;
    }

    .collab-step-number {
        font-size: 2.2rem;
    }

    .collab-related-card {
        align-items: flex-start;
    }

    .collab-related-arrow {
        display: none;
    }
}

/* Respecteer de systeemvoorkeur voor minder beweging */
@media (prefers-reduced-motion: reduce) {
    .collab-card,
    .collab-related-card,
    .collab-feature-image,
    .collab-inline-link::after,
    .collab-related-arrow {
        transition: none;
    }

    .collab-card:hover,
    .collab-related-card:hover,
    .collab-feature-image:hover {
        transform: none;
    }
}
