/* S&A Global Tech Solutions overrides
   Rule: only remap green/teal tokens to logo navy.
   Keep gold (theme-color1) and original button/icon patterns. */

/* ========== Green → logo navy (variables only) ========== */
:root {
  /* was #005252 teal */
  --theme-color3: #003366;
  --theme-color3-rgb: 0, 51, 102;
  /* was #87c03d lime */
  --theme-color4: #0a4a8a;
  --theme-color4-rgb: 10, 74, 138;
  /* dark greens / teal backgrounds → navy */
  --theme-color-dark: #001a33;
  --theme-color-dark2: #002244;
  --theme-light-background: #002b5c;
  /* keep original gold CTA color — do NOT replace with navy */
  --theme-color1: #ffd15b;
  --theme-color1-rgb: 255, 209, 91;
  --theme-color1-text-color: #222222;
  --hover-theme-color: #ffd15b;
  --bg-theme-color1: #ffd15b;
  --bg-theme-color3: #003366;
  --bg-theme-color4: #0a4a8a;
  --gradient-1: linear-gradient(181.35deg, rgba(5, 15, 19, 0) 1.15%, rgba(0, 51, 102, 0.12) 98.91%);
}

/* ========== Preloader ========== */
.preloader:after {
  width: 220px !important;
  height: 110px !important;
  margin-left: -110px !important;
  margin-top: -75px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}
.preloader:before {
  margin-top: 60px !important;
  color: #003366 !important;
}
body.sa-loaded .preloader,
.preloader.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

/* ========== Logo sizing ========== */
.main-header .logo-box .logo a,
.sticky-header .logo a,
.mobile-menu .nav-logo a {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  line-height: 0;
}
.header-style-one .logo-box img,
.header-style-two .logo-box img,
.main-header .logo img {
  max-width: 170px !important;
  max-height: 58px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}
.sticky-header .logo img {
  max-width: 150px !important;
  max-height: 48px !important;
}
.footer-widget .logo img {
  max-width: 200px !important;
  max-height: 80px !important;
}

/* ========== Subpage title contrast ========== */
.page-title {
  position: relative;
}
.page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 26, 51, 0.65) 0%, rgba(0, 51, 102, 0.72) 100%);
  z-index: 0;
}
.page-title .auto-container,
.page-title .title-outer {
  position: relative;
  z-index: 1;
}
.page-title .title {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.page-title .page-breadcrumb li {
  color: #fff !important;
}

/* ========== Process section cards readable over image ========== */
.working-section .content-column,
.working-section .working-outer {
  position: relative;
  z-index: 2;
}
.working-section .image-column {
  position: relative;
  z-index: 0;
}
.working-section .working-block {
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 26, 51, 0.08);
}

/* ========== Why choose us image fill ========== */
.why-choose-us-section > .auto-container > .row {
  align-items: stretch;
}
.why-choose-us-section .image-column {
  display: flex;
}
.why-choose-us-section .image-column .inner-column {
  width: 100%;
  height: 100%;
  max-height: none !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  border-radius: 20px;
}
.why-choose-us-section .image-column .inner-column .image {
  height: 100%;
}
.why-choose-us-section .image-column .inner-column .image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  display: block;
}

/* ========== Contact image fill (no heavy overlay box) ========== */
.contact-section .outer-box .image-column .inner-column {
  position: relative;
  min-height: 560px;
  max-height: none !important;
  overflow: hidden;
  border-radius: 0 30px 30px 0;
}
.contact-section .outer-box .image-column .inner-column .image {
  position: absolute !important;
  inset: 0;
  height: 100% !important;
}
.contact-section .outer-box .image-column .inner-column .image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.contact-section .outer-box .image-column .inner-column .content {
  background: none !important;
  padding: 0 !important;
}
.contact-section .outer-box .image-column .inner-column .content .h4,
.contact-section .outer-box .image-column .inner-column .content .name,
.contact-section .outer-box .image-column .inner-column .content .designation {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ========== Footer colors ========== */
.footer-area .widget-title,
.footer-area .about-widget .text,
.footer-area .contact-widget .text,
.footer-area .newsletter-widget .text,
.footer-area .contact-widget .info span,
.footer-area .copyright-text {
  color: #ffffff !important;
}

/* Our Services links — must beat .section-padding .user-links rule */
.footer-area .user-links li,
.footer-area.section-padding .user-links li,
.footer-area .outer-box.section-padding .user-links li,
.main-footer .user-links li a,
.footer-area .user-links li a {
  color: #ffffff !important;
}
.main-footer .user-links li a:hover,
.footer-area .user-links li a:hover {
  color: #ffd15b !important;
}

/* Social icons: hardcoded teal #1C6D6D → logo navy */
.social-widget .social-icon-list1 li a {
  background-color: #003366 !important;
  color: #ffffff !important;
}
.social-widget .social-icon-list1 li a:hover {
  background-color: #ffd15b !important;
  color: #222222 !important;
}

/* Footer logo readable on dark navy */
.footer-area .about-widget .logo a {
  display: inline-flex;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
}

/* Sidebar services list on white pages only */
.sidebar .user-links li a {
  color: #24201f !important;
}
.sidebar .user-links li a:hover {
  color: #003366 !important;
}

.client-section {
  display: none;
}

/* ========== Home service cards: show images without PNG masks ==========
   The theme clipped these images with -webkit-mask-image PNGs, which browsers
   block when the site is opened from file:// (images become invisible).
   Use simple rounded corners instead. */
.services-block .inner-block .image,
.services-block .inner-block .image.one,
.services-block .inner-block .image.two,
.services-block .inner-block .image.three,
.services-block .inner-block .image.four {
  -webkit-mask-image: none !important;
          mask-image: none !important;
  margin-left: 0;
  margin-right: 30px;
  margin-top: 30px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* ========== Home "How it works" cards: equal height & aligned ========== */
.working-section .working-outer .row > [class*="col-"] {
  display: flex;
  margin-bottom: 24px;
}
.working-section .working-outer .working-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}
.working-section .working-outer .working-block .features-title {
  min-height: 2.6em; /* reserve two lines so all titles/descriptions line up */
}

/* ========== Home "Schedule a Free Consultation" block: spacing & alignment ==========
   Give the card even breathing room on its grey background and stop the
   footer (which the theme pulls up by -95px) from overlapping the card. */
.contact-section .outer-container {
  padding: 80px 0;
  border-radius: 30px;
}
.contact-section .outer-box .row {
  align-items: stretch;
}
.contact-section .outer-box .content-column .inner-column {
  margin-right: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-section .outer-box .image-column .inner-column {
  margin-left: 0;
  height: 100%;
}
.contact-section + .main-footer .footer-area .outer-box {
  margin-top: 30px;
}
@media (max-width: 991.98px) {
  .contact-section .outer-container { padding: 50px 0; }
  .contact-section .outer-box .image-column .inner-column {
    min-height: 380px;
    border-radius: 0 0 30px 30px;
  }
}

/* ========== "Why Choose Us" cards: equal height, aligned content ========== */
.why-choose-us-section .content-column .inner-column,
.why-choose-us-section .content-column .inner-column > .row {
  height: 100%;
}
.why-choose-us-section .content-column .inner-column > .row {
  row-gap: 16px;
}
.why-choose-us-section .content-column .inner-column > .row > [class*="col-"] {
  display: flex;
}
.why-choose-us-section .why-choose-us-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin-bottom: 0 !important;
}
.why-choose-us-section .why-choose-us-block .features-title {
  min-height: 2.6em; /* reserve two lines so descriptions start at the same height */
}
.why-choose-us-section .why-choose-us-block .btn-view-details {
  margin-top: auto;   /* pin "Read More" to the bottom of every card */
  padding-top: 20px;
}
@media (max-width: 1199.98px) {
  .why-choose-us-section .content-column { margin-top: 16px; }
}

/* ========== About page: "How We Support You" detail blocks ========== */
.sa-details-section [id] { scroll-margin-top: 140px; }
.sa-detail-block {
  background: #f6f6f6;
  border-left: 5px solid var(--bg-theme-color3, #003366);
  border-radius: 12px;
  padding: 30px 35px;
  margin-bottom: 24px;
}
.sa-detail-block:target { background: #fff8e1; border-left-color: var(--theme-color1, #ffd15b); }
.sa-detail-block .sa-detail-title { margin-bottom: 12px; }
.sa-detail-block p { margin-bottom: 15px; }
.sa-detail-block .list-style-one li,
.section-padding .col-lg-8 .list-style-one li { display: block; margin-bottom: 8px; }
@media (max-width: 767.98px) { .sa-detail-block { padding: 22px 20px; } }

/* ========== Home testimonials: initials avatars instead of stock photos ==========
   Put the reviewer's initials inside .sa-avatar (e.g. <div class="sa-avatar">RK</div>)
   when real reviews are added; until then it shows a neutral person icon. */
.testimonial-block .inner-box .image-box.sa-avatar-box {
  flex: 0 0 170px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.testimonial-block .sa-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--theme-color1, #ffd15b);
  color: var(--bg-theme-color3, #003366);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}
.testimonial-block .sa-avatar i { font-size: 52px; }
.testimonial-block .inner-box .image-box.sa-avatar-box .review {
  position: static;
  border-radius: 20px;
  padding: 4px 14px;
  gap: 6px;
}
.testimonial-block .inner-box .image-box.sa-avatar-box .review i { font-size: 15px; }
/* show every card's text, not only the centred slide */
.testi-h1-slider .testimonial-block .inner-box .content-box {
  opacity: 1;
  filter: none;
  -webkit-filter: none;
}
@media (max-width: 1199.98px) {
  .testimonial-block .inner-box .image-box.sa-avatar-box { margin-bottom: 20px; }
}
.testimonial-section .sa-sample-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-top: 10px;
}

/* ========== Services page: compact, evenly sized service cards ========== */
.services-section-four .auto-container {
  max-width: 1170px;
}
.services-section-four .service-block-four .inner-box {
  margin-bottom: 30px;
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 26, 51, 0.06);
}
.services-section-four .service-block-four .inner-box .image-box {
  aspect-ratio: 16 / 10;
  border-radius: 20px 20px 0 0;
}
.services-section-four .service-block-four .inner-box .image-box img {
  height: 100%;
  object-fit: cover;
}
.services-section-four .service-block-four .inner-box .content-box {
  margin-top: 0;
  padding: 22px 24px;
  flex: 1;
  display: flex;
  align-items: center;
}
.services-section-four .service-block-four .inner-box .content-box .title-box {
  width: 100%;
}
.services-section-four .service-block-four .service-title {
  font-size: 20px;
  margin-bottom: 0;
}

/* ========== Privacy Policy & Terms pages ========== */
.sa-legal .sa-legal-inner { max-width: 900px; margin: 0 auto; }
.sa-legal .sa-legal-updated { color: #777; margin-bottom: 25px; }
.sa-legal .h4 { margin: 35px 0 12px; scroll-margin-top: 140px; }
.sa-legal p { margin-bottom: 14px; line-height: 1.8; }
.sa-legal ul, .sa-legal ol { padding-left: 22px; margin-bottom: 16px; }
.sa-legal ul li { list-style: disc; margin-bottom: 6px; }
.sa-legal ol li { list-style: decimal; margin-bottom: 6px; }
.sa-legal a { color: var(--bg-theme-color3, #003366); text-decoration: underline; }

/* Home "How It Works" cards: shorter height, 4 visible on desktop */
.services-section-two .service-block-two .inner-box { min-height: 440px; }
.services-section-two .service-block-two .content { padding: 30px 28px 34px; }
.services-section-two .service-block-two .content .title { font-size: 24px; line-height: 1.3; }
.services-section-two .service-block-two .content .btn-box { padding-top: 16px; }
@media (max-width: 1199.98px) {
  .services-section-two .service-block-two .inner-box { min-height: 400px; }
  .services-section-two .service-block-two .content { padding: 24px 20px 28px; }
  .services-section-two .service-block-two .content .title { font-size: 21px; }
}
@media (max-width: 767.98px) {
  .services-section-two .service-block-two .inner-box { min-height: 360px; }
}

/* Real <h1> tags (SEO) keep the theme's heading look */
h1.h1 { margin-top: 0; }

/* ===== Inline form validation messages ===== */
.sa-invalid,
.form-clt input.sa-invalid,
.form-clt textarea.sa-invalid,
.form-control.sa-invalid {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12) !important;
}
.sa-invalid:focus { outline: none; }
.sa-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 6px 2px 0;
  color: #d93025;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
  text-align: left;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .2s ease, transform .2s ease;
}
.sa-error.show { opacity: 1; transform: none; }
.sa-error::before {
  content: "!";
  flex: 0 0 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: #d93025;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
/* Home consultation form: inputs have their own bottom margin */
.form-clt input.sa-invalid,
.form-clt textarea.sa-invalid { margin-bottom: 0 !important; }
.form-clt .sa-error { margin-bottom: 14px; }
/* Footer (dark background) */
.footer-area .sa-error { color: #ff8a80; margin-top: 8px; }
.footer-area .sa-error::before { background: #ff8a80; color: #1a1a1a; }

/* Success / error note under the submit button */
.sa-form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.sa-form-status.success { background: #e8f5ec; border-color: #b7e1c3; color: #1e6b37; }
.sa-form-status.error { background: #fdecea; border-color: #f5c2bd; color: #a12a20; }
.footer-area .sa-form-status { font-size: 14px; padding: 10px 12px; max-width: 351.5px; }
.contact-details form .mb-5 .sa-form-status { margin-bottom: 0; }

/* Scroll animations: slightly quicker fade-in so sections never look empty */
.wow.animated { -webkit-animation-duration: .7s; animation-duration: .7s; }
