/* Bens Airco Service, design 1 (Oud, was Gepoetst): one stylesheet (26 Nov 2026: replaces reset/helper/nav/main/style/glider.css).
   Same look as before; modern CSS (nesting, logical properties, :focus-visible, woff2/woff only)
   and native replacements for the old slider (scroll snap) and photo viewer (<dialog>). */

:root {
  --main-color: #374C9F;
  --bg-10: #fff;
  --bg-rgb: rgb(255 255 255 / .9);
  --bg-20: #eee;
  --bg-30: #ddd;
  --margin-0: 15px;
  --margin-1: 20px;
  --margin-2: 30px;
  --margin-3: 40px;
  --accent: var(--main-color); /* slider arrows and dots on hover/active */
}

/* ---------------------------------------------------------------- fonts -- */

@font-face {
  font-family: "Eurostile";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/EurostileLTStd-Bold.woff2") format("woff2");
  font-display: swap; /* headings show at once in the fallback font, no invisible text */
}

@font-face {
  font-family: "icomoon";
  src: url("fonts/icomoon.woff?19e9qg") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block; /* icon font: no fallback letters in place of icons */
}

/* ---------------------------------------------------------------- reset -- */

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

html {
  font-family: Arial, sans-serif;
  font-size: 1.2em;
  position: relative;
  min-height: 100%;
  height: 100dvh;
  background: var(--bg-10);
  overflow-x: clip;
  @media (width >= 641px) { font-size: 1em; }
}

body {
  min-height: 100dvh;
  background: var(--bg-10);
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ol, ul {
  list-style: none;
  list-style-position: inside;
}

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

a {
  text-decoration: none;
  color: var(--main-color);
}

h1, h2, h3, h4, h5, h6 {
  font-size: 1.2em;
  font-family: "Eurostile", sans-serif;
  color: var(--main-color);
}

textarea { font-family: inherit; }

/* ---------------------------------------------------------------- icons -- */

[class^="icon-"], [class*=" icon-"] {
  /* !important: browser extensions that change fonts would break the icons */
  font-family: "icomoon" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-mail::before { content: "\e900"; }
.icon-home::before { content: "\e901"; }
.icon-tiktok::before { content: "\e902"; }
.icon-facebook::before { content: "\e903"; }
.icon-phone::before { content: "\e904"; }
.icon-instagram::before { content: "\e905"; }
.icon-twitter::before { content: "\e906"; }
.icon-whatsapp::before { content: "\e907"; }
.icon-location::before { content: "\e908"; }
.icon-haier::before { content: "\e909"; }
.icon-hisense::before { content: "\e90a"; }
.icon-hitachi::before { content: "\e90b"; }
.icon-lg::before { content: "\e90c"; }
.icon-daikin::before { content: "\e90d"; }
/* Mitsubishi Electric is not in the icon font: its mark as a mask, so it takes the text colour like the glyphs. */
.icon-mitsubishi::before {
  content: "";
  display: inline-block;
  block-size: 1.3em;
  aspect-ratio: 600 / 176;
  background: currentColor;
  mask: url("../img/mitsubishi-mark.webp") center / contain no-repeat;
  vertical-align: middle;
}
.icon-link::before { content: "\e90e"; }
.icon-bas::before { content: "\e90f"; }
.icon-checkmark::before { content: "\e910"; }

/* Footer list icons: <li data-icon="&#xe90e;"> */
[data-icon]::before {
  float: inline-start;
  font-family: "icomoon";
  content: attr(data-icon);
  color: var(--main-color);
  width: var(--margin-2);
  margin-inline-start: calc(-1 * var(--margin-2));
}

/* --------------------------------------------------------------- layout -- */

.container {
  max-width: var(--mmcms-max, 1200px);
  margin-inline: auto;
  padding: var(--margin-1);
}

.text-center { text-align: center; }

header .container {
  display: flex;
  justify-content: space-between;
  z-index: 20;
  @media (width >= 641px) { padding: var(--margin-0); }
}

.logo {
  flex-basis: 70%;
  z-index: 30;
  @media (width >= 641px) { flex-basis: 20%; z-index: 0; }

  & img {
    aspect-ratio: 27 / 11;
    width: 100%;
    /* Websitegegevens > "Logo: grootte bovenin" (--logo-scale from cms.php); a bigger logo hangs below the bar */
    transform: scale(var(--logo-scale, 1));
    transform-origin: top left;
  }
}

/* ------------------------------------------------------------ navigation -- */

/* Phones: full-screen overlay opened by the hamburger. Hidden with visibility (not off-screen), so its links
   are out of the tab order and away from screen readers while closed. */
nav {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  margin-block-start: var(--margin-1);
  width: 100%;
  height: 100%;
  z-index: -10;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-rgb);
  color: var(--main-color);
  text-transform: uppercase;
  font-weight: bold;
  font-size: min(10vw, 80px);
  font-family: "Eurostile", sans-serif;
  opacity: 0;
  visibility: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  &.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    transition: opacity .5s ease-out;
  }

  & ul {
    width: 100%;
    margin-block-start: 30vw;
  }

  & li { text-align: center; }

  & li a {
    display: block;
    padding-block: 30px;
  }

  & li:not(.icons) a:hover {
    color: var(--bg-20);
    background: var(--main-color);
  }

  & li.icons {
    font-size: 6vw;
    display: flex;
    justify-content: space-evenly;
    margin-block-start: 50px;

    & a:hover { color: #000; }
  }

  @media (width >= 641px) {
    position: relative;
    inset: auto;
    flex-direction: row;
    flex-basis: 65%;
    width: auto;
    height: auto;
    margin: 0;
    z-index: 0;
    background: none;
    font-size: 1em;
    opacity: 1;
    visibility: visible;

    & ul {
      display: flex;
      flex-grow: 2;
      gap: 1%;
      width: auto;
      margin: 0;
    }

    & li a { padding: 10px; }

    & li.icons {
      font-size: 1em;
      margin: 0;
      gap: 1%;
    }
  }

  @media (width >= 1000px) {
    & ul { gap: 4%; }
  }
}

.hamhol {
  z-index: 30;
  flex-basis: 30%;
  padding: 7% 4% 7% 10%;
  border: 0;
  background: transparent;
  @media (width >= 641px) { display: none; }
}

.hamburger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: var(--margin-1);
  height: 100%;
  line-height: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  & span {
    position: absolute;
    height: 16%;
    width: 100%;
    background: var(--main-color);
    transition: .25s ease-in-out;
  }

  & span:nth-child(1) { inset-block-start: 0; }
  & span:nth-child(4) { inset-block-end: 0; }

  &.active span:nth-child(1),
  &.active span:nth-child(4) { opacity: 0; height: 0; }
  &.active span:nth-child(2) { rotate: 45deg; }
  &.active span:nth-child(3) { rotate: -45deg; }
}

/* ----------------------------------------------------------------- main -- */

.hero {
  z-index: -10;
  width: 100%;

  & img { width: 100%; height: auto; }
}

main {
  & p { margin-block-end: var(--margin-1); }

  & h2, & h3 {
    text-align: center;
    margin-block-end: 10px;
  }

  & .blok {
    color: var(--main-color);
    margin-block-end: var(--margin-1);
    padding: 10px;

    & h2 { margin-block-start: var(--margin-1); }
  }
}

.column-2 {
  display: flex;
  flex-direction: column;
  @media (width >= 641px) { flex-direction: row; }

  & img {
    max-width: 300px;
    align-self: center;
  }
}

/* Certificate logos (home and text pages) */
.cert { margin-block-end: 20px; }
.cert + .cert { margin-block-end: 0; margin-inline-start: 20px; width: 100px; }

ul.checkmark {
  display: inline-block;
  margin-inline-start: var(--margin-2);
  text-align: start;

  & li { line-height: 2em; }

  & li::before {
    font-family: icomoon;
    font-weight: 400;
    color: #00dd00;
    content: "\e910";
    margin-inline-start: calc(var(--margin-2) * -1 - 2px);
    margin-inline-end: 10px;
  }
}

/* Blue band with wave edges (Voordelen) */
.waves {
  color: #fff;
  font-size: 1.2em;
  font-weight: 100;
  background: var(--main-color);

  & .container { text-align: center; }

  &::before, &::after {
    content: "";
    display: block;
    height: 59px;
    background-size: 100% 60px;
  }

  &::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' preserveAspectRatio='none' x='0px' y='0px' width='1920px' height='135px' viewBox='0 0 1920 135'%3E%3Cdefs%3E%3Cg id='Layer1_0_FILL'%3E%3Cpath fill='%23FFFFFF' stroke='none' d='%0AM 1996.45 159.55%0AL 1996.45 -17.4 -13.55 -17.4 -13.55 159.55 1996.45 159.55 Z'/%3E%3C/g%3E%3Cg id='Layer0_0_FILL'%3E%3Cpath fill='%23374C9F' stroke='none' d='%0AM 1921.3 17.9%0AQ 1858.55 62.05 1745.25 70.45 1631.9 78.7 1531.55 25.55 1431.15 -27.55 1234.3 52.6 1037.45 132.8 806.75 52.25 576 -28.35 409.6 28.65 243.1 85.6 164.05 49.35 84.8 13.1 -0.8 53.45%0AL -13.55 59.4 -13.55 159.55 1996.45 159.55 1996.45 -17.4%0AQ 1946.903125 -2.163671875 1921.3 17.9 Z'/%3E%3C/g%3E%3Cpath id='Layer1_0_1_STROKES' stroke='%23000000' stroke-width='1' stroke-linejoin='round' stroke-linecap='round' fill='none' d='%0AM -13.55 -17.4%0AL 1996.45 -17.4 1996.45 159.55 -13.55 159.55 -13.55 -17.4 Z'/%3E%3C/defs%3E%3Cg transform='matrix( 1, 0, 0, 1, 0,0) '%3E%3Cuse xlink:href='%23Layer1_0_FILL'/%3E%3Cuse xlink:href='%23Layer1_0_1_STROKES'/%3E%3C/g%3E%3Cg transform='matrix( 1, 0, 0, 1, 0,0) '%3E%3Cuse xlink:href='%23Layer0_0_FILL'/%3E%3C/g%3E%3C/svg%3E") left top no-repeat, #fff;
    background-size: 100% 60px;
    border-block-start: 1px solid #fff;
  }

  &::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' preserveAspectRatio='none' x='0px' y='0px' width='1920px' height='135px' viewBox='0 0 1920 135'%3E%3Cdefs%3E%3Cg id='Layer1_0_FILL'%3E%3Cpath fill='%23FFFFFF' stroke='none' d='%0AM 1996.45 159.55%0AL 1996.45 -17.4 -13.55 -17.4 -13.55 159.55 1996.45 159.55 Z'/%3E%3C/g%3E%3Cg id='Layer0_0_FILL'%3E%3Cpath fill='%23374C9F' stroke='none' d='%0AM 1996.45 30.95%0AL 1996.45 -17.4 -13.55 -17.4 -14.5 124.05%0AQ -6.4939453125 119.436328125 12.5 110.75 93.85 73.45 183.5 68.85 421.15 56.8 525.25 109.95 629.25 163 744.15 90.95 859.05 18.75 1103.8 68.45 1348.65 118.1 1516.9 62.85 1685.1 7.5 1774.3 75.5 1835.65 122.4 1919.35 81.8 1961.32265625 61.4205078125 1996.45 30.95 Z'/%3E%3C/g%3E%3Cpath id='Layer1_0_1_STROKES' stroke='%23000000' stroke-width='1' stroke-linejoin='round' stroke-linecap='round' fill='none' d='%0AM -13.55 -17.4%0AL 1996.45 -17.4 1996.45 159.55 -13.55 159.55 -13.55 -17.4 Z'/%3E%3C/defs%3E%3Cg transform='matrix( 1, 0, 0, 1, 0,0) '%3E%3Cuse xlink:href='%23Layer1_0_FILL'/%3E%3Cuse xlink:href='%23Layer1_0_1_STROKES'/%3E%3C/g%3E%3Cg transform='matrix( 1, 0, 0, 1, 0,0) '%3E%3Cuse xlink:href='%23Layer0_0_FILL'/%3E%3C/g%3E%3C/svg%3E") left bottom no-repeat, #fff;
    background-size: 100% 60px;
  }
}

/* ------------------------------------------------------- brands slider -- */
/* Native horizontal scroll with snap points: 1 brand on phones, 2 from 775px, 3 from 1024px.
   main.js adds the previous/next buttons' behaviour and the dots. */

.carousel { position: relative; }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: manipulation;
  font-size: 2em;
  text-align: center;
  @media (width >= 641px) { column-gap: 20px; }
  @media (width >= 775px) { grid-auto-columns: calc((100% - 20px) / 2); }
  @media (width >= 1024px) { grid-auto-columns: calc((100% - 40px) / 3); }
  @media (prefers-reduced-motion: no-preference) { scroll-behavior: smooth; }

  &::-webkit-scrollbar { display: none; }
  & > * { scroll-snap-align: start; min-width: 0; }
}

.carousel-prev, .carousel-next {
  position: absolute;
  inset-block-start: 25%;
  z-index: 2;
  height: 50%;
  padding: 0 10px;
  border: 0;
  background: none;
  color: #666;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: opacity .5s cubic-bezier(.17, .67, .83, .67), color .5s cubic-bezier(.17, .67, .83, .67);

  &:hover, &:focus-visible { color: var(--accent); }

  &:disabled {
    opacity: .25;
    color: #666;
    cursor: default;
  }
}

.carousel-prev { inset-inline-start: -23px; }
.carousel-next { inset-inline-end: -23px; }

/* Phones: the container has only 20px padding, so keep the arrows on screen */
@media (width < 641px) {
  .carousel-prev { inset-inline-start: -20px; }
  .carousel-next { inset-inline-end: -20px; }
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-inline: auto;

  & button {
    display: block;
    width: 12px;
    height: 12px;
    margin: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ccc;
    cursor: pointer;
    transition: scale .2s;

    /* 24px touch target around the 12px dot */
    position: relative;
    &::after { content: ""; position: absolute; inset: -6px; }

    &:hover, &:focus-visible { background: var(--accent); }

    /* active: colour and a bigger dot (not colour alone) */
    &[aria-current="true"] { background: var(--accent); scale: 1.25; }
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------- gallery -- */

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Photo viewer: native <dialog>, opened by main.js from the gallery thumbnails */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: contain;

  &::backdrop {
    background: rgb(30 30 30 / .92);
    overflow: hidden;
    overscroll-behavior: contain;
  }

  & img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 120px);
    object-fit: contain;
  }

  & button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgb(0 0 0 / .45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;

    &:hover { background: rgb(0 0 0 / .75); }
    &:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  }

  & .lb-close { inset-block-start: 12px; inset-inline-end: 12px; }
  & .lb-prev { inset-block-start: calc(50% - 24px); inset-inline-start: 12px; }
  & .lb-next { inset-block-start: calc(50% - 24px); inset-inline-end: 12px; }

  & .lb-count {
    position: absolute;
    inset-block-start: 24px;
    inset-inline-start: 20px;
    margin: 0;
    font-size: 14px;
  }
}

/* ---------------------------------------------------------------- contact -- */

.grey {
  background-color: var(--bg-20);
  margin-block-end: var(--margin-2);
}

.container.flex {
  padding-block: var(--margin-2) 0;

  & .image { text-align: center; }
  & .form { margin-block-end: var(--margin-2); }

  @media (width >= 641px) {
    display: grid;
    gap: 1em;
    grid-template-columns: 70% 30%;
    grid-auto-flow: column;

    & .image { align-items: flex-end; justify-content: end; }
  }
}

.twan-contact {
  width: auto;
  max-width: 70%;
}

.flex-outer {
  margin-block-end: 10px;

  & > li:not(:last-child) { margin-block-end: 10px; }

  & li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  & > li > label {
    flex: 1 0 120px;
    max-width: 220px;
  }

  & > li > label + * { flex: 1 0 220px; }

  & li input:not([type="checkbox"]),
  & li textarea {
    padding: 8px;
    border: 1px solid var(--bg-30);
  }

  & li button {
    margin-inline-start: auto;
    padding: 8px 12px;
    outline: 2px solid #fff;
    outline-offset: -4px;
    border: 2px solid #000;
    border-radius: 8px;
    background: var(--main-color);
    color: var(--bg-10);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 90%;
  }
}

/* ----------------------------------------------------------------- footer -- */

footer {
  background-color: var(--bg-30);
  overflow: hidden;
  margin-block-start: var(--margin-2);

  & .container {
    display: flex;
    flex-direction: column;
    width: min-content;

    @media (width >= 641px) {
      flex-direction: row;
      justify-content: space-evenly;
      width: auto;
    }
  }

  & li { margin-block-end: 10px; }
  & ul { margin-inline-start: var(--margin-2); }
}

.f-blok {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-block: var(--margin-1);

  & h3 {
    text-transform: uppercase;
    font-weight: bold;
    margin-block-end: 10px;
  }
}

/* ----------------------------------------------------------------- motion -- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ------------------------------------------------- Gepoetst (design 3) -- */
/* Design 1 after the Impeccable polish pass (26 Nov 2026): readable line heights, wave edges in the band's
   own blue (set above), menu on the right, 16px form fields, visible keyboard focus, brand selection colour. */

main p { line-height: 1.55; }

ul.checkmark li {
  line-height: 1.45;
  margin-block-end: .6em;
}

nav ul {
  @media (width >= 641px) { justify-content: flex-end; }
}

.flex-outer {
  /* 16px or more: iPhones don't zoom in on focus */
  & li input:not([type="checkbox"]),
  & li textarea {
    font: inherit;
    font-size: 1rem;
  }

  & li textarea + *,
  & li:has(textarea) > label {
    align-self: flex-start;
    padding-block-start: 8px;
  }

  & ::placeholder {
    color: #6b6f7a;
    opacity: 1;
  }
}

a, button, input, textarea {
  &:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 3px;
  }
}

.waves a:focus-visible { outline-color: #fff; }

::selection {
  background: var(--main-color);
  color: #fff;
}

/* Erkend dealer strip above the brands (merken()) */
.dealer { text-align: center; padding-block: 32px 8px; }
.dealer img { display: inline-block; width: min(100%, 680px); height: auto; }

/* Photo albums on Beelden (27 Nov 2026): filter buttons (main.js) above the albums; each album has its heading. */
.album-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-block: 0 24px;
  & button {
    font: inherit;
    padding: 8px 16px;
    border: 2px solid var(--main-color);
    background: #fff;
    color: var(--main-color);
    cursor: pointer;
    & span { opacity: .7; font-size: .85em; }
    &[aria-pressed="true"] { background: var(--main-color); color: #fff; }
    &:focus-visible { outline: 3px solid var(--main-color); outline-offset: 2px; }
  }
}
.album { margin-block-end: 32px; }
.album h3 { text-align: center; margin-block: 16px; }
.album-filter[hidden] { display: none; }

/* Home: one photo per Beelden album with its name (albumTiles(), 27 Nov 2026) */
.album-tiles {
  padding-block: 8px 40px;
  & h2 { text-align: center; }
  & ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* 5 albums: one row on wide screens; a short last row stays centred */
    gap: 20px;
  }
  & li { flex: 1 1 200px; max-width: 380px; }
  & a {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    &:focus-visible { outline: 3px solid var(--main-color); outline-offset: 3px; }
  }
  & img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    @media (prefers-reduced-motion: no-preference) { transition: scale .4s ease-out; }
  }
  & a:hover img, & a:focus-visible img { scale: 1.05; }
  & span {
    position: absolute;
    inset: auto 0 0;
    padding: 40px 16px 14px;
    background: linear-gradient(transparent, rgb(20 30 70 / .85));
    font-size: 1.25em;
    font-weight: bold;
    text-align: start;
  }
  & small { display: block; font-size: .7em; font-weight: normal; opacity: .85; }
}
