/* ==========================================================================
   CBD Brothers — Homepage 2026
   Bulletproofed: parent theme flexes+centres ALL <ul>, indents list text
   (-23px), and gives h3 huge margins. Every rule here explicitly resets.
   ========================================================================== */

.cbdbc-home {
    --cbdbc-color-hero-bg:       #2E3E30;
    --cbdbc-color-cream:         #F5F0E7;
    --cbdbc-color-tile-grey:     #F4F5F5;
    --cbdbc-color-cream-tile:    #FCF5EB;
    --cbdbc-color-pink-tile:     #FDF4F2;
    --cbdbc-color-accent-pink:   #E8B7B7;
    --cbdbc-color-accent-pink-2: #F5D9D9;
    --cbdbc-color-navy:          #1A3A52;
    --cbdbc-color-text:          #2A2A2A;
    --cbdbc-color-white:         #FFFFFF;
    --cbdbc-color-border:        #E0DBD1;
    --cbdbc-font-heading:        'Rosebud', 'Georgia', serif;
    --cbdbc-font-body:           Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

main.container.cbdbc-home,
main#container.cbdbc-home,
body main.cbdbc-home,
.cbdbc-home {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.cbdbc-home {
    font-family: var(--cbdbc-font-body);
    line-height: 1.6;
    color: var(--cbdbc-color-text);
    background-color: var(--cbdbc-color-cream);
    overflow-x: clip;
}

.cbdbc-home *,
.cbdbc-home *::before,
.cbdbc-home *::after { box-sizing: border-box; }

.cbdbc-visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Buttons */
.cbdbc-home .cbdbc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.95em 2em;
    border-radius: 999px;
    font-family: var(--cbdbc-font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
    text-indent: 0;
    transition: transform 180ms ease-out, background-color 180ms ease-out, box-shadow 180ms ease-out;
}
.cbdbc-home .cbdbc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.cbdbc-home .cbdbc-btn::after { content: '→'; font-size: 1.1em; transition: transform 180ms ease-out; }
.cbdbc-home .cbdbc-btn:hover::after { transform: translateX(3px); }
.cbdbc-home .cbdbc-btn--primary { background-color: var(--cbdbc-color-accent-pink); color: var(--cbdbc-color-navy); }
.cbdbc-home .cbdbc-btn--primary:hover { background-color: var(--cbdbc-color-accent-pink-2); }
.cbdbc-home .cbdbc-btn--secondary { background-color: var(--cbdbc-color-white); color: var(--cbdbc-color-navy); }
.cbdbc-home .cbdbc-btn--dark { background-color: var(--cbdbc-color-hero-bg); color: var(--cbdbc-color-white); }
.cbdbc-home .cbdbc-btn--dark:hover { background-color: var(--cbdbc-color-navy); }

/* ==========================================================================
   HERO
   ========================================================================== */

.cbdbc-home__hero {
    background-color: var(--cbdbc-color-hero-bg);
    color: var(--cbdbc-color-white);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.cbdbc-home__hero .cbdbc-container {
    max-width: 1280px !important;
    padding: 3.5rem 2rem !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 2.5rem;
    min-height: 560px;
    position: relative;
}

.cbdbc-home__hero-content {
    max-width: 540px;
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0;
    text-align: left;
}

.cbdbc-home__hero h1 {
    font-family: var(--cbdbc-font-heading);
    color: var(--cbdbc-color-white);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 400;
    line-height: 1.12;
    margin: 0 0 1rem 0;
    padding: 0;
    text-align: left;
    text-transform: none;
    text-indent: 0;
}

.cbdbc-home__hero-lead {
    font-family: var(--cbdbc-font-body);
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    margin: 0 0 2rem 0;
    padding: 0;
    max-width: 440px;
    text-align: left;
    text-indent: 0;
}

.cbdbc-home__hero-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 0 2rem 0;
    padding: 0;
}

.cbdbc-home__hero-social-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.cbdbc-home__hero-avatars { display: flex; margin: 0; padding: 0; }

.cbdbc-home .cbdbc-avatar {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--cbdbc-color-hero-bg);
    margin: 0 0 0 -8px;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #d4a5a5;
}
.cbdbc-home .cbdbc-avatar:first-child { margin-left: 0; }
.cbdbc-home__hero-avatars .cbdbc-avatar:nth-child(1) { background-image: url('../../images/homepage-2026/avatar-1.png'); }
.cbdbc-home__hero-avatars .cbdbc-avatar:nth-child(2) { background-image: url('../../images/homepage-2026/avatar-2.png'); }
.cbdbc-home__hero-avatars .cbdbc-avatar:nth-child(3) { background-image: url('../../images/homepage-2026/avatar-3.png'); }

.cbdbc-home__hero-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    padding: 0;
    text-indent: 0;
}
.cbdbc-home .cbdbc-stars { color: #F5C542; letter-spacing: 0.05em; text-indent: 0; }
.cbdbc-home__hero-rating-text { color: rgba(255,255,255,0.85); text-indent: 0; }

.cbdbc-home__hero-media {
    position: absolute;
    top: -100px;
    bottom: -100px;
    right: calc(-1 * max(2rem, (100vw - 1280px) / 2 + 2rem) - 100px);
    aspect-ratio: 1;
    width: auto;
    max-width: none;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.cbdbc-home__hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}
.cbdbc-home img.cbdbc-home__hero-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 0;
}

.cbdbc-home img.cbdbc-home__hero-badge {
    position: absolute;
    left: -5%;
    top: 53%;
    width: 18% !important;
    height: auto !important;
    max-width: 120px !important;
    z-index: 3;
    margin: 0;
    padding: 0;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

@media (max-width: 900px) {
    .cbdbc-home__hero .cbdbc-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
        padding: 2rem 1.5rem !important;
    }
    .cbdbc-home__hero-content { max-width: 100%; text-align: center; }
    .cbdbc-home__hero h1,
    .cbdbc-home__hero-lead { margin-left: auto; margin-right: auto; text-align: center; }
    .cbdbc-home__hero-ctas,
    .cbdbc-home__hero-social-proof { justify-content: center; }
    .cbdbc-home__hero-media {
        position: relative;
        top: auto; bottom: auto; right: auto;
        aspect-ratio: 1;
        height: auto;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
    .cbdbc-home img.cbdbc-home__hero-badge { max-width: 80px !important; }
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */

.cbdbc-home__trust-bar {
    background-color: var(--cbdbc-color-white);
    border-bottom: 1px solid var(--cbdbc-color-border);
    padding: 2.5rem 0;
    margin: 0;
}

.cbdbc-home__trust-bar .cbdbc-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cbdbc-home ul.cbdbc-home__trust-list {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    align-items: center !important;
    justify-content: stretch !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
    line-height: 1.4 !important;
    gap: 0;
}

.cbdbc-home li.cbdbc-home__trust-item {
    display: flex !important;
    flex-direction: row;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 1.75rem;
    margin: 0 !important;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--cbdbc-color-text);
    text-align: left !important;
    text-indent: 0 !important;
    list-style: none !important;
}

.cbdbc-home li.cbdbc-home__trust-item:first-child { padding-left: 0; }
.cbdbc-home li.cbdbc-home__trust-item:last-child  { padding-right: 0; }
.cbdbc-home li.cbdbc-home__trust-item:not(:last-child) {
    border-right: 1px solid var(--cbdbc-color-border);
}

.cbdbc-home__trust-bar img.cbdbc-home__trust-icon,
.cbdbc-home img.cbdbc-home__trust-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
    margin: 0 24px 0 0 !important;
    padding: 0 !important;
    object-fit: contain;
    display: block !important;
}

.cbdbc-home .cbdbc-home__trust-text {
    display: block;
    text-align: left !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--cbdbc-color-text);
    text-indent: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--cbdbc-font-body);
    font-size: 0.875rem;
    text-transform: none;
}

.cbdbc-home li.cbdbc-home__trust-item--brand {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 8px;
}
.cbdbc-home li.cbdbc-home__trust-item--brand .cbdbc-home__trust-text { flex: 0 0 auto; }

.cbdbc-home__trust-bar img.cbdbc-home__trust-brand-logo,
.cbdbc-home img.cbdbc-home__trust-brand-logo {
    width: auto !important;
    height: 32px !important;
    max-height: 32px !important;
    max-width: 110px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

@media (max-width: 768px) {
    .cbdbc-home__trust-bar { padding: 1.25rem 0; }
    .cbdbc-home__trust-bar .cbdbc-container { padding: 0; max-width: none; }
    .cbdbc-home ul.cbdbc-home__trust-list {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding: 0 1.5rem !important;
        gap: 1.5rem;
        scrollbar-width: none;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }
    .cbdbc-home ul.cbdbc-home__trust-list::-webkit-scrollbar { display: none; }
    .cbdbc-home li.cbdbc-home__trust-item {
        flex: 0 0 auto;
        min-width: 200px;
        padding: 0;
        border-right: none !important;
        scroll-snap-align: start;
    }
    .cbdbc-home li.cbdbc-home__trust-item--brand { min-width: 160px; }
}

/* The long trust item forces a 2-line break on mobile (matching the others);
   on desktop it wraps naturally within its grid column, so hide the break. */
.cbdbc-home__trust-br-m { display: inline; }
@media only screen and (min-width: 641px) {
    .cbdbc-home__trust-br-m { display: none; }
}

/* ==========================================================================
   CATEGORY TILES
   ========================================================================== */

.cbdbc-home__categories {
    position: relative;
    background: var(--cbdbc-color-white);
    padding: 4.5rem 0 3.5rem;
    margin: 0;
    overflow: hidden;
}

/* Faint hemp-leaf watermark, bleeds off the right edge (matches design mock) */
.cbdbc-home__categories::before {
    content: "";
    position: absolute;
    top: -4%;
    right: -7%;
    width: 34%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    background: url('../../images/homepage-2026/hemp-leaf.svg') no-repeat right top;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.cbdbc-home__categories .cbdbc-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cbdbc-home h2.cbdbc-home__categories-title {
    display: block;
    font-family: var(--cbdbc-font-heading);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 400;
    color: var(--cbdbc-color-navy);
    text-align: center;
    margin: 0 0 2.5rem 0;
    padding: 0;
    line-height: 1.2;
    text-transform: none;
    text-indent: 0;
}

.cbdbc-home ul.cbdbc-home__category-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    line-height: 1.4 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

.cbdbc-home li.cbdbc-home__category-tile {
    display: block !important;
    background: var(--cbdbc-color-tile-grey);
    border-radius: 12px;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    list-style: none !important;
}

.cbdbc-home li.cbdbc-home__category-tile:nth-child(4) { background: var(--cbdbc-color-cream-tile); }
.cbdbc-home li.cbdbc-home__category-tile:nth-child(7) { background: var(--cbdbc-color-pink-tile); }

.cbdbc-home a.cbdbc-home__category-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center !important;
    padding: 1.75rem 0.9rem 1.5rem;
    margin: 0;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    border: none;
    background: transparent;
    text-indent: 0;
    transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

.cbdbc-home a.cbdbc-home__category-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.cbdbc-home__categories img.cbdbc-home__category-icon,
.cbdbc-home img.cbdbc-home__category-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain;
    display: block !important;
    margin: 0 auto 1.1rem auto !important;
    padding: 0 !important;
    flex: 0 0 auto;
}

.cbdbc-home h3.cbdbc-home__category-name {
    display: block;
    font-family: var(--cbdbc-font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--cbdbc-color-navy) !important;
    line-height: 1.25 !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    text-align: center !important;
    text-transform: none !important;
    text-indent: 0 !important;
    overflow-wrap: break-word;
    max-width: 100%;
}

.cbdbc-home p.cbdbc-home__category-desc {
    display: block;
    font-family: var(--cbdbc-font-body);
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    color: var(--cbdbc-color-text);
    margin: 0 0 1.1rem 0 !important;
    padding: 0 !important;
    text-align: center !important;
    text-indent: 0 !important;
    flex: 1 1 auto;
    overflow-wrap: break-word;
    max-width: 100%;
}

.cbdbc-home .cbdbc-home__category-arrow {
    display: block;
    font-size: 1.1rem;
    color: var(--cbdbc-color-navy);
    line-height: 1;
    margin: 0;
    padding: 0;
    text-indent: 0;
    flex: 0 0 auto;
}

.cbdbc-home__categories-cta {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 0 0;
    padding: 0;
}

@media (max-width: 1100px) {
    .cbdbc-home ul.cbdbc-home__category-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .cbdbc-home ul.cbdbc-home__category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .cbdbc-home__categories { padding: 3rem 0 2.5rem; }
    .cbdbc-home__categories .cbdbc-container { padding: 0 1.25rem; }
}

/* ==========================================================================
   4. CBD Brothers Favourites
   ========================================================================== */

.cbdbc-home__favourites {
    background: var(--cbdbc-color-white);
    padding: 3.5rem 0 4rem;
    margin: 0;
}

.cbdbc-home__favourites .cbdbc-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Section head: title (with pink underline) + view all --- */
.cbdbc-home__fav-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 2rem 0;
    padding: 0;
}

.cbdbc-home h2.cbdbc-home__fav-title {
    display: inline-block;
    font-family: var(--cbdbc-font-heading);
    font-size: clamp(1.4rem, 2.3vw, 1.9rem);
    font-weight: 400;
    color: var(--cbdbc-color-navy);
    line-height: 1.2;
    text-align: left;
    text-transform: none;
    text-indent: 0;
    margin: 0;
    padding: 0 0 0.75rem 0;
    background: url('../../images/homepage-2026/heading-underline.svg') no-repeat left bottom;
    background-size: 100% 9px;
}

.cbdbc-home a.cbdbc-home__fav-viewall {
    display: inline-block;
    flex: 0 0 auto;
    font-family: var(--cbdbc-font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cbdbc-color-navy);
    text-decoration: none;
    text-indent: 0;
    white-space: nowrap;
    padding-bottom: 0.15rem;
}
.cbdbc-home a.cbdbc-home__fav-viewall:hover { text-decoration: underline; }

/* --- Product grid --- */
.cbdbc-home ul.cbdbc-home__fav-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    line-height: 1.4 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

.cbdbc-home li.cbdbc-home__fav-card {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    list-style: none !important;
    background: transparent;
}

.cbdbc-home a.cbdbc-home__fav-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: inherit;
    text-indent: 0;
    margin: 0;
    padding: 1rem 0.9rem 1.15rem;
    background: #F7F6F3;
    border-radius: 12px;
    transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}
.cbdbc-home a.cbdbc-home__fav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

/* --- Media (image sits inside the panel) --- */
.cbdbc-home__fav-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    overflow: hidden;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

.cbdbc-home__favourites img.cbdbc-home__fav-image,
.cbdbc-home img.cbdbc-home__fav-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 85% !important;
    max-height: 85% !important;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- Name --- */
.cbdbc-home h3.cbdbc-home__fav-name {
    display: block;
    font-family: var(--cbdbc-font-body) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--cbdbc-color-navy) !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-transform: none !important;
    text-indent: 0 !important;
    margin: 0 0 0.4rem 0 !important;
    padding: 0 !important;
    overflow-wrap: break-word;
}

/* --- Star rating + review count --- */
.cbdbc-home__fav-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 0.45rem 0;
    padding: 0;
    text-indent: 0;
    line-height: 1;
}

.cbdbc-home__fav-stars {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    height: 14px;
    white-space: nowrap;
    text-indent: 0;
    flex: 0 0 auto;
}
.cbdbc-home__fav-stars::before {
    content: "\2605\2605\2605\2605\2605";
    display: block;
    color: #DAD5CA;
    letter-spacing: 2px;
}
.cbdbc-home__fav-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.cbdbc-home__fav-stars-fill::before {
    content: "\2605\2605\2605\2605\2605";
    display: block;
    color: #00314A;
    letter-spacing: 2px;
}

.cbdbc-home__fav-reviews {
    display: inline-block;
    font-family: var(--cbdbc-font-body);
    font-size: 0.72rem;
    color: #6B6B6B;
    line-height: 1;
    text-indent: 0;
    white-space: nowrap;
}

/* --- Price --- */
.cbdbc-home__fav-price {
    display: block;
    margin: auto 0 0 0;
    padding-top: 0.15rem;
    font-family: var(--cbdbc-font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cbdbc-color-text);
    line-height: 1.3;
    text-indent: 0;
    text-align: center;
}
.cbdbc-home__fav-price .woocommerce-Price-amount,
.cbdbc-home__fav-price .amount {
    color: var(--cbdbc-color-text);
    font-weight: 700;
    white-space: nowrap;
}
.cbdbc-home__fav-price del,
.cbdbc-home__fav-price del .woocommerce-Price-amount {
    color: #9A968D;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 0.3rem;
}
.cbdbc-home__fav-price ins,
.cbdbc-home__fav-price ins .woocommerce-Price-amount {
    text-decoration: none;
    color: var(--cbdbc-color-text);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .cbdbc-home ul.cbdbc-home__fav-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (max-width: 640px) {
    .cbdbc-home ul.cbdbc-home__fav-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .cbdbc-home__favourites { padding: 2.5rem 0 3rem; }
    .cbdbc-home__favourites .cbdbc-container { padding: 0 1.25rem; }
    .cbdbc-home__fav-head { margin-bottom: 1.5rem; }
}

/* ==========================================================================
   5. Our Story
   ========================================================================== */

.cbdbc-home__story {
    background: var(--cbdbc-color-white);
    padding: 4rem 0;
    margin: 0;
}
.cbdbc-home__story .cbdbc-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.cbdbc-home__story-inner {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr 0.72fr;
    gap: 2.75rem;
    align-items: center;
}

/* --- Media + pink flash --- */
.cbdbc-home__story-media {
    position: relative;
    align-self: stretch;
    margin: 0;
    padding: 0;
}
.cbdbc-home__story img.cbdbc-home__story-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 340px;
    max-width: 100% !important;
    border-radius: 14px;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
}
.cbdbc-home__story-flash {
    position: absolute;
    left: -1.1rem;
    bottom: -1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #F3B4B4;
    color: var(--cbdbc-color-white);
    font-family: var(--cbdbc-font-body);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.5rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
    text-indent: 0;
}

/* --- Body --- */
.cbdbc-home__story-body { margin: 0; padding: 0; }
.cbdbc-home p.cbdbc-home__story-eyebrow {
    display: block;
    font-family: var(--cbdbc-font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cbdbc-color-navy);
    margin: 0 0 0.6rem 0;
    padding: 0;
    text-indent: 0;
    line-height: 1.2;
}
.cbdbc-home h2.cbdbc-home__story-title {
    display: block;
    font-family: var(--cbdbc-font-heading);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 400;
    color: var(--cbdbc-color-navy);
    line-height: 1.2;
    text-transform: none;
    text-indent: 0;
    margin: 0 0 1.1rem 0;
    padding: 0;
}
.cbdbc-home p.cbdbc-home__story-text {
    display: block;
    font-family: var(--cbdbc-font-body);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--cbdbc-color-text);
    margin: 0 0 1rem 0;
    padding: 0;
    text-indent: 0;
}
.cbdbc-home a.cbdbc-home__story-cta {
    margin-top: 0.6rem;
}

/* --- Feature checklist --- */
.cbdbc-home ul.cbdbc-home__story-features {
    display: flex !important;
    flex-direction: column;
    gap: 1.35rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    line-height: 1.4 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}
.cbdbc-home li.cbdbc-home__story-feature {
    display: flex !important;
    align-items: center;
    gap: 0.85rem;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    list-style: none !important;
}
.cbdbc-home__story img.cbdbc-home__story-check {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto;
}
.cbdbc-home__story-feature-text {
    display: block;
    font-family: var(--cbdbc-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--cbdbc-color-navy);
    text-indent: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .cbdbc-home__story-inner { grid-template-columns: 1fr 1fr; gap: 2.25rem 2.5rem; align-items: start; }
    .cbdbc-home ul.cbdbc-home__story-features { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 1.1rem 1.75rem; }
    .cbdbc-home li.cbdbc-home__story-feature { flex: 1 1 42%; }
}
@media (max-width: 640px) {
    .cbdbc-home__story { padding: 3rem 0; }
    .cbdbc-home__story .cbdbc-container { padding: 0 1.25rem; }
    .cbdbc-home__story-inner { grid-template-columns: 1fr; gap: 2rem; }
    .cbdbc-home__story img.cbdbc-home__story-image { height: auto !important; min-height: 0; aspect-ratio: 4 / 3; }
    .cbdbc-home__story-flash { width: 90px; height: 90px; font-size: 0.74rem; left: 0.5rem; bottom: -0.9rem; }
    .cbdbc-home li.cbdbc-home__story-feature { flex: 1 1 100%; }
}

/* ==========================================================================
   6. What our customers say  +  Newsletter
   ========================================================================== */

.cbdbc-home__reviews {
    background: var(--cbdbc-color-white);
    padding: 3.5rem 0 4rem;
    margin: 0;
}
.cbdbc-home__reviews .cbdbc-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.cbdbc-home__reviews-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}
.cbdbc-home__tstm { min-width: 0; }
.cbdbc-home__tstm-carousel { position: relative; min-width: 0; }

/* --- Testimonials head --- */
.cbdbc-home__tstm-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin: 0 0 1.75rem 0;
}
.cbdbc-home h2.cbdbc-home__tstm-title {
    display: inline-block;
    font-family: var(--cbdbc-font-heading);
    font-size: clamp(1.4rem, 2.3vw, 1.9rem);
    font-weight: 400;
    color: var(--cbdbc-color-navy);
    line-height: 1.2;
    text-align: left;
    text-transform: none;
    text-indent: 0;
    margin: 0;
    padding: 0 0 0.75rem 0;
    background: url('../../images/homepage-2026/heading-underline.svg') no-repeat left bottom;
    background-size: 100% 9px;
}
.cbdbc-home a.cbdbc-home__tstm-tp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--cbdbc-color-text);
    text-indent: 0;
    flex-wrap: wrap;
}
.cbdbc-home__tstm-tp-label { font-weight: 700; color: var(--cbdbc-color-navy); font-size: 0.9rem; }
.cbdbc-home__tstm-tp-text  { font-size: 0.78rem; color: #6B6B6B; }
.cbdbc-home__tstm img.cbdbc-home__tstm-tp-logo,
.cbdbc-home img.cbdbc-home__tstm-tp-logo {
    display: inline-block !important;
    width: auto !important;
    height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
}
/* Trustpilot green rating pips */
.cbdbc-home__tstm-tp-stars {
    position: relative;
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    height: 15px;
    white-space: nowrap;
}
.cbdbc-home__tstm-tp-stars::before {
    content: "\2605\2605\2605\2605\2605";
    display: block; color: #DADFDC; letter-spacing: 1px;
}
.cbdbc-home__tstm-tp-stars-fill {
    position: absolute; top: 0; left: 0; height: 100%;
    width: 96%; overflow: hidden; white-space: nowrap;
}
.cbdbc-home__tstm-tp-stars-fill::before {
    content: "\2605\2605\2605\2605\2605";
    display: block; color: #12A24C; letter-spacing: 1px;
}

/* --- Carousel --- */
.cbdbc-home__tstm-carousel { position: relative; }
.cbdbc-home ul.cbdbc-home__tstm-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 0 0.5rem 0 !important;
    text-indent: 0 !important;
    line-height: 1.5 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cbdbc-home ul.cbdbc-home__tstm-track::-webkit-scrollbar { display: none; }

.cbdbc-home li.cbdbc-home__tstm-card {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 calc((100% - 2.5rem) / 3);
    scroll-snap-align: start;
    box-sizing: border-box;
    background: var(--cbdbc-color-white);
    border: 1px solid var(--cbdbc-color-border);
    border-radius: 12px;
    margin: 0 !important;
    padding: 1.4rem 1.4rem 1.25rem !important;
    text-indent: 0 !important;
    list-style: none !important;
}
.cbdbc-home__tstm-quote {
    display: block;
    font-family: Georgia, serif;
    font-size: 2.6rem;
    line-height: 0.6;
    height: 0.7em;
    color: var(--cbdbc-color-accent-pink);
    text-indent: 0;
}
.cbdbc-home p.cbdbc-home__tstm-text {
    display: block;
    font-family: var(--cbdbc-font-body);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--cbdbc-color-text);
    margin: 0.5rem 0 1rem 0;
    padding: 0;
    text-indent: 0;
    flex: 1 1 auto;
}
.cbdbc-home p.cbdbc-home__tstm-name {
    display: block;
    font-family: var(--cbdbc-font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cbdbc-color-navy);
    margin: 0 0 0.5rem 0;
    padding: 0;
    text-indent: 0;
}
.cbdbc-home__tstm-stars {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    height: 14px;
    white-space: nowrap;
    text-indent: 0;
}
.cbdbc-home__tstm-stars::before {
    content: "\2605\2605\2605\2605\2605";
    display: block; color: #DADFDC; letter-spacing: 2px;
}
.cbdbc-home__tstm-stars-fill {
    position: absolute; top: 0; left: 0; height: 100%;
    overflow: hidden; white-space: nowrap;
}
.cbdbc-home__tstm-stars-fill::before {
    content: "\2605\2605\2605\2605\2605";
    display: block; color: #12A24C; letter-spacing: 2px;
}

/* Nav arrows */
.cbdbc-home__tstm-nav { margin: 0; padding: 0; }
.cbdbc-home button.cbdbc-home__tstm-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--cbdbc-color-border);
    background: var(--cbdbc-color-white);
    color: var(--cbdbc-color-navy);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background-color 150ms ease, opacity 150ms ease;
    z-index: 2;
}
.cbdbc-home button.cbdbc-home__tstm-arrow[data-cbdbc-dir="prev"] { left: -14px; }
.cbdbc-home button.cbdbc-home__tstm-arrow[data-cbdbc-dir="next"] { right: -14px; }
.cbdbc-home button.cbdbc-home__tstm-arrow:hover { background: var(--cbdbc-color-cream); }
.cbdbc-home button.cbdbc-home__tstm-arrow:disabled { opacity: 0.35; cursor: default; }

/* --- Newsletter box --- */
.cbdbc-home__news {
    align-self: stretch;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FCE4E2;
    border-radius: 16px;
    padding: 1.9rem 1.75rem;
    margin: 0;
}
.cbdbc-home p.cbdbc-home__news-title {
    display: block;
    font-family: var(--cbdbc-font-body);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cbdbc-color-navy);
    margin: 0 0 0.6rem 0;
    padding: 0;
    text-indent: 0;
}
.cbdbc-home p.cbdbc-home__news-sub {
    display: block;
    font-family: var(--cbdbc-font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #5F5B58;
    margin: 0 0 1.1rem 0;
    padding: 0;
    text-indent: 0;
}
.cbdbc-home__news-row {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
}
.cbdbc-home input.cbdbc-home__news-input {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--cbdbc-font-body);
    font-size: 0.9rem;
    color: var(--cbdbc-color-text);
    background: var(--cbdbc-color-white);
    border: 1px solid #EAD3D1;
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    margin: 0;
    line-height: 1.2;
    text-indent: 0;
}
.cbdbc-home input.cbdbc-home__news-input:focus {
    outline: 2px solid var(--cbdbc-color-accent-pink);
    outline-offset: 1px;
}
.cbdbc-home button.cbdbc-home__news-btn {
    flex: 0 0 auto;
    font-family: var(--cbdbc-font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cbdbc-color-white);
    background: var(--cbdbc-color-hero-bg);
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    line-height: 1.2;
    text-indent: 0;
    transition: background-color 150ms ease;
}
.cbdbc-home button.cbdbc-home__news-btn:hover { background: var(--cbdbc-color-navy); }
.cbdbc-home label.cbdbc-home__news-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: var(--cbdbc-font-body);
    font-size: 0.75rem;
    color: #5F5B58;
    line-height: 1.4;
    text-indent: 0;
    margin: 0;
    cursor: pointer;
}
.cbdbc-home input.cbdbc-home__news-input,
.cbdbc-home__news-consent input[type="checkbox"] { accent-color: var(--cbdbc-color-hero-bg); }
.cbdbc-home__news-consent input[type="checkbox"] { margin-top: 0.15rem; flex: 0 0 auto; }
.cbdbc-home__news-msg {
    display: block;
    font-family: var(--cbdbc-font-body);
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0.6rem 0 0 0;
    padding: 0;
    text-indent: 0;
    min-height: 1em;
}
.cbdbc-home__news-msg[data-state="error"] { color: #B4453C; }
.cbdbc-home__news-msg[data-state="ok"]    { color: #2E6B3E; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .cbdbc-home__reviews-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cbdbc-home li.cbdbc-home__tstm-card { flex: 0 0 calc((100% - 1.25rem) / 2); }
}
@media (max-width: 640px) {
    .cbdbc-home__reviews { padding: 3rem 0; }
    .cbdbc-home__reviews .cbdbc-container { padding: 0 1.25rem; }
    .cbdbc-home li.cbdbc-home__tstm-card { flex: 0 0 86%; }
    .cbdbc-home button.cbdbc-home__tstm-arrow { top: auto; bottom: 0.5rem; transform: none; width: 36px; height: 36px; }
    .cbdbc-home button.cbdbc-home__tstm-arrow[data-cbdbc-dir="prev"] { left: 30%; }
    .cbdbc-home button.cbdbc-home__tstm-arrow[data-cbdbc-dir="next"] { right: 30%; }
    .cbdbc-home__tstm-carousel { padding-bottom: 3rem; }
}

/* ==========================================================================
   7. As featured in
   ========================================================================== */

.cbdbc-home__featured {
    background: var(--cbdbc-color-white);
    padding: 2.4rem 0;
    margin: 0;
    border-top: 1px solid #EFEBE3;
}
.cbdbc-home__featured .cbdbc-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}
.cbdbc-home h2.cbdbc-home__featured-title {
    display: inline-block;
    font-family: var(--cbdbc-font-heading);
    font-size: clamp(1.4rem, 2.3vw, 1.9rem);
    font-weight: 400;
    color: var(--cbdbc-color-navy);
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    text-indent: 0;
    margin: 0 0 1.9rem 0;
    padding: 0 0.6rem 0.85rem;
    background: url('../../images/homepage-2026/heading-underline.svg') no-repeat center bottom;
    background-size: 100% 9px;
}
.cbdbc-home__featured-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2.75rem;
    flex-wrap: wrap;
}
.cbdbc-home__featured img.cbdbc-home__featured-logo {
    display: block !important;
    height: 26px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .cbdbc-home__featured-logos { gap: 1.25rem 2rem; }
}
@media (max-width: 640px) {
    .cbdbc-home__featured { padding: 2rem 0; }
    .cbdbc-home__featured .cbdbc-container { padding: 0 1.25rem; }
    .cbdbc-home__featured img.cbdbc-home__featured-logo { height: 19px !important; }
}
   Newsletter — Contact Form 7 styling
   --------------------------------------------------------------------------
   CF7 renders its own markup, so target the elements it outputs and make them
   match the pink box design. The layout the form builder produces varies, so
   these rules are written to hold whether the email + button are on one line
   or stacked.
   ========================================================================== */

.cbdbc-home__news-form--cf7 .wpcf7 { margin: 0; }
.cbdbc-home__news-form--cf7 .wpcf7-form { margin: 0; }

/* email input */
.cbdbc-home__news-form--cf7 input[type="email"],
.cbdbc-home__news-form--cf7 input[type="text"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--cbdbc-font-body);
    font-size: 0.9rem;
    color: var(--cbdbc-color-text);
    background: var(--cbdbc-color-white);
    border: 1px solid #EAD3D1;
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    margin: 0 0 0.7rem 0;
    line-height: 1.2;
}
.cbdbc-home__news-form--cf7 input[type="email"]:focus,
.cbdbc-home__news-form--cf7 input[type="text"]:focus {
    outline: 2px solid var(--cbdbc-color-accent-pink);
    outline-offset: 1px;
}

/* submit button */
.cbdbc-home__news-form--cf7 input[type="submit"],
.cbdbc-home__news-form--cf7 button[type="submit"] {
    display: inline-block;
    width: 100%;
    font-family: var(--cbdbc-font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cbdbc-color-white);
    background: var(--cbdbc-color-hero-bg);
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    line-height: 1.2;
    transition: background-color 150ms ease;
    -webkit-appearance: none;
    appearance: none;
}
.cbdbc-home__news-form--cf7 input[type="submit"]:hover,
.cbdbc-home__news-form--cf7 button[type="submit"]:hover { background: var(--cbdbc-color-navy); }

/* consent checkbox row */
.cbdbc-home__news-form--cf7 .wpcf7-acceptance,
.cbdbc-home__news-form--cf7 .wpcf7-checkbox {
    display: block;
    margin: 0.75rem 0 0 0;
}
.cbdbc-home__news-form--cf7 .wpcf7-list-item { display: block; margin: 0; }
.cbdbc-home__news-form--cf7 .wpcf7-list-item-label,
.cbdbc-home__news-form--cf7 .wpcf7-acceptance label,
.cbdbc-home__news-form--cf7 .wpcf7-acceptance .wpcf7-list-item-label {
    font-family: var(--cbdbc-font-body);
    font-size: 0.75rem;
    color: #5F5B58;
    line-height: 1.4;
}
.cbdbc-home__news-form--cf7 input[type="checkbox"] {
    accent-color: var(--cbdbc-color-hero-bg);
    margin-right: 0.4rem;
    vertical-align: middle;
}

/* CF7 response + validation messages */
.cbdbc-home__news-form--cf7 .wpcf7-response-output {
    font-family: var(--cbdbc-font-body);
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0.7rem 0 0 0 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    border: none !important;
}
.cbdbc-home__news-form--cf7 .wpcf7-not-valid-tip {
    font-family: var(--cbdbc-font-body);
    font-size: 0.72rem;
    color: #B4453C;
}
.cbdbc-home__news-form--cf7 form.invalid .wpcf7-response-output,
.cbdbc-home__news-form--cf7 form.unaccepted .wpcf7-response-output,
.cbdbc-home__news-form--cf7 form.spam .wpcf7-response-output {
    background: #FBEAE8;
    color: #B4453C;
}
.cbdbc-home__news-form--cf7 form.sent .wpcf7-response-output {
    background: #E7F2E9;
    color: #2E6B3E;
}

/* CF7's AJAX spinner */
.cbdbc-home__news-form--cf7 .wpcf7-spinner { margin: 0.5rem auto 0; }
