/*
 Theme Name:     Hestia Child - GoToMeals Staging
 Description:    Child theme for Hestia on GoToMeals staging
 Author:         You
 Template:       hestia
 Version:        1.0.1
*/

 /* No @import here anymore */

/* === YOUR CUSTOM CSS BELOW === */

/* Full-width Smart Slider in header */
.gotomeals-header-slider {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -1px;        /* removes tiny gap under navbar */
    margin-bottom: 0;
}

/* Optional: make navbar transparent and overlap the slider */
header .navbar {
    background: transparent !important;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}
.main.header {
    padding-top: 0 !important;
}

/* Hide Hestia page titles globally */
.hestia-title.title-in-content {
    display: none !important;
}
.section.pagebuilder-section {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

/* ================== GOOGLE FONT JOST – already loaded via functions.php ================== */

/* ================== MAIN MENU – WHITE TEXT + JOST ================== */
.navbar .navbar-nav > li > a,
.navbar .navbar-nav .dropdown-menu > li > a,
.ec_menu_mini_cart a {
    color: #ffffff !important;
    font-family: 'Jost', sans-serif !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav > li.current-menu-item > a,
.ec_menu_mini_cart a:hover a {
    color: #ffffff !important;
    opacity: 0.85;
}
.navbar .caret svg {
    fill: #ffffff !important;
}

/* Dropdown menus – dark background */
.navbar .dropdown-menu {
    background-color: rgba(0,0,0,0.95) !important;
    border: none !important;
}

/* Mobile menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #111111 !important;
    }
    .navbar .navbar-nav .dropdown-menu {
        background-color: rgba(0,0,0,0.85) !important;
    }
}

/* ================== SHRINK + ROUNDED CORNERS ON SCROLL (THIS IS THE WORKING ONE) ================== */
/* 1. Large & transparent ONLY at the very top of homepage */
.home .navbar:not(.shrunk) {
    background: transparent !important;
    padding: 5px 0 !important;
}
.home .navbar:not(.shrunk) .navbar-brand img {
    max-height:60px !important;
}

/* 2. Shrunk state — dark + rounded + smaller padding/logo */
.home .navbar.shrunk,
:not(.home) .navbar {
    background: rgba(0,0,0,0.93) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0 !important;
    border-bottom-left-radius: 28px !important;
    border-bottom-right-radius: 28px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.home .navbar.shrunk .navbar-brand img,
:not(.home) .navbar-brand img {
    max-height: 56px !important;
}

/* Smooth transitions for everything */
.navbar,
.navbar-brand img {
    transition: all 0.45s cubic-bezier(0.4,0,0.2,1) !important;
}

/* Optional – tiny hero overlay rounding you already had */
.hero-overlay-rounded,
.n-uc-1c68b047883d6-inner {
    border-radius: 20px !important;
    overflow: hidden !important;
}

/* how it works grid – huge 320px gap, tight 20px top/bottom */
.how-it-works-circles-desktop-spacing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 320px;
    margin: 20px 0;
}

/* Desktop: circles together in one centered row */
.magic-circles {
    display: flex;
    justify-content: center;
    gap: 310px;
    margin: 20px auto 70px;
    pointer-events: none;
    max-width: 1000px;
}
.magic-circle {
    width: 68px;
    height: 68px;
    background: #00ADEF;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(0,173,239,0.35);
    flex-shrink: 0;
}

/* Mobile & Tablet: hide the shared row and show one circle per column instead */
@media (max-width: 991px) {
    .magic-circles { display: none !important; }
    .circle-in-column { display: flex !important; }
}

/* Desktop: hide the individual circles inside columns */
.circle-in-column { display: none; }

.how-it-works-section .fl-col-content {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}
.how-it-works-section .how-it-works-image {
    margin-top: auto;
}
.how-it-works-section .fl-html {
    order: -1;
    margin-bottom: 20px;
}

/* Make navbar transparent on ALL pages at the top */
.navbar:not(.shrunk) {
    background: transparent !important;
    padding: 5px 0 !important;
}
.navbar:not(.shrunk) .navbar-brand img {
    max-height: 60px !important;
}

/* Keep the shrunk/scroll state the same everywhere */
.navbar.shrunk {
    background: rgba(0,0,0,0.93) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0 !important;
    border-bottom-left-radius: 28px !important;
    border-bottom-right-radius: 28px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.navbar.shrunk .navbar-brand img {
    max-height: 56px !important;
}

/* Force header gradient everywhere */
.header-filter-gradient {
    background: linear-gradient(45deg, #005f82 0%, #628795 100%) !important;
    opacity: 1 !important;
}

/* -----------------------------------------------------
   CATEGORY HEADINGS — larger + bold
----------------------------------------------------- */
.mp-category-title {
    font-size: 60px !important;
    font-weight: 800 !important;
    margin: 50px 0 25px !important;
    text-align: center !important;
    color: #003a4a !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* -----------------------------------------------------
   GRID LAYOUT
----------------------------------------------------- */
/* Grid layout – 2 columns on desktop/tablet, 1 column on mobile */
.mp-category-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* Default: 2 columns */
    gap: 35px;
    margin-top: 60px !important;             /* Top margin on all sizes by default */
}

/* Tablet and larger mobile: keep 2 columns */
@media (min-width: 601px) and (max-width: 1024px) {
    .mp-category-items {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 30px !important;          /* Optional: slightly more space on tablet if needed */
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .mp-category-items {
        grid-template-columns: 1fr;
        margin-top: 30px !important;          /* Slightly less on small screens to save space */
    }
}
/* -----------------------------------------------------
   MENU ITEM CARD STYLING
----------------------------------------------------- */
.mp-menu-item {
    background: #ffffff;
    border-radius: 24px;
    padding: 10px;
    margin-bottom: 30px;
    box-shadow: 0 12px 36px rgba(0,95,130,0.14);
    border: 1px solid #90a3bf;
    transition: all 0.35s ease;
    text-align: center;
    overflow: hidden;
}
.mp-menu-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,95,130,0.2);
}

/* Title */
div.mp-menu-categories div.mp-category-items div.mp-menu-item h3 {
    font-size: 26px;
    font-weight: 700;
    color: #000;
}

/* Featured image */
.mp-menu-image img {
    border-radius: 18px;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* -----------------------------------------------------
   DESCRIPTION TEXT — BLACK
----------------------------------------------------- */
.mp-menu-description {
    color: #000 !important;
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 20px;
}

/* -----------------------------------------------------
   NUTRITION BUBBLES
----------------------------------------------------- */
.menu-item-nutrition {
    list-style: none;
    padding: 0;
    margin: 15px 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.menu-item-nutrition li {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    color: #fff;
    border-radius: 50px;
    background: #007cba;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    transition: 0.2s ease;
}
.menu-item-nutrition li:nth-child(1n) { background: #454343; }
.menu-item-nutrition li:nth-child(2n) { background: #454343; }
.menu-item-nutrition li:nth-child(3n) { background: #454343; }
.menu-item-nutrition li:nth-child(4n) { background: #454343; }
.menu-item-nutrition li:nth-child(5n) { background: #454343; }
.menu-item-nutrition li:nth-child(6n) { background: #454343; }

/* -----------------------------------------------------
   WW POINTS — purple bubble
----------------------------------------------------- */
.ww-points {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #795d91;
    color: #fff;
    border-radius: 40px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(122,0,223,0.25);
}

/* Force description text to black */
.mp-menu-item .mp-menu-description,
.mp-menu-item .mp-menu-description p {
    color: #000 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    text-align: center;
    margin-bottom: 15px;
}

/* Force all menu images to consistent size */
.mp-menu-item .mp-menu-image img,
.mp-menu-item .mp-menu-image a img {
    display: block !important;
    margin: 0 auto 10px !important;
    width: 400px !important;
    height: 300px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

/* ===== MENU CATEGORY HEADINGS WITH BACKGROUND IMAGE – FIXED RIGHT ALIGN ON DESKTOP ===== */
.mp-category-title-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    margin: 60px 0;
    border-radius: 20px;
    background: #D9DBDE;
    overflow: hidden;
    background-size: 62% auto;
    background-position: left -82px center;
    background-repeat: no-repeat;
}

/* Mobile: full background image + dark overlay */
@media (max-width: 767px) {
    .mp-category-title-wrapper {
        height: auto !important;
        min-height: 220px;
        padding: 40px 20px !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    .mp-category-title-wrapper::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1;
        pointer-events: none;
    }
}

/* Content column base */
.mp-category-title-wrapper .content-col {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px 40px 40px;
    z-index: 2;
}

/* Desktop: Right-aligned text */
@media (min-width: 768px) {
    .mp-category-title-wrapper .content-col {
        align-items: flex-end !important;
        text-align: right !important;
    }
}

/* Mobile: Centered text */
@media (max-width: 767px) {
    .mp-category-title-wrapper .content-col {
        position: static;
        width: 100%;
        align-items: center !important;
        text-align: center !important;
        padding: 60px;
        z-index: 2;
    }
}

/* Title styles */
.mp-category-title {
    font-family: 'Jost', ui-sans-serif, system-ui, sans-serif !important;
    font-size: 3.8rem !important;
    font-weight: 800 !important;
    color: #000000 !important;           /* Black on desktop */
    text-transform: uppercase !important;
    line-height: 1.1 !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: 1px !important;
}

/* Description styles */
.mp-category-description {
    font-family: 'Jost', ui-sans-serif, system-ui, sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 400 !important;
    color: #666 !important;               /* Grey on desktop */
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Mobile overrides: white text + smaller sizes */
@media (max-width: 767px) {
    .mp-category-title {
        font-size: 2.8rem !important;
        line-height: 1.2 !important;
        color: #ffffff !important;
        text-shadow: 0 3px 10px rgba(0,0,0,0.55);
    }
    .mp-category-description {
        font-size: 1.1rem !important;
        color: #ffffff !important;
        text-shadow: 0 3px 10px rgba(0,0,0,0.55);
    }
}

/* hero image + site title */
h2.fl-module.fl-module-heading.fl-heading.fl-heading-text.fl-node-47xp1znm5q3l,
h2.fl-module.fl-module-heading.fl-heading.fl-heading-text.fl-node-fr6q9pl5ih7v {
    margin-top: 150px !important;
    margin-bottom: 20px !important;
    margin-left: 20px !important;
}
.fl-col-content.fl-node-content {
    border-radius: 25px;
    overflow: hidden;
}
.dashed-separator {
    border-bottom: 2px dashed #628795;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Target all product images */
.ec_product_type1 img {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block;
}
.ec_product_type1 .ec_image_container_none,
.ec_product_type1 .ec_product_image_display_type,
.ec_product_type1 .ec_dynamic_image_height {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

/* STRETCH ROW + OVAL CURVE */
.fl-node-ng3fyvmqdp12 {
    margin-left: -15px !important;
    margin-right: -15px !important;
    width: calc(100% + 30px) !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-top-left-radius: 500px 60px;
    border-top-right-radius: 500px 50px;
    overflow: hidden;
}
.fl-node-ng3fyvmqdp12 .fl-row-content-wrap {
    max-width: 100% !important;
    width: 100% !important;
}

/* Carousel frost effect */
.current-menu-carousel-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
}
.current-menu-carousel-wrapper h2 {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.current-menu-carousel-wrapper .menu-card h3 {
    color: #0f172a !important;
}
.current-menu-carousel-wrapper .carousel-prev,
.current-menu-carousel-wrapper .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8em;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.current-menu-carousel-wrapper .carousel-prev { left: 10px; }
.current-menu-carousel-wrapper .carousel-next { right: 10px; }
.current-menu-carousel-wrapper .carousel-prev:hover,
.current-menu-carousel-wrapper .carousel-next:hover {
    background: rgba(255, 255, 255, 0.6) !important;
}
.current-menu-title {
    color: #ffffff !important;
}

/* Footer layout */
.custom-footer-left,
.custom-footer-right {
    margin: 5px 0;
}

/* Store Card */
.store-card {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    font-family: 'Jost', sans-serif;
    background: #ffffff;
}
.store-image {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: stretch;
}
.store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.store-info-container {
    flex: 2 1 400px;
    display: flex;
    flex-direction: column;
}
.store-info {
    background: #ffffff;
    padding: 30px 40px;
}
.store-info h2 {
    font-weight: 700;
    color: #3c4858;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Jost', sans-serif;
}
.store-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #3c4858;
    font-family: 'Jost', sans-serif;
}
.store-detail a {
    color: #3c4858;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
}
.store-detail .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #3c4858;
    width: 30px;
}
.store-hours {
    background: #d7e2eb;
    padding: 30px 40px;
    font-family: 'Jost', sans-serif;
    border-radius: 12px;
}
.store-hours h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #3c4858;
}
.hours {
    display: grid;
    gap: 10px;
}
.hour-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 6px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    text-transform: uppercase;
    color: #3c4858;
}
@media (max-width: 768px) {
    .store-card {
        flex-direction: column !important;
    }
    .store-image {
        height: auto;
        margin-bottom: 20px;
    }
    .store-image img {
        height: auto;
    }
}

/* ================== NAVBAR: ALWAYS DARK BLURRED (NO PURE TRANSPARENT ON INTERNAL) ================== */
.navbar {
    background: rgba(0,0,0,0.93) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0 !important;
    border-bottom-left-radius: 28px !important;
    border-bottom-right-radius: 28px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.navbar .navbar-brand img {
    max-height: 56px !important;
}
.home .navbar-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 5px 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none !important;
}
.home .navbar-transparent .navbar-brand img {
    max-height: 60px !important;
}
.navbar,
.navbar-brand img {
    transition: all 0.45s cubic-bezier(0.4,0,0.2,1) !important;
}
.grecaptcha-badge {
    visibility: hidden !important;
}
@media (max-width: 767px) {
    body {
        padding-top: 100px;
    }
    .navbar {
        background: rgba(0,0,0,0.55) !important;
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
    }
}
