/* ==========================================
   1. Basisinstellingen & Open Sans Lettertype
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #00b4d8;
    --primary-dark: #0077b6;
    --dark-bg: #11161d;
    --light-bg: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('/static/img/web_background.png') no-repeat center center;
    background-size: cover;
    opacity: 0.10; /* Bepaalt hoe subtiel/licht het watermerk zichtbaar is (probeer 0.05 tot 0.12) */
    z-index: -1;   /* Zorgt ervoor dat het altijd netjes achter alle content en tabellen blijft */
    pointer-events: none; /* Zorgt dat je er niet per ongeluk op kunt klikken */
}

body {
    position: relative;
    font-family: 'Open Sans', sans-serif !important;
    color: var(--text-main);
    background-color: #fcfcfc;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Laat de inhoud netjes bovenin starten i.p.v. geforceerd centreren */
    overflow-y: auto; /* Zorgt dat de inhoud binnen deze container eventueel subtiel kan scrollen als het te veel wordt, zonder de footer weg te duwen */
}

/* ==========================================
   2. Header & Navigatiebalk
   ========================================== */
header {
    background-color: var(--dark-bg);
    color: var(--white);
    width: 100%;
    flex-shrink: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.logo {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-family: 'Open Sans', sans-serif;
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 18px 0;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .active > a {
    color: var(--primary-color);
}

.nav-logo-item {
    display: flex;
    align-items: center;
}

.nav-logo-item a {
    padding: 0 !important; /* Opheffen van de standaard link-padding van de menu-items */
    display: flex;
    align-items: center;
}

.nav-elis-logo {
    height: 24px; /* Slanke hoogte zodat de navigatiebalk 60px strak blijft */
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.nav-elis-logo:hover {
    opacity: 0.8;
}

/* ==========================================
   3. Dropdown Menu (Products)
   ========================================== */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    z-index: 1;
    list-style: none;
    border-top: 3px solid var(--primary-color);
}

.dropdown-content li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content a {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    padding: 10px 14px;
    display: block;
    text-transform: none;
    font-weight: 400;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ==========================================
   4. Hoofdinhoud & Landingspagina Layout
   ========================================== */
h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8rem;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

p {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.hero-logo-container {
    padding: 8px 20px 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: left !important;
    flex-shrink: 0;
}

.hero-logo {
    height: 38px;
    width: auto;
    display: inline-block;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 25px;
    align-items: center;
}

@media (max-width: 900px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
}

/* LinkedIn widget schaalbaar */
.sidebar-linkedin {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    transform: scale(0.55); 
    transform-origin: top left;
    margin-bottom: -35%;
    overflow: hidden;
}

.sidebar-linkedin h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 6px;
    color: #111;
    border-bottom: 2px solid var(--primary-color, #0066cc);
    padding-bottom: 4px;
}

.feed-wrapper-compact {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
}

/* ==========================================
   5. Contact Pagina & Subpagina's (Geoptimaliseerd passend)
   ========================================== */
.about-container, .page-container {
    max-width: 1100px;
    margin: 10px auto;
    padding: 0 20px;
    line-height: 1.4;
    color: #333;
}

/* Specifieke correctie voor hoofdafbeeldingen zoals het XFR logo op productpagina's */
.page-container img, .about-container img {
    max-height: 50px;
    width: auto;
    margin-bottom: 8px;
}

.about-container h1, .hero-block h1 {
    font-size: 1.9rem;
    color: #111;
    margin-bottom: 10px;
}

.lead-text {
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 15px;
}

.info-grid, .content-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px; /* Kleinere tussenruimte zodat alles past */
    margin: 10px 0;
}

.info-card, .sdg-card {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color, #0066cc);
    padding: 10px 14px; /* Slankere padding */
    border-radius: 4px;
}

.info-card h3, .sdg-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.info-card p, .sdg-card p {
    font-size: 0.82rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.mission-box {
    background: #eef6ff;
    border: 1px solid #cce0ff;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

/* Contact Grid geoptimaliseerd zodat het formulier en de kaart perfect binnen het scherm vallen */
.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr;
    gap: 20px;
    margin-top: 10px;
    align-items: start;
}

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

.contact-form, .contact-info-card {
    background: #fff;
    padding: 18px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group textarea {
    height: 75px; /* Beperkt de hoogte van het tekstbericht zodat het formulier niet uitschiet */
    resize: none;
}

.alert {
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================
   Partners Pagina Layout (Tegel Structuur)
   ========================================== */
.partners-page {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-top: 10px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

.partner-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.partner-logo-wrapper {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background-color: #fafafa;
    border-radius: 6px;
    padding: 8px 12px;
}

.partner-logo {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}

.partner-info h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
}

.partner-info p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 0;
}

/* ==========================================
   6. Zwarte Footer & Socials (Vast onderaan)
   ========================================== */
.site-footer {
    background-color: #000000;
    color: #00bcd4;
    padding: 12px 20px;
    flex-shrink: 0;
    border-top: 1px solid #1a1a1a;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    font-family: 'Open Sans', sans-serif;
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-col p, .footer-col a {
    font-family: 'Open Sans', sans-serif;
    color: #00bcd4;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 6px;
    align-items: center;
}

.footer-socials a {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.footer-socials a svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    max-height: 24px;
    fill: #ffffff;
    display: block;
    transition: opacity 0.2s ease;
}

.footer-socials a:hover svg {
    opacity: 0.7;
}

.footer-tagline {
    font-family: 'Open Sans', sans-serif;
    color: #00bcd4;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 3px;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.stats-box.full-width {
    grid-column: 1 / -1;
}

/* Referenties Grid Layout */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.reference-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.reference-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa; /* Lichte achtergrond achter de afbeelding */
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-img-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.reference-card:hover .reference-img-container img {
    transform: scale(1.05);
}

.reference-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.reference-body h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: #111;
}

.reference-body p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}