/* FOOTER — Footer, Back-to-Top, WhatsApp — Turbo Surgical v5.7.2 */

/* --- Footer (modernized) --- */
        .footer-new {
            background: var(--dark);
            color: rgba(255, 255, 255, 0.60);
            padding: 80px 0 0;
        }

.footer-new .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1.2fr;
            gap: 50px;
            margin-bottom: 60px;
        }

.footer-new .brand p {
            font-size: 0.95rem;
            line-height: 1.7;
            max-width: 340px;
        }

.footer-new .brand .social {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

.footer-new .brand .social a {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.40);
            transition: var(--transition);
            text-decoration: none;
        }

.footer-new .brand .social a:hover {
            background: var(--red);
            border-color: var(--red);
            color: #fff;
            transform: translateY(-3px);
        }

.footer-new .col h4,
.footer-new .col h3 {
            font-size: 1rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 20px;
            letter-spacing: 0.3px;
        }

.footer-new .col ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

.footer-new .col ul li {
            margin-bottom: 10px;
        }

.footer-new .col ul li a {
            color: rgba(255, 255, 255, 0.40);
            text-decoration: none;
            transition: var(--transition);
            font-size: 0.92rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

.footer-new .col ul li a::before {
            content: '›';
            color: var(--red);
            font-weight: 700;
            transition: transform 0.3s ease;
        }

.footer-new .col ul li a:hover {
            color: #fff;
        }

.footer-new .col ul li a:hover::before {
            transform: translateX(4px);
        }

.footer-new .col .contact-item {
            display: flex;
            gap: 14px;
            margin-bottom: 18px;
            align-items: flex-start;
        }

.footer-new .col .contact-item .icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.04);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--red);
            font-size: 0.85rem;
            flex-shrink: 0;
        }

.footer-new .col .contact-item .text {
            font-size: 0.92rem;
            line-height: 1.6;
        }

.footer-new .col .contact-item .text strong {
            color: #fff;
            display: block;
        }

.footer-new .bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.04);
            padding: 22px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 0.82rem;
            color: rgba(255, 255, 255, 0.25);
        }

.footer-new .bottom .links {
            display: flex;
            gap: 20px;
        }

.footer-new .bottom .links a {
            color: rgba(255, 255, 255, 0.25);
            text-decoration: none;
            transition: var(--transition);
        }

.footer-new .bottom .links a:hover {
            color: #fff;
        }

/* --- Back to top --- */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--red);
            color: #fff;
            border: none;
            cursor: pointer;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 24px rgba(227, 30, 36, 0.25);
            transition: var(--transition);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            z-index: 999;
        }

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

.back-to-top:hover {
            background: var(--red-dark);
            transform: translateY(-4px);
            box-shadow: 0 12px 36px rgba(227, 30, 36, 0.35);
        }

/* --- Responsive --- */
        @media (max-width: 1200px) {
            .products-grid-new {
                grid-template-columns: repeat(2, 1fr);
            }
            .specialties-grid-new {
                grid-template-columns: repeat(2, 1fr);
            }
            .stats-grid-new {
                grid-template-columns: repeat(2, 1fr);
            }
            .stat-item-new:nth-child(2) {
                border-right: none;
            }
            .stat-item-new:nth-child(3) {
                border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            }
            .stat-item-new:nth-child(4) {
                border-right: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            }
            .footer-new .footer-grid {
                grid-template-columns: 1fr 1fr;
                gap: 40px;
            }
            .spotlight-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }
        }

.footer {
  background:var(--sw-dark);
  color:var(--sw-white);
  padding:80px 0 0
}

.footer-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:50px;
  margin-bottom:60px
}

.footer-logo {
  height:44px;
  width:auto;
  margin-bottom:18px;
  background:var(--sw-white);
  padding:6px 14px;
  border-radius:var(--radius)
}

.footer-description {
  font-size:0.92rem;
  line-height:1.8;
  color:rgba(255,255,255,0.65);
  margin-bottom:22px
}

.footer-social {
  display:flex;
  gap:10px;
  flex-wrap:wrap
}

.footer-title {
  font-size:1rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:22px;
  color:var(--sw-white);
  position:relative;
  padding-bottom:12px
}

.footer-title::after {
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:36px;
  height:3px;
  background:var(--sw-red);
  border-radius:2px
}

.footer-links li {
  margin-bottom:10px
}

.footer-links a {
  color:rgba(255,255,255,0.6);
  font-size:0.92rem;
  display:flex;
  align-items:center;
  gap:10px;
  transition:color 0.25s ease,padding-left 0.25s cubic-bezier(0.22,1,0.36,1)
}

.footer-links a::before {
  content:'›';
  color:var(--sw-red);
  font-size:1.1rem;
  transition:transform 0.3s ease
}

.footer-links a:hover {
  color:var(--sw-white);
  padding-left:5px
}

.footer-links a:hover::before {
  transform:translateX(3px)
}

.footer-contact-item {
  display:flex;
  gap:14px;
  margin-bottom:18px;
  align-items:flex-start
}

.footer-contact-icon {
  width:38px;
  height:38px;
  background:rgba(255,255,255,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--sw-red);
  flex-shrink:0;
  font-size:0.85rem;
  border-radius:var(--radius)
}

.footer-contact-text {
  font-size:0.92rem;
  color:rgba(255,255,255,0.65);
  line-height:1.6
}

.footer-contact-text strong {
  color:var(--sw-white);
  display:block;
  margin-bottom:2px
}

.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.06);
  padding:22px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px 20px
}

.footer-copyright {
  font-size:0.82rem;
  color:rgba(255,255,255,0.4)
}

.footer-bottom-links {
  display:flex;
  gap:20px;
  flex-wrap:wrap
}

.footer-bottom-links a {
  font-size:0.82rem;
  color:rgba(255,255,255,0.4);
  transition:color 0.25s ease
}

.footer-bottom-links a:hover {
  color:var(--sw-white)
}

.back-to-top {
  position:fixed;
  bottom:30px;
  right:30px;
  width:44px;
  height:44px;
  background:var(--sw-red);
  color:var(--sw-white);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transition:opacity 0.3s ease,visibility 0.3s ease,background 0.3s ease,transform 0.35s cubic-bezier(0.22,1,0.36,1),box-shadow 0.3s ease;
  z-index:999;
  border:none;
  font-size:1.1rem;
  border-radius:50%;
  box-shadow:0 4px 16px rgba(200,16,46,0.20)
}

.back-to-top.visible {
  opacity:1;
  visibility:visible
}

.back-to-top:hover {
  background:var(--sw-red-dark);
  transform:translateY(-4px);
  box-shadow:0 8px 32px rgba(200,16,46,0.30)
}

/* Container query support for cards */
@supports (container-type: inline-size)  {

  .products-grid,
  .specialties-grid,
  .stats-grid,
  .quality-grid,
  .machinery-grid,
  .footer-grid  {

    container-type: inline-size;

}

}

/* Grid gap fallback for older browsers */
@supports not (gap: 1px)  {

  .products-grid > * + *  {
   margin-top: 4px;
   margin-left: 4px;

}

  .specialties-grid > * + *  {
   margin-top: 25px;
   margin-left: 25px;

}

  .stats-grid > * + *  {
   margin-left: 0;

}

  .footer-grid > * + *  {
   margin-top: 50px;
   margin-left: 50px;

}

  .quality-grid > * + *  {
   margin-top: 25px;
   margin-left: 25px;

}

  .machinery-grid > * + *  {
   margin-top: 25px;
   margin-left: 25px;

}

  .values-grid > * + *  {
   margin-top: 24px;
   margin-left: 24px;

}

}

/* --- Back-to-top ring pulse --- */
.back-to-top.visible {
  animation: ts-btn-appear 0.35s cubic-bezier(0.22,1,0.36,1) both;
}

/* --- 19. FOOTER IMPROVEMENT --- */
.footer-new {
  position: relative;
  overflow: hidden;
}

.footer-new::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 30%, rgba(227,30,36,0.3) 50%, rgba(255,255,255,0.08) 70%, transparent 100%);
}

.footer-new::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; top: 0;
  background:
    radial-gradient(ellipse at 10% 80%, rgba(227,30,36,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 20%, rgba(243,146,0,0.03) 0%, transparent 40%);
  pointer-events: none;
}

.footer-new .brand p {
  font-size: 0.82rem !important;
  line-height: 1.7 !important;
  color: rgba(255,255,255,0.38) !important;
}

.footer-new .col h4,
.footer-new .col h3 {
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.25) !important;
  margin-bottom: 20px !important;
}

.footer-new .col ul li a {
  font-size: 0.82rem !important;
  color: rgba(255,255,255,0.45) !important;
  transition: color 0.25s ease, padding-left 0.25s ease !important;
  display: inline-block !important;
  padding-left: 0 !important;
}

.footer-new .col ul li a:hover {
  color: rgba(255,255,255,0.9) !important;
  padding-left: 8px !important;
}

/* Footer social icons improvement */
.footer-new .brand .social a {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.4) !important;
  font-size: 0.75rem !important;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease !important;
}

.footer-new .brand .social a:hover {
  background: rgba(227,30,36,0.15) !important;
  border-color: rgba(227,30,36,0.3) !important;
  color: #ff9090 !important;
  transform: translateY(-3px) !important;
}

.footer-new .bottom {
  border-top: 1px solid rgba(255,255,255,0.05) !important;
  padding-top: 24px !important;
  margin-top: 48px !important;
}

.footer-new .bottom p {
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.22) !important;
}

.footer-new .bottom .links a {
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.22) !important;
  transition: color 0.25s ease !important;
}

.footer-new .bottom .links a:hover {
  color: rgba(255,255,255,0.7) !important;
}

/* --- 20. BACK TO TOP improvement --- */
.back-to-top {
  background: #e31e24 !important;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(227,30,36,0.3) !important;
  border: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 12px 36px rgba(227,30,36,0.45) !important;
}

.footer-logo {
  height: 64px !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
}

/* ====================================================
   WHATSAPP FLOAT BUTTON
   ==================================================== */
.ts-whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 13px 18px 13px 16px;
  border-radius: 60px;
  box-shadow: 0 6px 28px rgba(37,211,102,0.4), 0 2px 8px rgba(0,0,0,0.15);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.3s ease,
              padding 0.3s ease;
  overflow: hidden;
  max-width: 52px;
  white-space: nowrap;
  animation: wa-entrance 0.6s cubic-bezier(0.22,1,0.36,1) 2s both;
}

.ts-whatsapp-btn:hover {
  max-width: 200px;
  padding: 13px 20px 13px 16px;
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(37,211,102,0.5), 0 2px 12px rgba(0,0,0,0.18);
}

.ts-whatsapp-btn svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

.ts-whatsapp-label {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.3s ease 0.05s;
}

.ts-whatsapp-btn:hover .ts-whatsapp-label {
  max-width: 120px;
  opacity: 1;
}

/* Pulse ring */
.ts-whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: #25D366;
  animation: wa-pulse 2.5s ease-in-out 3s infinite;
  z-index: -1;
}

/* Mobile WhatsApp */
@media (max-width: 768px) {
  .ts-whatsapp-btn {
    bottom: 80px;
    right: 16px;
    padding: 12px;
    border-radius: 50%;
    max-width: 52px;
  }
  .ts-whatsapp-btn:hover {
    max-width: 52px;
    padding: 12px;
    border-radius: 50%;
  }
  .ts-whatsapp-label { display: none; }
}
/* --- Footer links: left-aligned on touch devices too ---
   The touch-target rule in header.css (@media (pointer: coarse)) centers .footer-links a,
   so on phones the links sat in the middle while headings and Contact Us stayed left. */
.footer .footer-links a {
  justify-content: flex-start;
  text-align: left;
}
