/*
Theme Name: SkateWorld Child
Theme URI: https://skateworld.be
Description: Child theme voor SkateWorld (ijsbaan Leuven). Structurele styling en huisstijl-tokens. Gebouwd op Hello Elementor.
Author: Diginess
Template: hello-elementor
Version: 1.8.0
Text Domain: skateworld-child
*/

:root{
  /* Huisstijl-tokens (voorlopig, ijs/koel — vervangen na definitief logo) */
  --sw-ice:      #0A6AD6;  /* primair ijsblauw */
  --sw-ice-dark: #0B1B2B;  /* diepblauw / ink */
  --sw-ice-soft: #DCEEFF;  /* licht ijsblauw vlak */
  --sw-white:    #FFFFFF;
  --sw-neutral:  #5B6B7B;
  --sw-radius:   10px;
  --sw-maxw:     1200px;
}

/* Toegankelijke, zichtbare focus-states (WCAG) */
a:focus-visible, button:focus-visible,
.elementor-button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 3px solid var(--sw-ice);
  outline-offset: 2px;
}

/* Vlottere afbeeldingen: nooit horizontaal scrollen op mobiel */
img{ max-width:100%; height:auto; }
html, body{ overflow-x:hidden; }

/* ==========================================================================
   Flex-kolom utilities voor Elementor-containers (betrouwbaar naast elkaar)
   Zet op een container-child via "CSS Classes". De ouder-container moet
   flex-direction:row + flex-wrap:wrap hebben (standaard in onze secties).
   ========================================================================== */
.sw-col{        flex: 1 1 200px; min-width: 0; }   /* gelijke, flexibele kolom */
.sw-col-wide{   flex: 1.6 1 240px; min-width: 0; }  /* bredere eerste kolom (footer) */
.sw-card{       flex: 1 1 230px; min-width: 0; }    /* kaart in een rij van meerdere */
.sw-card-2{     flex: 1 1 320px; min-width: 0; }    /* kaart in een rij van twee */

/* Mobiel: alles onder elkaar, volle breedte */
@media (max-width: 767px){
  .sw-col, .sw-col-wide, .sw-card, .sw-card-2{ flex-basis: 100%; }
}

/* ==========================================================================
   Kolom-rijen via CSS-ID (betrouwbaar): overschrijft Elementor's --width:100%
   op elke .e-con, zodat container-kinderen als flex-kolommen naast elkaar staan.
   Gebruik: geef de RIJ-container een CSS ID en voeg hier een regel toe.
   ========================================================================== */
#sw-footer-row > .e-con-inner{
  display:flex; flex-direction:row; flex-wrap:wrap;
  align-items:flex-start; gap:32px 40px;
}
#sw-footer-row > .e-con-inner > .e-con{
  --width:auto; width:auto; flex:1 1 190px; min-width:0;
}
#sw-footer-row > .e-con-inner > .e-con:first-child{ flex:1.7 1 240px; }
@media (max-width:767px){
  #sw-footer-row > .e-con-inner > .e-con{ flex-basis:100%; }
}

/* ==========================================================================
   Homepage-rijen als CSS-grid (negeert het --width:100% probleem netjes).
   ========================================================================== */
/* Homepage-rijen zijn 'full' containers (geen .e-con-inner) -> grid direct op het element */
#sw-grid-aanbod, #sw-grid-steps, #sw-grid-barshop, #sw-grid-trust{ display:grid !important; gap:24px; }
#sw-grid-aanbod { grid-template-columns:repeat(2,1fr); align-items:stretch; }
#sw-grid-steps  { grid-template-columns:repeat(3,1fr); align-items:stretch; }
#sw-grid-barshop{ grid-template-columns:repeat(2,1fr); align-items:stretch; }
#sw-grid-trust  { grid-template-columns:repeat(4,1fr); align-items:start; }

/* kaarten vullen hun cel (overschrijf Elementor --width:100%) */
#sw-grid-aanbod > .e-con,
#sw-grid-steps  > .e-con,
#sw-grid-barshop> .e-con{ --width:auto; width:auto; height:100%; }

/* Tablet */
@media (max-width:1024px){
  #sw-grid-steps, #sw-grid-trust{ grid-template-columns:repeat(2,1fr); }
}
/* Mobiel: alles onder elkaar (trust blijft 2 kolommen = compact) */
@media (max-width:767px){
  #sw-grid-aanbod, #sw-grid-steps, #sw-grid-barshop{ grid-template-columns:1fr; }
  #sw-grid-trust{ grid-template-columns:repeat(2,1fr); }
}

/* Hero-knoppen gecentreerd als groep (i.p.v. uit elkaar geduwd) */
#sw-hero-btns{ justify-content:center; }
#sw-hero-btns > .e-con{ --width:auto; width:auto; flex:0 0 auto; }

/* ==========================================================================
   Herbruikbare subpagina-grids (full containers met CSS-ID sw-g2 / sw-g3 / sw-g4)
   ========================================================================== */
#sw-g2, #sw-g2b, #sw-g3, #sw-g4{ display:grid !important; gap:24px; }
#sw-g2, #sw-g2b{ grid-template-columns:repeat(2,1fr); align-items:stretch; }
#sw-g3{ grid-template-columns:repeat(3,1fr); align-items:stretch; }
#sw-g4{ grid-template-columns:repeat(4,1fr); align-items:start; }
#sw-g2 > .e-con, #sw-g2b > .e-con, #sw-g3 > .e-con, #sw-g4 > .e-con{ --width:auto; width:auto; height:100%; }
@media (max-width:1024px){ #sw-g3, #sw-g4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:767px){ #sw-g2, #sw-g2b, #sw-g3{ grid-template-columns:1fr; } #sw-g4{ grid-template-columns:repeat(2,1fr); } }
/* Knop-groep gecentreerd (subpagina hero/CTA) */
.sw-btnrow > .e-con{ --width:auto; width:auto; flex:0 0 auto; }

/* ==========================================================================
   MOBIEL (<768px) — compacte header, leesbare koppen, volle-breedte knoppen
   ========================================================================== */
@media (max-width:767px){

  /* --- Header op één rij: logo links, CTA + hamburger rechts --- */
  .elementor-location-header .e-con > .e-con-inner{
    flex-direction:row !important; flex-wrap:nowrap !important;
    justify-content:space-between !important; align-items:center !important;
    gap:8px !important; padding-top:8px !important; padding-bottom:8px !important;
  }
  /* logo links, hamburger rechts. De CTA staat op mobiel in de vaste balk onderaan. */
  .elementor-location-header .elementor-widget-theme-site-logo{ order:1; flex:0 0 auto !important; width:auto !important; }
  .elementor-location-header .elementor-widget-theme-site-logo img{ width:140px !important; max-width:none !important; }
  .elementor-location-header .elementor-widget-button{ display:none !important; }
  .elementor-location-header .elementor-widget-nav-menu{ order:3; flex:0 0 auto; margin-left:auto !important; }
  /* hamburger altijd zichtbaar en groot genoeg om te tikken */
  .elementor-location-header .elementor-menu-toggle{
    display:flex !important; padding:8px !important; font-size:26px !important; color:#fff !important;
  }

  /* eyebrow niet over 2 regels breken */
  .elementor-location-single .elementor-widget-heading div,
  .e-con .elementor-widget-heading div{ letter-spacing:.6px !important; font-size:14px !important; }

  /* --- Koppen schalen naar het scherm --- */
  .elementor-widget-heading h1{ font-size:28px !important; line-height:1.2 !important; }
  .elementor-widget-heading h2{ font-size:24px !important; line-height:1.25 !important; }
  .elementor-widget-heading h3{ font-size:19px !important; }
  .elementor-widget-text-editor{ font-size:16px !important; }

  /* --- Knoppen: onder elkaar, volle breedte, groot genoeg om te tikken --- */
  .elementor-widget-button .elementor-button{
    width:100%; justify-content:center; padding-top:14px !important; padding-bottom:14px !important;
  }
  #sw-hero-btns, .e-con[id^="sw-"] .e-con{ flex-wrap:wrap !important; }
  #sw-hero-btns > .e-con{ flex:1 1 100% !important; }

  /* --- Minder loze ruimte in secties --- */
  .elementor-location-single .e-con > .e-con-inner,
  .e-con.e-con-boxed > .e-con-inner{ padding-left:18px !important; padding-right:18px !important; }

  /* --- Tabellen: meer ruimte voor de omschrijving, smalle prijskolom --- */
  .elementor-widget-text-editor table{ table-layout:fixed; width:100%; }
  .elementor-widget-text-editor td, .elementor-widget-text-editor th{ word-break:break-word; hyphens:auto; }
  .elementor-widget-text-editor th:first-child,
  .elementor-widget-text-editor td:first-child{ width:64%; }
  .elementor-widget-text-editor th:last-child,
  .elementor-widget-text-editor td:last-child{ width:36%; vertical-align:top; }

  /* --- Vaste reserveer-balk onderaan --- */
  .sw-mobile-cta{
    display:flex !important; position:fixed; left:12px; right:12px; bottom:12px; z-index:9999;
    align-items:center; justify-content:center;
    background:#0A6AD6; color:#fff !important; text-decoration:none;
    font-family:Inter, sans-serif; font-weight:700; font-size:16px;
    padding:15px 18px; border-radius:12px;
    box-shadow:0 10px 28px rgba(11,27,43,.38);
  }
  .sw-mobile-cta:active{ background:#00A3E0; }
  body{ padding-bottom:80px; } /* zodat de balk niets afdekt */
}

/* Balk enkel op mobiel tonen */
.sw-mobile-cta{ display:none; }

/* ==========================================================================
   Foto-kaarten: beeld bovenaan (bijgesneden), tekst eronder
   ========================================================================== */
#sw-grid-aanbod > .e-con, #sw-grid-barshop > .e-con,
#sw-g2 > .e-con, #sw-g3 > .e-con{ overflow:hidden; }
#sw-grid-aanbod .elementor-widget-image img,
#sw-grid-barshop .elementor-widget-image img,
#sw-g2 .elementor-widget-image img,
#sw-g3 .elementor-widget-image img{
  width:100% !important; height:215px; object-fit:cover; display:block; border-radius:0;
}
#sw-grid-aanbod .elementor-widget-image,
#sw-grid-barshop .elementor-widget-image,
#sw-g2 .elementor-widget-image,
#sw-g3 .elementor-widget-image{ line-height:0; }
/* wrappers block-level: anders heeft width:100% op de <img> geen referentie */
#sw-grid-aanbod .elementor-widget-image a, #sw-grid-aanbod .elementor-widget-image figure,
#sw-grid-barshop .elementor-widget-image a, #sw-grid-barshop .elementor-widget-image figure,
#sw-g2 .elementor-widget-image a, #sw-g2 .elementor-widget-image figure,
#sw-g3 .elementor-widget-image a, #sw-g3 .elementor-widget-image figure,
#sw-grid-aanbod .elementor-widget-image .elementor-widget-container,
#sw-grid-barshop .elementor-widget-image .elementor-widget-container,
#sw-g2 .elementor-widget-image .elementor-widget-container,
#sw-g3 .elementor-widget-image .elementor-widget-container{
  display:block !important; width:100% !important; margin:0 !important;
}
@media (max-width:767px){
  #sw-grid-aanbod .elementor-widget-image img,
  #sw-grid-barshop .elementor-widget-image img,
  #sw-g2 .elementor-widget-image img,
  #sw-g3 .elementor-widget-image img{ height:190px; }
}

/* ==========================================================================
   Sfeergalerij: gelijkmatig raster (foto's hebben verschillende verhoudingen)
   ========================================================================== */
#sw-sec-galerij .gallery{
  display:grid !important; grid-template-columns:repeat(4,1fr); gap:14px;
}
#sw-sec-galerij .gallery-item{
  width:100% !important; max-width:100% !important;  /* WP zet max-width:25% per kolom */
  margin:0 !important; float:none !important; display:block;
}
/* wrappers block-level maken, anders heeft width:100% op de <img> geen referentie */
#sw-sec-galerij .gallery-item .gallery-icon,
#sw-sec-galerij .gallery-item .gallery-icon a{
  display:block !important; width:100% !important; margin:0 !important;
}
#sw-sec-galerij .gallery-item img{
  width:100% !important; height:240px !important; object-fit:cover;
  border:none !important; border-radius:12px; display:block;
  transition: transform .35s ease, box-shadow .35s ease;
}
#sw-sec-galerij .gallery-item img:hover{
  transform: scale(1.03); box-shadow:0 14px 34px rgba(11,27,43,.22);
}
#sw-sec-galerij .gallery-caption{ display:none !important; }
@media (max-width:1024px){ #sw-sec-galerij .gallery{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:767px){
  #sw-sec-galerij .gallery{ grid-template-columns:repeat(2,1fr); gap:10px; }
  #sw-sec-galerij .gallery-item img{ height:150px !important; }
}

/* ==========================================================================
   Sfeer-carousel: alle slides even hoog en netjes uitgesneden (niet vervormd).
   object-fit:cover snijdt bij i.p.v. uit te rekken — werkt ook voor gsm-foto's.
   ========================================================================== */
/* De keten is .swiper-slide > a > figure > img. De <a> is van nature INLINE,
   waardoor width:100% op de img geen referentie heeft. Alle schakels blokken. */
#sw-sec-galerij .swiper-slide{ display:block !important; height:auto; }
#sw-sec-galerij .swiper-slide > a,
#sw-sec-galerij .swiper-slide figure.swiper-slide-inner{
  display:block !important; width:100% !important; height:340px !important; margin:0 !important;
}
#sw-sec-galerij .swiper-slide img,
#sw-sec-galerij .swiper-slide-image{
  display:block !important;
  width:100% !important; max-width:none !important; height:100% !important;
  object-fit:cover !important; object-position:center 42%;
  border-radius:12px;
}
#sw-sec-galerij .elementor-swiper-button{ color:#0A6AD6; }
@media (max-width:1024px){ #sw-sec-galerij .swiper-slide > a, #sw-sec-galerij .swiper-slide figure.swiper-slide-inner{ height:280px !important; } }
@media (max-width:767px){  #sw-sec-galerij .swiper-slide > a, #sw-sec-galerij .swiper-slide figure.swiper-slide-inner{ height:240px !important; } }

/* ==========================================================================
   Prijstabellen (HTML-tabellen in tekstwidgets) — nette, leesbare opmaak
   ========================================================================== */
.elementor-widget-text-editor table{
  width:100%; border-collapse:collapse; margin:6px 0 4px; background:#fff;
  border-radius:12px; overflow:hidden; box-shadow:0 4px 18px rgba(11,27,43,.07);
}
.elementor-widget-text-editor th,
.elementor-widget-text-editor td{
  padding:13px 16px; border-bottom:1px solid #E6EEF8; text-align:left;
  font-size:16px; line-height:1.45; vertical-align:top;
}
.elementor-widget-text-editor th{
  background:#0B2540; color:#fff; font-weight:700; font-family:Montserrat,sans-serif; font-size:15px;
}
.elementor-widget-text-editor tr:last-child td{ border-bottom:none; }
.elementor-widget-text-editor td:last-child{
  text-align:right; white-space:nowrap; font-weight:700; color:#0B1B2B;
}
.elementor-widget-text-editor tbody tr:nth-child(even) td{ background:#F8FBFF; }
@media (max-width:600px){
  .elementor-widget-text-editor th, .elementor-widget-text-editor td{ padding:10px 12px; font-size:15px; }
}

/* ==========================================================================
   Rustiger, samenhangend kleurenschema (donker + wit, blauw als accent)
   ========================================================================== */
/* Let op: elke sectie heeft een BUITENSTE (#sw-sec-x) en een BINNENSTE (> .e-con)
   gekleurde container. We stylen beide zodat de kleur altijd pakt. */
/* Hero: achtergrondfoto + overlay worden in Elementor gezet; binnenste container
   moet transparant blijven zodat de foto zichtbaar is. */
#sw-sec-hero > .e-con { background-color: transparent !important; background-image: none !important; }

/* PERFORMANCE: geoptimaliseerde, vooraf bijgesneden hero (WebP) i.p.v. de volledige
   staande foto. Desktop 1600x700 (84 KB) / mobiel 900x760 (66 KB) i.p.v. 258 KB. */
#sw-sec-hero{
  background-image: url("/wp-content/uploads/2026/07/hero-ijsbaan-desktop.webp") !important;
  background-size: cover !important;
  background-position: center 42% !important;
  background-repeat: no-repeat !important;
}
@media (max-width:767px){
  #sw-sec-hero{ background-image: url("/wp-content/uploads/2026/07/hero-ijsbaan-mobiel.webp") !important; }
}
#sw-sec-trust, #sw-sec-trust > .e-con { background-color: #0B2540 !important; background-image: linear-gradient(165deg,#0E3E73 0%,#0B2540 100%) !important; }
#sw-sec-aanbod,#sw-sec-aanbod> .e-con { background-color: #FFFFFF !important; background-image: none !important; }
#sw-sec-steps, #sw-sec-steps > .e-con { background-color: #F4F9FF !important; background-image: none !important; }
#sw-sec-event, #sw-sec-event > .e-con { background-color: #0B1B2B !important; background-image: linear-gradient(165deg,#0B1B2B 0%,#0E3E73 100%) !important; }
#sw-sec-barshop,#sw-sec-barshop>.e-con{ background-color: #FFFFFF !important; background-image: none !important; }
#sw-sec-faq,   #sw-sec-faq   > .e-con { background-color: #F4F9FF !important; background-image: none !important; }
#sw-sec-cta,   #sw-sec-cta   > .e-con { background-color: #0A6AD6 !important; background-image: linear-gradient(135deg,#0A4FA0 0%,#0A6AD6 100%) !important; }

/* ==========================================================================
   Micro-animaties voor energie (subtiel, performant)
   ========================================================================== */
/* Kaart hover-lift */
#sw-grid-aanbod > .e-con, #sw-grid-barshop > .e-con{
  transition: transform .25s ease, box-shadow .25s ease;
}
#sw-grid-aanbod > .e-con:hover, #sw-grid-barshop > .e-con:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(11,27,43,0.18)!important;
}
/* Knoppen: zachte lift + schaduw op hover */
.elementor-button{ transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease!important; }
.elementor-button:hover{ transform: translateY(-2px); box-shadow:0 10px 24px rgba(10,106,214,0.38); }
/* Trust-iconen: lichte hover-zoom */
#sw-grid-trust .elementor-icon-box-icon{ transition: transform .25s ease; }
#sw-grid-trust .elementor-widget:hover .elementor-icon-box-icon{ transform: translateY(-4px) scale(1.08); }

/* ---- Eigen scroll-reveal --------------------------------------------------
   Verbergt ALLEEN als JS actief is (html.sw-js). Zonder JS = altijd zichtbaar.
   JS voegt .sw-in toe zodra een element in beeld komt (+ veiligheidsnet 2,5s). */
html.sw-js #sw-grid-trust  > .elementor-widget,
html.sw-js #sw-grid-aanbod > .e-con,
html.sw-js #sw-grid-steps  > .e-con,
html.sw-js #sw-grid-barshop> .e-con,
html.sw-js #sw-g2 > .e-con, html.sw-js #sw-g2b > .e-con,
html.sw-js #sw-g3 > .e-con, html.sw-js #sw-g4 > .e-con{
  opacity:0; transform:translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
html.sw-js #sw-grid-trust  > .elementor-widget.sw-in,
html.sw-js #sw-grid-aanbod > .e-con.sw-in,
html.sw-js #sw-grid-steps  > .e-con.sw-in,
html.sw-js #sw-grid-barshop> .e-con.sw-in,
html.sw-js #sw-g2 > .e-con.sw-in, html.sw-js #sw-g2b > .e-con.sw-in,
html.sw-js #sw-g3 > .e-con.sw-in, html.sw-js #sw-g4 > .e-con.sw-in{
  opacity:1; transform:none;
}
/* Zachte stagger binnen elke rij */
html.sw-js #sw-grid-trust  > .elementor-widget:nth-child(2),
html.sw-js #sw-grid-aanbod > .e-con:nth-child(2),
html.sw-js #sw-grid-steps  > .e-con:nth-child(2),
html.sw-js #sw-grid-barshop> .e-con:nth-child(2){ transition-delay:.10s; }
html.sw-js #sw-grid-trust  > .elementor-widget:nth-child(3),
html.sw-js #sw-grid-aanbod > .e-con:nth-child(3),
html.sw-js #sw-grid-steps  > .e-con:nth-child(3){ transition-delay:.20s; }
html.sw-js #sw-grid-trust  > .elementor-widget:nth-child(4),
html.sw-js #sw-grid-aanbod > .e-con:nth-child(4){ transition-delay:.30s; }

/* Respecteer voorkeur voor minder beweging (toegankelijkheid) */
@media (prefers-reduced-motion: reduce){
  #sw-grid-aanbod > .e-con, #sw-grid-barshop > .e-con,
  .elementor-button, #sw-grid-trust .elementor-icon-box-icon{ transition:none!important; }
  html.sw-js #sw-grid-trust > .elementor-widget,
  html.sw-js #sw-grid-aanbod > .e-con,
  html.sw-js #sw-grid-steps > .e-con,
  html.sw-js #sw-grid-barshop> .e-con{ opacity:1!important; transform:none!important; transition:none!important; }
}
