* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Georgia, serif; color: #333; }

html { scroll-behavior: smooth; }

/* NAVEGAÇÃO */
nav {
    background: transparent;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.4s ease;
}
nav.scrolled {
    background: #1b6ca8;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
nav .logo img { height: 60px; width: auto; }
nav ul { list-style: none; display: flex; gap: 28px; }
nav ul li { position: relative; }
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s;
    padding-bottom: 5px;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: #c8a84b;
    transition: width 0.3s ease;
}
nav ul li a:hover { color: #c8a84b; }
nav ul li a:hover::after { width: 100%; }
#lang-btn {
    border: 1px solid #c8a84b;
    padding: 4px 10px !important;
    color: #c8a84b !important;
    transition: all 0.3s ease;
}
#lang-btn:hover { background: #c8a84b; color: #fff !important; }

/* HERO */
.hero {
    height: 100vh;
    background-color: #f0f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
/* Imagem + overlay azul via pseudo-elemento para não afetar as bordas */
.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background-image: linear-gradient(rgba(27,108,168,0.35), rgba(27,108,168,0.35)),
                      url('img/hero-foto.jpg'); /* hero.jpg original tinha barras pretas em cima/baixo, visíveis em mobile */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 52px; letter-spacing: 5px; margin-bottom: 15px; color: #c8a84b; }
.hero .subtitulo { font-size: 16px; color: #fff; letter-spacing: 3px; margin-bottom: 10px; }
.hero .anos { font-size: 13px; color: #e8d08a; letter-spacing: 2px; margin-bottom: 40px; }
.hero a {
    background: #c8a84b;
    color: #fff;
    padding: 14px 38px;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.hero a:hover {
    background: #e8d08a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,168,75,0.4);
}

/* SECÇÕES GERAIS */
section { padding: 80px 40px; text-align: center; }
section h2 { font-size: 32px; margin-bottom: 15px; color: #1b6ca8; letter-spacing: 3px; }
.divisor { width: 70px; height: 2px; background: linear-gradient(to right, #1b6ca8, #c8a84b); margin: 0 auto 40px; }

/* SOBRE */
.sobre { background: #fff; }
.sobre p { max-width: 700px; margin: 0 auto; line-height: 1.9; font-size: 16px; color: #444; }
.sobre-stats { display: flex; justify-content: center; gap: 50px; margin-top: 35px; align-items: flex-end; }
.stat .numero { font-size: 38px; color: #1b6ca8; font-weight: bold; }
.stat .label { font-size: 11px; color: #1b6ca8; letter-spacing: 2px; }

/* ESPECIALIDADES */
.especialidades { background: #1b6ca8; }
.especialidades h2 { color: #c8a84b; }
.especialidades .divisor { background: linear-gradient(to right, #c8a84b, #e8d08a); }
.espec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 1000px; margin: 0 auto; }
.espec-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(200,168,75,0.25);
    padding: 35px 25px;
    border-top: 3px solid #c8a84b;
    transition: transform 0.3s;
}
.espec-card:hover { transform: translateY(-4px); }
.espec-card h3 { font-size: 19px; color: #e8d08a; margin-bottom: 10px; }
.espec-card p { color: #d0e8f8; line-height: 1.6; font-size: 14px; }

/* EMENTA (index) */
.ementa { background: #f0f6fb; }
.ementa-botoes {
    display: flex;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
}
.ementa-btn-card {
    background: white;
    padding: 40px 35px;
    border-top: 3px solid #1b6ca8;
    box-shadow: 0 4px 20px rgba(27,108,168,0.1);
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ementa-btn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(27,108,168,0.2);
}
.ementa-btn-card h3 { font-size: 18px; color: #1b6ca8; margin-bottom: 12px; letter-spacing: 1px; }
.ementa-btn-card p { color: #666; font-size: 14px; line-height: 1.6; margin-bottom: 25px; }
.ementa-btn {
    display: inline-block;
    background: #1b6ca8;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}
.ementa-btn:hover { background: #0d4f80; transform: translateY(-2px); }

/* GALERIA */
.galeria { background: #0d4f80; padding: 80px 40px; text-align: center; }
.galeria h2 { color: #c8a84b; }
.galeria .divisor { background: linear-gradient(to right, #c8a84b, #e8d08a); }
.galeria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 1000px; margin: 0 auto; }
.galeria-grid img { width: 100%; height: 230px; object-fit: cover; transition: opacity 0.3s; }
.galeria-grid img:hover { opacity: 0.8; }

/* RESERVA */
.reserva { background: #c8a84b; padding: 55px 40px; text-align: center; color: white; }
.reserva h2 { color: #fff; font-size: 30px; margin-bottom: 10px; letter-spacing: 2px; }
.reserva p { color: rgba(255,255,255,0.9); margin-bottom: 28px; font-size: 15px; }
.reserva a {
    background: #1b6ca8;
    color: #fff;
    padding: 14px 38px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 13px;
    transition: background 0.3s ease, transform 0.2s ease;
}
.reserva a:hover { background: #0d4f80; transform: translateY(-2px); }

/* COMENTÁRIOS */
.comentarios { background: #f0f6fb; }
.comentarios h2 { color: #1b6ca8; }
.form-comentario {
    max-width: 650px;
    margin: 0 auto 60px;
    background: white;
    padding: 40px;
    border-top: 3px solid #1b6ca8;
    box-shadow: 0 4px 20px rgba(27,108,168,0.1);
    text-align: left;
}
.form-titulo { font-size: 14px; letter-spacing: 3px; color: #1b6ca8; text-transform: uppercase; margin-bottom: 28px; text-align: center; }
.form-grupo { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; letter-spacing: 2px; color: #666; text-transform: uppercase; margin-bottom: 8px; }
.form-input, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 15px;
    font-family: Georgia, serif;
    color: #333;
    transition: border-color 0.3s;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: #1b6ca8; }
.form-textarea { resize: vertical; }
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.form-check input[type="checkbox"] { width: 17px; height: 17px; accent-color: #1b6ca8; cursor: pointer; }
.form-check label { font-size: 14px; color: #555; cursor: pointer; }
.estrelas-input { display: flex; gap: 8px; }
.estrela { font-size: 32px; color: #ddd; cursor: pointer; transition: color 0.2s ease, transform 0.15s ease; user-select: none; }
.estrela:hover, .estrela.ativa { color: #c8a84b; transform: scale(1.15); }
.estrela:focus-visible { outline: 2px solid #1b6ca8; outline-offset: 2px; }
.form-check-rgpd { align-items: flex-start; margin-bottom: 10px; }
.form-check-rgpd input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.form-check-rgpd a { color: #1b6ca8; text-decoration: underline; }
.form-info-rgpd { font-size: 12.5px; line-height: 1.6; color: #666; margin-bottom: 20px; }
.form-btn {
    width: 100%;
    background: #1b6ca8;
    color: white;
    padding: 14px;
    border: none;
    font-size: 13px;
    letter-spacing: 3px;
    font-family: Georgia, serif;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}
.form-btn:hover { background: #0d4f80; transform: translateY(-2px); }
.form-btn:disabled { background: #999; cursor: not-allowed; transform: none; }
.form-mensagem { margin-top: 15px; font-size: 14px; text-align: center; padding: 10px; display: none; }
.form-mensagem.sucesso { color: #1b6ca8; background: #e8f4fd; border-left: 3px solid #1b6ca8; display: block; }
.form-mensagem.erro { color: #cc3333; background: #fde8e8; border-left: 3px solid #cc3333; display: block; }
.comentarios-lista { max-width: 750px; margin: 0 auto; }
.comentarios-loading { color: #999; font-style: italic; text-align: center; }
.comentario-card {
    background: white;
    padding: 28px 30px;
    margin-bottom: 15px;
    border-left: 3px solid #c8a84b;
    box-shadow: 0 2px 10px rgba(27,108,168,0.07);
    text-align: left;
}
.comentario-topo { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.comentario-nome { font-size: 15px; color: #1b6ca8; font-weight: bold; }
.comentario-data { font-size: 12px; color: #aaa; }
.comentario-estrelas { color: #c8a84b; font-size: 20px; margin-bottom: 10px; }
.comentario-texto { color: #555; line-height: 1.7; font-size: 15px; }
.sem-comentarios { text-align: center; color: #999; font-style: italic; padding: 20px; }

/* CONTACTOS */
.contactos { background: #fff; }
.contactos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 900px; margin: 0 auto 40px; }
.contacto-card { background: #f0f6fb; padding: 32px; border-top: 3px solid #1b6ca8; }
.contacto-card h3 { color: #c8a84b; margin-bottom: 10px; font-size: 13px; letter-spacing: 2px; }
.contacto-card p { color: #555; line-height: 1.8; font-size: 15px; }
.contacto-card a { color: #1b6ca8; text-decoration: none; }
.horario { background: #1b6ca8; color: white; padding: 28px 40px; max-width: 460px; margin: 0 auto; border-top: 3px solid #c8a84b; }
.horario h3 { color: #c8a84b; margin-bottom: 12px; letter-spacing: 2px; font-size: 14px; }
.horario p { color: #d0e8f8; line-height: 2; font-size: 15px; }
.nota-chamada { display: block; font-size: 12px; color: #666; line-height: 1.5; margin-bottom: 4px; }

/* FOOTER */
footer { background: #0d4f80; color: #9fc3dc; text-align: center; padding: 28px; font-size: 13px; }
footer span { color: #c8a84b; }
footer .insta-btn { display: inline-block; margin-bottom: 15px; transition: transform 0.3s ease, opacity 0.3s ease; opacity: 0.8; }
footer .insta-btn:hover, footer .insta-btn:focus-visible { transform: translateY(-3px); opacity: 1; }

/* FOOTER — informação legal */
.footer-legal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 960px;
    margin: 10px auto 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(200,168,75,0.25);
    text-align: left;
    line-height: 1.7;
}
.footer-titulo { font-size: 12px; font-weight: normal; letter-spacing: 2px; text-transform: uppercase; color: #e8d08a; margin-bottom: 10px; }
.footer-legal ul { list-style: none; }
.footer-legal li { margin-bottom: 4px; }
.footer-legal span { color: inherit; }
.footer-legal a { color: #d0e8f8; text-decoration: none; }
.footer-legal a:hover { color: #e8d08a; text-decoration: underline; }
.footer-empresa { font-style: normal; color: #d0e8f8; }
.footer-empresa p { margin-bottom: 4px; }
.footer-legal .footer-rotulo { color: #9fc3dc; }
.footer-legal .footer-nota { display: block; font-size: 11px; color: #9fc3dc; }

/* ACESSIBILIDADE */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #1b6ca8; outline-offset: 2px; }
nav a:focus-visible, footer a:focus-visible, .especialidades a:focus-visible,
.cookie-banner a:focus-visible, .cookie-banner button:focus-visible { outline-color: #e8d08a; }

/* BANNER DE COOKIES */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 2000;
    background: #0d4f80;
    border-top: 3px solid #c8a84b;
    box-shadow: 0 -6px 30px rgba(0,0,0,0.25);
    padding: 22px 30px calc(22px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px 40px;
    flex-wrap: wrap;
    text-align: left;
    font-family: Georgia, serif;
}
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-banner-conteudo { flex: 1 1 420px; max-width: 680px; }
.cookie-banner-titulo { font-size: 13px; font-weight: normal; letter-spacing: 3px; text-transform: uppercase; color: #e8d08a; margin-bottom: 8px; }
.cookie-banner-texto { font-size: 14px; line-height: 1.7; color: #d0e8f8; margin-bottom: 6px; }
.cookie-link { color: #e8d08a; font-size: 13px; text-decoration: underline; }
.cookie-link:hover { color: #fff; }
.cookie-banner-botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn {
    min-height: 44px;
    padding: 10px 22px;
    background: #c8a84b;
    color: #0b2a44;
    border: 1px solid #c8a84b;
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.cookie-btn:hover { background: #e8d08a; border-color: #e8d08a; }
.cookie-btn-secundario { background: transparent; color: #fff; border-color: #e8d08a; }
.cookie-btn-secundario:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* PREFERÊNCIAS DE COOKIES */
body.cookie-modal-aberto { overflow: hidden; }
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cookie-modal-fundo { position: absolute; inset: 0; background: rgba(8,30,50,0.65); }
.cookie-modal-caixa {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    padding: 36px 34px 28px;
    border-top: 3px solid #c8a84b;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: left;
    color: #444;
}
.cookie-modal-caixa:focus { outline: none; }
.cookie-modal-caixa h2 { font-size: 17px; color: #1b6ca8; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; padding-right: 30px; }
.cookie-modal-intro { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.cookie-modal-estado { font-size: 13px; color: #666; font-style: italic; margin-bottom: 8px; }
.cookie-modal-fechar {
    position: absolute;
    top: 10px; right: 10px;
    width: 44px; height: 44px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}
.cookie-modal-fechar:hover { color: #1b6ca8; }
.cookie-categorias { list-style: none; margin: 16px 0; }
.cookie-categoria { border: 1px solid #dde8f1; border-left: 3px solid #c8a84b; padding: 14px 16px; margin-bottom: 10px; }
.cookie-categoria-topo { display: flex; align-items: center; gap: 12px; }
.cookie-categoria-nome { flex: 1; font-size: 15px; font-weight: bold; color: #1b6ca8; cursor: pointer; }
.cookie-categoria-sempre { font-size: 12px; color: #666; }
.cookie-categoria-desc { font-size: 13.5px; line-height: 1.6; color: #555; margin-top: 6px; }
.cookie-categoria-nota { font-size: 12.5px; color: #666; font-style: italic; margin-top: 4px; }
input.cookie-switch {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 44px; height: 24px;
    border-radius: 12px;
    background: #7b8a96;
    cursor: pointer;
    transition: background 0.2s ease;
}
input.cookie-switch::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}
input.cookie-switch:checked { background: #1b6ca8; }
input.cookie-switch:checked::before { transform: translateX(20px); }
input.cookie-switch:disabled { opacity: 0.55; cursor: not-allowed; }
.cookie-modal .cookie-link { color: #1b6ca8; }
.cookie-modal-botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cookie-modal-botoes .cookie-btn { flex: 1 1 auto; }
.cookie-modal .cookie-btn-secundario { color: #1b6ca8; border-color: #1b6ca8; }
.cookie-modal .cookie-btn-secundario:hover { background: #e8f4fd; }

/* HAMBURGUER (escondido em desktop) */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; z-index: 1001; background: none; border: 0; margin: 0; }
.menu-toggle:focus-visible { outline: 2px solid #e8d08a; outline-offset: 4px; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: #c8a84b; transition: all 0.3s ease; }
.menu-toggle.aberto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.aberto span:nth-child(2) { opacity: 0; }
.menu-toggle.aberto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* TABLET */
@media (max-width: 900px) {
    nav ul { gap: 20px; }
    nav { padding: 12px 25px; }
    .espec-grid { grid-template-columns: repeat(2, 1fr); }
    .galeria-grid { grid-template-columns: repeat(2, 1fr); }
    .contactos-grid { grid-template-columns: repeat(2, 1fr); }
    .ementa-botoes { gap: 20px; }
    .footer-legal { gap: 22px; }
}

/* MOBILE */
@media (max-width: 650px) {
    nav { padding: 12px 20px; position: fixed; background: rgba(13,79,128,0.97) !important; }
    nav.scrolled { background: #1b6ca8 !important; }
    nav .logo img { height: 42px; }
    .menu-toggle { display: flex; }
    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: #0d4f80;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 999;
        list-style: none;
    }
    nav ul.menu-aberto { display: flex; }
    nav ul li a { font-size: 14px; letter-spacing: 3px; }

    .hero { padding: 0 20px; height: 100vh; }
    .hero h1 { font-size: 28px; letter-spacing: 2px; margin-bottom: 10px; }
    .hero .subtitulo { font-size: 11px; letter-spacing: 2px; margin-bottom: 8px; }
    .hero .anos { font-size: 11px; margin-bottom: 30px; }
    .hero a { padding: 12px 26px; font-size: 12px; }

    section { padding: 50px 20px; }
    section h2 { font-size: 22px; letter-spacing: 2px; }

    .sobre p { font-size: 14px; }
    .sobre-stats { flex-direction: column; align-items: center; gap: 22px; }
    .stat .numero { font-size: 30px; }

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

    .ementa-botoes { flex-direction: column; gap: 18px; padding: 0 5px; }
    .ementa-btn-card { padding: 28px 20px; }

    .galeria-grid { grid-template-columns: 1fr; }
    .galeria-grid img { height: 190px; }

    .reserva { padding: 40px 20px; }
    .reserva h2 { font-size: 20px; }

    .form-comentario { padding: 25px 16px; margin: 0 8px 40px; }
    .comentarios-lista { padding: 0 8px; }

    .contactos-grid { grid-template-columns: 1fr; }
    .horario { padding: 22px 20px; }

    footer { padding: 20px 15px; font-size: 12px; }
    footer .insta-btn svg { width: 24px; height: 24px; }
    .footer-legal { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .footer-legal li { margin-bottom: 8px; }

    .cookie-banner { padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); gap: 14px; }
    .cookie-banner-conteudo { flex-basis: 100%; }
    .cookie-banner-texto { font-size: 13px; }
    .cookie-banner-botoes { width: 100%; }
    .cookie-banner-botoes .cookie-btn { flex: 1 1 40%; padding: 10px 12px; }
    .cookie-banner-botoes .cookie-btn-secundario { order: 3; flex-basis: 100%; }
    .cookie-modal { padding: 10px; }
    .cookie-modal-caixa { padding: 28px 18px 20px; max-height: calc(100vh - 20px); }
    .cookie-modal-botoes .cookie-btn { flex-basis: 100%; }
}
