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

body, html {
	margin: 0;
    
    height: 100%;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth; /* Smooth scrolling */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 180px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;


    /* A imagem passa para aqui, ficando por cima do preto */
    background-image: url("background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: #111 1px solid;
    border-top: #111 1px solid;
    
    /* Aqui controla a visibilidade da imagem */
    /* opacity: 1; -> Imagem totalmente opaca */
    /* opacity: 0.7; -> Imagem ligeiramente transparente revelando o preto por baixo */
   
}

.navbar.scrolled {
    height: 90px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.nav-container {
    /*
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    */

     position: relative;   /* 🔑 obrigatório */
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

/* Logo */
.logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.nav-logo img {
    height: 180px;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.navbar.scrolled .nav-logo img {
    height: 90px;
    opacity: 0.95;
}

/* Navigation menu */
.nav-menu {
    list-style: none;
    display: flex;
    margin-left: auto;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: color 0.3s ease;
}

/* hover */
.nav-menu a:hover {
    color: #b8860b;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* linha dourada animada */
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background-color: #b8860b;
    transition: width 0.3s ease;
}

/* Active nav link */
.nav-menu a.active {
    color: #b8860b;            /* Dark goldenrod */
    font-weight: bold;

}

.nav-menu a.active::after {
    width: 100%;
    color: #b8860b;
}



/* Hamburger menu */
.hamburger {
    display: none; /* já tens, só reafirmar */
    flex-direction: column;
    cursor: pointer;

    position: absolute;   /* posicionamento absoluto */
    right: 20px;          /* distância da borda direita */
    top: 50%;             /* centra verticalmente */
    transform: translateY(-50%);
    z-index: 3;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    height: 100vh;
    width: 100%;
    background-image: url("your-image.jpg"); /* Replace with your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.herolayer {
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
}

.hero-content {
    color: white;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 40px;
    margin-bottom: 30px;
}

.hero-button {
    background-color: rgba(255,255,255,0.8);
    color: black;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hero-button:hover {
    background-color: white;
}

/* Sections */
.section {
    padding: 100px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.section p {
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 16px;
}

.section h2 {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 40px;
    color: #111;
    position: relative;
    text-transform: uppercase;
}

.section h2::after {
    content: "";
    width: 60px;
    height: 2px;
    background-color: #b8860b;
    display: block;
    margin: 16px auto 0;
}

@media (max-width: 768px) {
    .section h2 {
        font-size: 26px;
        letter-spacing: 1px;
    }
}

.section:nth-child(even) {
    background-color: #e2e2e2;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 180px; /* altura da navbar */
        right: -100%;
        width: 220px;
        height: calc(100vh - 90px);
        background-color: rgba(0,0,0,0.95);
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .navbar.scrolled .nav-menu {
        top: 90px;
        height: calc(100vh - 60px);
    }
}



/* new */
/* SECTION 3 – FUNDO */
#section3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* CARTÃO */
#section3 > * {
    max-width: 420px;
    width: 100%;
}

#section3 {
    text-align: center;
}

#section3 {
    gap: 0;
}

/* Cartão visual */
#section3 {
    position: relative;
}

#section3::before {
    content: "";
    position: absolute;
    inset: 0;
}

/* Conteúdo do cartão */
#section3 h2,
#section3 p {
    position: relative;
    z-index: 1;
}

#section3 {
    background-color: #f0f0f0;
}

#section3 > h2,
#section3 > p {
    background: white;
}

#section3 > h2 {
    padding-top: 40px;
}

/* Agrupar tudo como cartão */
#section3 > h2,
#section3 > p {
    padding-left: 40px;
    padding-right: 40px;
}

#section3 > p:last-of-type {
    padding-bottom: 40px;
}

/* Sombra + bordas */
#section3 > h2,
#section3 > p {
    
}

#section3 > h2 {
    border-radius: 16px 16px 0 0;
}

#section3 > p:last-of-type {
    border-radius: 0 0 16px 16px;
}

/* TÍTULO */
#section3 h2 {
    font-size: 30px;
    margin-bottom: 0;
    padding-bottom: 30px;
    letter-spacing: 1px;
}

/* LOGO */
#section3 img {
    width: 130px;
    margin: 0 auto 30px;
    display: block;
}

/* TEXTO */
#section3 p {
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    color: #333;
}

/* Destaque telefone */
#section3 p:nth-of-type(2) {
    font-weight: 500;
    font-size: 18px;
}

/* Espaço entre morada e email */
#section3 p:nth-of-type(4) {
    margin-bottom: 0;
}

/* Email */
#section3 p:last-of-type {
    font-weight: 500;
    color: #b8860b; /* dourado elegante */
}

/* RESPONSIVO */
@media (max-width: 768px) {
    #section3 {
        padding: 80px 20px;
    }

    #section3 h2 {
        font-size: 26px;
    }

    #section3 p {
        font-size: 16px;
    }
}

/* ÍCONES DISCRETOS – CONTACTOS */

/* Base para alinhar ícone + texto */
#section3 p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Telefone */
#section3 p:nth-of-type(2)::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("web.png");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
   
}

/* Morada (linha 1) */
#section3 p:nth-of-type(3)::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    /* background-image: url("web.png"); */
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
}

/* Morada (linha 2 – sem ícone, alinhada) */
#section3 p:nth-of-type(4)::before {
    content: "";
    width: 16px; /* alinha com o ícone de cima */
}

/* Email */
#section3 p:last-of-type::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("mail.png");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
}


.hero-content p {
    animation: fadeSlide 6s ease-in-out infinite;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* BOTÃO DO HERO – APARECE DEPOIS DO SLOGAN */
.hero-button {
    opacity: 0;
    animation: buttonFadeIn 6s ease-in-out infinite;
}

/* Keyframes do botão */
@keyframes buttonFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    35% {
        opacity: 0;
        transform: translateY(10px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}


/* SECTION IMAGEM – FULLSCREEN */
.pillow-section {
    /*height: 100vh;*/
    width: 100%;
    margin: 0;
    padding: 0 !important;
    
    /* O fundo do contentor é agora o preto sólido */
    background-color: rgb(0, 0, 0); 
    border-bottom: #111 2px solid;
    
    position: relative;
    overflow: hidden;
}

.pillow-section::before {
    content: "";
    position: absolute;
    inset: 0;
    
    /* A imagem passa para aqui, ficando por cima do preto */
    background-image: url("background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Aqui controla a visibilidade da imagem */
    /* opacity: 1; -> Imagem totalmente opaca */
    /* opacity: 0.7; -> Imagem ligeiramente transparente revelando o preto por baixo */
    opacity: 1; 
    
    z-index: 1;
}

/* Garante que qualquer texto ou conteúdo dentro da secção 
   fique por cima da imagem */
.pillow-section > * {
    position: relative;
    z-index: 2;
}



.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}



.overlay-content {
    position: relative;
    z-index: 2;
}


.site-footer {
    height: 50px;
    width: 100%;
    background-color: #333;
    display: flex;
    align-items: center;      /* Centraliza verticalmente todos os filhos */
    justify-content: flex-end; /* Alinha tudo à direita */
    padding: 0 20px;           /* Espaço nas laterais */
}

.footer-link {
    display: flex;            /* Faz com que a imagem e o texto fiquem alinhados */
    align-items: center;      /* Centraliza o texto com a imagem */
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    margin-left: 20px;        /* Espaço entre os links */
    transition: color 0.3s ease;
}

.footer-link img {
    height: 35px;             /* Reduzi ligeiramente para não "bater" no teto do footer */
    width: auto;
    margin-right: 8px;        /* Espaço entre a imagem e o texto LEI */
    display: block;
}

.footer-link:hover {
    color: #cccccc; /* Muda ligeiramente de cor ao passar o rato */
}