/* =========================================================
   PixelLux — RGBIC LED Strip Installation
   Design tokens
   ========================================================= */
:root {
  --bg: #0A0A12;
  --bg-elevated: #101019;
  --surface: #1B1B29;
  --border: #2A2A3D;
  --text: #F3F2F7;
  --text-muted: #9C9AB0;

  --magenta: #FF2E88;
  --cyan: #00E6F6;
  --violet: #8B5CF6;
  --amber: #FFC145;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 10px;
  --header-h: 72px;
}

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text-muted); max-width: 62ch; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--surface); color: var(--text);
  padding: 0.8em 1.2em; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

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

section[id] { scroll-margin-top: var(--header-h); }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 10, 18, 0.7);
  backdrop-filter: blur(10px);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 18, 0.92);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; flex-direction: column; line-height: 1.05;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  text-decoration: none; color: var(--text); letter-spacing: -0.01em;
}
.logo-sub {
  font-family: var(--font-body); font-weight: 500; font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
  margin-top: 2px;
}
.logo-chase {
  background: linear-gradient(90deg, var(--magenta), var(--violet), var(--cyan), var(--magenta));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chase-hue 6s linear infinite;
}
@keyframes chase-hue { to { background-position: 300% 0; } }

.primary-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav-link {
  display: inline-block; text-decoration: none; color: var(--text-muted);
  font-size: 0.95rem; padding: 8px 14px; border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--text); }
.nav-cta {
  color: var(--bg) !important;
  background: linear-gradient(90deg, var(--magenta), var(--violet));
  font-weight: 600;
}
.nav-cta:hover { filter: brightness(1.1); background: linear-gradient(90deg, var(--magenta), var(--violet)); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem; padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #0A0A12;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); border-color: var(--border); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg);
  overflow: hidden;
}
.led-strip {
  position: absolute;
  height: 26px;
  transform: rotate(var(--rot)) translateY(-50%);
  transform-origin: left center;
}
.led-strip-glow,
.led-strip-core {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--magenta), var(--violet), var(--cyan), var(--amber), var(--magenta));
  background-size: 300% 100%;
  animation: strip-chase 6s linear infinite;
  animation-delay: var(--delay);
}
.led-strip-glow {
  top: 50%; height: 22px; transform: translateY(-50%);
  border-radius: 12px;
  filter: blur(16px);
  opacity: 0.5;
}
.led-strip-core {
  top: 50%; height: 4px; transform: translateY(-50%);
  border-radius: 3px;
  opacity: 0.95;
}
@keyframes strip-chase { to { background-position: 300% 0; } }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,10,18,0.94) 0%, rgba(10,10,18,0.65) 40%, rgba(10,10,18,0.25) 78%),
    linear-gradient(180deg, transparent 55%, rgba(10,10,18,0.95) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto; width: 100%;
}
.hero-copy { max-width: 640px; }
.hero-kicker { color: var(--cyan); font-size: 0.9rem; margin-bottom: 0.6em; }
.hero-lead { font-size: 1.08rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 8px; }

/* =========================================================
   Sections (shared)
   ========================================================= */
.section { padding: 88px 24px; }
.section-alt { background: var(--bg-elevated); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-lead { font-size: 1.05rem; margin-top: -0.4em; margin-bottom: 2.2em; }
.sample-note { font-size: 0.82rem; color: var(--text-muted); opacity: 0.7; margin-top: 18px; }

/* About */
.about-grid { max-width: 780px; }
.value-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.value-list li {
  position: relative; padding-left: 26px; color: var(--text);
}
.value-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

/* Services */
.services-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 26px;
}
.service-icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.service-card h3 { margin-bottom: 0.4em; }
.service-card p { margin: 0; font-size: 0.95rem; }

/* Process */
.process-list { list-style: none; margin: 0; padding: 0; max-width: 720px; display: flex; flex-direction: column; gap: 30px; }
.process-step { display: flex; gap: 22px; align-items: flex-start; }
.step-number {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.process-step:nth-child(1) .step-number { border-color: var(--magenta); color: var(--magenta); }
.process-step:nth-child(2) .step-number { border-color: var(--violet); color: var(--violet); }
.process-step:nth-child(3) .step-number { border-color: var(--cyan); color: var(--cyan); }
.process-step:nth-child(4) .step-number { border-color: var(--amber); color: var(--amber); }
.process-step h3 { margin-bottom: 0.3em; }
.process-step p { margin: 0; }

/* Projects */
.projects-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px;
}
.project-photo {
  margin: 0; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.project-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-video {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: #000; max-width: 860px;
  aspect-ratio: 16 / 9;
}
.project-video video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Contact */
.contact-grid address { font-style: normal; }
.contact-grid address p { margin-bottom: 1.1em; color: var(--text); }
.contact-grid address a { text-decoration: none; color: var(--cyan); }
.contact-grid address a:hover { text-decoration: underline; }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 56px; }
.quote-form { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.form-row { margin-bottom: 18px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 11px 13px; font-family: var(--font-body); font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); }
textarea { resize: vertical; }
.form-status { min-height: 1.4em; font-size: 0.9rem; margin: 14px 0 0; }
.form-status.success { color: var(--cyan); }
.form-status.error { color: var(--magenta); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--border); padding: 44px 24px; }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.footer-inner nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-inner nav a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; }
.footer-inner nav a:hover { color: var(--text); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { min-height: 70vh; padding: 100px 20px 60px; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg); transform: translateX(100%); transition: transform 0.25s ease;
    padding: 24px; overflow-y: auto;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-link { padding: 14px 16px; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 10px; }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { align-items: flex-start; }
}
