/* Autobedrijf Baris – site styles */
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --staal: #26313c;      /* dark steel: header, footer, headings */
  --staal-2: #3a4754;
  --beton: #e8eaeb;      /* cool concrete: page bands */
  --wit: #ffffff;
  --tekst: #1d242b;
  --grijs: #5a6570;
  --oranje: #e8590c;     /* signal orange, continuity with the old site's #ff6600 */
  --oranje-donker: #b84408;
  --lijn: #cfd4d8;
  --radius: 4px;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; font-family: "Barlow", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--tekst); background: var(--wit); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oranje-donker); text-underline-offset: 0.15em; }
a:hover { color: var(--staal); }
:focus-visible { outline: 3px solid var(--oranje); outline-offset: 2px; }

h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; line-height: 1.1; color: var(--staal); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--oranje); color: var(--wit); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header */
.site-header { background: var(--staal); color: var(--wit); border-bottom: 4px solid var(--oranje); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--wit); text-decoration: none; }
.brand:hover, .brand:focus-visible { color: var(--oranje); }
.brand img { width: 56px; height: auto; background: var(--wit); border-radius: var(--radius); padding: 3px; }
.brand-name { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 0.25rem; }
.nav li { position: relative; }
.nav a { display: block; color: var(--wit); text-decoration: none; padding: 0.6rem 0.8rem; font-weight: 600; border-radius: var(--radius); }
.nav a[aria-current="page"], .nav .is-active > a { background: var(--staal-2); color: var(--wit); }
.nav a:hover, .nav a:focus-visible, .nav .sub a:hover { background: var(--oranje); color: var(--wit); }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 16rem; background: var(--staal); padding: 0.4rem; border-top: 3px solid var(--oranje); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { font-weight: 400; }
.nav-toggle { display: none; background: none; border: 2px solid var(--wit); color: var(--wit); font: inherit; font-weight: 600; padding: 0.35rem 0.9rem; border-radius: var(--radius); cursor: pointer; }

@media (max-width: 52rem) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--staal); padding: 0.5rem 1.25rem 1rem; border-bottom: 4px solid var(--oranje); }
  .nav.is-open { display: block; max-height: calc(100vh - 4.75rem); overflow-y: auto; }
  .nav > ul { flex-direction: column; }
  .nav .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
}

/* Buttons */
.btn { display: inline-block; background: var(--oranje); color: var(--wit); font-weight: 600; text-decoration: none; padding: 0.8rem 1.4rem; border-radius: var(--radius); border: 2px solid var(--oranje); }
.btn:hover { background: var(--oranje-donker); border-color: var(--oranje-donker); color: var(--wit); }
.btn-ghost { background: transparent; color: var(--staal); border-color: var(--staal); }
.btn-ghost:hover { background: var(--staal); border-color: var(--staal); color: var(--wit); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.more { font-weight: 600; }

/* Hero */
.hero { background: var(--beton); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-place { font-weight: 600; color: var(--grijs); margin-bottom: 0.75rem; }
.hero h1 { max-width: 14ch; }
.lead { font-size: 1.2rem; max-width: 38em; color: var(--staal-2); }
.page-head .lead a { font-weight: 600; }

/* The parts tag: opening hours shaped like a stock tag hung on a part */
.tag { position: relative; background: var(--wit); border: 2px solid var(--staal); border-radius: 6px 6px 6px 6px; padding: 2.25rem 1.5rem 1.5rem; transform: rotate(1.5deg); box-shadow: 6px 6px 0 var(--staal); }
.tag-hole { position: absolute; top: 0.75rem; left: 50%; width: 0.9rem; height: 0.9rem; margin-left: -0.45rem; border-radius: 50%; border: 2px solid var(--staal); background: var(--beton); }
.tag-status { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--staal); border-bottom: 2px dashed var(--lijn); padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
.tag-status.is-open { color: #1d7a3a; }
.tag-status.is-closed { color: var(--oranje-donker); }
.tag-call { margin: 1rem 0 0; padding-top: 0.75rem; border-top: 2px dashed var(--lijn); }
.tag-call a { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--staal); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) { .tag { transition: transform .2s; } .tag:hover { transform: rotate(0); } }

.hours { margin: 0; }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; }
.hours dt { color: var(--grijs); }
.hours dd { margin: 0; font-weight: 600; white-space: nowrap; }
.hours-row.is-today dt, .hours-row.is-today dd { color: var(--tekst); font-weight: 600; }
.hours-row.is-today { box-shadow: inset 3px 0 0 var(--oranje); padding-left: 0.5rem; }

/* Certification band */
.band { background: var(--staal); color: var(--wit); padding: 1.5rem 0; }
.marks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem 2rem; }
.marks li { display: flex; flex-direction: column; }
.marks strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.75rem; color: var(--wit); line-height: 1.1; }
.marks span { color: #c3cbd2; font-size: 0.95rem; }

/* Content */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { max-width: 40em; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.6rem; max-width: 40em; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.9rem; height: 0.5rem; border-left: 3px solid var(--oranje); border-bottom: 3px solid var(--oranje); transform: rotate(-45deg); }
.photo { margin: 0; }
.photo img { border-radius: var(--radius); border: 1px solid var(--lijn); }
.photo figcaption { color: var(--grijs); font-size: 0.95rem; margin-top: 0.5rem; }
.stack { display: grid; gap: 1.5rem; }

.page-head { background: var(--beton); padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--lijn); }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); margin: 0 0 0.4em; }
.page-head .lead { margin: 0; }
.crumb { margin: 0 0 0.4rem; font-weight: 600; }
.crumb a { color: var(--grijs); text-decoration: none; }
.crumb a::before { content: "‹ "; }

.card { background: var(--wit); border: 1px solid var(--lijn); border-top: 4px solid var(--staal); border-radius: var(--radius); padding: 1.5rem; }
.card h2 { font-size: 1.5rem; }
.card.narrow { max-width: 28rem; }
address { font-style: normal; margin-bottom: 1rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.contact-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-list { margin: 0; }
.contact-list div { padding: 0.3rem 0; border-bottom: 1px solid var(--beton); }
.contact-list dt { color: var(--grijs); font-size: 0.9rem; }
.contact-list dd { margin: 0; font-weight: 600; }

/* Embedded stock systems */
.embed-section { padding: 2rem 0 4rem; }
.embed-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.embed-bar p { margin: 0; color: var(--grijs); max-width: 40em; }
.embed { border: 1px solid var(--lijn); border-radius: var(--radius); overflow: hidden; background: var(--beton); }
.embed iframe { display: block; width: 100%; height: 900px; height: min(900px, 85vh); min-height: 600px; border: 0; }

.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.video { aspect-ratio: 16 / 9; background: var(--staal); border-radius: var(--radius); overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; }
.social { margin-top: 2rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 0.3rem; }

/* Footer */
.site-footer { background: var(--staal); color: #d9dee2; padding: 3rem 0 0; margin-top: 2rem; }
.site-footer h2 { color: var(--wit); font-size: 1.35rem; }
.site-footer a { color: var(--wit); }
.site-footer .hours dt { color: #b6bfc7; }
.site-footer .hours-row.is-today dt, .site-footer .hours-row.is-today dd { color: var(--wit); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-base { border-top: 1px solid var(--staal-2); margin-top: 2.5rem; padding-top: 1rem; padding-bottom: 1rem; font-size: 0.9rem; color: #b6bfc7; }
.footer-base p { margin: 0; }

@media (max-width: 52rem) {
  .hero-grid, .split, .contact-grid, .contact-grid.two, .footer-grid { grid-template-columns: 1fr; }
  .tag { transform: none; max-width: 24rem; }
}

/* Photo gallery (helicopter page) */
.gallery-section { background: var(--beton); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--wit); }
.credit { font-size: 0.85rem; }
/* Last menu item: open submenu to the left so it stays on screen */
.nav > ul > li:last-child > .sub { left: auto; right: 0; }
@media (max-width: 52rem) { .nav > ul > li:last-child > .sub { right: auto; } }
