/*
 * iFix Cellfone — modern-v7.css
 * Design refresh: typography, surfaces, motion, booking page
 */

:root {
  --red: #e8192c;
  --red-h: #ff3b4d;
  --red-glow: rgba(232, 25, 44, 0.35);
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3efe8;
  --ink: #12100c;
  --mid: #5c5348;
  --dim: #8f8478;
  --dark: #0a0806;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 12px 40px rgba(18, 16, 12, 0.08);
  --shadow-hover: 0 20px 50px rgba(18, 16, 12, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --fh: 'Familjen Grotesk', sans-serif;
  --fb: 'Plus Jakarta Sans', sans-serif;
}

html.dark {
  --bg: #0c0b09;
  --surface: #161412;
  --surface-2: #1e1b17;
  --ink: #f5f0e8;
  --mid: #b8aa9a;
  --dim: #7d7268;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
}

/* Header — refined glass */
.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent) !important;
}
.site-header.shadow {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
}
.logo-name {
  font-size: 1.28rem !important;
  letter-spacing: -0.03em !important;
}
.hdr-book {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.02em;
}
.mega-drop {
  min-width: 400px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-hover) !important;
}
.drop-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.35rem !important;
}
.drop-item {
  border-radius: var(--radius-md) !important;
}
.drop-item:hover {
  transform: translateY(-1px);
}

/* Hero — cinematic */
.hero-slider {
  border-radius: 0 0 clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px);
}
.hs-overlay {
  background: linear-gradient(
    105deg,
    rgba(6, 4, 2, 0.88) 0%,
    rgba(6, 4, 2, 0.55) 48%,
    rgba(6, 4, 2, 0.2) 100%
  ) !important;
}
.hs-h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem) !important;
  letter-spacing: -0.045em !important;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hs-h1 .hs-red {
  background: linear-gradient(135deg, #ff4d5e 0%, #e8192c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hs-btn-p {
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}
.hs-statsbar {
  background: rgba(8, 6, 4, 0.75) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.hs-stat-n {
  font-variant-numeric: tabular-nums;
}

/* Homepage sections */
.svcs,
.hiw,
.why,
.faqs,
.reviews-sec,
.cta-band {
  padding-top: clamp(64px, 8vw, 96px) !important;
  padding-bottom: clamp(64px, 8vw, 96px) !important;
}
.svc,
.hiw-card,
.why-card,
.rv {
  background: var(--surface) !important;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s !important;
}
.svc:hover,
.hiw-card:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover) !important;
  border-color: color-mix(in srgb, var(--red) 25%, transparent) !important;
}
.svc.star {
  background: linear-gradient(145deg, #1a0508 0%, #2d0f14 50%, #1a080a 100%) !important;
  border-color: rgba(232, 25, 44, 0.35) !important;
}
.s-title,
.s-h2 {
  letter-spacing: -0.04em !important;
}
.btn-primary,
.btn-red,
.btn-r {
  border-radius: 999px !important;
}

/* Booking page */
.page-booking .mobile-bottom-bar {
  display: none !important;
}
body.page-booking {
  padding-bottom: 0 !important;
}
.booking-hero {
  padding: clamp(100px, 12vw, 130px) 0 2rem;
}
.booking-page {
  min-height: 50vh;
  padding-bottom: 4rem;
}
.booking-page .techpro-booking,
.booking-page form {
  border-radius: var(--radius-lg);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0d0b08 0%, #080604 100%) !important;
}
.ftr-book-chip {
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.ftr-book-chip:hover {
  transform: translateY(-2px);
}

/* City / service pages */
.c-hero,
.sp-hero,
.svc-hero {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.c-why-card,
.sp-card {
  border-radius: var(--radius-md) !important;
}

/* Topbar accent */
.topbar {
  background: linear-gradient(90deg, #0a0806 0%, #14100c 50%, #0a0806 100%) !important;
  border-bottom: 1px solid rgba(232, 25, 44, 0.15) !important;
}
.tb-dot {
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

/* Reach strip — premium dark band */
.reach-strip {
  background: linear-gradient(180deg, #0a0806 0%, #12100c 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.reach-cell {
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out) !important;
}
.reach-cell:hover {
  background: rgba(232, 25, 44, 0.08) !important;
  transform: translateY(-2px);
}

/* How-it-works cards */
.how-card,
.how-card.reveal {
  background: var(--surface) !important;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
}
.how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover) !important;
}
.how-step {
  font-variant-numeric: tabular-nums;
  color: var(--red) !important;
  opacity: 0.9;
}

/* Service grid links */
.svc-lnk {
  font-weight: 700;
  color: var(--red);
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}
.svc-lnk:hover {
  gap: 0.45rem;
}

/* Page sections unified */
.pg-section,
.sp-sec,
.c-sec {
  position: relative;
}
.section-title,
.sp-h2,
.c-h1 {
  letter-spacing: -0.04em !important;
}
.eyebrow,
.sp-eye,
.s-eyebrow {
  font-weight: 700;
}

/* Booking — glass card */
.booking-hero {
  padding-top: clamp(108px, 12vw, 140px);
  padding-bottom: 1.5rem;
}
.booking-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.booking-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--mid);
}
.booking-shell {
  max-width: 920px;
  margin: 0 auto 3rem;
}
.booking-glass {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
html.dark .booking-glass {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--ink) 20%, transparent);
}
.booking-help {
  text-align: center;
  padding-bottom: 3rem;
  color: var(--mid);
  font-size: 0.92rem;
}
.booking-help a {
  color: var(--red);
  font-weight: 600;
}

/* CTA bands */
.cta-box,
.sp-cta-box,
.c-cta-box {
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;
}

/* FAQ polish */
.faq-list,
.sp-faq-list,
.c-faq-list {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* Area city chips */
.sp-area-link,
.c-area-link {
  border-radius: 10px !important;
  transition: transform 0.15s, border-color 0.2s, background 0.2s !important;
}
.sp-area-link:hover {
  transform: translateY(-1px);
}

/* Desktop floating book hint (subtle) */
@media (min-width: 981px) {
  .hdr-book {
    position: relative;
    overflow: hidden;
  }
  .hdr-book::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.6s;
  }
  .hdr-book:hover::after {
    transform: translateX(120%);
  }
}

/* Mega menu scroll on small laptops */
.mega-drop {
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
  .svc:hover,
  .hiw-card:hover,
  .why-card:hover,
  .how-card:hover,
  .drop-item:hover,
  .reach-cell:hover {
    transform: none;
  }
  .hdr-book::after {
    display: none;
  }
}

/* ── v7.3: Global smooth polish ── */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.site-header,
.mega-drop,
.mobile-drawer,
.svc,
.hiw-card,
.why-card,
.how-card,
.rv,
.faq-list,
.sp-card,
.c-why-card,
.area-card,
.btn-r,
.btn-outline,
.btn-w,
.hdr-book,
.hdr-call {
  transition:
    background-color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    color 0.25s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    transform 0.25s var(--ease-out);
}

/* System dark — mirror html.dark when class not yet set */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0c0b09;
    --surface: #161412;
    --surface-2: #1e1b17;
    --ink: #f5f0e8;
    --mid: #b8aa9a;
    --dim: #7d7268;
    color-scheme: dark;
  }
  html:not([data-theme="light"]) body {
    background: var(--bg);
    color: var(--ink);
  }
  html:not([data-theme="light"]) .site-header {
    background: color-mix(in srgb, var(--bg) 88%, transparent) !important;
    border-bottom-color: color-mix(in srgb, var(--ink) 12%, transparent) !important;
  }
  html:not([data-theme="light"]) .topbar {
    background: #0a0806;
  }
  html:not([data-theme="light"]) .mega-drop,
  html:not([data-theme="light"]) .mobile-drawer {
    background: var(--surface) !important;
    border-color: color-mix(in srgb, var(--ink) 15%, transparent) !important;
  }
  html:not([data-theme="light"]) .logo-name,
  html:not([data-theme="light"]) h1,
  html:not([data-theme="light"]) h2,
  html:not([data-theme="light"]) h3,
  html:not([data-theme="light"]) .section-title {
    color: var(--ink);
  }
  html:not([data-theme="light"]) .main-nav a,
  html:not([data-theme="light"]) .main-nav button {
    color: var(--mid);
  }
  html:not([data-theme="light"]) .svc,
  html:not([data-theme="light"]) .hiw-card,
  html:not([data-theme="light"]) .why-card,
  html:not([data-theme="light"]) .how-card,
  html:not([data-theme="light"]) .rv,
  html:not([data-theme="light"]) .faq-list,
  html:not([data-theme="light"]) .sp-card,
  html:not([data-theme="light"]) .c-why-card {
    background: var(--surface);
    border-color: color-mix(in srgb, var(--ink) 12%, transparent);
  }
  html:not([data-theme="light"]) .pg-section.mobile-coverage,
  html:not([data-theme="light"]) .c-mobile-seo {
    background: var(--surface-2) !important;
  }
}
