/*
 * Shared brand/logo composition for the clinic Global Footer.
 * Loaded after the base footer stylesheet and scoped to the footer widget.
 */

.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-brand-column {
    --acgf-inline-logo-width: 62px;
    --acgf-inline-logo-gap: 12px;
    display: grid !important;
    grid-template-columns: var(--acgf-inline-logo-width) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: var(--acgf-inline-logo-gap) !important;
    align-items: center !important;
}

.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-logo {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    width: var(--acgf-inline-logo-width) !important;
    min-width: var(--acgf-inline-logo-width) !important;
    max-width: var(--acgf-inline-logo-width) !important;
    margin: 0 !important;
    overflow: visible !important;
}

.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-logo img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    transform-origin: center center !important;
}

.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-brand-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    margin: 0 !important;
}

.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-specialty {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    margin-top: 2px !important;
}

.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-description,
.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-contact-list,
.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-social {
    grid-column: 1 / -1 !important;
}

/* If no logo resolves, collapse the reserved logo column rather than leaving a gap. */
.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline:not(.acgf-has-brand-logo) .acgf-brand-column {
    grid-template-columns: minmax(0, 1fr) !important;
}

.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline:not(.acgf-has-brand-logo) .acgf-brand-name,
.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline:not(.acgf-has-brand-logo) .acgf-specialty,
.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline:not(.acgf-has-brand-logo) .acgf-description,
.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline:not(.acgf-has-brand-logo) .acgf-contact-list,
.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline:not(.acgf-has-brand-logo) .acgf-social {
    grid-column: 1 !important;
}

/* Keep RTL copy natural while allowing the logo and doctor name to sit together. */
.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-footer[dir="rtl"] .acgf-brand-name,
.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-footer[dir="rtl"] .acgf-specialty {
    text-align: right !important;
}

.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-footer[dir="ltr"] .acgf-brand-name,
.elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-footer[dir="ltr"] .acgf-specialty {
    text-align: left !important;
}

/* Stacked mode remains explicit and centered around the logo's own box. */
.elementor-widget-aliclick_global_footer.acgf-brand-layout-stacked .acgf-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.elementor-widget-aliclick_global_footer.acgf-brand-layout-stacked .acgf-logo img {
    display: block !important;
    height: auto !important;
    margin-inline: auto !important;
    object-fit: contain !important;
    transform-origin: center center !important;
}

@media (max-width: 767px) {
    .elementor-widget-aliclick_global_footer.acgf-brand-layout-inline .acgf-brand-column {
        --acgf-inline-logo-width: 50px;
        --acgf-inline-logo-gap: 10px;
    }
}
