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

/* Colors */
:root {
    --main-bg: #FDF5E6; /* Soft bakery-inspired background */
    --header-bg: linear-gradient(135deg, #215350, #2e766d);
    --text-color: #215350;
    --accent-color: #F2A73B;
    --secondary-accent: #D8E8EF;
    --white: #ffffff;
}

/* General */
body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--main-bg);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Header */
/* General header styling */
.header {
    background-color: var(--white);
    padding: 5px 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left .logo {
    max-width: 150px;
    height: auto;
}

#bakery-name {
    margin-left: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.navigate-link {
    margin-right: 0px;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    padding: 5px 15px;
/*    border: 1px solid #ddd;
   border-radius: 5px; */ 
}

.navigate-link:hover {
    background-color: #f7f7f7;
    color: var(--text-color);
}

/* Add an active class to highlight the page you click */
.navigate-link:active {
    background-color: var(--text-color);
    color: var(--secondary-accent);
  }

/* Add an active class to highlight the current page */
.navigate-link.active {
    background-color: var(--secondary-accent);
    color: var(--text-color);
  }

/* Responsive Design */

/* Medium screens (Tablets and smaller, max-width: 768px) */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .navigate-link {
        margin: 5px 0;          /* top/bottom = 5px, left/right = 0px */
        margin-right: 0px;     /* right margin = 10px */
    }    

    /* Features Section */
    .features {
        flex-direction: column; /* Stack feature items vertically */
        align-items: center; /* Center align feature items */
    }

    .feature-item {
        width: 100%; /* Full width for smaller screens */
        margin-right: 10px; /* Less margin on medium screens */
    }

     /* General */
     .container {
        padding: 10px; /* Reduce padding on smaller screens */
    }

    .features .container, 
    .about .container {
        text-align: center; /* Consistent centering */
    }

    .social-links {
        gap: 15px;
        flex-wrap: wrap;
    }

    .social-icon {
        font-size: 1.2rem;
    }

    .about-box {
        flex-direction: column;
        text-align: center;
    }

    .about-image,
    .about-content {
        flex: unset; /* Reset flex settings */
        width: 100%;
    }

    .about-image img {
        width: 80%; /* Make it more responsive */
    }
}

/* Small screens (Mobile, max-width: 480px) */
@media (max-width: 480px) {
    /* Header */
    #bakery-name {
        font-size: 1.2rem;
    }

    .logo {
        max-width: 120px;
    }

    .navigate-link {
        font-size: 0.9rem;
        margin-right: 0px;
    }

    /* Features Section */
    .feature-item img {
        height: auto; /* Ensure image scaling works well on smaller screens */
        margin-right: 10px; /* Less margin on medium screens */
    }

    /* General */
    .container {
        padding: 10px; /* Reduce padding for mobile screens */
    }
    
}


/* Hero Section */
.main-content {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--secondary-accent), var(--main-bg));
    position: relative;
    overflow: hidden;
}

.intro {
    text-align: center;
    margin: 3em 0; /* Same margin as .box-section padding */
    animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.intro h2 {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.intro p {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2em;
}

/* Features Section */
.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.feature-item {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    width: 300px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px; /* Adjust this for vertical space */
    margin-right: 20px; /* Add this to create space between items horizontally */
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-item img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.feature-item:hover img {
    transform: scale(1.05);
}

.feature-item h3 {
    font-size: 22px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
}

.feature-link {
    text-decoration: none; /* Remove default link styling */
    color: inherit; /* Keeps text color consistent */
}

/* About Section */
.about {
    background-color: var(--accent-color); /* Oranje/geel als achtergrondkleur */
    padding: 3em 1.5em; /* Iets minder ruimte binnen de sectie */
    margin-top: 2.5em; /* Iets minder ruimte boven deze sectie */
    border-radius: 8px; /* Subtielere afgeronde hoeken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Licht schaduweffect */
    text-align: center; /* Alles centreren */
}

.about h2 {
    font-size: 2em; /* Kleinere titel */
    color: white; /* Witte tekstkleur voor de titel */
    margin-bottom: 1.2em; /* Iets minder ruimte onder de titel */
}

.about ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; /* Lijst ook centreren */
}

.about ul li {
    margin-bottom: 1.5em; /* Iets minder ruimte tussen de items */
}

.about ul li h3 {
    font-size: 1.6em; /* Kleinere koppen */
    color: white; /* Witte tekstkleur voor koppen */
    margin-bottom: 0.4em; /* Kleinere marge onder de koppen */
}

.about ul li p {
    font-size: 1.1em; /* Kleinere tekstgrootte voor de paragrafen */
    line-height: 1.5; /* Kleinere line-height voor betere verhouding */
    color: white; /* Witte tekstkleur voor de paragraaf */
}

.about-box {
    display: flex;
    align-items: center;  /* Centers content vertically */
    gap: 30px;  /* Space between text and image */
    background: var(--white);
    padding: 2em;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.about-content {
    flex: 2; /* Reduce this value to give more space to the image, 1=take up remaining space */
}

.about-image {
    flex: 1.5; /* Increase this value to make the image column wider */
}

.about-image img {
    width: 100%;  /* Ensures the image fills its container */
    max-width: 400px; /* Adjust max width as needed */
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Stijl voor links in de header */
.navigate-link {
    color: var(--text-color); /* Donkergroen */
    font-size: 1rem;
    font-weight: 600; /* Maak de tekst dikgedrukt */
    text-decoration: none; /* Verwijder de onderstreping van de link */
    margin-left: 20px; /* Voeg wat ruimte toe tussen de link en andere elementen */
}

/* Non-home pages */
.box-section {
    background: var(--white); /* Witte achtergrond voor box */
    padding: 3em 1.5em;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.box-section h1 {
    font-size: 36px;
    color: var(--accent-color); /* Gele kleur voor de header */
    margin-bottom: 1.5em;
}

.box-section p {
/*    font-size: 1.4em; */
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 2em;
}

.box-section .cta-button {
    background-color: var(--accent-color); /* Gele kleur voor de button */
    color: var(--white);
    font-size: 1.2em;
    padding: 0.8em 2em;
    text-decoration: none;
    border-radius: 10px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.box-section .cta-button:hover {
    background-color: var(--text-color); /* Donkergroene hover-kleur */
}

.box-section .social-link {
    color: var(--accent-color);
    text-decoration: none;
}

.box-section .social-link:hover {
    text-decoration: underline;
}

/* Contact page */
.contact-details {
    text-align: left;
    margin: 20px 0;
}

.contact-details p {
    margin: 5px 0;
    font-size: 1rem;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
    color: var(--secondary-accent);
}

.contact-intro, .contact-social {
    display: block; /* Stacks sections */
    width: 100%;
    text-align: left;
}

/* Footer */
.footer {
    background: var(--header-bg); /* Matches the header background */
    color: var(--white); /* Ensures text is readable on dark background */
    text-align: center; /* Centers content */
    padding: 20px; /* Adds spacing for better layout */
    margin-top: 60px; /* Space between footer and content */
    margin-bottom: 10px; /* Bottom margin for breathing room */
    position: relative;
}

.footer p {
    font-size: 0.9rem; /* Keeps text slightly smaller but readable */
    margin: 10px 0; /* Adds spacing between paragraphs */
    color: var(--white); /* Text remains white for consistency */
}

.footer a {
    color: var(--accent-color); /* Highlight links with the accent color */
    text-decoration: none; /* Minimal styling for links */
}

.footer a:hover {
    color: var(--secondary-accent); /* Slight change for hover effect */
    text-decoration: underline; /* Indicates interactiveness */
}

.footer .container {
    display: block; /* Ensure vertical stacking */
}

.footer .social-links {
    display: flex;
    justify-content: center; /* Centers the icons horizontally */
    gap: 10px;
}

.footer .social-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
}

.footer .social-icon:hover {
    color: #555;
}