/* =============================================
   VOLTRA SERVICES — Services.css  (Full Rebuild)
   Mobile-first, hamburger nav, Claim Service buttons
   ============================================= */

.services-page { background-color: #0a0a0a; }
.services-page .page-bg { display: none; }

/* ── Main — mobile default ── */
.svc-main {
  position: relative;
  z-index: 1;
  padding-top: calc(56px + 28px);
  padding-bottom: 0;
  min-height: 100vh;
}

/* ================================================
   PAGE HEADER
   ================================================ */
.svc-header { text-align: center; padding: 0 16px 36px; }

.svc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em;
  color: #e5e7eb;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 5px 16px; margin-bottom: 18px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: #4a9eff; border-radius: 50%; flex-shrink: 0;
}

.svc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 8vw, 6rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.01em; line-height: 1; margin-bottom: 16px;
}

.svc-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  line-height: 1.65; max-width: 520px; margin: 0 auto 22px;
}

.svc-divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, #1a8cff, #5ab4ff);
  border-radius: 2px; margin: 0 auto;
}

/* ================================================
   CARD GRID — mobile: 1 col
   ================================================ */
.svc-grid-section { padding: 0 16px 40px; max-width: 1280px; margin: 0 auto; }

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ── Card ── */
.svc-card {
  background: #111318;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s, border-color 0.25s, transform 0.22s, box-shadow 0.25s;
  animation: cardReveal 0.5s ease both;
}
.svc-card:hover {
  border-color: rgba(74,158,255,0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,140,255,0.12);
}

.svc-card[data-index="0"]  { animation-delay: 0.03s; }
.svc-card[data-index="1"]  { animation-delay: 0.06s; }
.svc-card[data-index="2"]  { animation-delay: 0.09s; }
.svc-card[data-index="3"]  { animation-delay: 0.12s; }
.svc-card[data-index="4"]  { animation-delay: 0.15s; }
.svc-card[data-index="5"]  { animation-delay: 0.18s; }
.svc-card[data-index="6"]  { animation-delay: 0.21s; }
.svc-card[data-index="7"]  { animation-delay: 0.24s; }
.svc-card[data-index="8"]  { animation-delay: 0.27s; }
.svc-card[data-index="9"]  { animation-delay: 0.30s; }
.svc-card[data-index="10"] { animation-delay: 0.33s; }
.svc-card[data-index="11"] { animation-delay: 0.36s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Icon ── */
.svc-icon-wrap { width: 52px; height: 52px; flex-shrink: 0; }
.svc-svg { width: 52px; height: 52px; display: block; }

/* ── Text ── */
.svc-name {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.3; margin: 0;
}
.svc-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 0.76rem; color: rgba(255,255,255,0.55); line-height: 1.55; margin: 0; flex: 1;
}
.ai-badge { font-weight: 400; font-size: 0.8em; color: rgba(255,255,255,0.45); }

/* ── Tags ── */
.svc-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 20px; }
.tag {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem; font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; padding: 3px 7px; white-space: nowrap;
}

/* ── Claim Service Button ── */
.svc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: #86efac;
  border: 1px solid rgba(37,211,102,0.45);
  background: rgba(37,211,102,0.08);
  transition: background 0.2s, border-color 0.2s, transform 0.18s, color 0.2s;
  margin-top: auto;
  letter-spacing: 0.02em;
}
.svc-btn:hover {
  background: rgba(37,211,102,0.18);
  border-color: rgba(37,211,102,0.7);
  transform: translateY(-2px);
}

/* ================================================
   BOTTOM BANNER
   ================================================ */
.svc-banner {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  width: calc(100% - 32px);
  max-width: 1216px;
  margin: 0 auto 48px;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

.banner-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 20px;
}

.banner-tagline { display: flex; align-items: stretch; gap: 14px; }
.banner-bar { width: 4px; background: #1a8cff; border-radius: 2px; flex-shrink: 0; }
.banner-line1 {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem; font-weight: 600; color: #fff; margin: 0; line-height: 1.4;
}
.banner-line2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0; line-height: 1.2;
}

.banner-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
}
.pillar { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.pillar-icon {
  font-size: 1.3rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
}
.pillar span {
  font-family: 'Barlow', sans-serif;
  font-size: 0.68rem; font-weight: 500;
  color: rgba(255,255,255,0.6); text-align: center;
}

.banner-cta { display: flex; flex-direction: column; gap: 10px; }
.banner-cta-text {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem; color: rgba(255,255,255,0.7); margin: 0;
}

.btn-banner {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #1a8cff; color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  padding: 12px 22px; border-radius: 8px; text-decoration: none;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(26,140,255,0.4);
  white-space: nowrap; width: 100%; justify-content: center;
}
.btn-banner:hover {
  background: #3d9fff; transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(26,140,255,0.55);
}

/* ================================================
   RESPONSIVE — scale up
   ================================================ */

/* 480px — 2 columns */
@media (min-width: 480px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .svc-grid-section { padding: 0 20px 40px; }
  .svc-banner { width: calc(100% - 40px); }
}

/* 640px — retain two balanced columns for tablets */
@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
}

/* 768px — banner row layout */
@media (min-width: 768px) {
  .banner-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 26px 28px;
  }
  .banner-pillars {
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
    border-top: none; border-bottom: none;
    padding: 0 28px;
    gap: 20px;
  }
  .banner-cta { align-items: flex-end; }
  .btn-banner { width: auto; }
}

/* 900px — desktop nav + 4 columns */
@media (min-width: 900px) {
  .svc-main { padding-top: calc(68px + 52px); }
  .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .svc-grid-section { padding: 0 32px 48px; }
  .svc-banner { width: calc(100% - 64px); margin-bottom: 60px; }
  .svc-header { padding: 0 32px 48px; }
}

/* 1100px — keep eight services in two balanced rows */
@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .banner-inner { padding: 30px 40px; gap: 40px; }
  .banner-pillars { padding: 0 40px; }
}



/* ================================================
   HAMBURGER BUTTON
   ================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 4px;
  flex-shrink: 0; z-index: 300;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, background 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   MOBILE NAVBAR  <=680px
   ================================================ */
@media (max-width: 680px) {
  .nav-hamburger { display: flex; }
  .navbar {
    top: 0 !important; left: 0 !important; right: 0 !important;
    transform: none !important; width: 100% !important; border-radius: 0 !important;
  }
  .nav-inner {
    border-radius: 0 !important; width: 100% !important;
    padding: 0 18px !important; height: 56px !important;
    display: flex !important; align-items: center !important;
    justify-content: space-between !important; position: relative !important;
  }
  .nav-links {
    display: none !important;
    position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(6,14,38,0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(26,140,255,0.3);
    border-bottom: 1px solid rgba(26,140,255,0.3);
    padding: 8px 0 12px; gap: 0; height: auto; z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .nav-links.is-open {
    display: flex !important;
    animation: svcNavSlide 0.22s ease both;
  }
  @keyframes svcNavSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links li { width: 100%; }
  .nav-link {
    display: block !important; width: 100% !important;
    padding: 14px 24px !important; font-size: 0.92rem !important;
    border-radius: 0 !important; text-align: left !important;
    letter-spacing: 0.05em !important;
    color: rgba(255,255,255,0.75) !important;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s;
  }
  .nav-link:hover { background: rgba(26,140,255,0.1) !important; color: #fff !important; }
  .nav-link.active {
    border-left: 3px solid #1a8cff !important;
    color: #fff !important; background: rgba(26,140,255,0.1) !important;
    padding-left: 21px !important;
  }
  .nav-link.active::after { display: none !important; }

  .svc-banner {
    border-radius: 16px;
  }
  .banner-inner {
    padding: 24px 18px;
    gap: 22px;
  }
  .banner-tagline {
    justify-content: center;
  }
  .banner-pillars {
    gap: 18px 10px;
  }
  .banner-cta {
    align-items: stretch;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card { animation: none; }
  .svc-card:hover { transform: none; }
}

/* ================================================
   LIGHT MODE — toggled by .light-mode on <body>
   (Shared nav pill / hamburger / theme-toggle switch
   styling is already handled by Home.css since it
   loads first. This section covers everything unique
   to the Services page.)
   ================================================ */

body.light-mode.services-page {
  background-color: #f0f4ff;
  color: #0d1117;
}

/* Page header */
body.light-mode .svc-eyebrow {
  color: #334155;
  background: rgba(26,140,255,0.06);
  border-color: rgba(26,140,255,0.22);
}
body.light-mode .svc-title { color: #0d1117; }
body.light-mode .svc-subtitle { color: #475569; }

/* Service cards */
body.light-mode .svc-card {
  background: #ffffff;
  border-color: rgba(26,140,255,0.15);
  box-shadow: 0 4px 20px rgba(26,140,255,0.06);
}
body.light-mode .svc-card:hover {
  border-color: rgba(26,140,255,0.4);
  box-shadow: 0 12px 32px rgba(26,140,255,0.12);
}
body.light-mode .svc-name { color: #0d1117; }
body.light-mode .svc-desc { color: #64748b; }
body.light-mode .ai-badge { color: #94a3b8; }

/* Tags */
body.light-mode .tag {
  color: #334155;
  background: rgba(26,140,255,0.06);
  border-color: rgba(26,140,255,0.2);
}

/* Claim Service button — darker green for contrast on white cards */
body.light-mode .svc-btn {
  color: #15803d;
  background: rgba(22,163,74,0.08);
  border-color: rgba(22,163,74,0.4);
}
body.light-mode .svc-btn:hover {
  background: rgba(22,163,74,0.16);
  border-color: rgba(22,163,74,0.65);
}

/* Bottom banner */
body.light-mode .svc-banner {
  background: #ffffff;
  border-color: rgba(26,140,255,0.15);
}
body.light-mode .banner-line1 { color: #334155; }
body.light-mode .banner-line2 { color: #0d1117; }
body.light-mode .banner-pillars {
  border-color: rgba(26,140,255,0.12);
}
body.light-mode .pillar-icon {
  background: rgba(26,140,255,0.06);
  border-color: rgba(26,140,255,0.2);
}
body.light-mode .pillar span { color: #64748b; }
body.light-mode .banner-cta-text { color: #475569; }

/* Mobile dropdown nav — Services.css defines its own !important
   rules above, so these are matched to win on specificity */
body.light-mode .nav-links {
  background: rgba(255,255,255,0.98) !important;
  border-color: rgba(26,140,255,0.2) !important;
  box-shadow: 0 8px 32px rgba(15,23,42,0.08) !important;
}
body.light-mode .nav-link {
  color: #334155 !important;
}
body.light-mode .nav-link:hover {
  background: rgba(26,140,255,0.08) !important;
  color: #1a8cff !important;
}
body.light-mode .nav-link.active {
  color: #1a8cff !important;
  background: rgba(26,140,255,0.08) !important;
}