/* ===================================================
   HOMEPAGE HERO (#av_section_1)
   + CTA buttons   (printed by the [mc_hero_ctas] shortcode)
   + trust bar     (printed by the [mc_trust_bar] shortcode)
   Enqueued only on the front page by inc/home-hero.php
   =================================================== */

#av_section_1 {
    /* Your existing brand colors, not the green from the mockup */
    --mc-primary: var(--enfold-main-color-primary, #efa300);
    --mc-on-primary: #2a2b3a; /* dark text on the amber button, same convention as the product page */
    --mc-ink: var(--enfold-main-color-heading, #46485f);
    --mc-body: #57564f;
    --mc-primary-soft: #fdf1d6;
    --mc-line: #e9e3da;
    --mc-hero-bg: #faf4ea; /* warm neutral backdrop, not tied to any brand color */
}
@supports (color: color-mix(in srgb, red, blue)) {
    #av_section_1 {
        --mc-primary-soft: color-mix(in srgb, var(--mc-primary) 16%, #fff);
    }
}

/* ---- Section backdrop ---- */
#av_section_1.container_wrap {
    background: var(--mc-hero-bg) !important;
    padding: 36px 0 !important; /* was 56px — shrinks the section's own top/bottom air */
}

/* Enfold gives each builder column a bottom margin meant for when
   columns stack on mobile (it keeps them apart once they're no
   longer side by side). On desktop, where this section's two
   columns sit in a row, that margin still adds invisible height
   under the row even though nothing stacks. Reset it here. */
#av_section_1 .av_three_fifth,
#av_section_1 .av_two_fifth {
    margin-bottom: 0 !important;
}

/* Some Enfold section templates also pad the inner .container,
   stacking a second padding on top of the container_wrap padding
   above. Zero it out so height is controlled by one rule, not two. */
#av_section_1 > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.av-content-full {
    padding: 20px 0px !important;
}

/* ---- Heading + paragraph (content itself stays editable in the builder) ---- */
#av_section_1 h1 {
    font-family: 'Lora', Georgia, 'Times New Roman', serif !important;
    font-size: clamp(32px, 4vw, 46px) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: var(--mc-ink) !important;
    margin: 0 0 18px !important;
}
#av_section_1 .av_textblock_section p {
    font-size: 17px !important;
    line-height: 1.6 !important;
    color: var(--mc-body) !important;
    max-width: 46ch;
    margin: 0 !important;
}

/* ---- Hero image: fluid instead of a hard 355px box ---- */
#av_section_1 .heroimage {
    width: 100%;
}
#av_section_1 .heroimage .avia-image-container-inner {
    display: flex;
    justify-content: center;
}
#av_section_1 .heroimage img {
    width: 100% !important;
    height: auto !important;
    max-width: 480px;
    border-radius: 20px;
}

/* ---- CTA buttons ---- */
.mc-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.mc-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.mc-hero-btn--primary {
    background: var(--mc-primary) !important;
    color: var(--mc-on-primary) !important;
    border: 1.5px solid var(--mc-primary) !important;
}
.mc-hero-btn--primary:hover {
    background: var(--mc-primary) !important;
    color: var(--mc-on-primary) !important;
    border-color: var(--mc-primary) !important;
    filter: brightness(0.94);
}
.mc-hero-btn--secondary {
    background: transparent !important;
    color: var(--mc-ink) !important;
    border: 1.5px solid var(--mc-ink) !important;
}
.mc-hero-btn--secondary:hover {
    background: var(--mc-ink) !important;
    color: #ffffff !important;
    border-color: var(--mc-ink) !important;
}

/* ---- Trust bar: own full-width strip under the hero ----
   The shortcode wraps this <ul> in Enfold's own .container div (the
   same wrapper the theme uses for the hero content above), so the
   bar inherits the page's real content width/alignment instead of a
   guessed max-width here. This rule only handles the row layout. */
.mc-trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* was unset (defaults to stretch) — if any item's
                            text wrapped to a different number of lines
                            than its neighbors, stretch could give items
                            different heights, so each item's own
                            align-items:center centered its icon against a
                            different box, throwing icons out of line with
                            each other even though each one looked
                            "centered" on its own. */
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 28px 0;
    list-style: none;
    /* border-top: 1px solid var(--mc-line, #e9e3da); */
}
.mc-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 220px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mc-trust-item::before { content: none !important; } /* strip any theme bullet */

.mc-trust-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    align-self: center; /* belt-and-braces alongside the align-items above */
    border-radius: 50%;
    background: var(--mc-primary-soft, #fdf1d6);
    color: var(--mc-ink, #46485f);
}
.mc-trust-icon svg {
    width: 22px;
    height: 22px;
}

.mc-trust-item span {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: var(--mc-body, #57564f);
}
.mc-trust-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--mc-ink, #46485f);
}

/* Fade-up on scroll: progressive enhancement only.
   home-hero.js adds .will-animate before observing, so if JS is
   blocked these items simply stay visible with no animation. */
.mc-trust-item.will-animate {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.mc-trust-item.will-animate.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .mc-trust-item.will-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---- Responsive ----
   Enfold already collapses columns via its own responsive JS/CSS,
   this is a plain media-query backup so it's correct immediately,
   not only after that JS runs. */
@media (max-width: 989px) {
    #av_section_1 .av_three_fifth,
    #av_section_1 .av_two_fifth {
        width: 100% !important;
    }
    #av_section_1 .heroimage {
        margin-top: 28px;
    }
    #av_section_1 h1 {
        font-size: clamp(28px, 6vw, 36px) !important;
    }
}

@media (max-width: 640px) {
    #av_section_1.container_wrap {
        padding: 36px 0 !important;
    }
    .mc-hero-ctas {
        flex-direction: column;
    }
    .mc-hero-btn {
        width: 100%;
    }
    .mc-trust-bar {
        flex-direction: column;
        gap: 18px;
        padding: 22px 0;
    }
    /* .mc-trust-item carries `flex: 1 1 220px` for the desktop ROW
       layout, where 220px is a WIDTH hint. Once .mc-trust-bar above
       switches to flex-direction:column, that same 220px gets
       reinterpreted as a minimum HEIGHT instead — and since the
       column has no fixed height to shrink against, each of the 3
       items was rendering at a forced ~220px tall, which is what
       read as "too much space between the points". Resetting the
       basis to auto here sizes each item by its actual content
       height instead, so the only gap between them is the 18px
       above. */
    .mc-trust-item {
        flex: 0 1 auto;
    }
}


.el_before_av_codeblock {
    display: none !important;
}



.column-top-margin {
    margin-top: 20px !important;
}


/* ===== Trust bar on mobile: 2 per row, left-aligned ===== */
@media (max-width: 640px) {
    .mc-trust-bar {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
        align-items: start;
        justify-items: start;
        padding: 22px 0;
        margin: 0;
    }
    .mc-trust-item {
        flex: none;
        width: 100%;
        gap: 10px;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }
    .mc-trust-icon {
        width: 40px;
        height: 40px;
    }
    .mc-trust-icon svg {
        width: 20px;
        height: 20px;
    }
    .mc-trust-item span { font-size: 13px; }
    .mc-trust-item strong { font-size: 14px; }
}

/* Very small phones: slightly tighter so text doesn't squeeze */
@media (max-width: 360px) {
    .mc-trust-bar { gap: 14px 10px; }
    .mc-trust-icon { width: 36px; height: 36px; }
    .mc-trust-icon svg { width: 18px; height: 18px; }
    .mc-trust-item span { font-size: 12px; }
    .mc-trust-item strong { font-size: 13px; }
}

.el_after_av_textblock {
    display: none !important;
}