/* ═══════════════════════════════════════════════════════════
   TEKNIFY — Repairs Section Premium Styles
   Applied to all repair & service pages
═══════════════════════════════════════════════════════════ */

/* ── Smooth global transitions ─────────────────────────── */
*, *::before, *::after {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Nav upgrade ────────────────────────────────────────── */
.site-header {
  background: rgba(var(--surface-rgb, 255,255,255), 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,.04);
}
[data-theme="dark"] .site-header {
  background: rgba(24, 29, 35, 0.88);
}
.brand {
  font-size: 17px;
  letter-spacing: 3px;
}
.nav-links a {
  font-weight: 500;
  font-size: 13.5px;
  transition: color .15s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width .2s;
}
.nav-links a:hover::after { width: 100%; }
.btn.primary {
  font-size: 13px;
  letter-spacing: .3px;
  box-shadow: 0 2px 10px rgba(228,161,0,.25);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(228,161,0,.35);
}
.btn:active { transform: scale(.97); }

/* ── Hero — premium dark gradient ──────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(228,161,0,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(228,161,0,.04) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .eyebrow {
  color: var(--accent);
  opacity: .9;
  letter-spacing: 2px;
}
.page-hero h1 {
  color: #f0f4f8;
  font-size: clamp(2rem, 4vw, 3rem);
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  line-height: 1.15;
}
.page-hero .lead {
  color: rgba(200, 210, 220, .8);
  font-size: 1rem;
  max-width: 52ch;
}
.page-hero .btn.secondary {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: #e8edf2;
}
.page-hero .btn.secondary:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.25);
}
/* Override for pages that already set a bg image */
.page-hero.has-bg-image {
  background: var(--hero-bg-image, #0d1117);
}

/* ── Hero stats row ─────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat strong {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}
.hero-stat span {
  font-size: 12px;
  color: rgba(200,210,220,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
  display: block;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  background: #0d1117;
  border-bottom: none;
  position: relative;
  z-index: 1;
}
.breadcrumb ol {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: .7rem 0;
  margin: 0;
  font-size: 12px;
}
/* remove the global ::before separator so only our ::after fires */
.breadcrumb li + li::before { content: ''; margin: 0; }
.breadcrumb li { color: rgba(200,210,220,.45); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: rgba(255,255,255,.2); }
.breadcrumb a { color: rgba(200,210,220,.65); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:last-child { color: rgba(200,210,220,.8); }

/* ── Section upgrades ───────────────────────────────────── */
.section {
  padding: 4rem 0;
  position: relative;
}
.section.alt {
  background: var(--surface);
}
.section-header h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.2;
}
.section-label {
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

/* ── Device grid cards ──────────────────────────────────── */
.device-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
button.device-card {
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
button.device-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(228,161,0,.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .22s;
}
button.device-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1), 0 0 0 1px var(--accent);
  border-color: var(--accent);
}
button.device-card:hover::before { opacity: 1; }
.device-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.device-card .badge {
  font-size: 11px;
  background: rgba(228,161,0,.08);
  border-color: rgba(228,161,0,.2);
  color: var(--accent);
  font-weight: 600;
}

/* ── Service / repair cards ─────────────────────────────── */
.grid-3 { gap: 16px; }
.card {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--card);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity .22s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.09);
  border-color: rgba(228,161,0,.3);
}
.card:hover::after { opacity: 1; }
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.card .price-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── Check / trust cards ─────────────────────────────────── */
.check-card, .trust-card {
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
}
.check-card h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.check-card ul { gap: .5rem; }
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(228,161,0,.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  font-family: "Unbounded", sans-serif;
  color: #f0f4f8;
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  margin-bottom: 1.25rem;
  position: relative;
}
.cta-band .muted {
  color: rgba(200,210,220,.65);
  margin-bottom: 1.5rem;
  position: relative;
}
.cta-band .hero-actions { justify-content: center; position: relative; }
.cta-band .btn.secondary {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: #e8edf2;
}
.cta-band .btn.secondary:hover {
  background: rgba(255,255,255,.13);
}

/* ── Scroll reveal animations ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s, transform .55s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Mobile bar upgrade ─────────────────────────────────── */
.mobile-cta-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.07);
}

/* ── Dark mode adjustments ──────────────────────────────── */
[data-theme="dark"] .card,
[data-theme="dark"] button.device-card {
  background: var(--surface);
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, #0a0d12 0%, #12161c 100%);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero { padding: 3.5rem 0 3rem; }
  .hero-stats { gap: 1.25rem; }
  .check-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 2rem 1.25rem; }
  .device-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .device-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
