/*-------------------------------- Branding ----------------------------------------*/

@font-face {
    font-family: 'Sevastian 03 - Inside';
    src: local('Sevastian 03 - Inside'), local('Sevastian-03-Inside'),
        url('../fonts/Sevastian/sevastian-03-inside-webfont.woff2') format('woff2'),
        url('../fonts/Sevastian/sevastian-03-inside-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-base: #FFF9F5;
    --bg-base-95: rgba(255, 249, 245, 0.95);
    --bg-canada-red: #FF0000;
    --text-primary: #124187;
    --text-secondary: #124187;
    --text-tertiary: #124187;
    --text-soft-white: #FFF9F5;

    --blue: #124187;
    --blue-90: rgba(18, 65, 135, 0.9);
    --blue-hover: #0e3266;
    --peach: #F9C885;
    --mint: #98E2D0;
    --rose: #FD94DF;
    --rose-404: #FD94DF;
    --lavender: #B6A1F2;
    --canada-red: #FF0000;
    
    --gradient-main: radial-gradient(
        circle at bottom left,
        #ffd194,#ff9ad4,#c79dff,#b1b8ff,#a6f3e2);
    --gradient-main-perm: radial-gradient(
        circle at bottom left,
        #ffd194,#ff9ad4,#c79dff,#b1b8ff,#a6f3e2);

    --gradient-404: radial-gradient(circle at 50% 50%, #b6a1f2 0%, #fd94df 50%, #124187 100%);
    --canadian-flag-gradient: linear-gradient(
            90deg,
            var(--bg-canada-red) 0%,
            var(--bg-canada-red) 25%,
            #FFFFFF 25%,
            #FFFFFF 75%,
            var(--bg-canada-red) 25%,
            var(--bg-canada-red) 100%
        );

    --bg-primary: #124187;
    --bg-flavors: linear-gradient(to bottom, var(--peach), var(--rose));
    --bg-catering: linear-gradient(to bottom, var(--rose), var(--lavender));
    --bg-contact: linear-gradient(to top, var(--mint), var(--lavender));

    --white-shadow: 1px 1px 0 var(--text-soft-white),
                -1px 1px 0 var(--text-soft-white),
                1px -1px 0 var(--text-soft-white),
                -1px -1px 0 var(--text-soft-white),
                0px 1px 0 var(--text-soft-white),
                0px -1px 0 var(--text-soft-white),
                -1px 0px 0 var(--text-soft-white),
                1px 0px 0 var(--text-soft-white),
                2px 2px 0 var(--text-soft-white),
                -2px 2px 0 var(--text-soft-white),
                2px -2px 0 var(--text-soft-white),
                -2px -2px 0 var(--text-soft-white),
                0px 2px 0 var(--text-soft-white),
                0px -2px 0 var(--text-soft-white),
                -2px 0px 0 var(--text-soft-white),
                2px 0px 0 var(--text-soft-white),
                1px 2px 0 var(--text-soft-white),
                -1px 2px 0 var(--text-soft-white),
                1px -2px 0 var(--text-soft-white),
                -1px -2px 0 var(--text-soft-white),
                2px 1px 0 var(--text-soft-white),
                -2px 1px 0 var(--text-soft-white),
                2px -1px 0 var(--text-soft-white),
                -2px -1px 0 var(--text-soft-white);
}
.dark {
    --bg-base: #1a1a1a;
    --bg-base-95: rgba(26, 26, 26, 0.95);
    --bg-canada-red: #af0000;
    --text-primary: #FFF9F5;
    --text-secondary: #3da99d;
    --text-tertiary: #FFF9F5;

    --blue: #0e3266;
    --blue-hover: #0b2a55;
    --blue-90: rgba(14, 50, 102, 0.9);
    --peach: #a47e38;
    --mint: #3da99d;
    --rose: #994f85;
    --rose-404: #FFF9F5;
    --lavender: #7e5ca8;
    --canada-red: #FFF;
    
    --gradient-main: radial-gradient(
        circle at bottom left,
        #a47e38,#994f85,#7e5ca8,#5a6cb8,#3da99d);

    --gradient-404: radial-gradient(circle at 50% 50%, #2e2250 0%, #5c3c7e 40%, #b6a1f2 70%, #0a1633 100%);

    --bg-primary: #1a1a1a;
}

.text-primary {
    color: var(--text-primary);
}
.text-secondary {
    color: var(--text-secondary);
}
.text-tertiary { 
    color: var(--text-tertiary);
}
.text-white {
    color: var(--text-soft-white) !important;
}
.bg-primary {
    background-color: var(--bg-primary);
}
.bg-secondary {
    background-color: var(--bg-base);
}
.hover\:text-primary:hover {
    color: var(--text-primary);
}
.gradient-text {
    background: var(--gradient-main-perm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sevastian-font {
    font-family: 'Sevastian 03 - Inside';
    font-style: normal;
}

.sofia-font {
    font-family: 'sofia-pro', sans-serif;
}

.reika-font {
    font-family: 'Reika', serif;
}

/*-------------------------------- Global ---------------------------------------*/


body {
    font-family: 'sofia-pro', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    scroll-behavior: smooth;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(246, 168, 133, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(246, 168, 133, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(246, 168, 133, 0);
    }
}

.btn-pulse-pink {
    animation: pink-pulse 2s infinite;
}

.btn-pulse-pink:hover {
    background-color: rgb(255, 231, 244);
}

@keyframes pink-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgb(255, 105, 180);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 105, 180, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0);
    }
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/*-------------------------------- Index ----------------------------------------*/

.main-logo {
    max-width:600px;
    width:100%;
    padding:1em
}

.bg-flavors {
    background: var(--bg-flavors);
}

.bg-catering {
    background: var(--bg-catering);
}

.bg-contact {
    background: var(--bg-contact);
}

.site-header .hero-logo {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 950px;
    margin: 0 auto
}

.mw-gradient {
    margin: 0;
    height: 100vh;
    background: var(--gradient-main);
}

.hero-logo {
    font-family: 'Reika', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.flavor-card {
    transition: transform 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

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

.instagram-item {
    transition: transform 0.3s ease;
}

.instagram-item:hover {
    transform: scale(1.05);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: 2px solid var(--mint);
}

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

.animated {
    opacity: 1;
    transform: translateY(0);
} 

/* Parallax Hero Icons */
#icon-heart {
    width: clamp(7rem, 15vh, 40vw);
    top: 7%;
    left: 10%;
    transform: translateZ(3px);
    animation: float 6s ease-in-out infinite;
}
#icon-sandwich {
    width: clamp(6rem, 15vh, 40vw);
    top: 10%;
    right: 10%;
    transform: translateZ(5px);
    animation: float 7s ease-in-out infinite 1s;
}
#icon-pup {
    width: clamp(5rem, 13vh, 40vh);
    bottom: 5%;
    left: 10%;
    transform: translateZ(10px);
    animation: float 5s ease-in-out infinite 0.5s;
}
#icon-rocket {
    width: clamp(5rem, 13vh, 40vh);
    bottom: 5%;
    right: 10%;
    transform: translateZ(5px);
    animation: float 3s ease-in-out infinite 1s;
}
.sending::after {
  content: none;
}
.map-location-tab {
    cursor: pointer;
}
.map-location-tab.active:hover {
    background-color: var(--blue-hover);
}   
.map-location-tab:not(.active):hover {
    background-color: oklch(85% 0.006 264.531);
}   
.map-location-tab.active::before {
    position: absolute;
    content:'';
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid var(--blue);
    z-index: 20;
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--default-transition-duration), border-top-color var(--default-transition-duration);
}
.map-location-tab.active:hover:before {
    border-top-color: var(--blue-hover) !important;
}
.map-location-tab:not(.active)::before {
    opacity: 0;
    transition: opacity var(--default-transition-duration);
}

.ig-description {
    box-sizing: border-box;
    opacity: 0;
    backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(200px);
    transition: ease-in var(--default-transition-duration);
}

.instagram-item:hover .ig-description {
    opacity: 1;
    transform: translateY(0);
}


#instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.instagram-item .video-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.2rem;
    height: 2.2rem;
    background: rgba(0,0,0,0.45);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.instagram-item .video-icon svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: white;
    opacity: 0.85;
}

@media (max-width: 767px) {
    #instagram-feed {
        grid-template-columns: 1fr !important;
        gap:2rem;
        margin: 2rem;
    }
    
    .instagram-item:hover {
        transform: scale(1);
    }
    #instagram-feed .instagram-item .ig-description {
        opacity: 1;
        transform: translateY(0);
    }
}

/*-------------------------------- Navigation ----------------------------------------*/


.timeline-item {
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover .nav-btn {
    transform: scale(1.2);
    background-color: var(--rose);
}

.timeline-item.active .nav-btn {
    transform: scale(1.3);
    background-color: var(--lavender);
    box-shadow: 0 0 0 4px rgba(182, 161, 242, 0.3);
}

.timeline-item span {
    top: 0;
    left: 45px;
    width:100px;
    margin:4px 0;
    text-shadow: var(--white-shadow);
                
    cursor: pointer;
}

.timeline-item:hover span {
    opacity: 1;
    
}

.timeline-item.active span {
    opacity: 1;      
    color: var(--lavender);
}

@media (max-width: 1400px) {
    #timeline-nav {
        left: -220px; /* Hide off-screen by default */
        top: 0;
        transform: translateY(50%);
        opacity: 1 !important;
        transition: left 0.3s ease, opacity 0.3s;
        background-color:var(--bg-base-95);
        border-radius: 0 0 1.5rem 0;
        box-shadow: 2px 0 16px 0 rgba(0,0,0,0.08);
        padding: 2rem 1.5rem 2rem 1rem;
        width: 200px;
        min-width: 180px;
        display: block !important;
        pointer-events: auto;               
    }
    #timeline-nav.timeline-open {
        left: 0;
        opacity: 1;
        z-index: 100;
    }
    #timeline-nav ul {
        display: flex;
        flex-direction: column;
    }
    #timeline-nav .timeline-item {
        position: relative;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    #timeline-nav .timeline-item span {
        position: static !important;
        opacity: 1;
        color: var(--rose);
        text-shadow: var(--white-shadow);
        font-size: 1rem;
        font-weight: 500;
        transition: none;
        margin-left: 0.5rem;
        cursor: pointer;
    }
    #timeline-nav .timeline-item.active span {
        color: var(--lavender);
    }
    #timeline-nav .timeline-item .nav-btn {
        flex-shrink: 0;
    }
    #timeline-toggle-btn {
        display: block !important;
        top: 1rem;
        left: 1rem;
        right: auto;
        bottom: auto;
        transform: none;
        border-radius: 9999px;
        padding: 0.75rem;
        width: auto;
        height: auto;
        min-width: 0;
        min-height: 0;
        box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
        writing-mode: initial;
        letter-spacing: initial;
        /* Remove vertical text styles */
        font-size: 0;
        line-height: 0;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    #timeline-toggle-btn span {
        display: block;
        width: 1.25rem;
        height: 0.2rem;
        background: var(--blue);
        margin-bottom: 0.3rem;
        border-radius: 2px;
        transition: background 0.2s;
    }
    #timeline-toggle-btn span:last-child {
        margin-bottom: 0;
    }
    /* Hide nav and show toggle button on small screens when closed */

    #timeline-nav:not(.timeline-open) {
        pointer-events: none;
        opacity: 0.7;
    }
    .mobile-mode {display:absolute}
    .full-mode {display:none}
}

/* Hide toggle button on large screens */
@media (min-width: 1401px) {
    #timeline-toggle-btn {
        display: none !important;
    }
    .mobile-mode {display:none}
    .full-mode {display:block}
    #timeline-nav.bg-secondary { background:none; }
}


/*-------------------------------- Starfield ----------------------------------------*/

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 0.3s infinite alternate;
    pointer-events: none;
    filter: drop-shadow(0 0 6px white);
}

.shooting-star::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, white, transparent);
    filter: blur(2px);
    opacity: 0.4;
    top:-18px;
    transform: rotate(-45deg);
}

@keyframes twinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/*-------------------------------- 404 Page ----------------------------------------*/
.bg-404 {
    background: var(--gradient-404);
    color: var(--text-soft-white);
}

.container-404 {      
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.text-404 {
    /*font-size: clamp(4rem, 5vw, 6rem);*/
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--rose-404);
    text-shadow:2px 2px 0 #fff,0 0 12px #b6a1f2;;
}
.animated-floating-pup {
    width: clamp(10rem, 30vw, 20rem);
    animation: float404 4s ease-in-out infinite;
    display: block;
    margin: 0 auto 2rem auto;
    filter: drop-shadow(0 6px 24px rgba(182,161,242,0.25));
}

.animated-floating-pup.blue { display:block; }
.animated-floating-pup.white { display:none; }

.dark .animated-floating-pup.blue { display:none; }
.dark .animated-floating-pup.white { display:block; }

@keyframes float404 {
    0% { transform: translateY(0);}
    50% { transform: translateY(-18px);}
    100% { transform: translateY(0);}
}

