/* =========================================================
   Hotel Anisa — Tema principal
   ========================================================= */
:root {
    --ha-gold: #c69c4f;
    --ha-gold-dark: #a87f33;
    --ha-navy: #14233b;
    --ha-navy-soft: #1d3050;
    --ha-cream: #faf6ef;
    --ha-text: #2b2b2b;
    --ha-muted: #6c757d;
    --ha-shadow: 0 12px 40px rgba(20, 35, 59, .12);
    --ha-radius: 16px;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--ha-text);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, .display-title {
    font-family: 'Playfair Display', serif;
    color: var(--ha-navy);
}

.page-content { padding-top: 76px; }

a { text-decoration: none; }

/* ---------- Botões ---------- */
.btn-anisa {
    background: linear-gradient(135deg, var(--ha-gold), var(--ha-gold-dark));
    border: none;
    color: #fff;
    font-weight: 500;
    padding: .6rem 1.6rem;
    border-radius: 50px;
    letter-spacing: .3px;
    transition: .3s;
    box-shadow: 0 8px 20px rgba(198, 156, 79, .35);
}
.btn-anisa:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(198, 156, 79, .5); }
.btn-outline-anisa {
    border: 2px solid var(--ha-gold);
    color: var(--ha-gold-dark);
    border-radius: 50px;
    font-weight: 500;
    padding: .55rem 1.5rem;
    transition: .3s;
}
.btn-outline-anisa:hover { background: var(--ha-gold); color: #fff; }

/* ---------- Navbar ---------- */
.navbar-anisa {
    background: rgba(20, 35, 59, .96);
    backdrop-filter: blur(8px);
    padding: .8rem 0;
    transition: .3s;
}
.navbar-anisa.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); padding: .5rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--ha-gold), var(--ha-gold-dark));
    color: #fff; font-family: 'Playfair Display', serif; font-weight: 700;
    border-radius: 10px;
}
.brand-text { color: #fff; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.3rem; }
.navbar-anisa .nav-link { color: rgba(255,255,255,.85); font-weight: 400; margin: 0 .35rem; position: relative; }
.navbar-anisa .nav-link:hover, .navbar-anisa .nav-link.active { color: var(--ha-gold); }
.navbar-anisa .nav-link.active::after {
    content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
    width: 18px; height: 2px; background: var(--ha-gold); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 92vh; display: flex; align-items: center;
    color: #fff; text-align: center;
    background: linear-gradient(rgba(20,35,59,.62), rgba(20,35,59,.72)),
                url('../images/hero.jpg') center/cover fixed;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.1; }
.hero .lead { font-size: 1.25rem; font-weight: 300; max-width: 640px; margin: 1.2rem auto 2rem; }
.hero-tag { color: var(--ha-gold); letter-spacing: 4px; text-transform: uppercase; font-size: .85rem; font-weight: 500; }

/* ---------- Caixa de reserva rápida ---------- */
.booking-bar {
    background: #fff; border-radius: var(--ha-radius); box-shadow: var(--ha-shadow);
    padding: 1.5rem; margin-top: -55px; position: relative; z-index: 5;
}
.booking-bar label { font-size: .8rem; font-weight: 500; color: var(--ha-muted); text-transform: uppercase; letter-spacing: .5px; }
.booking-bar .form-control, .booking-bar .form-select { border-radius: 10px; border: 1px solid #e3e3e3; }

/* ---------- Secções ---------- */
.section { padding: 5rem 0; }
.section-cream { background: var(--ha-cream); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .tag { color: var(--ha-gold); letter-spacing: 3px; text-transform: uppercase; font-size: .8rem; font-weight: 600; }
.section-title h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: .5rem; }
.section-title p { color: var(--ha-muted); max-width: 620px; margin: .8rem auto 0; }

/* ---------- Cards de serviço ---------- */
.service-card {
    background: #fff; border-radius: var(--ha-radius); padding: 2rem 1.5rem; height: 100%;
    border: 1px solid #f0ece3; transition: .35s; text-align: center;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--ha-shadow); border-color: transparent; }
.service-card .icon {
    width: 70px; height: 70px; margin: 0 auto 1.2rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.8rem; color: var(--ha-gold);
    background: rgba(198,156,79,.12);
}
.service-card h5 { margin-bottom: .6rem; }
.service-card p { color: var(--ha-muted); font-size: .92rem; margin: 0; }

/* ---------- Cards de quarto ---------- */
.room-card {
    background: #fff; border-radius: var(--ha-radius); overflow: hidden; height: 100%;
    box-shadow: 0 6px 24px rgba(20,35,59,.07); transition: .35s; border: 1px solid #f1ede5;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--ha-shadow); }
.room-card .room-img { height: 230px; overflow: hidden; position: relative; }
.room-card .room-img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.room-card:hover .room-img img { transform: scale(1.08); }
.room-price {
    position: absolute; bottom: 12px; right: 12px; background: var(--ha-gold);
    color: #fff; padding: .35rem .9rem; border-radius: 50px; font-weight: 600; font-size: .9rem;
}
.room-price small { font-weight: 400; opacity: .9; }
.room-body { padding: 1.4rem; }
.room-body h5 { margin-bottom: .4rem; }
.room-meta { display: flex; gap: 1rem; color: var(--ha-muted); font-size: .85rem; margin: .6rem 0; flex-wrap: wrap; }
.room-amenities { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
.room-amenities span { background: var(--ha-cream); color: var(--ha-navy); font-size: .75rem; padding: .25rem .6rem; border-radius: 50px; }

/* ---------- Sobre ---------- */
.about-img { border-radius: var(--ha-radius); box-shadow: var(--ha-shadow); width: 100%; object-fit: cover; }
.value-box { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.value-box .icon { flex: 0 0 50px; height: 50px; border-radius: 12px; background: rgba(198,156,79,.12); color: var(--ha-gold); display: grid; place-items: center; font-size: 1.4rem; }
.stat-box { text-align: center; }
.stat-box .num { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: var(--ha-gold); font-weight: 700; }
.stat-box .label { color: var(--ha-muted); font-size: .9rem; }

/* ---------- Galeria ---------- */
.gallery-item { border-radius: var(--ha-radius); overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay {
    position: absolute; inset: 0; background: linear-gradient(transparent, rgba(20,35,59,.75));
    opacity: 0; transition: .35s; display: flex; align-items: flex-end; padding: 1rem; color: #fff;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-filter { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.gallery-filter button { border: 1px solid var(--ha-gold); background: transparent; color: var(--ha-gold-dark); border-radius: 50px; padding: .4rem 1.2rem; font-size: .85rem; transition: .3s; }
.gallery-filter button.active, .gallery-filter button:hover { background: var(--ha-gold); color: #fff; }

/* ---------- Page header ---------- */
.page-header {
    background: linear-gradient(rgba(20,35,59,.7), rgba(20,35,59,.78)), url('../images/hero.jpg') center/cover;
    color: #fff; padding: 6rem 0 3.5rem; text-align: center;
}
.page-header h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-header .breadcrumb { justify-content: center; }
.page-header .breadcrumb a { color: var(--ha-gold); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,.8); }

/* ---------- Formulários ---------- */
.form-card { background: #fff; border-radius: var(--ha-radius); box-shadow: var(--ha-shadow); padding: 2.2rem; }
.form-control:focus, .form-select:focus { border-color: var(--ha-gold); box-shadow: 0 0 0 .2rem rgba(198,156,79,.2); }

/* ---------- Avaliações ---------- */
.review-card { background: #fff; border-radius: var(--ha-radius); padding: 1.8rem; height: 100%; box-shadow: 0 6px 22px rgba(20,35,59,.07); }
.review-card .stars { color: var(--ha-gold); margin-bottom: .6rem; }
.review-card .author { font-weight: 600; color: var(--ha-navy); margin-top: 1rem; }

/* ---------- CTA ---------- */
.cta-band {
    background: linear-gradient(rgba(20,35,59,.85), rgba(20,35,59,.9)), url('../images/hero.jpg') center/cover fixed;
    color: #fff; text-align: center; padding: 4.5rem 0;
}
.cta-band h2 { color: #fff; }

/* ---------- Footer ---------- */
.footer-anisa { background: var(--ha-navy); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; }
.footer-anisa h5, .footer-anisa h6 { color: #fff; }
.footer-brand .brand-mark { width: 36px; height: 36px; }
.text-muted-light { color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-links, .footer-contacts { list-style: none; padding: 0; margin: 1rem 0 0; }
.footer-links li, .footer-contacts li { margin-bottom: .6rem; }
.footer-links a, .footer-contacts a { color: rgba(255,255,255,.7); transition: .3s; }
.footer-links a:hover, .footer-contacts a:hover { color: var(--ha-gold); }
.footer-contacts i { color: var(--ha-gold); margin-right: .5rem; }
.social-links { display: flex; gap: .7rem; margin-top: 1.2rem; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: .3s; }
.social-links a:hover { background: var(--ha-gold); }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 2rem 0 1.2rem; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
    display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 24px rgba(37,211,102,.45);
    animation: pulse 2.2s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Confirmação de reserva ---------- */
.confirm-card { max-width: 640px; margin: 0 auto; text-align: center; }
.confirm-card .check { width: 90px; height: 90px; border-radius: 50%; background: rgba(40,167,69,.12); color: #28a745; display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 1.5rem; }
.confirm-code { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--ha-gold-dark); letter-spacing: 2px; }

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

/* Tablets e abaixo (< 992px) */
@media (max-width: 991.98px) {
    .navbar-anisa {
        background: var(--ha-navy);
        padding: .6rem 0;
    }
    .navbar-anisa .navbar-collapse {
        background: var(--ha-navy-soft);
        border-radius: 12px;
        padding: 1rem;
        margin-top: .8rem;
        box-shadow: 0 12px 30px rgba(0,0,0,.3);
    }
    .navbar-anisa .nav-link { padding: .6rem .4rem; margin: 0; }
    .navbar-anisa .nav-link.active::after { display: none; }
    .navbar-anisa .nav-item .btn-anisa { display: block; text-align: center; margin-top: .6rem; }

    .hero { background-attachment: scroll; min-height: 80vh; }
    .cta-band { background-attachment: scroll; }
    .section { padding: 3.5rem 0; }
    .section-title { margin-bottom: 2rem; }
    .page-header { padding: 5rem 0 2.5rem; }
}

/* Telemóveis (< 768px) */
@media (max-width: 767.98px) {
    .page-content { padding-top: 66px; }
    .hero { min-height: 78vh; }
    .hero .lead { font-size: 1.05rem; }

    /* A barra de reserva passa a empilhar e fica abaixo do hero */
    .booking-bar {
        margin-top: 1.5rem;
        padding: 1.2rem;
        border-radius: 14px;
    }
    .booking-bar .col-6 { margin-bottom: .2rem; }

    .section { padding: 2.8rem 0; }
    .section-cream, .section { overflow: hidden; }

    .stat-box .num { font-size: 2.1rem; }
    .value-box { gap: .8rem; }

    .room-card .room-img { height: 200px; }

    .footer-anisa { text-align: center; }
    .footer-anisa .social-links { justify-content: center; }
    .footer-anisa h6 { margin-top: .5rem; }
    .footer-anisa .d-flex { justify-content: center !important; text-align: center; gap: .3rem; }

    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; right: 16px; bottom: 16px; }

    .form-card { padding: 1.5rem; }
    .confirm-card .check { width: 74px; height: 74px; font-size: 2.1rem; }
    .confirm-code { font-size: 1.3rem; }

    /* Resumo de reserva deixa de ser fixo no mobile */
    .form-card[style*="sticky"] { position: static !important; }

    .gallery-filter { gap: .35rem; }
    .gallery-filter button { padding: .35rem .9rem; font-size: .8rem; }
}

/* Ecrãs muito pequenos (< 400px) */
@media (max-width: 399.98px) {
    .brand-text { font-size: 1.1rem; }
    .hero h1 { font-size: 2rem; }
    .btn-anisa, .btn-outline-light, .btn-outline-anisa { width: 100%; }
    .hero .d-flex { flex-direction: column; }
}

/* Acessibilidade: reduzir animações se o utilizador preferir */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
