/* ==============================
   HOME PAGE
============================== */

/* SERVICES SECTION - 2x2 GRID*/

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 40px 0;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .services-grid {
        gap: 80px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.service-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
}

.service-card .service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-overlay-green {
    position: absolute;
    inset: 0;
    background: rgba(11, 63, 25, 0.6);
    z-index: 1;
}

.service-text-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 7.5%;
    box-sizing: border-box;
    text-align: left;
    color: #ffffff;
}

.service-text-overlay .top-text h4,
.service-text-overlay .top-text h1 {
    margin: 0;
}

.service-text-overlay .bottom-text h3 {
    margin: 0 0 0.5rem 0;
}

.service-text-overlay a {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 2rem;
    color: #FFD700;
    text-decoration: none;
    z-index: 3;
    padding: 5px;
    display: inline-block;       /* ensures transform behaves properly */
    transform-origin: center;    /* rotate around its center */
}

.service-text-overlay a img {
    display: block;               /* ensures proper transform */
    transform-origin: center center; /* rotate around center */
    transition: transform 0.4s ease; /* smooth rotation and scaling */
}

.service-text-overlay a:hover img {
    transform: scale(1.2) rotate(90deg);
}



/* ==============================
   IMPACT SECTION - 4x2 GRID
============================== */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 50px;
    width: 100%;
    height: auto;
}

.impact-card {
    background: var(--yellow);
    color: var(--black);
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.5s ease, transform 0.8s ease;
}

.impact-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.impact-label {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;

    min-height: 3.5em;
    /* key line */
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-number {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-top: 10px;
}

/* Responsive Impact Grid */
@media (max-width: 1200px) {
    .impact-grid { gap: 20px; }
    .impact-card { padding: 20px; }
}

@media (max-width: 992px) {
    .impact-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; }
}

@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 10px;
    }
    .impact-card { padding: 10px; }
}
/* ==============================
   STATEMENT / IMPACT STATS
============================== */

.impact-stats-section .value {
    font-size: clamp(28px, 5vw, 50px);
    line-height: clamp(30px, 6vw, 52px);
    font-weight: 700;
    color: var(--green);
}

.impact-stats-section .unit {
    font-size: clamp(20px, 5vw, 28px);
    line-height: clamp(20px, 6vw, 30px);
    opacity: 0.8;
}

.impact-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ==============================
   NEWS SECTION - FIXED HEIGHT CARDS
============================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    width: 100%;
}

/* Basis card styling */
.custom-news-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f3f3f3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    aspect-ratio: 0.6 / 1;
    max-width: 400px;
    /* verkleind van 440px */
    width: 100%;
    margin: 0 auto;
}

/* Meer horizontale spacing op tablet / klein scherm */
@media (max-width: 992px) {
    .custom-news-card {
        max-width: 360px;
        /* iets smaller op tablet */
    }
}

/* Nog meer horizontale spacing op mobiel */
@media (max-width: 700px) {
    .custom-news-card {
        max-width: 320px;
        /* smaller op mobiel */
    }
}

.custom-news-card.white {
    background: #ffffff !important;
}

.custom-news-card:hover {
    transform: translateY(-6px);
}

.news-image-wrapper {
    flex: 0 0 45%;
    width: 100%;
    overflow: hidden;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-text-wrapper {
    flex: 0 0 55%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Responsive News Grid */
@media (max-width: 992px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {.news-grid {grid-template-columns: 1fr;}}

/* ==============================
   WORKSHOPS GRID
============================== */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 20px;
    margin-top: 20px;
}

.small-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.small-card h3,
.small-card h4 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: clamp(1rem, 2vw, 2rem);
    color: var(--green);
}

.small-card p {
    font-weight: 500;
    font-size: clamp(0.8rem, 1.2vw, 1.4rem);
    margin: 0;
    line-height: 1.4;
    color: var(--black);
}

@media (max-width: 992px) { .workshops-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } }
@media (max-width: 576px) { .workshops-grid { grid-template-columns: 1fr; gap: 10px; } }


/* ==============================
   3-Column Service Grid
============================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 40px 0;
}

@media (max-width: 768px) {
    .service-grid { grid-template-columns: repeat(1, 1fr); gap: 35px; padding: 40px 0; }
}

/* ==============================
   SMALL SERVICE CARDS (ROUNDED)
============================== */
.service-card-mini {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.card-top {
    position: relative;
    width: 100%;
    aspect-ratio: 100/80;
    overflow: hidden;
    border-radius: 18px;
}

.card-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-top .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    z-index: 1;
    border-radius: 18px;
}

.card-top h2 {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    z-index: 3;
    color: white;
    font-weight: 700;
    font-size: clamp(1.7rem, 2.5vw, 1.8rem);
    margin: 0;
}


/* ==============================
   SCROLL SECTION / CAROUSEL
============================== */
.ecoware-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.ecoware-carousel {
    display: flex;
    gap: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.ecoware-card {
    background: #ededed;
    flex: 0 0 calc((100% - 32px) / 3); /* 3 cards desktop */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 250px;
}

.ecoware-arrow {
    background: var(--green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2;
    margin-left: auto;
}

.ecoware-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.ecoware-indicators span {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
}

.ecoware-indicators span.active {
    background: var(--green);
}

/* Responsive carousel */
@media (max-width: 992px) {
    .ecoware-card { flex: 0 0 calc((100% - 16px) / 2); }
}

@media (max-width: 576px) {
    .ecoware-card { flex: 0 0 100%; }
}

/* ==============================
   LARGE & MINI NUMBER CIRCLES
============================== */
.number-circle {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--yellow);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}


/* ==============================
   SOCIAL / LIST STYLING
============================== */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-card-mini {
    cursor: pointer;
    flex: 0 0 calc(33.33% - 2rem); /* Desktop: 3 per row */
}

@media (max-width: 1024px) {
    .service-card-mini { flex: 0 0 calc(50% - 2rem); } /* Tablet: 2 per row */
}

@media (max-width: 768px) {
    .service-card-mini { flex: 0 0 100%; } /* Mobile: 1 per row */
}

.big-card {
    display: none; /* hidden by default */
    overflow: hidden;
    width: 100%;
    padding: 0 2rem;
    margin-top: 0;
    height: 0;
    opacity: 0;
    background: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: height 0.4s ease, padding 0.4s ease, margin-top 0.4s ease, opacity 0.4s ease;
}

.big-card.active {
    display: block; /* show for animation */
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 1.5rem;
    opacity: 1;
}

.video-wrapper {
    position: relative;
    width: 80%;
    max-width: 1000px;
    padding-bottom: 43.25%; /* ~16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    background: #f8f8f8;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

@media (max-width: 992px) { .video-wrapper { padding-bottom: 60%; } }
@media (max-width: 576px) { .video-wrapper { width: 95%; padding-bottom: 70%; } }

/* ==============================
   LIST STYLING
============================== */
.social-handprint-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.social-handprint-section ul li {
    position: relative;
    padding-left: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
}

.social-handprint-section ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.2;
}

.big-card-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
