/*
Theme Name: TasteeyoWP
Description: A beautiful WordPress theme for Tastee-Yo Yogurt Icicles featuring customizable hero sections, product galleries, and SiteOrigin Page Builder compatibility.
Version: 1.0.0
Author: Your Name
Text Domain: tasteeyowp

Custom CSS for Tastee-Yo Website
Using a custom color inspired from the packaging's coral/pink.
*/

:root {
    --tastee-yo-coral: #E8657B; /* Estimated coral/pink from the image */
    --tastee-yo-light: #FCE4EC; /* Light pink accent */
    --text-color: #424242;
}

/* Custom Background Color Utility Class */
.tastee-yo-bg {
    background-color: var(--tastee-yo-coral) !important;
}

/* Custom Text Color Utility Class */
.tastee-yo-text {
    color: var(--tastee-yo-coral) !important;
}

/* --- Navigation Bar Customization --- */
.custom-shadow {
    /* White navbar with a light coral/pink shadow */
    box-shadow: 0 2px 4px -2px var(--tastee-yo-coral); 
}

/* Navigation menu button styles */
#nav-mobile li a {
    background: var(--tastee-yo-coral) !important;
    color: white !important;
    margin: 0 4px;
    padding: 8px 16px !important;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    line-height: 1.5;
    height: auto;
    display: inline-flex;
    align-items: center;
}

#nav-mobile li a:hover {
    background: #D6556F !important;
    transform: translateY(-1px);
}

/* Mobile sidenav button styles */
.sidenav {
    background-color: white;
    padding-top: 80px;
    top: 0;
}

#nav-mobile-menu li {
    margin: 12px 20px;
    list-style: none;
}

#nav-mobile-menu li a {
    background: var(--tastee-yo-coral) !important;
    color: white !important;
    margin: 0;
    padding: 16px 16px !important;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(232, 101, 123, 0.2);
    transition: all 0.3s ease;
    height: auto !important;
}

#nav-mobile-menu li a:hover {
    background: #D6556F !important;
    box-shadow: 0 4px 12px rgba(232, 101, 123, 0.3);
    transform: translateY(-2px);
}

/* Navigation bar height control */
Nav {
    height: 56px;
    line-height: 56px;
}

/* Navigation wrapper for proper alignment */
.nav-wrapper {
    height: 56px;
}

/* Navigation UL alignment */
#nav-mobile {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

#nav-mobile li {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Ensure fixed navbar stays on top of content */
.navbar-fixed {
    z-index: 999;
}

.logo-container {
    height: 64px; /* Default Materialize desktop navbar height */
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.logo-img {
    height: 100%; /* Make the logo take up the available height */
    max-width: 120px; /* Reduced max-width for desktop */
    object-fit: contain;
}

/* --- Typography Enhancements --- */
body {
    font-family: 'Poppins', sans-serif, Roboto, Arial, sans-serif;
    color: var(--text-color);
}

#logo-font {
    font-weight: 600;
}

#headline-font {
    font-weight: 700;
    font-size: 4rem; /* Larger on desktop */
}

/* Section Padding */
.section {
    padding: 60px 0;
}

/* --- Hero Section specific styles --- */
/* White hero background */
.hero-section {
    margin-top: 0; 
    min-height: 100vh; 
    display: flex;
    align-items: center; 
    padding: 80px 0 60px 0; 
    background: #ffffff; 
    position: relative;
    overflow: hidden;
}


.hero-row {
    align-items: center;
    min-height: 70vh;
}

/* Ensure normal column order on desktop/tablet */
@media screen and (min-width: 601px) {
    .order-1-mobile,
    .order-2-mobile {
        order: 0;
    }
}


.hero-text-area {
    position: relative;
    z-index: 2;
    padding-right: 30px;
}

.hero-animation-area {
    position: relative;
    z-index: 2;
    padding-left: 30px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Hero Text Styles */
.trusted-badge {
    background: var(--tastee-yo-coral);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
    margin-bottom: 20px !important;
    color: #333 !important;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.4rem !important;
    margin-bottom: 30px !important;
    color: #666 !important;
    font-weight: 400;
}

/* Hero Statistics */
.hero-stats {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin: 0 0 5px 0 !important;
    color: var(--tastee-yo-coral) !important;
}

.stat-label {
    font-size: 0.9rem;
    margin: 0 !important;
    color: #666 !important;
    font-weight: 400;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid var(--tastee-yo-coral) !important;
    color: var(--tastee-yo-coral) !important;
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--tastee-yo-coral) !important;
    color: white !important;
}

/* Hero Rating */
.hero-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.rating-avatars {
    display: flex;
    margin-right: 10px;
}

.avatar-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ddd;
    margin-left: -8px;
    background-size: cover;
    background-position: center;
}

.avatar-1 { background: linear-gradient(45deg, #FF6B9D, #C44569); }
.avatar-2 { background: linear-gradient(45deg, #4ECDC4, #44A08D); }
.avatar-3 { background: linear-gradient(45deg, #45B7D1, #96CEB4); }

.rating-text {
    line-height: 1.3;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 3px;
}

.stars span {
    margin-left: 5px;
    font-weight: 600;
    color: #333;
}

.rating-text span {
    color: #666;
}

/* Floating Animation Container - optimized for all screen sizes */
.floating-card-container {
    position: relative;
    height: 100%;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Floating Badges - positioned relative to bouncing card */
.floating-badges {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    animation: floatUpDown 3s ease-in-out infinite;
    pointer-events: auto;
    white-space: nowrap;
}

.made-fresh {
    top: 8%;
    right: 8%;
    animation-delay: -1s;
    z-index: 10;
}

/* Main Bouncing Card - 3x larger */
.bouncing-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 84px;
    border-radius: 60px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15), 0 0 40px rgba(232, 101, 123, 0.3);
    backdrop-filter: blur(10px);
    animation: bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

/* Yogurt Cup Illustration - 3x larger */
.yogurt-illustration {
    position: relative;
    width: 360px;
    height: 450px;
    margin: 0 auto;
}

.yogurt-cup {
    position: relative;
    width: 100%;
    height: 100%;
}

.cup-body {
    width: 240px;
    height: 300px;
    background: linear-gradient(180deg, #F8E8EC 0%, #F0D0D8 100%);
    border-radius: 0 0 45px 45px;
    position: absolute;
    left: 50%;
    top: 75px;
    transform: translateX(-50%);
    box-shadow: inset 0 -30px 60px rgba(0, 0, 0, 0.1);
}

.cup-lid {
    width: 270px;
    height: 60px;
    background: #FFF;
    border-radius: 135px;
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    border: 9px solid var(--tastee-yo-coral);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.cup-label {
    position: absolute;
    left: 50%;
    top: 180px;
    transform: translateX(-50%);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cup-logo {
    height: 40px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

/* Sparkle Effects */
.delivery-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.sparkle {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #FFD700;
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 30%;
    right: 15%;
    animation-delay: -0.5s;
}

.sparkle-3 {
    bottom: 25%;
    left: 10%;
    animation-delay: -1s;
}

.sparkle-4 {
    bottom: 45%;
    right: 25%;
    animation-delay: -1.5s;
}

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-25px);
    }
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.btn-large {
    margin-top: 0;
}

/* --- Product Section Styles --- */
/* Placeholder image for product cards */
.product-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.product-label {
    padding: 15px;
    background: rgba(0,0,0,0.1);
    border-radius: 5px;
}

.card.medium {
    height: 400px; /* Standardize card height for visual balance */
}

/* --- Gallery Styles --- */
.tab-gallery .indicator {
    background-color: var(--tastee-yo-coral); /* Match the theme color */
}

.tab-gallery .active {
    border-bottom: 2px solid var(--tastee-yo-coral) !important;
}

/* Masonry Grid CSS */
.masonry-grid {
    /* Responsive column count: 3 on large, 2 on tablet, 1 on mobile */
    column-count: 3;
    column-gap: 1em;
    padding-top: 15px;
}

.masonry-item {
    display: inline-block; /* Important for masonry to work */
    margin-bottom: 1em;
    width: 100%;
    -webkit-column-break-inside: avoid; /* Prevent images from breaking across columns */
    page-break-inside: avoid;
    break-inside: avoid-column;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.masonry-item:hover {
    transform: scale(1.03);
}

.masonry-item img {
    border-radius: 4px;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16);
}

/* --- Footer link styling for better readability --- */
.page-footer a {
    display: flex;
    align-items: center;
}

.page-footer i.material-icons {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* --- Back to Top FAB Styling --- */
#fab-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    opacity: 0; /* Hidden by default (CSS handles initial state) */
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}
/* Show/Hide classes controlled by JS */
#fab-top.show {
    opacity: 1;
    transform: translateY(0);
}
#fab-top.hide {
    opacity: 0;
    transform: translateY(100%);
    /* Prevent interaction while hidden */
    pointer-events: none; 
}

/* --- WordPress specific styles --- */
.wp-block-image {
    margin: 0 0 1em 0;
}

.alignwide {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* --- Adjustments for Mobile Responsiveness --- */
@media screen and (max-width: 992px) {
    /* Tablet and below */
    .hero-section {
        margin-top: 0; /* Remove gap on tablet too */
        min-height: 100vh;
        padding: 70px 0 60px 0;
    }
    
    .hero-text-area {
        padding-right: 15px;
        margin-bottom: 40px;
    }
    
    .hero-animation-area {
        padding-left: 15px;
        min-height: 380px;
    }
    
    /* Tablet navigation button adjustments */
    #nav-mobile li a {
        margin: 0 3px;
        padding: 6px 12px !important;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-stats {
        gap: 20px;
        margin: 30px 0;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .floating-card-container {
        min-height: 350px;
        max-height: 500px;
        padding: 15px;
    }
    
    .bouncing-card {
        padding: 42px;
    }
    
    .yogurt-illustration {
        width: 270px;
        height: 338px;
    }
    
    .cup-body {
        width: 180px;
        height: 225px;
        top: 56px;
    }
    
    .cup-lid {
        width: 203px;
        height: 45px;
        top: 45px;
        border: 7px solid var(--tastee-yo-coral);
    }
    
    .cup-label {
        top: 135px;
        padding: 6px 12px;
    }
    
    .cup-logo {
        height: 30px;
        max-width: 60px;
    }
    
    .product-row .col.m6 {
        margin-bottom: 20px;
    }
    
    .masonry-grid {
        column-count: 2; /* 2 columns on tablet */
    }
}

/* Large desktop screens - slightly bigger buttons */
@media screen and (min-width: 1200px) {
    #nav-mobile li a {
        margin: 0 5px;
        padding: 10px 18px !important;
        font-size: 0.95rem;
    }
}

/* Small desktop screens - extra compact */
@media screen and (max-width: 1199px) and (min-width: 993px) {
    #nav-mobile li a {
        margin: 0 3px;
        padding: 6px 10px !important;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 600px) {
    /* Mobile */
    .hero-section {
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-row {
        display: flex;
        flex-direction: column;
    }
    
    .hero-text-area {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-animation-area {
        padding-left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 320px;
        width: 100%;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 15px;
        width: 100%;
        text-align: center;
    }
    
    .stat-item {
        text-align: center;
        flex: 1;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-large {
        width: 200px;
        margin-bottom: 10px;
    }
    
    .hero-rating {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }
    
    .floating-card-container {
        min-height: 300px;
        max-height: 400px;
        padding: 10px;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0 auto;
    }
    
    /* Mobile column ordering */
    .order-1-mobile {
        order: 1;
    }
    
    .order-2-mobile {
        order: 2;
    }
    
    .made-fresh {
        font-size: 0.85rem;
        padding: 8px 16px;
        gap: 6px;
    }
    
    /* Ensure all mobile content is centered */
    .trusted-badge {
        margin: 0 auto 20px auto;
        display: block;
        text-align: center;
        width: fit-content;
        background: var(--tastee-yo-coral) !important;
        color: white !important;
    }
    
    .hero-title,
    .hero-subtitle {
        text-align: center !important;
        width: 100%;
        color: #333 !important;
    }
    
    .hero-subtitle {
        color: #666 !important;
    }
    
    .yogurt-illustration {
        width: 180px;
        height: 225px;
    }
    
    .cup-body {
        width: 120px;
        height: 150px;
        top: 38px;
    }
    
    .cup-lid {
        width: 135px;
        height: 30px;
        top: 30px;
        border: 5px solid var(--tastee-yo-coral);
    }
    
    .cup-label {
        top: 90px;
        padding: 4px 8px;
    }
    
    .cup-logo {
        height: 20px;
        max-width: 40px;
    }
    
    #headline-font {
        font-size: 3rem;
    }
    
    .logo-container {
        height: 56px; /* Default mobile navbar height */
    }
    
    .logo-img {
        max-width: 100px; /* Reduced max-width for mobile */
    }

    .masonry-grid {
        column-count: 1; /* 1 column on mobile */
    }
}
