/* Cátia Soares Digital: header + footer in the new design line (prefix csdhf).
   Source = approved Valença page (build v9): purple #6d54e0, ink #14111f, lilac #f1eefd, League Spartan uppercase + Poppins, 2px ink outlines, hard shadows, pill buttons, browser dots, bracket labels, floating index bar.
   Targets Astra 4.14.3 header/footer builder markup of catiasoaresdigital.com (#masthead, #ast-mobile-popup, #colophon).
   Every rule starts with `body` (the preview file swaps it for `body.logged-in`). */
@font-face{font-family:"League Spartan";src:url("https://catiasoaresdigital.com/wp-content/uploads/csd-fonts/league-spartan-var.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("https://catiasoaresdigital.com/wp-content/uploads/csd-fonts/poppins-regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("https://catiasoaresdigital.com/wp-content/uploads/csd-fonts/poppins-semibold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("https://catiasoaresdigital.com/wp-content/uploads/csd-fonts/poppins-bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Space Mono";src:url("https://catiasoaresdigital.com/wp-content/uploads/csd-fonts/space-mono-regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}

body{--csdhf-p:#6d54e0;--csdhf-pl:#b9acff;--csdhf-ink:#14111f;--csdhf-lilac:#f1eefd;--csdhf-wa:#25D366;--csdhf-head:"League Spartan","Arial Narrow",Arial,sans-serif;--csdhf-body:"Poppins",-apple-system,"Segoe UI",Arial,sans-serif;--csdhf-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M2 2l18 9.5-8 2.3-3.4 8.2z' fill='%23fff' stroke='%2314111f' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E")}

/* ===== HEADER (desktop) ===== */
/* #ids needed: Astra's transparent-header rule (home page) uses `.ast-theme-transparent-header #ast-desktop-header > .ast-main-header-wrap > .main-header-bar` (specificity 1,3,0) */
body #masthead #ast-desktop-header .ast-primary-header-bar,body #masthead #ast-mobile-header .ast-primary-header-bar,body #masthead #ast-desktop-header>.ast-main-header-wrap>.main-header-bar,body #masthead #ast-mobile-header>.ast-main-header-wrap>.main-header-bar{background:#fff;border-bottom:2px solid var(--csdhf-ink)}
body #masthead .site-primary-header-wrap{min-height:76px}
body #masthead .ast-builder-menu-1 .main-header-menu{align-items:center;gap:6px}
body #masthead .ast-builder-menu-1 .main-header-menu>.menu-item>.menu-link{display:block;padding:9px 16px;margin:0;line-height:1.1;border-radius:999px;font-family:var(--csdhf-head);font-weight:900;font-size:16px;letter-spacing:-.01em;text-transform:uppercase;color:var(--csdhf-ink);background:transparent;transition:background .18s,color .18s}
body #masthead .ast-builder-menu-1 .main-header-menu>.menu-item>.menu-link:hover{background:var(--csdhf-lilac);color:var(--csdhf-ink)}
body #masthead .ast-builder-menu-1 .main-header-menu>.menu-item.current-menu-item>.menu-link,body #masthead .ast-builder-menu-1 .main-header-menu>.menu-item.current-menu-ancestor>.menu-link{background:var(--csdhf-p);color:#fff}
body #masthead .menu-link:focus-visible{outline:3px solid var(--csdhf-ink);outline-offset:3px}
/* CTA pill: menu item with CSS class csdhf-cta (Appearance > Menus > CSS classes) */
body #masthead .ast-builder-menu-1 .main-header-menu>.menu-item.csdhf-cta{margin-left:10px}
body #masthead .ast-builder-menu-1 .main-header-menu>.menu-item.csdhf-cta>.menu-link{position:relative;padding:11px 46px 11px 20px;background:var(--csdhf-p);color:#fff;border:2px solid var(--csdhf-ink);box-shadow:3px 3px 0 var(--csdhf-ink);font-size:16px}
body #masthead .ast-builder-menu-1 .main-header-menu>.menu-item.csdhf-cta>.menu-link::after{content:"";position:absolute;right:14px;top:50%;width:16px;height:19px;margin-top:-9px;background:var(--csdhf-arrow) center/contain no-repeat}
body #masthead .ast-builder-menu-1 .main-header-menu>.menu-item.csdhf-cta>.menu-link:hover{background:var(--csdhf-p);color:#fff;transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--csdhf-ink)}

/* ===== HEADER (mobile: Astra off-canvas, breakpoint 921px) ===== */
body.ast-header-break-point #masthead .site-primary-header-wrap{min-height:64px}
body #masthead .menu-toggle.main-header-menu-toggle{border:2px solid var(--csdhf-ink);border-radius:999px;background:#fff;color:var(--csdhf-ink);box-shadow:3px 3px 0 var(--csdhf-ink);padding:8px 12px}
body #masthead .menu-toggle.main-header-menu-toggle:focus-visible{outline:3px solid var(--csdhf-ink);outline-offset:3px}
body #ast-mobile-popup .ast-mobile-popup-inner{background-color:var(--csdhf-ink);background-image:linear-gradient(rgba(185,172,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(185,172,255,.13) 1px,transparent 1px);background-size:44px 44px}
body #ast-mobile-popup .menu-toggle-close{color:#fff;border:2px solid #fff;border-radius:50%;width:44px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;margin:14px 16px 0 0;background:transparent}
body #ast-mobile-popup .menu-toggle-close:focus-visible{outline:3px solid #fff;outline-offset:3px}
body #ast-mobile-popup .ast-mobile-popup-content .main-header-menu{background:transparent;border:0}
body #ast-mobile-popup .ast-mobile-popup-content .main-header-menu>.menu-item>.menu-link{display:block;padding:12px 20px;border:0;font-family:var(--csdhf-head);font-weight:900;font-size:clamp(30px,9vw,44px);line-height:1.05;letter-spacing:-.02em;text-transform:uppercase;color:#fff;background:transparent}
body #ast-mobile-popup .ast-mobile-popup-content .main-header-menu>.menu-item>.menu-link:hover,body #ast-mobile-popup .ast-mobile-popup-content .main-header-menu>.menu-item.current-menu-item>.menu-link{color:var(--csdhf-pl)}
body #ast-mobile-popup .ast-mobile-popup-content .menu-link:focus-visible{outline:3px solid #fff;outline-offset:2px}
body #ast-mobile-popup .ast-mobile-popup-content .main-header-menu>.menu-item.csdhf-cta{margin:18px 0 0;padding:0 20px;text-align:center}
body #ast-mobile-popup .ast-mobile-popup-content .main-header-menu>.menu-item.csdhf-cta>.menu-link{display:inline-block;width:auto;position:relative;padding:14px 56px 14px 26px;border:2px solid #fff;border-radius:999px;background:var(--csdhf-p);color:#fff;font-size:22px;font-weight:900;letter-spacing:-.01em;text-transform:uppercase;line-height:1.1;box-shadow:4px 4px 0 #fff}
body #ast-mobile-popup .ast-mobile-popup-content .main-header-menu>.menu-item.csdhf-cta>.menu-link::after{content:"";position:absolute;right:18px;top:50%;width:18px;height:21px;margin-top:-10px;background:var(--csdhf-arrow) center/contain no-repeat}

/* ===== FOOTER v2: 4 columns (Serviços, Blog, Contacto, Legal). Astra's footer menu (menu 11) is hidden, every link now lives in Footer HTML 1 ===== */
body #colophon.site-footer{background:var(--csdhf-ink)}
body #colophon .site-below-footer-wrap[data-section="section-below-footer-builder"]{background-color:var(--csdhf-ink);background-image:linear-gradient(rgba(185,172,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(185,172,255,.13) 1px,transparent 1px);background-size:44px 44px;background-position:-1px -1px;border:0;border-top:4px solid var(--csdhf-p);padding:56px 0 28px;color:#fff;font-family:var(--csdhf-body)}
body #colophon .site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row{max-width:1240px;min-height:0;padding:0 20px;align-items:flex-start;gap:0;grid-template-columns:minmax(0,1fr)}
body #colophon .site-below-footer-wrap[data-section="section-below-footer-builder"] .site-footer-section{align-items:flex-start}
body #colophon .site-footer-section{display:block;text-align:left;min-width:0}
body #colophon .site-footer-below-section-2,body #colophon .footer-widget-area[data-section="section-footer-menu"]{display:none}
body #colophon .footer-widget-area[data-section^="section-fb-html-"] .ast-builder-html-element{text-align:left}
body #colophon .csdhf-kicker{display:inline-block;margin:0 0 18px;padding:7px 14px;border-radius:8px;background:var(--csdhf-p);color:#fff;font-family:var(--csdhf-body);font-weight:600;font-size:15px;line-height:1.4}
body #colophon .csdhf-kicker::before{content:"[ "}
body #colophon .csdhf-kicker::after{content:" ]"}
body #colophon .csdhf-big{margin:0 0 10px;font-family:var(--csdhf-head);font-weight:900;font-size:clamp(38px,9vw,84px);line-height:1;letter-spacing:-.02em;text-transform:uppercase;color:#fff}
body #colophon .csdhf-big span{color:var(--csdhf-pl)}
body #colophon .csdhf-tag{margin:0 0 36px;font-family:var(--csdhf-body);font-weight:600;font-size:clamp(16px,2.4vw,20px);line-height:1.4;color:#d9d3ff}
body #colophon .csdhf-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px;margin:0 0 36px;padding-top:28px;border-top:2px solid rgba(255,255,255,.28)}
body #colophon .csdhf-col{min-width:0}
body #colophon .csdhf-h{display:inline-block;margin:0 0 12px;padding:10px 16px 6px;border:2px solid #fff;border-radius:999px;font-family:var(--csdhf-head);font-weight:800;font-size:14px;letter-spacing:.07em;line-height:1.1;text-transform:uppercase;color:#fff;background:transparent}
body #colophon .csdhf-col ul{list-style:none;margin:0;padding:0;display:grid;gap:0;font-size:15px;line-height:1.4}
body #colophon .csdhf-col li{margin:0;padding:0;min-height:0;height:auto;font-size:15px;line-height:1.4}
body #colophon .csdhf-col a{display:inline-block;padding:6px 0;color:#fff;font-size:15px;line-height:1.4;text-decoration:none;overflow-wrap:anywhere;background:linear-gradient(#fff,#fff) left bottom/0 2px no-repeat;transition:background-size .2s}
body #colophon .csdhf-col a:hover{background-size:100% 2px}
body #colophon .csdhf-col a.csdhf-wa{color:var(--csdhf-wa);font-weight:700}
body #colophon .csdhf-col a.csdhf-wa:hover{background-image:linear-gradient(var(--csdhf-wa),var(--csdhf-wa))}
body #colophon .csdhf-zaask{margin:0;line-height:0}
body #colophon .csdhf-zaask a{display:inline-block;padding:8px;background:#fff;border:2px solid #fff;border-radius:12px;line-height:0}
body #colophon .csdhf-zaask img{display:block;max-width:100%;height:auto}
body #colophon .ast-footer-copyright{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;text-align:left;margin-top:28px;padding-top:20px;border-top:2px solid rgba(255,255,255,.28);color:#d9d3ff;font-size:14px;line-height:1.6}
body #colophon .ast-footer-copyright p{margin:0;color:#d9d3ff}
body #colophon .ast-footer-copyright>p{flex:1 1 220px;min-width:0}
body #colophon .ast-footer-copyright .csdhf-zaask{flex:0 0 auto;max-width:100%;margin-left:auto}
body #colophon .ast-footer-copyright .ast-footer-copyright{margin:0;padding:0;border:0}
body #colophon a:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media (max-width:479px){body #colophon .csdhf-cols{grid-template-columns:minmax(0,1fr)}}
@media (min-width:922px){
 body #colophon .site-below-footer-wrap[data-section="section-below-footer-builder"]{padding:88px 0 36px}
 body #colophon .site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row{padding:0 40px}
 body #colophon .csdhf-cols{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 40px}
}
@media (prefers-reduced-motion:reduce){body #masthead .menu-link,body #colophon a{transition:none}body #masthead .csdhf-cta>.menu-link:hover,body #colophon .csdhf-wa:hover{transform:none}}

/* ===== LOGO (02-12-2026): text wordmark from the mu-plugin get_custom_logo filter. Space Mono Regular, 0.22em tracking, purple cursor blinking in the header ===== */
body .custom-logo-link:has(.csdhf-logo){display:inline-flex;align-items:center;text-decoration:none;line-height:1}
body .csdhf-logo{display:inline-block;font-family:"Space Mono",ui-monospace,Menlo,Consolas,monospace;font-weight:400;font-size:18px;line-height:1;letter-spacing:.22em;text-transform:uppercase;color:var(--csdhf-ink,#14111f);white-space:nowrap}
body .csdhf-logo .csdhf-cur{color:var(--csdhf-p,#6d54e0);letter-spacing:0}
body #masthead .csdhf-logo .csdhf-cur{animation:csdhf-blink 1.1s steps(1) infinite}
@keyframes csdhf-blink{50%{opacity:0}}
@media (max-width:544px){body .csdhf-logo{font-size:14px;letter-spacing:.2em}}
@media (prefers-reduced-motion:reduce){body #masthead .csdhf-logo .csdhf-cur{animation:none}}

/* ===== FOOTER v4 (02-12-2026): «Zonas» list under Serviços. Small label (not a pill), towns as discreet inline links. Additive: the previous markup is unaffected. ===== */
body #colophon .csdhf-z{margin:18px 0 4px;padding:0;font-family:var(--csdhf-head);font-weight:800;font-size:12px;letter-spacing:.07em;line-height:1.2;text-transform:uppercase;color:var(--csdhf-pl)}
body #colophon .csdhf-col ul.csdhf-zl{display:flex;flex-wrap:wrap;gap:0 14px}
body #colophon .csdhf-zl a{padding:4px 0;font-size:13px;color:#d9d3ff}
