/* --- Zelfgehoste fonts (voorheen Google Fonts) ------------------------------ */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/montserrat-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-latin-600-normal.woff2') format('woff2'); }

/* ==========================================================================
   Tandkliniek Brugge — stijl 2.0
   Minimalistisch: veel wit, rustige typografie, grote beelden.
   Huisstijl: marineblauw #1A3E66 · accent #66b8ec · logozwart #20201e
   ========================================================================== */

:root {
  --marine: #1A3E66;
  --marine-donker: #142F4C;
  --accent: #66b8ec;
  --accent-donker: #3E7CB1;
  --zwart: #20201e;
  --licht: #f2f7fb;
  --grijs: #55606b;
  --lijn: #e6ecf2;
  --schaduw-zacht: 0 1px 2px rgba(16, 42, 67, .05), 0 8px 24px rgba(16, 42, 67, .05);
  --schaduw-zweef: 0 16px 40px rgba(26, 62, 102, .13);
  --straal: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; font-size: 17px; color: var(--zwart); line-height: 1.7; background: #fff; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--marine); line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-donker); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--marine-donker); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.kicker { display: block; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-donker); margin-bottom: 14px; }

.tekst p a:not(.btn) { color: var(--accent-donker); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
.tekst p a:not(.btn):hover { color: var(--marine); }

/* --- Knoppen ------------------------------------------------------------ */
.btn { display: inline-block; background: var(--marine); color: #fff; padding: 13px 28px; border-radius: 999px; font-weight: 600; font-family: 'Montserrat', sans-serif; font-size: 14px; border: none; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--marine-donker); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 62, 102, .2); }
.btn.licht { background: var(--accent); color: #0C2340; }
.btn.licht:hover { background: #8cc9f2; box-shadow: 0 10px 24px rgba(102, 184, 236, .35); }
.btn.ghost { background: transparent; border: 1.5px solid var(--marine); color: var(--marine); padding: 11.5px 26px; }
.btn.ghost:hover { background: var(--licht); box-shadow: none; }

/* --- Navigatie ----------------------------------------------------------- */
header { position: sticky; top: 0; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--lijn); z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; }
.nav .logo img { height: 50px; display: block; }
.nav ul { display: flex; gap: 30px; list-style: none; align-items: center; font-weight: 500; font-size: 15px; }
.nav a { position: relative; transition: color .2s; }
.nav a:hover, .nav a.actief { color: var(--marine); }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--accent); transition: right .25s ease; }
.nav a:not(.btn):hover::after, .nav a.actief:not(.btn)::after { right: 0; }
.nav .btn { padding: 11px 24px; }
.menuknop { display: none; background: none; border: none; cursor: pointer; padding: 10px; margin: -10px; }
.menuknop span { display: block; width: 24px; height: 2px; background: var(--marine); margin: 5px 0; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menuknop[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menuknop[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menuknop[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero (home) ---------------------------------------------------------- */
.hero { background: var(--marine); position: relative; overflow: hidden; }
.hero .wrap { padding-top: 96px; padding-bottom: 214px; position: relative; }
.hero img.tand { position: absolute; right: -20px; top: 26px; height: 125%; opacity: .12; transform-origin: 62% 34%; will-change: transform; transition: transform .08s linear; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.8vw, 56px); font-weight: 800; letter-spacing: -.01em; max-width: 800px; animation: opkomen .7s ease both; position: relative; }
.hero p { margin: 24px 0 36px; font-size: 19px; max-width: 560px; color: #cfe0f0; animation: opkomen .7s .12s ease both; position: relative; }
.hero .acties { display: flex; gap: 14px; flex-wrap: wrap; animation: opkomen .7s .24s ease both; position: relative; }
.hero .btn.ghost { border-color: rgba(255, 255, 255, .9); color: #fff; }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.hero-overlap { position: relative; margin-top: -160px; }
.hero-overlap .hero-beeld { margin-top: 0; }
.hero-beeld { margin-top: 64px; position: relative; border-radius: var(--straal); overflow: hidden; box-shadow: var(--schaduw-zweef); animation: opkomen .8s .3s ease both; }
.hero-beeld img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.hero-beeld figcaption { position: absolute; left: 20px; bottom: 20px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px); padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; font-family: 'Montserrat', sans-serif; color: var(--marine); }
@keyframes opkomen { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* --- Secties -------------------------------------------------------------- */
section { padding: 104px 0; }
section.licht { background: var(--licht); }
.sectiekop { max-width: 640px; margin-bottom: 56px; }
.sectiekop.midden { text-align: center; margin-left: auto; margin-right: auto; }
.sectiekop h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.sectiekop p { color: var(--grijs); margin-top: 14px; }
.subkop { font-size: 24px; margin-bottom: 36px; }
.intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.intro h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 18px; }
.intro p, .tekst p { margin-bottom: 15px; color: var(--grijs); }
.beeld img { width: 100%; height: auto; border-radius: var(--straal); display: block; box-shadow: var(--schaduw-zacht); }
.beeld.staand img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* --- Behandelkaarten ------------------------------------------------------ */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.grid .kaart { flex: 0 1 calc(25% - 16.5px); min-width: 230px; }
.kaart { background: #fff; border: 1px solid var(--lijn); border-radius: 18px; padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; display: block; }
.kaart:hover { transform: translateY(-5px); box-shadow: var(--schaduw-zweef); border-color: rgba(102, 184, 236, .55); }
.kaart img { height: 52px; margin-bottom: 16px; transition: transform .3s ease; }
.kaart:hover img { transform: scale(1.08); }
.kaart h3 { font-size: 16px; margin-bottom: 8px; }
.kaart p { font-size: 14px; color: var(--grijs); line-height: 1.6; }

/* --- Ligging (luchtbeeld) -------------------------------------------------- */
.ligging { position: relative; padding: 0; }
.ligging > img, .ligging > picture > img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 10%; }
.ligging .kaartje { position: absolute; left: 48px; bottom: 48px; max-width: 430px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-radius: var(--straal); padding: 34px 36px; box-shadow: var(--schaduw-zweef); }
.ligging .kaartje h2 { font-size: 24px; margin-bottom: 10px; }
.ligging .kaartje p { color: var(--grijs); font-size: 16px; margin-bottom: 20px; }

/* --- CTA ------------------------------------------------------------------- */
.cta { background: var(--marine); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta img.tand { position: absolute; left: -40px; top: 24px; height: 150%; opacity: .1; }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 32px); margin-bottom: 14px; position: relative; }
.cta p { color: #cfe0f0; max-width: 560px; margin: 0 auto 32px; position: relative; }
.cta .btn { position: relative; }

/* --- Paginakop (subpagina's) ------------------------------------------------ */
.kop { background: var(--licht); position: relative; overflow: hidden; }
.kop .wrap { padding-top: 72px; padding-bottom: 72px; position: relative; }
.kop img.tand { position: absolute; right: -30px; top: 20px; height: 150%; opacity: .16; pointer-events: none; }
.kop h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; max-width: 720px; }
.kop p { margin-top: 14px; color: var(--grijs); font-size: 18px; max-width: 620px; }
.kruim { font-size: 13px; color: var(--grijs); margin-bottom: 16px; display: block; font-weight: 500; }
.kruim a:hover { color: var(--marine); }

/* --- Fotokop (behandelingen) ------------------------------------------------ */
.fotokop { position: relative; overflow: hidden; }
.fotokop > img, .fotokop > picture > img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; object-position: 78% 45%; }
.fotokop .inhoud { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .55) 42%, rgba(255, 255, 255, 0) 68%); }
.fotokop .inhoud .wrap { width: 100%; }
.fotokop h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.fotokop p { margin-top: 14px; color: var(--grijs); font-size: 18px; max-width: 480px; }

/* --- Team -------------------------------------------------------------------- */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.lid { text-align: center; flex: 1 1 200px; max-width: 320px; }
.lid img { width: 100%; border-radius: 18px; margin-bottom: 16px; display: block; }
.lid h3 { font-size: 16px; }
.lid span { font-size: 14px; color: var(--grijs); }
.bio { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; margin-bottom: 56px; }
.bio img { width: 100%; border-radius: 18px; }
.bio h3 { font-size: 20px; margin-bottom: 4px; }
.bio .functie { color: var(--accent-donker); font-size: 14px; font-weight: 600; font-family: 'Montserrat', sans-serif; letter-spacing: .04em; display: block; margin-bottom: 14px; }
.bio p { color: var(--grijs); font-size: 16px; }
.bio.zonder-foto { grid-template-columns: 1fr; max-width: 760px; margin-bottom: 44px; }
.lid.zonder-foto { background: #fff; border: 1px solid var(--lijn); border-radius: 18px; padding: 28px 22px; }

/* --- Vacatureoverzicht ------------------------------------------------------- */
.vacatures .kaart { flex-basis: calc(50% - 11px); min-width: 300px; max-width: 520px; padding: 36px 32px; }
.vacatures .kaart h3 { font-size: 20px; margin-bottom: 10px; }
.vacatures .kaart p { font-size: 15px; }
.vacatures .kaart .meer { display: inline-block; margin-top: 16px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; color: var(--accent-donker); }

/* --- Behandeldetail ------------------------------------------------------------ */
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 72px; }
.detail aside { background: var(--licht); border-radius: 18px; padding: 30px; height: fit-content; position: sticky; top: 104px; }
.detail aside h3 { font-size: 15px; margin-bottom: 14px; }
.detail aside ul { list-style: none; }
.detail aside li { margin-bottom: 9px; font-size: 15px; }
.detail aside a { color: var(--grijs); transition: color .15s; }
.detail aside a:hover { color: var(--marine); }
.detail .tekst h2 { font-size: 22px; margin: 26px 0 10px; }
.detail .ikoon { height: 72px; margin-bottom: 22px; }

/* --- Openingsuren --------------------------------------------------------------- */
.uren { display: grid; row-gap: 7px; }
.uren > div { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: baseline; }
.uren dt { font-weight: 500; }
.uren dd { display: grid; grid-template-columns: 48px 1fr; gap: 12px; font-variant-numeric: tabular-nums; }
.urenkaart { background: #fff; border: 1px solid var(--lijn); border-radius: 18px; padding: 30px 32px; box-shadow: var(--schaduw-zacht); }
.urenkaart h3 { font-size: 16px; margin-bottom: 16px; }
.urenkaart .uren { row-gap: 10px; }
.urenkaart .uren > div { grid-template-columns: 132px 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--lijn); }
.urenkaart .uren dd { grid-template-columns: 62px 1fr; }
.urenkaart .uren > div:last-child { border-bottom: none; padding-bottom: 0; }
.urenkaart dt { color: var(--grijs); font-size: 15px; }
.urenkaart dd { color: var(--zwart); font-weight: 500; font-size: 15px; }
.urenkaart .nota { font-size: 13px; color: var(--grijs); margin-top: 14px; }

/* --- Contact ----------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-grid h2 { font-size: 22px; margin-bottom: 16px; }
.contact-grid p, .contact-grid li { color: var(--grijs); font-size: 16px; margin-bottom: 9px; list-style: none; }
.contact-grid strong { color: var(--zwart); }

/* --- Formulier ------------------------------------------------------------------------ */
.formulier { max-width: 660px; margin: 0 auto; background: #fff; border: 1px solid var(--lijn); border-radius: 18px; padding: 40px; box-shadow: var(--schaduw-zacht); }
.formulier label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 6px; font-family: 'Montserrat', sans-serif; color: var(--marine); }
.formulier input, .formulier textarea, .formulier select { width: 100%; padding: 12px 15px; border: 1px solid #d5dbe2; border-radius: 10px; font-family: 'Barlow', sans-serif; font-size: 15px; background: #fff; }
.formulier input:focus, .formulier textarea:focus, .formulier select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.formulier .nota { font-size: 13px; color: var(--grijs); margin-top: 18px; }
.melding { background: #fdf6e7; border: 1px solid #ecd9b0; border-radius: 12px; padding: 14px 18px; font-size: 14px; margin-bottom: 28px; color: #6b5118; }

/* --- Proza (privacy, vacature) ----------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--grijs); font-size: 16px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--accent-donker); }

/* --- Footer --------------------------------------------------------------------------------- */
footer { background: #13202f; color: #9fb1c4; padding: 72px 0 32px; font-size: 14px; }
.fgrid { display: grid; grid-template-columns: 1.3fr 2.1fr .9fr .9fr; gap: 44px; margin-bottom: 48px; }
footer .flogo { height: 46px; margin-bottom: 18px; }
footer h3 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-family: 'Montserrat', sans-serif; }
footer li { list-style: none; margin-bottom: 8px; }
footer a:hover { color: #fff; }
footer .uren dt { color: #7f93a8; }
.fbottom { border-top: 1px solid #2a3a4d; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }

/* --- Scroll-reveal ----------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-beeld { opacity: 1; transform: translateY(0); }

/* --- Intro-animatie (openen van de site): gevulde tand verschijnt, naam volgt -------------------- */
html.intro-actief { overflow: hidden; }
html.intro-actief .hero h1, html.intro-actief .hero p, html.intro-actief .hero .acties, html.intro-actief .hero-beeld { animation-play-state: paused; }
#intro { position: fixed; inset: 0; z-index: 200; background: #fff; display: flex; align-items: center; justify-content: center; transition: transform .65s cubic-bezier(.7, 0, .3, 1), opacity .5s ease .1s; }
#intro[hidden] { display: none; }
#intro.weg { transform: translateY(-100%); opacity: .4; }
.intro-inhoud { text-align: center; }
.intro-tand { width: 104px; height: auto; display: block; margin: 0 auto 22px; }
.intro-tand path { fill: var(--accent); opacity: 0; animation: intro-opkomen .6s ease .1s forwards; }
.intro-naam { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .3em; color: var(--marine); opacity: 0; animation: intro-opkomen .55s ease .35s forwards; }
.intro-naam span { display: block; font-size: 11px; letter-spacing: .58em; color: var(--accent-donker); margin-top: 4px; margin-right: -.58em; }
@keyframes intro-opkomen { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Beweging beperken ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero p, .hero .acties, .hero-beeld, .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .hero img.tand { transition: none; transform: none !important; }
  .kaart, .btn, .beeld img { transition: none; }
  #intro { display: none !important; }
}

/* --- Responsief ------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav ul li.verberg { display: none; }
}
@media (max-width: 920px) {
  .menuknop { display: block; }
  .nav ul { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--lijn); box-shadow: 0 20px 40px rgba(16, 42, 67, .1); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 24px; display: none; }
  .nav ul.open { display: flex; }
  .nav ul li { border-bottom: 1px solid var(--lijn); }
  .nav ul li:last-child { border-bottom: none; padding-top: 16px; }
  .nav ul a { display: block; padding: 14px 0; font-size: 16px; }
  .nav ul a.btn { text-align: center; }
  .nav a:not(.btn)::after { display: none; }
  .nav ul li.verberg { display: block; }
}
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 150px; }
  .hero-overlap { margin-top: -116px; }
  .hero-beeld { margin-top: 44px; }
  .hero-beeld img { aspect-ratio: 4 / 3; }
  .intro, .detail, .contact-grid, .bio { grid-template-columns: minmax(0, 1fr); }
  .intro { gap: 40px; }
  .detail aside { position: static; }
  .bio { gap: 20px; }
  .bio img { max-width: 240px; }
  .ligging > img, .ligging > picture > img { aspect-ratio: 4 / 3; }
  .ligging .kaartje { position: static; margin: -72px 24px 0; max-width: none; }
  .ligging { padding-bottom: 64px; }
  .fotokop > img, .fotokop > picture > img { aspect-ratio: auto; height: 380px; }
  .fotokop .inhoud { background: linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .65) 55%, rgba(255, 255, 255, .2) 100%); }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .formulier { padding: 28px 22px; }
}
@media (max-width: 560px) {
  .fgrid { grid-template-columns: 1fr; }
  .urenkaart { padding: 24px 20px; }
  .urenkaart .uren > div { grid-template-columns: 96px 1fr; }
  .urenkaart .uren dd { grid-template-columns: 52px 1fr; }
}
