/* Gasmeterkast.nl — statische site in de huisstijl van Buitenkast.nl */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
}

:root {
  --navy: #002864;
  --navy-deep: #012341;
  --yellow: #ffd200;
  --label: #becae4;
  --ice: #e9f5ff;
  --mist: #ecf0f3;
  --sky: #b9d0e3;
  --ink: #141414;
  --muted: #4a5568;
  --line: #dbe3ee;
  --white: #fff;
  --wrap: 1280px;
  --corner: 0 0 56px 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  font: 400 16px/1.65 "Outfit", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 3vw, 44px); }

.skip-link, .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  width: auto; height: auto; clip: auto; left: 16px; top: 12px; z-index: 100;
  background: var(--yellow); color: var(--navy); padding: 10px 16px; font-weight: 700;
}

/* ---------- Knoppen & labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 26px; border-radius: 0 0 10px 0;
  font: 700 16px/1.2 "Outfit", Arial, sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #ffdc33; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #0a3a82; }
.btn-outline { border: 1px solid var(--navy); color: var(--navy); background: transparent; padding: 12px 22px; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.chev { width: 8px; height: 12px; flex: none; }

.eyebrow, .hero .eyebrow, .card-contact .eyebrow {
  display: inline-block; margin: 0 0 18px;
  background: var(--label); color: var(--navy);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; line-height: 1;
  padding: 8px 14px; border-radius: 0 0 12px 0;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-deep); color: #cfd9e8; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar svg { color: #6fbf73; flex: none; }
.topbar a { color: #cfd9e8; text-decoration: none; }
.topbar a:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.logo img { width: 250px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.nav-list > li { position: relative; }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 16px/1 "Outfit", Arial, sans-serif; color: var(--navy);
  text-decoration: none; background: none; border: 0; padding: 10px 0; cursor: pointer;
}
.nav-link:hover, .nav-toggle:hover { text-decoration: underline; }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav-toggle svg { transition: transform .15s; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.submenu {
  list-style: none; margin: 0; padding: 10px 0;
  position: absolute; top: calc(100% + 12px); left: -20px; min-width: 300px;
  background: var(--white); border-radius: 0 0 24px 0;
  box-shadow: 0 18px 40px rgba(0, 40, 100, .14);
}
.submenu[hidden] { display: none; }
.submenu a { display: block; padding: 10px 22px; color: var(--navy); text-decoration: none; font-weight: 500; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--ice); }

.menu-button {
  display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(100deg, var(--mist) 23%, var(--sky) 66%); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: 56px; padding-bottom: 56px;
}
.hero h1 {
  margin: 0 0 18px; color: var(--navy);
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -.01em;
  text-wrap: balance;
}
.hero p { margin: 0 0 28px; max-width: 56ch; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0 0 80px 0; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--navy); color: var(--white); padding: 14px 20px; border-radius: 0 0 16px 0;
  font-weight: 600; line-height: 1.3; box-shadow: 0 12px 30px rgba(0, 40, 100, .25);
}
.hero-badge strong { display: block; color: var(--yellow); font-size: 22px; }

.hero.compact .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
.hero.compact h1 { font-size: clamp(32px, 4vw, 48px); }

/* Kruimelpad */
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Producten ---------- */
.products-section { background: linear-gradient(181.6deg, var(--ice) 0, var(--white) 100%); padding: 72px 0; }
.section-title { color: var(--navy); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; margin: 0 0 10px; }
.section-intro { margin: 0 0 36px; max-width: 64ch; }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.product a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--navy);
  background: var(--white); border-radius: 0 0 40px 0; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 40, 100, .08); transition: transform .2s, box-shadow .2s;
}
.product a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 40, 100, .14); }
.product .p-img { aspect-ratio: 1; background: var(--white); display: grid; place-items: center; padding: 18px; }
.product img { width: 100%; height: 100%; object-fit: contain; }
.product .p-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product .p-name { font-size: 18px; font-weight: 700; line-height: 1.25; }
.product .p-more { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.product a:hover .p-more { text-decoration: underline; }

/* ---------- Content ---------- */
.content-section { padding: 64px 0 80px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { color: var(--navy); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; margin: 44px 0 12px; }
.prose h3 { color: var(--navy); font-size: 20px; line-height: 1.3; margin: 30px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.prose li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px;
  border-left: 2px solid #3f9d47; border-bottom: 2px solid #3f9d47; transform: rotate(-45deg);
}
.prose .lead { font-size: 19px; color: var(--navy); font-weight: 500; }
.prose a { font-weight: 500; }
.updated { margin-top: 40px; font-size: 14px; color: var(--muted); }

.callout {
  background: var(--ice); border-radius: 0 0 32px 0; padding: 24px 26px; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 8px 0 22px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: var(--white); font-weight: 600; }
thead th:last-child { border-radius: 0 0 0 0; }
tbody tr:nth-child(even) { background: #f6f9fc; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--navy); font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--navy); font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; }

.figure { margin: 24px 0; max-width: 581px; }
.figure img { border-radius: 0 0 40px 0; }

/* Zijbalk */
.aside { position: sticky; top: 120px; display: grid; gap: 20px; }
.card-contact {
  background: radial-gradient(circle at 20% 0, #00366a 0, var(--navy) 70%);
  color: var(--white); padding: 30px 28px; border-radius: 0 0 56px 0;
}
.card-contact .eyebrow { margin-bottom: 14px; color: var(--navy); }
.hero .eyebrow { margin-bottom: 18px; }
.card-contact h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; }
.card-contact p { margin: 0 0 20px; color: #d6e0ef; }
.icon-row { display: flex; gap: 12px; }
.icon-btn {
  width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); color: var(--navy);
  display: grid; place-items: center; transition: transform .15s;
}
.icon-btn:hover { transform: scale(1.06); }
.card-contact .phone { display: block; margin-top: 18px; color: var(--white); font-weight: 700; font-size: 20px; text-decoration: none; }
.card-links { background: var(--ice); padding: 26px 28px; border-radius: 0 0 40px 0; }
.card-links h2 { margin: 0 0 12px; color: var(--navy); font-size: 18px; }
.card-links ul { list-style: none; margin: 0; padding: 0; }
.card-links a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid #d3e3f2; }
.card-links li:last-child a { border-bottom: 0; }
.card-links a:hover, .card-links a[aria-current="page"] { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfd9e8; padding: 56px 0 28px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h2 { color: var(--white); font-size: 18px; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #cfd9e8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 40px; padding-top: 22px; font-size: 14px; }
.footer-logo { width: 220px; background: var(--white); padding: 10px 14px; border-radius: 0 0 14px 0; margin-bottom: 16px; }

/* ---------- Responsief ---------- */
@media (max-width: 1180px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 960px) {
  .topbar ul li:nth-child(2) { display: none; }
  .menu-button { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    box-shadow: 0 18px 30px rgba(0, 40, 100, .12);
  }
  .nav[hidden] { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link, .nav-toggle { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .submenu { position: static; box-shadow: none; min-width: 0; padding: 4px 0 8px; border-radius: 0; }
  .submenu a { padding: 10px 12px; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; }
  .hero-badge { left: 12px; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 961px) {
  .nav[hidden] { display: flex; }
}
@media (max-width: 600px) {
  .topbar ul { gap: 16px; font-size: 13px; }
  .topbar .wrap > a { display: none; }
  .site-header .wrap { min-height: 72px; }
  .logo img { width: 190px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product .p-body { padding: 14px 14px 18px; }
  .product .p-name { font-size: 16px; }
  .products-section { padding: 48px 0; }
  .content-section { padding: 44px 0 56px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
