/* Approved dark footer. Existing subscription and footer hooks remain intact. */
#footer { --es-footer-gold:#b29a61; --es-footer-line:#333; --es-footer-radius:10px; }
#footer #footer-copyrights > .container { background:transparent; color:#fff; border-radius:0; border-top:0; padding:24px 20px; text-align:center; }
#footer .es-footer-copyright { margin:0 0 20px; font-size:13px; }
#footer a.es-footer-creator { display:inline-flex; align-items:center; justify-content:center; gap:10px; color:#fff; font-size:13px; line-height:1.5; text-decoration:none; }
#footer a.es-footer-creator:hover { color:#fff; text-decoration:underline; text-underline-offset:4px; }
#footer .es-footer-creator-icon { display:block; flex:0 0 34px; width:34px; height:36px; background:url('creator-reference.png') -50px -14px / 358px 61px no-repeat; filter:invert(1) grayscale(1); mix-blend-mode:screen; }
#footer a:focus-visible, #footer button:focus-visible, #footer input:focus-visible { outline:2px solid var(--es-footer-gold); outline-offset:3px; }
@media(max-width:991px) {
 #footer #footer-container-first { padding:32px 0 16px; }
 #footer-container-first.footer-style-2 > .container { display:flex; flex-direction:column; align-items:stretch; gap:16px; max-width:560px; padding-inline:20px; }
 #footer-container-first.footer-style-2 > .container > .row { display:block; width:100%; margin:0; }
 #footer-container-first.footer-style-2 > .container > .row:first-child { order:2; }
 #footer-container-first.footer-style-2 > .container > .row:last-child { order:1; }
 #footer-container-first .ps-emailsubscription-block { display:block; }
 #footer-container-first .es-newsletter-title { margin:0 0 24px; text-align:center; font-size:26px; line-height:1.3; }
 #footer-container-first .es-newsletter-title::before { content:''; display:block; width:32px; height:24px; margin:0 auto 16px; background:url('footer-envelope.svg') center/contain no-repeat; }
 #footer-container-first .newsletter-input-group { display:flex; flex-direction:column; gap:10px; }
 #footer-container-first .newsletter-input-group > .input-subscription { flex:0 0 auto; width:100%; height:48px; padding:12px 14px; margin:0; border:1px solid #ddd; border-radius:var(--es-footer-radius)!important; background:#fff; color:#1e2430; font-size:16px; }
 #footer-container-first .input-subscription::placeholder { color:#707070; }
 #footer-container-first .input-group-append { display:block; width:100%; margin:0; }
 #footer #footer-container-first .btn-subscribe { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:48px; padding:10px 14px; border:1px solid var(--es-footer-gold); border-radius:var(--es-footer-radius)!important; background:var(--es-footer-gold); color:#111; font-size:16px; font-weight:600; }
 #footer #footer-container-first .btn-subscribe i { color:inherit; margin:0; }
 #footer #footer-container-first .btn-subscribe:hover { background:#c2ac77; border-color:#c2ac77; }
 #footer-container-first .text-muted, #footer-container-first .es-recaptcha-notice { font-size:12px; line-height:1.6; }
 #footer-container-first .ps-emailsubscription-conditions { margin-top:12px!important; }
 #footer-container-first .es-recaptcha-notice { margin-top:12px; }
 #footer-container-first .social-links._footer { justify-content:center; gap:12px; }
 #footer #footer-container-main { padding:0 0 24px; }
 #footer-container-main > .container { padding:24px 20px 0; }
 #footer #footer-copyrights { padding:0 20px 12px; }
}
@media(max-width:767px) {
 #footer-container-main .block { padding-block:16px; margin-bottom:0; border-bottom:0; }
 #footer-container-main .block-title { font-size:17px; line-height:1.5; }
 #footer-container-main .block-title::after { color:var(--es-footer-gold); }
 #footer-container-main .block-content a { line-height:1.7; }
 #footer-container-main .block-content li { padding-block:4px; }
}
@media(max-width:991px) {
 #footer-container-first .newsletter-input-group { background:transparent!important; border:0!important; box-shadow:none; border-radius:0; overflow:visible; }
}


/* Separate footer groups with spacing instead of repeated rules. */
#footer #footer-container-main > .container,
#footer #footer-container-main .block-title { border:0; }
#footer #footer-container-main hr { border:0; height:0; margin-block:12px; }

/* Use the mobile newsletter palette on desktop as well. */
#footer #footer-container-first .newsletter-input-group > .input-subscription { background:#fff; color:#1e2430; border-color:#ddd; }
#footer #footer-container-first .input-subscription::placeholder { color:#707070; }
#footer #footer-container-first .btn-subscribe { background:var(--es-footer-gold); border-color:var(--es-footer-gold); color:#111; }
#footer #footer-container-first .btn-subscribe i { color:inherit; }
#footer #footer-container-first .btn-subscribe:hover { background:#c2ac77; border-color:#c2ac77; }

/* Selected newsletter concept: an ivory panel within the black footer. */
#footer #footer-container-first { padding:40px var(--es-page-gutter) 24px; }
#footer #footer-container-first.footer-style-2 > .container { display:grid; grid-template-columns:minmax(240px, .8fr) minmax(0,1.4fr); grid-template-rows:auto 1fr; gap:24px 48px; width:100%; max-width:calc(1500px - 2 * var(--es-page-gutter)); padding:40px; background:#f5f3ed; color:#111; border-radius:16px; align-items:start; }
#footer #footer-container-first.footer-style-2 > .container > .row,
#footer #footer-container-first .ps-emailsubscription-block { display:contents; }
#footer #footer-container-first .es-newsletter-title { grid-column:1; grid-row:1; margin:0; text-align:left; color:#111; font-family:Georgia, 'Times New Roman', serif; font-weight:400; font-size:clamp(30px,3vw,44px); line-height:1.15; }
#footer #footer-container-first .es-newsletter-title::before { display:none; }
#footer #footer-container-first .block-social-links { grid-column:1; grid-row:2; padding:0; margin:0; }
#footer #footer-container-first .social-links._footer { display:flex; justify-content:flex-start; gap:16px; margin:0; }
#footer #footer-container-first .social-links a,
#footer #footer-container-first .social-links i { color:#111; }
#footer #footer-container-first .social-links a { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; font-size:28px; }
#footer #footer-container-first .ps-emailsubscription-block > form { grid-column:2; grid-row:1 / 3; min-width:0; }
#footer #footer-container-first .newsletter-input-group { display:flex; flex-direction:row; flex-wrap:nowrap; gap:12px; background:transparent!important; border:0!important; border-radius:0; box-shadow:none; overflow:visible; }
#footer #footer-container-first .newsletter-input-group > .input-subscription { flex:1 1 0; min-width:0; width:0; height:52px; padding:12px 16px; margin:0; border:1px solid #bcbab5; border-radius:8px!important; background:#fff; color:#111; font-size:16px; }
#footer #footer-container-first .input-group-append { display:block; width:auto; margin:0; flex:0 0 auto; }
#footer #footer-container-first .btn-subscribe { width:auto; height:52px; padding:12px 24px; border-radius:8px!important; font-size:15px; font-weight:500; }
#footer #footer-container-first .text-muted,
#footer #footer-container-first .es-recaptcha-notice,
#footer #footer-container-first .es-recaptcha-notice a { color:#5b5b57!important; font-size:12px; line-height:1.65; }
#footer #footer-container-first .ps-emailsubscription-conditions { margin-top:18px!important; }
#footer #footer-container-first .es-recaptcha-notice { margin-top:10px; }
@media(max-width:991px) {
 #footer #footer-container-first.footer-style-2 > .container { grid-template-columns:1fr; gap:20px; padding:28px; }
 #footer #footer-container-first .block-social-links { grid-column:1; grid-row:2; }
 #footer #footer-container-first .ps-emailsubscription-block > form { grid-column:1; grid-row:3; }
}
@media(max-width:575px) {
 #footer #footer-container-first { padding-top:24px; }
 #footer #footer-container-first.footer-style-2 > .container { padding:24px 20px; }
 #footer #footer-container-first .newsletter-input-group { flex-direction:column; gap:10px; }
 #footer #footer-container-first .newsletter-input-group > .input-subscription { width:100%; flex:auto; }
 #footer #footer-container-first .input-group-append,
 #footer #footer-container-first .btn-subscribe { width:100%; }
}
