@charset "ISO-8859-1";

 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Spartan', sans-serif;
}

body {  
  background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),
        url('/imagens/imagemfundooficial.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Container do scroll */
.container {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

/* Cada div ocupa o ecrã inteiro */
.section {
	min-height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: start;
    align-items: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    flex-direction: column;
}

.s1 { background: transparent; }
.s2 { background: #fbf8f3; }
.s3 { background: #fbf8f3; }
.s4 { background: #fbf8f3; }

.tituloSelection {
	text-align: center;
  	font-size: 50px;
  	background: rgba(255,255,255,.50);
  	margin-top: 111px;
  	padding: 10px;
  	width: min(95%, 1400px);
}

.card {
    display: flex;
    flex-direction: column;
    width: min(95%, 1400px);
    padding: 30px;
    min-height: calc(100vh - 196px);
}

.hero-top-image {
	width: clamp(120px, 20vw, 300px);
  	height: auto;
  	object-fit: contain;
}


.titulo {
    color: white;
}

.frase {
    letter-spacing: 2px;
    color: black;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
}

   /* Esconder scrollbar (opcional) */
.container::-webkit-scrollbar {
  display: none;
}

.features::-webkit-scrollbar {
  display: none;
}
	
.features::-webkit-scrollbar-track {
  background: transparent;
}

.features::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: rgba(185, 111, 72, 0.35);
}

.features::-webkit-scrollbar-thumb:hover {
  background: rgba(185, 111, 72, 0.6);
}

.feature-card {
  flex: 0 0 280px;   /* <- FIXO controlado (não clamp!) */

  background: white;
  border: 1px solid rgba(55, 65, 43, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
  flex: 0 0 280px;
  justify-content: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.feature-card img {
  width: 60px;
  margin-bottom: 15px;
}

.feature-card span {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #8A817C;
}

.feature-card p {
  font-size: 0.95rem;
  color: black;
  margin-bottom: 20px;
  line-height: 1.5;
}

.feature-card button {
  border: none;
  background: black;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
}

.feature-card button:hover {
  background: #8A817C;
}

.fraseInicio {
    position: fixed;
    width: 80%;
    left: 40px;
    bottom: 160px;
    font-size: 35px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    animation: fadeOutUp 1.2s ease forwards
}

.fraseInicio.show {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.caixa {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
}

.caixa.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    animation: bounce 1.5s infinite;
}

.arrow-down {
    font-size: 35px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.card.s2{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    flex-direction: row;
}

.texto-perfil{
    flex:1;
}

.frase{
    text-align:justify;
    line-height:1.8;
}

#assinaturaPerfil{
    margin-top:20px;
    width:180px;
}

.foto-perfil{
    width:350px;
    border-radius:12px;
    object-fit:cover;
}


#fotosProtefolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
    justify-content: center;
    gap: 20px;
}

#fotosProtefolio img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

#btnMostrarMais {
  border: none;
  background: black;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  min-width: 20%;
}

#btnMostrarMais:hover {
  background: #8A817C;
}

#popupMostrarMais {
	text-align: center;
	width: 100%;
}

/* CATEGORIAS */
.categorias{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.categorias-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 350px));
    justify-content:center;
    gap:30px;
}

.categoria-card{
    position:relative;
    height:350px;
    overflow:hidden;
    border-radius:18px;
    cursor:pointer;
}

.categoria-card img{
    width:100%;
    height:100%;
    object-fit:cover;

    filter:brightness(.6);
    transition:.4s;
}

.categoria-card:hover img{
    transform:scale(1.05);
    filter:brightness(.75);
}

.categoria-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:25px;
    color:#fff;
    background:linear-gradient(
        transparent,
        rgba(0,0,0,.65)
    );
}

.categoria-overlay h3{
    margin:0;
    font-size:28px;
}

.categoria-overlay p{
    margin-top:10px;
    line-height:1.5;
    font-size: 14px;
}

@media (max-width: 992px){

    .categorias-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:768px){

    .categorias-grid{
        grid-template-columns:1fr;
    }

}

/* Mobile */
@media (max-width: 400px) {
    .titulo {
        font-size: 2rem;
    }

    .frase {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .card {
        align-items: flex-start;
        text-align: left;
    }
    
}

@media (max-width: 900px) {
    #fotosProtefolio {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #fotosProtefolio {
        grid-template-columns: 1fr;
    }
}

@media (max-width:768px){

    .card.s2{
        flex-direction:column;
        text-align:center;
    }

    .foto-perfil{
        width:100%;
        max-width:350px;
    }

    #assinaturaPerfil{
        margin:auto;
        margin-top:20px;
        display:block;
    }

}
