/* ==========================================================================
   POUSADA VÔ FRANCISCO - DESIGN SYSTEM TOTALMENTE RESPONSIVO
   ========================================================================== */

:root {
    --primary: #172e29;       /* Verde floresta elegante */
    --primary-light: #23473f; 
    --accent: #c29557;        /* Dourado areia nobre */
    --accent-hover: #a87e43;
    --dark: #1f2421;
    --light: #fbf9f5;         /* Fundo quente suave */
    --light-alt: #f3efe6;     /* Fundo de contraste */
    --white: #ffffff;
    --gray: #64748b;
    --border: rgba(0, 0, 0, 0.08);

    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET E BASE GLOBAL ANTI-OVERFLOW */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   HEADER & NAVEGAÇÃO MOBILE/DESKTOP
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: relative;
}

.logo {
    font-family: var(--font-title);
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    z-index: 1002;
}

.logo span {
    color: var(--accent);
    font-style: italic;
}

/* Menu Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta-desktop {
    display: inline-flex;
}

/* Botão Hambúrguer Mobile */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    padding: 0.5rem;
    z-index: 1002;
    transition: var(--transition);
}

/* ==========================================================================
   BOTÕES GERAIS
   ========================================================================== */

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    min-height: 46px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(194, 149, 87, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    min-height: 46px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION RESPONSIVO
   ========================================================================== */

.hero-split {
    min-height: 90vh;
    padding: clamp(6.5rem, 12vw, 8.5rem) 1.5rem 4rem 1.5rem;
    background: linear-gradient(135deg, #102420 0%, #1a3832 60%, #152d28 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-split::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: clamp(300px, 50vw, 600px);
    height: clamp(300px, 50vw, 600px);
    background: radial-gradient(circle, rgba(194, 149, 87, 0.18) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.hero-split-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-col {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    background: rgba(194, 149, 87, 0.22);
    color: #f1cf9e;
    border: 1px solid rgba(194, 149, 87, 0.45);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.hero-text-col h1 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw + 0.5rem, 3.3rem);
    line-height: 1.18;
    margin-bottom: 1.2rem;
    color: #ffffff;
    word-break: break-word;
}

.hero-text-col p {
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-text-col strong {
    color: #f1cf9e;
    font-weight: 600;
}

.hero-actions-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-hero-primary {
    background: var(--accent);
    color: var(--white);
    padding: 0.9rem 1.8rem;
    min-height: 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    box-shadow: 0 6px 22px rgba(194, 149, 87, 0.4);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.9rem 1.6rem;
    min-height: 48px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-mini-highlights {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.4rem;
}

.highlight-pill {
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.highlight-pill i {
    color: var(--accent);
}

/* Fachada com Efeito Fog */
.hero-image-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

.hero-card-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: clamp(280px, 50vw, 440px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(194, 149, 87, 0.2) 0%, rgba(16, 36, 32, 0) 75%);
    filter: blur(25px);
    z-index: 1;
    pointer-events: none;
}

.hero-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    
    /* Efeito de Névoa / Borda Infinita com máscara gradiente */
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 48%, black 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 75% at 50% 48%, black 45%, transparent 100%);
    
    filter: contrast(1.04) brightness(0.98);
    transition: transform 0.6s ease;
    position: relative;
    z-index: 2;
}

.floating-rate-badge {
    position: absolute;
    bottom: 0px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--dark);
    padding: 0.7rem 1.1rem;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 3;
}

.rate-number {
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    white-space: nowrap;
}

.rate-details strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
}

.rate-details span {
    font-size: 0.75rem;
    color: var(--gray);
}

/* ==========================================================================
   SEÇÕES & CABEÇALHOS GERAIS
   ========================================================================== */

section {
    padding: clamp(4rem, 8vw, 6.5rem) 1.5rem;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.8rem) auto;
}

.section-header span {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-top: 0.5rem;
    line-height: 1.25;
}

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.2rem);
}

.feature-card {
    background: var(--white);
    padding: clamp(1.8rem, 4vw, 2.5rem);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
    display: inline-block;
}

.feature-card h3 {
    font-family: var(--font-title);
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   ACOMODAÇÕES (ROOMS)
   ========================================================================== */

.rooms-section-wrapper {
    background: var(--light-alt);
    width: 100%;
    padding: 0;
}

.rooms-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    width: 100%;
}

.room-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.room-img-wrapper {
    position: relative;
    height: clamp(200px, 30vw, 250px);
    width: 100%;
}

.room-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card:hover .room-img-wrapper img {
    transform: scale(1.05);
}

.room-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(23, 46, 41, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.room-content {
    padding: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-content h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.room-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.room-features span {
    font-size: 0.8rem;
    background: #f1eeea;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    color: #4a5568;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   GALERIA DE FOTOS & LIGHTBOX
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(0.8rem, 2vw, 1.2rem);
    width: 100%;
}

.gallery-item {
    height: clamp(180px, 25vw, 220px);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox-content {
    max-width: 95%;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
}

/* ==========================================================================
   LOCALIZAÇÃO & GOOGLE MAPS CARD
   ========================================================================== */

.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    background: var(--white);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    align-items: center;
    width: 100%;
}

.google-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 16px;
    margin: 1.5rem 0;
}

.google-stars {
    color: #f59e0b;
    font-size: 0.95rem;
}

.google-stars strong {
    color: var(--dark);
    margin-left: 0.4rem;
}

.map-wrapper {
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    min-height: clamp(250px, 40vw, 340px);
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: clamp(250px, 40vw, 340px);
    border: 0;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */

footer {
    background: var(--primary);
    color: var(--white);
    padding: clamp(3rem, 6vw, 4.5rem) 1.5rem 2.5rem 1.5rem;
    width: 100%;
}

.footer-content {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
    font-family: var(--font-title);
    margin-bottom: 1.2rem;
    color: var(--accent);
    font-size: 1.25rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.6rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    transform: translateX(3px);
}

/* Rodapé Inferior */
.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.35);
}

.btn-owner-area,
.btn-owner-area:link,
.btn-owner-area:visited {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: var(--transition);
}

.btn-owner-area i {
    color: #ffffff !important;
}

.btn-owner-area:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* WHATSAPP FLUTUANTE */
.floating-whatsapp {
    position: fixed;
    bottom: clamp(18px, 3vw, 25px);
    right: clamp(18px, 3vw, 25px);
    background: #25d366;
    color: var(--white);
    width: clamp(52px, 12vw, 62px);
    height: clamp(52px, 12vw, 62px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(26px, 6vw, 32px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* ANIMAÇÕES */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE CELULAR & TABLET)
   ========================================================================== */

/* Tablets e Telas Médias (<= 992px) */
@media (max-width: 992px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        gap: 2.8rem;
        text-align: center;
    }

    .hero-actions-group,
    .hero-mini-highlights {
        justify-content: center;
    }

    .floating-rate-badge {
        position: static;
        margin: 1rem auto 0 auto;
        display: inline-flex;
    }

    .location-container {
        grid-template-columns: 1fr;
    }
}

/* Smartphones e Telas Pequenas (<= 768px) */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    /* Menu Gaveta Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 2rem 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        gap: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-menu a {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-cta-desktop {
        display: none;
    }

    .nav-cta-mobile {
        display: flex;
        width: 100%;
        margin-top: 1rem;
    }

    .hero-actions-group .btn-hero-primary,
    .hero-actions-group .btn-hero-secondary {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-separator {
        display: none;
    }
}

/* Telas Muito Pequenas (<= 380px) */
@media (max-width: 380px) {
    .hero-text-col h1 {
        font-size: 1.85rem;
    }

    .hero-card-image {
        height: 250px;
    }

    .btn-hero-primary, .btn-hero-secondary {
        font-size: 0.88rem;
        padding: 0.8rem 1.2rem;
    }
}