/* ==========================================================================
   Tandartspraktijk Someren — stylesheet
   Design tokens → base → layout → componenten → utilities
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
  --navy-900: #062a45;
  --navy-800: #0b3a5d;
  --navy-700: #14507b;
  --navy-100: #e3edf4;

  --teal-600: #12908c;
  --teal-500: #19b5b0;
  --teal-400: #3fcac5;
  --teal-100: #dff5f4;

  --ink:      #22323d;
  --ink-soft: #55676f;
  --line:     #dbe5ea;
  --surface:  #ffffff;
  --canvas:   #f5fafb;

  --amber-bg: #fff8e6;
  --amber-br: #f0c14b;
  --amber-tx: #7a5406;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(6, 42, 69, .06), 0 2px 6px rgba(6, 42, 69, .05);
  --shadow:    0 4px 10px rgba(6, 42, 69, .06), 0 12px 28px rgba(6, 42, 69, .08);
  --shadow-lg: 0 10px 24px rgba(6, 42, 69, .10), 0 28px 60px rgba(6, 42, 69, .12);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.875rem, .84rem + .17vw, .95rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.06rem + .32vw, 1.3rem);
  --step-2:  clamp(1.35rem, 1.22rem + .62vw, 1.75rem);
  --step-3:  clamp(1.65rem, 1.4rem + 1.2vw, 2.4rem);
  --step-4:  clamp(2rem, 1.55rem + 2.2vw, 3.4rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--navy-800);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol { margin: 0 0 1.15em; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }

a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy-700); }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--navy-800); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600;
  text-decoration: none; transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--surface); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #dbe9f2;
}
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); margin-bottom: 0; }
.section--navy .section-head p { color: #b9d2e2; }

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: .85rem;
}
.section--navy .eyebrow { color: var(--teal-400); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr 1fr; }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease,
              color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary {
  background: var(--teal-500);
  color: #04302f;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--teal-400); color: #04302f; box-shadow: var(--shadow); }

.btn--navy { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn--navy:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow); }

.btn--ghost { border-color: currentColor; color: var(--navy-800); background: transparent; }
.btn--ghost:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.section--navy .btn--ghost,
.hero .btn--ghost,
.page-header .btn--ghost { color: #fff; }
.section--navy .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-header .btn--ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- Notice bar ---------------------------------------------------------- */
.notice {
  background: var(--amber-bg);
  border-bottom: 1px solid var(--amber-br);
  color: var(--amber-tx);
  font-size: var(--step--1);
  line-height: 1.6;
}
.notice__inner {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding-block: .85rem;
}
.notice__icon { flex: none; width: 1.35rem; height: 1.35rem; margin-top: .1rem; }
.notice__body { flex: 1; }
.notice__body strong { display: block; }
.notice__close {
  flex: none;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  padding: .2rem .45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.notice__close:hover { background: rgba(122, 84, 6, .12); }
.notice[hidden] { display: none; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; max-height: 3.5rem; }

.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.4vw, 1.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: .5rem .3rem;
  color: var(--navy-800);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-current="page"] {
  color: var(--teal-600);
  border-bottom-color: var(--teal-500);
}
@media (min-width: 1060px) { .nav { display: block; } }

.header-cta { display: none; }
@media (min-width: 1060px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--navy-800);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .65rem 1.1rem;
  font: inherit;
  font-weight: 600;
  font-size: var(--step--1);
  cursor: pointer;
}
@media (min-width: 1060px) { .nav-toggle { display: none; } }
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars span {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: block;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: .75rem 0 1.5rem; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav li:last-child { border-bottom: 0; padding-top: 1rem; }
.mobile-nav a:not(.btn) {
  display: block;
  padding: .95rem .25rem;
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav a:not(.btn):hover { color: var(--teal-600); }
@media (min-width: 1060px) { .mobile-nav { display: none !important; } }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(4, 32, 53, .96) 0%, rgba(7, 45, 73, .93) 42%,
                    rgba(10, 92, 96, .88) 78%, rgba(15, 122, 120, .86) 100%);
}
.hero__inner {
  padding-block: clamp(4rem, 11vw, 8.5rem);
  max-width: 44rem;
}
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero__lead {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, .88);
  margin-bottom: 2rem;
  max-width: 34rem;
}
.hero__kicker {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 1rem;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-left: 0;
}
.hero__facts > div { margin: 0; }
.hero__facts dt {
  font-size: var(--step--1);
  color: rgba(255, 255, 255, .7);
  margin-bottom: .15rem;
}
.hero__facts dd {
  margin: 0;
  font-weight: 700;
  font-size: var(--step-1);
  color: #fff;
}
.hero__facts a { color: #fff; text-decoration: none; }
.hero__facts a:hover { color: var(--teal-400); }

/* --- Cards --------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-100); }
.card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }

.card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--teal-100);
  color: var(--teal-600);
}
.card__icon svg { width: 1.65rem; height: 1.65rem; }

.media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media img { width: 100%; }

/* --- Prose blocks -------------------------------------------------------- */
.callout {
  border-left: 4px solid var(--teal-500);
  background: var(--teal-100);
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--amber-br); background: var(--amber-bg); color: var(--amber-tx); }

/* --- Spoed --------------------------------------------------------------- */
.spoed-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (min-width: 820px) { .spoed-grid { grid-template-columns: 1.2fr .8fr; } }

.spoed-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.spoed-card h3 { font-size: var(--step-1); margin-bottom: .75rem; }
.spoed-card address { font-style: normal; line-height: 1.75; }

.phone-big {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: var(--step-3);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.01em;
}
.phone-big:hover { color: var(--teal-400); }
.phone-big svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--teal-400); }

/* --- Vacature ------------------------------------------------------------ */
.vacature-lists {
  display: grid;
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin-bottom: 1.5rem;
}
.list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.list-card h4 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: .07em;
  color: var(--teal-600); margin-bottom: .7rem; }
.list-card ul { margin: 0; padding-left: 0; list-style: none; }
.list-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .5rem;
  color: var(--ink-soft);
}
.list-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--teal-500);
}
.list-card li:last-child { margin-bottom: 0; }

/* --- Details / WNT ------------------------------------------------------- */
.disclosure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.5rem;
}
.disclosure summary {
  cursor: pointer;
  padding: 1.15rem 0;
  font-weight: 650;
  color: var(--navy-800);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
  content: "";
  flex: none;
  width: .6rem; height: .6rem;
  border-right: 2px solid var(--teal-600);
  border-bottom: 2px solid var(--teal-600);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.disclosure[open] summary::after { transform: rotate(-135deg); }
.disclosure__body { padding-bottom: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.disclosure__body > :last-child { margin-bottom: 0; }

/* --- Embeds -------------------------------------------------------------- */
.embed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.embed iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
}
.embed--form iframe { min-height: 1000px; }
.embed--map iframe { min-height: 380px; }
@media (min-width: 700px) { .embed--map iframe { min-height: 440px; } }

/* --- Forms --------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: .4rem;
  color: var(--navy-800); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px var(--teal-100);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field--error input, .field--error textarea { border-color: #c0392b; }
.field__error { display: block; color: #c0392b; font-size: var(--step--1); margin-top: .35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.alert--ok   { background: var(--teal-100); border: 1px solid var(--teal-500); color: #08544f; }
.alert--err  { background: #fdecea; border: 1px solid #e8b4ae; color: #a5271b; }
.alert > :last-child { margin-bottom: 0; }

/* --- Info panel (contactgegevens naast content) -------------------------- */
.info-panel {
  background: var(--navy-800);
  color: #d7e6f0;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.info-panel h3 { color: #fff; font-size: var(--step-1); }
.info-panel a { color: var(--teal-400); }
.info-panel a:hover { color: #fff; }
.info-panel address { font-style: normal; line-height: 1.8; }
.info-panel + .info-panel { margin-top: 1.25rem; }

.hours-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.hours-table th, .hours-table td { text-align: left; padding: .5rem 0; vertical-align: top; }
.hours-table th { font-weight: 600; padding-right: 1rem; white-space: nowrap; }
.hours-table tr + tr th, .hours-table tr + tr td { border-top: 1px solid rgba(255, 255, 255, .14); }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(170deg, var(--navy-800), var(--navy-900));
  color: #bed4e2;
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.site-footer h3 {
  color: #fff;
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.1rem;
}
.site-footer a { color: #bed4e2; }
.site-footer a:hover { color: var(--teal-400); }
.site-footer address { font-style: normal; line-height: 1.85; }

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .55rem; }
.footer-nav a { text-decoration: none; }

.footer-hours { font-size: var(--step--1); }
.footer-hours dt { font-weight: 650; color: #fff; margin-top: 1rem; }
.footer-hours dt:first-child { margin-top: 0; }
.footer-hours dd { margin: 0 0 .25rem; }

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer-badges__label {
  flex: none;
  font-size: var(--step--1);
  color: #8fb0c6;
  margin: 0;
  width: 100%;
}
.footer-badges img {
  height: 2.4rem;
  width: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: .45rem .7rem;
  box-sizing: content-box;
  opacity: .92;
  transition: opacity .2s ease, transform .2s ease;
}
.footer-badges img:hover { opacity: 1; transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-block: 1.5rem;
  font-size: var(--step--1);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  justify-content: space-between;
  color: #8fb0c6;
}
.footer-bottom p { margin: 0; }

/* --- Page header (subpagina's) ------------------------------------------- */
.page-header {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900) 60%, var(--teal-600));
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-header h1 { color: #fff; margin-bottom: .35rem; }
.page-header p { color: rgba(255, 255, 255, .85); max-width: 42rem; margin-bottom: 0;
  font-size: var(--step-1); }
.breadcrumb { font-size: var(--step--1); color: rgba(255, 255, 255, .7); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-400); }

/* --- Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack-lg > * + * { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .card:hover { transform: none; }
}
