/*
Theme Name: GeneratePress Child - BinFresh
Theme URI: https://generatepress.com
Description: Custom child theme for BinFresh Built on GeneratePress.
Author: Advanced Design Team
Author URI: https://www.binfresh.co.uk
Template: generatepress
Version: 1.0.0
*/

/* Global Design System */
/* The Outfit font is now SELF-HOSTED and enqueued in functions.php as 'binfresh-fonts'
   (assets/fonts/outfit/outfit.css). The render-blocking Google Fonts @import that used
   to sit here was removed so no third-party origin sits in the critical render path. */

:root {
    --brand-primary: #0f172a; /* Deep premium navy/black */
    --brand-secondary: #24b335; /* BinFresh logo grass-green */
    --brand-accent: #f59e0b; /* Amber CTA */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}


/* ============================================================
   SITE HEADER  (modern, GeneratePress-native)
   ============================================================ */

/* Hide the SEO site-title text; the logo image is the brand mark. */
.site-branding { display: none !important; }

.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: box-shadow 0.3s ease, transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}
/* Auto-hide on scroll: slide the whole header up when the reader scrolls down, snap it
   back when they scroll up (.header-hidden is toggled by the scroll script in functions.php).
   -105% tucks the 5px green accent fully out of view; shadow off so nothing bleeds at the
   top edge while hidden. */
.header-hidden .site-header {
    transform: translateY(-105%);
    box-shadow: none !important;
}
/* Readers who prefer reduced motion keep the classic pinned header (no slide). */
@media (prefers-reduced-motion: reduce) {
    .header-hidden .site-header { transform: none; }
}
/* Soft shadow once the page is scrolled (toggled by a tiny global script). */
.is-scrolled .site-header {
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
    /* Keep the brand green line visible once the header sticks — the 5px accent that
       normally sits under the top bar (.bf-top-bar) scrolls away with it, so re-apply it
       here so the stuck header keeps the green underline. */
    border-bottom: 5px solid var(--brand-secondary);
}

.site-header .site-logo img,
.site-header .header-image {
    width: 206px !important;
    max-width: 206px !important;
    max-height: 74px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.25s ease;
}
.site-header .site-logo:hover img { transform: scale(1.03); }

/* Clean toggle button (used on mobile). */
.site-header .menu-toggle {
    background: transparent !important;
    color: var(--brand-primary) !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---- Desktop (>=1280px): full horizontal nav only where all 8 links + the CTA
   comfortably fit on one row. Below this the header switches to the hamburger. ---- */
@media (min-width: 1280px) {
    .site-header .inside-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        max-width: 1340px !important;
        margin: 0 auto !important;
        width: 100%;
        padding: 10px 24px !important;
        background: transparent !important;
    }
    .site-branding-container {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0;
        background: transparent !important;
    }
    .main-navigation {
        width: auto !important;
        margin-left: auto !important;
        display: flex !important;
        justify-content: flex-end !important;
        background: transparent !important;
    }
    .main-navigation .inside-navigation { display: flex !important; justify-content: flex-end !important; }
    .main-navigation .main-nav > ul.menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;   /* one row at desktop widths; wraps (never
                                        h-scrolls) if the viewport gets too narrow */
        justify-content: flex-end !important;
        gap: 2px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        background: transparent !important;
    }
    .main-navigation .main-nav > ul.menu > li {
        display: block !important;
        margin: 0 !important;
        float: none !important;
        position: relative !important;
    }

    /* Nav links — modern sentence-case with a subtle pill hover.
       line-height:1 kills GeneratePress's tall inherited nav line-height, which was
       stretching every link (and the Book Now button) to ~78px and throwing the row
       out of alignment. Now every item is the same, compact height and sits centred. */
    .main-navigation a {
        position: relative;
        display: flex !important;
        align-items: center;
        gap: 5px;
        line-height: 1 !important;
        font-weight: 600 !important;
        font-size: 0.9rem;
        letter-spacing: 0.2px;
        text-transform: none;
        color: var(--brand-primary) !important;
        text-decoration: none;
        white-space: nowrap;
        padding: 11px 11px !important;
        border-radius: 9px;
        background: transparent !important;
        transition: color 0.2s ease, background 0.2s ease;
    }
    .main-navigation .menu > li:not(.bf-header-cta):hover > a {
        color: var(--brand-secondary) !important;
        background: rgba(36, 179, 53, 0.07) !important;
    }

    /* Premium dropdown submenus (Locations). */
    .main-navigation .sub-menu {
        background: #ffffff !important;
        border-radius: 14px !important;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12) !important;
        padding: 8px !important;
        border: 1px solid rgba(15, 23, 42, 0.05) !important;
        min-width: 210px !important;
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
    }
    .main-navigation .menu > li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    /* Invisible hover-bridge spanning the 6px gap between "Locations" and its card:
       without it, moving the cursor down onto an area crosses a dead zone that drops
       the :hover and snaps the dropdown shut before you can reach it. */
    .main-navigation .menu > li.menu-item-has-children > .sub-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -10px;
        height: 14px;
        background: transparent;
    }
    .main-navigation .sub-menu li { display: block !important; width: 100% !important; }
    .main-navigation .sub-menu li a {
        display: block !important;
        padding: 11px 16px !important;
        color: var(--text-dark) !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        font-weight: 500 !important;
        text-transform: none !important;
    }
    .main-navigation .sub-menu li a:hover { background: var(--bg-light) !important; color: var(--brand-primary) !important; }

    /* Header CTA button — sized to match the nav links, not tower over them. */
    .main-navigation .bf-header-cta { margin-left: 10px; flex-shrink: 0; }
    .main-navigation .bf-header-cta > a {
        background: linear-gradient(135deg, var(--brand-secondary) 0%, #059669 100%) !important;
        color: #ffffff !important;
        white-space: nowrap;
        padding: 10px 20px !important;
        border-radius: 50px;
        font-weight: 700 !important;
        letter-spacing: 0.3px;
        box-shadow: 0 4px 12px rgba(36, 179, 53, 0.24);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .main-navigation .bf-header-cta > a:hover {
        color: #ffffff !important;
        background: linear-gradient(135deg, #24b335 0%, #166f21 100%) !important;
        transform: translateY(-1px);
        box-shadow: 0 9px 22px rgba(36, 179, 53, 0.36);
    }
}

.dropdown-menu-toggle { display: none !important; } /* no caret artifacts (submenu shows inline on mobile) */

/* ---- Mobile (<=768px): centred logo, toggle pinned top-right, full-width drop panel ---- */
/* ---- Hamburger menu (<=1279px): the 8-link nav can't fit horizontally below
   1280, so show the toggle + full-width drop panel here, not just on phones.
   GP's toggle click handler already works at any width. ---- */
@media (max-width: 1279px) {
    /* GeneratePress now shows its single mobile toggle here (breakpoint filtered
       to 1279 in functions.php); these rules just style that mobile layout. */
    /* Drop the hairline under the header on mobile (the "line under the logo"). */
    .site-header { border-bottom: none !important; }
    /* ...but keep the brand green line once the header sticks, matching desktop. */
    .is-scrolled .site-header { border-bottom: 5px solid var(--brand-secondary) !important; }
    .site-header .inside-header {
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
        padding: 8px 14px !important;
    }
    /* left spacer balances the toggle width so the logo sits centred */
    .site-header .inside-header::before { content: ""; flex: 0 0 44px; }
    .site-header .site-branding-container,
    .site-header .site-logo { margin: 0; }
    .site-header .site-logo img,
    .site-header .header-image {
        width: 190px !important;
        max-width: 190px !important;
        max-height: 68px !important;
        margin: 0;
    }
    /* THE FIX: toggle stays IN FLOW in the top row (was absolute top:50%, which
       sank into the menu when it expanded). */
    .site-header .main-navigation.mobile-menu-control-wrapper {
        position: static;
        flex: 0 0 44px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 0;
        width: auto;
    }

    /* The menu drops as a full-width panel anchored to .inside-header, so opening
       it overlays below the row instead of growing the header + moving the toggle. */
    .site-header .main-navigation .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 22px 40px rgba(15, 23, 42, 0.16);
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }
    /* The closed menu collapses to 1px; its border-top used to show as a faint
       line under the logo. Only draw a top edge when the menu is actually open. */
    .site-header .main-navigation.toggled .main-nav { border-top: 1px solid rgba(15, 23, 42, 0.06); }
    .site-header .main-navigation .main-nav > ul.menu { margin: 0; padding: 6px 0; }
    .site-header .main-navigation .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    }
    .site-header .main-navigation .main-nav > ul.menu > li:last-child { border-bottom: none; }
    .site-header .main-navigation .main-nav a {
        display: block;
        padding: 15px 22px;
        color: var(--brand-primary) !important;   /* FIX: consistent colour (was browser-default blue) */
        font-weight: 600;
        font-size: 1rem;
        text-transform: none;
        text-decoration: none;
        background: transparent;
    }
    .site-header .main-navigation .main-nav a:hover {
        background: var(--bg-light);
        color: var(--brand-secondary) !important;
    }
    /* Sub-menu (Locations children) shown inline + indented. */
    .site-header .main-navigation .main-nav .sub-menu {
        position: static !important;  /* keep in flow regardless of GP's toggled state */
        float: none !important;       /* GP floats submenus left, which drops them out of
                                         flow so the next item ("How Does It Work?") overlaps
                                         and swallows the taps — put them back in normal flow */
        left: auto !important;        /* neutralise GP's off-screen left:-99999px */
        width: auto !important;
        display: block !important;
        height: auto !important;      /* GP collapses submenus with height:0 + overflow:hidden */
        overflow: visible !important;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: 0;
        opacity: 1 !important;
        visibility: visible !important;
        /* GP sets pointer-events:none on a submenu until it's .toggled-on (i.e. until
           you tap the parent). Since we ALWAYS show the Locations list expanded inline,
           re-enable taps so the area links navigate on the FIRST tap — no need to tap
           "Locations" first. */
        pointer-events: auto !important;
        transform: none;
        background: rgba(15, 23, 42, 0.02);
    }
    .site-header .main-navigation .main-nav .sub-menu a {
        padding-left: 40px;
        font-weight: 500;
        color: var(--text-light) !important;
    }

    /* CTA as a full-width button at the foot of the menu. */
    .site-header .main-navigation .bf-header-cta { padding: 14px 18px; border-bottom: none !important; }
    .site-header .main-navigation .bf-header-cta > a {
        background: linear-gradient(135deg, var(--brand-secondary) 0%, #059669 100%) !important;
        color: #ffffff !important;
        text-align: center;
        border-radius: 50px;
        padding: 15px !important;
        font-weight: 700;
        box-shadow: 0 6px 16px rgba(36, 179, 53, 0.28);
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, #059669 100%);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(36, 179, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 179, 53, 0.4);
}

/* Custom Homepage Hero Section */
.custom-hero {
    position: relative;
    /* FIXED min-height sized to the TALLEST content state (postcode → "not covered" lead form is
       ≈879px at every desktop width) with content anchored to the TOP (flex-start). Because the
       hero never grows, the photo band that fills it is a CONSTANT size — entering a postcode no
       longer reveals more of the image — and because content is top-anchored the heading never
       shifts either; the card simply grows downward within the fixed hero.
       (Previously min-height:600 + centred + height:auto let the card grow the hero, so the
       ::after band stretched with it — revealing more photo AND nudging the heading up. That is
       the bug this replaces. Interior heroes carry an inline min-height and so are unaffected.) */
    height: auto;
    min-height: 890px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Dark base — safety fill behind the photo band. */
    background-color: #0f172a;
}

/* The hero photo fills the hero (top:0 → bottom:0). Because .custom-hero is now a FIXED height
   (see above), this band is a constant size, so the visible crop of the photo never changes as
   the card grows — the whole point of the fix.
   (Self-hosted "colourful bins" photo, bundled so it can never 404. Hidden on mobile, which lays
   the portrait photo full-width on .custom-hero instead — see the media query below.) */
.custom-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;   /* fills the hero at ANY height — no dark strip/gap */
    background-image: url('assets/hero-bg.jpg');
    /* Image HEIGHT is fixed (auto width), so the photo never rescales when the card grows the
       hero — growth just reveals a little more of the same photo instead of zooming it. 900px
       comfortably exceeds the tallest content state, so the photo always covers. */
    background-size: auto 900px;
    /* Anchor the photo to the TOP so growing the hero does NOT move the image — the entire
       visible upper area (behind the heading) stays pixel-identical; expansion only reveals a
       little more of the same photo at the very bottom, behind the card. */
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #0f172a;   /* safety fill if content ever exceeds the photo height */
    z-index: 0;
}
/* Location / interior heroes reuse .custom-hero for layout but have their OWN dark gradient
   background (no photo) and are much shorter — so the homepage photo band must NOT render on
   them (it would overflow ~400px below the hero, over the page content). Must come AFTER the
   .custom-hero::after rule to win at equal specificity. */
.bf-interior-hero::after { display: none; }

.custom-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    color: #e2e8f0;
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 30px;
}

/* ============================================================
   HERO ENTRANCE ANIMATIONS — pure CSS, NO JavaScript/AOS.
   The element's default (unanimated) state is fully visible, so if CSS
   animations are unsupported or the visitor prefers reduced motion, the hero
   just appears — it can never be left invisible waiting on a script (the reason
   the above-the-fold heroes don't use AOS). These run immediately on first paint.
   ============================================================ */
@keyframes bfFadeUp    { from { opacity: 0; transform: translateY(22px);  } to { opacity: 1; transform: none; } }
@keyframes bfFadeDown  { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }
@keyframes bfFadeRight { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes bfZoomIn    { from { opacity: 0; transform: scale(0.94);       } to { opacity: 1; transform: none; } }

.bf-anim-up, .bf-anim-down, .bf-anim-right, .bf-anim-zoom {
    animation-duration: 0.7s;
    animation-timing-function: cubic-bezier(0.22, 0.68, 0.22, 1);
    animation-fill-mode: both;
    will-change: opacity, transform;
}
.bf-anim-up    { animation-name: bfFadeUp; }
.bf-anim-down  { animation-name: bfFadeDown; }
.bf-anim-right { animation-name: bfFadeRight; }
.bf-anim-zoom  { animation-name: bfZoomIn; }

/* Stagger */
.bf-anim-d1 { animation-delay: 0.08s; }
.bf-anim-d2 { animation-delay: 0.16s; }
.bf-anim-d3 { animation-delay: 0.24s; }
.bf-anim-d4 { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .bf-anim-up, .bf-anim-down, .bf-anim-right, .bf-anim-zoom { animation: none !important; }
}

/* (Removed dead legacy CSS: .area-selector-container / #area-routing-form{display:flex}
   / #neighborhood-select — the old area dropdown was replaced by the .bf-hero-card
   postcode checker. The #area-routing-form ID now lives on that card as an anchor.) */

/* Hide Default Homepage Title */
.home .entry-header {
    display: none !important;
}

/* Top bar (social icons + optional staging pill) */
.bf-top-bar {
    background-color: var(--brand-primary);
    padding: 5px 20px;
    border-bottom: 5px solid var(--brand-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bf-top-bar__right a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.bf-top-bar__right a:hover { color: var(--brand-secondary); }

/* Subtle staging indicator pill (replaces the old full-width orange banner) */
.bf-staging-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand-accent, #f59e0b);
    padding: 2px 11px;
    border-radius: 9999px;
    line-height: 1.7;
}
.bf-staging-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* -------------------------------------------
   NEW HOMEPAGE CONTENT SECTIONS 
   ------------------------------------------- */

.bf-section {
    padding: 80px 20px;
}
/* The LAST section on a page sits directly above the footer, so trim its bottom padding —
   otherwise there's a big dead gap (its 80px padding + the footer's own 30px) before the
   copyright bar, uneven from page to page. */
.bf-section:last-child { padding-bottom: 40px; }
/* Commercial's closing "trust" line carried an extra bottom margin (from .bf-comm-finalcta p),
   which made its footer gap bigger than every other page — zero it so all pages match. */
.bf-comm-finalcta .bf-comm-finalcta-trust { margin-bottom: 0; }


/* About Grid */
.bf-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.bf-about-text h2 {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 20px;
}
.bf-about-text h3 {
    font-size: 1.25rem;
    color: var(--brand-secondary);
    margin-top: 30px;
    margin-bottom: 10px;
}
.bf-about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Cards Grid (Services & Book) */
.bf-services-grid, .bf-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.bf-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}
.bf-card:hover {
    transform: translateY(-5px);
}
.bf-card h3 {
    color: var(--brand-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.bf-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}
.bf-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-secondary);
    margin: 20px 0;
}

/* Dark Cards for Book Section */
.bf-card-dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: left;
}
.bf-card-dark h3 {
    color: #fff;
}
.bf-card-dark p, .bf-card-dark ul {
    color: #e2e8f0;
}

/* Testimonials Grid */
.bf-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.bf-testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--brand-secondary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.bf-testimonial-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Responsive Overrides */
/* -------------------------------------------
   MOBILE RESPONSIVENESS OVERHAUL
   ------------------------------------------- */
@media (max-width: 768px) {
    /* 1. Quoting Engine */
    .booking-flow-container .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    /* Full-width hero-card check button on tablet/phone. Re-scoped from the legacy
       `#area-routing-form .btn-primary` (which leaked via the ID now on the card) to
       the actual hero button — identical rendering, no legacy coupling. */
    .bf-hero-card .bf-cov-btn {
        width: 100% !important;
        padding: 18px !important;
    }

    /* 3. Hero Sections — the location/interior hero was ~295px (35vh) on phones,
       a big navy block for one word. Shrink it to a compact banner. */
    .bf-interior-hero {
        height: auto !important;
        min-height: 168px !important;
        padding: 38px 15px !important;
    }
    .bf-interior-hero h1 {
        font-size: 2rem !important;
        letter-spacing: 1px !important;
    }
    
    /* 4. About Grid */
    .bf-about-grid {
        grid-template-columns: 1fr !important;
    }
}

/* -------------------------------------------
   NATIVE HEADER & FOOTER RESTORATION 
   ------------------------------------------- */

/* Top Bar Removed */

/* Header Utilities */
.bf-nav-search i, .bf-nav-cart i, .bf-nav-social i {
    font-size: 16px;
    color: var(--brand-primary);
    transition: color 0.3s ease;
}
.bf-nav-search:hover i, .bf-nav-cart:hover i, .bf-nav-social:hover i {
    color: var(--brand-secondary);
}
.bf-nav-cart {
    position: relative;
}
.bf-cart-count {
    background-color: var(--brand-secondary);
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    position: absolute;
    top: -5px;
    right: -10px;
    font-weight: bold;
}

/* Footer Override */
.site-info {
    background-color: var(--brand-primary) !important;
    color: #94a3b8 !important;
    padding: 30px 20px !important;
    text-align: center;
}
.bf-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.bf-footer-content p {
    margin: 0;
    font-size: 14px;
}
.bf-footer-content a {
    color: var(--brand-secondary);
    text-decoration: none;
}
.bf-footer-socials a {
    color: #94a3b8;
    font-size: 18px;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.bf-footer-socials a:hover {
    color: var(--brand-secondary);
}

@media (max-width: 768px) {
    .bf-footer-content {
        flex-direction: column;
        justify-content: center;
    }
}

/* Hide Shop Link from Navigation */
.main-navigation a[href*="shop"] {
    display: none !important;
}


/* Bulletproof Full-Width Hero */
.bf-interior-hero, .custom-hero {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
}

/* (Removed dead legacy CSS: the whole .custom-select* / .custom-options / .arrow
   dropdown component — replaced by the .bf-hero-card postcode checker + area pills.) */

/* Hide WooCommerce/Fluid Checkout Quantity Badge to avoid confusion with Custom Bin Quantities */
.product-quantity, .fc-product-quantity, .fc-checkout-order-review .product-quantity {
    display: none !important;
}

/* Premium Toast Notifications */
.binfresh-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.binfresh-toast {
    background: #ffffff;
    color: #1f2937;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 5px solid var(--brand-secondary, #f59e0b);
    animation: slideDownFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
}

.binfresh-toast.error {
    border-left-color: #ef4444;
}

.binfresh-toast.success {
    border-left-color: #24b335;
}

.binfresh-toast i {
    font-size: 1.2rem;
}

.binfresh-toast.error i {
    color: #ef4444;
}

.binfresh-toast.success i {
    color: #24b335;
}

.binfresh-toast.hiding {
    animation: slideUpFadeOut 0.3s forwards;
}

@keyframes slideDownFadeIn {
    0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideUpFadeOut {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* Removed overflow-x hidden to restore sticky header */

/* Prevent horizontal scroll WITHOUT creating a nested scroll container.
   Note: overflow-x:hidden forces overflow-y to compute to `auto`, which trapped
   the whole page inside .site-content as a secondary scrollbar. `clip` avoids that. */
.site-content {
    overflow-x: clip;
}

/* Fix horizontal scroll securely using modern CSS clip without breaking position: sticky or nested scrolls */
body {
    overflow-x: clip !important;
}

/* Remove default GeneratePress content padding to eliminate the gap above the hero */
.site-content {
    padding-top: 0 !important;
}
#content {
    padding-top: 0 !important;
}


/* Sticky header sits BELOW the WordPress admin bar (fixes the logo being clipped at
   the top when scrolling while logged in — the fixed 32px admin bar covered it). */
.admin-bar .site-header { top: 32px !important; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px !important; } }
@media screen and (max-width: 600px) { .admin-bar .site-header { top: 0 !important; } }

/* Single-page nav anchor targets: offset so the sticky header does not cover the
   section heading when a nav link jumps to it. */
#about, #services, #faq, #FAQ, #hdib, #testimonials, #locations {
    scroll-margin-top: 120px;
}

/* ============================================================
   MOBILE HERO + AREA SELECTOR
   The tall mobile hero column (aspect ~0.42) is much taller than the
   portrait photo (aspect ~0.749). background-size:cover therefore zoomed
   the photo to fill the height — cropping ~56% of its width (losing the
   black + red bins) and upscaling the 675px source ~3x on retina, so it
   read blurry and "too large". Instead we lay the photo FULL-WIDTH along
   the top (100% auto): the whole three-bin composition is visible and the
   upscale roughly halves. Navy fills below the photo; the ::before
   gradient blends the seam and keeps the white heading legible.
   ============================================================ */
@media (max-width: 768px) {
    .custom-hero {
        background-image: url('assets/hero-bg-mobile.jpg');
        /* Show the WHOLE bin trio (black + blue + red) full-width at the top of the hero
           (100% auto = the photo's own aspect, nothing cropped horizontally), then let it fade
           into the brand navy lower down via the ::before gradient. This reads as one composed
           hero — colourful bins up top, brand colour beneath the card — rather than a photo that
           stops halfway and leaves a dead navy strip. It's height-independent: when the card
           grows (postcode result) the extra space is already navy, so nothing looks half-filled.
           (A tall, narrow phone hero can't both fill edge-to-edge AND keep the whole horizontal
           row of bins on screen; this keeps every bin visible and the composition intentional.) */
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
        background-color: #0f172a;   /* fills below the photo; the gradient blends into it */
        height: auto;
        min-height: 520px;
        /* Mobile keeps its own portrait photo + shorter height; restore centring so the desktop
           flex-start + tall min-height don't apply here. */
        justify-content: center;
        padding: 44px 0;
    }
    .custom-hero::after { display: none; }   /* mobile lays its own full-width photo on .custom-hero */
    /* Light over the bins up top (so they stay vibrant + the white heading is legible), fading to
       SOLID navy by ~80% down so the photo→brand transition is seamless (no hard cut-off line). */
    .custom-hero::before {
        background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.30) 0%,
            rgba(15, 23, 42, 0.42) 30%,
            rgba(15, 23, 42, 0.90) 62%,
            #0f172a 80%);
    }
    .hero-content h1 { font-size: 2.4rem; line-height: 1.12; margin-bottom: 16px; }
    .hero-content p  { font-size: 1.05rem; margin-bottom: 24px; }

    /* (Removed dead legacy mobile .custom-select* rules — dropdown component gone.) */
}
