/* =============================================
   M&W Europe - Landing Page Styles
   ============================================= */

/* CSS Custom Properties (Color Palette) */
:root {
    --primary: #14243B;
    --background: #F7F7F7;
    --accent: #CA9903;
    --background-neutral: #F2F2F2;
    --white: #FFFFFF;
    --accent-40: #D5AD35;
    --primary-30: #727C89;
    --primary-20: #A1A7B1;
    --primary-10: #D0D3D8;
}

/* =============================================
   Font Faces
   ============================================= */
@font-face {
    font-family: 'GothamBook';
    src: url('../fonts/GothamBook.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NewBaskerville';
    src: url('../fonts/Newbaskerville.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =============================================
   Reset & Base Styles
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'GothamBook', sans-serif;
    color: var(--primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    line-height: 1.5 !important;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0.15em;
}

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'NewBaskerville', serif;
    font-weight: normal;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 6rem);
    color: var(--primary);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--accent);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--primary);
}

.category-card p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--primary);
    text-align: center;
}

p {
    font-family: 'GothamBook', sans-serif;
    font-size: clamp(0.875rem, 1vw, 1rem);
    color: var(--primary);
}

/* =============================================
   Layout Utilities
   ============================================= */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   Header
   ============================================= */
.header {
    background-color: var(--background-neutral);
    padding: 40px 0;
    text-align: center;
}

.logo {
    max-width: 210px;
    height: auto;
    margin: 0 auto;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    background-color: var(--white);
    padding: 60px 0;
}

.hero-container {
    display: flex;
    gap: 0;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding: 60px;
}

.hero-title {
    margin-bottom: 10px;
}

.hero-subtitle {
    font-family: 'GothamBook', sans-serif;
    color: var(--accent);
    margin-bottom: 40px;
    position: relative;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 120px;
    height: 3px;
    background-color: var(--accent);
}

.hero-description {
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.8;
}

.hero-image {
    width: 50%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* =============================================
   Button Styles
   ============================================= */
.btn {
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: 'GothamBook', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
    width: fit-content;
}

.btn-primary:hover {
    background-color: var(--accent-40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(202, 153, 3, 0.3);
}

.icon {
    width: 18px;
    height: 18px;
}

.btn .icon {
    align-self: center;
}

/* =============================================
   Categories Section
   ============================================= */
.categories {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    background-color: var(--background-neutral);
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 3px solid var(--accent-40);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    overflow: hidden;
}

.category-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* =============================================
   Fresh & Seasonal Section
   ============================================= */
.fresh-seasonal {
    padding: 60px 0 80px;
    width: 100%;
}

.fresh-container {
    max-width: 1440px;
}

.fresh-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.fresh-images {
    width: 100%;
}

.fresh-content {
    background-color: var(--background-neutral);
    padding: 60px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    aspect-ratio: 1;
}

.grid-item:last-child {
    background-color: var(--primary-20);
}

.grid-image-2 {
    grid-column: span 2;
}

.grid-item {
    border-radius: 4px;
    overflow: hidden;
}

.grid-placeholder-1,
.grid-placeholder-2,
.grid-placeholder-3,
.grid-placeholder-4,
.grid-placeholder-5 {
    background-color: var(--primary-10);
}

.grid-placeholder-2,
.grid-placeholder-3,
.grid-placeholder-5 {
    background-color: var(--primary-20);
}

.grid-image-1 img,
.grid-image-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-logo {
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.grid-logo img {
    max-width: 80%;
    max-height: 80%;
}

.fresh-content h2 {
    margin-bottom: 40px;
    position: relative;
}

.fresh-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 120px;
    height: 3px;
    background-color: var(--accent);
}

.fresh-content p {
    margin-bottom: 32px;
    line-height: 1.8;
    color: var(--primary);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background-color: var(--background-neutral);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
    justify-content: center;
}

.footer-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
    background: var(--background-neutral);
    padding: 1.5rem;
}

.footer-section:first-child {
    padding-right: 3rem;
}

.footer-contacts {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
}

.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-shrink: 0;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-info .location,
.footer-info .contact {
    font-family: 'GothamBook', sans-serif;
    color: var(--primary);
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: normal;
}

.footer-section h3 {
    font-family: 'GothamBook', sans-serif;
    color: var(--primary);
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: normal;
}

.footer-section p {
    color: var(--primary);
    margin: 0;
    line-height: 1.6;
    font-family: 'GothamBook', sans-serif;
}

.footer-section a {
    color: var(--accent);
    transition: color 0.3s ease;
    font-family: 'GothamBook', sans-serif;
}

.footer-section a:hover {
    color: var(--accent-40);
}

.footer-icon {
    background-image: url('../img/location-dot.svg');
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-position: center center;
    display: flex;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--accent);
    flex-shrink: 0;
}

.footer-icon-envelope {
    background-image: url('../img/envelope-white.svg');
    background-size: 30px 30px !important;
}

.footer-contact .footer-icon {
    width: 50px;
    height: 50px;
    background-size: 30px 30px;
}

.footer-bottom {
    border-top: 1px solid var(--primary-10);
    padding-top: 20px;
}

.footer-bottom p {
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 0;
    text-align: center;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: underline;
    transition: font-weight 0.3s ease;
    font-family: 'GothamBook', sans-serif;
}

.footer-bottom a:hover {
    font-weight: bold;
}

.footer-separator {
    margin: 0 10px;
    opacity: 0.5;
}

/* =============================================
   Responsive Design
   ============================================= */

/* Tablet */
@media screen and (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
    }

    .hero-content {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-subtitle::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        height: auto;
        max-height: 500px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fresh-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fresh-images {
        order: -1;
    }

    .fresh-content {
        text-align: center;
    }

    .fresh-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .image-grid {
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .header {
        padding: 30px 0;
    }

    .logo {
        max-width: 150px;
    }

    .hero {
        padding: 40px 0;
    }

    .categories {
        padding: 40px 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card {
        padding: 30px 20px;
    }

    .category-icon {
        width: 100px;
        height: 100px;
    }

    .fresh-seasonal {
        padding: 40px 0 60px;
    }

    .image-grid {
        gap: 6px;
    }

    .btn {
        padding: 14px 24px;
        justify-content: center;
    }

    .container {
        padding: 0 16px;
    }

    .fresh-content {
        padding: 40px 20px;
        text-align: center;
    }

    .fresh-content .btn {
        justify-content: center;
        display: inline-flex;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        width: 100%;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-icon {
        width: 40px !important;
        height: 40px !important;
        background-size: 25px 25px !important;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .logo {
        max-width: 120px;
    }

    .footer-bottom p {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .footer-separator {
        display: none;
    }
}

/* =============================================
   Legal Page
   ============================================= */
.legal-content {
    padding: 60px 0;
    background-color: var(--white);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.legal-section h2::after {
    content: none;
}

.legal-section h3 {
    color: var(--primary);
    margin: 20px 0 10px;
    font-size: 1.25rem;
}

.legal-section p,
.legal-section ul {
    color: var(--primary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 10px;
}

.back-link {
    margin-bottom: 30px;
    color: var(--accent);
    text-decoration: underline;
}

.back-link:hover {
    color: var(--accent-40);
}
