/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Cookie Notice */
.cookie-notice {
    display: none;
    background: #000;
    color: #fff;
    padding: 10px;
    text-align: center;
}

.cookie-notice a {
    color: #ffd700;
}

.cookie-notice button {
    background: #ffd700;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    width: 120px;
}

.navbar nav {
    display: flex;
    gap: 20px;
}

.navbar .nav-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    transition: 0.3s;
}

.navbar .nav-link:hover {
    color: #ffd700;
}

/* Service Showcase Grid */
.service-showcase {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 60px 20px;
}

/* Individual Service Box */
.service-item {
    width: 300px; /* Ensures same size */
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

/* Image Styling */
.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures all images are equal size */
    filter: brightness(80%);
    transition: filter 0.3s ease-in-out;
}

/* Service Text Overlay */
.service-text {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 100%;
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
}

/* Hover Effect */
.service-item:hover {
    transform: scale(1.05);
}

.service-item:hover img {
    filter: brightness(100%);
}


/* Services Section */
.services {
    text-align: center;
    padding: 60px 20px;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Service Container */
.service-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Service Box */
.service-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 320px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

/* Hover Effect */
.service-box:hover {
    transform: translateY(-5px);
}

/* Service Box Title */
.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Service Box Paragraph */
.service-box p {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Button Styling */
.btn {
    display: inline-block;
    background: #ffd700;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background: #e6c200;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .service-container {
        flex-direction: column;
        align-items: center;
    }
    
    .service-box {
        width: 90%;
    }
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 50px 20px;
    background: #333;
    color: white;
}

.contact h2 {
    font-size: 2rem;
}

.contact .btn {
    background: white;
    color: black;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    position: relative;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer .footer-logo {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: auto;
    opacity: 0.8;
}

footer .footer-logo:hover {
    opacity: 1;
}

/* Ensure modals are hidden on page load */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000; /* Keeps modals above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Ensure modals are properly displayed when active */
.modal.active {
    display: flex !important;
    z-index: 1100; /* Keeps the modal content above everything */
}

/* Modal Content Box */
.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: left;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    z-index: 1200; /* Ensures content stays visible */
}

/* Modal Title */
.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #222;
    font-weight: bold;
}

/* Modal List Styling */
.modal-content ul {
    list-style: none;
    padding-left: 0;
}

.modal-content ul li {
    padding: 5px 0;
    font-size: 1rem;
    position: relative;
    display: flex;
    align-items: center;
}

/* Black bullet points */
.modal-content ul li::before {
    content: "•";
    color: black;  /* ✅ Black bullet points */
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Close Button Styling */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

/* Yellow hover effect for close button */
.close:hover {
    color: #ffd700; /* ✅ Turns yellow on hover */
}

/* Yellow Action Button */
.modal-content .btn {
    display: inline-block;
    background: #ffd700; /* ✅ Yellow background */
    color: black;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    margin-top: 15px;
    width: 100%;
    text-align: center;
}

.modal-content .btn:hover {
    background: #e6c200;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .modal-content p, .modal-content ul li {
        font-size: 1rem;
    }
}

/* Add some extra spacing above services */
.page-intro {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 800px;
    margin: auto;
    color: #333;
}

/* Contact Form Modal Styling */
#contact-modal .modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: left;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* Form Inputs & Labels */
#contact-modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-modal label {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

#contact-modal input, 
#contact-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease-in-out;
}

/* Input Focus Effect */
#contact-modal input:focus, 
#contact-modal textarea:focus {
    border-color: #ffd700;
    outline: none;
}

/* Adjust textarea height */
#contact-modal textarea {
    height: 120px;
    resize: vertical;
}

/* Submit Button */
#contact-modal button[type="submit"] {
    display: inline-block;
    background: #ffd700; /* ✅ Yellow background */
    color: black;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: center;
    font-size: 1rem;
}

/* Hover Effect for Submit Button */
#contact-modal button[type="submit"]:hover {
    background: #e6c200;
}

/* Close Button Styling */
#contact-modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

/* Yellow hover effect for close button */
#contact-modal .close:hover {
    color: #ffd700;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    #contact-modal .modal-content {
        width: 95%;
        padding: 20px;
    }

    #contact-modal label {
        font-size: 0.9rem;
    }

    #contact-modal input,
    #contact-modal textarea {
        font-size: 0.9rem;
    }
}
/* Ensure required fields have red outline when empty */
input:invalid, textarea:invalid {
    border: 1px solid red;
}

/* Hide the pre-filled hidden field */
#hidden-service {
    display: none;
}
/* Package Modal Styling */
#modal-paketlosning .modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    text-align: left;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* Title Styling */
#modal-paketlosning h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* List Styling */
#modal-paketlosning ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

/* List Items - Fix Layout */
#modal-paketlosning ul li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding: 6px 0;
}

/* Bullet Points */
#modal-paketlosning ul li::before {
    content: "•";
    color: black;
    font-size: 1.3rem;
    margin-right: 10px;
}

/* Keep Service Titles and Descriptions on the Same Line */
#modal-paketlosning ul li strong {
    font-weight: 700;
    min-width: 200px; /* Ensures all service names have equal spacing */
    display: inline-block;
    white-space: nowrap; /* Prevents text from wrapping */
}

/* Button Styling */
#modal-paketlosning .btn {
    display: block;
    background: #ffd700; /* Yellow */
    color: black;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    border: none;
    margin-top: 15px;
    width: 100%;
}

#modal-paketlosning .btn:hover {
    background: #e6c200;
}

/* Close Button Hover */
#modal-paketlosning .close:hover {
    color: #ffd700;
}



/* 🔹 IMAGE CAROUSEL */
.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: scrollImages 20s infinite linear;
}

.carousel-track img {
    width: 50%; /* ✅ 50% Smaller */
    flex: 0 0 50%;
    object-fit: cover;
}

/* 🔹 IMAGE SCROLLING EFFECT (SLOWER) */
@keyframes scrollImages {
    0% { transform: translateX(0); }
    33% { transform: translateX(-50%); }
    66% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

/* 🔹 WHY CHOOSE US */
.content-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* 🔹 SMALL VIDEO BOX */
.video-container {
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    border-radius: 10px;
}

/* 🌍 General Mobile Fixes */
@media (max-width: 768px) {
    /* ✅ Ensure buttons stay side by side */
    .service-box {
        width: 90%;
        text-align: center;
    }

    .btn-container {
        display: flex;
        justify-content: center; /* Centers buttons */
        gap: 10px; /* Adds space between buttons */
        flex-wrap: wrap; /* Prevents overflow */
    }

    .btn {
        flex: 1; /* Make buttons flexible */
        min-width: 140px; /* Prevents buttons from shrinking too much */
        max-width: 200px; /* Keeps a good size */
        text-align: center;
    }

    /* ✅ Fix Text Alignment */
    .hero, .services, .content-box {
        text-align: center;
        padding: 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* ✅ Fix Services Section */
    .service-container {
        display: flex;
        flex-direction: column; /* Stack services vertically */
        align-items: center;
        gap: 20px; /* Adds spacing between service boxes */
    }

    /* ✅ Fix Modal Layout */
    .modal-content {
        width: 90%;
        padding: 20px;
    }
}


@media (max-width: 768px) {
    /* ✅ Ensure Buttons Stay in a Row */
    .btn-container {
        display: flex;
        flex-wrap: nowrap;  /* Prevents stacking */
        justify-content: center; /* Centers buttons */
        gap: 10px; /* Adds space between buttons */
    }

    .btn {
        flex: 1; /* Distributes buttons evenly */
        min-width: auto; /* Allow buttons to shrink if needed */
        max-width: 180px; /* Keep them manageable */
        text-align: center;
        white-space: nowrap; /* Prevents text wrapping inside buttons */
    }
}

/* ✅ Prevent scrolling when modal is open */
.modal.active {
    overflow: hidden; /* Prevents scrolling inside the modal */
}


/* 🌍 Hero Section */

.hero-smartshopping {
    width: 100%;
    height: 60vh;
    background: url("Images/smartshopping.jpg") no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px;
}

.hero-text-box {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    text-align: left; /* Ensures body text stays left-aligned */
}

.hero-text-box h1 {
    text-align: center; /* Centers the title */
    margin-bottom: 15px;
}


/* 🌑 Dark Overlay for Readability */
.hero-smartshopping .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* 📜 Text Box on Image */
.hero-smartshopping .hero-text {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
}

/* 🎨 Button Styling */
.hero-smartshopping .btn {
    background: #ffd700;
    color: black;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    margin-top: 15px;
}

.hero-smartshopping .btn:hover {
    background: #e6c200;
}

/* 📱 Mobile Optimization */
@media (max-width: 768px) {
    .hero-smartshopping {
        height: 50vh;
        padding: 20px;
    }

    .hero-smartshopping .hero-text {
        max-width: 90%;
        font-size: 14px;
    }
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

.hero-smartshopping {
    width: 100%;
    height: 100vh; /* Ensure it takes full viewport height */
    background: url("Images/smartshopping.jpg") no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px;
}

footer {
    margin: 0;
    padding: 20px;
    background: #333;
    color: white;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}

/* About Us Section */
.about {
    padding: 40px 20px;
    background: white;
    text-align: center;
}

.about .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.about-text {
    flex: 1;
    padding: 20px;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}

.about-images {
    flex: 1;
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

.about-images img {
    width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about h1 {
    margin-bottom: 20px;
    font-size: 36px;
    color: black;
    text-align: center;
}

/* 🔹 Ensure Full Page Stretch */
body, html {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* 🔹 Make About Section Expand Fully */
.about {
    flex: 1; /* Ensures it takes up available space */
}

/* 🔹 Footer Fix */
footer {
    width: 100%;
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    line-height: 1.5;
    margin-top: auto; /* Pushes footer to bottom */
}
/* 📱 Responsive Fix for Om Oss Page */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack items vertically */
        text-align: center; /* Center text */
    }

    .about-text {
        width: 90%; /* Ensure full width */
        max-width: 600px; /* Prevent too wide text */
        font-size: 18px; /* Improve readability */
        text-align: left; /* Keep text aligned */
        line-height: 1.6; /* Better spacing */
    }

    .about-images {
        justify-content: center; /* Center images */
        flex-wrap: wrap; /* Allow images to adjust */
        gap: 15px; /* Space between images */
    }

    .about-images img {
        width: 80%; /* Ensure images fit */
        max-width: 300px;
    }
}




/* 🔹 Policy Page Styling - More Fun & Modern */
.policy {
    max-width: 1200px; /* Match "Om Oss" page width */
    margin: 60px auto;
    padding: 50px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    text-align: left;
}

/* 🔹 Section Title */
.policy h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
    font-weight: 700;
}

/* 🔹 Subheadings */
.policy h2 {
    font-size: 24px;
    margin-top: 35px;
    color: #333;
    font-weight: 600;
    border-left: 5px solid #FFD700; /* Stylish left border */
    padding-left: 10px;
}

/* 🔹 Text Styling */
.policy p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

/* 🔹 Lists */
.policy ul {
    list-style-type: none;
    padding-left: 0;
    margin: 15px 0;
}

/* ✅ Apply icons only when HTML has them */
.policy ul li.checkmark::before {
    content: "✔️";
    color: #28a745; /* Green checkmark */
    font-size: 1.2rem;
    margin-right: 10px;
}

.policy ul li {
    font-size: 17px;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

/* 🔹 Links */
.policy a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.policy a:hover {
    text-decoration: underline;
}

/* 🔹 Image Boxes at Bottom - More Modern Look */
.policy-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-bottom: 50px;
}

/* 🔹 Individual Image Box */
.image-box {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 🔹 Images Inside Boxes */
.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* 🔹 Mobile Responsive Fix */
@media (max-width: 768px) {
    .policy {
        padding: 30px;
    }

    .policy h1 {
        font-size: 30px;
    }

    .policy h2 {
        font-size: 22px;
    }

    .policy p, .policy ul li {
        font-size: 16px;
    }

    .policy-images {
        flex-direction: column;
        gap: 15px;
    }

    .image-box {
        width: 100%;
        max-width: 250px;
        height: auto;
    }
}

/* 🔹 Cookie Notice Styling */
.cookie-notice {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 90%;
    width: 400px;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* 🔹 Hidden State */
.cookie-notice.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

/* 🔹 Link Styling */
.cookie-notice a {
    color: #ffd700;
    text-decoration: underline;
    font-weight: bold;
}

/* 🔹 Button Styling */
.cookie-notice button {
    background: #ffd700;
    color: black;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.cookie-notice button:hover {
    background: #e6c200;
}
