/* The one site footer (footer.footer-wantace), the same on every page. Base layout copied from the
   footer rules in css/styles.css so pages that do not load styles.css (the service and location
   pages on css/seo-pages.css) render it the same way; css/site-motion.css then flattens it onto the
   page grid everywhere. Icons are inline SVGs, so no icon font is needed. Link this before
   mobile-fit.css and site-motion.css. Markup comes from scratchpad build_footer.py. */

footer.footer-wantace, footer.footer-wantace * { box-sizing: border-box; }
footer.footer-wantace { display: block; width: 100%; max-width: none; margin-left: 0; margin-right: 0; font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left; line-height: 1.5; }
footer.footer-wantace ul { margin: 0; padding: 0; list-style: none; }
footer.footer-wantace li { margin: 0; padding: 0; }
footer.footer-wantace li::before { content: none; }
footer.footer-wantace a { text-decoration: none; }
footer.footer-wantace img { max-width: 100%; height: auto; }
footer.footer-wantace svg { display: inline-block; flex: none; vertical-align: middle; }
footer.footer-wantace p { margin: 0; }

.footer-wantace { position: relative; padding: 5rem 0 4.5rem; overflow: hidden; color: #111111; border-radius: 32px 32px 0 0; }
.footer-bg-glow { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.footer-wantace .container { max-width: 980px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }
.footer-card { background: #fff; border-radius: 20px; padding: 3rem 3.5rem 2.25rem; }
.footer-card-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.6fr; gap: 2.25rem; margin-bottom: 2rem; }
.footer-brand-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand-logo .footer-logo-icon { display: block; width: 64px; height: auto; flex: 0 0 auto; object-fit: contain; }
.footer-brand-logo .brand-name { color: #111111; font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.col-header { font-size: .72rem; font-weight: 600; color: #94a3b8; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.col-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.col-links li a { color: #334155; text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.col-links li a:hover { color: #2563eb; }
.contact-links li a { display: inline-flex; align-items: center; gap: 8px; }
.contact-icon-circle { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; color: #fff; }
.contact-icon-circle.wa { background: #25d366; }
.contact-icon-circle.mail { background: #3b82f6; }
.footer-social-row { display: flex; align-items: center; margin: 2.5rem 0 1.75rem; flex-wrap: wrap; gap: 12px; }
.social-label { font-size: .825rem; font-weight: 600; color: #64748b; white-space: nowrap; letter-spacing: -.01em; }
.social-divider { flex: 1 1 0%; min-width: 20px; height: 1px; background: #e2e8f0; margin: 0 .5rem; }
.social-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.social-badge { height: 32px; min-width: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; font-size: .82rem; font-weight: 700; line-height: 1; white-space: nowrap; border: 1px solid #e2e8f0; transition: transform .2s cubic-bezier(.16, 1, .3, 1), border-color .2s, color .2s; cursor: pointer; flex-shrink: 0; text-decoration: none !important; }
.social-badge.linkedin-badge, .social-badge.instagram-badge { width: 32px; padding: 0; }
.social-badge:hover { transform: translateY(-2px); }
.social-badge.google-badge .google-rating-score { font-weight: 700; font-size: .78rem; margin-left: 2px; }
.social-badge.google-badge .google-rating-star { color: #f59e0b; font-size: .82rem; margin-left: 2px; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: .85rem; font-size: .78rem; color: #94a3b8; }
.legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.legal-links a { color: #64748b; text-decoration: none; font-weight: 500; transition: color .2s; }
.legal-links a:hover { color: #111111; }
.link-separator { color: #cbd5e1; }
.footer-taxonomy-bar { margin-top: 2rem; padding-top: 1.5rem; font-size: .8rem; color: #94a3b8; line-height: 1.8; text-align: center; }
.footer-directory { margin-top: 1.5rem; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.footer-directory-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; color: #111111; font-size: .85rem; font-weight: 600; cursor: pointer; list-style: none; }
.footer-directory-toggle::-webkit-details-marker { display: none; }
.footer-directory-toggle svg { color: #2563eb; transition: transform .25s; }
.footer-directory[open] .footer-directory-toggle svg { transform: rotate(180deg); }
.footer-directory-toggle:hover span { color: #2563eb; }
.footer-directory #services-hub.ck-services-directory { padding: 4px 0 20px !important; background: none !important; border: 0 !important; }
.footer-directory #services-hub .ck-services-container { max-width: none !important; margin: 0 !important; padding: 0 !important; }
.footer-directory #services-hub .ck-hub-col-title { min-height: 0 !important; margin-bottom: 8px !important; }

@media (max-width: 768px) {
    .footer-wantace { padding: 1.5rem 0 1rem; border-radius: 24px 24px 0 0; }
    .footer-wantace .container { width: 100%; max-width: 100%; padding: 0 .85rem; }
    .footer-card { padding: 1.35rem 1.15rem 1rem; border-radius: 16px; }
    .footer-card-grid { grid-template-columns: 1fr 1fr; gap: 1.15rem 1rem; margin-bottom: .85rem; }
    .footer-card-grid .footer-col:first-child { padding-bottom: .35rem; border-bottom: 1px solid #f1f5f9; margin-bottom: .15rem; grid-column: 1 / -1; }
    .footer-brand-logo { gap: 8px; }
    .footer-brand-logo .footer-logo-icon { width: 54px; }
    .col-header { font-size: .68rem; font-weight: 700; color: #64748b; margin-bottom: .5rem; }
    .col-links { gap: .4rem; }
    .col-links li a { font-size: .83rem; line-height: 1.35; }
    .footer-card-grid .footer-col:last-child { padding-top: .45rem; border-top: 1px solid #f1f5f9; margin-top: .2rem; grid-column: 1 / -1; }
    .contact-links { flex-flow: row wrap; gap: 8px; margin-top: .25rem; }
    .contact-links li a { gap: 6px; font-size: .78rem; font-weight: 600; color: #1e293b; }
    .contact-icon-circle { width: 18px; height: 18px; }
    .footer-social-row { margin: .85rem 0 .75rem; padding-top: .75rem; border-top: 1px solid #f1f5f9; flex-direction: column; align-items: flex-start; gap: .5rem; }
    .social-label { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
    .social-divider { display: none; }
    .social-badges { gap: 5px; }
    .social-badge { height: 26px; min-width: 26px; padding: 0 8px; font-size: .72rem; border-radius: 6px; }
    .social-badge.linkedin-badge, .social-badge.instagram-badge { width: 26px; padding: 0; }
    .footer-taxonomy-bar { margin-top: .7rem; padding-top: .6rem; font-size: .68rem; line-height: 1.45; color: #64748b; }
    .footer-bottom-row { margin-top: .65rem; padding-top: .65rem; font-size: .72rem; gap: 8px; }
    .copyright-text { font-size: .72rem; color: #94a3b8; }
    .legal-links { gap: 6px; }
    .legal-links a { font-size: .72rem; }
}
@media (max-width: 480px) {
    .footer-card { padding: 1.15rem .85rem .85rem; }
    .footer-bottom-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
