/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #4e4e4e;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    background-color: #fff5db;
}

/* Navigation Bar Styles */
nav {
    background: #484848;
    color: #fff;
    padding: 10px 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    margin: 0 15px;
    position: relative;
    height: 48px; /* or your preferred height */
}

nav ul li a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 12px 24px; /* increases clickable area */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    box-sizing: border-box;
}

.nav-button{
    transition: color 0.1s;
    width: 100%;
    height: 100%;
}
.nav-button:hover{
    color: #b5b5b5;
}

/* Footer Styles */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
  color: #c2c2c2; /* Use any color you prefer */
  text-decoration: underline;
}

footer a:hover {
  color: #8f8f8f; /* Highlight color on hover */
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.footer-contact, .footer-social {
    text-align: left;
}
.footer-social {
    min-width: 200px;
}

/* Main Content Styles */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.main-text {
    max-width: 1200px;
    font-size: 20px;
    margin: 20px 20px 50px;
    text-align: justify;
    line-height: 1.8;
}

.main-image {
    max-width: 1000px;
    margin: 50px;
    border-radius: 5px;
}
main {
    flex: 1; /* Pushes the footer to the bottom */
    max-width: 100%;
    margin: 0 auto; /* Centers the content horizontally */
    text-align: center; /* Centers the text inside */
}

h1 {
    color: #3e5c54;
    text-align: center;
    margin-top: 40px;
}

h2 {
    color: #3e5c54;
    text-align: center;
}

.placeholder-text {
    font-style: italic;
    color: #666;
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
    width: 100%;
    height: 100vh;
    min-height: fit-content;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay filter for slideshow images */
.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* semi-transparent black */
    z-index: 2;
    pointer-events: none;
}

.slideshow-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 0;
}

.slideshow-logo {
    max-width: 300px;
    height: auto;
    z-index: 3;
    margin-bottom: none;
    pointer-events: none;
}

.slideshow-content .button {
    pointer-events: auto; /* Allow buttons to be clickable */
}

/* Company name over slideshow */
.slideshow-title {
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    z-index: 3;
    pointer-events: none;
    margin-bottom: 8px;
}

/* Subtitle over slideshow */
.slideshow-subtitle {
    color: #fff;
    font-size: 2rem;
    font-weight: normal;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    z-index: 3;
    pointer-events: none;
    margin-bottom: 20px;
}

.slideshow-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 4;
    width: auto;
    margin-bottom: 8px;
}

/* Button styles for slideshow links */
.button {
    display: inline-block;
    padding: 14px 32px;
    background:tomato;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}
.button:hover {
    background: darkorange;
    transform: translateY(-2px) scale(1.04);
}

/* Hide the images by default */
.mySlides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    width: auto;
    margin-top: 0; /* Remove margin-top to avoid misalignment */
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5); /* Add a semi-transparent background */
    z-index: 10;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Position the "prev button" to the left */
.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

/* On hover, add a darker background color */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Product Page Styles */
h2 {
    color: #B80C09;
    margin-top: 20px;
    text-align: center;
    font-size: 30px;
}

.product-list {
    list-style-type: disc;
    margin: 20px auto;
    padding: 0 20px;
    max-width: 1000px;
    width: 100%;
    line-height: 1.8;
    text-align: left;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-list li {
    margin-bottom: 10px;
}

.product-list strong {
    color: #333;
}

.product-list li img {
    vertical-align: middle;
    margin-right: 8px; /* optional, for extra spacing */
}

.product-container {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 40px;
}

.product-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 40px 32px 32px 32px;
    max-width: 500px;
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.product-box:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transform: translateY(-4px) scale(1.03);
}

.product-img {
    width: 100%;
    max-width: 400px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
    background: #eaeaea;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.product-desc {
    font-size: 1rem;
    color: #444;
    text-align: center;
}

.flyer-link {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 50px;
    padding: 12px 24px;
    background: #35990a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
}

main {
    flex: 1; /* Pushes the footer to the bottom */
    max-width: 100%;
    margin: 0 0; /* Centers the content horizontally */
    text-align: center; /* Centers the text inside */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.slideshow-logo {
    animation: none !important;
    opacity: 1 !important;
    transition: none !important;
    z-index: 5;
}

/* List container styles */
.list-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px auto;
    max-width: 1200px; /* Ensure that the list container isnt wider than the image */
    column-gap: 20px; /* Space between items */
}

.list-container-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    /* background-color: #dfc8a5; */
    margin-bottom: 20px;
}

.list-container-item p {
    padding: 5px;
    font-size: 1.2rem;
    color: #333;
    text-align: center;
}

.list-image{
    max-height: 700px;
    overflow: hidden;
    max-width: 600px;
    object-fit: cover;
    border-radius: 10px;
    margin:20px;
    box-shadow: #00000075 10px 10px 10px;
}

.list-text{
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    padding: 20px;
    max-width: 600px; /* Ensures text does not exceed image width */
}

.hamburger {
    display: none;
}

@media (max-width: 1200px) {
    .list-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .list-container-item {
        flex-direction: column;
        margin: 0 10x;
    }

    .main-text {
        margin: 20px 50px 50px;
    }

    .product-container {
        flex-direction: column;
    }
}

@media (max-width: 850px) {
    .product-box,
    .product-box:hover {
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
        transform: none; /* Prevent scale/translate from causing overflow */
    }

    .footer-flex {
        flex-direction: column;
        align-items: center;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0;
    }

    nav ul{
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border: #333 1px solid;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }
}

@media (max-width: 400px) {
    .slideshow-title {
        font-size: 2rem;
    }

    .slideshow-subtitle {
        font-size: 1.2rem;
    }

    .button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .main-text {
        line-height: 1.3;
        margin: 15px 20px;
    }

}
