:root {
  --ink: #1b1e22;
  --ink-soft: #4b5259;
  --paper: #edeee9;
  --card: #ffffff;
  --orange: #e8590c;
  --orange-dark: #c14606;
  --amber: #ffc300;
  --whatsapp: #25d366;
  --whatsapp-dark: #1fbb59;
  --border: #d8d9d2;
  --border-dark: #303439;
  --text-body: #444b52;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", Arial, Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--orange);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: top 200ms ease;
}

.skip-link:focus {
  top: 12px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 8%;
  background: var(--ink);
  border-bottom: 3px solid var(--orange);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 170px;
  height: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 34px;
  padding: 6px;
  background: transparent;
  border: 1px solid #3a3f45;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--amber);
}

.main-nav .nav-cta {
  padding: 11px 18px;
  color: #ffffff;
  background: var(--orange);
  font-weight: 600;
}

.main-nav .nav-cta:hover {
  background: var(--orange-dark);
  color: #ffffff;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding: 88px 8%;
  color: #ffffff;
  background:
    linear-gradient(100deg, rgba(15, 15, 16, 0.94) 40%, rgba(15, 15, 16, 0.6)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-eyebrow::before {
  content: "// ";
  color: var(--amber);
}

h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.05;
}

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

h3 {
  margin: 0 0 12px;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.hero-text {
  max-width: 560px;
  margin: 22px 0 32px;
  color: #d9d9d9;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 14px 22px;
  color: #ffffff;
  background: var(--orange);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
}

.button:hover {
  background: var(--orange-dark);
}

.secondary-button {
  background: var(--whatsapp);
}

.secondary-button:hover {
  background: var(--whatsapp-dark);
}

/* Hero diagnostic ticket */
.hero-ticket {
  display: flex;
  justify-content: center;
}

.ticket-card {
  width: 100%;
  max-width: 340px;
  padding: 26px 24px;
  background: #16181b;
  border: 1px solid #33383e;
  border-left: 4px solid var(--orange);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed #3a3f45;
}

.ticket-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.ticket-status {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  color: #16181b;
  background: var(--orange);
  text-transform: uppercase;
}

.ticket-checklist {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e6e6e6;
  font-size: 15px;
  opacity: 0;
  transform: translateX(-8px);
  animation: tickIn 420ms ease forwards;
  animation-delay: calc(var(--d) * 260ms + 500ms);
}

.tick {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--orange);
  position: relative;
}

.ticket-checklist li .tick::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg);
  opacity: 0;
  animation: tickMark 200ms ease forwards;
  animation-delay: calc(var(--d) * 260ms + 780ms);
}

.ticket-foot {
  padding-top: 14px;
  border-top: 1px dashed #3a3f45;
  color: #9a9fa5;
  font-size: 13px;
  font-family: var(--font-mono);
}

@keyframes tickIn {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes tickMark {
  to { opacity: 1; }
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dark);
}

.trust-strip div {
  position: relative;
  padding: 30px 8%;
  background: var(--ink);
  color: #ffffff;
}

.plate-code {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
}

.trust-strip strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
}

.trust-strip span:not(.plate-code) {
  color: #c9c9c9;
  line-height: 1.5;
}

/* Sections */
.section {
  padding: 82px 8%;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p,
.text-block p,
.legal-grid p,
.guide-grid p,
.service-card p,
.quote-card p,
.review-card p,
.details-grid p {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
}

.service-grid,
.quote-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Job-card ticket styling (signature element) */
.service-card,
.review-card {
  position: relative;
  padding: 28px 28px 28px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px dashed var(--orange);
}

.service-card .ticket-code,
.review-card .ticket-code {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--orange-dark);
}

.legal-grid article,
.guide-grid article,
.details-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
}

.quote-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
}

.quote-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  color: #ffffff;
  background: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 50%;
  border: 2px solid var(--orange);
}

/* Hazard divider — used sparingly as the workshop signature break */
.hazard-divider {
  height: 10px;
  background: repeating-linear-gradient(
    45deg,
    var(--amber),
    var(--amber) 16px,
    var(--ink) 16px,
    var(--ink) 32px
  );
}

.about,
.gallery,
.legal.alt {
  background: var(--card);
}

.quotation,
.reviews,
.details,
.legal {
  background: var(--paper);
}

.feedback,
.buyer-guide {
  background: var(--ink);
  color: #ffffff;
}

.feedback .text-block p,
.buyer-guide .section-heading p,
.buyer-guide .guide-grid p,
.buyer-guide li {
  color: #cfcfcf;
}

.split-layout,
.guide-grid,
.details-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(360px, 1.25fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: start;
}

.text-block {
  max-width: 760px;
}

.text-block p:first-child {
  margin-top: 0;
}

.wide-text {
  max-width: 900px;
}

.quotation .button {
  margin-top: 28px;
}

.review-card p {
  margin-top: 0;
  font-size: 18px;
}

.review-card strong {
  display: block;
  margin-top: 14px;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.guide-grid article {
  padding: 30px;
  background: #16181b;
  border-color: var(--border-dark);
}

.guide-grid h3 {
  color: #ffffff;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 30px;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--orange);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: var(--paper);
}

.details-grid {
  margin-bottom: 28px;
}

.details-grid article {
  padding: 32px;
  border-left: 4px solid var(--orange);
}

.details-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: #ffffff;
  background: var(--ink);
}

.details-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

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

/* Footer */
.site-footer {
  padding: 34px 8%;
  background: #000000;
  color: #ffffff;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 16px;
}

.site-footer p {
  margin: 8px 0;
  color: #d5d5d5;
  font-size: 14px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--amber);
}

.site-footer span {
  margin: 0 8px;
  color: #777777;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px 22px;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 20px auto;
}

.footer-links a {
  color: #d7d7d7;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-ticket {
    order: -1;
  }

  .ticket-card {
    max-width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid #2a2e33;
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
  }

  .site-header.nav-open .main-nav {
    max-height: 480px;
  }

  .main-nav a {
    padding: 16px 8%;
    border-bottom: 1px solid #2a2e33;
  }

  .main-nav .nav-cta {
    margin: 14px 8%;
    text-align: center;
  }

  .service-grid,
  .quote-grid,
  .legal-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-layout,
  .guide-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 6%;
  }

  .logo img {
    width: 150px;
  }

  .hero {
    padding: 68px 6%;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-text {
    font-size: 16px;
  }

  .section {
    padding: 60px 6%;
  }

  .trust-strip,
  .service-grid,
  .quote-grid,
  .legal-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    text-align: center;
  }
}

/* Motion: page load + scroll reveal */
.page-enter {
  animation: headerDrop 520ms ease both;
}

.hero-animate .eyebrow,
.hero-animate h1,
.hero-animate .hero-text,
.hero-animate .hero-actions {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeLift 720ms ease forwards;
}

.hero-animate .eyebrow { animation-delay: 120ms; }
.hero-animate h1 { animation-delay: 240ms; }
.hero-animate .hero-text { animation-delay: 360ms; }
.hero-animate .hero-actions { animation-delay: 480ms; }

.reveal-section,
.stagger-list > *,
.trust-strip > div {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal-section.is-visible,
.stagger-list > *.is-visible,
.trust-strip > div.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-list > *:nth-child(2),
.trust-strip > div:nth-child(2) { transition-delay: 90ms; }

.stagger-list > *:nth-child(3),
.trust-strip > div:nth-child(3) { transition-delay: 180ms; }

.stagger-list > *:nth-child(4) { transition-delay: 60ms; }
.stagger-list > *:nth-child(5) { transition-delay: 120ms; }
.stagger-list > *:nth-child(6) { transition-delay: 180ms; }

.review-slider {
  max-width: 820px;
}

.review-track {
  position: relative;
  min-height: 190px;
}

.review-track .review-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: none;
}

.review-track .review-card.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.review-controls {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.review-dot {
  width: 36px;
  height: 4px;
  padding: 0;
  border: 0;
  background: #c7c8c2;
  cursor: pointer;
}

.review-dot.is-active {
  background: var(--orange);
}

@keyframes fadeLift {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes headerDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

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

  .reveal-section,
  .stagger-list > *,
  .trust-strip > div,
  .hero-animate .eyebrow,
  .hero-animate h1,
  .hero-animate .hero-text,
  .hero-animate .hero-actions,
  .ticket-checklist li,
  .ticket-checklist li .tick::after {
    opacity: 1;
    transform: none;
  }
}
