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

:root {
    --red: #C41E3A;
    --red-dark: #8B0000;
    --cream: #FFF8E7;
    --honey: #DAA520;
    --brown: #5D4037;
    --text: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--cream);
}

h1, h2, h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo-img {
    height: 70px;
    width: auto;
}

.logo-text {
    display: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--red);
    margin-left: 0.5rem;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .logo-text {
        display: block;
    }
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 700;
    color: var(--brown);
    transition: color 0.3s;
}

nav a:hover {
    color: var(--red);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--brown);
    transition: 0.3s;
}

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

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

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

section {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1200px;
    width: 100%;
}

#hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('images/hero.webp');
    background-size: cover;
    background-position: center;
    background-color: #5D4037;
    color: white;
    text-align: center;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    background: var(--red-dark);
    transform: scale(1.05);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-animate {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.hero-animate:nth-child(1) { animation-delay: 0.2s; }
.hero-animate:nth-child(2) { animation-delay: 0.5s; }
.hero-animate:nth-child(3) { animation-delay: 0.8s; }

.jam-jar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 80px;
    animation: float 4s ease-in-out infinite;
    z-index: 100;
    cursor: pointer;
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    10% { transform: translateX(-5px) rotate(-2deg); }
    20% { transform: translateX(5px) rotate(2deg); }
    30% { transform: translateX(-5px) rotate(-2deg); }
    40% { transform: translateX(5px) rotate(2deg); }
    50% { transform: translateX(-3px) rotate(-1deg); }
    60% { transform: translateX(3px) rotate(1deg); }
    70% { transform: translateX(-2px) rotate(0deg); }
    80% { transform: translateX(2px) rotate(0deg); }
    90% { transform: translateX(-1px) rotate(0deg); }
}

@keyframes explode {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    20% { transform: scale(1.4) rotate(-10deg); opacity: 0.6; }
    40% { transform: scale(1.7) rotate(-20deg); opacity: 0.3; }
    60% { transform: scale(2) rotate(-30deg); opacity: 0.15; }
    100% { transform: scale(2.5) rotate(-45deg); opacity: 0; }
}

.jam-splatter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.jam-splatter.active {
    display: block;
}

.splatter-drop {
    position: absolute;
    opacity: 0.92;
    animation: splatter-drip 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    box-shadow: inset -2px -3px 5px rgba(0,0,0,0.3);
}

.splatter-drop.drip {
    animation: drip-down 5s cubic-bezier(0.5, 0, 0.7, 1) forwards;
}

@keyframes splatter-drip {
    0% {
        transform: translate(var(--start-x), 0) scale(1);
        opacity: 0.9;
    }
    15% {
        transform: translate(calc(var(--target-x) - 20px), 8vh) scale(1.15, 0.95);
        opacity: 0.92;
    }
    40% {
        transform: translate(calc(var(--target-x) - 10px), 30vh) scale(0.95, 1.05);
        opacity: 0.85;
    }
    65% {
        transform: translate(var(--target-x), 60vh) scale(0.85, 0.9);
        opacity: 0.65;
    }
    85% {
        transform: translate(calc(var(--target-x) + 5px), 85vh) scale(0.7, 0.6);
        opacity: 0.35;
    }
    100% {
        transform: translate(var(--target-x), 110vh) scale(0.3, 0.2);
        opacity: 0;
    }
}

@keyframes drip-down {
    0% {
        transform: translateY(0) scaleY(1);
        opacity: 0.9;
    }
    20% {
        transform: translateY(15vh) scaleY(1.2) scaleX(0.85);
        opacity: 0.88;
    }
    45% {
        transform: translateY(40vh) scaleY(1.3) scaleX(0.7);
        opacity: 0.75;
    }
    70% {
        transform: translateY(70vh) scaleY(1.1) scaleX(0.5);
        opacity: 0.5;
    }
    100% {
        transform: translateY(110vh) scaleY(0.4) scaleX(0.2);
        opacity: 0;
    }
}

.product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

#about {
    background: var(--cream);
}

#about h2 {
    font-size: 3rem;
    color: var(--red);
    margin-bottom: 2rem;
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-image {
    width: 100%;
    height: 400px;
    background: url('images/products.webp');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#products {
    background: var(--honey);
    color: var(--brown);
}

#products h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--red);
    margin-bottom: 0.5rem;
}

#contact {
    background: var(--red);
    color: white;
}

#contact h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

#contact > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--brown);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: #4CAF50;
    color: white;
}

.form-status.error {
    display: block;
    background: #f44336;
    color: white;
}

footer {
    background: var(--brown);
    color: white;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 1.3rem;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
    }

    section {
        padding: 4rem 1.5rem;
    }

    h2 {
        font-size: 2rem !important;
    }
}