:root {
    --pastel-pink: #F9E7E6;
    --pastel-blue: #EAF6FA;
    --pastel-yellow: #ffdabd;
    --pastel-brown: #906644;
    --logo-brow: #754319;
    --logo-yellow: #F1B764;
    --logo-grey: #F1E9D8;
    --black: #000000;
    --white: #ffffff;
    --pastel-white: #f7f5f2;
    --beige: #EFE5D8;

    --menu-height: 76.88px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--pastel-white);
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
}

/* ------------------------------------- */
/* -------------HEADER------------------ */
/* ------------------------------------- */


.top {
    min-height: 100px;
    display: block;
    background-color: var(--pastel-pink);
}

.hero {
    position: relative;
    height: 550px;
    padding-top: 20px;
}



.wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wave path {
    fill: var(--pastel-pink);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 2;
}

.logo {
    width: 500px;
    max-width: 85%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


.menu-button {
    border: 0;
    background-color: transparent;
    height: 55px;
    margin-top: 20px;
    margin-left: 20px;
}

.menu-image {
    width: 100%;
    height: 100%;
}

.spin-animation {
    /* name | duration | timing-function | fill-mode */
    animation: spinOnce 1s ease-in-out forwards;
}

@keyframes spinOnce {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------- */
/* ------------BLOBS-------------------- */
/* ------------------------------------- */

/* LEFT YELLOW BLOB */

.blob-left {
    position: absolute;

    width: 870px;
    height: 500px;
    left: -191px;
    top: 850px;

    background: var(--pastel-yellow);

    border-radius:
        55% 45% 60% 40% / 40% 55% 45% 60%;

    z-index: -1;
}

/* RIGHT PURPLE BLOB */

.blob-right {
    position: absolute;

    width: 400px;
    height: 500px;

    right: -150px;
    top: 1500px;

    background: #DDBFC8;

    border-radius:
        45% 55% 40% 60% / 55% 35% 65% 45%;

    z-index: -1;
}

/* ------------------------------------- */
/* -----------CONTENT------------------- */
/* ------------------------------------- */

.section {
    min-height: 135px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.section h2 {
    font-size: 3rem;
    color: #7A471B;
}

a {
    text-decoration: none !important;
}


/* ------------------------------------- */
/* --------COOKIES POSTCARDS------------ */
/* ------------------------------------- */

/* 1. NEW GRID CONTAINER: Houses and aligns multiple cards */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    /* Spaces out the cards evenly */
}

/* 2. CARD BASE STYLES */
.card-container {
    position: relative;
    width: 320px;
    background-color: #D3C9BE;
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.4s ease-in-out;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.card-description {
    font-size: 14px;
    color: #555555;
    margin: 0 0 24px 0;
    line-height: 1.4;
    transition: opacity 0.4s ease;
    /* Smooth fade-out */
}

.default-button-box {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.pill-btn {
    background-color: #613B2E;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 80%;
}

.hover-actions-box {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.action-btn {
    flex: 1;
    background-color: #613B2E;
    color: #ffffff;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
}

.action-btn.secondary {
    background-color: transparent;
    border: 2px solid #613B2E;
    color: #613B2E;
}

.card-container:hover .card-description {
    opacity: 0;
    /* Fades out description text on hover */
}

.card-container:hover .default-button-box {
    opacity: 0;
    pointer-events: none;
}

.card-container:hover .hover-actions-box {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ------------------------------------- */
/* -----------MORE INFO PAGE------------ */
/* ------------------------------------- */

/* Header */
.logo2 {
    width: 323px;
    max-width: 85%;
    position: absolute;
    left: 50%;
    top: -20%;
    transform: translateX(-50%);
}

.hero h1 {
    position: absolute;
    top: 20%;
    color: var(--logo-yellow);
    font-size: 70px;
    width: 100%;
    text-align: center;
    font-family: system-ui;
}

/* Cards */

.flavor-card {

    display: flex;

    align-items: flex-start;

    gap: 35px;

    background: var(--pastel-white);

    padding: 35px;

    border-radius: 25px;

    margin: 50px auto;

    max-width: 1100px;

    box-shadow:
        0 5px 20px rgba(0,
            0,
            0,
            .08);
}

.flavor-card img {

    width: 180px;

    height: 180px;

    object-fit: cover;

    border-radius: 50%;

    border: 6px solid var(--beige);

    flex-shrink: 0;
}

.flavor-content {

    flex: 1;

    min-width: 0;
}

.flavor-content h2 {

    color: var(--brown);

    margin-bottom: 15px;
}

.story-box {

    background: #fff7ef;

    border-left: 5px solid var(--gold);

    padding: 20px;

    border-radius: 15px;

    margin: 20px 0;

    line-height: 1.8;
}

.ingredient-list {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin: 20px 0 30px;
}

.ingredient-list span {

    background: var(--beige);

    color: var(--brown);

    padding: 10px 15px;

    border-radius: 999px;

    font-size: .9rem;

    font-weight: 600;
}