:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f766e;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Reset apenas para os elementos da seção */
section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Seção principal - mantendo seu estilo original */
section {
    align-items: center;
    justify-content: center;
    display: flex;
}

/* Container de contato - mantendo sua estrutura */
.b-contacto {
    width: 60%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 20px;
    border-radius: 40px;
}

.b-contacto {
    background: #4e4a4a;
    box-shadow: var(--shadow);
    padding: 2rem;
    gap: 2rem;
}

.btn {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dark);
    color: var(--white);
    margin: 10px;
    width: 200px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

/* Melhorias nos botões */
.btn a:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn a:active {
    transform: translateY(0);
}

/* Botão secundário opcional */
.btn a.btn-secondary {
    background: var(--secondary);
}

.btn a.btn-secondary:hover {
    background: #0d635c;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

/* Container da imagem */
.img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img img {
    width: 300px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.img img:hover {
    transform: scale(1.02);
}

/* Responsividade */
@media (max-width: 1024px) {
    .b-contacto {
        width: 80%;
        height: auto;
        min-height: 400px;
        padding: 1.5rem;
    }

    .btn a {
        width: 180px;
        padding: 10px 16px;
    }

    .img img {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .b-contacto {
        flex-direction: column;
        width: 90%;
        height: auto;
        padding: 1.5rem;
        text-align: center;
        gap: 1.5rem;
    }

    .btn {
        flex-direction: column;
        align-items: center;
    }

    .btn a {
        margin: 8px;
        width: 220px;
    }

    .img img {
        width: 200px;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .b-contacto {
        width: 95%;
        margin: 10px;
        padding: 1rem;
        border-radius: 30px;
    }

    .btn a {
        width: 200px;
        padding: 10px;
        font-size: 0.9rem;
    }

    .img img {
        width: 180px;
    }
}

/* Animações suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.b-contacto {
    animation: fadeInUp 0.5s ease-out;
}

/* Melhorias de acessibilidade */
.btn a:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Ícones opcionais - se quiser usar */
.btn a i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Para botões com ícones */
.btn a.has-icon {
    padding-left: 16px;
}



/* ============================
   RESPONSIVIDADE GLOBAL MOBILE
   contacto.html
============================= */

/* impedir scroll lateral */
html, body{
    overflow-x: hidden;
}

/* HERO (o teu problema principal está aqui) */
@media (max-width: 1024px){

    .hero{
        padding: 30px 15px;
    }

    .hero-container{
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 20px;
        width: 100%;
    }

    .hero .left,
    .hero .right{
        width: 100%;
    }

    .hero button{
        width: 100%;
        max-width: 250px;
    }

}
.btn-consultar{
    text-decoration: none;
    color: white;
}
/* CONTACTO CONTAINER */
@media (max-width: 768px){

    section{
        padding: 20px 10px;
    }

    .b-contacto{
        width: 95%;
        height: auto;
        flex-direction: column;
        gap: 20px;
        border-radius: 25px;
    }

    .img{
        width: 100%;
    }

    .img img{
        width: 180px;
    }

    .btn{
        width: 100%;
        align-items: center;
    }

    .btn a{
        width: 90%;
        max-width: 260px;
        font-size: 0.95rem;
    }
}

/* TELEFONES PEQUENOS */
@media (max-width: 480px){

    .hero h1{
        font-size: 24px;
    }

    .hero p{
        font-size: 14px;
        line-height: 1.5;
    }

    .b-contacto{
        padding: 1rem;
    }

    .btn a{
        padding: 12px;
    }
}

/* FOOTER RESPONSIVO */
@media (max-width: 768px){

    .rodape{
        display: flex;
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding: 20px;
    }

    .rodape .logo img{
        width: 120px;
        margin: auto;
    }

    .links ol,
    .link ol{
        list-style: none;
        padding: 0;
    }

    footer input[type="text"]{
        width: 90%;
        max-width: 280px;
    }

    footer input[type="submit"]{
        width: 140px;
    }
}
