/**
 * INKLINEDIGITAL layout fixes: logo-as-image + footer brand + hero slider controls.
 * Load after style-starter.css and section-3d-scroll.css.
 */

/* --- Navbar: theme expects text brand; image logos need hard limits --- */
#site-header .navbar .navbar-brand.navbar-brand-logo {
  font-size: 0;
  line-height: 0;
  margin-right: 0.75rem;
  max-width: min(240px, 42vw);
  flex-shrink: 0;
}

.navbar-brand-img {
  display: block;
  height: auto;
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .navbar-brand-img {
    max-height: 46px;
  }
}

#site-header .navbar {
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding: 0.4rem 0.35rem;
  font-size: 15px;
  white-space: nowrap;
}

/* --- Hero: slider + .buttons must share one positioned wrapper --- */
.ink-hero-wrap {
  position: relative;
  min-height: 100vh;
}

.ink-hero-wrap .slider {
  min-height: 100vh;
}

.ink-hero-wrap .buttons {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.ink-hero-wrap .buttons button {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.ink-hero-wrap .buttons button#prev {
  left: 1rem;
}

.ink-hero-wrap .buttons button#next {
  right: 1rem;
}

/* Hero text box: theme offsets break on smaller screens */
@media (max-width: 991.98px) {
  .ink-hero-wrap .slide .content {
    left: 50% !important;
    right: auto !important;
    max-width: min(620px, 94%) !important;
    transform: translateX(-50%) !important;
    text-align: center;
  }

  .ink-hero-wrap .slide.current .content {
    transform: translateX(-50%) !important;
  }
}

/* --- Content images --- */
#whychoose img.img-fluid,
.home-services img {
  max-width: 100%;
  height: auto;
}

/* --- Footer (site-footer-enhanced): balance, contrast, legal bar --- */
.w3l-footer.site-footer-enhanced {
  overflow-x: hidden;
  padding-top: 3.5rem !important;
  padding-bottom: 2.5rem !important;
}

.w3l-footer.site-footer-enhanced .footer-inner {
  position: relative;
  z-index: 1;
}

.w3l-footer.site-footer-enhanced .footer-main-grid {
  align-items: flex-start;
  justify-content: space-between;
  --bs-gutter-y: 1.75rem;
}

@media (min-width: 992px) {
  .w3l-footer.site-footer-enhanced .footer-main-grid > [class*="col-"] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .w3l-footer.site-footer-enhanced .footer-main-grid > [class*="col-"]:first-child {
    padding-left: 0;
  }

  .w3l-footer.site-footer-enhanced .footer-main-grid > [class*="col-"]:last-child {
    padding-right: 0;
  }
}

.w3l-footer.site-footer-enhanced .footer-brand-logo {
  margin-bottom: 0;
  padding-right: 0.5rem;
}

.w3l-footer.site-footer-enhanced .footer-brand-img-link,
.w3l-footer.site-footer-enhanced .footer-brand-img {
  display: inline-block;
  max-width: 100%;
}

.w3l-footer.site-footer-enhanced .footer-brand-img {
  height: auto;
  max-height: 108px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.w3l-footer.site-footer-enhanced h6.footer-col-title {
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem !important;
  padding-bottom: 0.65rem !important;
  border-bottom: 2px solid rgba(230, 0, 18, 0.85);
  display: block;
  width: 100%;
}

.w3l-footer.site-footer-enhanced .footer-list-arrows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.w3l-footer.site-footer-enhanced .footer-list-arrows li {
  margin: 0.4rem 0;
}

.w3l-footer.site-footer-enhanced .footer-list-arrows a {
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.45;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.w3l-footer.site-footer-enhanced .footer-list-arrows a:hover {
  color: #fff !important;
  transform: translateX(4px);
}

.w3l-footer.site-footer-enhanced .footer-contact-lines {
  margin-top: 0.15rem;
}

.w3l-footer.site-footer-enhanced .footer-contact-lines .fc-line {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.w3l-footer.site-footer-enhanced .footer-contact-lines .fc-line:last-child {
  margin-bottom: 0;
}

.w3l-footer.site-footer-enhanced .footer-contact-lines .fc-line i {
  flex: 0 0 auto;
  width: 1.125rem;
  text-align: center;
  margin-top: 0.2rem;
  color: #e60012;
  font-size: 1rem;
  opacity: 1;
}

.w3l-footer.site-footer-enhanced .footer-contact-lines .fc-line a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  word-break: break-word;
}

.w3l-footer.site-footer-enhanced .footer-contact-lines .fc-line a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.w3l-footer.site-footer-enhanced .footer-contact-lines .fc-line span {
  color: rgba(255, 255, 255, 0.82);
}

.w3l-footer.site-footer-enhanced .footer-legal-stack {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.w3l-footer.site-footer-enhanced .footer-legal-stack p {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.875rem;
  line-height: 1.65;
}

.w3l-footer.site-footer-enhanced .footer-legal-stack .fl-links {
  margin-top: 0.35rem;
}

.w3l-footer.site-footer-enhanced .footer-legal-stack .fl-links a {
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none;
}

.w3l-footer.site-footer-enhanced .footer-legal-stack .fl-links a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.w3l-footer.site-footer-enhanced .footer-legal-stack .fl-sep {
  color: rgba(255, 255, 255, 0.35);
  padding: 0 0.5rem;
}

@media (max-width: 767.98px) {
  .w3l-footer.site-footer-enhanced {
    padding-top: 2.75rem !important;
    padding-bottom: 2rem !important;
  }

  .w3l-footer.site-footer-enhanced .footer-brand-logo {
    margin-bottom: 1.25rem;
  }

  .w3l-footer.site-footer-enhanced .footer-brand-img {
    max-height: 88px;
    max-width: 270px;
  }
}
