/* TCAS institutional footer: four clear, balanced sections */
.tcas-institutional-footer{clear:both;width:100%;margin-top:0;color:#fff;font-family:inherit;font-size:15px;line-height:1.45;position:relative;z-index:1;background:#fff}
.tcas-institutional-footer *{box-sizing:border-box}
 .tcas-footer-main{background:#707070;border-top:0;border-bottom:1px solid #707070}
.tcas-footer-inner{max-width:1280px;margin:0 auto;padding:24px 24px;display:grid;grid-template-columns:24% 25% 31% 20%;gap:0;align-items:center;min-height:130px}
.tcas-footer-brand{display:flex;align-items:center;justify-content:center;height:100%;padding:0 20px}
.tcas-footer-logo{display:flex;align-items:center;justify-content:center;margin:0;width:100%}
.tcas-footer-logo img{display:block;max-width:175px;max-height:92px;width:auto;height:auto;object-fit:contain;filter:none}
.tcas-footer-nav{display:block;height:100%;border-left:1px solid #83a9d0;padding:8px 25px;display:flex;align-items:center}
.tcas-footer-column h2{display:none}
.tcas-footer-column ul{list-style:none;margin:0;padding:0}
.tcas-footer-column li{margin:0;padding:6px 0}
.tcas-footer-column a{color:#fff;text-decoration:none;border-bottom:1px solid transparent;font-size:15px}
.tcas-footer-column a:hover,.tcas-footer-column a:focus{color:#fff;border-color:#fff}
.tcas-footer-contact{display:flex;flex-direction:column;gap:8px;min-width:0;height:100%;color:#fff;font-size:14px;padding:8px 25px;justify-content:center;border-left:1px solid #83a9d0}
.tcas-contact-item{display:flex;align-items:center;gap:12px;line-height:1.4;overflow-wrap:anywhere}
.tcas-contact-icon{color:#fff;font-size:20px;line-height:1.2;min-width:24px;text-align:center}
.tcas-footer-contact a{color:#fff;text-decoration:underline}
.tcas-footer-contact a:hover{color:#123e70}
.tcas-footer-social{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;height:100%;border-left:1px solid #83a9d0;padding:8px 18px;text-align:center}
.tcas-footer-column h2,.tcas-footer-social h2{margin:0 0 14px;color:#fff;font-size:13px;font-weight:700;letter-spacing:0;text-transform:none;display:block;white-space:nowrap}
.tcas-social-list{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.tcas-social-link{width:38px;height:38px;border:1px solid #fff;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;font-size:17px;font-weight:700;transition:background .2s,color .2s}
.tcas-social-link:hover,.tcas-social-link:focus{background:#fff;color:#707070}
.tcas-instagram-icon,.tcas-linkedin-icon{width:20px;height:20px;display:block;color:currentColor}
.tcas-footer-bottom{background:#183b63}
.tcas-footer-bottom-inner{max-width:1280px;margin:0 auto;padding:16px 24px;display:flex;justify-content:flex-start;align-items:center;gap:20px;color:#fff;font-size:13px}
.tcas-footer-top{white-space:nowrap}
@media(max-width:900px){.tcas-footer-inner{grid-template-columns:24% 26% 30% 20%;padding:20px 12px}.tcas-footer-brand{padding:0 10px}.tcas-footer-nav,.tcas-footer-contact,.tcas-footer-social{padding:8px 12px}.tcas-footer-column a{font-size:14px}.tcas-footer-social h2{font-size:13px}}
@media(max-width:680px){.tcas-footer-inner{grid-template-columns:1fr 1fr;padding:20px}.tcas-footer-brand{padding:10px}.tcas-footer-nav{border-left:1px solid #d5e0eb;padding:10px 18px}.tcas-footer-contact{grid-column:1/-1;border-left:0;border-top:1px solid #d5e0eb;margin-top:16px;padding:18px 10px}.tcas-footer-social{grid-column:1/-1;border-left:0;border-top:1px solid #d5e0eb;margin-top:16px;padding:18px 10px}.tcas-footer-social h2{font-size:14px}}
@media(max-width:420px){.tcas-footer-inner{grid-template-columns:1fr;padding:18px}.tcas-footer-brand{padding:0 0 18px}.tcas-footer-nav{border-left:0;border-top:1px solid #d5e0eb;padding:15px 0}.tcas-footer-contact{margin-top:0;padding:18px 0 0}.tcas-footer-social{margin-top:0;padding:18px 0 0}}

.tcas-address-icon svg{display:block;width:22px;height:22px}
.tcas-footer-social h2{white-space:nowrap;font-size:12px}
.tcas-footer-inner{grid-template-columns:24% 25% 30% 21%}
.tcas-footer-main{background:#707070!important;color:#fff!important}
.tcas-footer-nav{border-color:rgba(255,255,255,.55)}
.tcas-footer-contact,.tcas-footer-social{border-color:rgba(255,255,255,.55);color:#fff}
.tcas-footer-column a,.tcas-footer-contact a{color:#fff}
.tcas-contact-icon{color:#fff}
@media(max-width:900px){.tcas-footer-social h2{white-space:normal}}

/* Copyright bar: centered text and light grey sample color */
.tcas-footer-bottom{background:#e5e5e5!important}
.tcas-footer-bottom-inner{justify-content:center!important;text-align:center;color:#707070!important;width:100%}
.tcas-footer-brand{align-items:center;justify-content:center}
.tcas-footer-logo img{max-width:190px;max-height:105px;filter:none!important}

/* Address formatting: exactly two lines as in the supplied reference */
.tcas-footer-contact .tcas-address-icon{align-self:flex-start;margin-top:1px}
.tcas-footer-contact .tcas-contact-item:first-child>div{white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.45}

/* Custom TCAS location pin with house and centered supplied logo */
.tcas-address-icon{display:inline-flex;align-items:flex-start;justify-content:center;min-width:24px}
.tcas-address-icon svg{display:block;width:22px;height:26px;flex:none}
.tcas-footer-brand{display:flex;align-items:center;justify-content:center;text-align:center}
.tcas-footer-logo{display:flex;align-items:center;justify-content:center;width:100%;margin:0 auto}
.tcas-footer-logo img{display:block;margin:0 auto;width:auto;height:auto;max-width:190px;max-height:92px;object-fit:contain}

/* v1.1.3: pin de localização com casa e logótipo vetorial maior */
.tcas-footer-logo img{max-width:245px!important;max-height:135px!important;width:100%!important;height:auto!important;object-fit:contain!important}
.tcas-footer-brand{padding-left:12px!important;padding-right:12px!important}
.tcas-address-icon{display:inline-flex!important;align-items:flex-start!important;justify-content:center!important;min-width:24px!important}
.tcas-address-icon svg{display:block!important;width:24px!important;height:28px!important;flex:none!important}

/* v1.1.4: original SVG vector logo, larger display while preserving its ratio */
.tcas-footer-brand{min-width:0;padding-left:8px!important;padding-right:8px!important}
.tcas-footer-logo{width:100%;max-width:100%;display:flex;align-items:center;justify-content:center}
.tcas-footer-logo img{display:block;width:100%!important;max-width:290px!important;max-height:none!important;height:auto!important;object-fit:contain!important;image-rendering:auto;filter:none!important}
@media(max-width:900px){.tcas-footer-logo img{max-width:250px!important}}
@media(max-width:680px){.tcas-footer-logo img{max-width:280px!important}}

/* v1.1.5: remove SVG divider, enlarge and center logo with white caption below */
.tcas-footer-brand{flex-direction:column;justify-content:center;align-items:center;text-align:center}
.tcas-footer-logo-wrap{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.tcas-footer-logo{width:100%;display:flex;align-items:center;justify-content:center}
.tcas-footer-logo img{width:100%!important;max-width:320px!important;max-height:150px!important;height:auto!important;object-fit:contain!important}
.tcas-footer-brand-caption{color:#fff!important;font-size:12px;line-height:1.25;text-align:center;font-weight:400;white-space:normal;width:100%;max-width:300px}
@media(max-width:900px){.tcas-footer-logo img{max-width:260px!important}.tcas-footer-brand-caption{font-size:11px}}
@media(max-width:680px){.tcas-footer-logo img{max-width:280px!important}.tcas-footer-brand-caption{font-size:12px}}

/* v1.1.6: smaller, regular-weight caption centered precisely under logo */
.tcas-footer-brand-caption{
  font-size:10px!important;
  font-weight:400!important;
  text-align:center!important;
  line-height:1.25!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  letter-spacing:0!important;
}
.tcas-footer-logo-wrap{align-items:center!important;text-align:center!important}
.tcas-footer-logo{margin-left:auto!important;margin-right:auto!important}

/* v1.1.7: larger vector logo; smaller caption nudged left to sit visually centered beneath mark */
.tcas-footer-logo img{
  max-width:360px!important;
  max-height:175px!important;
  width:100%!important;
  height:auto!important;
  object-fit:contain!important;
}
.tcas-footer-brand-caption{
  font-size:8px!important;
  font-weight:400!important;
  text-align:center!important;
  transform:translateX(-10px);
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  line-height:1.2!important;
}
@media(max-width:900px){
  .tcas-footer-logo img{max-width:290px!important;max-height:150px!important}
  .tcas-footer-brand-caption{font-size:8px!important;transform:translateX(-6px)}
}
@media(max-width:680px){
  .tcas-footer-logo img{max-width:300px!important;max-height:155px!important}
  .tcas-footer-brand-caption{font-size:9px!important;transform:translateX(-6px)}
}

/* v1.1.8: visually center caption beneath the logo mark; enlarge vector logo further */
.tcas-footer-logo img{
  max-width:410px!important;
  max-height:195px!important;
  width:100%!important;
  height:auto!important;
  object-fit:contain!important;
}
.tcas-footer-brand-caption{
  font-size:7px!important;
  font-weight:400!important;
  text-align:center!important;
  transform:translateX(-22px)!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  line-height:1.2!important;
}
@media(max-width:900px){
  .tcas-footer-logo img{max-width:320px!important;max-height:160px!important}
  .tcas-footer-brand-caption{font-size:7px!important;transform:translateX(-14px)!important}
}
@media(max-width:680px){
  .tcas-footer-logo img{max-width:300px!important;max-height:155px!important}
  .tcas-footer-brand-caption{font-size:8px!important;transform:translateX(-10px)!important}
}

/* v1.1.9: larger original vector logo, preserve SVG aspect ratio and crispness */
.tcas-footer-logo img{
  max-width:480px!important;
  max-height:225px!important;
  width:100%!important;
  height:auto!important;
  object-fit:contain!important;
}
@media(max-width:900px){
  .tcas-footer-logo img{max-width:350px!important;max-height:180px!important}
}
@media(max-width:680px){
  .tcas-footer-logo img{max-width:310px!important;max-height:165px!important}
}

/* v1.2.0: remove the blank pale strip/gap above the institutional footer */
.tcas-institutional-footer{margin-top:-60px!important;padding-top:0!important}
.tcas-footer-main{margin-top:0!important}
.tcas-institutional-footer:before,.tcas-institutional-footer:after{display:none!important;content:none!important}

/* Mobile compact layout for TCAS footer v1.2.0 — desktop remains unchanged */
@media screen and (max-width:680px){
  .tcas-footer-inner{
    grid-template-columns:1fr!important;
    gap:0!important;
    padding:12px 16px!important;
    min-height:0!important;
  }
  .tcas-footer-brand{
    padding:0 0 10px!important;
    min-height:0!important;
  }
  .tcas-footer-logo img{
    max-width:175px!important;
    max-height:95px!important;
    width:auto!important;
  }
  .tcas-footer-brand-caption{
    font-size:7px!important;
    line-height:1.15!important;
    margin-top:3px!important;
  }
  .tcas-footer-nav{
    border-left:0!important;
    border-top:1px solid rgba(255,255,255,.35)!important;
    padding:9px 0!important;
    height:auto!important;
    justify-content:center!important;
  }
  .tcas-footer-column ul{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    gap:0!important;
  }
  .tcas-footer-column li{
    padding:3px 0!important;
    margin:0!important;
    line-height:1.25!important;
  }
  .tcas-footer-column a{
    font-size:12px!important;
  }
  .tcas-footer-contact{
    grid-column:auto!important;
    border-left:0!important;
    border-top:1px solid rgba(255,255,255,.35)!important;
    margin-top:0!important;
    padding:10px 0!important;
    gap:6px!important;
    height:auto!important;
    font-size:12px!important;
  }
  .tcas-contact-item{
    gap:8px!important;
    line-height:1.3!important;
  }
  .tcas-contact-icon{
    min-width:21px!important;
    font-size:16px!important;
  }
  .tcas-address-icon svg{
    width:19px!important;
    height:22px!important;
  }
  .tcas-footer-social{
    grid-column:auto!important;
    border-left:0!important;
    border-top:1px solid rgba(255,255,255,.35)!important;
    margin-top:0!important;
    padding:10px 0 4px!important;
    height:auto!important;
    gap:6px!important;
  }
  .tcas-footer-social h2{
    font-size:11px!important;
    margin:0 0 5px!important;
    line-height:1.2!important;
  }
  .tcas-social-list{gap:8px!important}
  .tcas-social-link{
    width:30px!important;
    height:30px!important;
    font-size:14px!important;
  }
  .tcas-instagram-icon,.tcas-linkedin-icon{
    width:16px!important;
    height:16px!important;
  }
  .tcas-footer-bottom-inner{
    padding:8px 12px!important;
    font-size:10px!important;
    line-height:1.25!important;
    gap:8px!important;
  }
}
@media screen and (max-width:380px){
  .tcas-footer-inner{padding:10px 12px!important}
  .tcas-footer-logo img{max-width:155px!important;max-height:85px!important}
  .tcas-footer-column a{font-size:11px!important}
  .tcas-footer-contact{font-size:11px!important}
  .tcas-footer-bottom-inner{font-size:9px!important}
}

/* v1.2.1: esconder a coluna «Tribunal» (3 ligações) apenas em telemóvel; desktop inalterado */
@media screen and (max-width:680px){
  .tcas-footer-nav{display:none!important}
}

/* v1.2.2: legenda branca mais perto do logótipo; só muda o espaçamento, sem alterar tamanhos */
.tcas-footer-logo-wrap{gap:0!important}
.tcas-footer-brand-caption{margin-top:0!important}
@media screen and (max-width:900px){
  .tcas-footer-brand-caption{margin-top:1px!important}
}
@media screen and (max-width:680px){
  .tcas-footer-brand-caption{margin-top:4px!important}
}

/* v1.2.3: texto do copyright numa só linha em telemóvel (reduz só quando necessário); desktop inalterado */
@media screen and (max-width:680px){
  .tcas-footer-bottom-inner,
  .tcas-footer-bottom-inner span{
    font-size:min(10px,calc((100vw - 24px)/40))!important;
    white-space:nowrap!important;
  }
}
