/*
* Theme Name: AgriScope
* Theme URI: N/A
* Author: Owen McLean
* Author URI: N/A
* Description: Wordpress theme for AgriScope Drone services
* Version: 1.0
* Text Domain: custom-theme
*/

html, body {
    overflow-x: hidden;
}


/* ----Header Styling---- */
header {
    background-color: white !important;
    position: relative;
    background-size: cover;
    color: white;
    padding-top: 10px;
    background-position: center;
    background-attachment: fixed; /* Enables parallax effect */
    background-repeat: no-repeat;
    
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:linear-gradient(0deg, rgba(94, 133, 42, 0.5), rgba(0, 63, 34, 0.5));
    /* background-color: white; */
    z-index: 1;
}

.page-header{
    position: relative;
    background-size: cover;
    color: white;
    padding-top: 100px;
    background-position: center;
    background-attachment: fixed; /* Enables parallax effect */
    background-repeat: no-repeat;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:linear-gradient(180deg, rgba(94, 133, 42, 0.5), rgba(0, 63, 34, 0.5));
}


.text-container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .text-container {
        position: relative;
        z-index: 2;
        padding-left: 3%;
        padding-right: 3%;
    }
}

header .container {
    position: relative;
    z-index:5555;
}

/* Logo */
header img {
    max-width: 150px;
    display: block;
    margin: 0 auto 20px;
}

/* Main Heading */
.page-header h1 {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Subtext */
.page-header p.lead {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 100px !important;
}

/* Read More Button */
header .btn {
    background-color: #8bc53f; /* Brown button */
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    border: none;
}

header .btn:hover {
    background-color: #3e2a12;
}

.header-border {
    position: relative;
    width: 100%;
    height: 50px; /* Adjust height for more or less wave */
    background: url('https://agriscopedrones.co.uk/wp-content/themes/agriscope/assets/wave-border-bottom.svg') repeat-x bottom;
    background-size: contain;
    transform: rotate(180deg);
    z-index: 1;
}
.divider-waves-top {
    position: relative;
    width: 100%;
    height: 50px; /* Adjust height for more or less wave */
    background: url('https://agriscopedrones.co.uk/wp-content/themes/agriscope/assets/wave-border-top.svg') repeat-x bottom;
    background-size: contain;
    z-index: 1;
}
.divider-waves-bottom {
    position: relative;
    width: 100%;
    height: 50px; /* Adjust height for more or less wave */
    background: url('https://agriscopedrones.co.uk/wp-content/themes/agriscope/assets/wave-border-top.svg') repeat-x bottom;
    background-size: contain;
    transform: rotate(180deg);
    z-index: 1;
}

/* ----Navigation Bar---- */
/* .navigation{
    position: relative ;
    
} */
.offcanvas {
    position: fixed !important;
    z-index: 9999999 !important;
}

.offcanvas-header {
    flex-direction: row-reverse !important;

}

.section-heading {
    font-weight: bold;
    font-size: 1.25rem;
    margin-left: 10px; /* Space between icon and heading */
  }
  .icon-text {
    font-size: 1rem;
    margin-left: 25px;
    width: 100%;
  }
  @media (max-width: 1200px) {
    .right-image {
        width: 80% !important;
        height: auto !important;
        border-radius: 8px !important;
    }
  }
  @media (max-width: 768px) {
    .image-col-nav {
        display: none !important;
    }
    #contact_header{
        display: none !important;
    }
  }
  @media (max-width: 1200px) {
    .nav-item-row {
        flex-direction:column;
        justify-content: center;
    }
  }

  .icon-container {
    display: flex;
    align-items: center; /* Align icon and heading vertically */
  }
  #nav-image{
    height: 300px;
    width: auto;
    float: right;
    
    opacity: 1;
  }
  .nav-container:hover{
    background-color: #9ac155;
    color: white;
    border-radius: 10px;
    transition: all 0.15s ease-in-out;
  }
  .nav-container{
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    transition: all 0.15s ease-in-out;
    color: black;
  }

.nav-btn{
    color: #8bc53f !important;
    height: 50px;
    background:white;
    display: inline-block;
    white-space: nowrap;
    padding: 0 !important;
    padding-left: 15px !important;
}
.nav-link{
    font-weight: bold;
    font-size: xx-large;
    padding-left: 30px !important;
    padding-right: 30px !important;
    margin-right:10px;
    color: black ;
    border-radius: 20px;
}
.nav-link:hover,
.nav-link:active{
    background-color: #9ac155;
    color: white !important;
    transition: all 0.15s ease-in-out;
}
#toggle-services.active {
    /* Example: change the background color or any other styling */
    background-color: white;
    color: #9ac155 !important;
    transition: all 0.15s ease-in-out;
}
  /* .hidden{
    display: none;
  } */

/* ---- Random Stuff ---- */
img.custom-logo {
    max-width: 200px !important;
    height: auto !important;
    display: block;
    margin-left: 0;
    margin-right: 0;
    border-radius: 10px;    
}

.btn-primary{
    --bs-btn-color: #fff;
    --bs-btn-bg: #754c28;
    --bs-btn-border-color: #754c28;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #a17147;
    --bs-btn-hover-border-color: #a17147;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #8bc53f;
    --bs-btn-active-border-color: #8bc53f;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #8bc53f;
    --bs-btn-disabled-border-color: #8bc53f;
}


 /* ----Services---- */
 .services-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 50px 10%;
    background: #fff;
}

/* Left Side - Heading */
.services-text {
    flex: 1;
    max-width: 400px;
}

.services-text h2 {
    font-size: 36px;
    font-weight: bold;
    color: #23223B;
}

.services-text span {
    color: #8bc53f; /* Pink accent */
}

/* Right Side - Cards */
.services-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .services-section {
        flex-direction: column;
        text-align: center;
    }

    .services-text {
        text-align: center;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack in one column */
    }
}

/* Service Card */
.service-card {
    border: 2px solid #ddd;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease-in-out; /* Smooth fade transition */
    position: relative;
    background: white;
}

/* Icon Styling */
.service-card i {
    font-size: 40px;
    color: #000000;
    margin-bottom: 10px;
    transition: color 0.4s ease-in-out; /* Smooth fade for icons */
}

/* Text Styling */
.service-card h4 {
    font-size: 16px;
    color: #744c2b; /* Pink */
    font-weight: bold;
    transition: color 0.4s ease-in-out; /* Smooth fade for text */
}

/* Hover Effect with Smooth Fade */
.service-card:hover {
    background: #754c28;
    color: #fff;
    transform: scale(1.05); /* Slight zoom effect for better interaction */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Subtle shadow effect */
}

/* Ensure Text and Icons Change Smoothly */
.service-card:hover i,
.service-card:hover h4 {
    color: white;
}

a {
    text-decoration: none;
}

/* ----Scroller---- */
.clients-scroller {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: #fff;
}

.clients-logos {
    display: inline-block;
    animation: scroll 40s linear infinite;
}

.clients-logos img {
    height: 60px; /* Adjust the height as needed */
    margin-bottom: 100px;
    margin-left: 75px;
    margin-right: 75px;
    display: inline-block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    color: #000000; /* White text color */
    text-align: center;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}


.testimonial p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.testimonial .author {
    font-weight: bold;
    margin-top: 10px;
    color: #8bc53f; /* Accent color */
}

/* ----Footer---- */
.footer {
    background-color: #754c28; /* Brown color used before */
}

.footer-logo {
    max-width: 150px; /* Adjust the size as needed */
    margin-bottom: 15px;
}

.footer p {
    margin: 0;
    line-height: 1.5;
}
.footer-contact{
    float: right;
    text-align: right;
}

@media (max-width: 768px) {
    .footer {
        text-align: center !important;
    }

    .footer-contact{
        padding-top: 10px;
        text-align: center;
    }
}

/* ----Contact us---- */
.contact-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    background-attachment: fixed; /* Enables parallax effect */
    background-repeat: no-repeat;
}

.contact-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:linear-gradient(0deg, rgba(0, 63, 34, 0.8), rgba(94, 133, 42, 0.8));
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section h2 {
    margin-bottom: 20px;
    font-size: 36px;
}

/* .contact-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
} */

/* .contact-section input,
.contact-section textarea {
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    border-radius: 5px;
} */

.contact-section input[type="submit"] {
    background-color: #754c28; /* Match the footer color */
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-section input[type="submit"]:hover {
    background-color: #5a3a1e; /* Darker shade for hover effect */
}


/* Services Page */

.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 800px;
}

.image-container img {
    object-fit: cover;
    object-position: center;
    padding: 150px;
}

.flex-centered {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 62px;
}

@media (max-width: 1620x) {
    /* .row {
        flex-direction: column-reverse;
    } */
    
    .image-container {
        order: -1; /* Moves the image above the text */
        text-align: center; /* Centers the image */
        margin-bottom: 15px; /* Adds spacing */
        height: auto;
    }

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


/* about page */
#team_section{
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    background-attachment: fixed; /* Enables parallax effect */
    background-repeat: no-repeat;
}

#team_section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:linear-gradient(0deg, rgba(0, 63, 34, 0.8), rgba(94, 133, 42, 0.8));
    z-index: 1;
}

#team_section .container {
    position: relative;
    z-index: 2;
}

#services_section{
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    background-attachment: fixed; /* Enables parallax effect */
    background-repeat: no-repeat;
}

#services_section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:linear-gradient(0deg, rgba(0, 63, 34, 0.8), rgba(94, 133, 42, 0.8));
    z-index: 1;
}

#services_section .container {
    position: relative;
    z-index: 2;
}

/* Golf Course */
.before-after-slider .ba-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    cursor: ew-resize;
}
.before-after-slider .ba-img {
    display: block;
    width: 100%;
    height: auto;
}
.before-after-slider .ba-resize {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 50%;
}
.before-after-slider .ba-resize img {
    display: block;
}
.before-after-slider .ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #007bff;
    cursor: ew-resize;
    z-index: 2;
}

.ba-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.ba-img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.ba-original {
    position: absolute;
    top: 0;
    left: 0;
}

.ba-resize {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.ba-resize img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #007bff;
    cursor: ew-resize;
    z-index: 10;
}
