/* SalesFision Bundle — shared across all *-salesfision blocks */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&family=Playfair+Display:ital,wght@1,400&display=swap');

/* ── Flag Icons (for language switcher) ── */
@import url('https://cdn.jsdelivr.net/npm/flag-icons@7.2.3/css/flag-icons.min.css');

/* ── Hide WordPress theme chrome when salesfision bundle is active ── */
body.sf-hide-chrome > header,
body.sf-hide-chrome > footer,
body.sf-hide-chrome .site-header,
body.sf-hide-chrome .site-footer,
body.sf-hide-chrome #wp-site-header,
body.sf-hide-chrome #wp-site-footer { display: none !important; }

body.sf-hide-chrome { margin: 0 !important; padding: 0 !important; }

/* ──────────────────────────────────────────────────────── */
/* NAV OVERRIDE — force transparent at rest, glass on scroll */
/* The index page had this pattern; other pages baked glass  */
/* styles in by default. We unify here across all pages.     */
/* ──────────────────────────────────────────────────────── */
body.sf-hide-chrome nav {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}
body.sf-hide-chrome nav.glass {
    background: rgba(18,18,18,0.45) !important;
    backdrop-filter: blur(18px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.6) !important;
    border-color: rgba(255,255,255,0.1) !important;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4) !important;
}

/* ── Mobile responsive (from original css/mobile.css) ── */
/* ===== SALESFISION — MOBILE RESPONSIVE ===== */
/* Only affects screens ≤ 900px. Desktop design is completely untouched. */

/* ── FLAG ICONS (all screen sizes) ── */
#langFlag.fi,
.lang-menu a .fi {
  width: 18px !important;
  height: 13px !important;
  border-radius: 2px;
  vertical-align: middle;
  display: inline-block !important;
  margin-right: 2px;
  background-size: cover;
}

/* ── HAMBURGER BUTTON (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  /* position: relative is required for z-index to apply */
  position: relative;
  z-index: 10003;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {

  /* ── NAVBAR ── */
  /* Raise nav-wrapper above the overlay so hamburger stays clickable */
  .nav-wrapper { width: calc(100% - 32px) !important; top: 10px !important; z-index: 10003 !important; }
  nav { padding: 13px 20px !important; border-radius: 40px !important; }
  .nav-hamburger { display: flex !important; }

  .nav-links {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(8, 8, 8, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    flex-direction: column !important;
    align-items: center !important;
    /* flex-start + padding prevents the overflow-scroll bug with justify-content:center */
    justify-content: flex-start !important;
    gap: 0 !important;
    z-index: 10002 !important;
    padding: 90px 32px 48px !important;
    overflow-y: auto !important;
    border: none !important;
  }
  .nav-links.nav-open { display: flex !important; }

  .nav-links > a {
    font-size: 20px !important;
    color: #ccc !important;
    padding: 14px 0 !important;
    width: 100% !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    display: block !important;
  }
  .nav-links > a:last-child { border-bottom: none !important; }
  .nav-links > a:active, .nav-links > a:hover { color: #fff !important; }
  .nav-links .nav-lang {
    font-size: 15px !important;
    color: #666 !important;
    margin-top: 8px !important;
    border-bottom: none !important;
  }

  /* Services: always fully visible on mobile — no collapsible needed */
  .nav-dropdown {
    width: 100% !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
  }
  /* "Our Services" label */
  .nav-dropdown-btn {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #e63946 !important;
    padding: 14px 0 8px !important;
    display: block !important;
    width: 100% !important;
    cursor: default !important;
    pointer-events: none !important;
  }
  /* Always show the dropdown links on mobile */
  .dropdown-menu {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-width: unset !important;
    transition: none !important;
  }
  .dropdown-menu a {
    text-align: center !important;
    font-size: 17px !important;
    color: #bbb !important;
    padding: 9px 0 !important;
    display: block !important;
    white-space: normal !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  .dropdown-menu a:active, .dropdown-menu a:hover { color: #fff !important; background: transparent !important; }

  /* Language switcher in mobile menu */
  .lang-switcher .nav-dropdown-btn {
    font-size: 13px !important;
    color: #888 !important;
    letter-spacing: 1px !important;
    cursor: default !important;
    pointer-events: none !important;
    padding: 12px 0 6px !important;
    text-transform: none !important;
  }
  .lang-switcher .dropdown-menu a {
    font-size: 18px !important;
    color: #ccc !important;
    padding: 8px 0 !important;
  }

  /* ── HERO ── */
  .hero { padding: 110px 24px 60px !important; }
  .hero h1 { font-size: clamp(36px, 9vw, 54px) !important; letter-spacing: -1px !important; margin-bottom: 16px !important; }
  .hero .sub { font-size: 14px !important; }
  .btn-hero { display: block !important; width: 100% !important; text-align: center !important; box-sizing: border-box !important; margin-bottom: 12px !important; }
  .btn-primary { display: block !important; width: 100% !important; text-align: center !important; box-sizing: border-box !important; margin-bottom: 32px !important; }
  .hero-socials { gap: 10px !important; flex-wrap: wrap !important; justify-content: center !important; }

  /* ── SECTION INNER ── */
  .section-inner { padding: 60px 20px !important; }
  .section-title h2 { font-size: 32px !important; }
  .section-title p { font-size: 15px !important; }

  /* ── FEATURE ROWS ── */
  .feature-row {
    flex-direction: column !important;
    padding: 60px 20px !important;
    gap: 40px !important;
  }
  .feature-row.reverse { flex-direction: column !important; }
  .feature-text h2 { font-size: 28px !important; line-height: 1.25 !important; }
  .feature-text p { font-size: 16px !important; margin-bottom: 24px !important; }
  .feature-text .feature-sub { font-size: 16px !important; }
  .feature-img { min-height: unset !important; width: 100% !important; }
  .see-more, .btn-outline { display: block !important; width: 100% !important; text-align: center !important; box-sizing: border-box !important; }

  /* ── SERVICE PAGE ANIMATION CONTAINERS ── */
  /* Scale down the animation boxes so they fit mobile without overflowing */
  .feature-img > div[style*="width:600px"],
  .feature-img > div[style*="width:500px"],
  .feature-img > div[style*="width:560px"],
  .feature-img > div[style*="width:520px"],
  .feature-img > div[style*="width:540px"],
  .fv-wrap, .ai-wrap, .hs-wrap, .sm-wrap, .ra-wrap, .soc-wrap {
    transform: scale(0.7) !important;
    transform-origin: top center !important;
    margin-bottom: -80px !important;
  }

  /* ── SERVICES GRID (5-col → 2-col) ── */
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; margin-top: 32px !important; }
  .svc-card { padding: 18px 12px !important; }
  .svc-card .svc-icon { width: 48px !important; height: 48px !important; margin-bottom: 12px !important; }

  /* ── BLOG / USE CASES ── */
  .usecases-grid { grid-template-columns: 1fr !important; padding: 0 20px !important; }
  .usecases-header { padding: 0 20px !important; }
  .usecases-header h2 { font-size: 28px !important; }
  .blog-grid { grid-template-columns: 1fr !important; }

  /* ── PRICING ── */
  .pricing-section { padding: 80px 20px !important; }
  .pricing-inner h2 { font-size: 30px !important; }
  .pricing-inner .sub { font-size: 14px !important; }
  .pricing-cards { flex-direction: column !important; align-items: center !important; gap: 20px !important; }
  .pricing-card { width: 100% !important; max-width: 420px !important; padding: 36px 24px !important; }
  .pricing-section .astronaut { display: none !important; }

  /* ── TESTIMONIALS ── */
  .testimonials-section { padding: 64px 20px !important; }
  .testimonials-grid { gap: 16px !important; margin-top: 36px !important; }
  .testimonial-card { width: 100% !important; min-width: unset !important; padding: 28px 20px !important; }

  /* ── CTA SECTION ── */
  .cta-section { padding: 64px 20px !important; }
  .cta-card { padding: 40px 20px !important; }
  .cta-section h2 { font-size: 26px !important; }
  .cta-section p { font-size: 14px !important; }
  .cta-section .btn-outline,
  .cta-section a.btn-outline { display: inline-block !important; width: auto !important; }

  /* ── FOOTER ── */
  footer { padding: 48px 20px 28px !important; }
  .footer-top { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; padding-bottom: 24px !important; margin-bottom: 32px !important; }
  .footer-cols { flex-direction: column !important; gap: 24px !important; margin-bottom: 32px !important; }
  .footer-col { min-width: unset !important; }
  .footer-bottom { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }

  /* ── DECORATIVE ELEMENTS ── */
  .page-deco { display: none !important; }

  /* ── RESULTS / STATS (index) ── */
  .results-inner { flex-direction: column !important; gap: 32px !important; align-items: center !important; }
  .results-num { font-size: 48px !important; }

  /* ── PAGE HERO (sub-pages) ── */
  .page-hero { padding: 110px 20px 48px !important; }
  .page-hero h1 { font-size: 32px !important; }
  .page-hero p { font-size: 15px !important; }

  /* ── ABOUT PAGE TIMELINE ── */
  .timeline-inner { padding: 60px 20px !important; }
  .timeline-title { margin-bottom: 40px !important; }
  .timeline-title h2 { font-size: 28px !important; }
  .timeline::before { display: none !important; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) { flex-direction: column !important; gap: 12px !important; margin-bottom: 24px !important; }
  .timeline-dot { display: none !important; }
  .timeline-content { text-align: left !important; padding: 20px !important; }
  .timeline-content:nth-child(1) { text-align: left !important; }

  /* ── CONTACT PAGE ── */
  .contact-section { padding: 60px 20px !important; }
  .contact-info h2 { font-size: 26px !important; }
  .contact-form { padding: 24px 16px !important; }
  .map-section { padding: 40px 20px !important; }

  /* ── MODAL ── */
  #meetingModal { padding: 12px !important; }
  .modal-box-wrapper { max-width: 100% !important; width: 100% !important; }
  .modal-box-wrapper > div { padding: 32px 16px !important; border-radius: 16px !important; }
  .modal-options { grid-template-columns: 1fr !important; gap: 6px !important; }
  #meetingModal .modal-box-wrapper > div > div[style*="display:grid"] {
    grid-template-columns: 1fr !important;
  }
  #meetingModal h2 { font-size: 22px !important; }

  /* ── SERVICE PAGE INNER LAYOUTS ── */
  .section-inner [style*="display:flex"][style*="gap"] {
    flex-wrap: wrap !important;
  }

  /* Trusted logos — reduce height on mobile */
  .logo-item { height: 60px !important; min-width: 110px !important; padding: 0 16px !important; }
  .logo-item img { height: 26px !important; }

}

/* Extra small screens */
@media (max-width: 480px) {
  .hero h1 { font-size: 32px !important; }
  .section-title h2 { font-size: 26px !important; }
  .feature-text h2 { font-size: 24px !important; }
  .services-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .pricing-card { max-width: 100% !important; }
}
