/*
 * Afrivest Tech Elementor Site Kit — Brand Lock v1.2
 * Scoped to at-* site widgets to avoid changing buttons on unrelated pages.
 * !important is intentional: Elementor Theme Style and third-party themes may
 * assign green global button styles, including inline/global style rules.
 */

/* Clear, consistent brand colours, even when theme globals are green. */
.at-section .at-btn.elementor-widget-button .elementor-button,
.at-section .at-btn.elementor-widget-button .elementor-button:visited,
.at-section .at-product-cta.elementor-widget-button .elementor-button,
.at-section .at-form .at-form-button,
.at-section .at-elementor-pro-form .elementor-button[type="submit"] {
  background: #102f50 !important;
  background-image: none !important;
  border: 1px solid #102f50 !important;
  border-radius: 11px !important;
  color: #ffffff !important;
  box-shadow: 0 9px 22px rgba(16,47,80,.16) !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease !important;
}
.at-section .at-btn.elementor-widget-button .elementor-button:hover,
.at-section .at-product-cta.elementor-widget-button .elementor-button:hover,
.at-section .at-form .at-form-button:hover,
.at-section .at-elementor-pro-form .elementor-button[type="submit"]:hover {
  background: #1c486c !important;
  border-color: #1c486c !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(16,47,80,.21) !important;
}
.at-section .at-btn.elementor-widget-button .elementor-button .elementor-button-text,
.at-section .at-btn.elementor-widget-button .elementor-button .elementor-button-icon,
.at-section .at-product-cta.elementor-widget-button .elementor-button .elementor-button-text,
.at-section .at-form .at-form-button span,
.at-section .at-elementor-pro-form .elementor-button[type="submit"] span { color: inherit !important; fill: currentColor !important; }

/* Intentional gold action variant, not the global button colour. */
.at-section .at-btn-gold.elementor-widget-button .elementor-button,
.at-section .at-btn-gold.elementor-widget-button .elementor-button:visited {
  background: #c99b43 !important;
  background-image: none !important;
  border-color: #c99b43 !important;
  color: #102c49 !important;
  box-shadow: 0 8px 20px rgba(165,119,38,.18) !important;
}
.at-section .at-btn-gold.elementor-widget-button .elementor-button:hover {
  background: #dfb85d !important;
  border-color: #dfb85d !important;
  color: #102c49 !important;
}
/* Header action remains navy, for consistent navigation hierarchy. */
.at-header .at-nav-cta.elementor-widget-button .elementor-button,
.at-header .at-nav-cta.elementor-widget-button .elementor-button:visited {
  background: #102f50 !important;
  border: 1px solid #102f50 !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(16,47,80,.13) !important;
}
.at-header .at-nav-cta.elementor-widget-button .elementor-button:hover {
  background: #1c486c !important;
  border-color: #1c486c !important;
  color: #fff !important;
}

/* Secondary button variants should never pick up the active theme's green. */
.at-section .at-btn-outline.elementor-widget-button .elementor-button,
.at-section .at-btn-outline-light.elementor-widget-button .elementor-button,
.at-section .at-btn-outline.elementor-widget-button .elementor-button:visited,
.at-section .at-btn-outline-light.elementor-widget-button .elementor-button:visited {
  background: rgba(255,255,255,.95) !important;
  border: 1px solid #cdd8e3 !important;
  color: #173b5d !important;
  box-shadow: none !important;
}
.at-section .at-btn-outline.elementor-widget-button .elementor-button:hover,
.at-section .at-btn-outline-light.elementor-widget-button .elementor-button:hover {
  background: #eaf0f6 !important;
  border-color: #b6c7d8 !important;
  color: #0f2e50 !important;
}
.at-section .at-link-button.elementor-widget-button .elementor-button,
.at-section .at-link-button.elementor-widget-button .elementor-button:hover {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #bb934a !important;
  color: #153c60 !important;
  box-shadow: none !important;
}
.at-header .at-nav-link.elementor-widget-button .elementor-button,
.at-header .at-nav-link.elementor-widget-button .elementor-button:visited {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #3c5369 !important;
  box-shadow: none !important;
}
.at-header .at-nav-link.elementor-widget-button .elementor-button:hover,
.at-header .at-nav-link.at-active.elementor-widget-button .elementor-button {
  background: transparent !important;
  color: #0d2d4b !important;
}
.at-section .at-tab-button.elementor-widget-button .elementor-button,
.at-section .at-filter-button.elementor-widget-button .elementor-button {
  background: #fff !important;
  border: 1px solid #dce4eb !important;
  color: #264460 !important;
  box-shadow: none !important;
}
.at-section .at-tab-button.at-selected.elementor-widget-button .elementor-button,
.at-section .at-filter-button.at-selected.elementor-widget-button .elementor-button {
  background: #102f50 !important;
  color: #fff !important;
  border-color: #102f50 !important;
}

/* Compact, architectural header. */
.at-header.at-section,
.at-header.at-section.e-con {
  background: rgba(255,255,255,.97) !important;
  border-bottom: 1px solid #e1e7ed !important;
  box-shadow: 0 7px 22px rgba(11,37,66,.048) !important;
}
.at-header .at-header-row.e-con,
.at-header .at-header-row { min-height: 76px !important; }
.at-header .at-nav-link .elementor-button { padding: 10px 12px !important; }
.at-header .at-brand-name .elementor-heading-title { color: #102f50 !important; }
.at-header .at-brand-name span { color: #b68933 !important; }

/* Footer v1.2 — 3 useful columns, no duplicated solutions navigation. */
.at-footer.at-section,
.at-footer.at-section.e-con {
  background: #0b253f !important;
  border-top: 2px solid #bb934a !important;
  box-shadow: none !important;
  padding: 26px 0 12px !important;
  color: #fff !important;
}
.at-footer .at-shell.e-con,
.at-footer .at-shell { gap: 12px !important; }
.at-footer .at-footer-grid.e-con,
.at-footer .at-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(230px,1.6fr) minmax(120px,.55fr) minmax(190px,.85fr) !important;
  gap: clamp(18px,2.5vw,34px) !important;
  padding: 0 0 12px !important;
  align-items: start !important;
}
/* The second link list just repeats Product navigation; hide it, don't alter Elementor content. */
.at-footer .at-footer-grid > .at-footer-list:nth-child(3) { display: none !important; }
.at-footer .at-footer-grid > .e-con {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 3px !important;
  padding: 0 !important;
  align-items: flex-start !important;
}
.at-footer .at-footer-main,
.at-footer .at-footer-list { gap: 3px !important; }
.at-footer .at-footer-brand { gap: 9px !important; }
.at-footer .at-footer-brand .at-brand-logo,
.at-footer .at-footer-brand .at-brand-logo img {
  width: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  height: 40px !important;
}
.at-footer .at-brand-name .elementor-heading-title {
  font-size: 23px !important;
  line-height: 1.06 !important;
  color: #fff !important;
}
.at-footer .at-brand-sub p { font-size: 9px !important; letter-spacing: .12em !important; }
.at-footer .at-footer-main .elementor-widget-text-editor p {
  max-width: 365px;
  margin: 5px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: #b9c8d7 !important;
}
.at-footer .at-footer-list h4.elementor-heading-title {
  font-size: 11px !important;
  color: #e4bd6b !important;
  letter-spacing: .12em !important;
  line-height: 1.5 !important;
  margin: 0 0 5px !important;
}
.at-footer .at-footer-link.elementor-widget-button .elementor-button,
.at-footer .at-footer-link.elementor-widget-button .elementor-button:visited {
  background: transparent !important;
  background-image: none !important;
  color: #c8d4e0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 3px 0 !important;
  min-height: 0 !important;
  text-align: left !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}
.at-footer .at-footer-link.elementor-widget-button .elementor-button:hover {
  color: #e5c37a !important;
  background: transparent !important;
}
.at-footer .at-footer-link .elementor-button-text { color: inherit !important; }
.at-footer .elementor-widget-button { margin: 0 !important; }
.at-footer .at-footer-list .elementor-widget-text-editor p {
  color: #c8d4e0 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  margin: 0 0 2px !important;
}
.at-footer .at-footer-bottom,
.at-footer .at-footer-bottom.e-con {
  padding: 10px 0 0 !important;
  border-top: 1px solid rgba(229,237,243,.13) !important;
  gap: 4px !important;
}
.at-footer .at-footer-bottom p {
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
  color: #a8bccf !important;
}

/* Tablet and mobile: don't let Elementor desktop grid settings take over. */
@media (max-width: 850px) {
  .at-footer .at-footer-grid.e-con,
  .at-footer .at-footer-grid {
    grid-template-columns: minmax(0,1.4fr) minmax(0,.7fr) !important;
    gap: 16px !important;
  }
  .at-footer .at-footer-grid > .at-footer-list:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .at-footer.at-section,
  .at-footer.at-section.e-con { padding: 22px 0 12px !important; }
  .at-footer .at-footer-grid.e-con,
  .at-footer .at-footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 18px 14px !important; }
  .at-footer .at-footer-grid > .at-footer-main { grid-column: 1 / -1; }
  .at-footer .at-footer-grid > .at-footer-list:last-child { grid-column: auto; }
  .at-footer .at-footer-main .elementor-widget-text-editor p { max-width: 320px; }
  .at-header .at-header-row { min-height: 0 !important; }
}
/* Elementor's original body-scoped mobile grid rule has extra specificity. */
@media (max-width: 850px) {
  body .at-footer.at-section .at-footer-grid.e-con {
    grid-template-columns: minmax(0,1.4fr) minmax(0,.7fr) !important;
  }
}
@media (max-width: 560px) {
  body .at-footer.at-section .at-footer-grid.e-con {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 16px 12px !important;
  }
}
