@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --primary: #FFCC00; /* Amarelo vibrante do muro */
    --primary-light: #FFD54F; /* Amarelo mais claro para hover */
    --accent: #0D47A1; /* Azul escuro do texto "3J" */
    --accent-light: #0288D1; /* Azul claro do contorno do texto */
    --bg-light: #FFFDF0; /* Fundo claro com um leve toque amarelado */
    --text-main: #0D47A1; /* Azul escuro para os textos principais */
    --text-muted: #455A64; /* Cinza azulado para textos secundários */
    --white: #FFFFFF;
    --green-palm: #2E7D32; /* Verde do coqueiro (uso opcional) */
    --transition: all 0.3s ease;
    
    /* Cores adicionais para o rodapé e contraste premium */
    --navy-dark: #07152B; 
    --navy-medium: #122543; 
    --text-light: #F8FAFC; 
    --text-light-muted: #94A3B8; 
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Impede scroll horizontal em qualquer breakpoint */
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--accent);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 600;
    /* Impede que o logo force overflow */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-light);
}

/* ── Hamburger Menu (CSS puro) ─────────────────────────────────────────────── */
.nav-toggle {
    display: none; /* oculto em desktop */
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animação do X quando aberto — #nav-toggle é irmão de .navbar no DOM */
#nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
#nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#nav-toggle:checked ~ .navbar .nav-hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
    background-color: var(--primary);
    color: var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1587061949409-02df41d5e562?q=80&w=2070&auto=format&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ── Container ─────────────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ── Footer Premium ────────────────────────────────────────────────────────── */
.site-footer {
    background: linear-gradient(180deg, #091930 0%, #051020 100%);
    color: var(--text-light);
    padding: 4.5rem 5% 2rem;
    margin-top: auto;
    font-size: 0.95rem;
    position: relative;
    border-top: 3px solid var(--primary);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    margin-bottom: 3.5rem;
}

.footer-col h3 {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-description {
    color: var(--text-light-muted);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    max-width: 450px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.footer-socials a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-socials a:hover {
    background-color: var(--primary);
    color: var(--navy-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-contact-info li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.footer-btn-whatsapp {
    background-color: #25D366;
    color: white !important;
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: var(--transition);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-btn-whatsapp svg {
    fill: currentColor;
    width: 18px;
    height: 18px;
}

.footer-btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.35);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light-muted);
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── Botão Flutuante WhatsApp ──────────────────────────────────────────────── */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.float-whatsapp svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.float-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #128C7E;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.float-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0%   { transform: scale(0.95); opacity: 0.5; }
    50%  { transform: scale(1.2);  opacity: 0.15; }
    100% { transform: scale(1.4);  opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   MEDIA QUERIES — Responsividade completa
   Breakpoints: 1920px · 1366px · 1024px · 768px · 375px · 320px
══════════════════════════════════════════════════════════════════════════════ */

/* ── 1920px+ (telas muito largas) ─────────────────────────────────────────── */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    .footer-grid {
        max-width: 1400px;
    }
    .footer-bottom {
        max-width: 1400px;
    }
}

/* ── até 1366px (laptop padrão) ───────────────────────────────────────────── */
@media (max-width: 1366px) {
    .navbar {
        padding: 1.2rem 4%;
    }
    .logo {
        font-size: 1.5rem;
    }
}

/* ── até 1024px (tablets landscape / small laptop) ────────────────────────── */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 4%;
    }
    .logo {
        font-size: 1.4rem;
    }
    .nav-links {
        gap: 1.2rem;
    }
    .container {
        padding: 3rem 2rem;
    }
}

/* ── até 768px (tablets portrait) ─────────────────────────────────────────── */
@media (max-width: 768px) {
    /* === Navbar com Hamburger === */
    .logo {
        font-size: 1.25rem;
        max-width: 55%;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 5%;
        font-size: 1rem;
        width: 100%;
    }

    /* Quando o checkbox estiver marcado, exibe o menu */
    #nav-toggle:checked ~ .navbar .nav-links {
        display: flex;
    }

    /* Botão "Reservar Agora" da navbar fica menor */
    .navbar .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* === Container === */
    .container {
        padding: 3rem 1.2rem;
    }

    /* === Footer === */
    .site-footer {
        padding: 3.5rem 1.5rem 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }
    .footer-bottom {
        text-align: center;
        flex-direction: column;
        justify-content: center;
        gap: 0.8rem;
    }

    /* === Botão flutuante WhatsApp === */
    .float-whatsapp {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
    .float-whatsapp svg {
        width: 26px;
        height: 26px;
    }
}

/* ── até 480px (phones médios e grandes) ──────────────────────────────────── */
@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
        max-width: 50%;
    }

    .container {
        padding: 2.5rem 1rem;
    }

    /* Seção de cards: força coluna única e padding menor */
    .home-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── até 375px (iPhone padrão) ────────────────────────────────────────────── */
@media (max-width: 375px) {
    .logo {
        font-size: 1rem;
        max-width: 48%;
    }

    .navbar {
        padding: 0.9rem 4%;
    }

    .navbar .btn-primary {
        padding: 0.55rem 0.8rem;
        font-size: 0.8rem;
    }

    .container {
        padding: 2rem 0.9rem;
    }
}

/* ── até 320px (telas muito pequenas) ─────────────────────────────────────── */
@media (max-width: 320px) {
    .logo {
        font-size: 0.9rem;
        max-width: 45%;
    }

    .navbar {
        padding: 0.8rem 3%;
    }

    /* Esconde o botão da navbar para dar espaço ao logo + hamburger */
    .navbar > .btn-primary {
        display: none;
    }

    .container {
        padding: 1.8rem 0.75rem;
    }

    .footer-btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}
