/* Virgam – gedeelde stylesheet voor virgamapp.nl
   Kleuren uit de Android-app (res/values/colors.xml):
   #0095FF (colorPrimary) en #004CFF (verloop logo) alleen decoratief;
   #0054FF (virgam_text_color) voor tekst, links en knoppen: 5,66:1 op wit, 5,09:1 op #F0F3F8 (WCAG AA). */

:root {
  --blue: #0054FF;
  --blue-dark: #003BB3;
  --blue-bright: #0095FF;
  --blue-deep: #004CFF;
  --ink: #1A2233;
  --muted: #4A5568;
  --soft: #F0F3F8;
  --line: #D5DCE8;
  --white: #FFFFFF;
  --radius: 12px;
  --wrap: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-dark); }

:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Op donkere vlakken (#1A2233) een witte focusrand: 15,9:1 i.p.v. 1,7:1 (WCAG 1.4.11 / 2.4.7) */
.cta :focus-visible { outline-color: var(--white); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
h1 { font-size: clamp(1.75rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* Toegankelijkheid */
.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--white);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 8px; z-index: 10;
}
.skip:focus { top: 0; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Kop */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.25rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none;
}
.brand img { width: 2.25rem; height: 2.25rem; }
.site-nav { order: 2; margin-left: auto; }
.header-cta { order: 3; }
.site-header .btn.header-cta { padding: 0.55rem 1.1rem; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem;
}
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--blue); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 52rem) {
  .site-header .wrap { padding-top: 0.5rem; padding-bottom: 0.25rem; }
  .header-cta { order: 2; margin-left: auto; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .site-nav ul { gap: 0 1rem; }
  .site-nav a { font-size: 0.95rem; }
}

/* Knoppen */
.btn {
  display: inline-block; background: var(--blue); color: var(--white);
  font-weight: 600; text-decoration: none; padding: 0.8rem 1.3rem;
  border-radius: 999px; border: 2px solid var(--blue); line-height: 1.2;
  min-height: 44px; font-size: 1rem; font-family: inherit; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--blue); }
.btn-ghost:hover { background: var(--soft); color: var(--blue-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }

/* Secties */
main { display: block; }
.section { padding: 3.5rem 0; }
.section-soft { background: var(--soft); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.small { font-size: 0.95rem; color: var(--muted); }

/* Hero */
.hero { overflow-x: clip; padding: 3.5rem 0 3rem; background: linear-gradient(180deg, var(--soft), var(--white)); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.4fr 1fr; } }
.facts { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.facts { gap: 0.4rem 1.25rem; }
.facts li { font-size: 0.95rem; color: var(--muted); padding-left: 1.4rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0.15rem; top: 0.35em; width: 0.45rem; height: 0.8rem; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Kaarten */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-block; margin-top: 0.5rem; font-weight: 600; }
@media (min-width: 52rem) { .cards.cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card .icon { display: block; width: 2rem; height: 0.35rem; border-radius: 4px; background: linear-gradient(90deg, var(--blue-bright), var(--blue-deep)); margin-bottom: 1rem; }

.tiles { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.tiles a {
  display: block; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--white);
  border: 2px solid var(--line); font-weight: 600; text-decoration: none; color: var(--ink);
}
.tiles a::after { content: " \2192"; color: var(--blue); }
.tiles a:hover { border-color: var(--blue); color: var(--blue); }

/* Stappen */
.steps { counter-reset: stap; list-style: none; padding: 0; display: grid; gap: 1rem; max-width: 46rem; }
.steps li { counter-increment: stap; position: relative; padding: 0.2rem 0 0 3.25rem; min-height: 2.4rem; }
.steps li::before {
  content: counter(stap); position: absolute; left: 0; top: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--blue); color: var(--white);
  display: grid; place-items: center; font-weight: 700;
}

.checklist { padding-left: 1.25rem; max-width: 46rem; }
.checklist li { margin-bottom: 0.4rem; }

.two-col { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 52rem) { .two-col { grid-template-columns: 1.3fr 1fr; } }

.prose { max-width: 46rem; }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 46rem; }
.prose h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }

.shots { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: start; }

/* Beelden: portaal = schermafdruk uit de demo-omgeving, app = voorbeeldscherm (SVG, nagebouwd uit de Android-layouts) */
.shot-img { margin: 0; min-width: 0; }
.shot-img img { display: block; width: 100%; height: auto; }
.shot-img figcaption { margin-top: 0.6rem; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.shot-img-phone { max-width: 17rem; width: 100%; margin-inline: auto; text-align: center; }
.shot-img-phone img { filter: drop-shadow(0 12px 24px rgba(26, 34, 51, 0.18)); }
.shot-img-wide img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(26, 34, 51, 0.10); }

/* Hero met portaalbeeld: tekst boven, beeld over de volle breedte, telefoon er schuin overheen */
.hero .wrap.hero-stack { grid-template-columns: 1fr; gap: 2rem; }
.hero-stack > div { max-width: 46rem; }
.hero-visual { margin: 0; position: relative; }
.hero-visual .portal { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(26, 34, 51, 0.12); background: var(--white); }
.hero-visual .hero-phone { position: absolute; right: -0.5rem; bottom: -2.5rem; width: 11.5rem; height: auto; filter: drop-shadow(0 12px 24px rgba(26, 34, 51, 0.25)); transform: rotate(4deg); }
.hero-visual figcaption { margin-top: 0.6rem; font-size: 0.85rem; line-height: 1.4; color: var(--muted); max-width: 40rem; }
.hero-visual.has-phone figcaption { padding-right: 12rem; }
@media (max-width: 52rem) {
  .hero-visual .hero-phone, .hero-visual .phone-note { display: none; }
  .hero-visual.has-phone figcaption { padding-right: 0; }
}
.wide-shot { margin: 2rem 0 0; }
@media (max-width: 40rem) { .hide-mobile { display: none; } }
.wide-shot img { display: block; width: 100%; max-width: 1140px; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(26, 34, 51, 0.10); }
.wide-shot figcaption { margin-top: 0.6rem; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }

/* Contact */
.hero .wrap.contact-layout { grid-template-areas: "intro" "card" "more"; align-items: start; }
@media (min-width: 52rem) { .hero .wrap.contact-layout { grid-template-columns: 1.3fr 1fr; grid-template-areas: "intro card" "more card"; row-gap: 0; } }
.contact-intro { grid-area: intro; }
.contact-more { grid-area: more; }
.contact-card { grid-area: card; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h2 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.contact-card .actions { margin-top: 1rem; }
.contact-card .reply-time { margin: 1rem 0 0; }

/* API-pagina */
.api-list { padding-left: 1.25rem; max-width: 46rem; }
.api-list li { margin-bottom: 0.35rem; }

/* Prijs */
.price-box { background: var(--white); border: 2px solid var(--blue); border-radius: var(--radius); padding: 1.75rem; }
.price { font-size: clamp(2.25rem, 6vw, 3.25rem); font-weight: 800; color: var(--ink); line-height: 1.1; margin: 0 0 0.25rem; }
.price span { font-size: 1.1rem; font-weight: 500; color: var(--muted); }

.table-scroll { overflow-x: auto; max-width: 40rem; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; max-width: 40rem; margin: 0; }
caption { text-align: left; font-weight: 700; margin-bottom: 0.5rem; }
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) { th, td { padding: 0.6rem 0.45rem; } }

/* CTA-blok */
.cta { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 2rem; }
.cta h2 { color: var(--white); }
.cta p { color: #E2E8F0; }
.cta .btn { background: var(--white); color: var(--blue); border-color: var(--white); }
.cta .btn:hover { background: var(--soft); color: var(--blue-dark); }
.cta .btn-ghost { background: transparent; color: var(--white); }
.cta .btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* Voet */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 3rem; font-size: 0.97rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.site-footer .footer-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
@media (max-width: 52rem) {
  .site-footer li { margin-bottom: 0; }
  .site-footer li a, .card-link { display: inline-block; padding: 0.6rem 0; }
  .site-footer li:not(:has(a)) { padding: 0.6rem 0; }
}
.site-footer .legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }

.breadcrumb { font-size: 0.95rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumb a { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-nav, .header-cta, .skip, .cta .actions { display: none; }
}
