/* ═══════════════════════════════════════════════════════
   Pixo Repair — Main Stylesheet
   Light/Dark theme via CSS custom properties
   ═══════════════════════════════════════════════════════ */

/* Fonts loaded via <link> in HTML for better performance */

/* ── THEME: DARK (default) ── */
:root {
  --primary: #3B82F6;
  --primary-light: #60A5FA;
  --primary-dark: #2563EB;

  --bg: #0A0A0A;
  --bg-elevated: #111111;
  --bg-card: #181818;
  --bg-input: #222222;

  --text: #FFFFFF;
  --text-secondary: #BBBBBB;
  --text-muted: #888888;
  --text-faint: #444444;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(10, 10, 10, 0.92);

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ── THEME: LIGHT ── */
[data-theme="light"] {
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --primary-dark: #1D4ED8;

  --bg: #F5F5F3;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-input: #F0F0F0;

  --text: #111111;
  --text-secondary: #444444;
  --text-muted: #777777;
  --text-faint: #CCCCCC;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(245, 245, 243, 0.92);
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-wordmark {
  font-family: var(--font-heading);
  font-weight: 800; font-size: 18px;
  letter-spacing: 2px;
}
.nav-links {
  display: flex; gap: 28px;
  margin-left: auto; margin-right: 24px;
}
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-controls { display: flex; align-items: center; gap: 12px; }
.lang-select {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 8px; font-size: 12px; font-family: var(--font-mono);
  cursor: pointer;
}
.theme-toggle {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 4px; display: flex;
  transition: color 0.2s;
}
.theme-toggle:hover { color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: 0.2s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #FFFFFF;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}
.btn-outline {
  display: inline-block;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ── SECTIONS ── */
.section {
  padding: 100px clamp(16px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px; height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--primary); }
.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 8px;
}
.card-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── ABOUT ── */
.about-grid {
  max-width: 800px;
  margin: 0 auto;
}
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-content p,
.about-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* ── STATS ── */
.stats-row {
  display: flex; justify-content: center;
  gap: 4rem; flex-wrap: wrap;
  margin-top: 60px;
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem; font-weight: 900;
  color: var(--primary);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon {
  width: 40px; height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 18px; height: 18px; color: var(--primary); }
.contact-item-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-item-value { font-size: 15px; color: var(--text-secondary); }

/* ── FOOTER ── */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--border);
}
.footer-left {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px;
  color: var(--text-faint);
}
.footer-right {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1px;
  color: var(--text-faint);
}
.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-right a:hover {
  color: var(--primary);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2rem; margin-bottom: 12px;
}
.cta-banner p { color: var(--text-secondary); margin-bottom: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--nav-bg); backdrop-filter: blur(12px); padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-row { gap: 2rem; }
  .footer { flex-direction: column; text-align: center; }
}

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ── SKIP LINK (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
}

/* ── FOCUS STYLES (accessibility) ── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── SCROLL REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── PRINT STYLES ── */
@media print {
  :root {
    --bg: #fff;
    --text: #000;
    --text-secondary: #333;
  }
  .nav, .theme-toggle, .lang-select, .nav-hamburger, .skip-link,
  .footer-right, .hero-bg, .hero-grid {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .footer {
    border-top: 1px solid #ccc;
    padding-top: 12px;
  }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
  a[href^="#"]::after, a[href^="javascript"]::after { content: ""; }
}
