/* Bio Herbal Farm - header, home hero and footer (ecommerce theme) */

.bhf-header,
.bhf-hero,
.bhf-footer {
    --bhf-green: #2D4A22;
    --bhf-green-deep: #1C2E15;
    --bhf-green-ink: #16210F;
    --bhf-gold: #A47E3B;
    --bhf-gold-light: #D9B872;
    --bhf-cream: #F6F1DE;
    --bhf-text: #2C3E50;
    font-family: 'Roboto', sans-serif;
}

.bhf-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.bhf-header ul,
.bhf-hero ul,
.bhf-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bhf-header a,
.bhf-hero a,
.bhf-footer a {
    text-decoration: none;
}

.bhf-header a:focus-visible,
.bhf-header button:focus-visible,
.bhf-header input:focus-visible,
.bhf-hero a:focus-visible,
.bhf-footer a:focus-visible,
.bhf-footer button:focus-visible,
.bhf-footer input:focus-visible {
    outline: 2px solid var(--bhf-gold-light);
    outline-offset: 3px;
}

/* ---------- buttons ---------- */

.bhf-btn {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.bhf-btn-green {
    background-color: var(--bhf-green);
    border-color: var(--bhf-green);
    color: #fff;
}

.bhf-btn-green:hover {
    background-color: var(--bhf-green-deep);
    border-color: var(--bhf-green-deep);
    color: #fff;
}

.bhf-btn-cream {
    background-color: var(--bhf-cream);
    border-color: var(--bhf-cream);
    color: var(--bhf-green-deep);
}

.bhf-btn-cream:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--bhf-green-deep);
}

.bhf-btn-outline {
    border-color: rgba(246, 241, 222, 0.55);
    color: var(--bhf-cream);
}

.bhf-btn-outline:hover {
    border-color: var(--bhf-cream);
    background-color: rgba(246, 241, 222, 0.1);
    color: #fff;
}

/* ---------- top bar ---------- */

.bhf-topbar {
    background-color: var(--bhf-green-ink);
    color: var(--bhf-cream);
    font-size: 13px;
}

.bhf-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.bhf-topbar-contact,
.bhf-topbar-tools {
    display: flex;
    align-items: center;
    gap: 22px;
}

.bhf-topbar-tools {
    gap: 16px;
}

.bhf-topbar a {
    color: var(--bhf-cream);
    transition: color 0.2s;
}

.bhf-topbar a:hover {
    color: var(--bhf-gold-light);
}

.bhf-topbar-contact i,
.bhf-topbar-tools li:not(.bhf-topbar-social) i {
    margin-right: 8px;
    color: var(--bhf-gold-light);
}

.bhf-topbar select {
    height: 28px;
    padding: 0 6px;
    border: 1px solid rgba(246, 241, 222, 0.3);
    border-radius: 2px;
    background-color: transparent;
    color: var(--bhf-cream);
    font-size: 12px;
}

.bhf-topbar select option {
    color: #333;
}

/* ---------- main navigation ---------- */

.bhf-navbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 990;
    background-color: #fff;
    box-shadow: 0 1px 0 rgba(45, 74, 34, 0.1), 0 6px 18px rgba(22, 33, 15, 0.05);
}

/* sticky needs the header box to be as tall as the page */
.bhf-header {
    display: contents;
}

.bhf-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.bhf-logo img {
    display: block;
    max-height: 58px;
    width: auto;
}

.bhf-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.bhf-menu > ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bhf-menu li {
    position: relative;
}

.bhf-menu > ul > li > a {
    display: block;
    padding: 30px 14px;
    color: var(--bhf-green-deep);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s;
}

.bhf-menu > ul > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 22px;
    height: 2px;
    background-color: var(--bhf-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}

.bhf-menu > ul > li:hover > a,
.bhf-menu > ul > li.is-current > a {
    color: var(--bhf-green);
}

.bhf-menu > ul > li:hover > a::after,
.bhf-menu > ul > li.is-current > a::after {
    transform: scaleX(1);
}

.bhf-sub-toggle {
    display: none;
}

.bhf-menu .has-sub > a {
    padding-right: 28px;
}

.bhf-menu .has-sub > a::before {
    content: "\f107";
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -8px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    line-height: 16px;
    color: var(--bhf-gold);
}

.bhf-menu .bhf-sub,
.bhf-menu .bhf-sub ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    padding: 8px 0;
    background-color: #fff;
    border-top: 2px solid var(--bhf-gold);
    box-shadow: 0 14px 30px rgba(22, 33, 15, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.bhf-menu .bhf-sub ul {
    top: -10px;
    left: 100%;
}

.bhf-menu li:hover > .bhf-sub,
.bhf-menu li:focus-within > .bhf-sub,
.bhf-menu .bhf-sub li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bhf-menu .bhf-sub a {
    display: block;
    padding: 10px 20px;
    color: var(--bhf-text);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s;
}

.bhf-menu .bhf-sub a:hover {
    background-color: #F4F6F1;
    color: var(--bhf-green);
}

.bhf-search {
    position: relative;
    width: 220px;
    margin: 0;
}

.bhf-search input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 16px;
    border: 1px solid #DDE3D8;
    border-radius: 2px;
    background-color: #F7F8F4;
    color: var(--bhf-text);
    font-size: 14px;
    transition: border-color 0.2s, background-color 0.2s;
}

.bhf-search input:focus {
    border-color: var(--bhf-green);
    background-color: #fff;
    outline: none;
}

.bhf-search button {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: var(--bhf-green);
    cursor: pointer;
}

.bhf-nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 12px 10px;
    border: 1px solid #DDE3D8;
    border-radius: 2px;
    background-color: #fff;
    cursor: pointer;
}

.bhf-nav-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background-color: var(--bhf-green-deep);
    transition: transform 0.2s, opacity 0.2s;
}

.bhf-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.bhf-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.bhf-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---------- home hero ---------- */

.bhf-hero {
    background-color: var(--bhf-green);
    color: var(--bhf-cream);
    overflow: hidden;
}

.bhf-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 64px;
    padding-top: 84px;
    padding-bottom: 96px;
}

.bhf-hero .bhf-hero-text h1 {
    max-width: 14em;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.bhf-hero-lead {
    max-width: 34em;
    margin: 0 0 34px;
    color: rgba(246, 241, 222, 0.86);
    font-size: 18px;
    line-height: 1.7;
}

.bhf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.bhf-hero-certs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding-top: 26px;
    border-top: 1px solid rgba(246, 241, 222, 0.2);
    color: var(--bhf-cream);
}

.bhf-hero-cert {
    padding: 6px 12px;
    border: 1px solid rgba(217, 184, 114, 0.6);
    border-radius: 2px;
    color: var(--bhf-gold-light);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.bhf-hero-certs-link {
    margin-left: 6px;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(246, 241, 222, 0.5);
}

.bhf-hero-certs:hover {
    color: #fff;
}

.bhf-hero-certs:hover .bhf-hero-certs-link {
    text-decoration-color: #fff;
}

/* sample tray */

.bhf-tray {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 26px;
    padding-bottom: 44px;
}

.bhf-tray li:nth-child(3n + 2) {
    transform: translateY(44px);
}

.bhf-tray a {
    display: block;
    color: var(--bhf-cream);
    text-align: center;
}

.bhf-tray-dish {
    display: block;
    padding: 7px;
    border: 1px solid rgba(217, 184, 114, 0.55);
    border-radius: 50%;
    transition: border-color 0.25s, padding 0.25s;
}

.bhf-tray-dish img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
}

.bhf-tray a:hover .bhf-tray-dish,
.bhf-tray a:focus-visible .bhf-tray-dish {
    border-color: var(--bhf-gold-light);
    padding: 4px;
}

.bhf-tray-name {
    display: block;
    margin-top: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
    .bhf-tray li {
        opacity: 0;
        animation: bhf-dish-in 0.6s ease-out forwards;
    }

    .bhf-tray li:nth-child(2) { animation-delay: 0.08s; }
    .bhf-tray li:nth-child(3) { animation-delay: 0.16s; }
    .bhf-tray li:nth-child(4) { animation-delay: 0.24s; }
    .bhf-tray li:nth-child(5) { animation-delay: 0.32s; }
    .bhf-tray li:nth-child(6) { animation-delay: 0.4s; }

    @keyframes bhf-dish-in {
        from { opacity: 0; scale: 0.92; }
        to { opacity: 1; scale: 1; }
    }
}

/* ---------- footer ---------- */

.bhf-footer {
    background-color: var(--bhf-green-ink);
    border-top: 4px solid var(--bhf-gold);
    color: rgba(246, 241, 222, 0.78);
    font-size: 15px;
    line-height: 1.7;
}

.bhf-footer-main {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 1.2fr;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 60px;
}

.bhf-footer-logo {
    display: inline-block;
    margin-bottom: 22px;
    padding: 10px 14px;
    border-radius: 2px;
    background-color: #fff;
}

.bhf-footer-logo img {
    display: block;
    max-height: 54px;
    width: auto;
}

.bhf-footer-brand p {
    max-width: 30em;
    margin: 0;
    color: rgba(246, 241, 222, 0.78);
}

.bhf-footer .bhf-footer-col h4 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.bhf-footer-col p {
    margin: 0 0 16px;
    color: rgba(246, 241, 222, 0.78);
}

.bhf-footer-links li + li,
.bhf-footer-contact li + li {
    margin-top: 10px;
}

.bhf-footer a {
    color: rgba(246, 241, 222, 0.78);
    transition: color 0.2s;
}

.bhf-footer a:hover {
    color: var(--bhf-gold-light);
}

.bhf-footer-contact li {
    display: flex;
    gap: 12px;
}

.bhf-footer-contact i {
    flex: none;
    width: 16px;
    margin-top: 6px;
    color: var(--bhf-gold-light);
    text-align: center;
}

.bhf-footer-contact a,
.bhf-footer-contact span {
    overflow-wrap: anywhere;
}

.bhf-footer-bottom {
    border-top: 1px solid rgba(246, 241, 222, 0.12);
    font-size: 13px;
}

.bhf-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.bhf-footer-copyright,
.bhf-footer-copyright p,
.bhf-footer-copyright span {
    margin: 0;
    color: rgba(246, 241, 222, 0.6);
    font-size: 13px !important;
}

.bhf-footer-social {
    display: flex;
    gap: 8px;
}

.bhf-footer-social a {
    display: block;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(246, 241, 222, 0.22);
    border-radius: 50%;
    line-height: 34px;
    text-align: center;
}

.bhf-footer-social a:hover {
    border-color: var(--bhf-gold-light);
}

/* the theme colours every submit button with the admin base colour; keep ours on brand */

button.bhf-btn-green[type="submit"] {
    background-color: var(--bhf-green);
    border: 1px solid var(--bhf-green);
    color: #fff;
}

button.bhf-btn-green[type="submit"]:hover {
    background-color: var(--bhf-green-deep);
    border-color: var(--bhf-green-deep);
    color: #fff;
}

.bhf-search button[type="submit"],
.bhf-search button[type="submit"]:hover {
    border: 0;
    background: none;
    color: var(--bhf-green);
}

/* ---------- responsive ---------- */

@media (max-width: 1280px) {
    .bhf-search {
        width: 180px;
    }

    .bhf-menu > ul > li > a {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bhf-menu > ul > li > a::after {
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 1100px) {
    .bhf-nav-toggle {
        display: block;
    }

    .bhf-navbar-inner {
        flex-wrap: wrap;
        min-height: 72px;
    }

    .bhf-logo img {
        max-height: 50px;
    }

    .bhf-nav {
        display: none;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        max-height: calc(100vh - 72px);
        padding: 8px 0 24px;
        border-top: 1px solid #E6EAE2;
        overflow-y: auto;
    }

    .bhf-nav.is-open {
        display: flex;
    }

    .bhf-menu > ul {
        display: block;
    }

    .bhf-menu > ul > li {
        border-bottom: 1px solid #EEF1EB;
    }

    .bhf-menu > ul > li > a {
        padding: 14px 0;
        white-space: normal;
    }

    .bhf-menu > ul > li > a::after,
    .bhf-menu .has-sub > a::before {
        display: none;
    }

    .bhf-menu .has-sub > a {
        padding-right: 56px;
    }

    .bhf-sub-toggle {
        display: block;
        position: absolute;
        top: 4px;
        right: 0;
        width: 44px;
        height: 44px;
        border: 0;
        background: none;
        color: var(--bhf-green);
        cursor: pointer;
    }

    .bhf-menu .has-sub.is-open > .bhf-sub-toggle i {
        transform: rotate(180deg);
    }

    .bhf-menu .bhf-sub,
    .bhf-menu .bhf-sub ul {
        display: none;
        position: static;
        min-width: 0;
        padding: 0 0 10px 14px;
        border-top: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .bhf-menu .has-sub.is-open > .bhf-sub,
    .bhf-menu .has-sub.is-open > .bhf-sub ul {
        display: block;
    }

    .bhf-menu .bhf-sub a {
        padding: 10px 0;
    }

    .bhf-search {
        width: 100%;
    }

    .bhf-nav-quote {
        width: 100%;
    }

    .bhf-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }
}

@media (max-width: 991px) {
    .bhf-hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 56px;
        padding-bottom: 64px;
    }

    .bhf-tray {
        max-width: 520px;
        gap: 22px 18px;
        padding-bottom: 0;
    }

    .bhf-tray li:nth-child(3n + 2) {
        transform: none;
    }
}

@media (max-width: 600px) {
    .bhf-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .bhf-topbar-inner {
        justify-content: center;
    }

    .bhf-topbar-tools {
        display: none;
    }

    .bhf-topbar-contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 18px;
        padding: 8px 0;
    }

    .bhf-hero-lead {
        font-size: 16px;
    }

    .bhf-hero-actions .bhf-btn {
        flex: 1 1 100%;
    }

    .bhf-tray-name {
        font-size: 13px;
    }

    .bhf-footer-main {
        grid-template-columns: 1fr;
        padding-top: 52px;
        padding-bottom: 44px;
    }

    .bhf-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* WhatsApp button: opens the chat with the site's number */
.bhf-whatsapp {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 99;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 1px 1px 4px rgba(60, 60, 60, .4);
    transition: box-shadow .2s;
}
.bhf-whatsapp:hover,
.bhf-whatsapp:focus-visible {
    box-shadow: 1px 2px 10px rgba(60, 60, 60, .6);
}
.bhf-whatsapp img {
    display: block;
    width: 100%;
    height: 100%;
}
