/* Landing Page Styles */

/* Hero Section */
.hero-section {
    background-color: #f5f3f0;
    padding: 0rem 0rem;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Hero Container with border-radius and margins */
.hero-container {
    background-color: #EAE4DB;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    pointer-events: none; /* Disable clicks on container */
    width: 100%;
}

.hero-content {
    padding: 2rem 1.5rem;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 16px;
    font-weight: 400;
    color: #5a5a5a;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-description p {
    margin-bottom: 0.3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    pointer-events: auto; /* Re-enable clicks on buttons */
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    pointer-events: auto; /* Ensure buttons are clickable */
}

.btn-outline-primary {
    background-color: white;
    border: 2px solid #24511D;
    color: #24511D;
}

.btn-outline-primary:hover {
    background-color: #0a3304;
    border: 2px solid #24511D;
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #0a3304;
    border: 2px solid #0a3304;
    color: white;
}

.btn-primary:hover {
    background-color: #24511D;
    border-color: #24511D;
    border: 2px solid #24511D;
    transform: translateY(-2px);
}

.hero-image {
    padding: 0;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* Services Section */
.services-section {
    background-color: #ffffff;
    padding: 2rem 1rem;
}

.service-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 400px;
    display: flex;
    align-items: flex-start; /* Changed from flex-end to flex-start */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Updated overlay for top content positioning */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.service-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    color: #2c2c2c; /* Changed from white to black */
    width: 100%;
    background-color: transparent; /* Removed white background */
    border-radius: 10px;
    margin: 1.5rem;
    max-height: fit-content;
    line-height: 1;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c2c2c; /* Changed from white to black */
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1rem;
    color: #5a5a5a; /* Changed from white to gray */
    margin-bottom: 1.5rem;
}

.service-link {
    color: black; /* Changed from white to purple */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #24511D;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .service-card {
        height: 350px;
    }
    
    .hero-container {
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .service-card {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .service-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .hero-content {
        padding: 1rem 0.8rem;
    }
    
    .hero-container {
        margin: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card {
        height: 280px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
}

/* Additional utility classes */
.min-vh-100 {
    min-height: 100vh;
}

.g-4 {
    gap: 1.5rem;
}

/* Animation for smooth entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.service-card {
    animation: fadeInUp 0.8s ease-out;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Products Section */
.products-section {
    background-color: #f8f9fa;
    padding: 5rem 1rem;
}

.products-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.2;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.products-main-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.product-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative; /* This is crucial for containing stretched-link */
    isolation: isolate; /* Creates a new stacking context */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure image stays below the link */
}

.product-image img {
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1; /* Ensure content stays below the link */
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.product-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Products Section */
@media (max-width: 992px) {
    .products-main-title {
        font-size: 2rem;
    }
    
    .product-image img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .products-main-title {
        font-size: 1.8rem;
    }
    
    .products-main-description {
        font-size: 1rem;
    }
    
    .product-content {
        padding: 1.5rem 1rem;
    }
    
    .product-image img {
        height: 200px;
    }
}

/* How It Works Section */
.how-it-works-section {
    background-color: #f8f9fa;
    padding: 5rem 1rem;
}

.how-it-works-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 3rem;
}

.work-step-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.work-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.step-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-step-card:hover .step-image img {
    transform: scale(1.05);
}

.step-content {
    padding: 2rem 1.5rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.step-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #24511D 0%, #24511D 100%);
    padding: 7rem 1rem;
    color: white;
}

.cta-content {
    margin: 0 auto;
    max-width: 500px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: #29A76A;
    border: 2px solid #66bb6a;
}

.btn-success:hover {
    background-color: #5cb85c;
    border-color: #5cb85c;
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: #2d7d32;
    transform: translateY(-2px);
}

/* Responsive Design for How It Works & CTA */
@media (max-width: 992px) {
    .how-it-works-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .how-it-works-title {
        font-size: 1.8rem;
    }
    
    .step-content {
        padding: 1.5rem 1rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 200px;
        text-align: center;
    }
}

/* Bootstrap Primary Button Override - Add this at the END of your CSS file */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary.focus {
    background-color: #24511D !important;
    border-color: #24511D !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #1d4217 !important;
    border-color: #1d4217 !important;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #163312 !important;
    border-color: #163312 !important;
}

.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active:focus {
    box-shadow: 0 0 0 0.2rem rgba(36, 81, 29, 0.25) !important;
}

.service-card:nth-child(3) {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}