﻿/* =========================
   DOG SUR MER – MAIN CSS
   Cleaned + ordered + responsive
   - Removed duplicate float rules
   - Kept ONE float system: .text-float + img.float-left/right
   - Removed unused Black-Box Visual (HTML version) styles
========================= */

/* =========================
   BASIS / RESET
========================= */

:root{
  --bg: #f6f6f8;
  --surface: #fafafa;
  --text: #333;
  --muted: #666;
  --shadow: 0 4px 14px rgba(60, 60, 60, 0.08);
  --brand: #8080ff;
}

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

/* Zorg dat de layout nooit verspringt door wel/geen scrollbar */
html{
  overflow-y: scroll;        /* werkt overal */
  scrollbar-gutter: stable;  /* modern */
}

body{
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
}

/* Koppen */
h1, h2, h3{
  font-family: "DM Serif Display", serif;
  font-weight: 400;      /* bewust licht */
  line-height: 1.15;
  margin: 1.4em 0 0.6em 0;
}

/* Schaal – ingetogen */
h1{ font-size: 2rem; }
h2{ font-size: 1.45rem; }
h3{ font-size: 1.2rem; }

h1:first-child{
  margin-top: 0;
}

p{
  margin: 0 0 1.1em 0;
}

a{
  color: inherit;
}

/* layout */
main{
  padding: 24px 20px 0;
}

.page{
  max-width: 1200px;
  margin: 24px auto 0;   /* geen margin-bottom */
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 24px 20px;
}
.page .boxes + h1{
  margin-top: 2.2em;
}


/* voorkom extra ruimte onderaan content */
.page > *:last-child{
  margin-bottom: 0;
}

.page p:last-child,
.page ul:last-child{
  margin-bottom: 0;
}

/* footer */
footer{
  margin-top: 0;
  text-align: center;
  padding: 18px 15px;
  font-size: 0.9em;
  color: var(--muted);
}

/* Alle gewone afbeeldingen: responsief */
main img{
  max-width: 100%;
  height: auto;
}

/* extra ruimte boven een h1 wanneer die na tekst komt */
.page p + h1{
  margin-top: 2.2em;
}


/* =========================
   LAYOUT – GRIDS / WRAPPERS
========================= */

/* USP grid: 3/2/1 automatisch */
.usp-grid{
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 16px; /* voorkomt te veel 'lucht' vóór de divider */
}

/* Algemene boxes (flex) */
.boxes{
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* 2→1 gedrag voor flex-boxes */
.boxes > .box{
  flex: 1 1 420px;
  min-width: 0;
}

/* Als je bewust grid wil gebruiken samen met boxes */
.boxes.usp-grid{
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 16px; /* zelfde spacing als .usp-grid */
}

.section-divider{
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.08),
    transparent
  );
  margin: 24px 0; /* iets compacter dan 32px */
}

.section-divider + section > h1{
  margin-top: 0;
}
.section-warning{
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95em;
}


/* =========================
   FOOTER (nieuwe layout)
========================= */

.site-footer {
  margin-top: 0;              /* ← DIT */
  background: #f6f6f6;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #555;
  position: relative;
}
.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

/* ECHT exact in het midden van het scherm */
.footer-contact-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

/* Juridisch rechts */
.footer-meta {
  text-align: right;
}

/* Mobiel: alles onder elkaar */
@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
  }

  .footer-contact-center {
    position: static;
    transform: none;
    margin-bottom: 1.5rem;
  }

  .footer-meta {
    text-align: center;
  }
}


/* =========================
   COMPONENT – BOX
========================= */

.box{
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.box-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.box-top h2{
  flex: 1;
  min-width: 0;
  margin: 0;
}

.box-bottom{ margin-top: 12px; }

.box-icon{ flex: 0 0 auto; }

.box-icon img{
  width: 96px;
  height: auto;
  display: block;
}

.box-icon.large img{
  width: 256px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}


/* =========================
   LIJST – vierkante bullets
========================= */

ul.square-list{
  list-style: none;
  padding-left: 1.2em;
  margin: 0;
}

ul.square-list li{
  position: relative;
  margin-bottom: 0.4em;
}

ul.square-list li::before{
  content: "";
  position: absolute;
  left: -1.2em;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: #000;
}


/* =========================
   CARDS
========================= */

.boxes--cards{
  display: grid;
  gap: 16px;
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.boxes--cards > .box{ min-width: 0; }
.boxes--cards .box-icon img{ width: 96px; }


/* =========================
   STRENGTHS
========================= */

.boxes--strengths{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.boxes--strengths .boxes-frame{
  border: 2px solid var(--brand);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  flex: 1 1 0;
  min-width: 220px;
}

.boxes--strengths .boxes-frame p{ margin: 0; }


/* =========================
   HEADER + NAV (desktop)
========================= */

.site-header{
  background: var(--surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header .brand img{
  height: 70px;
  width: auto;
  display: block;
}

.nav-toggle{ display: none; }

.menu, .submenu{
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu{
  display: flex;
  gap: 18px;
  align-items: center;
}

.menu > li{ position: relative; }

.menu a{
  text-decoration: none;
  color: var(--text);
  font-size: 1.10em;
  letter-spacing: 0.4px;
  padding: 8px 6px;
  display: inline-block;
}

.menu a:hover{ text-decoration: underline; }

.menu a.active{
  font-weight: bold;
  text-decoration: underline;
}

.submenu{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-width: 320px;
  background: var(--surface);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 22px rgba(60, 60, 60, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

/* Laat de laatste menu-items hun submenu naar links openen */
.menu > li:last-child .submenu,
.menu > li:nth-last-child(2) .submenu{
  left: auto;
  right: 0;
}

.submenu li a{
  display: block;
  padding: 10px 12px;
  font-size: 1em;
  letter-spacing: 0.2px;
  text-decoration: none;
  text-align: left;
  white-space: normal;
}

.submenu li a:hover{
  background: rgba(128, 128, 255, 0.12);
  border-radius: 10px;
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu{
  display: block;
}


/* =========================
   HERO
========================= */

.hero{
  color: #fff;
  min-height: clamp(150px, 20vw, 300px);
  padding: 0 20px;
  text-align: center;
  position: relative;

  background-image:
    linear-gradient(rgba(128, 128, 255, 0.55), rgba(128, 128, 255, 0.55)),
    url("../images/hero4.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner{
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-text{
  display: inline-block;
  text-align: left;
}

.hero h1{
  margin: 0;
  font-size: 2.5rem;
}

.hero p{
  margin: 10px 0 0 0;
  font-size: 1.1rem;
  opacity: 0.95;
}


/* =========================
   TEXT + MEDIA (naast elkaar, geen wrap)
   Gebruik: <div class="text-media media-right|media-left">
========================= */

.text-media{
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.text-media .text{
  flex: 1;
  min-width: 0;
}

.text-media .media{
  flex: 0 0 auto;
}

.text-media.media-left .media{ order: -1; }
.text-media.media-right .media{ order: 1; }

.text-media img{
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}


/* =========================
   TEKST ROND AFBEELDING (float wrap)
   Gebruik: <section class="text-float"> + <img class="float-right|float-left">
========================= */

.text-float::after{
  content:"";
  display:block;
  clear:both;
}

.text-float img.float-left,
.text-float img.float-right{
  width: 40%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
}

/* links */
.text-float img.float-left{
  float: left;
  margin: 0 24px 16px 0;
}

/* rechts */
.text-float img.float-right{
  float: right;
  margin: 0 0 16px 24px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px){
  .boxes--cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px){
  .site-header .brand img{
    height: 64px;
    width: auto;
    max-width: calc(100vw - 90px);
  }

  .nav-wrap{ flex-wrap: wrap; }

  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 26px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
  }

  .nav{
    display: none;
    width: 100%;
  }

  .site-header.nav-open .nav{ display: block; }

  .menu{
    display: block;
    padding-top: 10px;
  }

  .menu > li{ display: block; }

  .menu a{
    display: block;
    padding: 10px 0;
  }

  .submenu{
    position: static;
    display: block;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
    background: transparent;
  }

  .submenu li a{
    padding: 6px 0;
    font-size: 1em;
  }
}

/* text-media stapelt op smaller */
@media (max-width: 720px){
  .boxes{ flex-direction: column; }

  .box-top{
    flex-direction: column;
    align-items: flex-start;
  }

  .box-icon{ margin-top: 12px; }
  .box-icon.large img{ width: 128px; }

  .boxes--cards{ grid-template-columns: 1fr; }

  .text-media{ flex-direction: column; }
}

/* float wrap uit op mobile/tablet */
@media (max-width: 900px){
  .text-float img.float-left,
  .text-float img.float-right{
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
  }
}


/* =========================
   AANBOD – 2x2 GRID + underline fix
========================= */

/* Specifiek voor aanbodpagina */
.aanbod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Mobiel */
@media (max-width: 768px) {
  .aanbod-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Aanbod (aanbod-grid): hele kaart klikbaar zonder underline op alle tekst --- */
.aanbod-grid a.box{
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.aanbod-grid .card-cta{
  margin-top: auto;
}

.aanbod-grid a.box .card-cta strong{
  text-decoration: underline;
}


/* --- Aanbod kaarten: netter en consistenter (voor usp-grid elders) --- */

/* Zorg dat grid-items uitrekken (meestal al zo, maar expliciet is fijn) */
.usp-grid {
  align-items: stretch;
}

/* Maak van de box een flex-kolom zodat de link naar beneden kan */
.usp-grid .box {
  display: flex;
  flex-direction: column;
}

/* “Meer info” naar onder duwen */
.usp-grid .box .card-cta {
  margin-top: auto;
}

/* Hele kaart klikbaar (als we box als <a> gebruiken) */
.usp-grid a.box {
  text-decoration: none;
  color: inherit;
}

/* Zorg dat de “Meer info” er nog altijd uitziet als link */
.usp-grid a.box .card-cta strong {
  text-decoration: underline;
}

/* Kleine hover (subtiel) */
.usp-grid a.box:hover {
  transform: translateY(-1px);
}
/* subtiele ruimte tussen secties */
.page section + section{
  margin-top: 1.2em;
}
