/* ============================================================
   GUASHABEHANDELING.NL — Animaties (Divi 5)
   ============================================================ */

/* ============================================================
   CSS Custom Properties (W3: declare all variables in :root)
   ============================================================ */

:root {
  --color-accent: #C17F59;  /* terracotta — knoppen, eyebrows, stats, CTA */
  --stagger: 0;             /* scroll-animatie stagger; JS overschrijft inline */
}

/* ============================================================
   Keyframe definities
   ============================================================ */

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   Divi standaard header verbergen — wij injecteren eigen nav
   ============================================================ */

#main-header,
.et-l--header,
#et-secondary-nav {
  display: none !important;
}

body {
  padding-top: 0 !important;
}

/* ============================================================
   Divi rij breedte — 1200px zoals het ontwerp
   ============================================================ */

.et_pb_row {
  max-width: 1200px !important;
  width: 100% !important;
}

/* ============================================================
   Afbeeldingen — ronde hoeken site-breed (12px)
   Als Divi zelf een radius instelt, wint Divi's CSS (hogere specificiteit)
   ============================================================ */

.et_pb_image_wrap img {
  border-radius: 12px;
}

/* ============================================================
   Hero (et_pb_section_0): load-animaties + styling
   Divi 5 plaatst geen custom CSS-class op section-elementen,
   dus gebruiken we de positie-selector et_pb_section_0.
   ============================================================ */

/* W2 fix: positie-selectors vervangen door structurele :first-child/:last-child.
   De hero heeft precies twee kolommen; deze selectors blijven stabiel
   ongeacht module-volgorde binnen de sectie. */
.et_pb_section_0 .et_pb_column:first-child {
  opacity: 0;
  animation: slideLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.et_pb_section_0 .et_pb_column:last-child {
  opacity: 0;
  animation: slideRight 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* "mens" em — terracotta kleur */
.et_pb_section_0 h1 em {
  color: #C17F59;
  font-style: normal;
}

/* Hero sectie minimale hoogte + bovenpadding voor vaste nav */
.et_pb_section_0.et_pb_section {
  min-height: 100dvh;
}

.et_pb_section_0 .et_pb_row {
  align-items: center;
  padding-top: 80px;
}

/* Hero afbeelding 4:5 verhouding */
.et_pb_section_0 .et_pb_column:last-child .et_pb_image_wrap img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  border-radius: 4px 4px 80px 4px;
}

/* Hero knoppen: Divi compileert backgroundColor niet uit JSON;
   override hier via CSS met hoge specificiteit.
   Beide knoppen zijn terracotta.
   W2 fix: .et_pb_button_0/.et_pb_button_1 vervangen door .et_pb_button.et_pb_button —
   de sectie-scope (.et_pb_section_0) zorgt voor de juiste isolatie. */
.et_pb_section_0 .et_pb_button.et_pb_button {
  background-color: #C17F59 !important;
  color: #FEFAF6 !important;
  border-color: #C17F59 !important;
  border-radius: 100px !important;
  box-shadow: 0 4px 20px rgba(193, 127, 89, 0.40) !important;
}

.et_pb_section_0 .et_pb_button.et_pb_button:hover {
  background-color: #A3623F !important;
  border-color: #A3623F !important;
  box-shadow: 0 8px 28px rgba(193, 127, 89, 0.50) !important;
  transform: translateY(-2px);
}

/* ============================================================
   Stats sectie (section_1) — donkere achtergrond + labels
   ============================================================ */

.et_pb_section_1.et_pb_section {
  background-color: #1A1208 !important;
}

/* Divi 5 honoreert textTransform niet als font-property;
   override hier: labels uppercase + terracotta */
.et_pb_section_1 .et_pb_text_inner p {
  text-transform: uppercase !important;
  letter-spacing: 0.18em !important;
  color: #C17F59 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* ============================================================
   Scroll-animaties via IntersectionObserver
   JS voegt .gs-init toe (verbergt), .gs-visible maakt zichtbaar
   ============================================================ */

.et_pb_column.gs-init {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.7s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--stagger, 0) * 0.12s),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--stagger, 0) * 0.12s);
  will-change: opacity, transform;
}

.et_pb_column.gs-init.gs-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Card hover lift
   section_3 row 2 = specialismen kaarten
   section_5 rows 2+ = testimonial kaarten (5 reviews)
   section_6 row 2 = blog preview kaarten
   ============================================================ */

.et_pb_section_3 .et_pb_row:nth-child(2) .et_pb_column,
.et_pb_section_5 .et_pb_row:nth-child(n+2) .et_pb_column,
.et_pb_section_6 .et_pb_row:nth-child(2) .et_pb_column {
  transition:
    transform  0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: default;
}

.et_pb_section_3 .et_pb_row:nth-child(2) .et_pb_column:hover,
.et_pb_section_5 .et_pb_row:nth-child(n+2) .et_pb_column:hover,
.et_pb_section_6 .et_pb_row:nth-child(2) .et_pb_column:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18) !important;
}

/* ============================================================
   Afbeelding subtiele zoom bij kolom-hover
   ============================================================ */

.et_pb_column .et_pb_image_wrap {
  overflow: hidden;
}

.et_pb_column .et_pb_image_wrap img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.et_pb_column:hover .et_pb_image_wrap img {
  transform: scale(1.04);
}

/* ============================================================
   Navigatie-scroll indicator (progress bar)
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-accent, #C17F59);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   Voordelen — SVG-icoon container (JS injecteert .gs-benefit-icon)
   ============================================================ */

.gs-benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(193, 127, 89, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.gs-benefit-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: #C17F59;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Testimonial sterren (JS injecteert .gs-stars)
   ============================================================ */

.gs-stars {
  display: block;
  color: #C17F59;
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

/* ============================================================
   CTA knoppen (section_7) — outline-wit op terracotta achtergrond
   Divi compileert knopkleuren niet uit JSON, dus override via CSS
   ============================================================ */

.et_pb_section_7 .et_pb_button.et_pb_button {
  background-color: transparent !important;
  color: #FEFAF6 !important;
  border-color: rgba(254, 250, 246, 0.45) !important;
  border-radius: 100px !important;
}

.et_pb_section_7 .et_pb_button.et_pb_button:hover {
  background-color: rgba(254, 250, 246, 0.12) !important;
  border-color: rgba(254, 250, 246, 0.72) !important;
  transform: translateY(-1px);
}

/* ============================================================
   Blog preview kaarten (section_6)
   ============================================================ */

/* Afbeeldingen 16:10 verhouding */
.et_pb_section_6 .et_pb_row:nth-child(2) .et_pb_column .et_pb_image_wrap img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* "Lees meer" knoppen — terracotta outline */
.et_pb_section_6 .et_pb_row:nth-child(2) .et_pb_button.et_pb_button {
  background-color: transparent !important;
  color: #C17F59 !important;
  border-color: #C17F59 !important;
  border-radius: 100px !important;
}

.et_pb_section_6 .et_pb_row:nth-child(2) .et_pb_button.et_pb_button:hover {
  background-color: rgba(193, 127, 89, 0.08) !important;
  transform: translateY(-1px);
}

/* "Alle artikelen bekijken" knop (row 3) */
.et_pb_section_6 .et_pb_row:nth-child(3) .et_pb_button.et_pb_button {
  background-color: transparent !important;
  color: #C17F59 !important;
  border-color: #C17F59 !important;
  border-radius: 100px !important;
}

.et_pb_section_6 .et_pb_row:nth-child(3) .et_pb_button.et_pb_button:hover {
  background-color: rgba(193, 127, 89, 0.08) !important;
  transform: translateY(-1px);
}

/* ============================================================
   Specialismen kaart-afbeeldingen (section_3) — vaste verhouding
   Beide kaarten krijgen dezelfde hoogte ongeacht bronafbeelding
   ============================================================ */

.et_pb_section_3 .et_pb_row:nth-child(2) .et_pb_column .et_pb_image_wrap img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* ============================================================
   Specialismen knoppen (section_3) — terracotta
   ============================================================ */

.et_pb_section_3 .et_pb_button.et_pb_button {
  background-color: #C17F59 !important;
  color: #FEFAF6 !important;
  border-color: #C17F59 !important;
  border-radius: 100px !important;
}

.et_pb_section_3 .et_pb_button.et_pb_button:hover {
  background-color: #A3623F !important;
  border-color: #A3623F !important;
  transform: translateY(-1px);
}

/* ============================================================
   Wat is guasha sectie (section_2) — knop
   ============================================================ */

.et_pb_section_2 .et_pb_button.et_pb_button {
  background-color: transparent !important;
  color: #2C2016 !important;
  border-color: rgba(44, 32, 22, 0.35) !important;
  border-radius: 100px !important;
}

.et_pb_section_2 .et_pb_button.et_pb_button:hover {
  background-color: rgba(44, 32, 22, 0.06) !important;
  border-color: rgba(44, 32, 22, 0.6) !important;
  transform: translateY(-1px);
}

/* ============================================================
   Global Footer (gs-footer)
   ============================================================ */

.gs-footer {
  background: #2C2016;
  color: #FEFAF6;
  padding: 4.5rem clamp(1.25rem, 5vw, 2.5rem) 2rem;
}

.gs-footer__inner {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.gs-footer__logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FEFAF6 !important;
  margin-bottom: 0.75rem !important;
}

.gs-footer__logo span {
  color: #D9A882;
}

.gs-footer__brand p:not(.gs-footer__logo) {
  font-size: 0.9rem;
  color: rgba(254, 250, 246, 0.55);
  max-width: 260px;
  line-height: 1.7;
  margin-bottom: 0;
}

.gs-footer__col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(254, 250, 246, 0.45);
  margin-bottom: 1.25rem;
}

.gs-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.gs-footer__col ul a {
  font-size: 0.9rem;
  color: rgba(254, 250, 246, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gs-footer__col ul a:hover {
  color: #FEFAF6;
}

.gs-footer__col ul span {
  font-size: 0.88rem;
  color: rgba(254, 250, 246, 0.45);
}

.gs-footer__bottom {
  max-width: 1200px;
  margin-inline: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(254, 250, 246, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.gs-footer__bottom p {
  font-size: 0.82rem;
  color: rgba(254, 250, 246, 0.55);
  margin: 0;
}

.gs-footer__bottom a {
  color: rgba(254, 250, 246, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gs-footer__bottom a:hover {
  color: rgba(254, 250, 246, 0.65);
}

@media (max-width: 900px) {
  .gs-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 560px) {
  .gs-footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gs-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   Blog — single post typografie
   ============================================================ */

.single .entry-content,
.single .et_pb_post_content {
  max-width: 860px;
  margin-inline: auto;
  padding: 60px clamp(1.25rem, 5vw, 2.5rem);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2C2016;
}

.single .entry-content h2,
.single .et_pb_post_content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #2C2016;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.single .entry-content h3,
.single .et_pb_post_content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #2C2016;
  margin: 2rem 0 0.75rem;
}

.single .entry-content p,
.single .et_pb_post_content p {
  margin-bottom: 1.25rem;
}

.single .entry-content ul,
.single .entry-content ol,
.single .et_pb_post_content ul,
.single .et_pb_post_content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.single .entry-content li,
.single .et_pb_post_content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.single .entry-content img,
.single .et_pb_post_content img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

/* Post tags */
.gs-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  padding-left: 0;
  list-style: none;
}

.gs-post-tag {
  background: #EDE4D8;
  color: #7A5C4A;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
}

/* ============================================================
   Diensten pagina — stappenproces grid
   ============================================================ */

.diensten-stappen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

@media (max-width: 760px) {
  .diensten-stappen {
    grid-template-columns: repeat(2, 1fr);
  }
  .diensten-stappen > div[style*="absolute"] {
    display: none !important;
  }
}

/* ============================================================
   Over ons pagina — waarden-grid (3 kaarten)
   ============================================================ */

.waarden-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 760px) {
  .waarden-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   404-pagina — grote getalweergave + kaartengrid
   ============================================================ */

.fourohfour-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(6rem, 18vw, 12rem);
  color: rgba(193, 127, 89, 0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.fourohfour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin-inline: auto;
}

.fourohfour-card {
  display: block;
  padding: 1.5rem;
  background: var(--color-white, #FEFAF6);
  border-radius: var(--radius-lg, 12px);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fourohfour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

.fourohfour-card strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--color-text, #2C2016);
  margin-bottom: 0.35rem;
}

.fourohfour-card span {
  font-size: 0.875rem;
  color: var(--color-text-muted, #7A5C4A);
}

/* ============================================================
   Juridische pagina's (Privacybeleid, Algemene voorwaarden)
   ============================================================ */

.page-hero--sm {
  padding-top: 120px;
  padding-bottom: 3rem;
}

.legal-content {
  max-width: 780px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text, #2C2016);
}

.legal-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text, #2C2016);
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(44, 32, 22, 0.08);
}

.legal-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text, #2C2016);
  margin: 1.75rem 0 0.5rem;
}

.legal-content p {
  margin-bottom: 1.1rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--color-accent, #C17F59);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #A3623F;
}

.legal-content strong {
  font-weight: 600;
  color: var(--color-text, #2C2016);
}

/* ============================================================
   Contactformulier — veldstijlen
   ============================================================ */

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text, #2C2016);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(44, 32, 22, 0.18);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--color-text, #2C2016);
  background: #FEFAF6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(44, 32, 22, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #C17F59;
  box-shadow: 0 0 0 3px rgba(193, 127, 89, 0.12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-group__error {
  display: block;
  color: #B91C1C;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  min-height: 1.1em;
}

.form-group--error input,
.form-group--error textarea {
  border-color: #B91C1C;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}

/* ============================================================
   PHP template pagina's — [data-animate] scroll-animaties
   JS voegt .is-visible toe via IntersectionObserver
   ============================================================ */

[data-animate] {
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-duration: 0.7s;
  transition-delay: var(--anim-delay, 0ms);
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(28px);
}

[data-animate="fade-down"] {
  opacity: 0;
  transform: translateY(-28px);
}

[data-animate="fade-left"] {
  opacity: 0;
  transform: translateX(-32px);
}

[data-animate="fade-right"] {
  opacity: 0;
  transform: translateX(32px);
}

[data-animate="scale-in"] {
  opacity: 0;
  transform: scale(0.94);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Focus-visible — toetsenbord toegankelijkheid (WCAG 2.1 AA)
   ============================================================ */

.btn:focus-visible,
.nav__link:focus-visible,
.nav__cta:focus-visible {
  outline: 2px solid #C17F59;
  outline-offset: 3px;
  border-radius: 4px;
}

.et_pb_button:focus-visible {
  outline: 2px solid #C17F59 !important;
  outline-offset: 3px !important;
}

/* ============================================================
   Reduced motion — alles direct zichtbaar
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  /* W2 fix: nummers vervangen door :first-child/:last-child en generieke .et_pb_button */
  .et_pb_column.gs-init,
  .et_pb_section_0 .et_pb_column:first-child,
  .et_pb_section_0 .et_pb_column:last-child,
  .et_pb_section_0 .et_pb_button.et_pb_button:hover,
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
