: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);
}

/* The hero is as tall as the logo plus the wave, so when the screen
   shrinks the wave moves up with the shrinking logo. At 1440px and wider
   this adds up to 550px. */
.hero {
    --logo-ratio: calc(348 / 736);  /* Logo.png height / width; update if the logo changes */
    --logo-h: calc(min(500px, 85vw) * var(--logo-ratio));
    --wave-band: max(calc(clamp(900px, 100vw, 1440px) * 294 / 1440), 220px);

    position: relative;
    height: calc(20px + var(--logo-h) + var(--wave-band));
    padding-top: 20px;
    overflow: hidden;
}



/* The wave keeps its 1440px proportions on any screen:
   - below 900px it stays 900px wide and is cropped from the centre,
     instead of being squeezed;
   - between 900px and 1440px it scales evenly in both directions;
   - above 1440px only its width grows, so it never rises into the logo.
   The height is the viewBox height (2550) at that scale; the extra pink
   above the curve is cut off by the hero's overflow. */
.wave {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: max(100%, 900px);
    height: calc(clamp(900px, 100vw, 1440px) * 2550 / 1440);
}

.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;
}
/* ------------------------------------- */
/* --------UNDER CONSTRUCTION----------- */
/* ------------------------------------- */

.construction {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px 60px;
    text-align: center;
}

.construction h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    color: var(--logo-brow);
    margin-bottom: 16px;
}

.construction p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--pastel-brown);
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--pastel-pink);
    color: var(--logo-brow);
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    background: var(--logo-yellow);
    transform: translateY(-2px);
}

.contact-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* "Avise-me" email form */

.notify-form {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    margin: 0 auto 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.notify-label {
    display: block;
    font-weight: 600;
    color: var(--logo-brow);
    margin-bottom: 12px;
}

.notify-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.notify-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 12px 18px;
    font: inherit;
    border: 2px solid var(--beige);
    border-radius: 999px;
    background: var(--pastel-white);
    color: var(--black);
}

.notify-input:focus {
    outline: none;
    border-color: var(--logo-yellow);
}

.notify-button {
    flex: 0 0 auto;
    padding: 12px 26px;
    font: inherit;
    font-weight: 600;
    border: 0;
    border-radius: 999px;
    background: var(--logo-brow);
    color: var(--white);
    cursor: pointer;
}

.notify-button:hover,
.notify-button:focus-visible {
    background: var(--pastel-brown);
}

.notify-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.notify-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--pastel-brown);
    cursor: pointer;
}

.notify-consent input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--logo-brow);
}

.notify-captcha {
    margin-top: 16px;
}

.construction .notify-status {
    margin: 12px 0 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.construction .notify-status:empty {
    display: none;
}

.notify-status[data-state="ok"] {
    color: #2e7d32;
}

.notify-status[data-state="error"] {
    color: #b3261e;
}

@media (max-width: 480px) {
    .notify-button {
        flex: 1 1 100%;
    }
}
