/* Stevens Electrical Services, LLC — custom demo
   Thesis: "The feel of a well-run neighborhood electrical shop — practical, lived-in, locally proud."
   Palette: Warm ivory paper, dark navy ink, rust-red brand accent.
   Typefaces: Roboto Slab (sturdy, trustworthy display) + Source Sans 3 (body).

   Real business info:
   - Phone: (402) 570-3739
   - Address: 6035 Fremont Street, Lincoln NE 68507
   - Founded: 2018
   - Owner: Michael J. Stevens
*/

:root {
  --brand:       #C0392B;
  --brand-dark:  #962D22;
  --brand-light: #E74C3C;
  --paper:       #F9F5EE;
  --ink:         #1A2D44;
  --muted:       #7A7D85;
  --line:        #E0D9CF;
  --surface:     #F0EAE0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Roboto Slab for all display headings */
h1, h2, h3, h4 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
}

::selection {
  background: var(--brand);
  color: var(--paper);
}

/* ---- Badge / stamp mark: credentialing treatment ---- */
.badge {
  display: inline-block;
  border: 1.5px solid var(--ink);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.25rem 0.6rem;
  font-family: 'Source Sans 3', sans-serif;
}

/* ---- Scroll reveal ---- */
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: reveal-fallback 0.6s ease 2s forwards;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }

/* ---- Mobile menu ---- */
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: block;
}

/* ---- Testimonial carousel ---- */
.carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--line);
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-track { background: var(--line); border-radius: 3px; }
.carousel::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }
.carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .carousel-item { flex: 0 0 calc(50% - 0.75rem); }
}
@media (min-width: 1024px) {
  .carousel-item { flex: 0 0 calc(33.333% - 1rem); }
}

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

/* ---- Print ---- */
@media print {
  header, footer, .mobile-menu, .no-print { display: none !important; }
}
