/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
header {
    background-color: #000;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 50px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    padding: 0 20px;
}

/* Telefone no canto esquerdo */
.header-phone {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.header-phone a {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.header-phone a:hover {
    text-decoration: underline;
}

/* Navegação */
header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #ff6f61;
}

/* Hero */
.hero {
    background-image: url('img/site.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 50px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5em;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
}

/* Sections */
section {
    padding: 60px 20px;
}

.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

/* Scroll-margin */
section[id] {
    scroll-margin-top: 70px;
}

/* Formulário */
form {
    max-width: 600px;
    margin: 0 auto;
}

form label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    resize: vertical;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: #ff6f61;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 15px;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #e55b51;
}

form button:focus {
    outline: 2px solid #e55b51;
    outline-offset: 2px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
}

footer .top-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

footer .top-contact a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1em;
}

footer .top-contact a:hover {
    text-decoration: underline;
}

/* Banner de Cookies */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(100, 110, 130, 0.6) !important; /* Cinzento médio azulado translúcido 60% */
    color: #222;
    padding: 15px;
    text-align: center;
    display: none;
    z-index: 1000;
    font-size: 14px;
    backdrop-filter: blur(3px);
    box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.3);
}

.cookie-buttons {
    margin-top: 10px;
}

.cookie-button {
    background-color: #f1c40f;
    color: #222;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    margin: 5px 8px;
}

.cookie-button:hover {
    background-color: #e6b800;
}

.cookie-button.reject {
    background-color: #d9534f;
    color: white;
}

.cookie-button.config {
    background-color: #5bc0de;
    color: white !important; /* Letras brancas no configurar */
}

/* Área de configurações das cookies */
#cookie-settings {
    background-color: rgba(100, 110, 130, 0.6); /* Mesma cor cinzento médio azulado translúcido */
    color: #fff;
    padding: 15px;
    border-radius: 6px;
    text-align: left;
    max-width: 480px;
    margin: 15px auto 0 auto;
    backdrop-filter: blur(3px);
}

#cookie-settings label {
    font-size: 13px;
    color: #fff; /* texto branco para os labels */
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        height: auto;
        padding: 10px 20px;
        position: relative;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-phone {
        position: static;
        transform: none;
        margin-bottom: 10px;
        width: 100%;
        text-align: left;
    }

    header nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .container {
        width: 90%;
    }

    footer .top-contact {
        flex-direction: column;
        gap: 10px;
    }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: #222;
    margin-bottom: 10px;
}

.card p {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
}

/* Responsividade extra para cards */
@media (max-width: 480px) {
    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 1.2em;
    }

    .card p {
        font-size: 0.95em;
    }
}

/* Ajustes para contactos */
.contactos p {
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 2px;
}
