/* VEDERA 1.4.0 — final, scoped corrections, loaded after the NOVA theme. */

/* 1: Keep one deliberate gap between navigation and the opening. */
#content-wrapper:has(.vedera-home) { margin-top: 0; padding-top: 0; }
#content-wrapper:has(.vedera-home) > .breadcrumb-container:empty { display: none; }
.vedera-home { padding-top: clamp(28px, 3vw, 42px); padding-bottom: 32px; }
.vedera-home .vedera-hero {
    min-height: 0;
    padding: 0;
    align-items: start;
}
.vedera-home .vedera-hero__copy { padding-top: 12px; }
.vedera-home .vedera-hero__media { padding: 0; background: transparent; }
.vedera-home .vedera-hero--text { padding: 0; }

/* 4: Natural image proportions and a readable caption immediately below. */
.vedera-home .vedera-hero__product > picture { display: block; }
.vedera-home .vedera-hero__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    aspect-ratio: auto;
    object-fit: contain;
}
.vedera-home .vedera-hero__caption {
    margin-top: 8px;
    padding-top: 8px;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 550;
    line-height: 1.45;
}

/* 5: Original logos retain their proportions and colours. */
.vedera-brands .vedera-brands__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 20px;
    align-items: center;
}
.vedera-brands__list > li { min-width: 0; }
.vedera-brands__list a.vedera-brands__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 76px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 2px;
}
.vedera-brands__link:hover { border-color: #d7dedf; background: #fff; }
.vedera-brands__logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
}
.vedera-brands__logo-frame picture { display: contents; }
.vedera-brands__logo {
    display: block;
    width: 100%;
    height: 60px;
    max-width: none;
    object-fit: contain;
}
.vedera-brands__fallback { font-size: 18px; font-weight: 550; text-align: center; }

/* 3: The server-side placement is removed; also guard cached legacy markup. */
.vedera-review { display: none !important; }

/* Keep header rating and contact links usable on narrow screens. */
.vd-contact-bar .vedera-google-rating { min-height: 36px; }

/* 6: Compact width and padding, with a 44px touch target. */
#footer .newsletter-footer .input-group-append .btn {
    min-width: 0 !important;
    width: auto;
    min-height: 44px;
    padding: 8px 16px;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .vedera-home { padding-top: 28px; }
    .vedera-home .vedera-hero__copy { padding-top: 0; }
    .vedera-brands .vedera-brands__list { gap: 10px; }
}
@media (max-width: 767.98px) {
    .vedera-brands .vedera-brands__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .vedera-home { padding-top: 24px; padding-bottom: 24px; }
    .vedera-home .vedera-hero { gap: 24px; }
    .vedera-home .vedera-hero__image { max-height: 340px; }
    .vedera-home .vedera-hero__caption { font-size: 15px; }
    .vedera-brands .vedera-brands__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vedera-brands__list > li:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 5px); justify-self: center; }
    .vd-contact-bar .vedera-google-rating { margin-left: 0; justify-content: center; }
    #footer .newsletter-footer .input-group-append .btn { padding-left: 12px; padding-right: 12px; }
}
