/*
 * Afrivest Tech — Premium Industrial Mobility polish, v1.1.0
 * Loaded after site.css. All rules are scoped to imported Afrivest Elementor pages.
 * Existing page content and Elementor widgets remain editable and untouched.
 */
body.at-site {
  --at-blue: #0c294b;
  --at-blue-2: #1c4a73;
  --at-gold: #b98b35;
  --at-gold-soft: #f2e8d4;
  --at-ink: #192a40;
  --at-muted: #566b80;
  --at-bg: #f5f8fb;
  --at-stroke: #dfe6ed;
  --at-shadow: 0 18px 46px rgba(21,42,72,.085);
  background: #f7f9fc;
  color: var(--at-ink);
}

/* Site navigation: bright architectural finish, cleaner typographic emphasis */
body.at-site .at-section.at-header,
body.at-site .at-section.at-header.e-con {
  position: sticky;
  top: 0;
  z-index: 990;
  padding: 0;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid #e1e7ee;
  box-shadow: 0 9px 32px rgba(20,42,69,.06);
}
body.at-site .at-header-row,
body.at-site .at-header-row.e-con {
  min-height: 94px;
  gap: clamp(14px,2vw,28px);
}
body.at-site .at-header .at-brand-logo img {
  border: 1px solid #eef0f2;
  box-shadow: 0 6px 18px rgba(11,43,78,.09);
  background: white;
}
body.at-site .at-brand-name .elementor-heading-title {
  color: #092845;
  font-weight: 850;
  letter-spacing: -.052em;
}
body.at-site .at-brand-name span { color: #bf8d26; }
body.at-site .at-brand-sub p {
  color: #64758a;
  letter-spacing: .18em;
  font-weight: 700;
}
body.at-site .at-nav { gap: 4px; }
body.at-site .at-nav-link .elementor-button {
  position: relative;
  background: transparent;
  color: #304a65;
  border-radius: 0;
  padding: 12px 14px 13px;
  font-weight: 700;
  letter-spacing: .012em;
  box-shadow: none;
}
body.at-site .at-nav-link .elementor-button::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: #bc902e;
  transform: scaleX(0);
  transition: transform .22s ease;
  transform-origin: center;
}
body.at-site .at-nav-link .elementor-button:hover,
body.at-site .at-nav-link.at-active .elementor-button {
  background: transparent;
  color: #0c294b;
}
body.at-site .at-nav-link .elementor-button:hover::after,
body.at-site .at-nav-link.at-active .elementor-button::after { transform: scaleX(1); }

/* Buttons: navy foundation, restrained amber for primary actions */
body.at-site .at-btn .elementor-button {
  background: #0b2e51;
  color: #fff;
  padding: 15px 25px;
  border: 1px solid #0b2e51;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .035em;
  box-shadow: 0 10px 23px rgba(9,41,79,.13);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
body.at-site .at-btn .elementor-button:hover {
  background: #174971;
  border-color: #174971;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 15px 29px rgba(9,41,79,.18);
}
body.at-site .at-btn-gold .elementor-button {
  background: #c39438;
  border-color: #c39438;
  color: #102b46;
  box-shadow: 0 9px 20px rgba(169,125,37,.18);
}
body.at-site .at-btn-gold .elementor-button:hover {
  background: #d3a94e;
  border-color: #d3a94e;
  color: #102b46;
  box-shadow: 0 13px 26px rgba(169,125,37,.22);
}
body.at-site .at-header .at-nav-cta .elementor-button {
  background: #0c294b;
  color: #fff;
  border-color: #0c294b;
  border-radius: 12px;
  box-shadow: 0 9px 21px rgba(12,41,75,.12);
}
body.at-site .at-header .at-nav-cta .elementor-button:hover {
  background: #1a456e;
  border-color: #1a456e;
  color: #fff;
}
body.at-site .at-btn-outline .elementor-button {
  background: #fff;
  color: #0c294b;
  border: 1px solid #cfd9e4;
  box-shadow: none;
}
body.at-site .at-btn-outline .elementor-button:hover {
  background: #eef3f8;
  border-color: #bdcddd;
  color: #0c294b;
}
body.at-site .at-btn-outline-light .elementor-button {
  color: #16334f;
  background: rgba(255,255,255,.66);
  border-color: rgba(33,64,91,.2);
  box-shadow: none;
}
body.at-site .at-btn-outline-light .elementor-button:hover {
  background: #fff;
  color: #0c294b;
}
body.at-site .at-link-button .elementor-button {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #c39438;
  padding: 6px 0 9px;
  background: none;
  box-shadow: none;
  color: #183f65;
}
body.at-site .at-link-button .elementor-button:hover { color: #a87d2b; background: none; box-shadow: none; }

/* Premium light hero. Rich graphite typography + image carry the visual weight. */
body.at-site .at-hero,
body.at-site .at-hero.at-section.e-con {
  background:
    radial-gradient(circle at 84% 6%, rgba(198,215,235,.46) 0, transparent 29%),
    radial-gradient(circle at 2% 90%, rgba(217,202,166,.15) 0, transparent 34%),
    linear-gradient(133deg,#fbfcfe 0%,#f1f6fa 54%,#e9f0f8 100%);
  border-bottom: 1px solid #e2e9ef;
  padding-top: 78px;
  padding-bottom: 83px;
}
body.at-site .at-hero .at-eyebrow .elementor-heading-title { color: #ac7d27!important; }
body.at-site .at-hero-title .elementor-heading-title {
  color: #0b2b4d!important;
  font-size: clamp(43px,5.1vw,72px)!important;
  line-height: 1.02!important;
  letter-spacing: -.053em!important;
}
body.at-site .at-hero .elementor-widget-text-editor p,
body.at-site .at-hero-intro p {
  color: #536a80!important;
  font-size: 16px;
  line-height: 1.78;
}
body.at-site .at-hero-art {
  border-radius: 26px;
  background: #dce7f1;
  border: 6px solid #fff;
  box-shadow: 0 26px 64px rgba(17,46,83,.14);
}
body.at-site .at-hero-image,
body.at-site .at-hero-image .elementor-widget-container { width: 100%; height: 100%; }
body.at-site .at-hero-image img {
  display: block;
  width: 100%!important;
  max-width: none!important;
  height: clamp(400px,42vw,590px)!important;
  object-fit: cover!important;
  object-position: center;
  padding: 0!important;
}
body.at-site .at-hero-badges {
  margin: 0 13px 13px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(222,229,235,.85);
  box-shadow: 0 10px 20px rgba(25,48,74,.07);
}
body.at-site .at-hero-badge .elementor-heading-title { color: #14385b!important; }
body.at-site .at-chip-on-dark .elementor-heading-title {
  background: #fff;
  border-color: #dce5ed;
  color: #1b4164!important;
}

/* Section rhythm and improved premium surfaces */
body.at-site .at-section.at-white-section { background: #fff; }
body.at-site .at-info-section { background: #fff; border-bottom: 1px solid #edf1f5; }
body.at-site .at-solutions-section { background: #f5f8fc; }
body.at-site .at-client-section { background: #f7f9fc; }
body.at-site .at-product-section { background: #f8fafc; }
body.at-site .at-page-hero {
  background: linear-gradient(128deg,#fff 0%,#f3f7fb 62%,#e8f0f7 100%);
  border-bottom: 1px solid #e0e8f0;
}
body.at-site .at-section .elementor-heading-title { color: #112f51; letter-spacing: -.035em; }
body.at-site .at-eyebrow .elementor-heading-title { color: #ae7f29!important; }
body.at-site .at-section .elementor-widget-text-editor p { color: #5b7083; }
body.at-site .at-info-card,
body.at-site .at-tile,
body.at-site .at-solution-card,
body.at-site .at-card,
body.at-site .at-client-badge {
  border: 1px solid #e2e8ef;
  border-radius: 19px;
  box-shadow: 0 14px 36px rgba(23,49,79,.065);
}
body.at-site .at-info-card { border-top: 2px solid #d5b478; }
body.at-site .at-solution-card { transition: transform .22s ease, box-shadow .22s ease; }
body.at-site .at-solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(23,49,79,.12);
}
body.at-site .at-benefit-grid .at-feature-chip,
body.at-site .at-bullet,
body.at-site .at-metric { background: #f5f8fb; border-color: #e1e9f0; }

/* IMAGE FIT: Elementor image widgets and inner wrapper must both fill the frame. */
body.at-site .at-media,
body.at-site .at-page-hero-art,
body.at-site .at-solution-image,
body.at-site .at-tab-image { overflow: hidden; background: #e9f0f6; }
body.at-site .at-media .elementor-widget-image,
body.at-site .at-media .elementor-widget-container,
body.at-site .at-page-hero-art .elementor-widget-image,
body.at-site .at-page-hero-art .elementor-widget-container,
body.at-site .at-solution-image .elementor-widget-container,
body.at-site .at-tab-image .elementor-widget-container { width: 100%; height: 100%; }
body.at-site .at-media img,
body.at-site .at-page-hero-art img,
body.at-site .at-tab-image img {
  display: block;
  width: 100%!important;
  max-width: none!important;
  object-fit: cover!important;
  object-position: center;
  padding: 0!important;
}
body.at-site .at-media img { height: clamp(325px,34vw,480px)!important; }
body.at-site .at-page-hero-art img { height: clamp(310px,31vw,445px)!important; }
body.at-site .at-tab-image img { height: 390px!important; }
body.at-site .at-solution-image,
body.at-site .at-solution-image .elementor-widget-container { height: 238px; }
body.at-site .at-solution-image img {
  display:block;
  width:100%!important;
  max-width: none!important;
  height: 238px!important;
  object-fit: cover!important;
  object-position: center;
  padding: 0!important;
  background: #e9eff6;
}
/* The hardware-focused images already contain neutral studio backgrounds.
 * A modest zoom eliminates built-in empty margins without clipping devices. */
body.at-site .at-solution-image img[src*="fare-device"],
body.at-site .at-solution-image img[src*="tracking-device"] { transform: scale(1.16); }
body.at-site .at-solution-image img[src*="counter-device"] { transform: scale(1.06); }
body.at-site .at-solution-image img[src*="transit-dashboard"] { transform: scale(1.07); }

/* Elementor native Swiper carousels: fixed full-bleed frame, no 'small image in big box'. */
body.at-site .at-product-carousel,
body.at-site .at-product-carousel .elementor-widget-container,
body.at-site .at-product-carousel .swiper { width: 100%!important; min-width: 0; }
body.at-site .at-product-carousel .swiper {
  border: 1px solid #dfe8f1;
  border-radius: 19px;
  background: #e9f0f6;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(24,51,78,.065);
}
body.at-site .at-product-carousel .swiper-wrapper { align-items: stretch; }
body.at-site .at-product-carousel .swiper-slide {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: auto!important;
  aspect-ratio: 8 / 5;
  min-width: 0;
  overflow: hidden;
}
body.at-site .at-product-carousel .swiper-slide a,
body.at-site .at-product-carousel .swiper-slide figure { width: 100%; height: 100%; display: block; }
body.at-site .at-product-carousel .swiper-slide .swiper-slide-image,
body.at-site .at-product-carousel .swiper-slide img {
  display: block!important;
  width: 100%!important;
  max-width: none!important;
  height: 100%!important;
  min-height: 100%!important;
  max-height: none!important;
  aspect-ratio: auto!important;
  object-fit: cover!important;
  object-position: center!important;
  padding: 0!important;
  margin: 0!important;
}
/* Zoom only source images with substantial built-in empty margins. */
body.at-site .at-product-carousel .swiper-slide img[src*="fare-device"],
body.at-site .at-product-carousel .swiper-slide img[src*="tracking-device"] { transform: scale(1.15); }
body.at-site .at-product-carousel .swiper-slide img[src*="counter-device"] { transform: scale(1.06); }
body.at-site .at-product-carousel .swiper-slide img[src*="transit-dashboard"],
body.at-site .at-product-carousel .swiper-slide img[src*="tracking-map"] { transform: scale(1.055); }
body.at-site .at-product-carousel .elementor-swiper-button {
  width: 34px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #153759!important;
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 17px rgba(12,42,75,.15);
  border: 1px solid rgba(207,220,231,.85);
  border-radius: 50%;
}
body.at-site .at-product-carousel .swiper-pagination-bullet { background: #9eacbc; opacity: .55; }
body.at-site .at-product-carousel .swiper-pagination-bullet-active { background: #bd9034; opacity: 1; }
body.at-site .at-slide-label .elementor-heading-title { background: #eef3f8; color: #52677c!important; }
body.at-site .at-product-layout { border-color: #e1e8f0; border-radius: 22px; box-shadow: 0 18px 42px rgba(23,49,79,.075); }

/* Header and footer are Elementor-native containers, keep them editable. */
body.at-site .at-footer,
body.at-site .at-footer.at-section.e-con {
  position: relative;
  background: linear-gradient(124deg,#0b2544 0%,#102f50 68%,#143a5d 100%);
  color: #fff;
  border-top: 3px solid #bb8b2d;
  padding: 62px 0 25px;
}
body.at-site .at-footer-grid,
body.at-site .at-footer-grid.e-con { gap: clamp(22px,3vw,45px); padding-bottom: 29px; }
body.at-site .at-footer .elementor-heading-title { color: #fff!important; }
body.at-site .at-footer .at-brand-name span { color: #d6ad57; }
body.at-site .at-footer .at-footer-list h4.elementor-heading-title {
  color: #e1ba66!important;
  font-size: 12px!important;
  letter-spacing: .16em!important;
  text-transform: uppercase;
}
body.at-site .at-footer .elementor-widget-text-editor p { color: rgba(233,241,248,.72); line-height: 1.75; }
body.at-site .at-footer .at-brand-sub p { color: rgba(230,238,246,.62); }
body.at-site .at-footer-link .elementor-button {
  color: rgba(240,245,249,.76);
  background: transparent;
  font-weight: 550;
  padding: 6px 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  text-decoration: none;
  font-size: 13px;
  text-align: left;
}
body.at-site .at-footer-link .elementor-button:hover { color:#e9c06c; background:transparent; }
body.at-site .at-footer-bottom { border-top: 1px solid rgba(228,237,246,.17); padding-top: 18px; }
body.at-site .at-footer-bottom p { color: rgba(228,237,246,.58)!important; font-size: 12px!important; }
body.at-site .at-cta,
body.at-site .at-cta.e-con {
  background: linear-gradient(116deg,#0c294a 0%,#1a476e 100%);
  border: 1px solid rgba(255,255,255,.13);
  border-top: 2px solid #c89d43;
  border-radius: 20px;
  box-shadow: 0 18px 43px rgba(12,42,79,.13);
}
body.at-site .at-filter-button .elementor-button { border-radius: 10px; color: #36506a; }
body.at-site .at-filter-button.at-selected .elementor-button {
  color: #fff;
  background: #0c294b;
  border-color: #0c294b;
}
body.at-site .at-form .at-form-button,
body.at-site .at-elementor-pro-form .elementor-button[type="submit"] {
  border-radius: 12px;
  background: #0c294b;
  color: #fff;
  box-shadow: 0 10px 22px rgba(12,41,75,.16);
}

@media (max-width: 1020px) {
  body.at-site .at-header-row { min-height: 82px; }
}
@media (max-width: 760px) {
  body.at-site .at-section.at-header { position: relative; }
  body.at-site .at-hero,
  body.at-site .at-hero.at-section.e-con { padding-top: 49px; padding-bottom: 58px; }
  body.at-site .at-hero-image img { height: 390px!important; }
  body.at-site .at-media img { height: 330px!important; }
  body.at-site .at-page-hero-art img { height: 330px!important; }
  body.at-site .at-tab-image img { height: 320px!important; }
  body.at-site .at-footer { padding: 50px 0 24px; }
  body.at-site .at-product-carousel .swiper-slide { aspect-ratio: 8 / 5; }
}
@media (max-width: 480px) {
  body.at-site .at-hero-image img { height: 320px!important; }
  body.at-site .at-solution-image,body.at-site .at-solution-image .elementor-widget-container,
  body.at-site .at-solution-image img { height: 220px!important; }
  body.at-site .at-product-carousel .swiper-slide { aspect-ratio: 8 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  body.at-site *,body.at-site *::before,body.at-site *::after { transition-duration: 0s!important; }
}

/* Fix Elementor container-specific desktop grid rules overriding mobile breakpoints. */
@media (max-width: 1020px) {
  body.at-site .at-footer-grid.e-con { grid-template-columns: repeat(2,minmax(0,1fr))!important; }
}
@media (max-width: 760px) {
  body.at-site .at-footer-grid.e-con { gap: 25px!important; }
  body.at-site .at-header-row.e-con { min-height: 0; }
  body.at-site .at-hero-grid.e-con,
  body.at-site .at-product-layout.e-con,
  body.at-site .at-page-hero-grid.e-con,
  body.at-site .at-split.e-con,
  body.at-site .at-contact-layout.e-con { flex-direction: column!important; }
  body.at-site .at-header-row.e-con { flex-wrap: wrap!important; }
  body.at-site .at-hero-copy,
  body.at-site .at-hero-art,
  body.at-site .at-split > .e-con,
  body.at-site .at-page-hero-grid > .e-con,
  body.at-site .at-product-layout > .e-con,
  body.at-site .at-contact-layout > .e-con {
    width: 100%!important;
    min-width: 0!important;
    flex-basis: auto!important;
  }
}
@media (max-width: 480px) {
  body.at-site .at-footer-grid.e-con { grid-template-columns: minmax(0,1fr)!important; }
  body.at-site .at-footer-grid .elementor-widget,
  body.at-site .at-footer-grid .elementor-widget-container,
  body.at-site .at-footer-grid .at-footer-list { min-width:0; max-width:100%; }
  body.at-site .at-footer-link .elementor-button { overflow-wrap:anywhere; white-space:normal; }
}
