/*!
 * Start Bootstrap - Creative v5.0.2 (https://startbootstrap.com/template-overviews/creative)
 * Copyright 2013-2018 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-creative/blob/master/LICENSE)
 */

/* Variables
 * Instead of hardcoding duplicate values throughout the file, please try to put them here
 * Notice this a target for continuous improvement!!
 */
:root {
    --navbar-height: 80px;
}

@media (min-width: 1200px) {
    :root {
        --navbar-height: 90px;
    }
}

/* Tiago: BSE 26 VI fonts
 * Headings: OpenSauce bold CAPS
 * Sub-headings: OpenSauceOne bold standard case
 * Body: Inter
 *
 * Notes:
 * Open Sauce ONE (= version without ink traps): https://github.com/marcologous/Open-Sauce-Fonts
 * Inter: https://fonts.google.com/specimen/Inter
 */
@font-face {
    font-family: "OpenSauce";
    src: url("../media/fonts/OpenSauceOne-Bold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Inter";
    src: url("../media/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: normal bold;
    font-style: normal;
    font-display: block;
}

html {
    scroll-behavior: smooth;
}

body,
html {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: left; /* justify by default */
    font-size: 20px;
    background-color: #000b29;
    color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "OpenSauce", system-ui, sans-serif;
}

/* A ideia é ter o texto por defeito a 20px e o h2 a 30px*/
h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

section {
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    scroll-margin-top: calc(var(--navbar-height) + 1rem); /* space for the navbar */
}

/* faq and location sections need less margin here due to the background images */
.nav-scroll-min {
    scroll-margin-top: var(--navbar-height);
}

/* selected text color when user drags mouse */
::selection {
  color: #fff;
  background: #212529;
  text-shadow: none;
}

/* don't select over images */
img::selection {
  color: #fff;
  background: transparent;
}

/*footer*/
.footer {
  background: rgb(24, 24, 24);
  padding: 10px 0;
}
.footer a {
  color: rgb(255, 255, 255);
  padding: 10px;
  transition: all .3s ease;
}
.footer a:hover {
  color:  #011136;
}
.footer-copyright {
  background: rgb(24, 24, 24);
  padding: 10px 0;
  font-size: 11px;
  color: white;
}

/*=============== team ===============*/
/* ===== SEÇÃO CORE TEAM (SEM BOOTSTRAP) ===== */

/* Contentor que limita a largura e centra na página */
.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* A GRELHA (GRID) - O substituto do Row/Col */
/* A GRELHA (GRID) - Alterada para 4 colunas */
.team-grid {
    display: flex;       /* Mudamos para flex para permitir o centramento da última linha */
    flex-wrap: wrap;     /* Permite que os itens "saltem" para a linha de baixo */
    justify-content: center; /* Centra os itens de ambas as linhas */
    gap: 20px;           /* Espaçamento entre fotos */
    max-width: 1200px;
    margin: 0 auto;
}

.team-members {
    /* Calculamos a largura para que caibam exatamente 4 por linha (menos o gap) */
    flex: 0 1 calc(25% - 20px);
    background-color: #011136; 
    min-width: 250px;    /* Impede que fiquem pequenas demais */
    height: 300px;       /* Mantém a altura que definimos */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

/* Imagem do Avatar */
.team-avatar {
    width: 100%;
    height: 100%;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a foto preencher o espaço sem distorcer */
    display: block;
    transition: transform 0.5s ease;
}

/* Overlay Escuro que aparece no Hover */
.team-avatar:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 78, 116, 0); /* Transparente por padrão */
    transition: background 0.3s ease;
}

.team-members:hover .team-avatar:after {
    background: rgba(0, 11, 41, 0.7); /* Azul escuro semi-transparente no hover */
}

.team-members:hover .team-avatar img {
    transform: scale(1.1); /* Zoom suave na imagem */
}

/* DESCRIÇÃO (Nome e Cargo) */
.team-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    color: #fff;
    text-align: center;
    
    /* Estado inicial (escondido abaixo) */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-members:hover .team-desc {
    opacity: 1;
    transform: translateY(-20px); /* Sobe para a posição final no hover */
}

.team-desc h4 {
    margin: 0 0 5px;
    color: #fff;
}

.team-desc span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #68fff7; /* Cargo em ciano para destacar */
}

/* AJUSTE RESPONSIVO: Se houver apenas 1 item, não o deixa ficar gigante */
@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}


/* Location */
#location {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efeito parallax bonito */
    padding: 4rem 0;
}

/* containers for the JS image slideshow (check cycleBackgroundImages)*/
.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

/* Aumentar o padding da caixa para o texto respirar */
.transparent-box {
    position: relative;
    z-index: 1; /* required to float above the BG */
    background-color: rgba(0, 11, 41, 0.85);
    margin: 0 auto;
    padding-top: 15px;
    padding-bottom: 15px;
}

.source-wrapper {
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.source-link {
    font-size: 0.8rem;
    opacity: 0.6;
}


/*Parceiros*/
.logo-box{
	background-color: #fff;
	border-radius: 100%;
}
.logo-box, .logo {
	width: 100%;
}
.spacing-logos {
	margin-bottom: 2vh;
}
.logo:hover {
  transform: scale(1.05); 
}

/*carousel*/
.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
  display: flex;
  max-height: 20vw;
  min-height: 18vh;

}
.carousel-inner .carousel-item.img{
height: 10px;
}

.carousel-inner .carousel-item-right.active,
.carousel-inner .carousel-item-next {
  transform: translateX(33%);
}

.carousel-inner .carousel-item-left.active, 
.carousel-inner .carousel-item-prev {
  transform: translateX(-33%);
}
  
.carousel-inner .carousel-item-right,
.carousel-inner .carousel-item-left{ 
  transform: translateX(0);
  
}

section#contact{
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}


/* ===== SLIDE 1  ===== */
.slide1 {
  /* espaço para a navbar */
  padding-top: calc(var(--navbar-height) + 1rem);
  padding-bottom: 4rem;
}

.slide1 h1 {
    font-size: 2.5rem;
}

@media (max-width: 490px) {
    .slide1 h1 {
        font-size: 2rem;
    }
    .slide1 h2 {
        font-size: 1rem;
    }
}

/* caixa do trailer */
#trailer {
    width: 100%;
    max-width: 640px !important;
    height: 320px !important;
    border: 0;
}

/* responsivo */
@media (max-width: 992px){
    .btn-wrap { padding: 2rem 0; }
    .slide1-title{ font-size: 2.2rem; }
    .slide1-subtitle{ font-size: 1.4rem; }
    .slide1-date{ font-size: 1.4rem; }
}

/* ===== NAVBAR GERAL ===== */

nav .brain {
    height: 80px;
}

nav .logo {
    width: auto;
    padding: 12px 10px;
    filter: brightness(0) invert(1); /* Torna o logo PNG totalmente branco */
}

#mainNav {
    background: #004e74 !important;
    border: none !important;
    padding: 5px 0 !important;
    transition: all 0.3s ease;
}

/* Links da Navbar */
#mainNav .navbar-nav {
    align-items: center;
    gap: 26px; /* Espaçamento entre itens */
    /* é mt mau isto estar hardcoded, como se vê pela quantidade de @medias que fiz em baixo
     * todo: deve dar para fazer só com flexbox e justify-content: space-*
     */
}

/* Tiago: mano isto fez me sangrar dos olhos*/
#mainNav .navbar-nav .nav-link {
  color: #ffffff !important; /* Letras sempre brancas por padrão */
  font-weight: bold !important;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 10px 18px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* MEDIA queries para manter a navbar sem fazer wrap no texto */
@media (max-width: 1550px) {
    #mainNav .navbar-nav .nav-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 1400px) {
    #mainNav .navbar-nav .nav-link {
        font-size: 0.7rem;
    }

    #mainNav .navbar-nav {
        align-items: center;
        gap: 20px; /* Espaçamento entre itens */
    }
}

@media (max-width: 1220px) {
    #mainNav .navbar-nav .nav-link {
        font-size: 0.6rem;
    }

    #mainNav .navbar-nav {
        align-items: center;
        gap: 0;
    }

    nav .brain {
        height: 70px;
    }
}

/* this is the navbar collapse breakpoint */
@media (max-width: 991px) {
    nav .brain {
        display: none;
    }

    nav .logo {
        display: inline;
    }

    /* now we can increase font slightly again since links are vertically distributed */
    #mainNav .navbar-nav .nav-link {
         font-size: 0.8rem;
     }
}

/* ===== ESTADOS DE REALCE (HOVER E ACTIVE) ===== */

/* Quando passas o rato OU a secção está ativa */
#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
  color: #68fff7 !important; /* Ciano brilhante */
  background: transparent !important;
  border: none !important;
  font-weight: bold !important; /* Realce visual pelo peso da fonte */
  text-shadow: 0 0 8px rgba(104, 255, 247, 0.4); /* Brilho suave */
}

/* ===== COMPORTAMENTO NO SCROLL (SHRINK) ===== */

#mainNav.navbar-shrink {
  background: #004e74 !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Sombra leve para destacar a barra no scroll */
}

/* Garante que o texto se mantém branco e sem opacidade no scroll */
#mainNav.navbar-shrink .navbar-nav .nav-link {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Mantém o realce ciano no scroll para o link ativo */
#mainNav.navbar-shrink .navbar-nav .nav-link.active,
#mainNav.navbar-shrink .navbar-nav .nav-link:hover {
  color: #68fff7 !important;
}

.header-row {
    text-align: center;      /* Isto centra o conjunto traço + texto */
    margin-bottom: 30px;
}

/* linhas brancas titulos*/
.line-title {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    margin-bottom: 10px;
}

.line {
    height: 4px;
    width: 40vw;
}

.line-title > * {
    padding: 0 2rem;
}

.line-text {
    width: 40vw;
    align-self: flex-start;
    margin-left: 15vw;
}

.line-text p {
    margin: 0;
    padding: 1rem 0;
}

.line-white {
    background-color: #ffffff;
}

.line-yellow {
    background-color: #ddff00;
    width: 30vw;
}

@media (max-width: 1250px) {
    .line-text {
        width: 50vw;
        align-self: flex-start;
        margin-left: 10vw;
    }
}

/* A FAIXA AZUL: Muito mais estreita */
.stats-banner {
    background-color: #004e74;
}

.stats-banner .num {
    font-size: 39px;
    line-height: 40px;
}

.values-footer {
    display: flex;
    /* justify-content: space-between faz com que o primeiro item cole à esquerda, 
       o último à direita e os outros se espalhem no meio */
    justify-content: space-between; 
    align-items: center;
    
    width: 100%;           /* Garante que ocupa a largura toda */
    max-width: 1200px;     /* Ajusta este valor para alinhar com o texto de cima */
    margin: 40px auto 0;   /* Centra o bloco inteiro na página */
    padding: 0 20px;       /* Pequena margem para não colarem mesmo aos bordos do ecrã */
    
    color: #68fff7 !important; 
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Se em ecrãs muito pequenos as palavras se atropelarem, elas passam para baixo */
@media (max-width: 768px) {
    .values-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}


/* =====================================
   About BEST Porto Section Stylinng
===================================== */
.container {
    max-width: 1200px;
}

/* Tiago 30jan: eu confesso q também javardei aqui
 * Isto devia dar para fazer tudo com recurso ao bootstrap
 * em vez de ter esta custom grid que eu criei + o comboio de breakpoints para ela em baixo...
 * #tech debt
 */
.container-grid {
    width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 2fr;
    column-gap: 4em;
    align-items: center;

    /* this is to match the bootstrap container so text aligns everywhere */
    padding-right: 15px;
    padding-left: 15px;

    /* Text settings for these blocks */
    /* Important to have this here for em spacing consistency on children */
    font-size: 20px;
    color: white;
}

.grid-one-row {
    grid-template-rows: 1fr;
}

.grid-two-rows {
    grid-template-rows: 1fr 50px;
}

/* ---------- Texto ---------- */

.best-porto-title {
  font-weight: bold;             /* negrito */
  text-transform: none;
  margin-bottom: 22px;
}

.best-porto-text {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    place-self: start center;
}

.best-porto-text p {
    margin-bottom: 1em;
}

.best-grid-bottom-row {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    place-self: start center;
}

.btn-custom-best {
    /* Shape */
    display: inline-flex;
    height: 50px;
    padding: 0 50px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 30px;
    background: #ddff00;
    color: #000;
    font-weight: bold;
}

.btn-custom-best:hover {
    text-decoration: none;
    color: #000;
    transform: scale(1.05);
}

/* Placement for buttons inside grids */
.container-grid .btn-custom-best {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    place-self: end end;
}

/* ---------- Imagens ---------- */
.best-porto-images {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.best-porto-images img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

@media (max-width: 1250px) {

    .container-grid {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        width: 90%;
    }

    .best-porto-title {
        text-align: center;
    }

    .best-porto-images {
        margin-top: 1em;
        width: 100%;
    }

    .best-porto-images img {
        width: 100%;
        height: 350px;
    }

    .container-grid .btn-custom-best {
        place-self: center center;
    }
}

@media (max-width: 800px) {
    .best-porto-images img {
        height: 250px;
    }
}

/* --- CABEÇALHOS COM LINHA ATÉ AO FIM --- */
.header-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
}

.text-yellow {
  color: #ddff00;
 
}

.text-cyan {
    color: #68fff7;
}

/* --- BOTÕES CENTRALIZADOS --- */
.button-center {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.btn-symposium {
    background-color: #68fff7;
    color: #000b29;
    text-decoration: none;
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    min-width: 220px;
    text-align: center;
}

.btn-symposium:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.4);
    text-decoration: none;
    color: #000b29;
}


/* Mobile */
@media (max-width: 700px) {
    .button-center { flex-direction: column; align-items: center; }
}

/* ===== Footer Socials (Side by Side) ===== */

.footer-socials {
  background-color: #000b29;
  padding: 40px 0;
}

.socials-inner {
  display: flex;
  align-items: center;          /* vertical alignment */
  justify-content: flex-start;  /* start from left */
  max-width: 90%;               /* bar width */
  margin: 0 auto;               /* center horizontally */
  gap: 60px;                    /* space between left and right blocks */
  flex-wrap: wrap;              /* keeps responsive */
}

.socials-left, .socials-right {
  color: white;
  margin: 0;                    /* remove extra spacing */
}

.follow-text {
  margin: 0 0 6px 0;            /* small margin below text */
  font-weight: bold;
}

.follow-line {
  width: 140px;
  height: 2px;
  background-color: white;
  margin: 6px 0 12px 0;        /* tight spacing under line */
}

.social-icons a {
  color: white;
  margin-right: 15px;
  text-decoration: none;
}

.social-icons a:last-child {
  margin-right: 0;
}

.social-icons a:hover {
  opacity: 0.7;
}

.socials-right p {
  margin: 0 0 4px 0;            /* small spacing between address lines */
}


/*Contacts section 
/* Pink circular container for the icons */
.icon-circle-pink {
  display: inline-flex;       /* Necessary to center the icon perfectly */
  align-items: center;
  justify-content: center;
  
  width: 32px;
  height: 32px;
  border-radius: 50%;         /* Turns the square into a perfect circle */
  
  background-color: #ff007f;  /* Pink color */
  font-size: 0.9rem;
}

/* Overrides for links */
#contact a {
  text-decoration: none;      
  color: white;               
}