/* ═══════════════════════════════════════════
   CHAMA INCORPORADORA — Portal do Corretor
   Design System: Luxury / Editorial
   ═══════════════════════════════════════════ */

:root {
    /* Brand Colors — from logo */
    --navy: #1a1f4e;
    --navy-deep: #0f1235;
    --navy-light: #2a3070;
    --copper: #b5451b;
    --copper-light: #d4652f;
    --copper-glow: #e8a07a;
    
    /* Neutrals */
    --cream: #f8f6f1;
    --cream-dark: #ede9e0;
    --warm-gray: #a09888;
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;
    --white: #ffffff;
    --black: #0a0a0a;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Reset & Base ──────────────────────── */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ── Animations ────────────────────────── */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lineExpand {
    from { width: 0; }
    to { width: 60px; }
}

/* ── Site Header ───────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 246, 241, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 31, 78, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo img {
    height: 36px;
    transition: opacity 0.3s ease;
}

.logo:hover img {
    opacity: 0.7;
}

.header-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--copper);
}

/* ── Hero Section ──────────────────────── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    background: var(--navy-deep);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(181, 69, 27, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(42, 48, 112, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

/* Geometric decorative elements */
.hero::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 8%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(181, 69, 27, 0.15);
    transform: rotate(45deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInDown 1s var(--ease-out);
}

.hero-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--copper-glow);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.hero-title span {
    font-style: italic;
    color: var(--copper-glow);
}

.hero-line {
    width: 60px;
    height: 2px;
    background: var(--copper);
    margin: 0 auto var(--space-md);
    animation: lineExpand 1.2s var(--ease-out) 0.5s both;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
    transition: color 0.3s ease;
    z-index: 1;
}

.hero-scroll-indicator:hover {
    color: var(--copper-glow);
}

.hero-scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ── Residenciais Section ──────────────── */

.residenciais-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.section-header--finished {
    margin-top: var(--space-3xl);
}

.section-count {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--copper);
    font-weight: 600;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--copper);
    vertical-align: middle;
    margin-right: var(--space-sm);
}

/* ── Cards Grid ────────────────────────── */

.residenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.card-residencial {
    display: block;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 30px rgba(0, 0, 0, 0.06);
    transition: 
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out);
}

.card-residencial:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

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

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 18, 53, 0.3) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.card-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 0.35rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--copper);
    border-radius: 4px;
}

.card-badge--finished {
    background: var(--warm-gray);
}

/* Card Content */
.card-content {
    padding: var(--space-md) var(--space-md) var(--space-sm);
}

.card-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
}

.card-location svg {
    flex-shrink: 0;
    color: var(--copper-light);
}

.card-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--copper);
    transition: gap 0.4s var(--ease-out);
}

.card-residencial:hover .card-arrow {
    gap: 0.8rem;
}

/* Finished cards */
.card-residencial--finished {
    opacity: 0.7;
    filter: saturate(0.6);
    transition: 
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        opacity 0.4s ease,
        filter 0.4s ease;
}

.card-residencial--finished:hover {
    opacity: 1;
    filter: saturate(1);
}

/* ═══════════════════════════════════════════
   RESIDENCIAL PAGE STYLES
   ═══════════════════════════════════════════ */

/* ── Residencial Header ────────────────── */

.header-residencial {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(248, 246, 241, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 31, 78, 0.06);
}

.header-residencial .logo img {
    height: 32px;
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    background: transparent;
    border: 1px solid rgba(26, 31, 78, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-voltar:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ── Hero Residencial ──────────────────── */

.hero-residencial {
    position: relative;
    height: 75vh;
    min-height: 500px;
    margin-top: 60px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: var(--space-3xl);
}

.hero-residencial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.75) 0%,
        rgba(10, 10, 10, 0.2) 40%,
        transparent 70%
    );
}

.hero-residencial .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInDown 0.8s var(--ease-out);
}

.hero-residencial h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.hero-residencial .bairro {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--copper-glow);
}

/* ── Drive Buttons Section ─────────────── */

.botoes-drive-section {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.drive-section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--copper);
    text-align: center;
    margin-bottom: var(--space-xs);
}

.drive-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--navy);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.botoes-drive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.btn-drive {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-md);
    background: var(--white);
    border: 1px solid rgba(26, 31, 78, 0.08);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.btn-drive::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--navy-deep);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.btn-drive:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26, 31, 78, 0.15);
    color: var(--white);
    border-color: transparent;
}

.btn-drive:hover::before {
    opacity: 1;
}

.btn-drive-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(181, 69, 27, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.4s ease;
}

.btn-drive:hover .btn-drive-icon {
    background: rgba(232, 160, 122, 0.2);
}

.btn-drive-icon svg {
    color: var(--copper);
    transition: color 0.3s ease;
}

.btn-drive:hover .btn-drive-icon svg {
    color: var(--copper-glow);
}

.btn-drive-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.btn-drive-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-drive-sublabel {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.btn-drive:hover .btn-drive-sublabel {
    color: rgba(255, 255, 255, 0.5);
}

/* ── Map Section ───────────────────────── */

.mapa-section {
    background: var(--navy-deep);
    padding: var(--space-xl) 0 0;
}

.mapa-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--copper-glow);
    text-align: center;
    margin-bottom: 0.3rem;
}

.mapa-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.mapa-container {
    width: 100%;
    height: 55vh;
    min-height: 400px;
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.85) contrast(1.05);
}

/* ── Footer ────────────────────────────── */

.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-2xl) var(--space-lg) 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: var(--space-xl);
    align-items: start;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    height: 30px;
    margin-bottom: var(--space-sm);
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-copy {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
}

.footer-contact p {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--copper);
    color: var(--copper-glow);
    background: rgba(181, 69, 27, 0.1);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-md) 0;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: var(--space-2xl) var(--space-md);
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .residenciais-section {
        padding: var(--space-2xl) var(--space-md) var(--space-xl);
    }
    
    .residenciais-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .botoes-drive {
        grid-template-columns: 1fr;
    }
    
    .hero-residencial {
        height: 60vh;
        min-height: 380px;
    }
    
    .hero-residencial h1 {
        font-size: 2.2rem;
    }
    
    .botoes-drive-section {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .header-inner {
        padding: 0.8rem 1rem;
    }
    
    .header-residencial {
        padding: 0.8rem 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .btn-drive {
        padding: var(--space-sm);
    }
    
    .btn-drive-icon {
        width: 38px;
        height: 38px;
    }
    
    .card-content h3 {
        font-size: 1.2rem;
    }
}
