/* Dark Theme Overrides for Floris Fleur */

body {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

h1, h2, h3, h4, h5, h6, .title, .bigtitle {
    color: #ffffff !important;
}

/* Base structural overrides */
.site-header, 
.header-main, 
.header-sticky.is-sticky .header-main {
    background-color: #1e1e1e !important;
    border-bottom-color: #333 !important;
}

.footer-widgets, 
.footer-middle, 
.site-footer {
    background-color: #0d0d0d !important;
    border-top-color: #333 !important;
}

/* Sections and main containers */
.whychooseus_1, 
.services-1, 
.gallery-1, 
.working-process-1, 
.testimonials-1, 
.grd-award-1, 
.customer-help-1, 
.gallery-fullwidth {
    background-color: #121212 !important;
    background-image: none !important;
}

/* Fix header white shape */
.header-v1 .topbar:before {
    border-top-color: #1e1e1e !important;
}

.header-content,
.header-content:before,
.header-content:after,
.site-menu,
.site-menu:before,
.site-menu:after,
.header-main .menu-row:before,
.header-main .menu-row:after {
    background-color: transparent !important;
    background: transparent !important;
}

/* Make logo visible on dark theme */
.site-logo {
    background-color: #1f3727;
    border: 1px solid #9cc212;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(156,194,18,0.2);
    display: inline-block;
}
.site-logo .site-title, .site-logo .site-description {
    display: none; /* If they were hidden, keep them hidden */
}

/* Refactor Topbar Widgets (Call & WhatsApp) */
.header-v1 .topbar .topbar-widgets .widget {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(156, 194, 18, 0.3);
    border-radius: 8px;
    padding: 8px 15px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
.header-v1 .topbar .topbar-widgets .widget:hover {
    background: rgba(156, 194, 18, 0.15);
    border-color: #9cc212;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 194, 18, 0.2);
}
.header-v1 .topbar .widget .pull-left {
    margin-right: 15px;
}
.header-v1 .topbar .widget .pull-left i {
    color: #9cc212 !important;
    font-size: 24px;
    transition: all 0.3s ease;
}
.header-v1 .topbar .widget:hover .pull-left i {
    transform: scale(1.1);
}
.header-v1 .topbar .widget .pull-right div:first-child {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9cc212 !important;
    font-weight: 600;
    margin-bottom: 2px;
}
.header-v1 .topbar .widget .pull-right div:last-child a {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
}
.header-v1 .topbar .widget .pull-right div:last-child a:hover {
    color: #9cc212 !important;
}

/* Cards and surface boxes */
.grd-icon-box, 
.content-item, 
.item-testi,
.widget,
.portfolio-item .content-item {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
}

/* Inside cards & inner wraps */
.icon-box-wrapter,
.box-text,
.box-avatar {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

.entry-content {
    background-color: rgba(30, 30, 30, 0.9) !important;
    color: #e0e0e0 !important;
}

/* Adjust text over dark backgrounds */
.sc-light .title, 
.entry-title a, 
.emtry-title p, 
.content .descreption, 
p, 
blockquote,
.header-content .widget, 
.site-description,
.site-menu .main-nav .menu > li > a,
.footer-widgets h4,
.footer-widgets p,
.footer-widgets .menu li a,
.working div,
.customer-help-1 .descreption {
    color: #e0e0e0 !important;
}

.sc-light .desc p {
    color: #bbb !important;
}

/* Main Navigation */
.site-menu .main-nav .menu > li.active > a,
.site-menu .main-nav .menu > li:hover > a {
    color: #9cc212 !important; /* Keep Theme Green */
}

/* Dropdowns */
.dropdown-menu, 
.sub-menu {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
}
.dropdown-menu > li > a, 
.sub-menu li a {
    color: #e0e0e0 !important;
}
.sub-menu li a:hover {
    color: #9cc212 !important;
    background-color: #2c2c2c !important;
}

/* Modals, Inputs & Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    background-color: #2c2c2c !important;
    color: #fff !important;
    border-color: #444 !important;
}

/* Overriding white lines */
.sc-light .desc .content .line {
    background-color: #ffffff !important;
}

/* Other Specifics */
.preloader {
    background-color: #121212 !important;
}

.gallery-1 .portfolio-item .entry-header img,
.gallery-fullwidth .portfolio-item .entry-header img {
    border: none !important;
}

/* Filter nav in gallery */
.nav-filter li a {
    color: #e0e0e0 !important;
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
}
.nav-filter li a.active, .nav-filter li a:hover {
    color: #ffffff !important;
    background-color: #9cc212 !important;
}

/* Footer formatting */
.footer-widgets .widget,
.footer-widgets .widget-title {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
}

.footer-widgets .site-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 1. Footer Links lines */
.footer-widgets .widget-title:before,
.footer-widgets .widget-title:after {
    display: none !important;
}

/* 2. About Us: Our Products & Services */
.icon-box-list {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.icon-box-list .icon-theme-light,
.icon-box-list .icon-box-list-items {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    border-bottom: 1px solid #333 !important;
}

.icon-box-list-items .icon-box-wrapter {
    background-color: transparent !important;
}

/* 3. Testimonials */
.grd-icon-box-9 .icon-top,
.grd-icon-box-9 .icon-top span {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}
.grd-icon-box-9 {
    background-color: transparent !important; /* Let the wrapter hold the color */
}

/* 4. Contact Us Page */
.contact-pagebox {
    background: #1e1e1e !important;
    border-color: #333 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.grd-contact-box {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
.grd-contact-box ul li .name,
.grd-contact-box ul li .seasons,
.grd-contact-box .title {
    color: #ffffff !important;
}

/* ============================================================
   HOME PAGE — CARD SLIDESHOW STYLES
   ============================================================ */

.card-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    border-radius: 5px;
}
.card-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}
.card-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}
.card-slideshow img.active {
    opacity: 1;
}

/* Feature cards (Bouquets / Baskets / Box Flowers / Welcome) */
.grd-icon-box-1, .grd-icon-box-3 {
    position: relative !important;
    background: transparent !important;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
}
.grd-icon-box-3 {
    min-height: 400px !important;
}

/* Welcome card background image */
.welcome-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/shop_image.png') center center no-repeat;
    background-size: cover;
    z-index: 1;
}
.welcome-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}

/* Inner content wrapper for feature cards */
.grd-icon-box-1 .icon-box-wrapter,
.grd-icon-box-3 .icon-box-wrapter {
    position: relative !important;
    z-index: 10 !important;
    padding: 30px 20px !important;
    background: transparent !important;
}
.box_btn {
    position: relative !important;
    z-index: 11 !important;
}

/* Text colour & shadow within feature cards */
.grd-icon-box-1 .emtry-title p,
.grd-icon-box-1 .content .descreption span,
.grd-icon-box-3 .emtry-title .title,
.grd-icon-box-3 .content .descreption p {
    color: #fff !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,1), 0 0 5px rgba(0,0,0,0.5);
    font-size: 14px;
}
.grd-icon-box-1 .BOUQUETS,
.grd-icon-box-1 .title,
.grd-icon-box-3 .title {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 20px;
    margin-bottom: 15px !important;
    text-transform: uppercase;
}

/* Hide original icon pseudo-elements & borders */
.grd-icon-box-1 .icon .icon-content .svg-icon:before,
.grd-icon-box-3 .icon .icon-content .svg-icon:before {
    display: none !important;
}
.grd-icon-box-1:before, .grd-icon-box-1:after,
.grd-icon-box-3:before, .grd-icon-box-3:after {
    display: none !important;
}
.grd-icon-box-1 .icon, .grd-icon-box-3 .icon {
    margin: 0 0 15px !important;
}
.grd-icon-box-1 .icon .icon-content .svg-icon i,
.grd-icon-box-3 .icon .icon-content .svg-icon i {
    font-size: 32px !important;
}

/* ============================================================
   HOME PAGE — MOBILE-ONLY OVERRIDES
   ============================================================ */

@media (max-width: 767px) {

    /* Hide hero slider */
    .rev_slider_wrapper {
        display: none !important;
    }

    /* Welcome card title — bigger & bolder */
    .grd-icon-box-3 .emtry-title .title,
    .grd-icon-box-3 .title {
        font-size: 32px !important;
        font-weight: 900 !important;
        letter-spacing: 2px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }

    /* Push content lower so shop background is visible */
    .grd-icon-box-3 .icon-box-wrapter {
        padding-top: 60% !important;
        padding-bottom: 30px !important;
    }

    /* Hide Our Products gallery section */
    .gallery-1 {
        display: none !important;
    }

    /* View More collapse */
    .mobile-collapsible {
        display: none;
    }
    .mobile-view-more-btn {
        display: inline-block;
        margin-top: 8px;
        color: #9cc212;
        font-weight: 600;
        cursor: pointer;
        border: 1px solid #9cc212;
        border-radius: 20px;
        padding: 4px 14px;
        font-size: 13px;
        background: transparent;
    }
}

@media (min-width: 768px) {
    .mobile-view-more-btn { display: none !important; }
    .mobile-collapsible   { display: inline !important; }
}

/* ============================================================
   HOME PAGE — CLASSY SCROLL ANIMATIONS
   ============================================================ */

@keyframes ff-fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ff-fadeLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes ff-fadeRight {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes ff-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ff-scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.ff-animate {
    opacity: 0;
    will-change: opacity, transform;
}
.ff-animate.ff-visible {
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
    animation-duration: 0.8s;
}

.ff-animate.ff-fade-up.ff-visible    { animation-name: ff-fadeUp; }
.ff-animate.ff-fade-left.ff-visible  { animation-name: ff-fadeLeft; }
.ff-animate.ff-fade-right.ff-visible { animation-name: ff-fadeRight; }
.ff-animate.ff-fade-in.ff-visible    { animation-name: ff-fadeIn; }
.ff-animate.ff-scale-in.ff-visible   { animation-name: ff-scaleIn; }

.ff-delay-1 { animation-delay: 0.1s  !important; }
.ff-delay-2 { animation-delay: 0.2s  !important; }
.ff-delay-3 { animation-delay: 0.35s !important; }
.ff-delay-4 { animation-delay: 0.5s  !important; }
.ff-delay-5 { animation-delay: 0.65s !important; }

/* ============================================================
   MOBILE MENU & HEADER FIXES
   ============================================================ */

/* Make mobile menu toggle dots/lines visible (Theme Green) */
.navbar-toggle span.navbar-icon .navbars-line,
.navbar-toggle span.navbar-icon .navbars-line:before,
.navbar-toggle span.navbar-icon .navbars-line:after,
#mf-navbar-toggle .navbars-line,
#mf-navbar-toggle .navbars-line:before,
#mf-navbar-toggle .navbars-line:after {
    background-color: #9cc212 !important;
}

/* Ensure mobile header is dark but distinct */
.header-v1 .header-main {
    background-color: #1a1a1a !important;
}

/* Off-canvas mobile menu styling */
.primary-mobile-nav {
    background-color: #1e1e1e !important;
}
.primary-mobile-nav .mobile-nav-content .menu li a {
    color: #ffffff !important;
    border-bottom: 1px solid #333 !important;
}
.primary-mobile-nav .mobile-nav-content .menu li.current-menu-item > a {
    color: #9cc212 !important;
}
.primary-mobile-nav .close-canvas-mobile-panel {
    color: #ffffff !important;
}
