/**
 * Scan2Verify Brand Override
 * Overrides Studio template's default blue with our primary #4060F8
 */
:root {
  --bs-theme: #4060F8 !important;
  --bs-theme-rgb: 64, 96, 248 !important;
  --bs-theme-color: #ffffff !important;
  --bs-theme-color-rgb: 255, 255, 255 !important;
}

/* Navbar brand */
.navbar-brand img {
  height: 36px;
}

/* Hero overlay for dark backgrounds */
.s2v-hero-gradient {
  background: linear-gradient(135deg, #00194C 0%, #4060F8 100%);
}

/* Page hero banner */
.s2v-page-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2d55c8 50%, #4060F8 100%);
  color: #fff;
  padding: 80px 0 60px;
}
.s2v-page-hero h1,
.s2v-page-hero p {
  color: #fff;
}

/* Footer brand */
.footer-logo {
  height: 36px;
  filter: brightness(0) invert(1);
}

/* Blog card */
.blog-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Verify form wizard steps */
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
}

/* Custom card hover */
.s2v-feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.s2v-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(64, 96, 248, 0.15) !important;
}

/* Industry icon boxes */
.s2v-industry-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Stats bar */
.s2v-stats-bar {
  background: linear-gradient(135deg, #00194C 0%, #4060F8 100%);
  color: #fff;
}

/* Trust logos */
.trust-logo {
  height: 32px;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.2s;
}
.trust-logo:hover {
  filter: grayscale(0) opacity(1);
}

/* Navbar transparent → solid on scroll */
.app-header.navbar.transparent-nav {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.app-header.navbar.transparent-nav.scrolled {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.08) !important;
}

/* Utility size helpers used in views */
.w-35px { width: 35px; height: 35px; }
.w-40px { width: 40px !important; }
.h-40px { height: 40px !important; }
.w-45px { width: 45px !important; }
.h-45px { height: 45px !important; }
.w-50px { width: 50px !important; }
.h-50px { height: 50px !important; }
.w-55px { width: 55px !important; }
.h-55px { height: 55px !important; }
.w-60px { width: 60px !important; }
.h-60px { height: 60px !important; }
.w-70px { width: 70px !important; }
.h-70px { height: 70px !important; }
.h-200px { height: 200px !important; }
.fs-10px { font-size: 10px !important; }
.fs-12px { font-size: 12px !important; }
.fs-13px { font-size: 13px !important; }
.fs-14px { font-size: 14px !important; }
.fs-15px { font-size: 15px !important; }
.fs-16px { font-size: 16px !important; }
.fs-18px { font-size: 18px !important; }
.fs-22px { font-size: 22px !important; }
.fs-24px { font-size: 24px !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.flex-1 { flex: 1 !important; }
.bg-component { background-color: #f8f9fa !important; }
.font-monospace { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; }

/* Button variants used on pages */
.btn-white { background-color: #fff; border-color: #fff; color: #212529; }
.btn-white:hover { background-color: #f0f0f0; border-color: #f0f0f0; }
.btn-outline-white { border: 2px solid rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.btn-outline-theme { border: 2px solid #4060F8; color: #4060F8; background: transparent; }
.btn-outline-theme:hover { background: #4060F8; color: #fff; }

/* bg-purple utility */
.bg-purple { background-color: #a855f7 !important; }

/* z-index helpers */
.z-2 { z-index: 2; }

/* Responsive fixes */
@media (max-width: 768px) {
  .s2v-page-hero {
    padding: 60px 0 40px;
  }
  .s2v-page-hero h1 {
    font-size: 1.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   S2V MOBILE DRAWER — slide-from-right, fully branded
   Visible only on screens < 992px (Bootstrap lg breakpoint)
═══════════════════════════════════════════════════════════════ */

/* ── Hamburger button ─────────────────────────────────────────── */
.s2v-mob-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 200;
    position: relative;
}
.s2v-mob-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--s2v-primary, #4060F8);
    border-radius: 3px;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}
/* Animate to X when open */
.s2v-mob-toggle.is-open span:nth-child(1) { transform: translateY(9.75px) rotate(45deg); }
.s2v-mob-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.s2v-mob-toggle.is-open span:nth-child(3) { transform: translateY(-9.75px) rotate(-45deg); }

/* ── Backdrop ─────────────────────────────────────────────────── */
.s2v-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 25, 76, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.s2v-drawer-backdrop.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* ── Drawer panel ─────────────────────────────────────────────── */
.s2v-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: #ffffff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -8px 0 40px rgba(0, 25, 76, 0.18);
    overflow: hidden;
}
.s2v-drawer.is-open {
    transform: translateX(0);
}

/* ── Drawer head ──────────────────────────────────────────────── */
.s2v-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #00194C 0%, #1a3080 100%);
    flex-shrink: 0;
}
.s2v-drawer-logo {
    height: 38px;
    width: auto;
    /* Make logo stand out on dark background */
    filter: brightness(0) invert(1);
}
.s2v-drawer-close {
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.25);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}
.s2v-drawer-close:hover {
    background: rgba(255,255,255,.25);
    transform: rotate(90deg);
}

/* ── Nav links ────────────────────────────────────────────────── */
.s2v-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0 8px;
    -webkit-overflow-scrolling: touch;
}
/* Thin scrollbar */
.s2v-drawer-nav::-webkit-scrollbar { width: 4px; }
.s2v-drawer-nav::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 4px; }

.s2v-drawer-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 13px 20px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: background .18s, color .18s, padding-left .18s;
    border-left: 3px solid transparent;
    gap: 4px;
}
.s2v-drawer-link:hover {
    background: #f0f4ff;
    color: var(--s2v-primary, #4060F8);
    padding-left: 26px;
    border-left-color: var(--s2v-primary, #4060F8);
}
.s2v-drawer-link--active {
    color: var(--s2v-primary, #4060F8) !important;
    background: #eef1ff !important;
    border-left-color: var(--s2v-primary, #4060F8) !important;
    font-weight: 600;
}
.s2v-drawer-icon {
    width: 30px;
    height: 30px;
    background: #f0f4ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--s2v-primary, #4060F8);
    flex-shrink: 0;
    margin-right: 10px;
    transition: background .18s;
}
.s2v-drawer-link:hover .s2v-drawer-icon,
.s2v-drawer-link--active .s2v-drawer-icon {
    background: #d9e0ff;
}

/* ── Services accordion ───────────────────────────────────────── */
.s2v-drawer-group {
    /* wrapper so the sub slides inside */
}
.s2v-accord-arrow {
    font-size: 11px;
    transition: transform .3s ease;
    color: #94a3b8;
}
.s2v-drawer-accordion[aria-expanded="true"] .s2v-accord-arrow {
    transform: rotate(180deg);
    color: var(--s2v-primary, #4060F8);
}
.s2v-drawer-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
    background: #f8f9fe;
    border-left: 3px solid #d0d9ff;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 0 0 8px 8px;
}
.s2v-drawer-sub.is-open {
    max-height: 220px;
}
.s2v-drawer-sub-link {
    display: block;
    padding: 10px 16px;
    color: #475569;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color .18s, background .18s;
    border-radius: 6px;
}
.s2v-drawer-sub-link:hover {
    color: var(--s2v-primary, #4060F8);
    background: #eef1ff;
}
.s2v-drawer-sub-link.s2v-drawer-link--active {
    color: var(--s2v-primary, #4060F8) !important;
    font-weight: 600;
    background: #eef1ff !important;
}

/* ── Drawer footer ────────────────────────────────────────────── */
.s2v-drawer-footer {
    padding: 16px 20px 28px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}
.s2v-drawer-user {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}
.s2v-drawer-footer .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 11px 16px;
}

/* ── Body lock when drawer open ───────────────────────────────── */
body.s2v-drawer-lock {
    overflow: hidden;
    touch-action: none;
}

/* ── Hide old #mobile_btn (keep legacy JS harmless) ──────────── */
#mobile_btn { display: none !important; }

/* ── Kill the old slide-from-left wrapper on ALL mobile sizes ─── *
 *  style.css makes .main-menu-wrapper a fixed left-side panel     *
 *  with transform: translateX(-260px) at < 992px, and             *
 *  html.menu-opened .main-menu-wrapper { transform: translateX(0) }
 *  slides it in when the old #mobile_btn / script.js fires.       *
 *  We destroy that entirely so only our new drawer is used.        */
@media (max-width: 991.98px) {
    /* The old wrapper: always hidden, never slides */
    .main-menu-wrapper {
        display: none !important;
        transform: none !important;
        transition: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    /* Prevent the old script.js "menu-opened" class from doing anything */
    html.menu-opened .main-menu-wrapper {
        display: none !important;
        transform: none !important;
    }
    /* Kill the old sidebar-overlay that script.js appends */
    .sidebar-overlay {
        display: none !important;
        pointer-events: none !important;
    }
    /* Kill the old body overflow lock from html.menu-opened */
    html.menu-opened body {
        overflow: auto !important;
    }
}

/* ── Ensure the drawer itself is hidden on desktop ───────────── */
@media (min-width: 992px) {
    .s2v-drawer,
    .s2v-drawer-backdrop,
    .s2v-mob-toggle {
        display: none !important;
    }
}
