/* ===== Repairist - Doorstep Device Repair Service ===== */
:root {
  --orange: #f97316;
  --orange-600: #ea580c;
  --red: #ef4444;
  --red-600: #dc2626;
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* Light / dark gradient background (FOUC-safe: matches html OR body class) */
html.theme-light, body.theme-light {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 50%, #fef2f2 100%);
  color: #1f2937;
  min-height: 100vh;
}
html.theme-dark, body.theme-dark {
  background: linear-gradient(135deg, #000000 0%, #111827 50%, #450a0a 100%);
  color: #e5e7eb;
  min-height: 100vh;
}
/* When body lacks an explicit theme class yet, inherit from html so the
   background never flashes white before app.js runs */
html.theme-dark body { background: transparent; color: #e5e7eb; }
html.theme-light body { background: transparent; color: #1f2937; }
body.theme-light, body.theme-dark { background-attachment: fixed; }

a { text-decoration: none; }

/* Brand gradient text */
.brand-grad {
  background: linear-gradient(90deg, #f97316, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-orange-light { color: #fdba74; }

/* Buttons */
.btn-dark {
  background: linear-gradient(90deg, #1f2937, #000000);
  color: #fff;
  transition: all .3s;
}
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); }
.btn-orange {
  background: linear-gradient(90deg, #f97316, #dc2626);
  color: #fff;
  transition: all .3s;
}
.btn-orange:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(249,115,22,.5); }
.btn-green {
  background: linear-gradient(90deg, #16a34a, #15803d);
  color: #fff;
  transition: all .3s;
}
.btn-green:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(22,163,74,.5); }

/* Cards */
.card {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.12);
  transition: all .3s;
}
.theme-dark .card {
  background: rgba(31,41,55,.7);
  border-color: rgba(255,255,255,.08);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 25px 50px -12px rgba(249,115,22,.25); }

/* Icon circle */
.icon-circle {
  display:flex; align-items:center; justify-content:center;
  border-radius: 9999px;
}
.gradient-orange { background: linear-gradient(135deg, #f97316, #dc2626); }

/* Nav blur */
.nav-blur { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); background: rgba(255,255,255,.85); }
.theme-dark .nav-blur { background: rgba(0,0,0,.75); }

/* ===== Mobile menu (SOLID panel so page never shows through) ===== */
#mobile-menu { transition: opacity .3s ease, transform .3s ease; }
#mobile-menu.hidden-menu { opacity:0; pointer-events:none; transform: translateY(-10px); }

/* Solid opaque panel — fixes the background bleed-through issue */
.mobile-menu-panel {
  background: #ffffff;
  border: 1px solid rgba(249,115,22,.15);
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,.35);
}
.theme-dark .mobile-menu-panel {
  background: #0b1220;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 25px 60px -15px rgba(0,0,0,.75);
}

/* Dimmed backdrop behind the open menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.menu-overlay.show { opacity: 1; pointer-events: auto; }
/* Lock scroll while menu open */
body.menu-open { overflow: hidden; }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 9999px;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 30px rgba(22,163,74,.5);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.08);} }

/* Animations */
@keyframes fadeUp { from{opacity:0; transform:translateY(24px);} to{opacity:1; transform:translateY(0);} }
.reveal { opacity:0; }
.reveal.in { animation: fadeUp .7s forwards; }

.dark-text { color:#1f2937; }
.theme-dark .dark-text { color:#f3f4f6; }
.muted-text { color:#6b7280; }
.theme-dark .muted-text { color:#9ca3af; }

/* Device tab active */
.device-tab.active { background: linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff; }
.device-tab.active .tab-ico, .device-tab.active .tab-label { color:#fff !important; }

/* Issue card */
.issue-card { transition: all .25s; }
.issue-card:hover { border-color:#f97316; transform: translateX(4px); }
.issue-card.selected { border-color:#f97316; background: rgba(249,115,22,.08); }

/* Hide scrollbar for carousels */
.no-scrollbar::-webkit-scrollbar { display:none; }
.no-scrollbar { -ms-overflow-style:none; scrollbar-width:none; }

/* Cookie bar */
#cookie-bar { transition: transform .4s; }

/* ===== Hero banner carousel ===== */
.hero-banner {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 25px 50px -12px rgba(249,115,22,.35);
}
.hero-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.hero-slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16 / 10;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.5rem;
}
.hero-slide .slide-overlay h3 { color:#fff; font-weight:800; font-size:1.25rem; line-height:1.2; margin:0; text-shadow:0 2px 8px rgba(0,0,0,.5); }
.hero-slide .slide-overlay p { color:#f8fafc; font-size:.85rem; margin:.25rem 0 0; text-shadow:0 1px 4px rgba(0,0,0,.5); }

/* Carousel arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 42px; height: 42px; border-radius: 9999px;
  background: rgba(255,255,255,.9); color:#ea580c;
  display:flex; align-items:center; justify-content:center;
  border: none; cursor: pointer; transition: all .25s;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.hero-arrow:hover { background:#fff; transform: translateY(-50%) scale(1.1); }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }

/* Carousel dots */
.hero-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.hero-dot {
  width: 24px; height: 6px; border-radius: 9999px;
  background: rgba(255,255,255,.5); border:none; cursor:pointer;
  transition: all .3s;
}
.hero-dot.active { background:#fff; width: 34px; }

@media (max-width: 640px) {
  .hero-arrow { width: 36px; height: 36px; }
  .hero-slide .slide-overlay h3 { font-size: 1.05rem; }
  .hero-slide .slide-overlay { padding: 1rem; }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; }
}

/* Prevent layout shift on images */
img { max-width: 100%; height: auto; }
