/* ============================================
   GISELY MARQUES - ASSESSORIA IMOBILIÁRIA
   CSS Mobile-First com Hero de Vídeo Local
   ============================================ */

/* ===== VARIÁVEIS ===== */
:root {
    --color-navy: #0A1628;
    --color-navy-light: #1a2a4a;
    --color-gold: #C9A96E;
    --color-gold-light: #D4B87A;
    --color-cream: #F5F0E8;
    --color-cream-dark: #E8E0D4;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    transition: var(--transition);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-icon {
    width: 40px; height: 40px;
    background: var(--color-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.2;
}
.logo-tagline {
    font-size: 0.7rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== NAVIGATION ===== */
.nav-desktop { display: none; }
.nav-link {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-link:hover { color: var(--color-white); background: rgba(255,255,255,0.05); }
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-gold);
    color: var(--color-navy) !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600;
}
.nav-cta:hover { background: var(--color-gold-light); }

.mobile-toggle {
    display: flex;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== HERO - MOBILE FIRST ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-navy);
}

/* Container do vídeo */
.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Vídeo - DESABILITADO em mobile (padrão) */
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: none; /* Mobile: vídeo oculto */
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Fallback mobile: imagem de fundo via poster */
.hero-video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/images/hero-poster.jpg') center/cover no-repeat;
    z-index: 0;
}

/* Overlay escuro para legibilidade */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.78) 40%,
        rgba(10, 22, 40, 0.88) 100%
    );
    z-index: 1;
}

/* Conteúdo do hero */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 1.5rem 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hero-left { flex: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid rgba(201, 169, 110, 0.3);
    color: var(--color-gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.hero-badge .dot {
    width: 6px; height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-title .accent {
    color: var(--color-gold);
    display: block;
}
.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--color-gold);
    color: var(--color-navy);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}
.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
}
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Stats no hero */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.stat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}
.stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.hero-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.hero-image-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem;
    background: linear-gradient(transparent, rgba(10,22,40,0.9));
}
.hero-image-tag {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.hero-image-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-white);
    font-weight: 600;
}
.hero-image-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.25rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 1.5rem;
}
.section-cream { background: var(--color-cream); }
.section-navy { background: var(--color-navy); color: var(--color-white); }
.section-header {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.section-navy .section-title { color: var(--color-white); }
.section-cream .section-title { color: var(--color-navy); }
.section-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}
.section-navy .section-desc { color: rgba(255,255,255,0.7); }

/* ===== PROPERTIES GRID ===== */
.properties-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.property-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.property-image {
    position: relative;
    overflow: hidden;
}
.property-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.property-card:hover .property-image img { transform: scale(1.05); }
.property-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.property-badge-venda { background: var(--color-gold); color: var(--color-navy); }
.property-fav {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-text-light);
}
.property-fav:hover { background: var(--color-white); color: #e74c3c; }
.property-info { padding: 1.25rem; }
.property-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}
.property-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}
.property-condo {
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-cream-dark);
}
.property-feature {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}
.property-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.property-price-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
}
.property-price-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* ===== CONDOMÍNIOS ===== */
.condos-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.condo-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    aspect-ratio: 4/3;
}
.condo-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.condo-card:hover img { transform: scale(1.05); }
.condo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(10,22,40,0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}
.condo-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}
.condo-location {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
}
.condo-stats {
    display: flex;
    gap: 1rem;
}
.condo-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--color-gold);
}

/* ===== DEPOIMENTOS ===== */
.testimonials-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.testimonial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    backdrop-filter: blur(10px);
}
.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}
.testimonial-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.testimonial-info h4 {
    font-size: 0.9rem;
    color: var(--color-white);
    font-weight: 600;
}
.testimonial-info p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* ===== BLOG ===== */
.blog-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.blog-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-content { padding: 1.5rem; }
.blog-tag {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.blog-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.blog-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* ===== CTA ===== */
.cta-section {
    background: var(--color-navy);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(201,169,110,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.cta-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.cta-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-navy);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 300px;
}
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-navy);
}
.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--color-gold); }
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
}
.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
    .header-inner { padding: 1rem 2rem; }
    .nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
    .mobile-toggle { display: none; }

    /* Ativa vídeo em tablet+ */
    .hero-video {
        display: block;
        opacity: 1;
    }
    .hero-video-container::before {
        display: none;
    }

    .hero-content {
        padding: 8rem 2rem 4rem;
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-cta-group {
        flex-direction: row;
        gap: 1rem;
    }
    .hero-stats { grid-template-columns: repeat(4, 1fr); }
    .hero-image-wrapper img { height: 280px; }

    .section { padding: 5rem 2rem; }
    .section-title { font-size: 2.25rem; }

    .properties-grid { grid-template-columns: repeat(2, 1fr); }
    .condos-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
    .hero-content { padding: 8rem 2rem 4rem; gap: 4rem; }
    .hero-title { font-size: 3.5rem; }
    .hero-right { flex: 0 0 380px; }

    .properties-grid { grid-template-columns: repeat(3, 1fr); }
    .condos-grid { grid-template-columns: repeat(3, 1fr); }

    .cta-title { font-size: 2.5rem; }
}

/* ===== LARGE DESKTOP (1280px+) ===== */
@media (min-width: 1280px) {
    .hero-content { padding: 8rem 2rem 4rem; }
    .hero-title { font-size: 4rem; }
    .properties-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-video { display: none; }
    .hero-video-container::before { display: block; }
}

/* ===== SAVE DATA / LOW BANDWIDTH ===== */
@media (prefers-reduced-data: reduce) {
    .hero-video { display: none !important; }
    .hero-video-container::before { display: block !important; }
}
