/*
 * Theme Name: Signijkerk
 * Theme URI: https://signijkerk.nl
 * Description: Custom theme voor Signijkerk met React Gutenberg blocks en Tailwind CSS.
 * Version: 1.0.2
 * Author: Gerroy Bouw
 * Text Domain: signijkerk
 * Requires at least: 6.7
 * Tested up to: 6.9
 * Requires PHP: 8.1
 */

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

html,
body {
    /* Voorkom horizontale scrollbar wanneer .alignfull breakout met 100vw breder is dan body (door scrollbar). */
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Site header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--wp--preset--color--primary, #1A3C5E) 70%, transparent) 0%,
        transparent 100%
    );
    color: #fff;
    padding: 1.5rem 0 3rem;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
}

.site-nav .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.site-nav .nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.site-nav .nav-menu a:hover {
    opacity: 0.8;
}

/* Site main */
.site-main {
    min-height: 60vh;
}

/* Beperk normale blokken tot content-breedte */
.site-main > :not(.alignwide):not(.alignfull) {
    max-width: var(--wp--style--global--content-size, 720px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* Wide-blokken gebruiken de brede maat */
.site-main > .alignwide {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Full-width blokken vullen het volledige scherm.
 * Breakout-techniek: 100vw + negatieve margin trekt het block uit eventuele
 * parent-constraints, zodat edge-to-edge altijd werkt — ongeacht of de
 * directe ouder een max-width heeft. */
.site-main > .alignfull {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

/* Site footer */
.site-footer {
    background: var(--wp--preset--color--primary, #1A3C5E);
    color: #fff;
    margin-top: 4rem;
}

/* ---- Widget grid ---- */
.site-footer__widgets {
    display: grid;
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
}

.site-footer__widgets[data-columns="1"] { grid-template-columns: 1fr; }
.site-footer__widgets[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.site-footer__widgets[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.site-footer__widgets[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .site-footer__widgets[data-columns="3"],
    .site-footer__widgets[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .site-footer__widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.site-footer__credit-heart{
    -webkit-animation: 1s pulse infinite alternate;
    animation: 1s pulse infinite alternate;
}
.footer-widget-area > * + * {
    margin-top: 0.5rem;
}

/* ---- Titels: zowel widget-titel als heading-block binnen widget ---- */
.footer-widget__title,
.footer-widget-area h1,
.footer-widget-area h2,
.footer-widget-area h3,
.footer-widget-area h4 {
    position: relative;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.footer-widget__title::after,
.footer-widget-area h1::after,
.footer-widget-area h2::after,
.footer-widget-area h3::after,
.footer-widget-area h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--wp--preset--color--accent, #F07D00);
}

/* ---- Tekst-blokken binnen widgets ---- */
.footer-widget-area p {
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-widget-area a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-widget-area a:hover {
    color: var(--wp--preset--color--accent, #F07D00);
}

.footer-widget-area ul,
.footer-widget-area ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget-area li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

/* ---- Social Icons block in donkere footer ---- */
.footer-widget-area .wp-block-social-links {
    margin: 0.75rem 0;
    gap: 0.5rem;
}

.footer-widget-area .wp-social-link {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.2s;
}

.footer-widget-area .wp-social-link:hover {
    background: var(--wp--preset--color--accent, #F07D00);
}

.footer-widget-area .wp-social-link svg {
    fill: #fff;
}

/* ---- Contact Form 7 in donkere footer ---- */
.footer-widget-area .wpcf7 form > p {
    margin: 0 0 0.65rem;
}

.footer-widget-area .wpcf7 input[type="text"],
.footer-widget-area .wpcf7 input[type="email"],
.footer-widget-area .wpcf7 input[type="tel"],
.footer-widget-area .wpcf7 input[type="url"],
.footer-widget-area .wpcf7 textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}

.footer-widget-area .wpcf7 input::placeholder,
.footer-widget-area .wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-widget-area .wpcf7 input:focus,
.footer-widget-area .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--accent, #F07D00);
    background: rgba(255, 255, 255, 0.1);
}

.footer-widget-area .wpcf7 input[type="submit"] {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--wp--preset--color--accent, #F07D00);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.footer-widget-area .wpcf7 input[type="submit"]:hover {
    opacity: 0.9;
}

.footer-widget-area .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 3px;
}

/* ---- Hardcoded bottom-bar ---- */
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__credits {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-footer__credit {
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__credit-heart {
    display: inline-flex;
    align-items: center;
    color: var(--wp--preset--color--accent, #F07D00);
}

.site-footer__credit-heart svg {
    width: 14px;
    height: 14px;
}

.site-footer__credit-author {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__credit-author:hover {
    color: var(--wp--preset--color--accent, #F07D00);
}

.site-footer__copyright {
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__privacy {
    color: var(--wp--preset--color--accent, #F07D00);
    text-decoration: none;
    transition: opacity 0.2s;
}

.site-footer__privacy:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* Footer nav rechts */
.site-footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
}

.site-footer__nav a {
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__nav a:hover {
    color: #fff;
}

.site-footer__nav a.is-active {
    color: #fff;
}

.site-footer__nav a.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--wp--preset--color--accent, #F07D00);
}

@media (max-width: 640px) {
    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__nav ul {
        gap: 1.25rem;
    }
}

/* ---- Sticky scroll-to-top knop ---- */
.scroll-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 999;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wp--preset--color--primary, #1A3C5E);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.scroll-to-top:hover {
    background: var(--wp--preset--color--accent, #F07D00);
    border-color: var(--wp--preset--color--accent, #F07D00);
    transform: translateY(-2px);
}

.scroll-to-top:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent, #F07D00);
    outline-offset: 2px;
}

.scroll-to-top svg {
    width: 18px;
    height: 18px;
}

@-webkit-keyframes pulse {
    0%,100% {
        -webkit-transform: scale3d(1,1,1);
        -ms-transform: scale3d(1,1,1);
        transform: scale3d(1,1,1)
    }

    50% {
        -webkit-transform: scale3d(1.1,1.1,1.1);
        -ms-transform: scale3d(1.1,1.1,1.1);
        transform: scale3d(1.1,1.1,1.1)
    }
}

@keyframes pulse {
    0%,100% {
        -webkit-transform: scale3d(1,1,1);
        -ms-transform: scale3d(1,1,1);
        transform: scale3d(1,1,1)
    }

    50% {
        -webkit-transform: scale3d(1.1,1.1,1.1);
        -ms-transform: scale3d(1.1,1.1,1.1);
        transform: scale3d(1.1,1.1,1.1)
    }
}