/* Variáveis CSS para consistência */
:root {
    --color-primary: #1a365d;
    --color-secondary: #e2e8f0;
    --color-accent: #c53030;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --transition-speed: 0.3s;
    --animation-duration: 0.8s;
    --shadow-property: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-nav: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-gray-50);
    color: var(--color-gray-800);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navegação */
nav {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-nav);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: bold;
}

#nav-links {
    display: none;
    gap: 2rem;
}

#nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
    position: relative;
}

#nav-links a:hover {
    color: var(--color-accent);
}

#nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed) ease;
}

#nav-links a:hover::after {
    width: 100%;
}

nav button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu mobile */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.mobile-menu.active {
    display: flex;
    max-height: 300px;
    padding: 1rem 1.5rem;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--transition-speed) ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.mobile-menu a:hover {
    color: var(--color-accent);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Hero Section */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

#hero .container {
    position: relative;
    z-index: 10;
    color: white;
    padding-top: 4rem;
}

#hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

#hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 32rem;
}

#hero-button {
    background-color: var(--color-accent);
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color var(--transition-speed) ease;
}

#hero-button:hover {
    background-color: #b91c1c;
}

/* Seções gerais */
section {
    padding: 5rem 0;
}

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

.mb-16 {
    margin-bottom: 4rem;
}

/* Property Section */
#property {
    background-color: white;
}

#property-title {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.w-24 {
    width: 6rem;
}

.h-1 {
    height: 0.25rem;
}

.bg-accent {
    background-color: var(--color-accent);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-12 {
    gap: 3rem;
}

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

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.w-full {
    width: 100%;
}

#property-subtitle {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.p-4 {
    padding: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.text-primary {
    color: var(--color-primary);
}

.font-bold {
    font-weight: bold;
}

.text-lg {
    font-size: 1.125rem;
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.text-gray-700 {
    color: var(--color-gray-700);
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.flex {
    display: flex;
}

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

/* Features Section */
#features {
    background-color: var(--color-secondary);
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-8 {
    gap: 2rem;
}

.property-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-property);
    transition: all var(--transition-speed) ease;
}

.property-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-hover);
}

.text-accent {
    color: var(--color-accent);
}

.mb-4 {
    margin-bottom: 1rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.text-xl {
    font-size: 1.25rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

/* Location Section */
.h-96 {
    height: 24rem;
}

.bg-gray-200 {
    background-color: var(--color-gray-200);
}

.overflow-hidden {
    overflow: hidden;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.font-bold {
    font-weight: bold;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.text-gray-800 {
    color: var(--color-gray-800);
}

.items-start {
    align-items: flex-start;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

/* Gallery Section */
#gallery {
    background-color: var(--color-gray-100);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-property);
    transition: all var(--transition-speed) ease;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

/* Contact Section */
#contact {
    background-color: var(--color-primary);
    color: white;
}

.max-w-2xl {
    max-width: 42rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.block {
    display: block;
}

.border {
    border-width: 1px;
}

.border-gray-400 {
    border-color: var(--color-gray-400);
}

.focus\:border-accent:focus {
    border-color: var(--color-accent);
}

.focus\:outline-none:focus {
    outline: none;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.w-full {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--color-gray-900);
    color: white;
    padding: 3rem 0;
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.border-t {
    border-top-width: 1px;
}

.border-gray-800 {
    border-color: var(--color-gray-800);
}

.mt-12 {
    margin-top: 3rem;
}

.pt-8 {
    padding-top: 2rem;
}

.text-gray-400 {
    color: var(--color-gray-400);
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.hover\:text-white:hover {
    color: white;
}

/* Animações */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn var(--animation-duration) ease-out forwards;
}

/* Responsividade */
@media (min-width: 768px) {
    #nav-links {
        display: flex;
    }
    
    nav button {
        display: none;
    }
    
    #hero-title {
        font-size: 3.75rem;
    }
    
    #hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .md\:grid-cols-2, 
    .md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        height: calc(100vh - 70px);
        max-height: none;
        overflow-y: auto;
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    section {
        padding: 3rem 0;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 12rem;
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .property-card,
    #hero-button,
    #nav-links a {
        transition: none;
    }
    
    .gallery-item:hover,
    .property-card:hover {
        transform: none;
    }
    
    .fade-in {
        animation: none;
    }
}

a:focus,
button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Utilitários extras */
.hidden {
    display: none;
}

.fixed {
    position: fixed;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}
