/* 
  Custom CSS for Rich Steel
  Replacing unused Bootstrap 2 and WordPress Theme code
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
  /* Prevent horizontal scroll zoom-out */
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #284b90;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #1a3466;
  text-decoration: underline;
}

/* Grid System */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.row-fluid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.span12,
.span9,
.span6,
.span4,
.span3,
.span2 {
  padding: 0 15px;
  width: 100%;
  /* Default mobile */
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .span12 {
    width: 100%;
  }

  .span9 {
    width: 75%;
  }

  .span6 {
    width: 50%;
  }

  .span4 {
    width: 33.3333%;
  }

  .span3 {
    width: 25%;
  }

  .span2 {
    width: 16.6666%;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 10px 0 15px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

h2 {
  font-size: 30px;
}

h4 {
  font-size: 22px;
}

h6 {
  font-size: 16px;
  text-transform: uppercase;
}

p {
  margin: 0 0 15px;
}

.lead {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  text-align: left;
}

.alignright {
  text-align: right;
}

.text-primary {
  color: #284b90;
}

/* Header & Navigation */
header {
  background: #fff;
}

/* Top Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 8px 0;
}

.logo {
  margin: 0;
}

.logo img {
  max-height: 80px;
  transition: transform 0.3s ease;
}

.logo a:hover img {
  transform: scale(1.02);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #284b90;
  cursor: pointer;
  padding: 5px 10px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-separator {
  height: 40px;
  width: 1px;
  border-left: 1px dotted #ccc;
  background: transparent;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  background-color: transparent;
  color: #364e96;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.3s ease;
}

.contact-info:hover .contact-icon {
  color: #2a3c75;
}

.contact-text {
  line-height: 1.4;
}

.contact-text span {
  color: #777;
  font-size: 14px;
}

.contact-text strong {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  display: block;
}

.btn-quote {
  background: #364e96;
  color: white !important;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-quote:hover {
  background: #2a3c75;
}

.btn-social {
  background-color: #364e96;
  color: #fff !important;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.btn-social:hover {
  background-color: #2a3c75;
  color: #fff !important;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .top-bar-right {
    display: none;
    /* Hide complex top bar on smaller screens, can use mobile menu */
  }

  .top-bar {
    justify-content: center;
  }
}

/* Navbar */
.navbar {
  background: #fff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0;
  position: relative;
  z-index: 1000;
  width: 100%;
}

.navigation nav {
  display: block;
}

.nav.topnav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav.topnav>li {
  position: relative;
  margin: 0;
}

.nav.topnav>li:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #e0e0e0;
  font-size: 12px;
}

.nav.topnav>li>a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 15px 25px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease;
}

.nav.topnav>li>a i {
  font-size: 12px;
  color: #333;
  transition: color 0.3s ease;
}

.nav.topnav>li>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: #364e96;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.nav.topnav>li>a:hover,
.nav.topnav>li:hover>a {
  color: #364e96;
  text-decoration: none;
  background: transparent;
}

.nav.topnav>li>a:hover i,
.nav.topnav>li:hover>a i {
  color: #364e96;
}

.nav.topnav>li>a:hover::after,
.nav.topnav>li:hover>a::after {
  transform: scaleX(1);
}

/* Dropdown menus */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-top: 3px solid #284b90;
  min-width: 240px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
  background: #f4f7fb;
  color: #284b90;
  padding-left: 25px;
}

.dropdown-menu li a img {
  margin-right: 12px;
}

/* Dropdown hover behavior */
.nav.topnav>li:hover>.dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease;
}

.dropdown-menu li:hover>.sub-menu-level1 {
  display: block;
}

.sub-menu-level1 {
  left: 100%;
  top: -13px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .top-bar-right {
    display: none;
  }

  .top-bar {
    justify-content: space-between;
    padding: 10px 15px;
    flex-wrap: nowrap;
  }

  .logo h2 {
    font-size: 22px !important;
    white-space: nowrap;
  }

  .mobile-toggle {
    display: block;
    color: #364e96;
    flex-shrink: 0;
  }

  .navbar {
    border: none;
  }

  .navigation nav {
    display: none;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
  }

  .navigation nav.active {
    display: block;
  }

  .nav.topnav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.topnav>li {
    width: 100%;
    margin: 0;
  }

  .nav.topnav>li>a {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
  }

  .nav.topnav>li>a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid #284b90;
    margin-left: 20px;
    width: calc(100% - 20px);
    display: none;
    padding: 0;
  }

  .nav.topnav>li.open>.dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 12px 20px;
  }
}

/* Main Slider */
#featured {
  position: relative;
  background: #111;
  margin-bottom: 40px;
}

.main-slider .splide__slide {
  position: relative;
}

.main-slider .splide__slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.slider-caption {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-left: 5px solid #284b90;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.splide__slide.is-active .slider-caption {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.slider-caption h2 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 300;
  color: #333;
}

.slider-caption h2 strong {
  font-weight: 700;
  color: #284b90;
}

.slider-caption p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
}

@media (max-width: 768px) {
  .main-slider .splide__slide img {
    height: 300px;
  }

  .slider-caption {
    left: 5%;
    right: 5%;
    max-width: none;
    padding: 15px;
  }

  .slider-caption h2 {
    font-size: 24px;
  }
}

/* Content Boxes */
#content {
  padding: 40px 0;
}

.box {
  background: #fff;
  border: 1px solid #eee;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.box .icon {
  margin-bottom: 15px;
}

.box .icon img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid #ddd;
  padding: 4px;
  background: #fff;
}

.box .text h6 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #284b90;
}

.box .text p {
  color: #666;
}

/* Clients */
.clients-splide {
  margin-top: 30px;
  margin-bottom: 40px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.client-logo {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  filter: none;
  opacity: 1;
  transition: all 0.3s;
  display: block;
  margin: 0 auto;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Misc Utilities */
.img-polaroid {
  padding: 4px;
  background-color: #fff;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, .2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

/* Footer */
footer {
  background: #252525;
  color: #aaa;
  padding: 50px 0 0;
  margin-top: 50px;
}

footer .widgetheading {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

footer address {
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 20px;
}

footer a {
  color: #aaa;
}

footer a:hover {
  color: #fff;
}

#sub-footer {
  background: #111;
  padding: 30px 0;
  margin-top: 40px;
  color: #888;
  font-size: 13px;
}

.copyright p {
  margin: 0 0 5px;
}

.social-network {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.social-network li {
  margin-left: 15px;
}

.social-network a {
  color: #888;
  transition: color 0.2s;
}

.social-network a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .social-network {
    justify-content: flex-start;
    margin-top: 20px;
  }
}

.scrollup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #284b90;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 20px;
  text-decoration: none;
  opacity: 0.7;
  z-index: 1000;
}

.scrollup:hover {
  opacity: 1;
  color: #fff;
  text-decoration: none;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 80px;
  right: 20px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  color: #FFF;
  transform: scale(1.1);
  text-decoration: none;
}

@media (max-width: 767px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 70px;
    right: 15px;
    font-size: 24px;
  }
}