/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* offset for sticky header */
}

/* Bee Bros Custom Styles — Divi-to-Blocks equivalents */

/* ============================
   Header & Honey Drip
   ============================ */
/* Kill WP's default block spacing on header template part */
header.wp-block-template-part {
    margin-block-start: 0 !important;
    position: sticky;
    top: 0;
    z-index: 100;
}
.bb-header {
    position: relative;
    z-index: 100;
    background: transparent !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}
/* Honey drip — full-width tiled background behind header */
header.wp-block-template-part::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 280px;
    background-image: url('https:/https://unified-r2.dave-d42.workers.dev/beebroshttps://unified-r2.dave-d42.workers.dev/beebros/wp-content/uploads/2025/02/honey-drip-bg-1024x363.png');
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: left top;
    z-index: -1;
    pointer-events: none;
}

/* Nav CTA button — pill shape, gold fill, dark text (matches Divi) */
.bb-nav-cta .wp-block-button__link {
    background: #f79f07 !important;
    color: #25212b !important;
    border: 2px solid #25212b !important;
    border-radius: 50px !important;
    font-family: sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px !important;
    letter-spacing: 0;
    padding: 10px 20px !important;
    box-shadow: 0 5px 10px rgba(0, 0, 16, 0.68);
    transition: all 0.3s ease;
}
.bb-nav-cta .wp-block-button__link:hover {
    background: #2c3d49 !important;
    color: #f79f07 !important;
    border-color: #25212b !important;
    box-shadow: 0 3px 14px rgba(0, 0, 32, 0.4);
}

/* Gold button style — used throughout page */
.bb-gold-btn .wp-block-button__link {
    background: transparent !important;
    color: #f79f07 !important;
    border: 2px solid #f79f07 !important;
    border-radius: 3px !important;
    font-weight: 500;
    font-size: 16px;
    padding: 0.3em 1em;
    line-height: 1.7em;
    transition: all 0.3s ease;
}
.bb-gold-btn .wp-block-button__link:hover {
    background: #f79f07 !important;
    color: #fff !important;
    border-color: #c47f00 !important;
    border-radius: 0 !important;
}

/* ============================
   Section Label (replaces Divi subtitle pattern)
   ============================ */
.is-style-section-label {
    font-family: var(--wp--preset--font-family--body);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--wp--preset--color--accent);
    margin-bottom: 20px;
}

/* ============================
   Card Style
   ============================ */
.is-style-card {
    background: var(--wp--preset--color--ice-blue);
    border-radius: 15px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.is-style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 33, 43, 0.1);
}

/* ============================
   Animated Counter
   ============================ */
.is-style-counter .bb-counter-value {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    color: var(--wp--preset--color--dark);
    text-align: center;
    line-height: 1;
    margin-bottom: 0;
}
.is-style-counter .bb-counter-label {
    font-family: var(--wp--preset--font-family--body);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wp--preset--color--dark);
    text-align: center;
    font-size: 14px;
}

/* ============================
   FAQ Accordion (replaces dipi_faq)
   ============================ */
.is-style-faq-item {
    background: #FCE9BD;
    border-radius: 10px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin-bottom: 15px;
    padding: 5px 20px;
    transition: background 0.3s ease;
    overflow: hidden;
}
.is-style-faq-item[open] {
    background: #F79F07;
}
.is-style-faq-item summary {
    font-family: var(--wp--preset--font-family--heading);
    text-transform: uppercase;
    font-size: 17px;
    color: #25212B;
    padding: 15px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}
.is-style-faq-item summary:hover {
    color: #C47F00;
}
.is-style-faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: #F79F07;
    transition: color 0.3s ease;
}
.is-style-faq-item[open] summary::after {
    content: '−';
    color: #25212B;
}
.is-style-faq-item[open] summary {
    color: #25212B;
}
.is-style-faq-item summary::-webkit-details-marker {
    display: none;
}
.is-style-faq-item summary:focus,
.is-style-faq-item summary:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}
.is-style-faq-item > :not(summary) {
    font-family: var(--wp--preset--font-family--body);
    color: rgba(37, 33, 43, 0.66);
    font-size: 14px;
    line-height: 1.9;
    padding: 0 20px 20px;
}

/* ============================
   Hover Box (replaces dipi_hover_box)
   ============================ */
.is-style-hover-box {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.4s ease;
}
.is-style-hover-box:hover {
    transform: scale(1.02);
}
.is-style-hover-box .bb-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(37, 33, 43, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: background 0.3s ease;
}
.is-style-hover-box:hover .bb-hover-overlay {
    background: linear-gradient(180deg, transparent 20%, rgba(30, 203, 248, 0.85) 100%);
}

/* ============================
   Testimonial Card
   ============================ */
.is-style-testimonial-card {
    background: var(--wp--preset--color--ice-blue);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}
.is-style-testimonial-card .bb-stars {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 15px;
}
.is-style-testimonial-card blockquote {
    font-style: italic;
    color: rgba(37, 33, 43, 0.7);
    line-height: 1.8;
    border: none;
    padding: 0;
    margin: 0 0 20px;
}
.is-style-testimonial-card .bb-author {
    font-weight: 600;
    color: var(--wp--preset--color--dark);
}

/* ============================
   Pricing Table
   ============================ */
.is-style-pricing-table {
    background: var(--wp--preset--color--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid var(--wp--preset--color--ice-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.is-style-pricing-table:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 33, 43, 0.1);
}
.is-style-pricing-table.bb-featured {
    border-color: var(--wp--preset--color--primary);
    transform: scale(1.05);
}
.is-style-pricing-table .bb-price {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 3rem;
    color: var(--wp--preset--color--dark);
    line-height: 1;
}
.is-style-pricing-table .bb-price-period {
    font-size: 14px;
    color: rgba(37, 33, 43, 0.5);
}

/* ============================
   Star Rating
   ============================ */
.is-style-star-rating {
    color: #FFD700;
    font-size: 18px;
    letter-spacing: 3px;
}

/* ============================
   Masonry Gallery
   ============================ */
.is-style-masonry {
    columns: 3;
    column-gap: 16px;
}
.is-style-masonry .wp-block-image {
    break-inside: avoid;
    margin-bottom: 16px;
}
@media (max-width: 782px) {
    .is-style-masonry {
        columns: 2;
    }
}
@media (max-width: 480px) {
    .is-style-masonry {
        columns: 1;
    }
}

/* ============================
   Tabs (replaces dipi_advanced_tabs)
   ============================ */
.bb-tabs {
    width: 100%;
}
.bb-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.bb-tabs-nav button {
    font-family: var(--wp--preset--font-family--heading);
    text-transform: uppercase;
    font-size: 14px;
    padding: 15px 20px;
    background: #fcfcfc;
    border: none;
    border-bottom: 5px solid var(--wp--preset--color--white);
    cursor: pointer;
    color: rgba(37, 33, 43, 0.25);
    transition: color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}
.bb-tabs-nav button:hover,
.bb-tabs-nav button.active {
    color: var(--wp--preset--color--dark);
    border-bottom-color: var(--wp--preset--color--primary);
    background: var(--wp--preset--color--white);
}
.bb-tabs-nav button img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: filter 0.3s, opacity 0.3s;
}
.bb-tabs-nav button:hover img,
.bb-tabs-nav button.active img {
    filter: none;
    opacity: 1;
}
.bb-tab-panel {
    display: none;
    background: var(--wp--preset--color--ice-blue);
    border-radius: 20px;
    padding: 30px 50px;
    animation: fadeInUp 0.4s ease;
}
.bb-tab-panel.active {
    display: block;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================
   Carousel (replaces dipi_carousel)
   ============================ */
.bb-carousel {
    position: relative;
    overflow: hidden;
}
.bb-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.bb-carousel-slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}
.bb-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.bb-carousel-nav:hover {
    background: var(--wp--preset--color--primary-dark);
}
.bb-carousel-nav.prev { left: -25px; }
.bb-carousel-nav.next { right: -25px; }
@media (max-width: 782px) {
    .bb-carousel-slide { flex: 0 0 50%; }
}
@media (max-width: 480px) {
    .bb-carousel-slide { flex: 0 0 100%; }
}

/* ============================
   Blog Card (replaces dipi_blog_slider items)
   ============================ */
.bb-blog-card {
    border-radius: 15px;
    overflow: hidden;
    background: var(--wp--preset--color--white);
}
.bb-blog-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.bb-blog-card .bb-blog-meta {
    padding: 20px;
}
.bb-blog-card .bb-blog-cat,
.bb-blog-card .taxonomy-category {
    font-family: var(--wp--preset--font-family--body);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wp--preset--color--accent);
    font-size: 12px;
    margin-bottom: 10px;
}
.bb-blog-card .taxonomy-category a {
    color: var(--wp--preset--color--accent);
    text-decoration: none;
}

/* Service area list — multi-column layout */
.bb-service-list {
    list-style: disc;
    padding-left: 20px;
}
.bb-service-list li {
    font-size: 15px;
}

/* ============================
   CTA Section pattern
   ============================ */
.bb-cta-section {
    background: var(--wp--preset--color--light-blue);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
}
.bb-cta-section h2,
.bb-cta-section h3 {
    color: var(--wp--preset--color--dark);
}

/* ============================
   Hero Section (first cover block on homepage)
   ============================ */
.home .wp-block-cover:first-of-type {
    min-height: 85vh !important;
    background-color: transparent !important;
    background-image: none !important;
}
.home .wp-block-cover:first-of-type .wp-block-cover__background {
    display: none !important;
}
.home .wp-block-cover:first-of-type .wp-block-cover__image-background {
    display: none !important;
}
.home .wp-block-cover:first-of-type .wp-block-cover__inner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

/* Push main content below the honey drip overhang */
main.wp-block-group {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* Hero text — dark on light honeycomb (override white text from block editor) */
.home .wp-block-cover:first-of-type .has-white-color {
    color: #25212b !important;
}
.home .wp-block-cover:first-of-type .bb-gold-btn .wp-block-button__link {
    color: #f79f07 !important;
}

/* Page body honeycomb background */
body.home {
    background-image: url('https:/https://unified-r2.dave-d42.workers.dev/beebroshttps://unified-r2.dave-d42.workers.dev/beebros/wp-content/uploads/2025/03/honeycomb-bg2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
}

/* Content sections get white bg to cover honeycomb — but NOT the main wrapper */
body.home main > .wp-block-group:not(.has-background):not(.bb-sticky-bar):not(.bb-header) {
    background-color: #fff;
}
/* Hero cover should NOT get white background — show body honeycomb through */
body.home .wp-block-cover:first-of-type {
    background-color: transparent !important;
}

/* About section — warm beige already set inline, add wave divider effect */
.home .wp-block-group[style*="eae5d7"] {
    position: relative;
}
.home .wp-block-group[style*="eae5d7"]::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: #eae5d7;
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* Relocation cover section — lighter honeycomb overlay */
.home .wp-block-cover:nth-of-type(3) .wp-block-cover__background {
    opacity: 0.5 !important;
}

/* ============================
   Video Play Button overlay
   ============================ */
.bb-play-button {
    width: 80px;
    height: 80px;
    background: var(--wp--preset--color--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 0 10px rgba(143, 229, 252, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.bb-play-button:hover {
    transform: scale(1.1);
}
.bb-play-button svg {
    fill: var(--wp--preset--color--primary);
    margin-left: 5px;
}

/* ============================
   Doctor/Team Cards
   ============================ */
.bb-team-card {
    background: var(--wp--preset--color--white);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}
.bb-team-card:hover {
    transform: translateY(-5px);
}
.bb-team-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.bb-team-card .bb-team-info {
    padding: 20px;
}

/* ============================
   Sticky Bottom Bar (matches Divi footer CTA)
   ============================ */
.bb-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    text-align: center;
    padding: 12px 20px;
}
.bb-sticky-bar .wp-block-button__link {
    font-family: var(--wp--preset--font-family--heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================
   Footer Contact Section
   ============================ */
.bb-footer-phone {
    font-family: var(--wp--preset--font-family--heading);
    text-transform: uppercase;
}
.bb-footer-phone a {
    color: #fff !important;
    text-decoration: none;
}
.bb-footer-phone a:hover {
    color: #f79f07 !important;
}
.bb-footer-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.bb-footer-btns .wp-block-button__link {
    min-width: 120px;
}

/* ============================
   Blog cards — image height and hover
   ============================ */
.bb-blog-card {
    box-shadow: 0 2px 12px rgba(37, 33, 43, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bb-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 33, 43, 0.12);
}
.bb-blog-card .wp-block-post-featured-image img {
    height: 250px;
    object-fit: cover;
}

/* Service area — map + list improvements */
.bb-service-list {
    columns: 1;
}
.bb-service-list li {
    font-size: 14px;
    line-height: 2;
    color: #25212b;
}

/* Sticky bar — ensure it sits above everything */
.bb-sticky-bar {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

/* Footer — account for sticky bar */
body.home {
    padding-bottom: 60px;
}

/* ============================
   Responsive utilities
   ============================ */
@media (max-width: 782px) {
    .bb-tab-panel { padding: 20px; }
    .bb-tabs-nav button { min-width: 80px; font-size: 12px; padding: 10px; }
    .bb-cta-section { padding: 40px 20px; }
    .bb-nav-cta .wp-block-button__link {
        background: #de8026 !important;
        color: #fff !important;
        border: none !important;
        padding: 12px 20px !important;
    }
}
