/* -----------------------------------
   Animation
------------------------------------ */

@keyframes strongBounce {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(5deg) translateY(-3px);
    }
    50% {
        transform: rotate(-5deg) translateY(3px);
    }
    75% {
        transform: rotate(5deg) translateY(-3px);
    }
}


.cup,
.straw2,
.bean3,
.crois
{
    animation: strongBounce 2.5s ease-in-out infinite;
}



/* -----------------------------------
   Typography
------------------------------------ */
h1, h2, h3, h4 {
    font-family: 'Gluten', cursive;
    font-weight: 700;
    font-size: clamp(25px, 5vw, 55px);
    line-height: 0.4;
}

h1 { color: #3F1F0B; }
h2 { color: #C9453D; }
h3 { color: #885D42; }
h4 { color: #A29429; }

strong, b {
    font-weight: 900;
}

body, p, li, a {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(19px, 2vw, 54px);
}


/* -----------------------------------
   Layout & Base
------------------------------------ */
body {
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #FEECD3;
    color: #3F1F0B;
}


main {
    padding: 2vw;
}

.description,
.hours,
.instagram,
.map {
    margin-bottom: 4rem;
}


/* -----------------------------------
   Decorative Elements
------------------------------------ */
.decorative-container {
    position: relative;
}

.straw1,
.cr {
    position: absolute;
    z-index: -1;
    opacity: 0.9;
    pointer-events: none;
}


/* -----------------------------------
   Hero Section
------------------------------------ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5vw;
    box-sizing: border-box;
    margin-bottom: 3rem;
    overflow: hidden;
    transition: background-image 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.fade-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease;
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 2s ease-in-out;
    z-index: -1;
    opacity: 0;
}

/* Make sure one layer is visible initially */
#bg1 {
    opacity: 1;
}

/* Adjust the overlay to fully cover */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 20, 5, 0.75); /* Adjust opacity as needed */
    z-index: 0;
}

.heroText {
    margin-top: -30vh;
    font-size: clamp(40px, 5vw, 48px);
    font-family: 'Gluten', cursive;
    line-height: 1.5;
    color: #FEECD3;
    max-width: 90vw;
    z-index: 2;
}

/* -----------------------------------
   Contact
------------------------------------ */
.contact-wrapper {
    background-color: #3F1F0B;
    color: #FEECD3;
    position: relative;  /* Keep it relative to position elements inside */
    width: 100%;
    padding: 2rem 0; /* Adjust padding to your preference */
    margin-top: auto; /* Pushes the section to the bottom of the page */
    display: flex;
    justify-content: flex-start;  /* Align content to the left */
    align-items: flex-start;  /* Align content to the top of the section */
    flex-direction: column;  /* Stack elements vertically */
}

/* Styling for contact info text */
.contact {
    position: relative;
    z-index: 1;
    text-align: left; /* Align contact info to the left */
    padding-left: 1rem;  /* Space from left edge */
}

/* Styling for the logo */
.logo2 {
    position: absolute;  /* Position logo absolutely */
    top: 10px;            /* Adjust distance from top */
    right: 10px;          /* Adjust distance from right */
    max-width: 70px;      /* Set maximum width for the logo */
    z-index: 2;           /* Ensure it stays on top of other content */
}

/* Contact text styling */
.contact p {
    margin-bottom: 10px;  /* Space between contact info lines */
}

.contact-text {
    font-size: clamp(20px, 1.5vw, 30px);
    line-height: 1.4;
}


/* -----------------------------------
   Card Styles
------------------------------------ */
.rectangle-yellow { background: #C9B132; }
.rectangle-brown  { background: #885D42; }
.rectangle-blue   { background: #BAD5CE; }

.insta-container  { background-color: #C9453D; }
.map-container    { background-color: #BAD5CE; }

.insta-wrapper,
.map-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.insta-container,
.map-container {
    border-radius: 2rem;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* -----------------------------------
   Responsive - Mobile
------------------------------------ */
@media (max-width: 768px) {


    .logo2 {
        position: absolute;  /* Position the logo absolutely */
        top: 10px;           /* Adjust to your desired distance from the top */
        right: 10px;         /* Adjust to your desired distance from the right */
        width: auto;
        max-width: 70px;
    }

    .straw1 { top: 15vh; left: 0; width: 150px; }
    .cr     { top: 90vh; right: 0; width: 200px; }

    .logo {
        z-index: 1;
        position: absolute;
        width: 80vw;
        max-width: 300px;
        height: auto;
        left: 50%;
        top: 50vh;
        transform: translateX(-50%);
    }

    .card-container-wrapper {
        display: flex;
        flex-direction: row;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-bottom: 3rem;
    }

    .card-container {
        position: relative;
        width: 243px;
        height: 365px;
        scroll-snap-align: center;
    }

    .rectangle-yellow,
    .rectangle-blue,
    .rectangle-brown {
        width: 222px;
        height: 344px;
        border-radius: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .slidePic {
        width: 200px;
        height: 320px;
        object-fit: cover;
        border-radius: 35px;
    }

    .darbaLaiks {
        width: 100%;
        height: auto;
        margin: 3rem auto;
        display: block;
        object-fit: contain;
        z-index: 2;
    }

    .map-container iframe,
    .instagram-media {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        min-height: 150px;
        border-radius: 2rem;
        display: block;
    }

    .cup, .bean3, .crois {
        width: 100%;
        max-width: 30px;
    }

    .straw2 {
        width: 100%;
        max-width: 50px;
    }
}


/* -----------------------------------
   Responsive - Desktop
------------------------------------ */
@media (min-width: 769px) {



    .logo2 {
        position: absolute;
        bottom: 60px;
        right: 50px;
        width: 100%;
        max-width: 100px;
    }

    .straw1 { top: 20vh; left: 0; width: 230px; }
    .cr     { top: 145vh; right: 0; width: 270px; }

    .logo {
        position: absolute;
        width: 80vw;
        max-width: 300px;
        height: auto;
        left: 85%;
        top: 50vh;
        transform: translateX(-50%);
        z-index: 1;
    }

    .card-container-wrapper {
        display: inline-flex;
        flex-direction: row;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        white-space: nowrap;
        max-width: 100%;
    }

    .card-container {
        flex: 0 0 auto;
        width: 620px;
        height: 780px;
        scroll-snap-align: center;
        margin-left: 20px;
        min-width: 620px;
    }

    .rectangle-yellow,
    .rectangle-blue,
    .rectangle-brown {
        width: 600px;
        height: 760px;
        border-radius: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .slidePic {
        width: 520px;
        height: 670px;
        object-fit: cover;
        border-radius: 35px;
    }

    .instagram-media,
    .map-container iframe {
        width: 100% !important;
        height: 300px !important;
        border-radius: 1rem;
    }

    .darbaLaiks {
        width: 50%;
        height: auto;
        margin: 3rem auto;
        display: block;
        object-fit: contain;
        z-index: 2;
    }

    .cup, .bean3, .crois {
        width: 100%;
        max-width: 50px;
    }

    .straw2 {
        width: 100%;
        max-width: 100px;
    }
}
