/*
 Theme Name:   Advance Engineering
 Theme URI:    https://divilife.com
 Description:  Advance Engineering Wesbite
 Author:       David Snyman
 Author URI:   https://divilife.com
 Template:     Divi
 Version:      1.0.0
*/

/*****Add any custom CSS below this line*****/

header#main-header {
    background: linear-gradient(180deg, #0000008a, transparent);
}

#top-menu li li a {
    padding: 6px 0;
}

ul.sub-menu li a:after {
    content: "";
    width: 100%;
    height: 2px;
    background: red;
    display: block;
    position: relative;
    left: -100%;
	transition: .3s;
}

ul.sub-menu li a {
    overflow: hidden;
}
ul.sub-menu li:hover a:after {
	left: 0;
}

div#page-container {
    padding-top: 0 !important;
}
.et_pb_row, .container {
    max-width: 1280px;
}
.et_header_style_left .logo_container {
    position: relative;
    height: 100%;
    width: 25%;
}
nav#top-menu-nav, #top-menu, nav.et-menu-nav, .et-menu {
    float: none;
}
#et-top-navigation {
    float: none;
    padding-left: 0 !important;
    width: 65%;
}

.container.clearfix.et_menu_container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
	width:80%;
}

/* Menu */
.edfm_position_right .edfm-toggle-wrapper {
    right: 10%;
}
.edfm-toggle.toggle-active {
    background: #000;
}
.edfm-fly-menu-body {
    padding-top: 0;

}
.edfm-toggle > div {
	left: auto;
    background: #fff;
    width: 45px;
}
.edfm-toggle > div.edfm-bar2 {
    width: 35px !important;
}
.edfm-toggle > div.edfm-bar3 {
    width: 25px !important;
}



.edfm-toggle.toggle-active > div.edfm-bar3 {
    width: 26px !important;
    left: 0;
}

.edfm-toggle.toggle-active .edfm-bar1 {
    width: 26px;
    left: 0;
}
.edfm-fly-menu-wrapper-inner {
    margin: 30px;
    height: calc(100% - 90px);
    width: 50%;
    padding: 0;
    border-radius: 10px;
}
.menu-hamburger .menu-items a {
    font-family: "Inter";
    font-size: 3rem;
    text-align: left;
    letter-spacing: -3px;
}
.edfm-fly-menu-body .edfm-body-additional-content {
    padding: 50px;
}
.edfm-toggle {
	display: block !important;
    background: transparent;
    width: 45px;
}

.menu-hamburger .menu-items a {
    overflow: hidden;
    display: block;
    font-family: "Inter";
    font-size: 48px;
    text-align: left;
    letter-spacing: -3px;
    line-height: 56px;
    font-weight: 500;
    color: #232323;
    margin-left: -1rem;
}
.menu-hamburger .menu-items a:hover {
    color: #d22704;
}
.menu-hamburger .menu-items a:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 1px;
    background: #000;
    position: relative;
    top: -20px;
    left: -46px;
    margin-left: 0;
    transition: .3s;
}
.menu-hamburger .menu-items a:hover:before {
    left: 0;
    margin-right: 1rem;
}
.et_pb_section {
    background-color: #f2f2f2;
}

.mCSB_container .edfm-fly-menu-body .edfm-body-additional-content .menu-hamburger {
    height: 100%;
}
.edfm-fly-menu-body.edfm-fly-menu-body-part {
    height: 100%;
}
div#mCSB_1_container {
    height: 100%;
}
.edfm-body-additional-content {
    height: 100%;
}
.edfm-fly-menu-wrapper-inner.edfm-menu-block-1.mCustomScrollbar._mCS_1.mCS_no_scrollbar {
    max-height: 750px;
}
.menu-hamburger {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    height: 100%;
}

.footer-hamburger {
    text-align: left;
    display: flex;
    justify-content: space-evenly;
    gap: 30px;
    border-top: 1px solid #e5e5e5;
    padding-top: 1.2rem;
    color: #2b2b2b;
}
/* Fonts */
h1 {
    font-size: 5.8vw;
    letter-spacing: -7px !important;
}
h2 {
    font-size: 2.2rem;
    letter-spacing: -1px !important;
}
span.red {
    color: #d22704;
}
#hero span.red {
    line-height: normal;
}
h2 + p {
    color: #7C7C7C;
    margin-top: 2rem;
}
/* Buttons */
.btn-container {
    display: inline-block;
    text-align: left;
}
a.btn.red {
    background: #d22704;
    border: #d22704;
    color: #fff;
}
a.btn.white {
    background: #fff;
    border: #fff;
}
a.btn {
    line-height: 1rem;
    font-size: 1rem;
    padding: 0 0 0 16px;
    border: 1px solid;
    letter-spacing: -1px;
    display: flex;
    height: 53px;
    width: 200px;
    gap: 16px;
    align-items: center;
    overflow: hidden;
}
.btn-text span {
    position: absolute;
    transform: translateY(0);
    transition: .3s;
}
span.btn-text-hover {
    transform: translateY(36px);
	 transition: .3s;
}
.btn-text {
    position: relative;
    width: 80%;
    height: 16px;
}
.btn-arrow img {
    position: absolute;
	transition: .3s;
}
.btn-arrow {
    position: relative;
    width: 20%;
    height: 20px;
    overflow: hidden;

}
.btn-arrow img.hover {
     transform: translateX(-30px);
	transition: .3s;
}
.btn-container:hover a.btn.black {
    background: #000;
    transition: .3s;
}
.btn-container:hover a.btn.white {
    background: #000;
    transition: .3s;
}
.btn-container:hover span.btn-text-initial {
   transform: translateY(-40px);
	transition: .3s;
}

.btn-container:hover span.btn-text-hover {
    transform: translateY(0);
	color: #fff;
	transition: .3s;
}

.btn-container:hover .btn-arrow img.hover {
    transform: translateX(0);
	transition: .5s;
}

.btn-container:hover .btn-arrow img.initial {
    transform: translateX(30px);
	transition: .5s;
}

/* Red Btn Hover */

div#hero a.btn.red .btn-arrow img.hover, a.btn.red .btn-arrow img.initial {
    filter: invert(1);
}

div#hero .btn-container:hover a.btn.red {
    background: #fff;
}

div#hero .btn-container:hover a.btn.red span.btn-text-hover {
	color: #000;
}
.btn-container:hover a.btn.red {
    background: #000;
}

/* Hero */

div#hero {
	min-height: 720px;
    display: flex;
    align-items: flex-end;
	background-blend-mode: luminosity;
}

.hero-content {
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
}
#hero a.btn {
    margin-right: 0;
    margin-left: auto;
    margin-bottom: 1rem;
}

/* About */
.big-body-font {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 300;
    margin-bottom: 2rem !important;
}

/* swiper */

.swiper {
    width: 100%;
    height: auto;
	overflow: visible !important;
}

.service-image {
    height: 260px;
    border-radius: 10px;
    margin-bottom: 1rem;
    background-size: cover;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-family: swiper-icons;
    font-size: 1.4rem !important;
    color: #000;
}

.swiper-button-prev, .swiper-rtl .swiper-button-next {
    left: auto !important;
    right: 40px !important;
}
.swiper-button-next, .swiper-button-prev {
    top: -80px !important;
}
.swiper h3 {
    line-height: 1.8rem;
}
.swiper-button-next:hover:after, .swiper-button-prev:hover:after {
    font-size: 1.2rem !important;
}
/* Accordion */

.et_pb_toggle {
    border: none;
    border-bottom: 1px solid;
    margin-bottom: 0 !important;
    background-color: #fff !important;
    padding: 2rem 0;
}
.et_pb_accordion_item_0 {
    padding-top: 0;
}
h3.et_pb_toggle_title {
    font-size: 1.8rem;
}
.et_pb_toggle_open h3.et_pb_toggle_title {
    font-weight: 500;
}
.et_pb_toggle_close .et_pb_toggle_title {
    color: #7C7C7C;
}

/* Help */

.help-bar {
    display: flex;
    align-items: center;
}

/* Contact */

textarea {
    width: 98%;
    padding: 10px;
}
input {
    width: 48% !important;
    margin-right: 2% !important;
    margin-bottom: 2% !important;
    padding: 10px !important;
}
h3.red.underline {
    color: red;
    text-decoration: underline;
	margin:2rem 0 1.2rem;
}
input.wpcf7-form-control.wpcf7-submit.has-spinner {
    border: none;
    background: #000;
    color: #fff;
    font-weight: 600;
}

/* Services */

.service .et_pb_row {
    max-width: 100%;
    width: 100%;
}
.service .et_pb_row .et_pb_column_3_5 {
    width: 55%;
    margin: 0;
    padding: 10% 5% 10% 10%;
}
.service .et_pb_row .et_pb_column_3_5:nth-child(2n) {
    width: 55%;
    margin: 0;
    padding: 10% 10% 10% 5%;
}
.service .et_pb_column_2_5 {
    width: 45%;
    margin-right: 0;
}

/* Team */

.team-container {
    display: flex;
}
.team-member:last-child {
    margin-right: 0;
}
.team-member {
    width: 32%;
    margin-right: 2%;
}
.team-member {
    width: 30%;
    margin-right: 4%;
    margin-top: -2rem;
}
.team-member h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 1rem;
}
.team-member p {
    font-size: .9rem;
    line-height: 1.3rem;
    color: #7C7C7C;
}
/* Products */
.pump-products-list {
    display: flex;
    flex-wrap: wrap;
}
.pump-product-item {
    width: 32%;
    margin-right: 2%;
    margin-bottom: 2%;
    background: #fff;
    padding: 16px;
    border-radius: 10px;
}
.pump-product-image img {
    border-radius: 5px;
}
h3.pump-product-title {
    padding-bottom: 0;
    font-weight: 500;
    font-size: 1.3vw;
}
.pump-product-item span {
    font-size: .8rem;
}
.pump-product-item:nth-of-type(3n) {
	margin-right: 0;
}

 /* Modal styles */
        .pump-modal {
            display: none;
            position: fixed;
            z-index: 999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }

.home .et_pb_section.et_pb_section_4.et_section_regular {
    z-index: 9;
}
.pump-modal-content {
    background-color: #d22704;
    margin: 15% auto;
    padding: 42px 36px;
    border: 1px solid #888;
    width: 80%;
    height: 450px;
    overflow: scroll;
    max-width: 600px;
    z-index: 9;
    border-radius: 10px;
    font-size: .8rem;
    line-height: 1.2rem;
    color: #fff;
}

        .pump-modal-close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .pump-modal-close:hover,
        .pump-modal-close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

.pump-products-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

        .pump-product-item {
            width: 100%;
            margin: 0;
            cursor: pointer;
        }

        .pump-product-item img {
            width: 100%;
        }
.pump-modal-content h3 {
    text-decoration: underline;
    padding-bottom: 1.2rem;
	color: #fff;
}

.pump-modal-content span h3 {
    font-size: 1rem;
    padding-bottom: 0;
    margin-bottom: 0;
    font-weight: 500;
    text-decoration: none;
	color: #fff;
}
.pump-modal-content span {
    margin-bottom: 1rem;
    display: block;
	color: #fff;
}
.pump-modal-content ul {
    padding-bottom: .8rem;
    padding-top: .4rem;
}
h2#pump-modal-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 16px;
	color: #fff;
}
.pump-modal-content li {
    line-height: 1.2rem;
}

/* Timeline */
.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-row-gap: 90px;
    align-items: end;
}

.timeline-item:nth-child(2) {
    grid-column: 2;
    position: relative;
    top: -1rem;
}
.timeline-item:nth-child(3) {
    grid-column: 3;
}
.timeline-item:nth-child(4) {
    grid-column: 4;
}
.timeline-item:nth-child(5) {
    grid-column: 5;
}
.timeline-item:nth-child(2n) {
    grid-row: 2;
}
.timeline-item p.red {
    color: red;
    padding: 3px 0;
    font-size: 1rem;
}
.timeline-item p {
    font-size: .9rem;
    line-height: 1.2rem;
    color: #7C7C7C;
}
.timeline-item {
	position: relative;
}
.timeline-container:after {
    content: "";
    width: 100%;
    height: 1px;
    display: block;
    background: #000000;
    grid-column: 1/-1;
    position: absolute;
    top: 50%;
}

.timeline-item:after {
    content: "";
    background: url(http://floreo.co.za/Advance-Engineering/wp-content/uploads/2024/10/timeline-date-up.svg);
    height: 45px;
    width: 25px;
    display: block;
    background-repeat: no-repeat;
    position: absolute;
    bottom: -58px;
    left: 30%;
}

.timeline-item:nth-child(2n):after {
    content: "";
    background: url(http://floreo.co.za/Advance-Engineering/wp-content/uploads/2024/10/timeline-date-down.svg);
    height: 45px;
    width: 25px;
    display: block;
    background-repeat: no-repeat;
    position: absolute;
    bottom: auto;
    top: -45px;
    left: 30%;
}

.timeline-item:nth-child(2):after {
    top: -48px;
}

/* Footer */

footer a, footer p {
    font-size: .9rem;
    color: #7c7c7c;
}

@media(min-width:1510px) {
h1 {
    font-size: 5.4rem;
    letter-spacing: -7px !important;
}
}

@media(max-width: 980px) {
.pump-products-list {
    grid-template-columns: 1fr;
}
h3.pump-product-title {
    font-size: 1.2rem;
}
.edfm-fly-menu-wrapper-inner {
    height: calc(80% - 60px);
    width: calc(100% - 60px);
}
.menu-hamburger .menu-items a {
    font-size: 38px;
    line-height: 42px;
}
.edfm-fly-menu-body .edfm-body-additional-content {
    padding: 30px;
}
.footer-hamburger {
    display: block;
}
.address {
    margin-bottom: 1rem;
}
h1 {
    font-size: 11.8vw;
    letter-spacing: -3px !important;
    text-shadow: 2px 2px 2px rgb(0 0 0 / 31%);
}
.hero-content {
    margin: 0 auto;
    display: block;
    align-items: flex-end;
}
.hero-content .et_pb_module.et_pb_text_align_right {
    text-align: left;
}
div#hero {
    min-height: auto;
    display: block;
    padding-bottom: 0;
}
.hero-content h1 {
    line-height: 2.7rem;
}
.et_header_style_left .logo_container {
    width: 55%;
}
.et_header_style_left #logo {
    max-width: 100%;
}
div#et_mobile_nav_menu {
    display: none;
}
.et_pb_row.help-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem !important;
}
.et_pb_module.et_pb_text_align_right {
    text-align: left;
}
.help-bar .et_pb_column {
    margin-bottom: 1rem;
}
.timeline-container {
    display: block;
}
.timeline-item:after, .timeline-item:nth-child(2n):after {
    content: none;
}
.timeline-container:after {
    content: none;
}
.timeline-item:nth-child(2) {
    top: 0;
}
.timeline-item {
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}
.team-container {
    flex-wrap: wrap;
}
.team-member {
    width: 100%;
    margin-right: 0;
    margin-top: 0;
}
.service .et_pb_row .et_pb_column_3_5:nth-child(2n) {
    padding: 10% 5% 10% 10%;
}
.service .et_pb_column.et_pb_column_empty {
    display: block;
    height: 50vh;
}
.mobile-row-switch {
    display: flex;
    flex-wrap: wrap;
}
.mobile-row-switch .et_pb_column:first-child {
    order: 2;
    margin-bottom: 0;
}
}
span.wpcf7-not-valid-tip {
    position: absolute;
    top: 22px;
    font-size: .5rem;
    left: 11px;
}
/* Animations */

.hero-content h1 {
    overflow: hidden;
    text-shadow: 4px 2px 6px #00000087;
}
.hero-content h1 div {
    overflow: hidden;
}

.hero-content .btn-container {
  opacity: 0; /* Start hidden */
  transform: translateX(-50px); /* Position for animation */
}

h2 {
  overflow: hidden; /* Keep h2 visible */
}

h2 span {
  display: inline-block; /* Allow for independent transformation */
  transform: translateY(120%); /* Start 50% below */
  opacity: 0; /* Start hidden */
}

.image-container {
  position: relative;
  display: inline-block;
}

.imageReveal {
  display: block;
  width: 100%;
  height: auto;
}
.mask-container {
	position: absolute;
	top: 0;
}
.mask-row {
  display: flex;
  position: relative;
  top: 0;
  width: 100%;
  height: 33.33%;
}

.mask {
  flex: 1;
  background: #fff; /* Adjust as needed */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Initial full coverage */
  transform-origin: center;
	width: 150px;
    height: 177px;
	margin-right: -1px;
}

/* Accordion Image */

.image-item {
    display: none;         /* Hide images by default */
    opacity: 0;            /* Start with 0 opacity */
    transform: translateX(50px); /* Start 50px to the right */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.image-item.show {
    display: block;
    opacity: 1;
    transform: translateX(0); /* End at 0 offset */
}
