@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6eac48;
    /* Standard Green */
    --primary-dark: #5a8f3b;
    --agrile-dark: #1a2b18;
    /* Agrile Dark Green */
    --agrile-lime: #dfff4f;
    /* Agrile Lime Yellow */
    --secondary: #2c3e50;
    --light: #f8f9fa;
    --dark: #212529;
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Agrile Utilities */
.bg-agrile-dark {
    background-color: var(--agrile-dark) !important;
    color: white;
}

.text-agrile-lime {
    color: var(--agrile-lime) !important;
}

.btn-agrile {
    background-color: var(--agrile-lime);
    color: var(--agrile-dark);
    font-weight: 700;
    border: none;
    padding: 12px 30px;
}

.btn-agrile:hover {
    background-color: #fff;
    color: var(--primary);
}

body {
    font-family: var(--font-main);
    color: var(--secondary);
    background-color: #fcfcfc;
    overflow-x: hidden;
}

/* Utilities */
.text-primary {
    color: var(--primary) !important;
}

.section-padding {
    padding: 100px 0;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 172, 72, 0.3);
}

.btn-soil {
    background-color: #c47c36;
    /* Soil Brown */
    border-color: #c47c36;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-soil:hover {
    background-color: #a8692c;
    border-color: #a8692c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 124, 54, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    /* padding: 20px 0; - Reduce padding for tighter feel if needed, but keeping luxurious spacing */
    padding: 15px 0;
}

.navbar-brand img {
    height: 60px;
    /* Increased logo size */
    width: auto;
}

.nav-link {
    color: var(--secondary);
    font-weight: 600;
    margin: 0 15px;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.contact-btn {
    background-color: #fcefe9;
    /* Light orange tint for contact button sometimes seen in designs, or stick to light green */
    background-color: #f0f7ec;
    color: var(--primary);
    font-weight: 700;
    padding: 10px 25px !important;
    border-radius: 8px;
    /* Slightly rounded squares often look more modern */
}

.contact-btn:hover {
    background-color: var(--primary);
    color: white !important;
}

/* Hero Section Specifics - Updated for Slider */
.hero-slider {
    position: relative;
    padding: 0;
    /* Remove padding as slider takes over */
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 90vh;
    /* Large impactful height */
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-slider .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centering */
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.hero-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* Curved Divider for Slider */
.hero-slider .custom-shape-divider-bottom-1 {
    z-index: 3;
}

/* Curved Divider */
.custom-shape-divider-bottom-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.custom-shape-divider-bottom-1 .shape-fill {
    fill: #FFFFFF;
}

/* Custom Buttons */
.btn-soil {
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-soil:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

.glass-card {
    background: var(--white);
    border: none;
    border-radius: 20px;
    padding: 40px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transition: height 0.3s;
    z-index: -1;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.glass-card:hover::before {
    opacity: 0.5;
}

/* Reusable Circular Icon Wrapper */
.icon-circle-wrapper {
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 5px;
    /* Border like padding */
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    overflow: hidden;
    /* Ensure image stays inside */
}

.icon-circle-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.glass-card:hover .icon-circle-wrapper {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.glass-card:hover h4,
.glass-card:hover p,
.glass-card:hover .feature-icon {
    /* Keep text dark or make white on hover? standard is keep dark usually, or full fill */
    /* Let's keep simple elegant hover */
}

/* Footer Redesign Styles (Agrile) */
.footer-wrapper {
    overflow: hidden;
    font-family: var(--font-main);
}

.footer-newsletter {
    background-image: url('../../assets/banner 2.jpg');
    /* Adjust path relative to CSS file location */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    /* Ensure height */
}

.footer-newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
    z-index: 0;
}

.footer-newsletter-content {
    z-index: 1;
    /* Content above overlay */
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input-group input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white;
    box-shadow: none;
}

.footer-main {
    background-color: #3f4a30;
    /* Dark Olive Green */
}

.social-link {
    color: white;
    margin-left: 20px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.step-icon-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    aspect-ratio: 1/1;
    /* Explicitly enforce square aspect ratio */
}

.social-link:hover {
    color: #dfff4f;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 300;
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Scroll top button animation */
.scroll-top-btn {
    cursor: pointer;
    transition: transform 0.3s;
}

.scroll-top-btn:hover {
    transform: rotate(180deg);
}

/* Agrile New Footer Specifics */
.hover-white:hover {
    color: white !important;
    padding-left: 5px;
    transition: all 0.3s;
}

.footer-agrile .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-agrile .form-control:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white;
    box-shadow: none;
}

/* Premier How It Works Section */
#how-it-works {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('../../assets/banner 3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.premier-title-wrapper {
    position: relative;
    display: inline-block;
}

.premier-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.premier-title::before,
.premier-title::after {
    content: '';
    width: 60px;
    height: 2px;
    background-color: var(--primary);
    display: inline-block;
}

.premier-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    margin: 0 5px;
}

.premier-step-card {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 20px;
    transition: transform 0.3s;
}

.premier-step-card:hover {
    transform: translateY(-10px);
}

.premier-icon-box {
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.premier-connector {
    position: absolute;
    top: 100px;
    /* Adjusted: 20px padding + 80px half icon height */
    left: 50%;
    width: 100%;
    height: 0;
    border-top: 3px dotted #6eac48;
    /* Primary Color Dotted */
    z-index: 0;
    display: none;
    /* Hidden by default, shown via media query */
}

@media (min-width: 992px) {
    .premier-connector {
        display: block;
    }

    .last-step .premier-connector {
        display: none;
        /* Hide connector for last element */
    }
}

.premier-node {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: -7px;
    left: 100%;
    /* At the end of the line */
    transform: translateX(-50%);
}

/* About Page - Core Values */
.value-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* About Page - Team Section (Framed) */
.team-member {
    background: #fff;
    /* White Frame Background */
    padding: 15px;
    /* Frame Spacing */
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft Shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle Border */
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--agrile-lime);
    /* Lime border on hover */
}

.team-img-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.team-img-box img {
    width: 100%;
    transition: transform 0.5s;
    display: block;
}

.team-member:hover .team-img-box img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(26, 43, 24, 0.9), transparent);
    /* Agrile Dark Gradient */
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.team-member:hover .team-overlay {
    transform: translateY(0);
}

.team-info {
    text-align: center;
    padding: 20px 0 10px;
    /* Adjusted padding */
}

.team-info h5 {
    color: var(--agrile-dark);
}

/* About Page - Why Choose Us List */
.why-us-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.why-us-list li i {
    color: var(--primary);
    margin-right: 15px;
    background: rgba(110, 172, 72, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {

    /* Reduce global padding */
    .section-padding {
        padding: 60px 0;
    }

    /* Hero Section Adjustment */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-slider .carousel-item {
        height: 80vh;
        /* Allow it to be slightly smaller on mobile if needed */
    }

    /* Premier Title Adjustment */
    .premier-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .premier-title::before,
    .premier-title::after {
        width: 40px;
        display: none;
        /* Hide decorative lines on small mobile for cleaner look */
    }

    /* Page Header Adjustment */
    .page-header {
        padding: 100px 0 60px !important;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    /* Stats Borders */
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .col-md-3:last-child .border-end {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    /* Footer adjustments */
    .footer-newsletter {
        min-height: auto;
        padding: 60px 0;
    }

    .newsletter-input-group {
        width: 100%;
    }

    /* Why Choose Us List */
    .why-us-list li {
        flex-direction: column;
        text-align: center;
    }

    .why-us-list li i {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .bg-primary.rounded-circle.p-2.me-3 {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }

    /* Team Overlay - Always show on mobile or rely on tap */
    .team-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(26, 43, 24, 0.95), rgba(26, 43, 24, 0.6));
    }
}

@media (max-width: 576px) {
    .premier-icon-box {
        width: 120px;
        height: 120px;
    }

    .display-5 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-3 {
        font-size: 2.2rem;
    }
}



.section-padding {
    padding: 0px 0 !important  ;
}