/*
Theme Name: Three Sixty DS
Theme URI: https://threesixtyds.com
Author: The Idea Crowd
Description: The custom theme of Three Sixty DS offical website.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: threesixtyds
*/

body.admin-bar header nav {
  margin-top: 32px;
}

body header nav {
  border-bottom: 1px solid #fff;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23FFF' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media(max-width: 991px) {
  #menu-primary-nav {
    margin-top: 20px;
    border-top: 1px solid #fff;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.33);
  }
}

.navbar-overlay {
  background: transparent;
  transition: background 0.3s ease;
  padding: 20px 0;
}

body header nav a {
  color: #fff;
  padding: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

body header nav a:hover {
  color: #A40A0A;
}

@media(max-width: 991px) {
  body header nav a {
    display: block;
    padding: 10px;
  }
}

.navbar-scrolled,
.post-type-archive .navbar {
  background: #222;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));
  background-size: 1px 107px;
  background-position: 50% 0;
  background-repeat: no-repeat;
}

body.admin-bar::before {
  background-size: 1px 138px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 80vh;
  background: url("./assets/homepage-hero.png") no-repeat;
  background-size: 120% auto;
  background-position: 19% center;
  padding: 100px 20px;
  padding-top: 120px;
}

main {
  background-color: #fff;
}

.hero-banner > .container {
  position: absolute;
  width: 600px;
  z-index: 2;
  text-align: left;
  padding-left: 0;
  left: calc(-50% + 78%);
}

/* Homepage styles */

body.home h1:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 1px;
    background: black;
    left: -64px;
    top: 10px;
    z-index: -1;
}

body.home .dark-section h1:after {
    background: white;  
}

@media (min-width: 768px) {
  main .hp-hero-section {
      background-size: 120%;
      background-position: 0% 0%; /* = center right */
      transition: background-position 10s linear,
        background-size 10s linear;
  }

  main .hp-hero-section.pan {
    background-position: 50% 20%; /* = center left */
    background-size: 110%;
  }
}

.hp-hero-btn-right {
  justify-self: start;
  top: -1px;
  left: -3px;
}

.hp-hero-btn, .hp-hero-btn-right {
    border: 2px solid transparent;
    border-top-color: #fff;
    transition: border-color 0.3s ease;
}

.hp-hero-btn:hover, .hp-hero-btn-right:hover {
  border: 2px solid #A40A0A !important;
}

/* Homepage slider styles */
/*
.elementor-widget-image-carousel .swiper-slide {
  width: 20% !important;
}
*/

body.home .white-label h1:after {
  background: white;
}

/* SERVICES SECTION */
@media (min-width: 768px) {
  #services-accordion .e-n-accordion {
    columns: 2;
    column-gap: 16px;
  }
  #services-accordion .e-n-accordion-item {
    break-inside: avoid;
    display: block;
  }
  #services-accordion .e-n-accordion-item:nth-child(5) {
    break-after: column;
  }
}

/* CASE STUDIES SECTION */

.homepage-case-study a {
  position: absolute;
  display: block;
  width: 100px;
  height: 110px;
  right: 0;
  top: 0;
  color: #FFF;
  font-size: 50px;
  border-left: 1px solid #fff;
  text-align: center;
  line-height: 100px;
  font-family: "Bruno Ace";
}

/* CASE STUDY CAROUSEL SECTION */

.elementor-widget-image-carousel .swiper-slide {
  transition: width 1s ease;
}

@media (min-width: 768px) {
  .elementor-widget-image-carousel .swiper-slide.swiper-slide-active {
    width: 50% !important;
  }
}

#case-study-carousel .elementor-image-carousel-caption {
  display: none;
}

#case-study-carousel .swiper-slide-active .elementor-image-carousel-caption {
  position: absolute;
  width: 100%;
  bottom: 0;
  padding: 1% 5%;
  color: #fff;
  display: block;
}

.e-n-accordion-item-title-text {
  transition: color 0.3s ease;
}

.e-n-accordion-item-title-text:hover {
  color: #A40A0A;
}

a {
  transition: color 0.3s ease;
}

a:hover {
  color: #A40A0A;
}

.elementor-swiper-button:hover svg path {
  fill: #A40A0A;
}

footer {
  background-color: #F5F5F5;
}

footer p {
  text-align: center;
}

footer ul li a {
  color: #333;
  text-decoration: none;
}

footer a svg {
  fill: #000;
}

footer ul li a:hover {
  color: #A40A0A;
}

footer .certificates img {
  margin: 0 5px;
}

/* Sidebar */
h2.sidebar-title {
    position: absolute;
    transform: rotate(270deg);
    color: #A40A0A;
    font-size: 16px !important;
    font-weight: 600 !important;
    left: -25px;
}

h2.sidebar-title::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 1px;
    background: black;
    left: -64px;
    top: 10px;
    z-index: -1;
}

h2.sidebar-title.white {
    color: #fff;
}

h2.sidebar-title.white::after {
    background: white;
}

/* template parts styles */

.contact-footer {
  position: relative;
}

.contact-footer .container {
  max-width: 1000px;
  margin-bottom: 50px;
}

.contact-footer h2.sidebar-title {
  left: -5px;
  color: #A40A0A;
  top: 50px;
}

.contact-footer h2 {
  font-family: "Roboto", Sans-serif;
  font-size: 50px;
  font-weight: 600;
  color: #000;
  padding-left: 0;
}

.contact-footer svg {
  width: 3em;
  height: 3em;
  margin: 30px 0;
}

.contact-footer h5 {
  font-size: 1.75rem;
  font-weight: 600;
}

.contact-footer a {
  display: block;
  text-align: center;
  border: 2px solid #000;
  padding: 20px 20px 20px 20px;
  border-radius: 0;
  color: #000;
  text-decoration: none;
  margin-top: 30px;
}

.contact-footer a:hover {
  border: 2px solid #A40A0A;
}

.contact-footer p {
  color: #7A7A7A;
}