/* Simple Prime Food Marketing CSS - Clean & Modern */

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-light: #f2f2f0;
    --color-gray: #555555;
    --color-gray-dark: #2a2a2a;
    --color-green: #39ed9e;
    --color-green-dark: #21836b;
    --max-width: 980px;
    --header-height: 57px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-green-dark);
}

/* === HEADER & NAVIGATION === */
#header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container {
    text-align: center;
    padding: 15px 0 10px;
    background-color: var(--color-white);
}

.site-logo {
    height: 60px;
    width: auto;
    margin: 0 auto;
}

.main-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 9px 20px 2px;
    position: relative;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    position: absolute;
    right: 20px;
    top: -50px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--color-gray-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.main-nav > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.main-nav li {
    position: relative;
}

.main-nav > ul > li > a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 10px 5px;
    display: block;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--color-green-dark);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    margin-top: 7px;
    list-style: none;
    border-radius: 4px;
}

.dropdown:hover .submenu {
    display: block;
}

.submenu li {
    width: 100%;
}

.submenu a {
    padding: 12px 20px;
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.submenu a:hover {
    background-color: var(--color-gray-light);
}

/* === SECTIONS === */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: var(--color-gray-light);
}

/* === HERO SLIDESHOW === */
.hero-section {
    padding: 40px 0;
    position: relative;
    background-color: var(--color-gray-light);
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === SECTIONS === */

.section h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 0.02em;
}

.section-desc {
    text-align: center;
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--color-gray);
}

/* === OUR STORY SECTION === */
.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
}

/* === PRODUCTS SECTION === */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* === BRANDS SECTION === */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.brand-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    margin-bottom: 25px;
}

.brand-logo img {
    margin: 0 auto;
    max-height: 100px;
    width: auto;
    max-width: 200px;
}

.brand-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-gray-dark);
}

.brand-subtitle {
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--color-green-dark);
}

.brand-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.brand-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.brand-images img:hover {
    transform: scale(1.05);
}

.brand-description {
    text-align: left;
    margin-top: 25px;
}

.brand-description p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 15px;
}

.brand-description p:last-child {
    margin-bottom: 0;
}

.brand-description strong {
    color: var(--color-gray-dark);
    font-weight: 600;
}

/* === EVENTS SECTION === */
.events-grid {
    display: grid;
    gap: 40px;
    margin-top: 40px;
}

.event-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.event-image img {
    border-radius: 4px;
    width: 100%;
}

.event-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.event-date {
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 15px;
    font-weight: 600;
}

.hashtags {
    font-size: 13px;
    color: var(--color-green-dark);
    margin-top: 15px;
    font-style: italic;
}

/* === CLIENTS SECTION === */
.clients-logo {
    text-align: center;
    margin-top: 40px;
}

.clients-logo img {
    margin: 0 auto;
    max-width: 100%;
}

/* === CONTACT SECTION === */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-green-dark);
}

.contact-form button {
    width: 100%;
    padding: 15px 30px;
    background-color: var(--color-gray-dark);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form button:hover {
    background-color: var(--color-green-dark);
}

.contact-info {
    text-align: center;
    margin-top: 40px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    display: block;
    width: 36px;
    height: 36px;
    color: var(--color-gray-dark);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.15);
}

.facebook-icon:hover {
    color: #1877f2;
}

.instagram-icon:hover {
    color: #e4405f;
}

/* === FOOTER === */
#footer {
    background-color: var(--color-gray-dark);
    color: var(--color-white);
    padding: 40px 0;
    text-align: center;
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    color: var(--color-white);
    margin: 0 15px;
    font-size: 14px;
}

.footer-social a:hover {
    color: var(--color-green);
}

#footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* === IMAGE POPUP MODAL === */
.image-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-popup-modal.active {
    display: block;
    opacity: 1;
}

.image-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.image-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-popup-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-popup-close,
.image-popup-prev,
.image-popup-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 40px;
    color: var(--color-gray-dark);
    cursor: pointer;
    padding: 10px 20px;
    transition: background 0.3s ease;
    z-index: 201;
}

.image-popup-close:hover,
.image-popup-prev:hover,
.image-popup-next:hover {
    background: var(--color-white);
}

.image-popup-close {
    top: 20px;
    right: 20px;
    border-radius: 4px;
}

.image-popup-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 4px;
}

.image-popup-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 4px;
}

.image-popup-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav > ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        gap: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
    }

    .main-nav > ul.active {
        right: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav > ul > li > a {
        display: block;
        padding: 15px 10px;
        text-align: left;
        border-bottom: 1px solid var(--color-gray-light);
    }

    .dropdown .submenu {
        position: static;
        display: none;
        box-shadow: none;
        margin: 0;
        padding-left: 20px;
        transform: none;
    }

    .dropdown.active .submenu {
        display: block;
    }

    .submenu a {
        padding: 10px 15px;
        border-bottom: 1px solid var(--color-gray-light);
    }

    .section {
        padding: 50px 0;
    }

    .section h2 {
        font-size: 28px;
    }

    .event-item {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: 1fr;
    }

    .image-popup-prev,
    .image-popup-next {
        font-size: 30px;
        padding: 5px 15px;
    }

    .hero-section {
        padding: 20px 0;
    }

    .hero-slideshow {
        height: 300px;
    }

    .hero-slide img {
        height: 300px;
    }
}

/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
}

/* === ACCESSIBILITY === */
.image-popup-close:focus,
.image-popup-prev:focus,
.image-popup-next:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-green-dark);
    outline-offset: 2px;
}
