/* Variáveis de Cores (Bahia Contemporânea) */
:root {
    --color-bg: #F5F0E6; /* Areia Clara */
    --color-text: #3D2E28; /* Café Profundo */
    --color-primary: #5D735F; /* Verde Coqueiro */
    --color-highlight: #C46A4A; /* Terracota Baiana */
    --color-cta: #2F6F7E; /* Azul Atlântico */
    --color-cta-hover: #245863;
    --color-details: #D7B97D; /* Palha Dourada */

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
}

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-cta);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilitários */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-cta);
    color: #fff;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn:hover {
    background-color: var(--color-cta-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 111, 126, 0.2);
}

.btn:hover::before {
    height: 100%;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.section-padding {
    padding: 100px 0;
}

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

/* Make cards entirely clickable */
.casa-card, .exp-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.casa-card:hover, .exp-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.casa-card .btn-link::after, 
.exp-card .btn-link::after,
.casa-card .casa-card-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Custom Cursor */
body {
    cursor: none;
}
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--color-primary);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: multiply;
}
.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background-color: rgba(93, 115, 95, 0.4); /* var(--color-primary) com opacidade */
}
/* Disable custom cursor on mobile */
@media (max-width: 900px) {
    body {
        cursor: auto;
    }
    .custom-cursor {
        display: none !important;
    }
}

/* Splash Screen / Preloader */
#site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader-content {
    text-align: center;
    animation: preloaderPulse 2s infinite ease-in-out;
}
.preloader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 2px;
}
@keyframes preloaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}
body.loaded #site-preloader {
    opacity: 0;
    visibility: hidden;
}
