/* sections */
section {
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2d5016;
    font-weight: 700;
    text-align: center;
}

/* about */
.about {
    background-image: url("../images/backgrounds/about-bavkground.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-bottom: 1px solid #e0ead6;
    margin: 0;
    padding: 4rem 20px;
    width: 100%;
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: center;
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.15) 30%,
        rgba(0,0,0,0.25) 100%
    );
}

.about > * {
    position: relative;
    z-index: 1;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.about-header {
    text-align: center;
    max-width: 700px;
}

.about-logo img {
    max-width: 160px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.about-header h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.about-header p {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.8;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}

.about-features li {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.about-features li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.about-features li::before {
    content: '✓';
    color: #a3ff7a;
    font-weight: bold;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(163, 255, 122, 0.15);
    border-radius: 50%;
    border: 2px solid rgba(163, 255, 122, 0.3);
}

/* Product Categories*/
.products {
    min-height: 100vh;
    display: grid;
    align-items: center;
    margin: 0;
    padding: 4rem 20px;
    background: #ffffff;
}

.products h2 {
    margin-bottom: 40px;
    grid-column: 1 / -1;
}

.products-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    grid-column: 1 / -1;
}

.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.categories .card {
    border: 1px solid #e8f3e1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.categories .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    border-color: #4a7c2c;
}

.categories .card-link {
    text-decoration: none;
    color: inherit;
}

.categories .card-link .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.categories .card-link:hover .card-title {
    color: #4a7c2c; 
}

.view-all-wrapper {
    margin-top: 30px;
    text-align: center;
    grid-column: 1 / -1;
}

.view-all-btn {
    display: inline-block;
    background: transparent;
    color: #2d5016;
    padding: 8px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    position: relative;
}
.view-all-btn::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: rgba(74,124,44,0.12);
    transition: transform 0.22s ease, opacity 0.22s ease;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
}
.view-all-btn:hover::after,
.view-all-btn:focus::after {
    transform: scaleX(1);
    opacity: 1;
}

/*contact*/ 
.contact {
    max-width: 100% !important;
    background: linear-gradient(135deg, #f3f7f1, #fafcf9);
    margin: 0;
    padding: 3rem 20px 2rem;
}

.contact h2 {
    color: #2d5016;
    max-width: 1100px;
    margin: 0 auto 20px;
}

.contact-info {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #333;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.7;
}

.contact-info a {
    color: #4a7c2c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #2d5016;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 992px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {

    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .products {
        min-height: auto;
        padding: 3rem 20px;
    }
}

@media (max-width: 550px) {
    .about {
        padding: 2.5rem 20px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-header h2 {
        font-size: 1.8rem;
    }

    .products {
        min-height: auto;
        padding: 2rem 20px;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .categories .card-link .card-title {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
}
