/* =========================================================
   Tandartspraktijk Bekkerveld — Huisstijl 2024
   Palet: Diepzee #1B3A5C, Hemelblauw #2A7BB8, Wit #FFFFFF,
          Lichtgrijs #F5F7FA, Donkergrijs #2D2D2D, Accent #4AB3A3
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --diepzee:    #1B3A5C;
  --hemel:      #2A7BB8;
  --teal:       #4AB3A3;
  --wit:        #FFFFFF;
  --lichtgrijs: #F5F7FA;
  --midgrijs:   #E2E8F0;
  --tekst:      #2D2D2D;
  --subtekst:   #5A6A7A;
  --max:        1200px;
  --radius:     6px;
  --shadow:     0 2px 16px rgba(27,58,92,.10);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--tekst);
  background: var(--wit);
  overflow-x: hidden;
  max-width: 100%;
}

a { color: var(--hemel); text-decoration: none; }
a:hover { color: var(--diepzee); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  line-height: 1.3;
  color: var(--diepzee);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { padding-left: 1.4rem; }
li { margin-bottom: .4rem; }

/* ── TOPBAR ── */
.topbar {
  background: var(--diepzee);
  color: #c8dff0;
  font-size: .82rem;
  padding: .45rem 0;
}
.topbar .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.topbar a { color: #c8dff0; }
.topbar a:hover { color: var(--wit); text-decoration: none; }
.topbar .sep { opacity: .4; }

/* ── HEADER / NAV ── */
header {
  background: var(--wit);
  border-bottom: 1px solid var(--midgrijs);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
  min-width: 0;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
  min-width: 0;
}
.logo-name {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--diepzee);
  white-space: nowrap;
}
.logo-tag {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

nav { display: flex; align-items: center; gap: .2rem; }

nav a, .dropdown > button {
  font-size: .88rem;
  font-weight: 500;
  color: var(--tekst);
  padding: .5rem .8rem;
  border-radius: var(--radius);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, color .18s;
  font-family: 'Inter', sans-serif;
}
nav a:hover, .dropdown > button:hover,
nav a.active, .dropdown > button.active {
  background: var(--lichtgrijs);
  color: var(--diepzee);
  text-decoration: none;
}

.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--wit);
  border: 1px solid var(--midgrijs);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 220px;
  padding: .4rem 0;
  z-index: 200;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: .55rem 1.2rem;
  font-size: .86rem;
  color: var(--tekst);
  border-radius: 0;
}
.dropdown-menu a:hover {
  background: var(--lichtgrijs);
  color: var(--diepzee);
  text-decoration: none;
}

.nav-afspraak {
  background: var(--hemel) !important;
  color: var(--wit) !important;
  border-radius: var(--radius) !important;
  padding: .5rem 1.1rem !important;
  font-weight: 600 !important;
  margin-left: .6rem;
  transition: background .18s !important;
}
.nav-afspraak:hover { background: var(--diepzee) !important; text-decoration: none !important; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--diepzee);
  border-radius: 2px;
  transition: .3s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--wit);
  border-top: 1px solid var(--midgrijs);
  padding: .75rem 1.5rem 1.25rem;
}
.mobile-nav a, .mobile-nav summary {
  display: block;
  padding: .55rem 0;
  font-weight: 500;
  font-size: .95rem;
  color: var(--tekst);
  border-bottom: 1px solid var(--midgrijs);
  list-style: none;
  cursor: pointer;
}
.mobile-nav details { border-bottom: 1px solid var(--midgrijs); }
.mobile-nav details summary { border-bottom: none; }
.mobile-nav details ul { padding: .2rem 0 .6rem 1rem; list-style: none; }
.mobile-nav details li a { border-bottom: none; padding: .35rem 0; font-size: .9rem; color: var(--subtekst); }
.mobile-nav .nav-afspraak-mob {
  display: inline-block;
  margin-top: .9rem;
  background: var(--hemel);
  color: var(--wit) !important;
  border-radius: var(--radius);
  padding: .6rem 1.2rem;
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
  border-bottom: none !important;
}
.mobile-nav.open { display: flex; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--diepzee) 0%, #2A5580 60%, #2A7BB8 100%);
  color: var(--wit);
  padding: 4rem 0 4.5rem;      /* Geen zijdelingse padding hier */
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(74,179,163,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;           /* Padding hier, gelijk aan nav-inner en topbar .inner */
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .8rem;
}
.hero h1 { color: var(--wit); margin-bottom: 1rem; }
.hero p { color: #c8dff0; font-size: 1.02rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: .72rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: .93rem; transition: .2s; cursor: pointer; }
.btn-primary { background: var(--teal); color: var(--wit); }
.btn-primary:hover { background: #39a090; color: var(--wit); text-decoration: none; }
.btn-outline { background: transparent; color: var(--wit); border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--wit); text-decoration: none; border-color: var(--wit); }
.btn-blue { background: var(--hemel); color: var(--wit); }
.btn-blue:hover { background: var(--diepzee); color: var(--wit); text-decoration: none; }

/* foto-placeholder in hero */
.photo-placeholder {
  background: rgba(255,255,255,.1);
  border: 2px dashed rgba(255,255,255,.35);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  text-align: center;
  padding: 1rem;
  gap: .4rem;
}
.photo-placeholder .pin {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
}
.photo-placeholder-light {
  background: var(--lichtgrijs);
  border: 2px dashed var(--midgrijs);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--subtekst);
  font-size: .82rem;
  text-align: center;
  padding: 1rem;
  gap: .4rem;
  min-height: 200px;
}
.photo-placeholder-light .pin {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hemel);
  line-height: 1;
}

/* ── PAGE HERO (subpagina's) ── */
.page-hero {
  background: linear-gradient(135deg, var(--diepzee) 0%, #2A5580 100%);
  color: var(--wit);
  padding: 2.5rem 0 3rem;      /* Geen zijdelingse padding */
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(74,179,163,.15) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;           /* Padding hier, gelijk aan alle andere inner-containers */
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: center;
}
.page-hero h1 { color: var(--wit); margin-bottom: .7rem; }
.page-hero p { color: #c8dff0; max-width: 480px; }
.page-hero-photo { min-height: 200px; }

/* ── MAIN CONTENT WRAPPER ── */
.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.page-body h2 { margin-bottom: .6rem; margin-top: 2rem; }
.page-body h2:first-child { margin-top: 0; }
.page-body p + h2 { margin-top: 1.8rem; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-box {
  background: var(--lichtgrijs);
  border-radius: var(--radius);
  padding: 1.4rem;
  border-left: 3px solid var(--hemel);
}
.sidebar-box h3 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--diepzee);
  margin-bottom: .9rem;
}
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box ul li { border-bottom: 1px solid var(--midgrijs); }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a {
  display: block;
  padding: .45rem 0;
  font-size: .9rem;
  color: var(--tekst);
}
.sidebar-box ul li a:hover { color: var(--hemel); text-decoration: none; }
.sidebar-box ul li a.current { color: var(--hemel); font-weight: 600; }

.contact-box {
  background: var(--diepzee);
  color: var(--wit);
  border-radius: var(--radius);
  padding: 1.4rem;
  border-left: none;
}
.contact-box h3 { color: var(--teal); margin-bottom: .9rem; }
.contact-box p { font-size: .9rem; color: #c8dff0; margin-bottom: .5rem; }
.contact-box a { color: #c8dff0; }
.contact-box a:hover { color: var(--wit); }
.contact-box .cta { display: block; margin-top: 1rem; }

/* ── SECTIONS ── */
section { padding: 3.5rem 0; }  /* Geen zijdelingse padding op de sectie zelf */
/* Alle section-inner's dragen de zijdelingse padding — gelijk aan nav-inner en topbar */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* Grids binnen sections via utility-klassen */
.section-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.section-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
}
.section-title { margin-bottom: 1rem; }
.section-lead { color: var(--subtekst); max-width: 640px; margin-bottom: 2.5rem; font-size: 1.02rem; }

/* ── BEHANDELINGEN GRID ── */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.treatment-card {
  background: var(--wit);
  border: 1px solid var(--midgrijs);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.treatment-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.treatment-icon { font-size: 1.6rem; margin-bottom: .7rem; }
.treatment-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.treatment-card p { font-size: .88rem; color: var(--subtekst); margin-bottom: .9rem; }
.treatment-card a { font-size: .88rem; font-weight: 600; color: var(--hemel); }

/* ── INFO STRIP ── */
.info-strip { background: var(--diepzee); color: var(--wit); padding: 2.5rem 0; }
.info-strip .section-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.info-block h3 { color: var(--teal); font-size: 1rem; margin-bottom: .4rem; }
.info-block p { color: #c8dff0; font-size: .9rem; }

/* ── TEAM GRID ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.team-card {
  text-align: center;
}
.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  object-fit: cover;
  margin-bottom: .8rem;
}
.team-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.team-card p { font-size: .85rem; color: var(--subtekst); }

/* ── OPENING TABLE ── */
.openings-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.openings-table th, .openings-table td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--midgrijs); font-size: .92rem; }
.openings-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--subtekst); font-weight: 600; }
.openings-table tr:last-child td { border-bottom: none; }
.gesloten { color: var(--subtekst); }
.spoed { color: #c0392b; font-weight: 600; }

/* ── CONTACT FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .88rem; font-weight: 500; color: var(--tekst); }
input, select, textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--midgrijs);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  color: var(--tekst);
  background: var(--wit);
  transition: border-color .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--hemel);
  box-shadow: 0 0 0 3px rgba(42,123,184,.12);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--subtekst); }
.form-success { background: #e8f7f5; border: 1px solid var(--teal); border-radius: var(--radius); padding: 1rem 1.2rem; color: #1a6b5e; margin-top: 1rem; display: none; }

/* ── MAP ── */
.map-wrap { border-radius: var(--radius); overflow: hidden; margin-top: 2rem; border: 1px solid var(--midgrijs); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: none; }

/* ── NOTA ── */
.nota-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.nota-table th, .nota-table td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--midgrijs); }
.nota-table th { background: var(--lichtgrijs); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--subtekst); }

/* ── DISCLAIMER / VOORWAARDEN ── */
.prose h2 { margin: 2rem 0 .6rem; font-size: 1.15rem; }
.prose h3 { margin: 1.4rem 0 .4rem; font-size: 1rem; }
.prose ul { margin-bottom: 1rem; }

/* ── CALLOUT ── */
.callout {
  background: #e8f3fc;
  border-left: 4px solid var(--hemel);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: .93rem;
}
.callout strong { color: var(--diepzee); }
.callout-orange {
  background: #fff8e8;
  border-color: #e09a20;
}

/* ── FOOTER ── */
footer {
  background: var(--diepzee);
  color: #c8dff0;
  padding: 3rem 0 1.5rem;      /* Geen zijdelingse padding */
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;           /* Padding hier, gelijk aan alle andere inner-containers */
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
footer h4 {
  color: var(--wit);
  font-family: 'Lora', serif;
  font-size: .95rem;
  margin-bottom: 1rem;
}
footer p, footer li { font-size: .88rem; color: #a8c4da; line-height: 1.8; }
footer ul { list-style: none; padding: 0; }
footer ul li a { color: #a8c4da; font-size: .88rem; }
footer ul li a:hover { color: var(--wit); text-decoration: none; }
.footer-bottom {
  max-width: var(--max);
  margin: 1.2rem auto 0;
  padding: 0 1.5rem;           /* Padding hier, gelijk aan alle andere inner-containers */
  font-size: .8rem;
  color: #7096b4;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: #7096b4; }
.footer-bottom a:hover { color: var(--wit); }

/* ── 404 ── */
.error-page { text-align: center; padding: 6rem 1.5rem; }
.error-page h1 { font-size: 6rem; color: var(--midgrijs); margin-bottom: .5rem; }
.error-page h2 { font-size: 1.6rem; margin-bottom: 1rem; }

/* ── RESPONSIVE ── */

/* Tablet / kleine desktop — ook het breekpunt voor de topbar */
@media (max-width: 900px) {
  /* Topbar verbergen zodra de desktop-nav verdwijnt.
     De topbar past nooit netjes op een smal scherm: de items
     (adres + separator + telefoon + separator + e-mail + tijd)
     zijn samen te breed voor alles onder ~900px.
     De contactgegevens staan ook op de contactpagina zelf. */
  .topbar { display: none; }

  nav { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .page-wrap { grid-template-columns: 1fr !important; }
  .sidebar { order: 1; }   /* sidebar ná de hoofdtekst op smal scherm */
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-photo { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-inner > :last-child { display: none; }
  .section-2col { grid-template-columns: 1fr; gap: 2rem; }
  .section-3col { grid-template-columns: 1fr 1fr; }
}

/* Mobiel */
@media (max-width: 600px) {

  /* Header */
  .nav-inner { height: 60px; padding: 0 1rem; }
  .logo-name { font-size: 1.05rem; }
  .logo-tag { display: none; }

  /* Hero */
  .hero { padding: 2.5rem 1rem 3rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Sectie-padding */
  section { padding: 2rem 0; }
  .section-inner { padding: 0 1rem; }
  .hero-inner { padding: 0 1rem; }
  .page-hero-inner { padding: 0 1rem; }
  .footer-inner { padding: 0 1rem; }
  .footer-bottom { padding: 0 1rem; }

  /* page-wrap: !important overschrijft ook inline styles op het element zelf */
  .page-wrap { grid-template-columns: 1fr !important; padding: 2rem 1rem; }

  /* Alle grids naar één kolom — !important zodat inline styles geen kans krijgen */
  .section-2col    { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .section-3col    { grid-template-columns: 1fr !important; }
  .treatments-grid { grid-template-columns: 1fr !important; }
  .form-grid       { grid-template-columns: 1fr !important; }
  .footer-inner    { grid-template-columns: 1fr; gap: 1.8rem; }
  .team-grid       { grid-template-columns: 1fr 1fr; }

  /* Openingstijden tabel */
  .openings-table th, .openings-table td { padding: .5rem .6rem; font-size: .85rem; }

  /* page-hero */
  .page-hero { padding: 2rem 1rem 2.5rem; }
  .page-hero h1 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
