/* ============================================
   Total Electronics — Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-burgundy-700: #800020;
  --color-burgundy-800: #6b001a;
  --color-cream-50: #fefcfb;
  --color-charcoal-900: #1f1d1b;
  --color-charcoal-800: #2d2a27;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Navigation --- */
.nav-scroller.scrolled {
  box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-burgundy-700);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Menu --- */
.mobile-menu {
  max-height: 0;
}

.mobile-menu.is-open {
  max-height: 400px;
  box-shadow: inset 0 1px 0 rgba(128, 0, 32, 0.06);
}

/* --- Scroll Reveal --- */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid items */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

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

/* --- Hero --- */
.hero-section {
  position: relative;
}

/* --- Buttons --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* --- Cards --- */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-burgundy-700), var(--color-blush-400));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* --- Form --- */
input:focus,
textarea:focus {
  outline: none;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Print --- */
@media print {
  .nav-scroller,
  .mobile-menu-btn,
  #contact-form,
  .scroll-reveal {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
