/*
 * dark-theme.css
 * Shared dark background, 3D canvas layer, spotlight, nav & footer
 * for all Pixora SA inner pages.
 */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: #060912 !important;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: #060912 !important;
  color: #f0f2ff;
  overflow-x: hidden;
}

/* ── CSS vars (dark) ── */
:root {
  --accent:      #7c5cff;
  --accent-2:    #22d3ee;
  --accent-pale: #a78ff5;
  --bg:          #060912;
  --bg-card:     rgba(16, 20, 40, 0.75);
  --border:      rgba(124, 92, 255, 0.15);
  --muted:       rgba(240, 242, 255, 0.5);
  --text:        #f0f2ff;
  --font-body:   'Manrope', system-ui, sans-serif;
  --font-head:   'Fraunces', Georgia, serif;
}

/* ── 3D canvas background ── */
#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Grid overlay ── */
#grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, black 30%, transparent 100%);
}

/* ── Spotlight cursor ── */
#spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(124, 92, 255, 0.12) 0%,
    rgba(34, 211, 238, 0.06) 35%,
    transparent 65%
  );
}

/* ── All page content sits above canvas ── */
.site-header,
main,
footer,
#cookie-consent,
.back-to-top,
#scroll-progress {
  position: relative;
  z-index: 2;
}

/* ── Nav ── */
.site-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 200 !important;
  background: rgba(6, 9, 18, 0.8) !important;
  backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(124, 92, 255, 0.15) !important;
  box-shadow: none !important;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f0f2ff !important;
}

.logo-mark { width: 40px; height: 40px; border-radius: 8px; }

.logo-text {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #f0f2ff !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: rgba(240, 242, 255, 0.7) !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.nav-links a:hover {
  color: #f0f2ff !important;
}

.nav-links .nav-cta {
  padding: 9px 20px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #7c5cff, #22d3ee) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: opacity 0.2s, transform 0.2s !important;
}

.nav-links .nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px; height: 2px;
  background: #f0f2ff;
  border-radius: 2px;
  display: block;
  transition: all 0.3s;
}

.dark-toggle {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(124,92,255,0.2) !important;
  cursor: pointer;
  width: 36px !important; height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  color: rgba(240,242,255,0.7) !important;
  font-size: 1rem;
  transition: background 0.2s !important;
  padding: 0 !important;
}

.dark-toggle:hover {
  background: rgba(124,92,255,0.2) !important;
  color: #f0f2ff !important;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute !important;
    top: 65px; right: 20px;
    background: rgba(12,16,30,0.97) !important;
    border: 1px solid rgba(124,92,255,0.2) !important;
    border-radius: 16px !important;
    flex-direction: column !important;
    padding: 16px !important;
    display: none !important;
    backdrop-filter: blur(24px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.5) !important;
    gap: 14px !important;
  }
  .nav-links.is-open { display: flex !important; }
  .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); }
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 140px 28px 80px !important;
  text-align: center !important;
  background: transparent !important;
  position: relative !important;
  border-bottom: 1px solid rgba(124,92,255,0.1) !important;
}

.page-hero .eyebrow,
.page-hero p.eyebrow {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(124,92,255,0.8) !important;
  margin-bottom: 14px !important;
  display: block !important;
}

.page-hero h1 {
  font-family: 'Fraunces', serif !important;
  font-size: clamp(2.2rem, 5vw + 1rem, 4.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  color: #f0f2ff !important;
  margin-bottom: 18px !important;
  background: none !important;
  -webkit-text-fill-color: unset !important;
}

.page-hero .lead {
  color: rgba(240, 242, 255, 0.55) !important;
  font-size: clamp(1rem, 1.5vw, 1.15rem) !important;
  max-width: 580px !important;
  margin: 0 auto 28px !important;
  line-height: 1.7 !important;
}

.hero-cta {
  display: flex !important;
  gap: 14px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

/* ── Section overrides ── */
.section {
  background: transparent !important;
  position: relative;
}

.section--alt {
  background: rgba(10, 14, 30, 0.6) !important;
  border-top: 1px solid rgba(124,92,255,0.08) !important;
  border-bottom: 1px solid rgba(124,92,255,0.08) !important;
}

.section-title h2 {
  font-family: 'Fraunces', serif !important;
  color: #f0f2ff !important;
}

.eyebrow {
  color: rgba(124,92,255,0.8) !important;
}

/* ── Cards ── */
.service-card,
.price-card,
.work-card,
.value-card,
.step-item,
.teaser-card,
.contact-method,
.faq-item {
  background: rgba(16, 20, 40, 0.7) !important;
  border-color: rgba(124,92,255,0.15) !important;
  color: #f0f2ff !important;
  backdrop-filter: blur(12px) !important;
}

.service-card:hover,
.price-card:hover,
.work-card:hover,
.value-card:hover {
  border-color: rgba(124,92,255,0.4) !important;
  box-shadow: 0 16px 48px rgba(124,92,255,0.14) !important;
}

.price-card--featured {
  background: rgba(124,92,255,0.12) !important;
  border-color: rgba(124,92,255,0.4) !important;
}

/* ── Buttons ── */
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
  border: none !important;
}

.btn--secondary,
.btn--ghost {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(124,92,255,0.3) !important;
  color: rgba(240,242,255,0.8) !important;
}

.btn--secondary:hover,
.btn--ghost:hover {
  border-color: rgba(124,92,255,0.6) !important;
  color: #fff !important;
  background: rgba(124,92,255,0.12) !important;
}

/* ── Text ── */
p, li { color: rgba(240, 242, 255, 0.65); }
h1, h2, h3, h4, h5 { color: #f0f2ff; }

/* ── FAQ ── */
.faq-question {
  background: transparent !important;
  color: #f0f2ff !important;
}

.faq-answer p { color: rgba(240,242,255,0.6) !important; }

/* ── Contact form ── */
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(16, 20, 40, 0.7) !important;
  border-color: rgba(124,92,255,0.2) !important;
  color: #f0f2ff !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(240,242,255,0.3) !important;
}

.contact-form label {
  color: rgba(240,242,255,0.7) !important;
}

/* ── Footer ── */
.footer,
footer {
  background: rgba(6, 9, 18, 0.85) !important;
  border-top: 1px solid rgba(124,92,255,0.12) !important;
  backdrop-filter: blur(16px) !important;
}

.footer-meta,
.footer-bottom {
  border-top: 1px solid rgba(124,92,255,0.08) !important;
  color: rgba(240,242,255,0.3) !important;
}

.footer-col a,
.footer-col p {
  color: rgba(240,242,255,0.5) !important;
}

.footer-col a:hover { color: #f0f2ff !important; }

.footer-col h4 {
  color: rgba(240,242,255,0.5) !important;
}

.social-icon {
  background: rgba(124,92,255,0.1) !important;
  border-color: rgba(124,92,255,0.2) !important;
  color: rgba(240,242,255,0.6) !important;
}

.social-icon:hover {
  background: rgba(124,92,255,0.25) !important;
  color: #f0f2ff !important;
}

/* ── Scroll progress ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 500;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #7c5cff, #22d3ee);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed !important;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50% !important;
  background: rgba(124,92,255,0.15) !important;
  border: 1px solid rgba(124,92,255,0.3) !important;
  color: #a78ff5 !important;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  transform: translateY(16px);
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: rgba(124,92,255,0.3) !important; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
              transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Muted / accent ── */
.muted, [class*="muted"] { color: rgba(240,242,255,0.5) !important; }
strong { color: #f0f2ff; }
