/* Site footer: Astra's Footer Builder markup in the Redronic look.
   Colours, backgrounds, borders, paddings and column layouts are Customizer settings (seeded in inc/footer.php), so they
   are not set here. This file only covers what the builder has no setting for. #redronic-ntp is needed where the
   theme's global h2/a rules would otherwise win. */

/* Same content width as .ntp-wrap, so the footer lines up with the header and page sections. */
#redronic-ntp .site-footer .ast-builder-grid-row{max-width:min(1320px,calc(100% - 72px));column-gap:36px}
@media(max-width:1100px){#redronic-ntp .site-footer .ast-builder-grid-row{max-width:calc(100% - 40px)}}
@media(max-width:760px){#redronic-ntp .site-footer .ast-builder-grid-row{max-width:calc(100% - 30px)}}

.site-footer .widget{font-size:14px;line-height:2.15;margin-bottom:0}
#redronic-ntp .site-footer .widget-title{font-size:18px;font-weight:700;line-height:1.7;margin:0 0 16px}
#redronic-ntp .site-footer .widget p{margin:0 0 8px}
/* Wordmark paragraph (class set in the block's Advanced panel); same type as the header brand. */
#redronic-ntp .site-footer .widget .rnt-footer-brand{font:900 35px/1.4 Arial,sans-serif;letter-spacing:1px;margin:0 0 4px}
#redronic-ntp .site-footer .widget .rnt-footer-brand a{color:var(--ntp-text)}
@media(max-width:760px){#redronic-ntp .site-footer .widget .rnt-footer-brand{font-size:31px}}
.site-footer .widget span[dir=ltr]{display:inline-block}

/* Link lists (Navigation Menu widgets) and link-only paragraphs: one roomy, tappable row per link. */
.site-footer .widget_nav_menu ul{list-style:none;margin:0;padding:0}
#redronic-ntp .site-footer .widget_nav_menu a,#redronic-ntp .site-footer .widget p:not(.rnt-footer-brand)>a:only-child{display:flex;align-items:center;min-height:32px}
#redronic-ntp .site-footer .widget_nav_menu li{margin:0 0 8px}

/* Bottom bar: copyright and the Footer Menu. */
.site-footer .ast-footer-copyright,.site-footer .footer-navigation{font-size:14px}
.site-footer .ast-footer-copyright p{margin:0}
#redronic-ntp .site-footer #astra-footer-menu{flex-wrap:wrap;gap:4px 18px}
#redronic-ntp .site-footer #astra-footer-menu .menu-link{display:inline-flex;align-items:center;min-height:32px;padding:0}

#redronic-ntp .site-footer .widget :not(.rnt-footer-brand)>a:hover,#redronic-ntp .site-footer #astra-footer-menu .menu-link:hover{text-decoration:underline 2px var(--ntp-accent);text-underline-offset:5px}

/* Mobile 2-column layout: the text columns (about, contact) take a full row, the link columns sit side by side. */
@media(max-width:544px){
/* Astra bug: another row's tablet layout rule comes later in its CSS and beats this row's mobile "full" layout. */
#redronic-ntp .site-footer .ast-builder-grid-row-mobile-full .ast-builder-grid-row{grid-template-columns:1fr}
#redronic-ntp .site-footer .ast-builder-grid-row-mobile-2-equal .ast-builder-grid-row{gap:24px 18px}
#redronic-ntp .site-footer .ast-builder-grid-row-mobile-2-equal :is(.site-footer-section-1,.site-footer-section-2){grid-column:1/-1}
#redronic-ntp .site-footer #astra-footer-menu{gap:4px 14px}
#redronic-ntp .site-footer #astra-footer-menu .menu-link{min-height:36px}
}
