/*
Theme Name: Cabo Verde Luxury
Theme URI: https://example.com/caboverde-luxury
Author: Gemini
Description: Um tema focado em mostrar apartamentos de luxo em Cabo Verde com imagens grandes e tipografia limpa.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --primary-color: #0077be; /* Azul Oceano */
    --accent-color: #d2b48c;  /* Areia */
    --text-color: #444;
    --bg-color: #fff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7; /* Mais espaço entre linhas para leitura confortável */
    font-weight: 300; /* Leveza moderna */
}

/* Header & Navigation */
.site-header {
    position: absolute;
    width: 100%;
    z-index: 10;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800; /* Negrito forte */
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.3);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    transition: opacity 0.3s;
}

.main-navigation a:hover {
    opacity: 0.8;
}

/* Estado Ativo do Menu (Feedback Visual) */
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    opacity: 1;
    border-bottom: 2px solid var(--accent-color); /* Linha cor de areia */
    padding-bottom: 5px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5)); /* Gradiente mais moderno */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: #fff;
    color: #333;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px; /* Botão arredondado moderno */
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Content Sections */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px; /* Mais espaço branco (respiro) */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 60px;
    color: #222;
    position: relative;
}

/* Linha decorativa por baixo do título */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

/* --- ESTILOS DE PÁGINAS INTERNAS --- */

.page-header {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 60px;
}

.page-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

/* Layout Flexível (Sidebar) */
.row-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.content-main {
    flex: 2;
}

.content-sidebar {
    flex: 1;
    position: sticky;
    top: 100px; /* Sidebar fixa ao fazer scroll */
}

.section-title-left {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0;
}

/* Caixa de Comodidades */
.amenities-box {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.amenities-box h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.amenities-list {
    list-style: none;
    margin-bottom: 30px;
}

.amenities-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
    color: #555;
}

.amenities-list li:last-child {
    border-bottom: none;
}

.house-rules {
    list-style: none; /* Remove o ponto preto padrão */
    margin-left: 0;
    padding-left: 0;
}

.house-rules li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.house-rules li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.full-width {
    display: block;
    text-align: center;
    width: 100%;
}

/* Guia Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.guide-card {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.guide-content {
    padding: 25px;
}

.guide-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.guide-content p {
    font-size: 0.95rem;
    color: #666;
}

/* Responsive Pages */
@media (max-width: 768px) {
    .row-flex {
        flex-direction: column;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

.text-center {
    text-align: center;
}

.lead-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #555;
}

/* Gallery Grid */
.apartment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Features List */
.features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    list-style: none;
}

.features-list li {
    flex: 1 1 200px;
    text-align: center;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.features-list strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Footer */
.site-footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 40px 20px;
}

.site-footer p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .site-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
}

/* Mosaic Grid */
.container-fluid {
    padding: 0 50px;
    margin: 80px 0;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.mosaic-item:hover img {
    transform: scale(1.1);
}

.mosaic-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-item.vertical {
    grid-row: span 2;
}

.mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

.mosaic-overlay span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Parallax Section */
.parallax-section {
    height: 500px;
    background-attachment: fixed; /* Efeito Parallax */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    margin: 80px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mosaic-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .container-fluid {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    /* Header Stack (Logo em cima, Menu em baixo) */
    .site-header {
        position: relative; /* Deixa de ser absoluto em mobile para não tapar conteúdo se for alto */
        background: #333; /* Fundo escuro para leitura */
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .site-title a {
        display: block;
        margin-bottom: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }

    .main-navigation a {
        font-size: 1rem;
        display: block; /* Aumentar área de toque */
        padding: 5px;
    }

    /* Centralizar Comodidades no Mobile */
    .amenities-box {
        text-align: center;
    }

    .amenities-list {
        padding-left: 0;
        display: inline-block; /* Permite centrar a lista como um bloco */
        text-align: left; /* Mantém o texto alinhado mas o bloco centrado */
        width: 100%;
        max-width: 300px; /* Limita a largura para não espalhar muito */
        margin: 0 auto 20px;
    }

    .amenities-list li {
        text-align: center; /* Se preferires o texto de cada item centrado */
    }

    /* Hero adjustments */
    .hero-section {
        height: auto;
        min-height: 80vh; /* Altura mínima para não ficar cortado */
        padding-top: 60px;
    }

    .hero-title {
        font-size: 2.2rem; /* Reduzir tamanho do título */
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .row-flex {
        flex-direction: column;
    }
    
    .page-title {
        font-size: 2rem;
    }

    .parallax-section h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 600px) {
    .mosaic-grid {
        display: block;
    }
    .mosaic-item {
        margin-bottom: 15px;
        height: 300px;
    }
    .parallax-section {
        background-attachment: scroll; /* Desativar parallax em mobile para performance e bug fix iOS */
        height: 300px;
    }
    
    .container {
        padding: 60px 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* Gutenberg / Content Styling */
.container img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

.wp-block-gallery {
    margin-bottom: 40px;
}

.wp-block-columns {
    gap: 40px;
    margin-bottom: 40px;
}

p {
    margin-bottom: 20px;
}
