/* ==========================================================================
   DESIGN SYSTEM - AMANDA BRITO IMÓVEIS (Alto Padrão / Luxo)
   ========================================================================== */

/* 1. Importação de Fontes Premium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* 2. Variáveis de Design (Paleta de Cores HSL Otimizada) */
:root {
    --bg-primary: hsl(220, 20%, 8%);         /* Fundo escuro profundo */
    --bg-secondary: hsl(220, 15%, 12%);      /* Fundo de painéis/seções */
    --bg-card: rgba(30, 37, 48, 0.45);        /* Painéis de vidro (glassmorphism) */
    
    --color-gold: hsl(38, 55%, 52%);         /* Ouro Clássico */
    --color-gold-hover: hsl(38, 65%, 62%);   /* Destaque Ouro Ativo */
    --color-text-primary: hsl(0, 0%, 95%);   /* Branco suave para leitura */
    --color-text-secondary: hsl(210, 12%, 75%); /* Cinza claro para descrições */
    --color-text-muted: hsl(210, 10%, 55%);  /* Cinza escuro */
    
    --border-color: rgba(212, 175, 55, 0.15); /* Bordas ouro translúcidas */
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
    --border-radius-sm: 4px;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max-width: 1200px;
}

/* 3. Reset & Estilos Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* 4. Tipografia */
h1, h2, h3, h4, .font-luxury {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
}

p, span, li, input, select, textarea, button {
    font-family: var(--font-sans);
}

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

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

/* 5. Layout & Containers */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* 6. Cabeçalho (Header) - Design Premium Verde Escuro */
.main-header {
    background: hsl(153, 40%, 10%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
}

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

/* Logo (texto estilizado - Senna Tower style) */
.header-logo-link {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    line-height: 1;
    gap: 2px;
}

.logo-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.logo-subtitle {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.55em;
    text-transform: uppercase;
    text-align: center;
    display: block;
    width: 100%;
    transition: var(--transition-smooth);
}

.header-logo-link:hover .logo-name {
    color: var(--color-gold);
}

.header-logo-link:hover .logo-subtitle {
    color: var(--color-gold-hover);
}

/* Navegação centralizada */
.header-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
}

/* Separador "|" entre itens (exceto o último) */
.nav-links li:not(:last-child)::after {
    content: '|';
    color: rgba(255, 255, 255, 0.25);
    margin: 0 20px;
    font-size: 0.85rem;
    font-weight: 300;
}

.nav-links a {
    color: var(--color-text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-links a.active {
    color: var(--color-gold);
}

/* Foto Instagram circular à direita */
.header-instagram-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.header-instagram-photo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--color-gold);
    transition: var(--transition-smooth);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.header-instagram-link:hover .header-instagram-photo {
    border-color: var(--color-gold-hover);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
    transform: scale(1.08);
}

/* Botão Hambúrguer (mobile) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger-btn:hover span {
    background: var(--color-gold);
}

/* Menu Mobile Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 24px;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.mobile-nav-close:hover {
    color: var(--color-gold);
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav-links a {
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
}

.mobile-nav-links a:hover {
    color: var(--color-gold);
    transform: scale(1.05);
}

/* Legacy class mantida para compatibilidade */
.btn-contact-header {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-contact-header:hover {
    background: var(--color-gold);
    color: var(--bg-primary);
}

/* 7. Banner Hero (Home) — Vídeo Background (Senna Tower inspired) */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    overflow: hidden;
}

/* Vídeo de fundo fullscreen */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0.45;
    filter: brightness(0.7) contrast(1.1);
}

/* Fallback: imagem estática se vídeo falhar */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.35;
}

/* Overlay gradiente escuro */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.25) 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

/* Conteúdo do Hero centralizado */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    padding: 0 24px;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 0.3s forwards;
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.8rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 0.6s forwards;
}

.hero-content h1 em {
    font-style: italic;
    color: var(--color-gold);
}

.hero-content p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 0.9s forwards;
}

.hero-content .btn-primary {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 1.2s forwards;
}

/* Seta para baixo animada (Senna Tower style) */
.hero-scroll-arrow {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out 1.5s forwards;
}

.hero-scroll-arrow span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 1.5px solid var(--color-gold);
    border-bottom: 1.5px solid var(--color-gold);
    transform: rotate(45deg);
    animation: arrowBounce 2s infinite;
}

/* Animações do Hero */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(8px);
    }
    60% {
        transform: rotate(45deg) translateY(4px);
    }
}

/* 8. Botões */
.btn-primary {
    background: var(--color-gold);
    color: var(--bg-primary);
    padding: 16px 32px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

/* 9. Cards de Imóvel (Evitando CLS via dimensões) */
.property-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.4);
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3; /* Previne CLS alocando espaço antes do carregamento da foto */
    background: var(--bg-secondary);
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.badge-status {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(13, 17, 23, 0.85);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-sm);
}

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

.card-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-location {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.feature-item strong {
    color: #ffffff;
    font-size: 0.95rem;
    margin-top: 2px;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-top: auto;
}

.card-price span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* 10. Formulários / Filtros */
.filter-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    font-weight: 600;
}

.filter-group select,
.filter-group input {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px;
    border-radius: var(--border-radius-md);
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--color-gold);
}

/* 11. Detalhe do Imóvel */
.property-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-top: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.gallery-main {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

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

.gallery-thumbs-col {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

.gallery-thumb-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    position: relative;
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.gallery-overlay-more {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
}

.property-details-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 32px;
}

.property-details-section h2 {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    font-size: 1.75rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tech-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.tech-item span {
    color: var(--color-text-secondary);
}

.tech-item strong {
    color: #ffffff;
}

/* 12. Sidebar de Contato/Conversão */
.contact-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    position: sticky;
    top: 112px;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.avatar-broker {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
}

.broker-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.broker-info p {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-whats {
    background: #25d366;
    color: #ffffff;
    width: 100%;
    padding: 16px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.btn-whats:hover {
    background: #20ba5a;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Lightbox Otimizado (Vanilla JS) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

/* 13. Rodapé (Footer) */
.main-footer {
    background: hsl(220, 20%, 5%);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px 0;
    color: var(--color-text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--color-gold);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--color-text-secondary);
}

.footer-col ul a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* 14. Responsividade */
@media (max-width: 992px) {
    .property-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
}

/* ==========================================================================
   PORTFOLIO GRID – 3 Colunas (Desktop) / 1 Coluna (Mobile)
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.portfolio-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(212, 175, 55, 0.45);
}

.portfolio-item .property-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .property-thumb {
    transform: scale(1.06);
}

.portfolio-item .grid-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
    padding: 16px 16px 4px 16px;
    line-height: 1.3;
}

.portfolio-item .grid-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-gold);
    padding: 4px 16px 16px 16px;
}

/* ==========================================================================
   MODAL / CARROSSEL DE FOTOS DO IMÓVEL
   ========================================================================== */
.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal .modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .carousel-images {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .carousel-images img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius-md);
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.modal .close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal .close-btn:hover {
    color: var(--color-gold);
}

.modal .prev,
.modal .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal .prev:hover,
.modal .next:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--bg-primary);
}

.modal .prev {
    left: -70px;
}

.modal .next {
    right: -70px;
}

.modal .carousel-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsividade – Portfolio Grid e Modal */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal .prev {
        left: 10px;
    }

    .modal .next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Header mobile: esconder nav desktop, mostrar hamburger */
    .header-nav-center {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-nav-overlay {
        display: block;
    }

    .header-logo-img {
        height: 34px;
    }

    .header-instagram-photo {
        width: 38px;
        height: 38px;
    }

    .main-header {
        height: 60px;
    }

    .logo-name {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    .logo-subtitle {
        font-size: 0.45rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 0.04em;
    }

    .hero-tagline {
        font-size: 0.65rem;
        letter-spacing: 0.3em;
    }

    .hero-scroll-arrow {
        bottom: 20px;
    }

    /* Seção Perfil Amanda - empilhar foto acima do texto */
    .section-padding > .container[style*="grid-template-columns: 1fr 1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .section-padding > .container[style*="grid-template-columns: 1fr 1.2fr"] > div:first-child {
        max-width: 280px;
        margin: 0 auto;
    }

    /* Features grid em 1 coluna no mobile */
    .section-padding div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Títulos menores no mobile */
    .section-padding h2 {
        font-size: 1.8rem !important;
    }

    /* Comparador Engenharia mobile */
    #compare-panel > div {
        margin: 16px !important;
        padding: 20px !important;
    }

    #compare-panel h3 {
        font-size: 1.1rem !important;
    }

    #compare-panel table {
        font-size: 0.78rem !important;
    }

    #compare-panel th,
    #compare-panel td {
        padding: 8px !important;
    }

    /* Cards do grid no mobile */
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    /* CTA section */
    .section-padding h2[style*="2.75rem"] {
        font-size: 1.8rem !important;
    }
}

/* ==========================================================================
   15. ESTRUTURA DE LUXO DINÂMICA (Estilo Landing Page - Verona/Flampark)
   ========================================================================== */

/* Tema Verde Esmeralda (Casas / Condomínios Horizontais) */
.theme-luxury-green {
    --bg-theme-main: hsl(150, 30%, 8%);
    --bg-theme-secondary: hsl(150, 25%, 11%);
    --color-theme-accent: hsl(38, 55%, 52%); /* Dourado */
    --color-theme-button-bg: hsl(35, 95%, 45%);
    --color-theme-button-hover: hsl(35, 95%, 40%);
    --color-theme-text-light: #e6f4ea;
    background-color: var(--bg-theme-main);
    color: var(--color-theme-text-light);
}

/* Tema Roxo Ametista (Apartamentos / Coberturas Verticais) */
.theme-luxury-purple {
    --bg-theme-main: hsl(285, 30%, 8%);
    --bg-theme-secondary: hsl(285, 25%, 11%);
    --color-theme-accent: hsl(38, 55%, 52%); /* Dourado */
    --color-theme-button-bg: hsl(340, 75%, 45%); /* Rosa/Bordô Luxo */
    --color-theme-button-hover: hsl(340, 75%, 40%);
    --color-theme-text-light: #f8effc;
    background-color: var(--bg-theme-main);
    color: var(--color-theme-text-light);
}

/* Layout Geral da LP */
.lp-wrapper {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-theme-main);
    padding-bottom: 64px;
}

/* Hero Section */
.lp-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 24px;
}

.lp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 50%, var(--bg-theme-main) 100%);
    z-index: 1;
}

.lp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    color: #ffffff;
}

.lp-badge {
    display: inline-block;
    background: var(--color-theme-button-bg);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lp-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.lp-hero-content h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-theme-accent);
    margin-bottom: 24px;
}

.lp-hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}

.lp-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-lp-primary {
    background: var(--color-theme-button-bg);
    color: #ffffff;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-lp-primary:hover {
    background: var(--color-theme-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.btn-lp-secondary {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-lp-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Seções da Landing Page */
.lp-section {
    padding: 64px 24px;
}

.lp-container {
    max-width: 900px;
    margin: 0 auto;
}

.lp-title-block {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-theme-accent);
    margin-bottom: 24px;
    border-left: 3px solid var(--color-theme-accent);
    padding-left: 12px;
}

/* Tabela de Especificações */
.lp-specs-card {
    background: var(--bg-theme-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.lp-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.lp-specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lp-specs-table tr:last-child {
    border-bottom: none;
}

.lp-specs-table td {
    padding: 20px 24px;
    vertical-align: middle;
}

.lp-specs-table td.col-diff {
    width: 30%;
    font-weight: 700;
    color: var(--color-theme-accent);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.lp-specs-table td.col-details {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Grelha de Fotos */
.lp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.lp-gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.lp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.lp-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Faixa de Descrição (Harmonia Perfeita) */
.lp-desc-banner {
    background: var(--bg-theme-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lp-desc-banner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-theme-accent);
}

.lp-desc-content {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.lp-price-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    margin-top: 8px;
}

.lp-price-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.lp-price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-theme-accent);
}

/* Bloco Quem Somos */
.lp-about-block {
    background: var(--bg-theme-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.lp-about-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-theme-accent);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.lp-about-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.lp-about-block p:last-child {
    margin-bottom: 0;
}

/* Formulário de Conversão Flutuante */
.lp-form-card {
    background: var(--bg-theme-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.lp-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.lp-form-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.lp-form-card .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.lp-form-card label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-theme-accent);
    margin-bottom: 8px;
}

.lp-form-card input {
    width: 100%;
    background: var(--bg-theme-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.lp-form-card input:focus {
    border-color: var(--color-theme-accent);
}

.lp-form-card .btn-lp-primary {
    width: 100%;
    margin-bottom: 16px;
}

.btn-lp-whatsapp-main {
    background: #25d366;
    color: #ffffff;
    font-weight: 700;
    padding: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-lp-whatsapp-main:hover {
    background: #20ba5a;
    transform: translateY(-1px);
}

.btn-lp-whatsapp-aux {
    background: transparent;
    color: #25d366;
    font-weight: 700;
    padding: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(37, 211, 102, 0.3);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-lp-whatsapp-aux:hover {
    background: rgba(37, 211, 102, 0.05);
    border-color: #25d366;
}

/* Lightbox Avançado com Slideshow Lateral */
.lp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lp-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lp-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10002;
    line-height: 1;
    transition: color 0.2s;
}

.lp-lightbox-close:hover {
    color: var(--color-theme-accent);
}

.lp-lightbox-slider {
    width: 90%;
    max-width: 1000px;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10001;
}

.lp-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.lp-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    user-select: none;
}

.lp-lightbox-arrow:hover {
    background: var(--color-theme-button-bg);
    border-color: var(--color-theme-button-bg);
}

.lp-lightbox-arrow.arrow-prev {
    left: -70px;
}

.lp-lightbox-arrow.arrow-next {
    right: -70px;
}

.lp-lightbox-counter {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsividade da Landing Page */
@media (max-width: 992px) {
    .lp-lightbox-arrow.arrow-prev {
        left: 10px;
    }
    
    .lp-lightbox-arrow.arrow-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .lp-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .lp-hero-content h2 {
        font-size: 1.3rem;
    }
    
    .lp-hero-content p {
        font-size: 1rem;
    }
    
    .lp-specs-table td.col-diff {
        width: 40%;
        padding: 16px;
    }
    
    .lp-specs-table td.col-details {
        padding: 16px;
    }
    
    .lp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .lp-desc-banner {
        padding: 24px;
    }
    
    .lp-form-card {
        padding: 24px;
    }
}
