/*
Theme Name: PopularFX Child
Template: popularfx
Description: Child theme voor Detailicious Car Detailing – Stabiele fix 30-10-2025
Version: 3.3
Author: Detailicious
*/

/* ------------------------------
   FONT & BASISSTIJLEN
------------------------------ */

@font-face {
  font-family: 'Dosis';
  src: url('/wp-content/themes/popularfx-child/fonts/dosis/Dosis-Regular.woff2') format('woff2'),
       url('/wp-content/themes/popularfx-child/fonts/dosis/Dosis-Regular.woff') format('woff');
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: 'Dosis';
  src: url('/wp-content/themes/popularfx-child/fonts/dosis/Dosis-Bold.woff2') format('woff2'),
       url('/wp-content/themes/popularfx-child/fonts/dosis/Dosis-Bold.woff') format('woff');
  font-display: swap;
  font-weight: 700;
}

body {
  font-family: 'Dosis', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #fff;
  color: #111;
}

.fa, .fas, .fab { font-display: swap; }

/* ------------------------------
   HEADER + LOGO
------------------------------ */

header.site-header {
  position: relative;
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  max-height: 150px;
  padding: 8px 0;
  box-sizing: border-box;
  z-index: 999;
}

/* Logo gecentreerd en proportioneel */
.site-branding,
.pagelayer-logo-holder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  position: relative;
  z-index: 10;
}

.site-header .site-branding img,
.pagelayer-logo-holder img,
.site-logo img {
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 85px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transform: none;
}

/* ------------------------------
   HERO (stabiel, niet beeldvullend)
------------------------------ */

.pagelayer-hero,
.pagelayer-hero-holder {
  position: relative;
  width: 100%;
  min-height: 85vh; /* vaste ruimte voor LCP */
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.pagelayer-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16 / 9;
  background-color: #f5f5f5;
}

.pagelayer-hero .pagelayer-heading,
.pagelayer-hero .pagelayer-text {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 85%;
  margin: 0 auto;
}

.pagelayer-hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 25px;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 768px) {
  header.site-header {
    min-height: 95px;
    max-height: 130px;
  }

  .site-header .site-branding img {
    max-height: 75px;
  }

  .pagelayer-hero,
  .pagelayer-hero-holder {
    min-height: 60vh;
  }
}

/* ------------------------------
   FOOTER
------------------------------ */

.site-footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 40px 0;
}

.site-footer a {
  color: #c4a152;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* --- CLS-fix voor logo en hero-afbeelding (vaste ruimte) --- */

/* Logo – vaste verhouding zodat het niet springt */
.pagelayer-img[alt*="logo detailicious"] {
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Hero-afbeelding – behoud hoogte vóór laden */
.pagelayer-row.pagelayer-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* aanpasbaar aan jouw hero-verhouding */
  object-fit: cover;
}/* 🔘 Mobiel menu – ruimer klikgebied submenu pijltje (CLS-vrij) */
@media (max-width: 768px) {
  .main-navigation .menu-item-has-children > a::after {
    padding: 16px 24px; /* iets ruimer klikgebied */
    margin-left: 6px;
  }

  .main-navigation .menu-item-has-children > a {
    position: relative;
  }

  .main-navigation .menu-item-has-children > a::after {
    position: absolute;
    right: -8px; /* iets verder naar rechts voor extra ruimte */
    top: 50%;
    transform: translateY(-50%);
  }
}
