/* DDB Automotive Customs */

/* ── Variables ─────────────────────────────── */
:root {
  --ink:      #0a0a0a;
  --white:    #ffffff;
  --light:    #f3f3f3;
  --muted:    #777777;
  --line:     #e4e4e4;
  --line-dk:  #222222;
  --nav-h:    68px;
  --px:       clamp(24px, 5vw, 72px);
  --max:      1280px;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Type ──────────────────────────────────── */
.h-display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.88;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.light { color: rgba(255,255,255,0.55); }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background 180ms ease, color 180ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn:hover                { transform: translateY(-2px); }
.btn--solid               { background: var(--ink); color: var(--white); }
.btn--solid:hover         { background: #1a1a1a; }
.btn--white               { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--white:hover         { background: #e8e8e8; }
.btn--ghost-white         { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--ghost-white:hover   { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ── Nav ───────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: border-color 300ms ease;
}
.nav.scrolled { border-bottom-color: var(--ink); }

.nav__logo img { height: 80px; width: auto; display: block; }

.nav__links {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 201;
  pointer-events: auto;
}
.nav__links a {
  position: relative;
  padding-bottom: 3px;
  color: var(--muted);
  transition: color 200ms ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--ink);
  transition: width 240ms ease;
}
.nav__links a:hover,
.nav__links a.active { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 20px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  width: 36px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 260ms ease, opacity 260ms ease;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Home hero ─────────────────────────────── */
.hero-home {
  position: relative;
  height: 100dvh;
  min-height: calc(var(--nav-h) + 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-home__bg {
  position: absolute;
  inset: 0;
}
.hero-home__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.55) 50%,
    rgba(10,10,10,0.25) 100%
  );
}
.hero-home__content {
  position: relative;
  width: 100%;
  padding: 0 var(--px) clamp(48px, 8vh, 96px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-home__headline {
  font-size: clamp(60px, 9vw, 130px);
  color: var(--white);
  margin-top: 20px;
}
.hero-home__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 8px;
}
.hero-home__sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 320px;
  text-align: right;
}
.hero-home__ctas {
  display: flex;
  gap: 10px;
}

/* ── Page hero (inner pages) ───────────────── */
.page-header {
  margin-top: var(--nav-h);
  padding: clamp(16px, 2.5vw, 28px) var(--px) clamp(10px, 1.5vw, 18px);
  border-bottom: 1px solid var(--line);
}
.page-header__title {
  font-size: clamp(48px, 7vw, 96px);
  margin-top: 12px;
}

/* ── Page hero (image, about + contact only) ─ */
.page-hero {
  position: relative;
  height: clamp(320px, 48vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  margin-top: var(--nav-h);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.35) 55%,
    rgba(10,10,10,0.1) 100%
  );
}
.page-hero__content {
  position: relative;
  padding: clamp(32px, 5vw, 52px) var(--px);
}
.page-hero__title {
  font-size: clamp(48px, 7vw, 96px);
  color: var(--white);
  margin-top: 12px;
}

/* ── Shared layout ─────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}
.section {
  padding: clamp(64px, 10vw, 120px) var(--px);
}
.section--light { background: var(--light); }
.section--dark  { background: var(--ink); color: var(--white); }

.rule {
  height: 1px;
  background: var(--line);
}
.rule--dark {
  background: var(--line-dk);
  opacity: 0.6;
}

/* ── Home — service tiles ──────────────────── */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile {
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 220ms ease;
  cursor: pointer;
}
.tile:hover { background: var(--ink); color: var(--white); }
.tile__img {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.tile__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__body { padding: 24px 20px 28px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.tile__num  { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }
.tile:hover .tile__num { color: rgba(255,255,255,0.5); }
.tile__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.tile__desc { font-size: 13px; line-height: 1.65; color: var(--muted); flex: 1; }
.tile:hover .tile__desc { color: rgba(255,255,255,0.65); }
.tile__arrow {
  margin-top: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 200ms ease;
}
.tile:hover .tile__arrow { opacity: 1; }

/* ── Home — stats ──────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: clamp(32px, 5vw, 56px) var(--px);
  border-left: 1px solid var(--line-dk);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat:first-child { border-left: none; }
.stat__n {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(52px, 6vw, 88px);
  line-height: 1;
  color: var(--white);
}
.stat__l {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ── Home — bottom CTA ─────────────────────── */
.cta-band {
  padding: clamp(40px, 6vw, 72px) var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band__text h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
}
.cta-band__text p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}
.cta-band__actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ── Services page ─────────────────────────── */
.svc-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100dvh - var(--nav-h));
  min-height: 480px;
  scroll-margin-top: var(--nav-h);
}
.svc-section--flip .svc-section__body { order: -1; }
.svc-section__img {
  overflow: hidden;
}
.svc-section__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.svc-section:hover .svc-section__img img { transform: scale(1.04); }
.svc-section__body {
  padding: clamp(16px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  background: var(--white);
}
.svc-section--dark .svc-section__body { background: var(--ink); color: var(--white); }
.svc-section--dark .svc-section__body .eyebrow { color: rgba(255,255,255,0.45); }
.svc-section__num {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.svc-section--dark .svc-section__num { color: rgba(255,255,255,0.35); }
.svc-section__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin-bottom: 8px;
}
.svc-section__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 8px;
  max-width: 480px;
}
.svc-section--dark .svc-section__desc { color: rgba(255,255,255,0.55); }
.svc-section__list {
  list-style: none;
  margin-bottom: 14px;
}
.svc-section__list li {
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.svc-section--dark .svc-section__list li { border-bottom-color: var(--line-dk); color: rgba(255,255,255,0.75); }
.svc-section__list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ── Gallery page ──────────────────────────── */
.gallery-intro {
  padding: clamp(40px, 6vw, 72px) var(--px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
}
.gallery-intro h2 { font-size: clamp(14px, 2vw, 18px); font-weight: 500; color: var(--muted); }
.gallery-intro span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.gallery-masonry {
  columns: 4;
  column-gap: 6px;
  padding: 0 var(--px) clamp(64px, 10vw, 120px);
}
.gallery-masonry__item {
  break-inside: avoid;
  margin-bottom: 6px;
  overflow: hidden;
  display: block;
  position: relative;
}
.gallery-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms ease;
}
.gallery-masonry__item:hover img { transform: scale(1.03); }

/* ── About page ────────────────────────────── */
.about-building {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(300px, 45vw, 580px);
}
.about-building__img {
  overflow: hidden;
}
.about-building__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-building__stats {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 60px);
}
.about-stat__n {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1;
  color: var(--white);
}
.about-stat__label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}
.about-building__rule {
  height: 1px;
  background: var(--line-dk);
  margin: clamp(24px, 3vw, 40px) 0;
}
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-story__left h2 {
  font-size: clamp(48px, 6vw, 84px);
  margin-top: 20px;
}
.about-story__right { padding-top: 8px; }
.about-story__right p {
  font-size: 15px;
  line-height: 1.85;
  color: #3a3a3a;
  margin-bottom: 20px;
}

/* ── Contact page ──────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(40px, 5vw, 72px);
  margin: 20px 0 24px;
}
.contact-intro p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 400px;
}
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--ink);
  transition: opacity 200ms ease;
}
.contact-link:hover { opacity: 0.6; }
.contact-link svg { flex-shrink: 0; opacity: 0.5; }

.quote-form { display: flex; flex-direction: column; gap: 0; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.fld        { display: flex; flex-direction: column; padding-bottom: 28px; }
.fld label  {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.fld input,
.fld select,
.fld textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  border-radius: 0;
  transition: border-color 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.fld input:focus,
.fld select:focus,
.fld textarea:focus { border-bottom-color: var(--ink); }
.fld input::placeholder,
.fld textarea::placeholder { color: #bbb; }
.fld select option { color: var(--ink); }
.fld textarea { resize: none; min-height: 80px; }

.form-submit { margin-top: 8px; width: 100%; justify-content: center; padding: 18px; }

/* ── Footer ────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: clamp(56px, 8vw, 96px) var(--px) clamp(28px, 4vw, 40px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer__logo {
  height: 60px; width: auto;
  filter: invert(1) brightness(0.85);
  margin-bottom: 20px;
  display: block;
}
.footer__tagline {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.4);
  max-width: 240px;
  margin-bottom: 28px;
}
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  transition: color 200ms ease, border-color 200ms ease;
}
.footer__social a:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }
.footer__social svg { width: 15px; height: 15px; }

.footer__heading {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col li a,
.footer__col li {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 200ms ease;
  line-height: 1.5;
}
.footer__col li a:hover { color: var(--white); }

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 10px;
}
.footer__bottom a { color: rgba(255,255,255,0.4); transition: color 200ms; }
.footer__bottom a:hover { color: var(--white); }

/* ── Scroll reveal ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile__img { aspect-ratio: 4/3; }
  .svc-section { grid-template-columns: 1fr; height: auto; }
  .svc-section--flip .svc-section__body { order: 0; }
  .svc-section__img { aspect-ratio: 16/9; }
  .gallery-masonry { columns: 3; }
  .about-story { grid-template-columns: 1fr; }
  .about-building { grid-template-columns: 1fr; height: auto; }
  .about-building__img { aspect-ratio: 4/3; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav__links {
    top: var(--nav-h);
    left: auto;
    right: 0;
    height: auto;
    bottom: 0;
    width: min(280px, 80vw);
    background: #ffffff;
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 24px rgba(0,0,0,0.08);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 32px 28px;
    transform: translateX(100%);
    transition: transform 280ms ease;
  }
  .nav__links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    height: auto;
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__links.open { transform: translateX(0); }
  .nav__burger { display: flex; }
  .nav__cta .btn { display: none; }

  .hero-home__content { flex-direction: column; align-items: flex-start; }
  .hero-home__right { align-items: flex-start; }
  .hero-home__sub { text-align: left; }

  .tiles { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line-dk); }
  .stat:first-child { border-top: none; }

  .cta-band { flex-direction: column; }
  .cta-band__actions { flex-direction: column; }

  .gallery-masonry { columns: 2; }

.contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
