/* ==========================================================================
   Afago Mareiro Hotel — Stylesheet
   Design Refinado, 100% Responsivo, No-Scroll Viewport & Split Mobile
   ========================================================================== */

:root {
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --color-primary: #15ba52;
    --color-primary-dark: #10913f;
    --color-card-bg: rgba(103, 115, 111, 0.92);
    --color-mobile-bg: #67736f;
    --color-text-light: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.85);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Viewport Constraints */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-light);
    background-color: var(--color-mobile-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Desktop Layout (Default)
   ========================================================================== */

/* Main Hero Wrapper */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-image: url("../img/hero.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Mobile Banner (Hidden on Desktop) */
.mobile-top-banner {
    display: none;
}

/* Hero Card */
.hero-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    background-color: var(--color-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 2.25rem 2.75rem 1.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo */
.hero-logo-container {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 100%;
    max-width: 230px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Headline */
.hero-title {
    font-size: 1.95rem;
    font-weight: 300;
    line-height: 1.25;
    color: var(--color-text-light);
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}

.hero-title p {
    margin: 0;
}

.hero-title b,
.hero-title strong {
    font-weight: 700;
}

.hero-title i,
.hero-title em {
    font-style: italic;
}

/* Actions / Buttons Container */
.hero-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
    margin-bottom: 1.75rem;
}

/* Common CTA Button Styles */
.btn-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: normal !important;
    gap: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    height: 3.75rem;
    width: 100%;
    max-width: 240px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    -webkit-user-select: none;
}

.btn-cta .btn-text {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* WhatsApp CTA Button (Sem Ícone) */
.btn-whatsapp {
    background-color: var(--color-primary);
    color: #ffffff !important;
    border: none;
    border-bottom: 3.5px solid var(--color-primary-dark);
    box-shadow: 0 4px 14px rgba(21, 186, 82, 0.35);
}

.btn-whatsapp:hover {
    background-color: #18d45e;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(21, 186, 82, 0.45);
}

.btn-whatsapp:active {
    transform: translateY(1px);
    border-bottom-width: 2px;
}

/* Reserve Online Button */
.btn-reserve {
    background-color: transparent;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
}

.btn-reserve:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-reserve:active {
    transform: translateY(1px);
    background-color: rgba(255, 255, 255, 0.25);
}

/* Footer Info Area inside Card */
.hero-footer-info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 2px;
    border-radius: 4px;
}

.instagram-link:hover {
    opacity: 0.8;
    transform: scale(1.08);
}

.instagram-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    display: block;
}

.hotel-address {
    font-size: 0.725rem;
    font-weight: 300;
    line-height: 1.35;
    color: var(--color-text-muted);
}

.hotel-address p {
    margin: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TripAdvisor Badge — Proporções Originais Sem Caixa Escura */
.tripadvisor-badge {
    width: 50px;
    height: 61px;
    aspect-ratio: 50 / 61;
    object-fit: contain;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ==========================================================================
   Mobile Layout (Split View Similar à Original)
   ========================================================================== */

@media screen and (max-width: 768px) {
    .hero-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        margin: 0;
        background-image: none;
        background-color: var(--color-mobile-bg);
    }

    /* Imagem Mais Leve no Topo */
    .mobile-top-banner {
        display: block;
        width: 100%;
        height: 25vh;
        min-height: 125px;
        max-height: 190px;
        flex-shrink: 0;
        background-image: url("../img/asset-f7ac4141df.jpg");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    /* Conteúdo na Parte Inferior com Fundo Sólido */
    .hero-card {
        flex: 1;
        width: 100%;
        max-width: 100%;
        background-color: var(--color-mobile-bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        box-shadow: none;
        padding: 1.15rem 1.35rem 0.95rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        overflow: hidden;
    }

    .hero-logo-container {
        margin-bottom: 0.45rem;
        flex-shrink: 0;
    }

    .hero-logo {
        max-width: 165px;
    }

    .hero-title {
        font-size: 1.25rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
        flex-shrink: 0;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        width: 100%;
        max-width: 320px;
        margin-bottom: 0.75rem;
        flex-shrink: 0;
    }

    .btn-cta {
        max-width: 100%;
        height: 3.15rem;
        font-size: 0.95rem;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .hero-footer-info {
        width: 100%;
        max-width: 340px;
        padding-top: 0.75rem;
        flex-shrink: 0;
    }

    .instagram-icon {
        width: 24px;
        height: 24px;
    }

    .hotel-address {
        font-size: 0.65rem;
        line-height: 1.25;
    }

    .tripadvisor-badge {
        width: 44px;
        height: 53.68px;
    }
}

/* Telas Muito Baixas (Ex: celulares na horizontal ou altura reduzida) */
@media screen and (max-height: 600px) {
    .mobile-top-banner {
        height: 18vh;
        min-height: 90px;
    }

    .hero-card {
        padding: 0.5rem 1rem;
    }

    .hero-logo {
        max-width: 120px;
    }

    .hero-logo-container {
        margin-bottom: 0.25rem;
    }

    .hero-title {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }

    .hero-actions {
        flex-direction: row;
        gap: 0.5rem;
        margin-bottom: 0.35rem;
    }

    .btn-cta {
        height: 2.5rem;
        font-size: 0.825rem;
    }

    .hero-footer-info {
        padding-top: 0.35rem;
    }

    .tripadvisor-badge {
        width: 36px;
        height: 43.92px;
    }
}
