/*
Theme Name: Bavari MBC - IT Infrastructure & Systems
Theme URI: https://bavarimbc.com/
Author: Bavari MBC / Ezequiel Balbuena Vargas
Author URI: https://bavarimbc.com/
Description: Premium Child Theme for Bavari MBC specializing in mission-critical hybrid IT infrastructure, cloud migrations (Azure/AWS), virtualization (VMware/Proxmox/Hyper-V), high-availability architectures (99.99% uptime), 24/7 monitoring, and enterprise systems automation.
Template: blockskit-base
Version: 1.0.1
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: bavari-mbc-child
Tags: full-site-editing, block-patterns, dark-mode, it-services, infrastructure, cloud, enterprise, devops
*/

/* ==========================================================================
   1. Design Tokens & CSS Variables
   ========================================================================== */

:root {
  --bavari-bg-dark: #0b0f19;
  --bavari-bg-surface: #0f172a;
  --bavari-card-bg: rgba(22, 28, 45, 0.85);
  --bavari-card-border: rgba(99, 102, 241, 0.2);
  --bavari-card-hover: rgba(99, 102, 241, 0.35);
  --bavari-primary: #6366f1;
  --bavari-primary-hover: #4f46e5;
  --bavari-accent: #38bdf8;
  --bavari-success: #10b981;
  --bavari-text-light: #f8fafc;
  --bavari-text-muted: #94a3b8;
  --bavari-glow: 0 0 25px rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   2. Global Reset & Responsive Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#services,
#portfolio,
#about,
#contact {
  scroll-margin-top: 85px;
}

html,
body {
  background-color: #0b0f19 !important;
  color: #f8fafc;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: clip;
  max-width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks,
main,
main.wp-block-group {
  background-color: #0b0f19 !important;
  color: #f8fafc;
  margin: 0 !important;
  max-width: 100%;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

/* Eliminate block gaps and margins between full-width sections */
.wp-block-group.alignfull,
#services,
#about,
#contact {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-top: none !important;
  border-bottom: none !important;
}

main > * + *,
.is-layout-constrained > .alignfull,
.is-layout-flow > .alignfull {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ==========================================================================
   3. Header & Navigation (Desktop & Mobile)
   ========================================================================== */

.bavari-header {
  position: relative;
  z-index: 99999;
  width: 100%;
  background: #0b0f19 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.bavari-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 110px 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
}

.bavari-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  gap: 10px;
  flex-shrink: 0;
}

.bavari-brand-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(255, 120, 50, 0.35));
  transition: transform 0.25s ease;
}

.bavari-brand:hover .bavari-brand-logo {
  transform: scale(1.06) rotate(-3deg);
}

.bavari-brand-text {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  white-space: nowrap;
}

.bavari-brand-text span {
  color: #38bdf8 !important;
}

.bavari-desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.bavari-nav-item {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap !important;
  word-break: keep-all !important;
  transition: all 0.2s ease;
}

.bavari-nav-item:hover {
  color: #ffffff !important;
  background: rgba(99, 102, 241, 0.18);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.bavari-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 100005 !important;
}

.bavari-cta-desktop {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 9999px;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: all 0.25s ease;
}

.bavari-cta-desktop:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

.bavari-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 9px 8px;
  cursor: pointer !important;
  box-sizing: border-box;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: rgba(99, 102, 241, 0.3);
  touch-action: manipulation !important;
  position: relative;
  z-index: 100006 !important;
  pointer-events: auto !important;
}

.bavari-hamburger:hover,
.bavari-hamburger:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: #38bdf8;
  outline: none;
}

.bavari-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  pointer-events: none !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.bavari-hamburger.is-active .bavari-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.bavari-hamburger.is-active .bavari-bar:nth-child(2) {
  opacity: 0;
}

.bavari-hamburger.is-active .bavari-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.bavari-mobile-menu {
  display: none;
  position: relative !important;
  width: 100%;
  background: #0f172a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px 24px 20px;
  box-sizing: border-box;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
  z-index: 99998;
}
  width: 100%;
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px 24px 20px;
  box-sizing: border-box;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
  z-index: 99998;
}

.bavari-mobile-menu.is-open {
  display: block !important;
  animation: bavariSlideDown 0.22s ease-out;
}

@keyframes bavariSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bavari-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
  margin: 0 auto;
}

.bavari-mob-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f1f5f9 !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap !important;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.bavari-mob-link:hover,
.bavari-mob-link:active {
  background: rgba(99, 102, 241, 0.22);
  border-color: #818cf8;
  color: #38bdf8 !important;
}

.bavari-mob-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 20px;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  -webkit-tap-highlight-color: transparent;
}

/* GTranslate Language Switcher Styling & Positioning */
.gt_switcher_wrapper {
  z-index: 99990 !important;
}

@media screen and (max-width: 991px) {
  .bavari-header-container {
    padding: 12px 16px !important;
    gap: 12px !important;
  }
  .bavari-desktop-nav {
    display: none !important;
  }
  .bavari-cta-desktop {
    display: none !important;
  }
  .bavari-hamburger {
    display: flex !important;
  }
  .gt_switcher_wrapper {
    top: 13px !important;
    right: 70px !important;
  }
}

@media screen and (max-width: 480px) {
  .bavari-brand-logo {
    width: 36px !important;
    height: 36px !important;
  }
  .bavari-brand-text {
    font-size: 1.2rem !important;
  }
}

@media screen and (max-width: 360px) {
  .bavari-brand-text {
    font-size: 1.05rem !important;
  }
  .bavari-header-container {
    padding: 10px 12px !important;
  }
  .gt_switcher_wrapper {
    top: 11px !important;
    right: 60px !important;
  }
}

/* ==========================================================================
   4. Hero Banner Section
   ========================================================================== */

.bavari-hero-section {
  width: 100%;
  box-sizing: border-box;
}

.bavari-hero-pill {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 9999px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
}

.bavari-hero-pill-text {
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .bavari-hero-pill {
    padding: 6px 14px;
    border-radius: 12px;
  }
  .bavari-hero-pill-text {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
  }
}

.bavari-live-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: bavariPulse 2s infinite;
  margin-right: 8px;
  flex-shrink: 0;
}

@keyframes bavariPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.bavari-hero-title {
  font-size: clamp(1.85rem, 5.5vw, 3.25rem) !important;
  line-height: 1.18 !important;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 800;
  letter-spacing: -0.03em;
  word-break: break-word;
  color: #ffffff !important;
}

.bavari-hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  line-height: 1.65;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: #cbd5e1 !important;
  margin-top: 20px;
  margin-bottom: 36px;
}

.bavari-hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.bavari-hero-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 14px 34px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: all 0.25s ease;
  text-align: center;
}

.bavari-hero-btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.55);
}

.bavari-hero-btn-outline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 14px 34px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s ease;
  text-align: center;
}

.bavari-hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #38bdf8;
  color: #38bdf8 !important;
}

@media (max-width: 480px) {
  .bavari-hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 40px;
  }
  .bavari-hero-btn-primary,
  .bavari-hero-btn-outline {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    padding: 13px 20px;
  }
}

/* KPI Stats Grid */
.bavari-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.bavari-stat-box {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
}

.bavari-stat-box:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.bavari-stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.bavari-stat-label {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 1rem;
}

.bavari-stat-desc {
  color: #94a3b8;
  font-size: 0.825rem;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .bavari-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .bavari-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .bavari-stat-box {
    padding: 16px 10px !important;
    border-radius: 12px !important;
  }
  .bavari-stat-number {
    font-size: 1.85rem !important;
  }
  .bavari-stat-label {
    font-size: 0.875rem !important;
  }
  .bavari-stat-desc {
    font-size: 0.725rem !important;
  }
}

@media (max-width: 340px) {
  .bavari-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   5. Services Section & Cards
   ========================================================================== */

.bavari-services-section {
  width: 100%;
  box-sizing: border-box;
}

.bavari-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.bavari-service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bavari-card-bg) !important;
  border: 1px solid var(--bavari-card-border) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 30px 26px;
  box-sizing: border-box;
}

.bavari-service-card:hover {
  transform: translateY(-5px);
  border-color: var(--bavari-accent) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(56, 189, 248, 0.25);
}

.bavari-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #38bdf8, #10b981);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bavari-service-card:hover::before {
  opacity: 1;
}

.bavari-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.bavari-card-icon {
  border-radius: 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.bavari-card-title {
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.bavari-card-subtitle {
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 600;
}

.bavari-card-text {
  color: #cbd5e1;
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.bavari-feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

.bavari-feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.bavari-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #38bdf8;
  font-weight: 700;
}

.bavari-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.bavari-tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.25);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.bavari-tech-badge:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
  color: #ffffff;
}

@media (max-width: 768px) {
  .bavari-services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bavari-service-card {
    padding: 22px 18px !important;
    border-radius: 14px !important;
  }
  .bavari-card-title {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   6. About & Leadership Section (#about)
   ========================================================================== */

#about,
.bavari-about-section {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  width: 100%;
  box-sizing: border-box;
}

/* Dedicated IT Labs Banner */
.bavari-labs-banner {
  margin-top: 36px;
  background: radial-gradient(ellipse at top left, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-sizing: border-box;
}

.bavari-labs-content {
  flex: 1 1 500px;
  min-width: 0;
}

.bavari-about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.bavari-about-bio {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bavari-about-credentials {
  width: 100%;
  box-sizing: border-box;
}

.bavari-credentials-box {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .bavari-about-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .bavari-portfolio-card {
    padding: 18px 16px;
  }
  .bavari-credentials-box {
    padding: 18px 16px;
  }
  .bavari-labs-banner {
    padding: 20px 16px;
    border-radius: 14px;
    gap: 16px;
  }
  .bavari-msp-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 400px) {
  .bavari-brands-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   7. Contact & Consultation Section
   ========================================================================== */

.bavari-contact-section {
  width: 100%;
  box-sizing: border-box;
}

.bavari-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
  width: 100%;
  box-sizing: border-box;
}

.bavari-contact-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 16px 38px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
  transition: all 0.25s ease;
  text-align: center;
}

.bavari-contact-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.6);
}

@media (max-width: 640px) {
  .bavari-contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bavari-contact-btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 22px;
  }
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

.bavari-footer-section {
  width: 100%;
  box-sizing: border-box;
}

.bavari-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 44px;
  width: 100%;
}

.bavari-footer-brand {
  max-width: 380px;
}

.bavari-footer-links {
  min-width: 160px;
}

.bavari-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 0.825rem;
}

@media (max-width: 768px) {
  .bavari-footer-grid {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 30px;
  }
  .bavari-footer-brand {
    max-width: 100%;
  }
  .bavari-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ==========================================================================
   9. Back to Top Button (Bottom Right)
   ========================================================================== */

.bavari-back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 99980;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  outline: none;
  padding: 0;
}

.bavari-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.bavari-back-to-top:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.65), 0 4px 12px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.bavari-back-to-top:active {
  transform: translateY(0) scale(0.95);
}

.bavari-back-to-top-icon {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  transition: transform 0.2s ease;
}

.bavari-back-to-top:hover .bavari-back-to-top-icon {
  transform: translateY(-2px);
}

@media screen and (max-width: 480px) {
  .bavari-back-to-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 42px !important;
    height: 42px !important;
  }
  .bavari-back-to-top-icon {
    width: 18px !important;
    height: 18px !important;
  }
}
