/* ==========================================================================
   iSolution India — UI Component Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Site Header & Floating Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height, 80px);
  background: rgba(13, 20, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background var(--transition-normal),
              border-color var(--transition-normal),
              height var(--transition-normal);
}

.site-header.header-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

html.light .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.site-header.scrolled {
  height: 70px;
  background: rgba(8, 14, 24, 0.95);
}

html.light .site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.10);
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.site-header .brand-logo-img {
  height: 38px;
  max-height: 42px;
}

.site-footer .brand-logo-img {
  height: 48px;
  max-height: 52px;
}

.mobile-drawer .brand-logo-img {
  height: 32px;
  max-height: 34px;
}

.brand-logo-img.logo-light {
  display: none;
}

html.light .brand-logo-img.logo-dark {
  display: none;
}

html.light .brand-logo-img.logo-light {
  display: block;
}

.brand-logo-wrap:hover .brand-logo-img {
  transform: scale(1.03);
}

/* Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.05);
}

html.light .nav-link {
  color: var(--text-muted);
}

html.light .nav-link:hover {
  color: var(--primary);
  background: rgba(2, 132, 162, 0.08);
}

.nav-link.active {
  background: var(--primary-container);
  color: var(--text-on-accent);
  box-shadow: 0 0 16px rgba(5, 195, 221, 0.35);
}

html.light .nav-link.active {
  background: rgba(2, 132, 162, 0.10);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 162, 0.22);
  box-shadow: none;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Navigation Dropdown Parent & Menu ("Free Tools" & Submenus)
   -------------------------------------------------------------------------- */
.nav-dropdown-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-dropdown-toggle .nav-chevron {
  font-size: 18px;
  transition: transform var(--transition-fast);
  color: var(--text-subtle);
  display: inline-block;
  line-height: 1;
}

.nav-dropdown-item:hover .nav-chevron,
.nav-dropdown-item:focus-within .nav-chevron,
.nav-dropdown-item.open .nav-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 310px;
  background: rgba(13, 20, 30, 0.96);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.8), 0 0 24px rgba(5, 195, 221, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 150;
}

/* Invisible hover bridge to eliminate gap between button and submenu */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
  pointer-events: auto;
}

/* Open on hover, keyboard focus or click */
.nav-dropdown-item:hover .nav-dropdown-menu,
.nav-dropdown-item:focus-within .nav-dropdown-menu,
.nav-dropdown-item.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

html.light .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(15, 23, 42, 0.08);
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.nav-dropdown-link:hover {
  background: var(--bg-surface-high);
  color: var(--primary);
  transform: translateX(3px);
}

html.light .nav-dropdown-link:hover {
  background: rgba(2, 132, 162, 0.08);
  color: var(--primary);
}

.nav-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(5, 195, 221, 0.12);
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

html.light .nav-dropdown-icon {
  background: rgba(2, 132, 162, 0.10);
  color: var(--primary);
}

.nav-dropdown-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-pure);
  display: block;
  line-height: 1.3;
}

.nav-dropdown-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.35;
  margin-top: 2px;
}

.nav-dropdown-footer {
  border-top: 1px solid var(--border-glass);
  margin-top: 6px;
  padding-top: 6px;
}

.nav-dropdown-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.nav-dropdown-footer-link:hover {
  background: rgba(5, 195, 221, 0.12);
}

html.light .nav-dropdown-footer-link:hover {
  background: rgba(2, 132, 162, 0.08);
}

/* ==========================================================================
   MEGA MENU STYLES (Free Tools Mega Menu)
   ========================================================================== */
.nav-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 1240px;
  max-width: min(1240px, calc(100vw - 32px));
  background: rgba(13, 20, 30, 0.98);
  border: 1px solid rgba(5, 195, 221, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 72px -12px rgba(0, 0, 0, 0.9), 0 0 36px rgba(5, 195, 221, 0.18);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 26px 32px 22px 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 200;
}

/* Invisible hover bridge to eliminate gap between button and megamenu */
.nav-mega-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
  pointer-events: auto;
}

.nav-dropdown-item:hover .nav-mega-menu,
.nav-dropdown-item:focus-within .nav-mega-menu,
.nav-dropdown-item.open .nav-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

html.light .nav-mega-menu {
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 28px 64px -10px rgba(15, 23, 42, 0.2), 0 6px 24px rgba(15, 23, 42, 0.08);
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 24px;
}

.nav-mega-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.nav-mega-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0 8px 10px 8px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 6px;
}

.nav-mega-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
  color: var(--text-primary);
  border: 1px solid transparent;
}

.nav-mega-link:hover {
  background: var(--bg-surface-high);
  border-color: rgba(5, 195, 221, 0.2);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

html.light .nav-mega-link:hover {
  background: rgba(2, 132, 162, 0.06);
  border-color: rgba(2, 132, 162, 0.18);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.nav-mega-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(5, 195, 221, 0.14);
  color: var(--primary);
  font-size: 21px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--transition-fast);
}

.nav-mega-link:hover .nav-mega-icon {
  background: var(--primary);
  color: var(--text-on-accent);
  transform: scale(1.05);
}

html.light .nav-mega-icon {
  background: rgba(2, 132, 162, 0.10);
  color: var(--primary);
}

html.light .nav-mega-link:hover .nav-mega-icon {
  background: var(--primary);
  color: #ffffff;
}

.nav-mega-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-mega-link-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.nav-mega-link:hover .nav-mega-link-title {
  color: var(--primary);
}

.nav-mega-link-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 3px;
}

.nav-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.nav-badge-unlimited {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.nav-badge-popular {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.nav-badge-new {
  background: rgba(5, 195, 221, 0.18);
  color: var(--primary);
  border: 1px solid rgba(5, 195, 221, 0.35);
}

.nav-mega-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.84rem;
}

.nav-mega-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.nav-mega-bottom a:hover {
  background: rgba(5, 195, 221, 0.12);
  transform: translateX(3px);
}

.nav-mega-promo-text {
  color: var(--text-muted);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1280px) and (min-width: 1025px) {
  .nav-mega-menu {
    width: 96vw;
    padding: 22px 24px 18px 24px;
  }
  .nav-mega-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .nav-mega-link {
    padding: 10px 10px;
    gap: 10px;
  }
}

.mobile-nav-group-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 8px 10px 4px;
  margin-top: 4px;
}

/* Mobile Drawer Dropdown Accordion */
.mobile-nav-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 16px;
  color: var(--text-pure);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-md);
  text-align: left;
}

.mobile-dropdown-chevron {
  font-size: 20px;
  transition: transform var(--transition-fast);
  color: var(--text-subtle);
}

.mobile-nav-dropdown.open .mobile-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.mobile-nav-dropdown-menu {
  display: none;
  flex-direction: column;
  padding-left: var(--space-md);
  border-left: 2px solid var(--border-accent);
  margin: var(--space-xs) 0 var(--space-sm) var(--space-md);
  gap: 4px;
}

.mobile-nav-dropdown.open .mobile-nav-dropdown-menu {
  display: flex;
}

.mobile-nav-sublink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav-sublink:hover {
  color: var(--primary);
  background: var(--bg-surface-high);
}

html.light .mobile-nav-sublink:hover {
  background: rgba(2, 132, 162, 0.08);
  color: var(--primary);
}

/* ==========================================================================
   TOOL TRACKING TELEMETRY BAR & LIVE COUNTER STYLES
   ========================================================================== */
.tool-tracker-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
  padding: 16px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-xl);
  max-width: 960px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(5, 195, 221, 0.12);
  transition: all var(--transition-normal);
}

.tool-tracker-bar.tracker-pulse {
  border-color: #10b981;
  box-shadow: 0 12px 36px -4px rgba(16, 185, 129, 0.35);
}

.tracker-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.tracker-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(5, 195, 221, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

html.light .tracker-icon {
  background: rgba(2, 132, 162, 0.10);
  color: var(--primary);
}

.tracker-number {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.2;
  display: block;
}

.tracker-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.live-pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* Header Action Tools */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme Toggle Button & Dropdown Menu */
.theme-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  /* Dark mode: dark aqua blue like night sky color */
  background: #082132;
  border: 1px solid rgba(5, 195, 221, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(5, 195, 221, 0.15);
  position: relative;
}

.theme-toggle-btn:hover {
  background: #0d3148;
  border-color: rgba(5, 195, 221, 0.55);
  transform: rotate(20deg);
  box-shadow: 0 0 16px rgba(5, 195, 221, 0.35);
}

/* Dark mode moon: pure white */
.theme-icon-moon {
  color: #ffffff !important;
  font-size: 20px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.theme-icon-sun {
  display: none;
}

/* Light mode: warm daylight styling */
html.light .theme-toggle-btn {
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

html.light .theme-toggle-btn:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

html.light .theme-icon-moon {
  display: none;
}

/* Light mode sun: orange yellow */
html.light .theme-icon-sun {
  display: block;
  color: #f59e0b !important;
  font-size: 20px;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.55));
  transition: transform var(--transition-fast), color var(--transition-fast);
}

/* Theme Dropdown Menu */
.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 175px;
  background: #082132;
  border: 1px solid rgba(5, 195, 221, 0.28);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(5, 195, 221, 0.14);
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1050;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

html.light .theme-dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15), 0 0 16px rgba(245, 158, 11, 0.1);
}

.theme-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.theme-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

html.light .theme-menu-item {
  color: #475569;
}

html.light .theme-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.theme-menu-item.active {
  background: rgba(5, 195, 221, 0.15);
  color: #05c3dd;
}

html.light .theme-menu-item.active {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.theme-menu-icon {
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.theme-item-sun {
  color: #f59e0b !important;
}

.theme-item-moon {
  color: #ffffff !important;
}

html.light .theme-item-moon {
  color: #64748b !important;
}

.theme-item-system {
  color: var(--primary) !important;
}

.theme-item-text {
  flex: 1;
}

.theme-check-icon {
  font-size: 16px;
  margin-left: auto;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.theme-menu-item.active .theme-check-icon {
  opacity: 1;
  transform: scale(1);
}

/* Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-high);
  border: 1px solid var(--border-card);
  color: var(--text-pure);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   2. Mobile Drawer Navigation
   -------------------------------------------------------------------------- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-card);
  box-shadow: var(--shadow-modal);
  padding: 90px var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 999;
  transition: right var(--transition-smooth);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--primary-container);
  color: var(--text-on-accent);
}

html.light .mobile-drawer {
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.08);
}

html.light .mobile-nav-link {
  color: #334155;
}

html.light .mobile-nav-link:hover,
html.light .mobile-nav-link.active {
  background: rgba(2, 132, 162, 0.10);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   3. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0 28px;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary-bright) 100%);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-button);
}

html.light .btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(2, 132, 162, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-2px);
}

html.light .btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 132, 162, 0.35);
  transform: translateY(-2px);
  filter: none;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-card);
  color: var(--text-pure);
  backdrop-filter: blur(12px);
}

html.light .btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background: var(--bg-surface-high);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

html.light .btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
}

/* WhatsApp Action Button */
.btn-whatsapp {
  background: #25D366 !important;
  color: #ffffff !important;
  border: 1px solid #20ba5a !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35) !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  border-radius: var(--radius-full) !important;
  transition: all var(--transition-normal) !important;
}

.btn-whatsapp:hover {
  background: #20ba5a !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5) !important;
}

.btn-whatsapp svg {
  fill: #ffffff !important;
  flex-shrink: 0;
}

html.light .btn-whatsapp {
  background: #25D366 !important;
  color: #ffffff !important;
  border: 1px solid #20ba5a !important;
}

html.light .btn-whatsapp:hover {
  background: #20ba5a !important;
  color: #ffffff !important;
}

.btn-sm {
  height: 38px;
  padding: 0 20px;
  font-size: 0.8125rem;
}

.btn-lg {
  height: 56px;
  padding: 0 36px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   4. Status Chips & Badges
   -------------------------------------------------------------------------- */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(5, 195, 221, 0.10);
  border: 1px solid var(--border-accent);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.light .badge-status {
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--primary-container);
  box-shadow: 0 0 10px var(--primary-container);
  animation: pulse-glow 2s infinite ease-in-out;
}

html.light .pulse-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* --------------------------------------------------------------------------
   5. Bento Cards & Glass Surfaces
   -------------------------------------------------------------------------- */
.bento-card {
  background: var(--bg-surface-container);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-md);
}

html.light .bento-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.11);
  box-shadow: 0 6px 20px -3px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

html.light .bento-card:hover {
  background: #ffffff;
  border-color: rgba(2, 132, 162, 0.55);
  box-shadow: 0 18px 40px -8px rgba(15, 23, 42, 0.12), 0 0 24px -2px rgba(2, 132, 162, 0.16);
  transform: translateY(-4px);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at top right, rgba(5, 195, 221, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

html.light .bento-card::before {
  background: radial-gradient(circle at top right, rgba(2, 132, 162, 0.10), transparent 70%);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-high);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-md);
  font-size: 24px;
}

html.light .bento-icon-box {
  background: #e0f6fc;
  border: 1px solid #99e2f3;
  color: #0284a2;
  box-shadow: 0 2px 8px rgba(2, 132, 162, 0.12);
}

/* --------------------------------------------------------------------------
   5b. Platform Technology Bento Cards (Services Page)
   -------------------------------------------------------------------------- */
.platform-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.platform-card:hover::before {
  opacity: 0 !important;
}

.platform-card .bento-icon-box {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.platform-card .bento-icon-box svg {
  display: block;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.platform-card .title-md,
.platform-card .label-caps {
  transition: color 0.25s ease;
}

/* Individual Brand Base Icon Styles */
.platform-wordpress .bento-icon-box {
  color: #21759B;
  background: rgba(33, 117, 155, 0.12);
  border-color: rgba(33, 117, 155, 0.28);
}
html.light .platform-wordpress .bento-icon-box {
  background: #e8f4f9;
  border-color: #b8deed;
}

.platform-whatsapp .bento-icon-box {
  color: #25D366;
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.28);
}
html.light .platform-whatsapp .bento-icon-box {
  background: #eafaf1;
  border-color: #bbf0d0;
}

.platform-google-maps .bento-icon-box {
  background: rgba(66, 133, 244, 0.10);
  border-color: rgba(66, 133, 244, 0.25);
}
html.light .platform-google-maps .bento-icon-box {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.platform-instagram .bento-icon-box {
  color: #E1306C;
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.28);
}
html.light .platform-instagram .bento-icon-box {
  background: #fdf2f8;
  border-color: #fbcfe8;
}

.platform-woocommerce .bento-icon-box {
  color: #7F54B3;
  background: rgba(127, 84, 179, 0.12);
  border-color: rgba(127, 84, 179, 0.28);
}
html.light .platform-woocommerce .bento-icon-box {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.platform-google-analytics .bento-icon-box {
  color: #E37400;
  background: rgba(227, 116, 0, 0.12);
  border-color: rgba(227, 116, 0, 0.28);
}
html.light .platform-google-analytics .bento-icon-box {
  background: #fff7ed;
  border-color: #fed7aa;
}

/* Hover Typography & Badge Transforms */
.platform-card:hover {
  transform: translateY(-8px);
}
.platform-card:hover .title-md {
  color: #ffffff !important;
}
.platform-card:hover .label-caps {
  color: rgba(255, 255, 255, 0.88) !important;
}
.platform-card:hover .bento-icon-box {
  background: #ffffff !important;
  border-color: #ffffff !important;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

/* 1. WordPress Hover */
.platform-card.platform-wordpress:hover {
  background: #21759B !important;
  border-color: #21759B !important;
  box-shadow: 0 18px 40px rgba(33, 117, 155, 0.5) !important;
}
.platform-card.platform-wordpress:hover .bento-icon-box {
  color: #21759B !important;
}

/* 2. WhatsApp Hover */
.platform-card.platform-whatsapp:hover {
  background: #25D366 !important;
  border-color: #25D366 !important;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.5) !important;
}
.platform-card.platform-whatsapp:hover .bento-icon-box {
  color: #25D366 !important;
}

/* 3. Google Maps Hover */
.platform-card.platform-google-maps:hover {
  background: #1A73E8 !important;
  border-color: #1A73E8 !important;
  box-shadow: 0 18px 40px rgba(26, 115, 232, 0.5) !important;
}

/* 4. Instagram Hover */
.platform-card.platform-instagram:hover {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%) !important;
  border-color: #fd1d1d !important;
  box-shadow: 0 18px 40px rgba(225, 48, 108, 0.5) !important;
}
.platform-card.platform-instagram:hover .bento-icon-box {
  color: #d62976 !important;
}

/* 5. WooCommerce Hover */
.platform-card.platform-woocommerce:hover {
  background: #7F54B3 !important;
  border-color: #7F54B3 !important;
  box-shadow: 0 18px 40px rgba(127, 84, 179, 0.5) !important;
}
.platform-card.platform-woocommerce:hover .bento-icon-box {
  color: #7F54B3 !important;
}

/* 6. Google Analytics Hover */
.platform-card.platform-google-analytics:hover {
  background: #E37400 !important;
  border-color: #E37400 !important;
  box-shadow: 0 18px 40px rgba(227, 116, 0, 0.5) !important;
}
.platform-card.platform-google-analytics:hover .bento-icon-box {
  color: #E37400 !important;
}

/* --------------------------------------------------------------------------
   6. Partner Brand Marquee
   -------------------------------------------------------------------------- */
.marquee-wrapper {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: var(--space-2xl);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-2xl);
  min-width: 100%;
  animation: scroll-marquee 25s linear infinite;
}

.marquee-item {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-subtle);
  transition: color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.marquee-item:hover {
  color: var(--primary);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   7. Metric Strips & Stat Cards
   -------------------------------------------------------------------------- */
.stat-strip {
  width: 100% !important;
  max-width: 100% !important;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  background: var(--bg-surface-container);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-sm);
  border-right: 1px solid var(--border-glass);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1;
}

.stat-value span {
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

html.light .stat-strip {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.11);
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.03);
}

html.light .stat-item {
  border-right-color: rgba(15, 23, 42, 0.09);
}

html.light .stat-value {
  color: #0f172a;
}

html.light .stat-value span {
  color: var(--primary);
}

html.light .stat-label {
  color: #64748b;
}

/* --------------------------------------------------------------------------
   8. Pricing Cards & Segmented Switch
   -------------------------------------------------------------------------- */
.billing-switcher {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-surface-high);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-card);
}

html.light .billing-switcher {
  background: #e2e8f0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.billing-btn {
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

html.light .billing-btn {
  color: #475569;
}

.billing-btn.active {
  background: var(--primary-container);
  color: var(--text-on-accent);
  box-shadow: 0 0 16px rgba(5, 195, 221, 0.4);
}

html.light .billing-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 162, 0.25);
}

.pricing-card {
  background: var(--bg-surface-container);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

html.light .pricing-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.04);
}

html.light .pricing-card:hover {
  border-color: rgba(2, 132, 162, 0.50);
  box-shadow: 0 18px 38px -8px rgba(15, 23, 42, 0.12), 0 0 24px -2px rgba(2, 132, 162, 0.14);
}

.pricing-card.popular {
  border-color: var(--primary-container);
  background: var(--bg-surface-high);
  transform: translateY(-8px);
  box-shadow: 0 24px 64px -16px rgba(5, 195, 221, 0.25);
}

html.light .pricing-card.popular {
  background: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.14), 0 0 32px -4px rgba(2, 132, 162, 0.25);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-container);
  color: var(--text-on-accent);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 20px rgba(5, 195, 221, 0.6);
  white-space: nowrap;
}

html.light .pricing-popular-badge {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 162, 0.3);
}

.pricing-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.02em;
}

html.light .pricing-amount {
  color: #0f172a;
}

html.light .pricing-card.popular .pricing-amount {
  color: var(--primary);
}

html.light .pricing-feature-item {
  color: #334155;
}

html.light .pricing-feature-item.excluded {
  color: #94a3b8;
}

.pricing-card.popular .pricing-amount {
  color: var(--primary);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-primary);
}

.pricing-feature-item.excluded {
  color: var(--text-subtle);
  opacity: 0.5;
  text-decoration: line-through;
}

/* --------------------------------------------------------------------------
   9. Forms & Inputs
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-low);
  border: 1px solid var(--border-card);
  color: var(--text-pure);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-textarea {
  height: auto;
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-container);
  box-shadow: 0 0 0 3px rgba(5, 195, 221, 0.25);
  background: var(--bg-surface);
}

html.light .form-input,
html.light .form-select,
html.light .form-textarea {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

html.light .form-input:focus,
html.light .form-select:focus,
html.light .form-textarea:focus {
  background: #ffffff;
  border-color: #0284a2;
  box-shadow: 0 0 0 3px rgba(2, 132, 162, 0.18);
}

.pill-selector-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.selector-pill {
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-low);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  padding: 4px;
}

html.light .selector-pill {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  color: #0f172a;
}

.selector-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

html.light .selector-pill:hover {
  background: #f8fafc;
  border-color: #0284a2;
  box-shadow: 0 3px 8px rgba(2, 132, 162, 0.12);
  color: #0284a2;
}

.selector-pill.active {
  background: var(--primary-container);
  color: var(--text-on-accent);
  border-color: var(--primary-container);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(5, 195, 221, 0.35);
}

html.light .selector-pill.active {
  background: #0284a2;
  color: #ffffff;
  border-color: #0284a2;
  box-shadow: 0 4px 14px rgba(2, 132, 162, 0.25);
}

/* --------------------------------------------------------------------------
   10. Modals
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-modal);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-smooth);
}

html.light .modal-overlay {
  background: rgba(15, 23, 42, 0.65);
}

html.light .modal-container {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 28px 64px -12px rgba(15, 23, 42, 0.24), 0 0 36px 0 rgba(2, 132, 162, 0.16);
  color: #0f172a;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-high);
  border: 1px solid var(--border-card);
  color: var(--text-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

html.light .modal-close-btn {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #475569;
}

.modal-close-btn:hover {
  background: var(--primary-container);
  color: var(--text-on-accent);
  transform: rotate(90deg);
}

html.light .modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   11. Footer Layout
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-floor);
  border-top: 1px solid var(--border-glass);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  box-shadow: 0 -1px 24px rgba(0, 0, 0, 0.4);
}

html.light .site-footer {
  background: #eef3f8;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.03);
  color: #475569;
}

/* Footer "Get in Touch" Section */
.footer-contact-section {
  opacity: 1 !important;
  transform: none !important;
  background: var(--bg-surface-high);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.footer-contact-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(5, 195, 221, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

html.light .footer-contact-section {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.09), 0 2px 8px rgba(15, 23, 42, 0.04);
}

html.light .footer-contact-section::before {
  background: radial-gradient(circle, rgba(2, 132, 162, 0.09) 0%, transparent 70%);
}

.footer-contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.footer-contact-cta-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.footer-contact-channel {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface-low);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
}

html.light .footer-contact-channel {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.footer-contact-channel:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(5, 195, 221, 0.12);
  background: var(--bg-surface);
}

html.light .footer-contact-channel:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.10), 0 0 16px rgba(2, 132, 162, 0.12);
}

.channel-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon-box .material-symbols-outlined {
  font-size: 22px;
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.channel-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

html.light .channel-label {
  color: #64748b;
}

.channel-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.light .channel-value {
  color: #0f172a;
}

.channel-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.light .channel-sub {
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-glass);
}

html.light .footer-grid {
  border-bottom: 1px solid #e2e8f0;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-pure);
  margin-bottom: var(--space-md);
}

html.light .footer-col-title {
  color: #0f172a;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

html.light .footer-nav-link {
  color: #475569;
}

.footer-nav-link:hover {
  color: var(--primary);
  transform: translateX(3px);
}

html.light .footer-nav-link:hover {
  color: var(--primary);
}

/* Footer Social Media Icons */
.footer-social-list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-md);
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-low);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.footer-social-link svg {
  display: block;
}

.footer-social-link:hover {
  background: var(--primary);
  color: #03131a;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 195, 221, 0.35);
}

html.light .footer-social-link {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #475569;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
}

html.light .footer-social-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(2, 132, 162, 0.3);
}

/* WhatsApp Channel Styles (Matches "Official Email" hover effect exactly across all pages) */
.channel-whatsapp:hover {
  transform: translateY(-3px) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 8px 24px rgba(5, 195, 221, 0.12) !important;
  background: var(--bg-surface) !important;
}

html.light .channel-whatsapp:hover {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.10), 0 0 16px rgba(2, 132, 162, 0.12) !important;
  transform: translateY(-3px) !important;
}

.channel-whatsapp::before,
.channel-whatsapp::after,
.channel-whatsapp:hover::before,
.channel-whatsapp:hover::after,
.channel-whatsapp *:before,
.channel-whatsapp *:after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  animation: none !important;
  transition: none !important;
  background: none !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

.channel-icon-whatsapp {
  color: #25D366 !important;
  background: rgba(37, 211, 102, 0.15) !important;
}

.channel-icon-whatsapp svg {
  fill: #25D366;
}

/* Brand-Specific Social Media Hover Colors */
.footer-social-link.social-linkedin:hover {
  background: #0A66C2 !important;
  border-color: #0A66C2 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(10, 102, 194, 0.45) !important;
}

html.light .footer-social-link.social-linkedin:hover {
  background: #0A66C2 !important;
  border-color: #0A66C2 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(10, 102, 194, 0.40) !important;
}

.footer-social-link.social-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  border-color: #dc2743 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.45) !important;
}

html.light .footer-social-link.social-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  border-color: #dc2743 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.40) !important;
}

.footer-social-link.social-x:hover {
  background: #000000 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.22) !important;
}

html.light .footer-social-link.social-x:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35) !important;
}

.footer-social-link.social-facebook:hover {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.45) !important;
}

html.light .footer-social-link.social-facebook:hover {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.40) !important;
}

.footer-social-link.social-youtube:hover {
  background: #FF0000 !important;
  border-color: #FF0000 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.45) !important;
}

html.light .footer-social-link.social-youtube:hover {
  background: #FF0000 !important;
  border-color: #FF0000 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35) !important;
}

.footer-social-link.social-whatsapp:hover {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45) !important;
}

html.light .footer-social-link.social-whatsapp:hover {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4) !important;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-subtle);
}

html.light .footer-bottom {
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* --------------------------------------------------------------------------
   12. Interactive Form Controls & Tiles (Contact & Quote)
   -------------------------------------------------------------------------- */
.form-field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.input-sublabel {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field-error-msg {
  display: none;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 2px;
}

.form-field-wrapper.has-error .field-error-msg {
  display: block;
}

.form-field-wrapper.has-error .form-input {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.custom-checkbox-label,
.radio-pill-label {
  display: block;
  cursor: pointer;
  position: relative;
}

.custom-checkbox-label input[type="checkbox"],
.radio-pill-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox-tile,
.radio-pill-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-low);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  user-select: none;
  text-align: center;
}

html.light .custom-checkbox-tile,
html.light .radio-pill-tile {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

.custom-checkbox-label:hover .custom-checkbox-tile,
.radio-pill-label:hover .radio-pill-tile {
  border-color: var(--primary);
  color: var(--primary);
}

html.light .custom-checkbox-label:hover .custom-checkbox-tile,
html.light .radio-pill-label:hover .radio-pill-tile {
  background: #f8fafc;
  border-color: var(--primary);
  box-shadow: 0 3px 8px rgba(2, 132, 162, 0.12);
  color: var(--primary);
}

.custom-checkbox-label input[type="checkbox"]:checked + .custom-checkbox-tile,
.radio-pill-label input[type="radio"]:checked + .radio-pill-tile {
  background: rgba(5, 195, 221, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(5, 195, 221, 0.25);
}

html.light .custom-checkbox-label input[type="checkbox"]:checked + .custom-checkbox-tile,
html.light .radio-pill-label input[type="radio"]:checked + .radio-pill-tile {
  background: rgba(2, 132, 162, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(2, 132, 162, 0.12);
}

.btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   13. Accordion Styling
   -------------------------------------------------------------------------- */
.accordion-item {
  transition: all var(--transition-fast);
}

html.light .accordion-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.accordion-item:hover {
  border-color: var(--border-accent);
}

html.light .accordion-item:hover {
  border-color: rgba(2, 132, 162, 0.50);
  box-shadow: 0 6px 18px -2px rgba(15, 23, 42, 0.08);
}

.accordion-header {
  user-select: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.accordion-header h4,
.accordion-header .title-md {
  cursor: pointer;
}

.accordion-body {
  cursor: default;
}

.accordion-icon {
  transition: transform var(--transition-fast);
  display: inline-block;
  user-select: none;
}

/* --------------------------------------------------------------------------
   14. Filter Tab Pills (Portfolio & Clientele)
   -------------------------------------------------------------------------- */
.portfolio-tab,
.review-filter-btn {
  background: var(--bg-surface-high);
  border: 1px solid var(--border-glass);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portfolio-tab:hover,
.review-filter-btn:hover {
  color: var(--primary);
  border-color: var(--border-accent);
  box-shadow: 0 4px 12px rgba(5, 195, 221, 0.15);
}

.portfolio-tab.active,
.review-filter-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(5, 195, 221, 0.25);
}

html.light .portfolio-tab,
html.light .review-filter-btn {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
  color: #334155;
}

html.light .portfolio-tab:hover,
html.light .review-filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(2, 132, 162, 0.12);
}

html.light .portfolio-tab.active,
html.light .review-filter-btn.active {
  background: rgba(2, 132, 162, 0.12);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  box-shadow: none;
}

/* Portfolio Grid & Card Vertical Flex Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--space-xl);
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }
}

.portfolio-item {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  height: 100%;
  will-change: opacity, transform;
}

/* --------------------------------------------------------------------------
   15. Portfolio Visual Thumbnails
   -------------------------------------------------------------------------- */
.portfolio-thumb-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  border: 1px solid var(--border-glass);
  transition: transform var(--transition-normal);
}

.portfolio-thumb-card .badge-status {
  margin-bottom: 8px;
  font-size: 0.7rem;
}

.portfolio-thumb-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.portfolio-thumb-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.thumb-cyan {
  background: linear-gradient(135deg, rgba(5,195,221,0.25) 0%, rgba(13,20,30,0.95) 100%);
}

.thumb-indigo {
  background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(13,20,30,0.95) 100%);
}

.thumb-amber {
  background: linear-gradient(135deg, rgba(245,158,11,0.25) 0%, rgba(13,20,30,0.95) 100%);
}

.thumb-emerald {
  background: linear-gradient(135deg, rgba(16,185,129,0.25) 0%, rgba(13,20,30,0.95) 100%);
}

.thumb-pink {
  background: linear-gradient(135deg, rgba(236,72,153,0.25) 0%, rgba(13,20,30,0.95) 100%);
}

html.light .thumb-cyan {
  background: linear-gradient(135deg, #e0f6fc 0%, #f1f5f9 100%);
  border: 1px solid #bce8f5;
}

html.light .thumb-cyan h3 {
  color: #0f172a;
}

html.light .thumb-indigo {
  background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
  border: 1px solid #c7d2fe;
}

html.light .thumb-indigo h3 {
  color: #0f172a;
}

html.light .thumb-amber {
  background: linear-gradient(135deg, #fef3c7 0%, #f1f5f9 100%);
  border: 1px solid #fde68a;
}

html.light .thumb-amber h3 {
  color: #0f172a;
}

html.light .thumb-emerald {
  background: linear-gradient(135deg, #d1fae5 0%, #f1f5f9 100%);
  border: 1px solid #a7f3d0;
}

html.light .thumb-emerald h3 {
  color: #0f172a;
}

html.light .thumb-pink {
  background: linear-gradient(135deg, #fce7f3 0%, #f1f5f9 100%);
  border: 1px solid #fbcfe8;
}

html.light .thumb-pink h3 {
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   16. Video Spotlight Thumbnails & Play Button
   -------------------------------------------------------------------------- */
.clientele-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #070d17;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}

.clientele-video-thumb .video-gradient-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,195,221,0.15) 0%, rgba(7,13,23,0.95) 100%);
}

.clientele-video-thumb .video-duration-badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 0.75rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
}

.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary-container);
  color: var(--text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.video-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px var(--primary-container);
}

html.light .clientele-video-thumb {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

html.light .clientele-video-thumb .video-gradient-wash {
  background: linear-gradient(180deg, rgba(2, 132, 162, 0.08) 0%, rgba(241, 245, 249, 0.95) 100%);
}

html.light .video-play-btn {
  background: #0284a2;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 162, 0.35);
}

html.light .video-play-btn:hover {
  background: #00687f;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(2, 132, 162, 0.45);
}

/* --------------------------------------------------------------------------
   17. Service Module Feature Boxes
   -------------------------------------------------------------------------- */
.module-feature-box {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-card);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

html.light .module-feature-box {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

html.light .module-feature-box:hover {
  border-color: #0284a2;
  background: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.09);
}

/* --------------------------------------------------------------------------
   18. Pricing Table & Light Mode Matrix
   -------------------------------------------------------------------------- */
html.light .matrix-table-wrap {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.07);
}

html.light .matrix-table thead tr {
  background: #f1f5f9;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

html.light .matrix-table th {
  color: #0f172a;
}

html.light .matrix-table tbody tr {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html.light .matrix-table tbody tr:hover {
  background: #f8fafc;
}

html.light .matrix-table td {
  color: #475569;
}

html.light .matrix-table td.cell-highlight {
  color: #0f172a;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   19. Video Walkthrough Modal Reel Box
   -------------------------------------------------------------------------- */
.modal-reel-box {
  aspect-ratio: 16/9;
  background: var(--bg-surface-high);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

html.light .modal-reel-box {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04);
}

/* --------------------------------------------------------------------------
   20. Scroll To Top Floating Button
   -------------------------------------------------------------------------- */
.scroll-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(13, 20, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease,
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease,
              box-shadow 0.25s ease;
  padding: 0;
  margin: 0;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #070d17;
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(5, 195, 221, 0.45);
}

.scroll-to-top-btn:active {
  transform: translateY(-1px) scale(0.96);
}

.scroll-to-top-btn span {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  display: block;
  transition: transform 0.25s ease;
}

.scroll-to-top-btn:hover span {
  transform: translateY(-2px);
}

/* Light Mode */
html.light .scroll-to-top-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

html.light .scroll-to-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 132, 162, 0.35);
}

/* ==========================================================================
   21. Comprehensive Responsive Design & Viewport Fluidity
   ========================================================================== */

/* --------------------------------------------------------------------------
   Desktop & Widescreen Enhancements (>= 1025px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  .desktop-nav {
    display: flex !important;
  }
  .mobile-nav-toggle {
    display: none !important;
  }
  .featured-case-inner {
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
  }
}

/* --------------------------------------------------------------------------
   Laptops & Tablets (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }
  .site-header {
    height: 72px;
  }
  .site-header.scrolled {
    height: 64px;
  }
  .header-actions {
    gap: var(--space-sm);
  }
  .header-inner {
    gap: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   Tablets & Medium Screens (<= 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  /* Bento 12-Column Grids collapse to single stack */
  .bento-grid-12 {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  .bento-grid-12 > article,
  .bento-grid-12 > div,
  .bento-grid-12 > [style*="grid-column: span"] {
    grid-column: span 1 !important;
  }

  /* Featured Case Study Card */
  .featured-case-card {
    overflow: visible !important;
  }
  .featured-case-media {
    height: 320px !important;
  }
  .featured-case-content {
    position: relative !important;
    inset: auto !important;
    padding: var(--space-xl) var(--space-lg) !important;
    background: var(--bg-surface-high);
  }
  .featured-case-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: var(--space-md) !important;
  }
  .featured-case-cta {
    width: 100%;
    justify-content: space-between;
    margin-top: var(--space-sm);
  }

  /* Footer Links 4-column collapses to 2x2 grid */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-xl) !important;
  }

  /* Footer Get-in-Touch Channels collapse to single stack */
  .footer-contact-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-sm) !important;
  }

  .footer-contact-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   Portrait Tablets & Large Phones (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Metrics Strip: 4 items become 2x2 grid */
  .stat-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-md) !important;
    padding: var(--space-md) !important;
  }
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-glass);
    padding: var(--space-sm) 0 !important;
  }
  .stat-item:nth-last-child(-n+2) {
    border-bottom: none !important;
  }
  .stat-value {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
  }

  /* Bento inner card stats */
  .bento-stats-3col {
    grid-template-columns: 1fr !important;
    gap: var(--space-sm) !important;
  }
  .bento-stats-2col {
    grid-template-columns: 1fr !important;
    gap: var(--space-sm) !important;
  }

  /* Footer Bottom */
  .footer-bottom {
    flex-direction: column !important;
    text-align: center;
    gap: var(--space-md) !important;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md) !important;
  }
  .footer-contact-section {
    padding: var(--space-xl) var(--space-lg) !important;
    margin-bottom: var(--space-2xl) !important;
  }

  /* Modals */
  .modal-container {
    padding: var(--space-xl) var(--space-md) !important;
    width: calc(100% - 32px) !important;
    margin: 16px auto !important;
    max-height: 90vh !important;
  }
  .modal-close-btn {
    top: 14px;
    right: 14px;
  }

  /* Filter Tabs (Clientele & Portfolio) Horizontal Scroll */
  .filter-tabs-bar {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    width: 100%;
  }
  .filter-tabs-bar .billing-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Form & Hero CTA wrap adjustments */
  .hero-cta-group,
  form[action*="contact.html"] {
    flex-direction: column;
    width: 100% !important;
  }
  form[action*="contact.html"] input,
  form[action*="contact.html"] button,
  form[action*="contact.html"] .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Phones (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  /* Metrics Strip: 1 item per row */
  .stat-strip {
    grid-template-columns: 1fr !important;
  }
  .stat-item {
    border-bottom: 1px solid var(--border-glass) !important;
  }
  .stat-item:last-child {
    border-bottom: none !important;
  }

  /* Footer Links: single column stack */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }
  .footer-col-title {
    margin-bottom: var(--space-xs);
  }
  .footer-social-list {
    flex-wrap: wrap;
  }
  .footer-contact-cta-wrap {
    width: 100%;
    justify-content: flex-start;
  }

  /* Prevent grids from overflowing viewport on small screens */
  [style*="minmax(340px"],
  [style*="minmax(320px"],
  [style*="minmax(280px"],
  [style*="minmax(260px"] {
    grid-template-columns: 1fr !important;
  }

  /* Keep floating badges within screen bounds */
  [style*="right: -10px"],
  [style*="right:-10px"] {
    right: 8px !important;
    bottom: -12px !important;
    max-width: calc(100% - 16px) !important;
  }

  /* Mobile Drawer width */
  .mobile-drawer {
    width: 85vw;
    max-width: 320px;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  /* Move to top button on small screens */
  .scroll-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .scroll-to-top-btn span {
    font-size: 20px;
  }

  /* Platform technology cards (Services page) 6 boxes */
  .platform-tech-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ==========================================================================
   Pull to Refresh / Drag Down to Refresh
   ========================================================================== */
.ptr-indicator {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(8, 33, 50, 0.94);
  border: 1px solid rgba(5, 195, 221, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(5, 195, 221, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-pure);
  font-size: 0.8125rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.12s ease-out, opacity 0.15s ease-out;
  user-select: none;
}

html.light .ptr-indicator {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(5, 195, 221, 0.3);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12), 0 0 16px rgba(5, 195, 221, 0.15);
  color: #0f172a;
}

.ptr-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ptr-arrow {
  color: var(--primary);
  font-size: 20px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color var(--transition-fast);
}

.ptr-indicator.ptr-ready .ptr-arrow {
  color: #10b981;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}

.ptr-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(5, 195, 221, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ptr-spin 0.75s linear infinite;
}

.ptr-indicator.ptr-refreshing .ptr-arrow {
  display: none;
}

.ptr-indicator.ptr-refreshing .ptr-spinner {
  display: block;
}

.ptr-label {
  letter-spacing: 0.02em;
}

@keyframes ptr-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   21. Custom Theme Tooltip (Replaces default OS / system tooltips)
   -------------------------------------------------------------------------- */
.theme-tooltip {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  background: rgba(13, 20, 30, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-pure, #f8fafc);
  border: 1px solid rgba(5, 195, 221, 0.35);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.75), 0 0 14px rgba(5, 195, 221, 0.22);
  padding: 6px 12px;
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.96);
  transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.16s;
}

.theme-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.theme-tooltip-arrow {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(13, 20, 30, 0.94);
  border: 1px solid rgba(5, 195, 221, 0.35);
  transform: translateX(-50%) rotate(45deg);
}

/* Arrow at bottom pointing DOWN toward element below */
.theme-tooltip:not(.theme-tooltip-bottom) .theme-tooltip-arrow {
  bottom: -5px;
  border-top: none;
  border-left: none;
}

/* Arrow at top pointing UP toward element above */
.theme-tooltip.theme-tooltip-bottom .theme-tooltip-arrow {
  top: -5px;
  border-bottom: none;
  border-right: none;
}

/* Light Mode Overrides */
html.light .theme-tooltip {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border: 1px solid rgba(2, 132, 162, 0.35);
  box-shadow: 0 8px 22px -4px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
}

html.light .theme-tooltip-arrow {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(2, 132, 162, 0.35);
}

/* ==========================================================================
   Legal & Privacy Policy Document Styles
   ========================================================================== */
.legal-page-header {
  padding: clamp(60px, 8vh, 90px) 0 clamp(40px, 5vh, 60px);
  text-align: center;
  position: relative;
  background: var(--bg-floor);
  border-bottom: 1px solid var(--border-glass);
}

.legal-meta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legal-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Sticky Table of Contents Sidebar */
.legal-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.legal-toc-card {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.legal-toc-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc-link {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1.4;
  border-left: 2px solid transparent;
}

.legal-toc-link:hover,
.legal-toc-link.active {
  color: var(--primary);
  background: var(--bg-surface-high);
  border-left-color: var(--primary);
  padding-left: 12px;
}

html.light .legal-toc-link:hover,
html.light .legal-toc-link.active {
  background: rgba(2, 132, 162, 0.08);
  color: var(--primary);
}

/* Quick Support Card in Sidebar */
.legal-support-card {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.legal-support-card h4 {
  font-size: 0.95rem;
  font-family: var(--font-heading);
  color: var(--text-pure);
  margin-bottom: 6px;
}

.legal-support-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

/* Main Legal Body */
.legal-article {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-card);
}

.legal-section {
  scroll-margin-top: 110px;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-glass);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.legal-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(5, 195, 221, 0.14);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

html.light .legal-section-num {
  background: rgba(2, 132, 162, 0.12);
  color: var(--primary);
}

.legal-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--text-pure);
  margin: 0;
  line-height: 1.3;
}

.legal-body-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.legal-body-text p {
  margin-bottom: var(--space-md);
}

.legal-body-text strong {
  color: var(--text-pure);
  font-weight: 600;
}

/* Safeguard Callout Card (Crucial for IT Safeguards) */
.legal-safeguard-card {
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: rgba(5, 195, 221, 0.05);
  border: 1px solid rgba(5, 195, 221, 0.22);
  border-left: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-safeguard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.legal-safeguard-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0;
}

html.light .legal-safeguard-card {
  background: rgba(2, 132, 162, 0.04);
  border-color: rgba(2, 132, 162, 0.2);
  border-left-color: var(--primary);
}

/* Legal Key Bullet List */
.legal-bullet-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.legal-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.legal-bullet-icon {
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Legal Tables (e.g. Data Category, Retention schedules) */
.legal-table-wrap {
  overflow-x: auto;
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.legal-table th {
  background: var(--bg-surface-high);
  color: var(--text-pure);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-primary);
  vertical-align: top;
  line-height: 1.55;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

html.light .legal-table tr:hover td {
  background: rgba(15, 23, 42, 0.02);
}

/* Responsive */
@media (max-width: 992px) {
  .legal-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .legal-sidebar {
    position: static;
    display: none; /* Hide TOC on tablet/mobile or collapse */
  }
  .legal-article {
    padding: var(--space-xl) var(--space-lg);
  }
}






