/* Philippaerts Car Detailing: donker, glanzend, licht op de lak. Tokens eerst. */

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

:root {
  --ground: #0d0f12;
  --surface: #171a1f;
  --surface-2: #23272e;
  --ink: #f1f2f4;
  --ink-2: #b4bac3;
  --accent: #f5c400;
  --accent-hover: #ffd633;
  --on-accent: #0d0f12;
  --light: #eef0f2;
  --light-2: #dfe2e6;
  --on-light: #0d0f12;
  --on-light-2: #474d56;
  --focus: #f5c400;

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: 1.125rem;
  --step-1: clamp(1.3rem, 1.15rem + 0.6vw, 1.625rem);
  --step-2: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  --step-3: clamp(2.4rem, 1.5rem + 4.6vw, 5.5rem);
  --small: 1rem;

  --gutter: clamp(1rem, 0.6rem + 2.2vw, 3rem);
  --wrap: 82rem;
  --section: clamp(5rem, 3rem + 8vw, 10.5rem);
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: var(--step-0); font-weight: 400; line-height: 1.55; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { max-width: 64ch; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 0.75rem 1rem; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 0.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.display, .head, .title { font-family: var(--font); text-wrap: balance; }
.display { font-size: var(--step-3); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.head { font-size: var(--step-2); font-weight: 500; line-height: 1.04; letter-spacing: -0.025em; }
.title { font-size: var(--step-1); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: var(--step-1); line-height: 1.45; font-weight: 300; max-width: 34ch; }
.muted { color: var(--ink-2); }
p + p { margin-top: 1em; }
.nobr { white-space: nowrap; }

/* Buttons: square, flat */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.375rem; padding: 0.8rem 1.5rem; border: 0; border-radius: 0; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 1.125rem; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.button svg { width: 1.25rem; height: 1.25rem; flex: none; }
.button--ghost { background: var(--surface-2); color: var(--ink); }
.button--dark { background: var(--on-light); color: var(--light); }
@media (hover: hover) {
  .button:hover { background: var(--accent-hover); transform: translateY(-2px); }
  .button--ghost:hover { background: #2f343c; }
  .button--dark:hover { background: #262a31; }
}
.button:active { transform: scale(0.98); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--accent); transition: color 160ms ease; }
@media (hover: hover) { .text-link:hover { color: var(--accent); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); }
.header-bar { display: flex; align-items: center; gap: 0.375rem; min-height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; justify-content: center; min-height: 2.75rem; margin-right: auto; text-decoration: none; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.125rem; letter-spacing: 0; }
.brand-sub { font-weight: 400; font-size: 1rem; color: var(--ink-2); margin-top: 0.15rem; }
.brand-place { display: none; }
.main-nav { display: none; }
.nav-list { display: flex; gap: 0.25rem; }
.nav-list a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.85rem; text-decoration: none; font-weight: 400; transition: color 160ms ease; }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
@media (hover: hover) { .nav-list a:hover { color: var(--accent); } }
.header-actions { display: flex; align-items: center; gap: 0.375rem; }
.header-tel, .header-cta, .menu-toggle { min-height: 2.75rem; min-width: 2.75rem; }
.header-tel { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0 0.75rem; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 600; transition: background-color 160ms ease; }
.header-tel svg { width: 1.15rem; height: 1.15rem; }
.header-tel .tel-num { display: none; }
.header-cta { display: inline-flex; align-items: center; padding: 0 0.75rem; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; transition: background-color 160ms ease; }
@media (hover: hover) { .header-tel:hover { background: #2f343c; } .header-cta:hover { background: var(--accent-hover); } }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; cursor: pointer; }
.menu-toggle svg { width: 1.6rem; height: 1.6rem; }
.menu-toggle [hidden] { display: none; }
.mobile-nav { background: var(--ground); padding-bottom: 1rem; }
.mobile-nav ul { display: grid; gap: 0.25rem; }
.mobile-nav a { display: flex; align-items: center; min-height: 3.25rem; font-weight: 500; font-size: var(--step-1); text-decoration: none; }
.mobile-nav[hidden] { display: none; }
@media (min-width: 30rem) { .brand-name { font-size: var(--step-1); } .brand-place { display: inline; } }
@media (min-width: 64rem) {
  :root { --header-h: 5rem; }
  .main-nav { display: block; margin-right: 1rem; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .header-tel .tel-num { display: inline; }
}

/* Grid */
.section { padding-top: var(--section); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); row-gap: 2rem; }
.grid > * { grid-column: 1 / -1; min-width: 0; }
figure figcaption { margin-top: 0.6rem; font-size: var(--small); color: var(--ink-2); }

/* Hero: copy on the paint, photo bleeds to the right edge */
.hero { padding-top: clamp(1rem, 3vw, 3rem); }
.hero-copy { display: grid; gap: 1.25rem; align-content: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }
.hero-actions .button { width: 100%; }
.hero-meta { color: var(--ink-2); }
.hero-media { margin-inline: calc(var(--gutter) * -1); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; }
.hero-media figcaption { padding-inline: var(--gutter); }
@media (min-width: 30rem) { .hero-actions .button { width: auto; } }
@media (min-width: 60rem) {
  .hero .grid { align-items: center; }
  .hero-copy { grid-column: 1 / span 6; }
  .hero-media { grid-column: 7 / -1; margin-inline: 0 calc(var(--gutter) * -1); }
  .hero-media img { aspect-ratio: 5 / 4; }
  .hero-media figcaption { padding-inline: 0; }
}
@media (min-width: 82rem) { .hero-media { margin-right: calc((100vw - var(--wrap)) / -2 - var(--gutter)); } }

/* Live thing: the paint panel */
.panel-copy { display: grid; gap: 1.1rem; align-content: start; }
.panel-tool { display: grid; gap: 1rem; }
.panel-frame { position: relative; background: #07080a; }
.panel-frame canvas, .panel-frame img { width: 100%; aspect-ratio: 16 / 10; touch-action: pan-y; cursor: ew-resize; }
.panel-tag { position: absolute; top: 0.75rem; padding: 0.3rem 0.65rem; background: rgba(13, 15, 18, 0.78); color: var(--ink); font-weight: 600; font-size: 1rem; pointer-events: none; }
.panel-tag--before { left: 0.75rem; }
.panel-tag--after { right: 0.75rem; }
.panel-control { display: grid; gap: 0.4rem; }
.panel-control label { font-weight: 600; }
.panel-control input[type="range"] { width: 100%; height: 2.75rem; accent-color: var(--accent); cursor: pointer; }
.panel-out { color: var(--ink-2); }
@media (min-width: 60rem) {
  .panel-copy { grid-column: 1 / span 4; }
  .panel-tool { grid-column: 5 / -1; }
}

/* Light field: services and prices */
.light { background: var(--light); color: var(--on-light); margin-top: var(--section); padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); }
.light .muted, .light figcaption { color: var(--on-light-2); }
.prices-head { display: grid; gap: 1rem; align-content: start; }
.prices-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.prices-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.price-list { display: grid; gap: 0.5rem; }
.price { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1.25rem; padding: 1.1rem 1.15rem; background: var(--light-2); align-items: baseline; }
.price h3 { grid-column: 1; }
.price .amount { grid-column: 2; grid-row: 1; font-weight: 600; font-size: var(--step-1); white-space: nowrap; }
.price p { grid-column: 1 / -1; color: var(--on-light-2); }
.price-note { color: var(--on-light-2); }
.prices-photos { margin-top: 1rem; }
@media (min-width: 60rem) {
  .prices-head { grid-column: 1 / span 5; }
  .price-list { grid-column: 7 / -1; }
}
.js .paint-fallback { display: none; }
html:not(.js) #paint, html:not(.js) .panel-control { display: none; }

/* Full-bleed picture rest */
.bleed { margin-top: var(--section); }
.bleed img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 80vh; }
.bleed-text { display: grid; gap: 1rem; padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.statement { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.25; font-weight: 300; max-width: 30ch; letter-spacing: -0.01em; }
@media (min-width: 60rem) { .bleed-text { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 2.5rem; } }

/* Sale + extras */
.sale { display: grid; gap: 1.25rem; align-content: start; }
.extras { display: grid; gap: 1.5rem; align-content: start; }
.extra-list { display: grid; gap: 1.5rem; }
.extra { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; }
.extra svg { width: 2.75rem; height: 2.75rem; color: var(--accent); }
.extra h3 { margin-bottom: 0.25rem; }
@media (min-width: 60rem) { .sale { grid-column: 1 / span 5; } .extras { grid-column: 7 / -1; } }

/* Process in Lier */
.process-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps { display: grid; gap: 1.5rem; align-content: start; }
.steps li { display: grid; gap: 0.3rem; }
@media (min-width: 60rem) { .process-copy { grid-column: 1 / span 6; } .process-photo { grid-column: 8 / -1; } }
.process-copy { display: grid; gap: 1.5rem; align-content: start; }

/* FAQ */
.faq-head { display: grid; gap: 1rem; align-content: start; }
.faq-list { display: grid; gap: 0.5rem; }
.faq-list details { background: var(--surface); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding: 0.9rem 1.15rem; cursor: pointer; list-style: none; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--accent); transition: transform 300ms var(--ease-out); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details > div { padding: 0 1.15rem 1.15rem; color: var(--ink-2); }
@media (min-width: 60rem) { .faq-head { grid-column: 1 / span 4; } .faq-list { grid-column: 6 / -1; } }

/* Contact close */
.close { display: grid; gap: 2rem; margin-top: 1.5rem; }
.close-tel { display: inline-block; padding-block: 0.4rem; font-weight: 500; font-size: var(--step-3); line-height: 1; letter-spacing: -0.035em; text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) { .close-tel:hover { color: var(--accent); } }
.close-list { display: grid; gap: 1rem; }
.close-list dt { font-weight: 600; }
.close-list dd { color: var(--ink-2); }
.close-list dd a { color: var(--ink); font-weight: 500; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 29.9rem) { .page-actions .button { width: 100%; } }
@media (min-width: 48rem) { .close { grid-template-columns: 7fr 5fr; align-items: end; } }

/* Subpages */
.page-head { padding-top: clamp(1.5rem, 4vw, 4rem); }
.page-head-copy { display: grid; gap: 1.25rem; align-content: start; }
.page-head-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 60rem) { .page-head .grid { align-items: end; } .page-head-copy { grid-column: 1 / span 6; } .page-head-media { grid-column: 8 / -1; } }
.svc { display: grid; gap: 1rem; align-content: start; }
.svc-side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.checklist { display: grid; gap: 0.7rem; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.6rem; height: 0.6rem; background: var(--accent); }
.light .checklist li::before { background: var(--on-light); }
.svc-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 600; }
@media (min-width: 60rem) { .svc { grid-column: 1 / span 6; } .svc-side { grid-column: 8 / -1; } .svc--flip .svc { grid-column: 7 / -1; grid-row: 1; } .svc--flip .svc-side { grid-column: 1 / span 5; grid-row: 1; } }

/* Forms */
.contact-grid { display: grid; gap: 3rem; }
.contact-direct { display: grid; gap: 1.25rem; align-content: start; }
.form { display: grid; gap: 1.1rem; }
.field-group { display: grid; gap: 0.4rem; }
.field-group label, .field-group legend { font-weight: 600; }
.hint { color: var(--ink-2); font-weight: 400; }
.form input:not([type="radio"]), .form select, .form textarea { width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem; background: var(--surface); border: 2px solid #4a515c; border-radius: 0; color: var(--ink); font-size: 1.125rem; }
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.choice-row { display: grid; gap: 0.5rem; }
.choice { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.4rem 0.9rem; background: var(--surface); cursor: pointer; }
.choice input { width: 1.35rem; height: 1.35rem; accent-color: var(--accent); margin: 0; flex: none; }
.two-col { display: grid; gap: 1.1rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore: honeypot, visually hidden */
.form-status { padding: 1rem 1.15rem; background: var(--accent); color: var(--on-accent); }
.form-status[hidden] { display: none; }
.form-status a { color: inherit; font-weight: 600; }
@media (min-width: 40rem) { .choice-row, .two-col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 59.9rem) { .contact-grid .form { order: -1; } }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 5fr 7fr; column-gap: clamp(2rem, 5vw, 5rem); } }

/* Footer */
.site-footer { background: var(--surface); color: var(--ink); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; margin-top: var(--section); }
.footer-word { font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.9; font-size: clamp(2.2rem, 11.5vw, 10.5rem); }
.footer-word span { display: block; font-weight: 300; text-transform: none; letter-spacing: -0.01em; font-size: var(--step-1); color: var(--accent); margin-top: 0.6rem; }
.footer-cols { display: grid; gap: 2rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.footer-cols h2 { font-weight: 600; font-size: var(--step-0); margin-bottom: 0.5rem; }
.footer-cols li + li { margin-top: 0.25rem; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline; text-decoration-color: #5b626d; text-underline-offset: 0.2em; transition: color 160ms ease; }
@media (hover: hover) { .footer-cols a:hover { color: var(--accent); } }
.footer-legal { margin-top: 2.5rem; color: var(--ink-2); font-size: var(--small); display: grid; gap: 0.5rem; }
.footer-legal a { color: inherit; }
@media (min-width: 48rem) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }

/* Motion */
.js [data-rise] { opacity: 0; transform: translateY(22px); }
.js [data-rise].is-in { opacity: 1; transform: none; transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.hero-media { position: relative; overflow: hidden; }
.js .hero-media img { transform: scale(1.04); transition: transform 1.8s var(--ease-out); }
.js .hero-media.is-in img { transform: none; }
.bleed img { transform-origin: 50% 50%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .js .hero-media img { transform: none; }
}

.where-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: start; }
.where-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.svc-side.where-pair img { aspect-ratio: 4 / 5; }
.contact-direct figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
