/* Expertisebureau Doorn B.V. — https://www.doornbv.nl
   Kleuren en typografie zijn overgenomen van de oude WordPress-site
   (thema "Optimizer Pro"). */

/* ---------- Fonts (self-hosted, geen externe requests) ---------- */

@font-face {
  font-family: 'PT Serif Caption';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ptserifcaption-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Serif Caption';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ptserifcaption-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poiret One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poiretone-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poiret One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poiretone-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --navy: #000080;          /* koptekst hero + adres */
  --navy-deep: #000a3f;     /* footerbalk */
  --accent: #f29c87;        /* hover-accent uit het thema */
  --text: #000;
  --muted: #555;
  --nav: #a0a0a0;
  --rule: #e6e6e6;

  --font-body: Arial, Helvetica, sans-serif;
  --font-display: 'Poiret One', Arial, sans-serif;
  --font-serif: 'PT Serif Caption', Georgia, serif;

  --header-h: 84px;
  --measure: 720px;
}

/* ---------- Basis ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: #fff;
  color: var(--navy);
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  width: min(92%, 1180px);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 0;
}

.brand { margin: 0; }

.brand__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--muted);
  font-weight: 400;
}
.brand__name a { text-decoration: none; }
.brand__name a:hover { color: var(--navy); }

.brand__desc {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--nav);
  text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */

/* De tekst staat bewust in de bovenste helft: daar is de lucht licht, zodat het
   marineblauw leesbaar blijft. Lager in de foto liggen de donkere schepen. */
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 500px;
  padding: 48px 16px 104px;
  text-align: center;
  background-color: #b9c6d2;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-image: url('/assets/img/hero.jpg');
  background-image: -webkit-image-set(url('/assets/img/hero.webp') type('image/webp'),
                                      url('/assets/img/hero.jpg') type('image/jpeg'));
  background-image: image-set(url('/assets/img/hero.webp') type('image/webp'),
                              url('/assets/img/hero.jpg') type('image/jpeg'));
}

.hero__inner { width: min(100%, 860px); }

.hero__logo {
  width: 125px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
}

.hero__title {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
  text-shadow: 0 1px 14px rgba(255, 255, 255, .8);
}

.hero__subtitle {
  margin: 10px 0 0;
  font-size: clamp(15px, 2.4vw, 17px);
  color: var(--navy);
  text-shadow: 0 1px 12px rgba(255, 255, 255, .95);
}

/* ---------- Tekstsecties ---------- */

.prose {
  width: min(92%, var(--measure));
  margin: 0 auto;
  padding: 56px 0;
}

.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.prose ul {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}
.prose li { margin-bottom: .35em; }

.section-title {
  margin: 0 0 1.1em;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  font-style: italic;
  text-align: center;
  color: var(--text);
}

.section-title--on-image {
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

/* ---------- Personen ---------- */

.people {
  width: min(92%, 980px);
  margin: 0 auto;
  padding-bottom: 40px;
}

.people__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  flex: 1 1 240px;
  max-width: 320px;
  text-align: center;
  color: #036;
}

.person img { width: 73px; height: auto; margin-bottom: 10px; }

.person p { margin: 0; }

.person__name { font-weight: 700; }

.person a {
  color: #036;
  text-decoration: none;
}
.person a:hover { text-decoration: underline; }

/* ---------- Beeldbanden (parallax) ---------- */

.band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 72px 16px;
  background-color: #2b3a4a;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.band--taxaties {
  background-image: url('/assets/img/taxaties.jpg');
  background-image: -webkit-image-set(url('/assets/img/taxaties.webp') type('image/webp'),
                                      url('/assets/img/taxaties.jpg') type('image/jpeg'));
  background-image: image-set(url('/assets/img/taxaties.webp') type('image/webp'),
                              url('/assets/img/taxaties.jpg') type('image/jpeg'));
}

.band--keuringen {
  background-image: url('/assets/img/keuringen.jpg');
  background-image: -webkit-image-set(url('/assets/img/keuringen.webp') type('image/webp'),
                                      url('/assets/img/keuringen.jpg') type('image/jpeg'));
  background-image: image-set(url('/assets/img/keuringen.webp') type('image/webp'),
                              url('/assets/img/keuringen.jpg') type('image/jpeg'));
}

.band--inspecties {
  background-image: url('/assets/img/inspectie.jpg');
  background-image: -webkit-image-set(url('/assets/img/inspectie.webp') type('image/webp'),
                                      url('/assets/img/inspectie.jpg') type('image/jpeg'));
  background-image: image-set(url('/assets/img/inspectie.webp') type('image/webp'),
                              url('/assets/img/inspectie.jpg') type('image/jpeg'));
}

/* background-attachment: fixed is stuk op iOS en kostbaar op touch-apparaten. */
@media (hover: none), (max-width: 860px) {
  .band { background-attachment: scroll; }
}

/* ---------- Kaart ---------- */

.map { line-height: 0; }

.map iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

/* ---------- Contact ---------- */

.contact address {
  font-style: normal;
  text-align: center;
  color: var(--navy);
}

.contact a { color: var(--navy); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
  padding: 26px 16px;
}

.site-footer p { margin: 0; font-size: 15px; }

/* ---------- Terug naar boven ---------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  opacity: .5;
  transition: opacity .2s ease, background .2s ease;
}
.to-top:hover { opacity: 1; background: var(--navy); }
.to-top[hidden] { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  :root { --header-h: 118px; }

  .site-header__inner {
    justify-content: center;
    text-align: center;
    min-height: 0;
    padding: 10px 0;
  }
  .brand { width: 100%; }
  .brand__name { font-size: 19px; }
  .brand__desc { font-size: 11px; }
  .nav ul { justify-content: center; }
  .nav a { font-size: 15px; padding: 5px 8px; }

  /* Bij deze breedte vult de foto het kader met de schepen; een lichte laag
     achter de tekst houdt het marineblauw leesbaar. */
  .hero {
    min-height: 420px;
    padding: 28px 16px 48px;
  }
  .hero__inner {
    padding: 18px 14px 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .72);
  }
  .hero__logo { width: 88px; }
  .hero__title, .hero__subtitle { text-shadow: none; }

  .prose { padding: 40px 0; }
  .band { min-height: 260px; padding: 56px 16px; }
  .map iframe { height: 360px; }
}

@media (max-width: 480px) {
  :root { --header-h: 96px; }

  /* De tagline staat direct daaronder al in de hero. */
  .brand__desc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
