/* ==========================================================
   Sign Craft — custom styles (Tailwind CDN handles utilities)
   ========================================================== */

:root {
  --ink: #151210;
  --paper: #FAF8F4;
  --brand: #B4202B;
  --gold: #A9772F;
}

* { scroll-behavior: smooth; }

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

.text-balance { text-wrap: balance; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 999;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Header ---------- */
#site-header {
  background: rgba(250, 248, 244, 0);
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline, #E4DED3);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.mobile-link {
  display: block;
  border-bottom: 1px solid #E4DED3;
  padding-bottom: 14px;
}

/* ---------- Focus states (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Background ceramic/circuit-like grid (subtle, ties to LED subject) ---------- */
.ceramic-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(21,18,16,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21,18,16,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
  z-index: -1;
}

/* ---------- LED canvas panel ---------- */
#ledCanvas {
  border-radius: 1px;
}
.led-scanlines {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.12) 0px,
    rgba(0,0,0,0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}
.live-dot {
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- Service cards ---------- */
.service-card {
  background: var(--paper);
  padding: 2.75rem 2.25rem;
  transition: background 0.35s ease;
}
.service-card:hover {
  background: #F3EDE2;
}

/* ---------- Testimonial slider ---------- */
.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.testimonial-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #D8D1C4;
  transition: background 0.3s ease, transform 0.3s ease;
}
.slider-dot.active {
  background: var(--brand);
  transform: scale(1.25);
}

/* ---------- Client logos ---------- */
.client-logo {
  background: var(--paper);
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #A39B8E;
  transition: color 0.3s ease;
}
.client-logo:hover { color: var(--ink); }

/* ---------- Form ---------- */
.form-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #726A61;
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #E4DED3;
  padding: 0.6rem 0.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s ease;
}
.form-input:focus {
  border-color: var(--brand);
  outline: none;
}

/* ---------- Footer ---------- */
.footer-link {
  transition: color 0.3s ease;
}
.footer-link:hover { color: #FAF8F4; }

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(250,248,244,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.social-icon:hover {
  border-color: var(--gold);
  background: rgba(169,119,47,0.15);
}
