/* From Scratch DJ Repair — shared stylesheet */

:root {
  --black: #0a0a0b;
  --black-soft: #151517;
  --black-card: #1c1c1f;
  --line: #2b2b2e;
  --white: #f4f3ef;
  --white-dim: #b9b8b3;
  --grey: #939598;
  --grey-dim: #6d6f72;
  --red: #ed1c24;
  --red-dark: #b8151b;

  --font-display: "Anton", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 var(--space-3);
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 var(--space-3); color: var(--white-dim); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  min-height: 44px;
  touch-action: manipulation;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(237,28,36,0.55);
}
.btn-primary:active { transform: scale(0.97); box-shadow: none; }

.btn-outline {
  background: transparent;
  border-color: var(--grey);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline:active { transform: scale(0.97); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--space-3);
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  border-color: var(--red);
}

.nav-links-cta { display: none; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 5;
}

.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--black);
    padding: var(--space-2) var(--space-3);
    transform: translateX(100%);
    transition: transform 220ms ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 18px 4px; font-size: 1.05rem; }
  .nav-links-cta { display: block; border-bottom: none; margin-top: var(--space-2); }
  .nav-links-cta a { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-7);
  background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.88) 60%, var(--black) 100%), var(--hero-img, none) center 30% / cover no-repeat;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -180px;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(237,28,36,0.10) 0px, rgba(237,28,36,0.10) 1px,
      transparent 1px, transparent 14px);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-inner { max-width: 760px; }

@media (max-width: 860px) {
  .hero::before { width: 420px; height: 420px; right: -160px; }
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--white-dim);
  max-width: 620px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.hero-stat {
  flex: 1 1 160px;
  max-width: 260px;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.4vw + 0.9rem, 1.7rem);
  line-height: 1.15;
  color: var(--red);
  display: block;
  margin-bottom: 2px;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Page header (non-home hero) */

.page-header {
  padding: var(--space-7) 0 var(--space-5);
  border-bottom: 1px solid var(--line);
  background: var(--black-soft);
}

.page-header p.lede {
  max-width: 640px;
  font-size: 1.08rem;
}

/* ---------- Sections ---------- */

section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-6) 0; }

.section-alt { background: var(--black-soft); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}

/* ---------- Cards / Grids ---------- */

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--black-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-4);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(237,28,36,0.45);
}

.card .icon {
  width: 46px;
  height: 46px;
  color: var(--red);
  margin-bottom: var(--space-2);
}

.card h3 { margin-bottom: var(--space-1); }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Work / Gallery ---------- */

.work-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black-card);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.work-item:hover {
  border-color: var(--red);
  box-shadow: 0 14px 30px -18px rgba(237,28,36,0.45);
}

.work-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 300ms ease;
}

.work-item:hover img { transform: scale(1.04); }

.work-caption {
  padding: var(--space-2) var(--space-3);
}

.work-caption .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 4px;
}

.work-caption h3 { font-size: 1.05rem; margin: 0 0 4px; }
.work-caption p { font-size: 0.88rem; margin: 0; }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,6,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-3);
}

.lightbox.is-open { display: flex; }

.lightbox-content { max-width: min(900px, 92vw); max-height: 86vh; text-align: center; }
.lightbox-content img { max-height: 72vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox-content .cap { color: var(--white-dim); margin-top: var(--space-2); font-size: 0.95rem; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black-card);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Split layout (About teaser, etc.) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--space-4); }
}

.split img { border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Trust strip ---------- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  text-align: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.trust-item strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--white);
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: var(--space-6) 0;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(244,243,239,0.85); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-outline { border-color: rgba(244,243,239,0.6); color: var(--white); }
.cta-band .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.cta-band .btn-primary { background: var(--black); }
.cta-band .btn-primary:hover { background: var(--black-soft); }

/* ---------- Service detail blocks ---------- */

.service-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}

.service-block:last-child { border-bottom: none; }

@media (max-width: 720px) {
  .service-block { grid-template-columns: 1fr; gap: var(--space-2); }
}

.service-block .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--line);
}

.service-block ul {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

@media (max-width: 560px) {
  .service-block ul { grid-template-columns: 1fr; }
}

.service-block li {
  color: var(--white-dim);
  font-size: 0.96rem;
  padding-left: 22px;
  position: relative;
}

.service-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 2px;
  background: var(--red);
}

.not-repaired {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.not-repaired svg { width: 22px; height: 22px; color: var(--grey); flex-shrink: 0; margin-top: 3px; }
.not-repaired p { margin: 0; font-size: 0.92rem; }
.not-repaired strong { color: var(--white); }

/* ---------- Process steps (Contact page) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  counter-reset: step;
}

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; }
}

.step { position: relative; padding-top: var(--space-2); }

.step .step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Contact card ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--black-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--space-5);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child { border-bottom: none; }

.contact-row .ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(237,28,36,0.12);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row .ico svg { width: 20px; height: 20px; }

.contact-row .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.contact-row .value {
  font-weight: 600;
  font-size: 1.02rem;
  word-break: break-word;
}

.contact-row a.value:hover { color: var(--red); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-6) 0 var(--space-4);
  background: var(--black-soft);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}

@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--space-4); }
}

.footer-logo img { height: 44px; margin-bottom: var(--space-2); }
.footer-col h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: var(--space-2);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--white-dim); }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--grey-dim);
}

.social-icons { display: flex; gap: var(--space-2); }
.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  transition: border-color 160ms ease, color 160ms ease;
}
.social-icons a:hover { border-color: var(--red); color: var(--red); }
.social-icons svg { width: 18px; height: 18px; }

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Scroll reveal (progressive enhancement — JS adds .reveal, IO adds .is-visible) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
