@import url('../design-tokens/tokens.css');

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

:root {
    /* Colors from Figma Design */
    --color-dark: #0f1c2e;
    --color-olive: #7a8f3a;
    --color-red: #c0392b;
    --color-yellow: #f1c40f;
    --color-beige: #ede2c8;
    --color-light: #f7f7f4;
    
    /* Typography */
    --font-heading: 'Ibarra Real Nova', serif;
    --font-body: 'Hubballi', sans-serif;
    --font-accent: 'Josefin Slab', serif;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    background-color: var(--color-light);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(15, 28, 46, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.btn-order {
    background-color: var(--color-red);
    color: white;
}

.btn-order-mobile {
    display: none;
}

.btn-order:hover {
    background-color: #a02d1f;
}

.btn-yellow {
    background-color: var(--color-yellow);
    color: var(--color-dark);
    font-weight: 400;
}

.btn-yellow:hover {
    background-color: #d4a80d;
}

.btn-olive {
    background-color: var(--color-olive);
    color: white;
}

.btn-olive:hover {
    background-color: #65702f;
}

/* Hero Section */
.hero {
    background-color: #F7F7F4;
    padding: 100px 0 140px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(122, 143, 58, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(241, 196, 15, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 500px;
    position: relative;
    z-index: 2;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-olive);
    margin-bottom: 8px;
    letter-spacing: -2px;
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-dark);
    margin-bottom: 8px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.hero-food-box {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 600px;
    display: block;
    object-fit: contain;
}

.hero-brand-motif {
    margin-top: 60px;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-brand-motif .brand-motif-image {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
}

.food-box {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 2;
    max-width: 500px;
}

.food-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.food-compartment {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-beige);
    position: relative;
}

.food-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-item {
    background: var(--color-beige);
    min-height: 200px;
}

.vending-machine {
    min-height: 400px;
}

.food-label {
    position: absolute;
    top: -15px;
    right: -15px;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    transform: rotate(3deg);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.label-left {
    background-color: var(--color-yellow);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.label-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    position: relative;
}

.logo-segment {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    clip-path: polygon(50% 0%, 100% 0%, 100% 50%, 50% 50%);
    position: relative;
}

.logo-segment::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-yellow);
    clip-path: polygon(0% 0%, 50% 0%, 50% 50%, 0% 50%);
}

.label-brand {
    font-family: var(--font-accent);
    font-size: 12px;
    font-weight: 400;
    color: white;
    text-transform: lowercase;
    text-align: center;
}

.label-right {
    background-color: var(--color-red);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.label-title {
    font-family: var(--font-accent);
    font-size: 18px;
    font-weight: 400;
    color: white;
    text-transform: lowercase;
    margin-bottom: 8px;
}

.label-components {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.label-components span {
    font-family: var(--font-body);
    font-size: 10px;
    color: white;
    text-transform: lowercase;
    opacity: 0.9;
}

.label-ingredients {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.ingredient-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.label-weight {
    font-family: var(--font-body);
    font-size: 11px;
    color: white;
    font-weight: 400;
    margin-bottom: 8px;
}

.label-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.rating-triangle {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid rgba(255, 255, 255, 0.3);
}

.rating-triangle.filled {
    border-bottom-color: var(--color-yellow);
}

.label-border {
    display: flex;
    gap: 2px;
    margin-top: auto;
}

.border-triangle {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid var(--color-yellow);
}

.border-triangle:nth-child(even) {
    border-bottom-color: white;
}

/* Decorative Patterns */
.decorative-pattern {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    background-color: var(--color-light);
}

.pattern-1,
.pattern-3 {
    background: linear-gradient(90deg, var(--color-red) 0%, var(--color-yellow) 100%);
}

.pattern-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 40px solid var(--color-light);
    transform: rotate(45deg);
}

.pattern-1 .pattern-triangle:nth-child(even),
.pattern-3 .pattern-triangle:nth-child(even) {
    border-bottom-color: var(--color-yellow);
}

.pattern-2 {
    background-color: var(--color-beige);
}

.pattern-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-olive);
    opacity: 0.3;
}

/* What's New Section */
.whats-new {
    background-color: var(--color-beige);
    padding: 120px 0;
    text-align: center;
}

.whats-new-image {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    overflow: hidden;
}

.vending-machine-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.brand-motif-image {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    margin-top: 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    color: var(--color-olive);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 18px;
    color: var(--color-dark);
    max-width: 600px;
    margin: 0 auto 8px;
    line-height: 1.6;
}

.whats-new-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 80px;
    align-items: center;
}

.food-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.food-item {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.display-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vending-machine {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.vending-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
}

.vending-text {
    font-family: var(--font-accent);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-red);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vending-pattern {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pattern-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-olive);
}

/* Contact Section */
.contact {
    background-color: #F7F7F4;
    padding: 120px 0;
    text-align: center;
}

.contact-form {
    max-width: 700px;
    margin: 48px auto 0;
    text-align: left;
    background-color: var(--color-beige);
    padding: 60px;
    border-radius: 24px;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 8px;
}

.contact-form-logo {
    height: 50px;
    width: auto;
    max-width: 100%;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

@media (min-width: 301px) {
    .contact-form-logo {
        height: 50px !important;
    }
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: 400;
    color: var(--color-red);
    margin: 0;
    letter-spacing: -1px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
    align-items: end;
}

.form-group {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-dark);
    margin-bottom: 4px;
    font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 18px;
    background-color: white;
    color: var(--color-dark);
    box-sizing: border-box;
    min-height: 52px;
    line-height: 1.2;
}

.form-group textarea {
    min-height: 240px;
    height: auto;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-olive);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230f1c2e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}


.form-submit {
    text-align: center;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-submit .btn {
    width: auto;
    min-width: 200px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    padding: 14px 32px;
    margin: 0 auto;
}

.contact-brand-motif {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.contact-brand-motif .brand-motif-image {
    width: 50%;
    height: auto;
    max-width: 50%;
    display: block;
    object-fit: contain;
}

/* Footer */
.footer {
    background-color: #F7F7F4;
    color: var(--color-dark);
    padding: 60px 0;
    text-align: center;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-text {
    font-family: var(--font-accent);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-red);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-tagline {
    font-family: var(--font-accent);
    font-size: 10px;
    font-weight: 400;
    color: var(--color-red);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-dark);
    text-decoration: none;
    padding: 14px 32px;
    border: 1px solid var(--color-dark);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.footer-cta:hover {
    background-color: var(--color-dark);
    color: white;
}

/* Responsive Design */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .navbar .btn-order {
        display: none;
    }
    
    .btn-order-mobile {
        display: inline-block;
        margin-top: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .hero .container {
        display: flex;
        flex-direction: column;
        gap: 60px;
    }
    
    .hero-image-wrapper {
        order: 1;
        margin-bottom: 0;
    }
    
    .hero-content {
        order: 2;
        max-width: 100%;
        text-align: center;
    }
    
    .hero-brand-motif {
        order: 3;
    }
    
    .food-box {
        max-width: 100%;
    }
    
    .whats-new-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 300px) {
    .container {
        padding: 0 24px;
    }
    
    .navbar .container {
        justify-content: center;
    }
    
    /* Hero Section - Center all content */
    .hero {
        text-align: center;
    }
    
    .hero .container {
        display: flex;
        flex-direction: column;
    }
    
    .hero-image-wrapper {
        order: 1;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content {
        order: 2;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-brand-motif {
        order: 3;
    }
    
    .hero-title {
        font-size: 28px;
        text-align: center;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* What's New Section - Center all content */
    .whats-new {
        text-align: center;
    }
    
    .whats-new .btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: auto;
    }
    
    .section-title {
        font-size: 36px;
        text-align: center;
    }
    
    .section-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Contact Section - Center form container */
    .contact {
        text-align: center;
    }
    
    .contact-form {
        padding: 40px 24px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-form-logo {
        height: 50px;
        max-width: calc(100% - 48px);
    }
    
    /* Footer - Center all content */
    .footer {
        text-align: center;
    }
    
    .food-display {
        grid-template-columns: 1fr;
    }
    
    .logo-emblem {
        width: 40px;
        height: 40px;
    }
    
    .emblem-red {
        width: 35px;
        height: 35px;
    }
    
    .emblem-yellow {
        width: 28px;
        height: 28px;
        top: 6px;
        left: 6px;
    }
}
