/**
Theme Name: I-match
Author: I-match child theme
Author URI: https://i-match.nl
Description: I-match child theme 2024
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: i-match
Template: astra
*/



/* =========================================
   1. NIEUWSBERICHTEN SHORTCODE CSS
   ========================================= */

.custom-nieuws-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hz-kaart {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 28px;
    border-radius: 22px;
    border-bottom: 6px solid var(--hz-blauw, #0073aa);
    border-top: none !important;
    background: var(--hz-licht, #f3f7f4);
    box-shadow: 0 8px 24px rgba(0, 94, 40, .08);
    transition: transform .25s, box-shadow .25s;
}

.hz-kaart:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 94, 40, .12);
}

.hz-kaart.hz-kaart-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    padding: 0 !important;
    overflow: hidden !important;
    align-items: stretch !important;
    gap: 0 !important;
    border-bottom: none !important;
}

.hz-kaart.hz-kaart-main .hz-kaart-thumbnail {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.hz-kaart.hz-kaart-main .hz-kaart-thumbnail img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hz-kaart.hz-kaart-main .hz-kaart-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 32px;
}

.nieuws-grid-sub {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.hz-kaart-sub .hz-kaart-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.hz-kaart h3 {
    margin: 0 0 8px 0;
    font-family: var(--hz-kop, inherit);
    font-size: 25px;
    line-height: 1.2;
    font-weight: 600;
    color: #005e28;
}

.hz-kaart h3 a {
    color: #005e28;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.hz-kaart h3 a:hover {
    color: #00441d;
}

.nieuws-datum {
    display: block;
    margin-bottom: 6px;
    color: #005e28;
    font-size: 14px;
    font-weight: 700;
}

.nieuws-excerpt {
    margin-bottom: 16px;
    color: #333333;
    font-size: 14pt;
    line-height: 1.5;
}

.nieuws-excerpt p {
    margin: 0;
}

.nieuws-lees-meer {
    display: inline-block;
    margin-top: auto;
    color: #005e28;
    font-size: 14pt;
    font-weight: 700;
    text-decoration: none !important;
}

.nieuws-lees-meer:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hz-kaart.hz-kaart-main {
        grid-template-columns: 1fr !important;
    }

    .nieuws-grid-sub {
        grid-template-columns: 1fr;
    }

    .hz-kaart.hz-kaart-main .hz-kaart-thumbnail {
        min-height: 220px;
        max-height: 250px;
    }

    .hz-kaart.hz-kaart-main .hz-kaart-thumbnail img {
        height: 250px;
    }
}


/* =========================================
   2. GOLF EFFECT VOOR .hz-activiteiten BLOK
   ========================================= */

.hz-activiteiten {
    position: relative;
}

.vc_row:is(.hz-blok--diep,.hz-activiteiten) {
    --hz-bg: #005e28;
    padding-top: 150px !important;
}



.hz-activiteiten::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(89% - 1px);
    height: var(--hz-golf-hoogte);
    background: #eef8f1;
    pointer-events: none;
    z-index: 3;
    -webkit-mask: var(--hz-golf) center / 100% 100% no-repeat;
    mask: var(--hz-golf) center / 100% 100% no-repeat;
    transform: scaleY(-1);
	
}



/* ---------- Scroll-hamburger + slide-paneel (Het Zwembad) ---------- */
.scroll-hamburger {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #FFD23F;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, transform .2s ease;
}
.admin-bar .scroll-hamburger { top: 52px; }
.scroll-hamburger.is-visible { display: flex; }
.scroll-hamburger:hover { transform: scale(1.06); }

/* hamburgerknop: nooit blauw (hover, focus, active, na klik) */
.scroll-hamburger,
.scroll-hamburger:focus,
.scroll-hamburger:active,
.scroll-hamburger.active {
  background: #FFD23F !important;
  color: #005E28 !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25) !important;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.scroll-hamburger:hover { background: #FFE27A !important; }
.scroll-hamburger:focus-visible { outline: 3px solid #005E28; outline-offset: 3px; }

.hamburger-icon { position: relative; display: block; width: 26px; height: 20px; }
.hamburger-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: #005E28;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 8.5px; }
.hamburger-icon span:nth-child(3) { top: 17px; }
.scroll-hamburger.active .hamburger-icon span:nth-child(1) { top: 8.5px; transform: rotate(45deg); }
.scroll-hamburger.active .hamburger-icon span:nth-child(2) { opacity: 0; }
.scroll-hamburger.active .hamburger-icon span:nth-child(3) { top: 8.5px; transform: rotate(-45deg); }

.scroll-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 40, 18, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.scroll-overlay.active { opacity: 1; visibility: visible; }

.scroll-slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10000;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 130px 32px 32px;
  box-sizing: border-box;
  background: #005E28;
  color: #fff;
  border-radius: 28px 0 0 28px;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .3);
  transform: translateX(105%);
  transition: transform .4s ease;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.scroll-slide-panel.active { transform: translateX(0); }

.scroll-slide-menu-list,
.scroll-slide-menu-list ul { list-style: none; margin: 0; padding: 0; }
.scroll-slide-menu-list > li { margin-bottom: 6px; }
.scroll-slide-menu-list a {
  display: block;
  padding: 12px 20px;
  border-radius: 50px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.scroll-slide-menu-list a:hover,
.scroll-slide-menu-list .current-menu-item > a,
.scroll-slide-menu-list .current_page_item > a {
  background: #FFD23F;
  color: #005E28;
  padding-left: 26px;
}
.scroll-slide-menu-list ul { margin: 4px 0 6px 18px; }
.scroll-slide-menu-list ul a { font-size: 1rem; font-weight: 500; }

.slide-contact {
  margin-top: auto;
  padding-top: 22px;
  border-top: 2px solid rgba(255, 210, 63, .5);
  font-size: .95rem;
  line-height: 1.6;
}
.slide-contact p { margin: 0 0 12px; color: #fff; }
.slide-contact strong { color: #FFD23F; }
.slide-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.slide-contact a:hover { color: #FFD23F; }

@media (max-width: 600px) {
  .scroll-hamburger { top: 14px; right: 14px; width: 50px; height: 50px; }
  .scroll-slide-panel { padding: 115px 24px 24px; border-radius: 24px 0 0 24px; }
}

/* ---------- Submenu in hamburger-paneel: dropdown ---------- */
.scroll-slide-menu .dropdown-menu-toggle,
.scroll-slide-menu .ast-menu-toggle { display: none !important; }

.scroll-slide-menu-list .menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.scroll-slide-menu-list .menu-item-has-children > a { flex: 1 1 0; min-width: 0; }

.submenu-toggle {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.submenu-toggle:hover { background: rgba(255, 210, 63, .35); }
.submenu-toggle:focus-visible { outline: 3px solid #FFD23F; outline-offset: 2px; }
.submenu-toggle span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 3px solid #FFD23F;
  border-bottom: 3px solid #FFD23F;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s ease;
}
.menu-item-has-children.is-open > .submenu-toggle span { transform: translateY(3px) rotate(-135deg); }

.scroll-slide-menu-list .sub-menu {
  flex: 1 0 100%;
  margin: 0 0 0 18px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease, margin .35s ease;
}
.scroll-slide-menu-list .is-open > .sub-menu {
  max-height: 600px;
  opacity: 1;
  margin: 4px 0 8px 18px;
}

/* ---------- Header bij scrollen: alleen logo, zonder achtergrond ---------- */
body.hz-scrolled #masthead,
body.hz-scrolled #masthead .main-header-bar,
body.hz-scrolled #masthead .ast-primary-header-bar,
body.hz-scrolled #masthead .site-primary-header-wrap {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.hz-scrolled #masthead { pointer-events: none; }

/* alles verbergen behalve het logo (hoogte blijft behouden) */
body.hz-scrolled #masthead .ast-builder-layout-element:not([data-section="title_tagline"]),
body.hz-scrolled #masthead .main-header-bar-navigation,
body.hz-scrolled #masthead .main-header-menu,
body.hz-scrolled #masthead .ast-mobile-menu-buttons,
body.hz-scrolled #masthead .ast-header-html,
body.hz-scrolled #masthead .ast-header-button-1 {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* geen eigen Astra-animaties meer tijdens de overgang */
#masthead,
#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead .site-primary-header-wrap,
#masthead .site-branding,
#masthead .custom-logo-link img {
  transition: none !important;
}

/* logo: normale grootte, links tegen de rand van het scherm */
body.hz-scrolled #masthead [data-section="title_tagline"] {
  pointer-events: auto;
}
body.hz-scrolled #masthead .site-branding {
  position: fixed;
  top: 12px;
  left: 24px;
  z-index: 9999;
  width: auto;
  margin: 0;
  padding: 0;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  pointer-events: auto;
}
.admin-bar.hz-scrolled #masthead .site-branding { top: 44px; }

@media (max-width: 600px) {
  body.hz-scrolled #masthead .site-branding { left: 14px; top: 10px; }
}

body.hz-scrolled #masthead .custom-logo-link img,
body.hz-scrolled #masthead .site-logo-img img {
  width: 120px;
  height: auto;
}

.ast-header-break-point .ast-icon.icon-arrow svg {
    display: none;
}












