/* ==========================================================================
   Detailing by DBZ — design tokens
   Palette: near-black ink + charcoal, one disciplined cobalt-blue accent,
   warm paper for light sections. Space Grotesk (display) / IBM Plex Sans (body).
   ========================================================================== */

:root {
  --ink: #0A0B0D;
  --charcoal: #15171B;
  --charcoal-2: #1D2026;
  --line-dark: rgba(255, 255, 255, 0.10);

  --blue: #2568EF;
  --blue-bright: #5B93FF;
  --blue-dim: #163A82;
  --blue-glow: rgba(37, 104, 239, 0.35);

  --white: #F7F8FA;
  --ash-dark: #9AA0AC;

  --paper: #F3F1EC;
  --paper-2: #E9E6DE;
  --text-dark: #14161A;
  --ash: #5B6068;
  --line-light: rgba(20, 22, 26, 0.10);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

/* Grid and flex children default to min-width:auto, so anything with a large
   intrinsic width (form controls, long unbroken strings) can refuse to shrink
   and push the page wider than the screen. Let them shrink instead. */
.pricing-grid > *,
.ba-set > *,
.portfolio-grid > *,
.usp-grid > *,
.about-grid > *,
.contact-grid > *,
.trust-bar > * { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  min-height: 44px;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px -8px var(--blue-glow);
}
.btn-primary:hover { background: #3577F5; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 11, 13, 0.8);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 0.65rem; min-height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.dbz-logo {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-dark);
}
.dbz-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.dbz-logo--sm { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.main-nav { display: none; gap: 2rem; }
.main-nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ash-dark);
  transition: color 0.2s var(--ease);
}
.main-nav a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-actions .btn { white-space: nowrap; }

/* On narrow phones the wordmark tagline collides with the CTA. The logo itself
   already reads "Detailing by DBZ Zeno", so the tagline is redundant there. */
@media (max-width: 419px) {
  .brand-sub { display: none; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  margin: 0 auto;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 0;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: max-height 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mobile-nav.is-open {
  border-bottom-color: var(--line-dark);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.mobile-nav.is-open { max-height: 420px; }
.mobile-nav a {
  padding: 1rem 1.5rem;
  color: var(--white);
  font-size: 1rem;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav .btn { margin: 1rem 1.5rem 1.25rem; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding-top: 7.5rem;
  padding-bottom: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 55%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10,11,13,0.96) 0%, rgba(10,11,13,0.88) 32%, rgba(10,11,13,0.55) 58%, rgba(10,11,13,0.35) 100%),
    linear-gradient(0deg, rgba(10,11,13,0.9) 0%, rgba(10,11,13,0) 30%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  padding-bottom: 9rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ash-dark);
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1.5rem;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3DDC84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.2);
}

.hero-copy h1 {
  /* Sized so each of the two lines still fits on a ~375px phone rather than
     breaking into four ragged lines. */
  font-size: clamp(2rem, 8.4vw, 4rem);
  line-height: 1.02;
  color: var(--white);
  max-width: 14ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ash-dark);
  max-width: 40ch;
}

.hero-cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--ash-dark);
}
.hero-rating .stars { color: var(--blue-bright); letter-spacing: 1px; }

.trust-bar {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  background: var(--paper);
  color: var(--text-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1.5rem;
  transform: translateY(2.5rem);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.35);
}
.trust-bar li { display: flex; align-items: flex-start; gap: 0.85rem; }
.trust-bar li svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.trust-bar li div { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-bar li strong { font-size: 0.95rem; font-weight: 600; }
.trust-bar li span { font-size: 0.825rem; color: var(--ash); }

/* ==========================================================================
   Section shared styles
   ========================================================================== */

section { padding: 6.5rem 0 5rem; }
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.85rem;
}
.section-eyebrow--light { color: var(--blue-bright); }
.section-lede {
  margin-top: 1rem;
  color: var(--ash);
  max-width: 52ch;
  font-size: 1.05rem;
}
.section-lede--light { color: var(--ash-dark); }

section > .wrap > h2, .about-copy h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  line-height: 1.08;
  max-width: 18ch;
}

/* ==========================================================================
   Services / pricing
   ========================================================================== */

.services { padding-top: 8rem; }

.pricing-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(20,22,26,0.25); }

.price-card--featured {
  background: var(--ink);
  color: var(--white);
  border-color: var(--blue-dim);
  box-shadow: 0 24px 48px -24px var(--blue-glow);
}
.price-card--featured .price-desc { color: var(--ash-dark); }
.price-card--featured .link-arrow { color: var(--blue-bright); }

.price-badge {
  position: absolute;
  top: -13px;
  left: 2rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.price-card-head { display: flex; align-items: center; gap: 0.85rem; }
.price-card-head svg { color: var(--blue); flex-shrink: 0; }
.price-card--featured .price-card-head svg { color: var(--blue-bright); }
.price-card-head h3 { font-size: 1.05rem; line-height: 1.3; }

.price { font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; }

.price-desc { font-size: 0.925rem; color: var(--ash); line-height: 1.5; flex: 1; }

.pricing-callout {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.pricing-callout svg { color: var(--blue); flex-shrink: 0; }
.pricing-callout p { font-size: 0.925rem; color: var(--ash); }
.pricing-callout a { color: var(--text-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.link-arrow {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px; /* comfortable tap target on phones */
  transition: gap 0.2s var(--ease);
}
.link-arrow:hover { gap: 0.6rem; }

/* ==========================================================================
   About
   ========================================================================== */

.about { background: var(--paper-2); }
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.about-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal-2);
  box-shadow: 0 24px 48px -32px rgba(20, 22, 26, 0.5);
}
.about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-copy p { margin-top: 1.25rem; color: var(--ash); font-size: 1.02rem; max-width: 56ch; }
.about-signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
}
.about-signature span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.about-signature small { color: var(--ash); font-size: 0.85rem; margin-top: 0.15rem; }

/* ==========================================================================
   Portfolio
   ========================================================================== */

/* --- Voor/na cases --------------------------------------------------- */

.ba-set {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.ba-case {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Voor and na stay side by side at every width — the comparison is the point. */
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line-light);
}
.ba-half { position: relative; }
.ba-half img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ba-tag {
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
}
.ba-tag--voor { background: rgba(10, 11, 13, 0.82); color: var(--white); }
.ba-tag--na { background: var(--blue); color: var(--white); }

.ba-case figcaption {
  padding: 1.1rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ba-case figcaption strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
}
.ba-case figcaption span { font-size: 0.9rem; color: var(--ash); line-height: 1.5; }

/* --- Recent werk gallery --------------------------------------------- */

.portfolio-subhead {
  margin-top: 3.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.portfolio-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.portfolio-tile {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-2);
}
.portfolio-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.portfolio-tile:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .portfolio-tile:hover img { transform: none; }
}

/* ==========================================================================
   USP
   ========================================================================== */

.usp { background: var(--ink); color: var(--white); }
.usp-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(2, 1fr);
}
.usp-item svg { color: var(--blue-bright); margin-bottom: 1rem; }
.usp-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.usp-item p { color: var(--ash-dark); font-size: 0.9rem; line-height: 1.55; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--ink); color: var(--white); }
.contact-grid {
  display: grid;
  gap: 3rem;
}
.contact-form { min-width: 0; }
.contact-methods { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact-method:hover { border-color: var(--blue); transform: translateX(3px); }
.contact-method svg { color: var(--blue-bright); flex-shrink: 0; }

.contact-form {
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.form-row label { font-size: 0.85rem; font-weight: 500; color: var(--ash-dark); }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-height: 44px;
  transition: border-color 0.2s var(--ease);
  /* Form controls carry an intrinsic minimum width (a select is as wide as its
     longest option). Without these they refuse to shrink and push the whole
     page wider than a phone screen. */
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--blue); outline: none; }
.form-status {
  font-size: 0.875rem;
  color: var(--blue-bright);
  min-height: 1.2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: var(--ash-dark); border-top: 1px solid var(--line-dark); }
.footer-inner {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand--footer .brand-name { color: var(--white); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--ash-dark);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-social a:hover { color: var(--blue-bright); border-color: var(--blue); }
.footer-copy { font-size: 0.825rem; width: 100%; order: 3; text-align: center; }

/* ==========================================================================
   Reveal-on-scroll (subtle, respects reduced motion)
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-badge { left: 2rem; }
}

@media (min-width: 768px) {
  .wrap { padding: 0 2.5rem; }
  .hero-cta-row { gap: 2rem; }
  .about-grid { grid-template-columns: 0.85fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar { grid-template-columns: repeat(3, 1fr); padding: 2rem 2.5rem; }
  .ba-set { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .hero-inner { padding-bottom: 11rem; }
  .hero-copy { max-width: 640px; }
  .price-card--featured { transform: translateY(-1rem); }
  .usp-grid { grid-template-columns: repeat(4, 1fr); }
  /* 6 photos stay two clean rows of three */
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
  .hero-copy h1 { font-size: 4.25rem; }
}
