/* SQ Auto's voorbeeldsite. Uit ui-ux-pro-max (car broker / car dealership): hero-centric en motion-driven,
   leisteen met rood als actie, Rubik als enige letter. Geen schaduwen, geen verlopen, geen lijntjes. */

@font-face { font-family: "Rubik"; src: url("fonts/rubik-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --ground: #f8fafc;
  --ground-2: #e9eef4;
  --slate: #1e293b;
  --slate-2: #2b3a52;
  --night: #0f172a;
  --ink: #0f172a;
  --ink-2: #334155;
  --on-dark: #f8fafc;
  --on-dark-2: #cbd5e1;
  --red: #dc2626;
  --red-hover: #b91c1c;
  --red-soft: #fde2e2;
  --focus: #fbbf24;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 160px);
  --ease: cubic-bezier(.16, .84, .24, 1);
  --head-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; }
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
@media (min-width: 600px) { p { text-wrap: pretty; } }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* taste-skill-ignore: visually hidden, not a rule */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.nw { white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--red); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.demo-note { background: var(--night); color: var(--ground); font-size: 16px; line-height: 1.4; text-align: center; padding: 10px var(--gutter); }
.demo-note a { color: inherit; font-weight: 600; text-underline-offset: 3px; padding: 13px 12px; margin: 0 -12px; white-space: nowrap; }
.demo-note a:focus-visible { outline: 2px solid currentColor; outline-offset: -10px; }

/* kop */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: var(--on-dark); }
.site-header.is-stuck { box-shadow: 0 10px 28px rgba(2, 6, 23, .35); } /* taste-skill-ignore: sticky bar, open menu or focus ring */
.head-row { display: flex; align-items: center; gap: 6px; min-height: var(--head-h); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; text-decoration: none; white-space: nowrap; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.wordmark .sq { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--red); color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -0.04em; }
.nav-links { display: none; gap: 2px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; text-decoration: none; font-weight: 500; white-space: nowrap; color: var(--on-dark-2); border-radius: 999px; transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: var(--slate); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; font-size: 18px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease); }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-slate { background: var(--slate); color: #fff; }
.btn-slate:hover { background: var(--slate-2); }
.btn-light { background: var(--ground-2); color: var(--ink); }
.btn-light:hover { background: #dbe3ec; }
.btn-big { min-height: 58px; padding: 0 28px; }
.head-mail, .head-cta { min-height: 44px; padding: 0 16px; font-size: 16px; }
.head-cta { gap: 0; }
.head-mail .long, .head-cta .long { display: none; }
@media (min-width: 400px) { .head-cta .long { display: inline; } }
@media (min-width: 640px) { .head-mail .long { display: inline; } .head-mail .short { display: none; } }
@media (max-width: 639px) { .head-mail { width: 44px; padding: 0; } .head-mail .short { display: none; } }
@media (max-width: 399px) { .wordmark { font-size: 19px; } .wordmark .sq { width: 34px; height: 34px; } }

.menu { position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; background: var(--slate); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); background: var(--slate); border-radius: 18px; padding: 10px; display: grid; box-shadow: 0 20px 50px rgba(2, 6, 23, .45); } /* taste-skill-ignore: sticky bar, open menu or focus ring */
.menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; text-decoration: none; color: #fff; }
.menu-panel a:hover { background: var(--slate-2); }
@media (min-width: 1180px) { .nav-links { display: flex; } .menu { display: none; } .head-row { gap: 10px; } }

/* hero */
.hero { background: var(--night); color: var(--on-dark); padding: clamp(28px, 5vw, 72px) 0 clamp(64px, 9vw, 128px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.05rem, 5vw, 4.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.hero .lead { margin-top: 24px; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--on-dark-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-media { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 10.5; background: var(--slate); }
.hero-media .stage { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero-media .ring { position: absolute; left: 71%; top: 72.5%; width: 13%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.hero-media .ring circle { fill: none; stroke: var(--red); stroke-width: 5; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .hero-actions .btn { flex: 1 1 100%; } }

/* sectiekoppen */
.section { padding: var(--section) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4.5vw, 60px); }
.section-head h2 { font-size: clamp(1.95rem, 4.4vw, 3.6rem); }
.section-head p { font-size: clamp(1.06rem, 1.4vw, 1.25rem); max-width: 54ch; color: var(--ink-2); }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; } }
.dark { background: var(--night); color: var(--on-dark); }
.dark .section-head p { color: var(--on-dark-2); }

/* zoekopdracht */
.search-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
.search-grid > * { min-width: 0; }
@media (min-width: 980px) { .search-grid { grid-template-columns: 1.15fr .85fr; } .ticket-col { position: sticky; top: calc(var(--head-h) + 24px); } }
.q { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.q legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .types { grid-template-columns: repeat(5, 1fr); } }
/* gsm: de vijfde keuze over de volle breedte, geen halflege rij */
@media (max-width: 639px) { .type:last-child { grid-column: 1 / -1; } }
/* te smal voor vijf naast elkaar (640-699 en 980-1259 px, kolom naast het ticket): drie boven, twee breed eronder */
@media (min-width: 640px) and (max-width: 699px), (min-width: 980px) and (max-width: 1259px) { .types { grid-template-columns: repeat(6, minmax(0, 1fr)); } .type { grid-column: span 2; } .type:nth-child(n+4) { grid-column: span 3; } }
.type { position: relative; display: grid; gap: 6px; justify-items: center; padding: 14px 8px 12px; border-radius: 18px; background: var(--ground-2); cursor: pointer; text-align: center; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.type:hover { transform: translateY(-2px); }
.type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.type svg { width: 80px; height: 40px; }
.type span { font-weight: 500; }
.type:has(input:checked) { background: var(--slate); color: #fff; }
.type:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ground-2); font-weight: 500; transition: background-color .2s var(--ease), color .2s var(--ease); }
.chip input:checked + span { background: var(--slate); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.range { display: grid; gap: 10px; }
.range .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.range output { font-size: clamp(1.3rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.range input[type=range] { width: 100%; height: 44px; accent-color: var(--red); cursor: pointer; }
.range .ends { display: flex; justify-content: space-between; font-size: 16px; color: var(--ink-2); }

.ticket { background: var(--night); color: var(--on-dark); border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; position: relative; overflow: hidden; }
.ticket::before, .ticket::after { content: ""; position: absolute; width: 36px; height: 36px; border-radius: 50%; background: var(--ground); top: 52px; }
.ticket::before { left: -18px; }
.ticket::after { right: -18px; }
.ticket h3 { font-size: clamp(1.25rem, 1.8vw, 1.375rem); color: var(--on-dark-2); font-weight: 500; }
.ticket .sentence { font-size: clamp(1.3rem, 1.8vw, 1.5rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.ticket .sentence b { color: #fca5a5; font-weight: 700; }
.ticket .sentence.flash { animation: tflash .5s var(--ease); }
@keyframes tflash { from { opacity: .4; transform: translateY(4px); } }
.ticket .field label { color: var(--on-dark); }
.ticket-note { font-size: 16px; color: var(--on-dark-2); }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-weight: 600; }
.field input, .field textarea, .field select { font: inherit; color: var(--ink); background: #fff; min-height: 54px; padding: 12px 18px; border: 2px solid #b6c2d2; border-radius: 16px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(220, 38, 38, .3); } /* taste-skill-ignore: sticky bar, open menu or focus ring */
.field .err { color: #fff; background: var(--red-hover); padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 16px; justify-self: start; }
.field .hint { font-size: 16px; color: var(--ink-2); max-width: 60ch; }
.two { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: visually hidden, not a rule */
.done { background: var(--ground-2); color: var(--ink); border-radius: 22px; padding: 24px; }
.done h3 { font-size: 1.375rem; margin-bottom: 8px; color: var(--ink); }
.done a { font-weight: 600; }

/* zo zoeken wij */
.how-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.how-grid figure { margin: 0; border-radius: 28px; overflow: hidden; }
.how-grid figure img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; }
.how { display: grid; gap: 14px; }
.how li { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; padding: 20px; border-radius: 22px; background: var(--slate); }
.how svg { width: 72px; height: 72px; }
.how h3 { font-size: clamp(1.25rem, 1.8vw, 1.375rem); margin-bottom: 6px; }
.how p { color: var(--on-dark-2); }
@media (min-width: 900px) { .how-grid { grid-template-columns: .9fr 1.1fr; } }

/* ook */
.also { display: grid; gap: clamp(40px, 6vw, 88px); }
.also-row { display: grid; gap: clamp(22px, 4vw, 64px); align-items: center; }
.also-row figure { margin: 0; border-radius: 28px; overflow: hidden; }
.also-row figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.also-row h2, .also-row h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 14px; }
.also-row p { max-width: 50ch; color: var(--ink-2); }
.also-row .ticks { margin: 18px 0 24px; display: grid; gap: 10px; }
.also-row .ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.also-row .ticks li::before { content: ""; width: 12px; height: 12px; margin: 9px 0 0 4px; border-radius: 50%; background: var(--red); }
@media (min-width: 900px) { .also-row { grid-template-columns: 1.05fr .95fr; } .also-row.flip figure { order: 2; } .also-row.flip { grid-template-columns: .95fr 1.05fr; } }

/* over */
.about { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.about .big { font-size: clamp(1.3rem, 1.8vw, 1.5rem); line-height: 1.4; font-weight: 500; max-width: 36ch; }
.about-facts { display: grid; gap: 12px; }
.about-facts li { display: flex; justify-content: space-between; gap: 18px; padding: 16px 20px; border-radius: 16px; background: var(--slate); }
.about-facts li span { color: var(--on-dark-2); }
.about-facts li strong { text-align: right; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr .9fr; } }

/* vragen */
.faq-grid { display: grid; gap: clamp(28px, 4vw, 64px); }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--ground-2); border-radius: 20px; transition: background-color .2s var(--ease); }
.faq details[open] { background: var(--red-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 62px; padding: 14px 22px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; max-width: 62ch; }
.faq details a { font-weight: 600; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; } }

/* contactband */
.contact-grid { display: grid; gap: clamp(32px, 4vw, 64px); }
.big-mail { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; text-decoration: none; color: #fff; overflow-wrap: anywhere; }
.big-mail:hover { color: #fca5a5; }
.facts { display: grid; gap: 20px; color: var(--on-dark-2); }
.facts > li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.facts svg { width: 28px; height: 28px; color: var(--red); margin-top: 2px; }
.facts strong { display: block; color: #fff; }
.area { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.area li { background: var(--slate); padding: 8px 14px; border-radius: 999px; font-size: 16px; white-space: nowrap; color: #fff; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* subpagina's */
.page-hero { background: var(--night); color: var(--on-dark); padding: clamp(28px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(2.05rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.035em; }
.page-hero .lead { margin-top: 22px; font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 52ch; color: var(--on-dark-2); }
.page-hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: end; }
.page-hero-grid figure { margin: 0; border-radius: 28px; overflow: hidden; }
.page-hero-grid figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1fr 1fr; } }
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .picks { grid-template-columns: repeat(4, 1fr); } }
/* naast de zijkaart is de kolom te smal voor vier keuzes: twee op twee */
@media (min-width: 980px) and (max-width: 1099px) { .picks { grid-template-columns: repeat(2, 1fr); } .pick img { aspect-ratio: 16 / 9; } }
.pick { position: relative; display: grid; border-radius: 20px; overflow: hidden; background: var(--ground-2); cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s var(--ease); }
.pick:hover img { transform: scale(1.04); }
.pick span { padding: 12px 14px; font-weight: 600; min-height: 52px; display: flex; align-items: center; }
.pick:has(input:checked) span { background: var(--red); color: #fff; }
.pick:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.side-card { background: var(--night); color: var(--on-dark-2); border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; overflow: hidden; }
.side-card .side-img { margin: calc(-1 * clamp(24px, 3vw, 36px)) calc(-1 * clamp(24px, 3vw, 36px)) 4px; width: calc(100% + 2 * clamp(24px, 3vw, 36px)); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }
.side-card h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.side-card strong { color: #fff; }

/* voet */
.site-footer { background: var(--ground-2); padding: clamp(56px, 8vw, 112px) 0 32px; }
.foot-name { font-weight: 800; font-size: clamp(3.2rem, 15vw, 12.5rem); letter-spacing: -0.06em; line-height: .85; }
.foot-name span { color: var(--red); }
.foot-grid { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 56px); }
.foot-grid h2 { font-size: 18px; letter-spacing: 0; margin-bottom: 8px; }
.foot-grid p, .foot-grid address { font-style: normal; font-size: 16px; line-height: 1.65; }
.foot-grid a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.foot-credits { margin-top: 36px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }

/* beweging */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .hero-media .stage { animation: drift 20s ease-in-out infinite alternate; transform-origin: 71% 73%; }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.12); } }
  .hero-media .ring circle { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.4s var(--ease) .9s forwards, pulse 2.8s ease-in-out 2.4s infinite; transform-origin: 50% 50%; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pulse { 50% { opacity: .55; } }
  .js .hero h1 .ln { display: inline-block; opacity: 0; transform: translateY(.3em); animation: rise .8s var(--ease) forwards; animation-delay: var(--d, 0ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

[hidden] { display: none !important; }
.menu-panel a { white-space: nowrap; }
