/* ============================================================
   CONFIG & VARIABLES
   ============================================================ */
:root {
    --color-primary: #1f4aff;
    --color-hero: #eaf7fc;
    --color-background: #ffffff;
    --color-surface: #f7f7f5;
    --color-text: #080808;
    --color-secondary-text: #6a6a6a;
    --color-border: #e7e7e7;
    --color-dark: #050505;
    
    --container-width: 1320px;
    --container-padding: 24px;
    
    --transition: 300ms ease;
    --border-radius: 8px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 16px 40px rgba(0,0,0,0.12);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

button, input, select {
    font-family: inherit;
    font-size: 1rem;
    border: none;
    background: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

p {
    color: var(--color-secondary-text);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================================
   COMPONENTS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--color-dark);
}

.btn-whatsapp {
    gap: 8px;
}

.btn-whatsapp::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Override btn-whatsapp icon for nav CTA */
.nav-whatsapp-cta::before {
    display: none;
}

.nav-whatsapp-cta {
    gap: 0;
    overflow: hidden;
    position: relative;
}

.nav-btn-label {
    transition: opacity var(--transition), transform var(--transition);
    opacity: 1;
    transform: translateY(0);
    white-space: nowrap;
}

.nav-btn-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(140%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4aff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: opacity var(--transition), transform var(--transition);
    opacity: 0;
}

.nav-whatsapp-cta:hover .nav-btn-label {
    opacity: 0;
    transform: translateY(-140%);
}

.nav-whatsapp-cta:hover .nav-btn-icon {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-whatsapp-cta:hover {
    background-color: #fff;
    color: var(--color-primary);
}



.btn-secondary.btn-whatsapp::before {
    stroke: var(--color-dark);
}

.fab-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: transform var(--transition);
}

.fab-whatsapp:hover {
    transform: scale(1.1);
}

.fab-whatsapp::before {
    display: none; /* override default btn-whatsapp before */
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: all var(--transition);
}

.header--scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo span {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--color-secondary-text);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav ul {
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.main-nav a:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 101;
    cursor: pointer;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    position: absolute;
    transition: all var(--transition);
}

.hamburger {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hamburger::before {
    content: '';
    top: -6px;
}

.hamburger::after {
    content: '';
    bottom: -6px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background-color: var(--color-hero);
    min-height: 90vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    padding-bottom: 40px;
    z-index: 2;
}

.hero-text p {
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--color-secondary-text);
    align-items: center;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: 600px;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ============================================================
   SEARCH FLOATING
   ============================================================ */
.search-floating {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.search-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-top: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-secondary-text);
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-surface);
    transition: border-color var(--transition);
}

.input-group select:focus,
.input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ============================================================
   CATÁLOGO
   ============================================================ */
.catalogo {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
    max-width: 600px;
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.filter-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid var(--color-border);
    background-color: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.chip:hover {
    border-color: var(--color-dark);
}

.chip.active {
    background-color: var(--color-dark);
    color: #fff;
    border-color: var(--color-dark);
}

.results-count {
    font-size: 0.875rem;
    color: var(--color-secondary-text);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Property Card */
.property-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    height: 100%;
}

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

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-card:hover .card-arrow {
    transform: translateX(4px);
}

.property-image {
    aspect-ratio: 3/2;
    overflow: hidden;
    position: relative;
    background-color: var(--color-surface);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(255,255,255,0.9);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.property-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-location {
    font-size: 0.75rem;
    color: var(--color-secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.property-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--color-secondary-text);
}

.attr-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.property-type {
    font-size: 0.875rem;
    font-weight: 500;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

.card-arrow {
    transition: transform var(--transition);
}

/* ============================================================
   REGIÕES
   ============================================================ */
.regioes {
    padding: 80px 0;
    background-color: var(--color-surface);
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.region-card {
    background-color: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.region-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.region-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.region-count {
    color: var(--color-secondary-text);
    font-size: 0.875rem;
}

/* ============================================================
   EDITORIAL
   ============================================================ */
.editorial {
    padding: 120px 0;
}

.editorial-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.editorial-info {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
}

.editorial-info strong {
    font-size: 1.125rem;
}

.editorial-info span {
    font-size: 0.875rem;
    color: var(--color-secondary-text);
}

.editorial-images {
    position: relative;
    height: 600px;
}

.ed-img {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ed-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ed-img-1 {
    width: 70%;
    height: 70%;
    top: 0;
    left: 0;
    z-index: 1;
}

.ed-img-2 {
    width: 60%;
    height: 60%;
    bottom: 0;
    right: 0;
    z-index: 2;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-comercial {
    background-color: var(--color-dark);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content p {
    color: #a0a0a0;
    margin-bottom: 40px;
}

.cta-content .btn-primary {
    background-color: #fff;
    color: var(--color-dark);
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--color-dark);
    color: #fff;
    padding: 80px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-brand h2 span {
    font-size: 0.875rem;
    font-weight: 400;
    color: #a0a0a0;
}

.footer-brand .creci,
.footer-contact p {
    color: #a0a0a0;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer-contact .cnpj {
    margin-top: 24px;
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #a0a0a0;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    font-size: 0.75rem;
    color: #666;
}
