/* =========================================================
   DARKSIDE CUSTOM CARTS — DESIGN TOKENS
   ========================================================= */
:root {
  /* color */
  --bg:            #0a0a0b;
  --bg-panel:      #131315;
  --bg-panel-2:    #17181a;
  --red:           #d81f2c;
  --red-bright:    #ef2a38;
  --red-deep:      #6e0f16;
  --chrome-hi:     #f4f5f7;
  --chrome-mid:    #a7abb2;
  --chrome-lo:     #5c6067;
  --ink:           #eceded;
  --ink-muted:     #9a9a9e;
  --ink-faint:     #6b6b6f;
  --line:          #2a2a2d;
  --line-soft:     #1e1e20;

  /* type */
  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-cond: 'Barlow Condensed', var(--f-body);
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* layout */
  --wrap: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

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

/* =========================================================
   HAZARD BAR — signature motif, reused top/bottom
   ========================================================= */
.hazard-bar {
  height: 10px;
  width: 100%;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--red) 0px, var(--red) 22px,
      #0a0a0b 22px, #0a0a0b 44px
    );
}
.hazard-bar-top { margin-bottom: 0; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10,10,11,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-mark {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 8px;
  flex: 1;
}
.main-nav a {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.15s ease;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--red); }

.btn-nav { margin-left: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: 8px;
}
.nav-toggle span {
  height: 2px;
  width: 20px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 28px 20px;
  border-top: 1px solid var(--line-soft);
}
.mobile-nav a {
  padding: 12px 0;
  font-family: var(--f-cond);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn { margin-top: 14px; text-align: center; }
.mobile-nav.is-open { display: flex; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-red {
  background: linear-gradient(180deg, var(--red-bright), var(--red) 70%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(216,31,44,0.28);
}
.btn-red:hover { background: linear-gradient(180deg, #ff3c48, var(--red-bright) 70%); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--chrome-mid); background: var(--bg-panel); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   EYEBROW / STAGE TAGS (shared)
   ========================================================= */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(216,31,44,0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(216,31,44,0); }
}
.stage-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  margin: 0 0 10px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  background: linear-gradient(180deg, rgba(216,31,44,0.12) 0%, rgba(110,15,22,0.05) 45%, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero .eyebrow { justify-content: center; }
.hero-logo {
  width: min(420px, 82vw);
  margin: 0 auto 32px;
  filter: drop-shadow(0 25px 60px rgba(0,0,0,0.6));
}
.hero-lede {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-muted);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   SECTIONS (generic)
   ========================================================= */
.section { padding: 88px 0; }
.section-dark { background: var(--bg-panel); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { margin-bottom: 44px; max-width: 640px; }
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.section-sub {
  color: var(--ink-muted);
  font-size: 16px;
  margin: 0;
  max-width: 56ch;
}

/* =========================================================
   BUILD SHEET GRID
   ========================================================= */
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.sheet-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px;
  position: relative;
  transition: background 0.2s ease;
}
.sheet-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.sheet-item:hover { background: var(--bg-panel); }
.sheet-item:hover::before { transform: scaleY(1); }
.sheet-code {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--red-bright);
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.sheet-item h3 {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 10px;
}
.sheet-item p:last-child {
  color: var(--ink-muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.65;
}
.sheet-footnote {
  margin-top: 28px;
  font-family: var(--f-cond);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.sheet-footnote strong { color: var(--ink); }

/* =========================================================
   TRANSFORMATIONS — before / after work orders
   ========================================================= */
#transformations { border-top: 1px solid var(--line-soft); }
.trn-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.trn-row {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.trn-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.trn-code {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--red-bright);
  flex-shrink: 0;
}
.trn-head h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}
.trn-panes {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
}
.trn-pane {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--bg-panel-2);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}
.trn-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
}
.trn-pane-before img { filter: saturate(0.7) brightness(0.92); }
.trn-pane:hover img { transform: scale(1.04); }
.trn-pane-before:hover img { filter: saturate(0.9) brightness(1); }
.trn-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.trn-pane-after::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 0 2px rgba(216,31,44,0.0);
  transition: box-shadow 0.25s ease;
  pointer-events: none;
}
.trn-pane-after:hover::before { box-shadow: inset 0 0 0 2px rgba(216,31,44,0.75); }
.trn-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
}
.trn-pane-before .trn-tag {
  color: var(--chrome-hi);
  background: rgba(10,10,11,0.72);
  border: 1px solid rgba(255,255,255,0.18);
}
.trn-pane-after .trn-tag {
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red-bright);
  box-shadow: 0 4px 14px rgba(216,31,44,0.4);
}
.trn-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--red);
  color: var(--red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* =========================================================
   BUILD LOG — MASONRY GALLERY (signature element)
   ========================================================= */
.gallery-tiles {
  columns: 4 240px;
  column-gap: 12px;
}
.gallery-tile {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-panel-2);
  cursor: pointer;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery-tile:hover {
  border-color: var(--chrome-mid);
  transform: translateY(-2px);
}
.gallery-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(0.94);
}
.gallery-tile:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}
.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(216,31,44,0);
  transition: box-shadow 0.2s ease;
  pointer-events: none;
}
.gallery-tile:hover::after {
  box-shadow: inset 0 0 0 1px rgba(216,31,44,0.4);
}

/* =========================================================
   COVERAGE
   ========================================================= */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.coverage-card {
  background: var(--bg);
  padding: 28px 24px;
}
.coverage-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
.coverage-value {
  font-family: var(--f-cond);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

/* =========================================================
   BOOKING
   ========================================================= */
.booking {
  background: var(--bg-panel);
  padding-bottom: 88px;
}
.booking-inner {
  padding-top: 72px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.booking h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  margin: 0 0 16px;
}
.booking-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.booking-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-muted);
  font-size: 15px;
}
.booking-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: var(--red);
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(216,31,44,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.contact-label {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
  position: relative;
}
.contact-phone {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  position: relative;
  transition: color 0.15s ease;
}
.contact-phone:hover { color: var(--red-bright); }
.contact-person {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
.contact-name {
  font-family: var(--f-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin: 0;
}
.contact-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  position: relative;
}
.contact-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  position: relative;
  margin-top: 4px;
}
.contact-actions .btn { justify-content: center; }
.contact-note {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 6px 0 0;
  position: relative;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bg); }
.footer-inner {
  padding: 40px 0 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-mark {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.footer-brand p {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
  max-width: 28ch;
}
.footer-phone {
  display: block;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.footer-phone:hover { color: var(--red-bright); }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-family: var(--f-cond);
  font-size: 15px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: right;
  align-self: end;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,6,7,0.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-frame {
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.lightbox-frame img { width: 100%; display: block; }
.lightbox-count {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-align: center;
  margin: 0;
  padding: 14px 0;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 16px;
}
.lightbox-nav:hover, .lightbox-close:hover { border-color: var(--chrome-mid); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .gallery-tiles { columns: 3 160px; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-copy { text-align: left; }
}

@media (max-width: 720px) {
  .main-nav, .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .sheet-grid { grid-template-columns: 1fr; }
  .gallery-tiles { columns: 2 140px; column-gap: 8px; }
  .gallery-tile { margin-bottom: 8px; }
  .trn-head { flex-direction: column; gap: 4px; padding: 14px 16px; }
  .trn-head h3 { font-size: 16.5px; }
  .trn-panes { grid-template-columns: 1fr; }
  .trn-arrow { transform: translate(-50%, -50%) rotate(90deg); width: 42px; height: 42px; font-size: 19px; }
  .hero { padding: 64px 0 56px; }
  .hero-lede { font-size: 16.5px; }
  .section { padding: 64px 0; }
  .lightbox-nav { display: none; }
}
