/* meenzdog – footer (W4): the converted Salient "Footer" global section
   (Salient 1172 → nb_section 3330) rendered by footer.php. Measured on Salient
   at 1440 (impressum, scratchpad/w4/sal-footer-dom-1440.txt):
   .nectar-global-section white, row 1 rgba(44,89,116,.89) 549px: col 1 content
   518 wide vertically centred (padding-right 124.5), inner row 1 pad-top 25%,
   50px below every inner row except the last (.ml-p3330-c11) and the scrolling row
   (.ml-p3330-c18); col 2 padding-left 124.5 + 1px #5e5e5e left border, inner row
   pad 15%/15%, image (medium) + h2; row 2 (scrolling text) column with 1px
   #5e5e5e top border, inner row pad 50/50. At 390: columns stacked without
   gaps, col 2 padding 0 with a top border instead of the left one, row 2
   without border. */

.ml-footer {
	background: #fff;
	color: #000;
}
.ml-footer a,
.ml-footer a:visited { color: #fff; text-decoration: none; }
.ml-footer a:hover,
.ml-footer a:focus { color: #fff; text-decoration: none; }
.ml-footer .ml-text > :last-child,
.ml-footer .ml-text p:last-child { margin-bottom: 0; padding-bottom: 0; }

/* Salient: in-column inner rows keep 50px below unless they are the last row of a
   column AND carry no px column margin (.ml-p3330-c11 "gap 50" is last → 0; .ml-p3330-c18 → 0;
   .ml-p3330-c14 "gap 90" is last but px margin → keeps 50). */
.ml-footer .ml-row-inner { margin-bottom: 50px; }
.ml-footer .ml-p3330-c11,
.ml-footer .ml-p3330-c18 { margin-bottom: 0; }

/* The builder's 12-track grid collapses when 11 × gap exceeds the row width (518px wide
   inner rows with 70/50px gaps → columns of 350/150px overlapping). Inner rows in the
   footer are laid out as flex rows with explicit widths instead. */
.ml-footer .ml-row-inner > .nb-row__inner { display: flex; flex-wrap: wrap; }
.ml-footer .ml-row-inner > .nb-row__inner > .nb-col { flex: 0 0 auto; min-width: 0; }
.ml-footer .ml-row-inner > .nb-row__inner > .nb-col--1-1 { width: 100%; }
.ml-footer .ml-row-inner > .nb-row__inner > .nb-col--1-2 { width: calc(50% - var(--nb-gap, 0px) / 2); }
.ml-footer .ml-row-inner > .nb-row__inner > .nb-col--1-3 { width: calc((100% - 2 * var(--nb-gap, 0px)) / 3); }

/* Column 2 (image + claim): Salient border_type advanced → 1px #5e5e5e left border on desktop. */
.ml-footer .ml-p3330-c15 > .nb-col__inner { border-left: 1px solid #5e5e5e; }
/* Row 2 (scrolling text): column top border on desktop only. */
.ml-footer .ml-p3330-c19 > .nb-col__inner { border-top: 1px solid #5e5e5e; }
/* Image + 15px below it + h2 (Lora 34/44, max-width 500). Salient renders the "medium"
   file at its intrinsic 300×241 on desktop (W3's .ml-image__img stretches it to the column). */
.ml-footer .ml-p3330-c13 .ml-image { margin-bottom: 15px; }
.ml-footer .ml-p3330-c13 .ml-image__img { width: 300px; max-width: 100%; } /* sizes="auto" would otherwise size it to the column */
.ml-footer .ml-p3330-c13 .ml-text h2 { max-width: 500px; }

@media (max-width: 1000px) {
	.ml-footer .ml-p3330-c15 > .nb-col__inner { border-left: 0; border-top: 1px solid #5e5e5e; padding-left: 0; }
	.ml-footer .ml-p3330-c19 > .nb-col__inner { border-top: 0; }
	/* Salient stacks the footer columns without any gap (row gap 0, inner rows none). */
	.ml-footer .nb-row__inner { row-gap: 0; }
}
@media (max-width: 690px) {
	/* 40-elements.css (W3) narrows every top-level .nb-row__inner to 320px/no padding at phone width;
	   that rule belongs to .nova-builder-page only — the footer keeps Salient's 23px gutters (343px). */
	.ml-footer .nb-row.nb-row--stretch_row.ml-equal-height > .nb-row__inner { max-width: var(--ml-container-max); padding-inline: var(--ml-gutter); }
	/* column_padding_phone "no-extra-padding" on column 2 (converter ignores it). */
	.ml-footer .ml-p3330-c15 > .nb-col__inner { padding: 0; }
	.ml-footer .ml-row-inner > .nb-row__inner > .nb-col { width: 100%; }
}

/* Salient: .woocommerce-checkout/-account/-cart and every non-page, non-single-post template
   (shop, category, product…) put 40px above the before-footer section (white background). */
.woocommerce-checkout .ml-footer,
.woocommerce-account .ml-footer,
.woocommerce-cart .ml-footer,
body:not(.page):not(.single-post):not(.single-portfolio) .ml-footer { padding-top: 40px; background-color: #fff; }

/* Back to top (Salient #to-top, rounded button style): 29px circle, rgba(0,0,0,.25), slides up after 350px */
#to-top { display: block; position: fixed; right: 17px; bottom: 0; z-index: 9994; width: 29px; height: 29px; overflow: hidden; text-align: center; line-height: 29px; color: #fff; border-radius: 200px; background-color: rgba(0,0,0,.25); transform: translateY(105%); transition: transform .5s cubic-bezier(.165,.84,.44,1), box-shadow .3s cubic-bezier(.55,0,.1,1), background-color .1s linear; }
#to-top.visible { transform: translateY(-17px); }
#to-top:hover { background-color: #000; box-shadow: 1px 2px 3px rgba(0,0,0,.16); color: #fff; }
#to-top .ml-to-top__icon { display: inline-block; vertical-align: middle; width: 10px; height: 6px; }
@media (max-width: 999px) { #to-top.mobile-disabled { display: none; } }
