/* ==========================================================================
   HAMBURGER MENU ANIMATION
   ========================================================================== */
#hamburger.is-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#hamburger.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}
#hamburger.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Zodra het mobiele menu open staat (aria-expanded wordt door header.js gezet)
   staat er een wit menu-vlak achter de knop. De lijnen moeten dan altijd
   zwart zijn, ook als de header ervoor transparant/met witte lijnen stond. */
#hamburger[aria-expanded="true"] .line {
    background-color: #111111;
}

/* ==========================================================================
   FRISSBRASS LAYOUT STYLES - BASE
   ========================================================================== */

/* Container & Basis Reset voor FrissBrass elementen */
.frissbrass-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 50px;
    font-family: Arial, Helvetica, sans-serif;
    color: #111111;
    line-height: 1.6;
}

.container-posts {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Clearfix voor gefloate content */
.container-posts::after,
.frissbrass-content::after {
    content: "";
    display: table;
    clear: both;
}

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.frissbrass-hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: start;
    margin-bottom: 80px;
}

.frissbrass-hero .hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 30px;
    color: #111111;
}

.frissbrass-hero .hero-text p,
.frissbrass-hero .hero-text .wp-block-post-excerpt__excerpt {
    font-size: 1.2rem;
    max-width: 420px;
    line-height: 1.6;
    margin: 0;
    color: #333333;
}

.frissbrass-hero .hero-image img,
.frissbrass-hero .hero-image .wp-post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   2. CONTENT SECTION (UITGEBREIDE GUTENBERG STYLING)
   -------------------------------------------------------------------------- */
.frissbrass-content {
    margin-bottom: 80px;
}

/* --- Koppen (H1 t/m H6) --- */
.frissbrass-content h1,
.frissbrass-content h2,
.frissbrass-content h3,
.frissbrass-content h4,
.frissbrass-content h5,
.frissbrass-content h6 {
    color: #111111;
    font-weight: bold;
    line-height: 1.25;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    clear: both;
}

.frissbrass-content h1 { font-size: 2.8rem; margin-top: 0; }
.frissbrass-content h2 { font-size: 2.3rem; margin-top: 0; margin-bottom: 15px; }
.frissbrass-content h3 { font-size: 1.6rem; }
.frissbrass-content h4 { font-size: 1.3rem; }
.frissbrass-content h5 { font-size: 1.15rem; }
.frissbrass-content h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: #555555; }

/* --- Typografie & Paragraphs --- */
.frissbrass-content p {
    font-size: 1.15rem;
    line-height: 1.65;
    margin-top: 0;
    margin-bottom: 35px;
    max-width: 900px;
    color: #222222;
}

.frissbrass-content a {
    color: #0D4B6B;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.frissbrass-content a:hover {
    color: #083650;
}

.frissbrass-content strong,
.frissbrass-content b {
    font-weight: bold;
    color: #111111;
}

.frissbrass-content mark {
    background-color: #fff099;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Drop Cap (Grote beginletter) */
.frissbrass-content .has-drop-cap:not(:focus):first-letter {
    float: left;
    font-size: 4rem;
    font-weight: bold;
    line-height: 0.9;
    margin: 0.1em 0.15em 0 0;
    color: #0D4B6B;
}

/* --- Lijsten (UL & OL) --- */
.frissbrass-content ul,
.frissbrass-content ol {
    margin-top: 0;
    margin-bottom: 35px;
    padding-left: 1.5rem;
    font-size: 1.15rem;
}

.frissbrass-content ul { list-style-type: disc; }
.frissbrass-content ol { list-style-type: decimal; }

.frissbrass-content li {
    margin-bottom: 0.5rem;
}

/* --- Blockquotes & Citaten --- */
.frissbrass-content blockquote,
.frissbrass-content .wp-block-quote {
    margin: 40px 0;
    padding: 20px 25px;
    border-left: 4px solid #0D4B6B;
    background-color: #f7f9fa;
    border-radius: 0 8px 8px 0;
}

.frissbrass-content blockquote p,
.frissbrass-content .wp-block-quote p {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 0;
    color: #333333;
}

.frissbrass-content blockquote cite,
.frissbrass-content .wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: bold;
    color: #666666;
}

/* --- Afbeeldingen & Uitlijning --- */
.frissbrass-content figure {
    margin: 35px 0;
}

.frissbrass-content img,
.frissbrass-content .wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.frissbrass-content figcaption {
    font-size: 0.9rem;
    color: #666666;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Gutenberg alignments */
.frissbrass-content .alignleft {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    max-width: 50%;
}

.frissbrass-content .alignright {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    max-width: 50%;
}

.frissbrass-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --- Gutenberg Gallery --- */
.frissbrass-content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 0;
    list-style: none;
}

.frissbrass-content .wp-block-gallery figure {
    margin: 0;
}

.frissbrass-content .wp-block-gallery img {
    height: 100%;
    object-fit: cover;
}

/* --- Embeds & Video's --- */
.frissbrass-content .wp-block-embed {
    margin: 40px 0;
}

.frissbrass-content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.frissbrass-content .wp-block-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* --- Tabellen --- */
.frissbrass-content table,
.frissbrass-content .wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
}

.frissbrass-content th,
.frissbrass-content td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.frissbrass-content th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* --- Code & Separators --- */
.frissbrass-content pre,
.frissbrass-content .wp-block-code {
    background-color: #1e1e1e;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: monospace;
}

.frissbrass-content hr,
.frissbrass-content .wp-block-separator {
    border: none;
    height: 1px;
    background-color: #e0e0e0;
    margin: 50px 0;
}

/* --------------------------------------------------------------------------
   3. CTA SECTION (Call to Action)
   -------------------------------------------------------------------------- */
.frissbrass-cta {
    margin-bottom: 80px;
}

.frissbrass-cta h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #111111;
}

.frissbrass-cta p {
    font-size: 1.15rem;
    max-width: 550px;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Gutenberg Buttons styling omzetten naar FrissBrass stijl */
.frissbrass-cta .wp-block-button__link,
.frissbrass-cta a.button,
.frissbrass-content .wp-block-button__link {
    display: inline-block;
    background-color: #0D4B6B;
    color: #ffffff !important;
    text-decoration: none;
    padding: 18px 50px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.frissbrass-cta .wp-block-button__link:hover,
.frissbrass-cta a.button:hover,
.frissbrass-content .wp-block-button__link:hover {
    background-color: #083650;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Media Queries)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .frissbrass-container {
        padding: 40px 20px;
    }

    .container-posts {
        padding-inline: 20px;
    }

    /* Hero Responsive */
    .frissbrass-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }

    .frissbrass-hero .hero-text h1 {
        font-size: 2.3rem;
        margin-bottom: 20px;
    }

    /* Content & Typografie Responsive */
    .frissbrass-content h1 { font-size: 2.2rem; }
    .frissbrass-content h2,
    .frissbrass-cta h2 { font-size: 1.85rem; }
    .frissbrass-content h3 { font-size: 1.4rem; }

    .frissbrass-content p,
    .frissbrass-cta p {
        font-size: 1rem5;
        margin-bottom: 25px;
    }

    .frissbrass-content,
    .frissbrass-cta {
        margin-bottom: 50px;
    }

    /* Floats uitschakelen op mobiel/tablet */
    .frissbrass-content .alignleft,
    .frissbrass-content .alignright {
        float: none;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Tabellen laten scrollen */
    .frissbrass-content table,
    .frissbrass-content .wp-block-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Knoppen mobiel full-width optioneel */
    .frissbrass-cta .wp-block-button__link,
    .frissbrass-cta a.button {
        text-align: center;
    }
}