/*
Theme Name: Familie Baboeram
Theme URI: https://baboeram.nl/
Author: Familie Baboeram
Description: Familie Baboeram familiewebsite met Surinaamse uitstraling.
Version: 1.1.2
License: GPL-2.0-or-later
Text Domain: familie-baboeram
*/

:root{
    --green:#176f54;
    --dark:#064b3a;
    --cream:#f8f3e8;
    --gold:#c99a35;
    --ink:#202020;
}

/* =========================
   BASIS
========================= */

*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}

body{
    margin:0;
    padding:0;
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    background:var(--cream);
    color:var(--ink);
    font-family:Georgia,"Times New Roman",serif;
}

img{
    max-width:100%;
    height:auto;
}

a{
    color:inherit;
    text-decoration:none;
}

/* =========================
   HEADER
========================= */

.site-header{
    width:100%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:16px 4%;
    position:relative;
    z-index:5;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--dark);
    font-weight:700;
    font-size:34px;
    line-height:.9;
    flex-shrink:0;
}

.brand-mark{
    font-size:38px;
    flex-shrink:0;
}

.brand-text{
    display:block;
}

/* =========================
   NAVIGATIE
========================= */

.main-nav{
    min-width:0;
}

.main-nav ul{
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    margin:0;
    padding:0;
    justify-content:flex-end;
}

.main-nav li{
    margin:0;
}

.main-nav a{
    display:block;
    padding:10px 12px;
    border-radius:7px;
    white-space:nowrap;
    font-size:17px;
}

.main-nav a:hover,
.main-nav .current-menu-item a{
    background:var(--green);
    color:#fff;
}

/* =========================
   HERO
========================= */

.hero{
    width:100%;
    max-width:100%;
    overflow:hidden;
    background:#111;
}

/*
   Belangrijk:
   Geen max-height en geen object-fit:cover.
   Daardoor wordt de complete banner zichtbaar
   en wordt hij niet links/rechts afgesneden.
*/

.hero img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    max-height:none;
    object-fit:contain;
    object-position:center center;
}

/* =========================
   CONTENT
========================= */

.wrap{
    width:100%;
    max-width:1500px;
    margin:0 auto;
    padding:24px 24px 40px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:16px;
}

.card{
    min-width:0;
    background:#fffdf7;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,.10);
    display:flex;
    flex-direction:column;
}

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

.card-body{
    padding:14px 16px 18px;
}

.card h2{
    font-size:21px;
    line-height:1.15;
    margin:0 0 8px;
    color:#1f1f1f;
}

.card p{
    font-size:15px;
    line-height:1.35;
    margin:0 0 14px;
}

.arrow{
    width:36px;
    height:36px;
    border:1px solid #aaa;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
}

/* =========================
   ONDERSTE SECTIES
========================= */

.lower{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-top:18px;
}

.panel{
    min-width:0;
    background:#fffdf7;
    border-radius:12px;
    padding:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.panel h2{
    margin-top:0;
    color:var(--dark);
}

/* =========================
   FOOTER
========================= */

.site-footer{
    width:100%;
    background:#064b3a;
    color:#fff;
    padding:28px 24px;
    text-align:center;
    margin-top:10px;
}

.site-footer p{
    margin:0;
    font-size:20px;
}

/* =====================================================
   TABLET
   iPad / tablets
===================================================== */

@media (max-width:1100px){

    .site-header{
        padding:14px 24px;
        gap:18px;
    }

    .brand{
        font-size:28px;
    }

    .brand-mark{
        font-size:32px;
    }

    .main-nav a{
        font-size:15px;
        padding:8px 9px;
    }

    .cards{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .lower{
        grid-template-columns:1fr;
    }
}

/* =====================================================
   TABLET / GROTE TELEFOON
===================================================== */

@media (max-width:800px){

    .site-header{
        display:block;
        padding:14px 20px;
    }

    .brand{
        justify-content:center;
        font-size:30px;
        margin-bottom:14px;
    }

    .brand-mark{
        font-size:34px;
    }

    .main-nav{
        width:100%;
        overflow-x:auto;
        overflow-y:hidden;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }

    .main-nav::-webkit-scrollbar{
        display:none;
    }

    .main-nav ul{
        flex-wrap:nowrap;
        justify-content:flex-start;
        width:max-content;
        gap:6px;
    }

    .main-nav a{
        font-size:16px;
        padding:9px 12px;
    }

    /*
       Hero blijft volledig zichtbaar.
    */

    .hero img{
        width:100%;
        height:auto;
        max-width:100%;
    }

    .wrap{
        padding:16px;
    }

    .cards{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:14px;
    }

    .card img{
        height:150px;
    }

    .card-body{
        padding:12px;
    }

    .card h2{
        font-size:20px;
    }

    .card p{
        font-size:15px;
    }
}

/* =====================================================
   IPHONE
===================================================== */

@media (max-width:600px){

    .site-header{
        padding:12px 14px;
    }

    .brand{
        justify-content:flex-start;
        gap:9px;
        font-size:27px;
        line-height:.9;
        margin-bottom:12px;
    }

    .brand-mark{
        font-size:30px;
    }

    .main-nav{
        margin:0 -2px;
    }

    .main-nav ul{
        gap:5px;
    }

    .main-nav a{
        font-size:15px;
        padding:8px 11px;
    }

    /*
       De hero mag nooit breder worden
       dan het telefoonscherm.
    */

    .hero{
        width:100%;
        max-width:100vw;
        overflow:hidden;
    }

    .hero img{
        display:block;
        width:100%;
        max-width:100%;
        height:auto;
        object-fit:contain;
    }

    .wrap{
        padding:14px 12px 30px;
    }

    /*
       Op telefoon één kaart per rij.
    */

    .cards{
        grid-template-columns:1fr;
        gap:14px;
    }

    .card{
        width:100%;
    }

    .card img{
        height:auto;
        aspect-ratio:16 / 9;
        object-fit:cover;
    }

    .card-body{
        padding:14px 16px 18px;
    }

    .card h2{
        font-size:21px;
    }

    .card p{
        font-size:16px;
        line-height:1.45;
    }

    .arrow{
        width:40px;
        height:40px;
    }

    .lower{
        grid-template-columns:1fr;
        gap:14px;
    }

    .panel{
        padding:16px;
    }

    .site-footer{
        padding:24px 16px;
    }

    .site-footer p{
        font-size:17px;
    }
}

/* =====================================================
   KLEINE IPHONE
===================================================== */

@media (max-width:390px){

    .brand{
        font-size:24px;
    }

    .brand-mark{
        font-size:27px;
    }

    .main-nav a{
        font-size:14px;
        padding:8px 10px;
    }

    .card h2{
        font-size:20px;
    }

    .card p{
        font-size:15px;
    }
}
/* =========================
   MOBIEL HAMBURGER MENU
========================= */

.menu-toggle{
    display:none;
    width:46px;
    height:46px;
    padding:9px;
    border:0;
    border-radius:8px;
    background:var(--green);
    cursor:pointer;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
}

.menu-toggle span{
    display:block;
    width:25px;
    height:3px;
    background:#fff;
    border-radius:3px;
}

/* =========================
   MOBIEL
========================= */

@media (max-width:700px){

    .site-header{
        display:grid;
        grid-template-columns:1fr auto;
        align-items:center;
        padding:12px 16px;
    }

    .brand{
        margin:0;
        justify-content:flex-start;
    }

    .menu-toggle{
        display:flex;
    }

    .main-nav{
        display:none;
        grid-column:1 / -1;
        width:100%;
        margin-top:12px;
        overflow:visible;
    }

    .main-nav.menu-open{
        display:block;
    }

    .main-nav ul{
        display:flex;
        flex-direction:column;
        flex-wrap:nowrap;
        width:100%;
        gap:4px;
        margin:0;
        padding:0;
    }

    .main-nav li{
        width:100%;
    }

    .main-nav a{
        width:100%;
        padding:12px 14px;
        font-size:18px;
        border-radius:7px;
    }

    .main-nav a:hover,
    .main-nav .current-menu-item a{
        background:var(--green);
        color:#fff;
    }
}
/* =========================
   IPAD - 3 KAARTEN PER RIJ
========================= */

@media (min-width:801px) and (max-width:1400px) and (pointer:coarse){

    .cards{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:16px;
    }

}
/* =========================
   FAMILIEFOTO
========================= */

.familie-foto {
    width: 100% !important;
    max-width: 280px !important;
    height: auto !important;
    margin: 0 0 20px 0 !important;
}

.familie-foto img {
    width: 100% !important;
    max-width: 280px !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    display: block !important;
}
/* =========================
   FAMILIE BANNER
========================= */

.wp-block-image.familie-banner,
.wp-block-image.familie-banner.alignright,
.wp-block-image.familie-banner.alignleft {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 700px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
    overflow: visible !important;
}

.wp-block-image.familie-banner img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}/* =========================
   FAMILIE BANNER
========================= */

.wp-block-image.familie-banner,
.wp-block-image.familie-banner.alignright,
.wp-block-image.familie-banner.alignleft {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 700px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
    overflow: visible !important;
}

.wp-block-image.familie-banner img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}
/* =========================
   FAMILIE BANNER
========================= */

.wp-block-image.familie-banner,
.wp-block-image.familie-banner.alignright,
.wp-block-image.familie-banner.alignleft,
img.familie-banner {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 700px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 20px auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    overflow: visible !important;
}

.wp-block-image.familie-banner img {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 !important;
}