@import url('https://fonts.googleapis.com/css2?family=Jost:wght@500;700;900&family=Montserrat:wght@400;500;700&family=Quicksand:wght@300..700&display=swap');

:root{
  --bg:#242424;
  --red:#c92127;
  --white:#ffffff;
  --text:#242424;
}

*{ box-sizing: border-box; }

html{ height: 100%; }

body{
  background: var(--bg);
  margin: 0;
  padding: 0;

  /* Layout base do site (uniforme em TODAS as páginas) */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Para páginas que precisam de “encher o ecrã” entre header e footer (ex: login) */
[data-fill-viewport]{
  flex: 1 0 auto;
}

/* =========================
   TOP LOADER (global)
   ========================= */
.topLoader{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;

  z-index: 10000;
  pointer-events: none;

  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.topLoader.is-active{
  opacity: 1;
  transform: translateY(0);
}

.topLoaderBar{
  width: 28%;
  height: 100%;
  background: var(--red);
  border-radius: 0 999px 999px 0;
  animation: topLoaderMove 1.0s ease-in-out infinite;
}

@keyframes topLoaderMove{
  0%   { transform: translateX(-120%); }
  50%  { transform: translateX(250%); }
  100% { transform: translateX(420%); }
}

/* =========================
   COOKIE BANNER
   ========================= */
.cookie-banner{
  font-family: 'Montserrat', sans-serif;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: rgb(64, 63, 63);
  color: #fff;
  padding: 15px;
  text-align: center;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  display: none;
}

.cookie-banner p{
  max-width: 70%;
  margin: 0;
}

.cookieActions{
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

.cookie-banner button{
  background-color: var(--red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  width: auto;
  margin: 0;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
}

.cookie-banner a{
  color: #f1faee;
  text-decoration: underline;
  width: auto;
  margin-right: 15px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

@media (max-width: 700px){
  .cookie-banner{
    gap: 10px;
    padding: 12px;
  }

  .cookie-banner p{
    max-width: 100%;
    text-align: left;
  }

  .cookieActions{
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }

  .cookie-banner button{
    padding: 10px 14px;
  }
}

/* =========================
   HEADER
   ========================= */
.siteHeader{
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.headerInner{
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;

  min-height: 92px;
  padding: 10px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logoHolder{
  display: flex;
  align-items: center;
}

.logo{
  width: 300px;
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.mainNav{
  display: flex;
  align-items: center;
  gap: 14px;
}

.headerButton{
  font-family: 'Jost', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  text-decoration: none;
  text-transform: uppercase;

  color: var(--red);
  background-color: var(--bg);

  padding: 10px 14px;
  border: 4px solid var(--bg);
  border-radius: 18px;

  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.headerButton:hover{
  color: #000;
  background-color: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}

.headerActions{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

/* suporta .langWrap e também .langToggle (caso uses esse nome no HTML) */
.langWrap,
.langToggle{
  display: flex;
  align-items: center;
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 16px;
  overflow: hidden;
  background: #f6f6f6;
}

/* reset total para não ficar “descolado” no mobile (estilo nativo de button) */
.langBtn{
  -webkit-appearance: none;
  appearance: none;

  background: transparent;
  border: 0;
  margin: 0;

  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);

  padding: 10px 12px;
  min-width: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 0;
  cursor: pointer;

  transition: background-color .2s ease, color .2s ease;
}

.langBtn + .langBtn{
  border-left: 1px solid rgba(0,0,0,0.12);
}

.langBtn:hover{
  background: rgba(0,0,0,0.06);
}

.langBtn.is-active{
  background: var(--bg);
  color: var(--white);
}

.accountBtn{
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.loginIcon{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 3px solid rgba(201,33,39,0.6);
}

/* Tablet */
@media (max-width: 1000px){
  .headerInner{
    padding: 14px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    min-height: 84px;
  }

  .logo{
    width: 280px;
    max-height: 72px;
  }

  .headerButton{
    font-size: 1.05rem;
    padding: 9px 12px;
  }

  .loginIcon{
    width: 48px;
    height: 48px;
  }

  .langBtn{
    padding: 9px 10px;
    min-width: 42px;
  }
}

/* Mobile */
@media (max-width: 700px){
  .headerInner{
    width: min(1200px, calc(100% - 24px));
    padding: 10px 0;
    gap: 10px;
    min-height: 74px;
    justify-content: center;
  }

  /* 2 linhas limpas: logo em cima, nav+ações em baixo */
  .logoHolder{
    flex: 1 0 100%;
    justify-content: center;
  }

  .logo{
    width: 210px;
    max-height: 56px;
  }

  .mainNav{
    gap: 10px;
  }

  .headerButton{
    font-size: 0.92rem;
    padding: 8px 10px;
    border-width: 4px;
    border-radius: 16px;
  }

  .headerActions{
    gap: 10px;
  }

  .langBtn{
    padding: 8px 10px;
    min-width: 40px;
    font-size: 0.82rem;
  }

  .loginIcon{
    width: 42px;
    height: 42px;
  }
}

/* =========================
   FOOTER (mantém o teu)
   ========================= */
footer{
  position: relative;
  bottom: 0;
  background-color: white;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Quicksand';
  flex: 0 0 auto;
}

.stickyfooter{
  position: fixed;
  bottom: 0;
}

.footerContainer{
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 18px;
}

footer .links{
  display: flex;
  justify-content: center;
  margin-top: 34px;
  margin-bottom: 22px;
  gap: 18px;
}

footer .links a{
  text-decoration: none;
  font-size: 46px;
  margin: 0;
  color: #242424;
}

footer .links a:hover{
  color: var(--red);
}

#politics{
  font-family: 'Montserrat', sans-serif;
  color: #242424;
  text-decoration: underline;
  width: auto;
  font-weight: 700;
}

#politics:hover{
  color: var(--red);
}

footer .powered{
  display: flex;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: #242424;
  align-items: center;
  text-align: center;
  margin-top: 10px;
}

.BackUp{
  width: 90px;
}

/* Tablet */
@media (max-width: 1000px){
  footer .links a{
    font-size: 56px;
  }

  footer .powered{
    font-size: 1.05rem;
  }

  .BackUp{
    width: 120px;
  }
}

/* Mobile */
@media (max-width: 700px){
  .footerContainer{
    padding-bottom: 14px;
  }

  footer .links{
    margin-top: 22px;
    margin-bottom: 14px;
    gap: 16px;
  }

  footer .links a{
    font-size: 42px;
  }

  #politics{
    font-size: 0.95rem;
  }

  footer .powered{
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  .BackUp{
    width: 100px;
  }
}
