/* ==========================================================================
   Glaszetters Amsterdam — design system
   Brand blue (from logo) + amber spoed accent. Mobile-first.
   ========================================================================== */

:root {
  /* Brand (derived from logo #1e6f9e / #5db4d9) */
  --brand: #1a6b98;
  --brand-deep: #0e4b6e;
  --brand-700: #155a82;
  --sky: #5db4d9;
  --sky-050: #f2f8fb;
  --brand-050: #eef5fa;
  --brand-100: #dcebf4;

  /* Spoed / urgentie */
  --spoed: #c2610f;
  --spoed-bright: #e07b1a;
  --spoed-050: #fdf4ea;

  /* Neutrals */
  --ink: #13212b;
  --muted: #52626e;
  --line: #dbe4ea;
  --line-soft: #e9eff3;
  --paper: #ffffff;
  --panel: #f2f7fa;
  --panel-2: #e9f1f6;

  /* System */
  --max: 70rem;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 40, 60, 0.06), 0 2px 8px rgba(15, 40, 60, 0.05);
  --shadow-md: 0 8px 30px rgba(15, 40, 60, 0.10);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 44ch; }

.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: 0.7rem 1rem; background: var(--brand-deep); color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--spoed-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-call { background: var(--spoed); color: #fff; box-shadow: var(--shadow-sm); }
.btn-call:hover { background: var(--spoed-bright); }

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

.btn-ghost { background: transparent; color: var(--brand-deep); border-color: var(--brand-100); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-050); }

.btn-light { background: #fff; color: var(--brand-deep); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--brand-050); }

.btn-block { width: 100%; }

/* ---------- Utility topbar --------------------------------------------- */
.topbar {
  background: var(--brand-deep); color: #eaf4fa; font-size: 0.86rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar .topbar-note { display: inline-flex; align-items: center; gap: 0.5rem; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee081; box-shadow: 0 0 0 3px rgba(126,224,129,0.25); flex: none; }
.topbar .topbar-right { display: inline-flex; align-items: center; gap: 1.25rem; }
.topbar .hide-sm { }

/* ---------- Header / nav ----------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand-link { display: inline-flex; align-items: center; }
.brand-link img { height: 46px; width: auto; }
.brand-link .brand-fallback { font-weight: 800; font-size: 1.15rem; color: var(--brand); letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { padding: 0.55rem 0.8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { background: var(--brand-050); color: var(--brand-deep); }
.nav a[aria-current="page"] { color: var(--brand-deep); background: var(--brand-050); }

/* Dropdown submenus */
.nav-item { position: relative; display: inline-flex; }
.nav-item.has-menu > a { display: inline-flex; align-items: center; gap: 0.3rem; }
.chev { width: 0.7em; height: 0.7em; flex: none; transition: transform 0.15s ease; }
.nav-item.has-menu::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 0.6rem; }
.submenu {
  position: absolute; top: calc(100% + 0.4rem); left: 0; z-index: 120;
  min-width: 250px; margin: 0; padding: 0.4rem; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.submenu.cols2 { grid-template-columns: 1fr 1fr; min-width: 320px; }
.submenu a { display: block; padding: 0.55rem 0.7rem; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.submenu a:hover { background: var(--brand-050); color: var(--brand-deep); }
.nav-item.has-menu:hover .submenu,
.nav-item.has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item.has-menu:hover .chev,
.nav-item.has-menu:focus-within .chev { transform: rotate(180deg); }

.card[id] { scroll-margin-top: 6rem; }

.header-cta { display: inline-flex; align-items: center; gap: 0.6rem; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Sections --------------------------------------------------- */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-head { max-width: 52ch; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.panel { background: var(--panel); }
.panel-2 { background: var(--brand-deep); color: #eaf4fa; }
.panel-2 h2, .panel-2 h3 { color: #fff; }

/* ---------- Hero ------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background:
    linear-gradient(180deg, var(--sky-050), #fff 70%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(93,180,217,0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(93,180,217,0.14) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
          mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-copy { max-width: 34rem; }
.hero h1 { margin-bottom: 0.6rem; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { max-width: 40ch; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.hero-figure { position: relative; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.hero-figure .frame { position: absolute; inset: -10px; border: 1px solid var(--brand-100); border-radius: calc(var(--radius) + 8px); pointer-events: none; }

/* Trust chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; list-style: none; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.75rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; font-weight: 700; color: var(--brand-deep); box-shadow: var(--shadow-sm); }
.chips svg { width: 1.05em; height: 1.05em; color: var(--brand); flex: none; }

/* ---------- Service grid ---------------------------------------------- */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex; flex-direction: column; gap: 0.4rem; padding: 1.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 11px; background: var(--brand-050); color: var(--brand); margin-bottom: 0.4rem; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .more { margin-top: auto; padding-top: 0.6rem; font-weight: 800; color: var(--brand); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.35rem; }

/* ---------- USP / feature rows ---------------------------------------- */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.usp { display: flex; flex-direction: column; gap: 0.35rem; }
.usp .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-deep); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.usp .icon svg { width: 22px; height: 22px; }
.usp h3 { margin: 0.3rem 0 0; }
.usp p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Spoed band ------------------------------------------------- */
.spoed { background: linear-gradient(180deg, var(--spoed-050), #fff); border-block: 1px solid var(--line-soft); padding-block: clamp(1.25rem, 3vw, 2rem) clamp(2.5rem, 5vw, 3.5rem); }
.spoed .container { display: grid; grid-template-columns: 1.45fr 0.55fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.spoed-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--spoed); color: #fff; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.spoed img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.spoed-figure img { max-width: 300px; margin-inline: auto; aspect-ratio: auto; height: auto; object-fit: contain; }

/* ---------- Steps (werkwijze) ----------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 0.6rem; }
.step h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Werkgebied ------------------------------------------------- */
.area-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.area-list li { padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 0.92rem; color: var(--brand-deep); }

/* ---------- Reviews-ready --------------------------------------------- */
.reviews-note {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.5rem;
  background: #fff; border: 1px dashed var(--brand-100); border-radius: var(--radius);
}
.reviews-note .icon { color: var(--brand); flex: none; }
.reviews-note .icon svg { width: 28px; height: 28px; }
.reviews-note p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Contact / form -------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.form { display: grid; gap: 0.9rem; background: #fff; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 0.3rem; }
.field.row2 { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 30rem) { .field.row2 { grid-template-columns: 1fr; } }
.field label { font-weight: 700; font-size: 0.9rem; }
.field .req { color: var(--spoed); }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.7rem 0.8rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-100); }
.field textarea { min-height: 6.5rem; resize: vertical; }
.form .fineprint { font-size: 0.82rem; color: var(--muted); margin: 0; }
.form-status { padding: 0.85rem 1rem; border-radius: 10px; font-weight: 700; }
.form-status.ok { background: #e7f6ec; color: #1c6b39; border: 1px solid #b6e3c4; }
.form-status.err { background: #fdecec; color: #a12626; border: 1px solid #f3c0c0; }

.contact-aside .contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.contact-aside dl { margin: 0; display: grid; gap: 0.9rem; }
.contact-aside dt { font-weight: 800; color: var(--brand-deep); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-aside dd { margin: 0.1rem 0 0; }
.contact-aside a { font-weight: 700; text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }

/* ---------- Prose (content pages) ------------------------------------- */
.prose { max-width: 62ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .callout { background: var(--brand-050); border-left: 4px solid var(--brand); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0; }
.prose .callout p:last-child { margin: 0; }

/* ---------- Breadcrumbs ------------------------------------------------ */
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: 1.25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line); }

/* ---------- Split content (service pages) ----------------------------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.aside-cta { position: sticky; top: 6rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.aside-cta h3 { margin-top: 0; }
.aside-cta .btn { width: 100%; margin-top: 0.5rem; }

/* ---------- Footer ----------------------------------------------------- */
.site-footer { background: var(--brand-deep); color: #cfe3ef; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; margin-top: 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr 1.1fr; gap: 2rem; }
.footer-areas-list { grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem !important; }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer .footer-brand img { height: 40px; margin-bottom: 0.9rem; filter: brightness(0) invert(1); opacity: 0.95; }
.site-footer .footer-brand p { color: #a9cade; max-width: 30ch; font-size: 0.95rem; }
.footer-contact { display: grid; gap: 0.4rem; font-size: 0.98rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.85rem; color: #a9cade; }

/* ---------- Sticky mobile action bar ---------------------------------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 0.6rem; padding: 0.6rem; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(15,40,60,0.08); }
.mobile-bar .btn { flex: 1; }

/* ---------- 404 -------------------------------------------------------- */
.notfound { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: 0.5rem; }
.notfound .btn { justify-self: center; margin-top: 0.75rem; }

/* ---------- Responsive ------------------------------------------------- */
@media (max-width: 60rem) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 10; }
  .spoed .container { grid-template-columns: 1fr; }
  .spoed-figure { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .aside-cta { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

@media (max-width: 60rem) {
  .nav, .header-actions .btn-call, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-link img { height: 40px; }
  .site-header.nav-open .nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0.15rem; padding: 0.75rem 1rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .nav a { padding: 0.8rem 0.9rem; font-size: 1.05rem; }
  .site-header.nav-open .nav-item { display: block; }
  .site-header.nav-open .nav-item.has-menu > a { justify-content: space-between; }
  .site-header.nav-open .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 0.4rem 0.85rem; min-width: 0; gap: 0;
  }
  .site-header.nav-open .submenu.cols2 { grid-template-columns: 1fr; }
  .site-header.nav-open .submenu a { font-size: 0.98rem; padding: 0.6rem 0.7rem; color: var(--muted); }
  .site-header.nav-open .nav-item.has-menu::after { display: none; }
  .site-header.nav-open .chev { display: none; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 4.5rem; }
  .topbar .hide-sm { display: none; }
}

@media (max-width: 48rem) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 34rem) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

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