
/* KTG optimization overrides */
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; }
.site-logo, .footer-logo { display: inline-flex; align-items: center; gap: 12px; }
.site-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.footer-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}
.pricing-grid, .addons-grid, .services-row, .stats-grid, .steps-grid, .tech-grid,
.why-grid, .features-grid, .quote-grid, .footer-grid {
  min-width: 0;
}
.card, .addon-card, .s-card, .feature-card, .step-card, .guide-card {
  min-width: 0;
}
.card, .addon-card {
  display: flex;
  flex-direction: column;
}
.card .features, .addon-card > p {
  flex: 1 1 auto;
}
.card .btn-order-outline, .card .btn-order-solid, .addon-card .addon-btn {
  margin-top: auto;
}
.addon-card .addon-price,
.addon-card .price-note,
.card .price-val {
  word-break: break-word;
}
.details-table-wrapper, .compare-table-wrap, .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 950px) {
  .pricing-grid, .addons-grid { grid-template-columns: 1fr; }
  .pricing-grid .card.featured { transform: none !important; }
}
@media (max-width: 768px) {
  .wrapper, .container { width: min(100% - 28px, 1200px) !important; }
  .site-nav-shell { width: min(100% - 18px, 1200px) !important; }
  .site-nav { gap: 12px; }
  .site-logo-wordmark { line-height: 1; }
  .site-logo-img { width: 36px; height: 36px; }
  .hero-title, .pkg-title { word-break: break-word; }
  .services-row, .stats-grid, .guide-steps { grid-template-columns: 1fr !important; }
  .pricing-grid, .addons-grid, .quote-grid { gap: 18px !important; }
  .card, .addon-card, .form-card, .summary-card, .guide-card { border-radius: 22px; }
  .card, .addon-card { padding-bottom: 22px; }
  .quote-cta-bar, .addons-quote-cta { align-items: stretch !important; }
  .quote-review-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  body { overflow-x: hidden; }
  .wrapper, .container { width: min(100% - 20px, 1200px) !important; }
  .site-logo-wordmark .logo-solutions { font-size: .72rem; }
  .site-logo-wordmark .logo-ktg { font-size: 1rem; }
  .hero-title, .pkg-title { font-size: clamp(2rem, 9vw, 2.7rem) !important; }
}


/* === March 2026 mobile + footer + favicon polish === */
:root { --mobile-side-gap: 16px; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  text-rendering: optimizeLegibility;
}

svg { max-width: 100%; }

.social-icon {
  flex: 0 0 auto;
  overflow: hidden;
}

.social-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.main-footer .footer-grid,
.main-footer .footer-col,
.main-footer .about-col {
  min-width: 0;
}

/* Desktop footer must stay like the home page layout */
@media (min-width: 901px) {
  .main-footer .footer-container {
    text-align: left !important;
  }

  .main-footer .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr !important;
    justify-items: stretch !important;
    text-align: left !important;
    gap: 50px !important;
  }

  .main-footer .footer-col,
  .main-footer .about-col {
    display: block !important;
    text-align: left !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }

  .main-footer .footer-logo {
    display: inline-flex !important;
    justify-content: flex-start !important;
  }

  .main-footer .footer-desc,
  .main-footer .footer-title,
  .main-footer .contact-info {
    text-align: left !important;
  }

  .main-footer .footer-desc {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 350px !important;
  }

  .main-footer .footer-links {
    display: block !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  .main-footer .social-links {
    justify-content: flex-start !important;
  }

  .main-footer .footer-badge {
    display: inline-flex !important;
    justify-content: center !important;
  }

  .main-footer .footer-title::after {
    left: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 1024px) {
  .wrapper,
  .container,
  .footer-container,
  .site-nav-shell {
    width: min(100% - 28px, 1200px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .addons-grid,
  .pricing-grid,
  .quote-grid,
  .services-row,
  .services-container,
  .why-grid,
  .features-grid,
  .stats-grid,
  .footer-grid {
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .wrapper,
  .container,
  .footer-container,
  .site-nav-shell {
    width: min(100% - 22px, 1200px) !important;
  }

  .addons-grid,
  .pricing-grid,
  .quote-grid,
  .services-row,
  .services-container,
  .why-grid,
  .features-grid,
  .stats-grid,
  .steps-grid,
  .guide-steps,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .addon-card,
  .card,
  .service-box,
  .feature-card,
  .summary-card,
  .form-card,
  .guide-card,
  .badge-card,
  .info-card,
  .selection-box {
    width: 100% !important;
    min-width: 0 !important;
  }

  .addon-card,
  .card,
  .service-box,
  .summary-card,
  .form-card,
  .selection-box,
  .guide-card,
  .badge-card {
    border-radius: 22px !important;
  }

  .hero-title,
  .pkg-title,
  .section-title,
  .quote-title {
    font-size: clamp(2rem, 8vw, 2.9rem) !important;
    line-height: 1.1 !important;
  }

  .hero-subtitle,
  .pkg-sub,
  .section-subtitle,
  .quote-hero .hero-subtitle {
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
  }

  .main-footer .footer-grid,
  .main-footer .footer-bottom,
  .sub-footer-content {
    text-align: center !important;
  }

  .main-footer .footer-bottom,
  .sub-footer-content {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }

  .main-footer .social-links {
    justify-content: center !important;
  }

  .main-footer .footer-col,
  .main-footer .about-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-items: center !important;
  }

  .sub-footer .wrapper,
  .selection-footer .wrapper {
    width: min(100% - 22px, 1200px) !important;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-header.scrolled {
    top: 8px !important;
    padding: 0 6px !important;
  }

  .site-nav,
  .site-header.scrolled .site-nav {
    min-height: 72px !important;
    padding: 12px !important;
    border-radius: 24px !important;
  }

  .site-logo-wordmark {
    max-width: 100%;
  }

  .site-logo-wordmark .logo-ktg {
    font-size: 1rem !important;
  }

  .site-logo-wordmark .logo-solutions {
    font-size: 0.68rem !important;
    letter-spacing: 0.06em !important;
  }

  .mobile-toggle {
    width: 42px !important;
    height: 42px !important;
  }

  .addon-card,
  .card,
  .service-box,
  .summary-card,
  .form-card,
  .selection-box,
  .guide-card,
  .badge-card,
  .info-card {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .social-links {
    gap: 10px !important;
  }

  .social-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 13px !important;
  }

  .social-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .sub-footer {
    padding-bottom: 24px !important;
  }
}


/* === Final footer sync fix across home, package, addons, cart === */
.main-footer{
  width:100% !important;
}
.main-footer .footer-container{
  width:min(90%,1200px) !important;
  max-width:1200px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.main-footer .footer-grid{
  display:grid !important;
  grid-template-columns:1.5fr 1fr 1.2fr !important;
  gap:50px !important;
  justify-items:stretch !important;
  align-items:start !important;
  text-align:left !important;
}
.main-footer .about-col,
.main-footer .footer-col{
  min-width:0 !important;
  text-align:left !important;
  align-items:flex-start !important;
}
.main-footer .footer-title{
  position:relative !important;
  display:inline-block !important;
  margin:0 0 30px !important;
  padding-bottom:10px !important;
}
.main-footer .footer-title::after{
  content:'' !important;
  position:absolute !important;
  left:0 !important;
  bottom:0 !important;
  width:30px !important;
  height:3px !important;
  border-radius:999px !important;
  background:#00d2ff !important;
  transform:none !important;
}
.main-footer .footer-links{
  display:block !important;
  padding:0 !important;
  margin:0 !important;
  list-style:none !important;
}
.main-footer .footer-links li{
  margin:0 0 15px !important;
}
.main-footer .footer-links a,
.main-footer .contact-info,
.main-footer .footer-desc{
  text-align:left !important;
}
.main-footer .footer-desc{
  max-width:350px !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.main-footer .social-links{
  display:flex !important;
  justify-content:flex-start !important;
  align-items:center !important;
}
.main-footer .footer-badge{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
.main-footer .footer-bottom{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:16px !important;
}

@media (max-width: 900px){
  .main-footer .footer-container{
    width:min(100% - 28px,1200px) !important;
  }
  .main-footer .footer-grid{
    grid-template-columns:1fr !important;
    gap:38px !important;
    text-align:center !important;
    justify-items:center !important;
  }
  .main-footer .about-col,
  .main-footer .footer-col{
    text-align:center !important;
    align-items:center !important;
  }
  .main-footer .footer-title,
  .main-footer .footer-desc,
  .main-footer .contact-info,
  .main-footer .footer-links a{
    text-align:center !important;
  }
  .main-footer .footer-title::after{
    left:50% !important;
    transform:translateX(-50%) !important;
  }
  .main-footer .footer-desc{
    margin-left:auto !important;
    margin-right:auto !important;
  }
  .main-footer .social-links{
    justify-content:center !important;
  }
  .main-footer .footer-badge{
    margin-left:auto !important;
    margin-right:auto !important;
  }
  .main-footer .footer-bottom{
    flex-direction:column !important;
    text-align:center !important;
  }
}


/* Final brand/footer polish */
.main-footer .footer-logo .logo-white{
  letter-spacing:0.03em !important;
}
