/* --- CSS GERAL E VARIÁVEIS (DARK & LIGHT MODE) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-red: #ff5f5f; 
    --bg-body: #1a1a1a;
    --bg-section: #141414;
    --bg-footer: #050505;
    --bg-card: #222222;
    --text-main: #ffffff;
    --text-secondary: #e0e0e0; 
    --text-muted: #a3a3a3; 
    --border-color: rgba(255, 255, 255, 0.15);
    --border-hover: rgba(255, 255, 255, 0.4);
    --card-overlay-gradient: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    --hero-overlay: linear-gradient(to right, rgba(20,20,20, 0.4) 0%, rgba(20,20,20, 0.3) 40%, rgba(20, 20, 20, 0.1) 100%);
    
    --font-size-base: 16px; 
    --h1-size: 4.5rem;
    --h2-size: 3.5rem;
}

[data-theme="light"] {
    --bg-body: #f4f4f4; --bg-section: #e8e8e8; --bg-footer: #dcdcdc; --bg-card: #ffffff;
    --text-main: #1a1a1a; --text-secondary: #4a4a4a; --text-muted: #666666;
    --primary-red: #c92d2d; 
    --border-color: rgba(0, 0, 0, 0.1); --border-hover: rgba(0, 0, 0, 0.3);
    --card-overlay-gradient: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); 
    --hero-overlay: linear-gradient(to right, rgba(240,240,240, 0.4) 0%, rgba(240,240,240, 0.3) 40%, rgba(240,240,240, 0.1) 100%);
}

/* Proteção máxima contra scroll horizontal indesejado */
body, html { 
    font-family: 'Montserrat', sans-serif; 
    font-size: var(--font-size-base); 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    overflow-x: hidden; 
    width: 100%;
    position: relative;
    scroll-behavior: smooth; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

/* BLOQUEIO DO SCROLL DE FUNDO PARA MODAIS */
body.modal-open, html.modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.mono-text { font-family: 'Courier Prime', 'Courier New', monospace; }
.text-red { color: var(--primary-red); }

.reveal-up { opacity: 0; transform: translateY(40px); transition: all 1s ease-out; }
.reveal-down { opacity: 0; transform: translateY(-40px); transition: all 1s ease-out; }
.scroll-reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.is-visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; } .delay-200 { transition-delay: 0.2s; }

/* --- BARRA DE CONTACTOS TOPO (Fixa) --- */
.top-contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--primary-red);
    color: #fff;
    z-index: 10005; 
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 60px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.top-contact-info {
    display: flex;
    gap: 30px;
}
.top-contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-contact-info svg {
    width: 14px;
    height: 14px;
}

/* Compensação para páginas secundárias onde o header flui normalmente */
body.secondary-page {
    padding-top: 40px; 
}

/* --- HEADER HOME PAGE --- */
.hero-section { position: relative; min-height: 100vh; width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 60px; background-color: var(--bg-body); }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; background: url('assets/capa.jpg') no-repeat center center/cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background: var(--hero-overlay); }
header, .main-content, .footer-info { position: relative; z-index: 2; }
header { 
    display: flex; justify-content: space-between; align-items: center; width: 100%; position: relative; z-index: 1000; 
    margin-top: 40px; 
}
.logo-wrapper { display: flex; align-items: center; text-decoration: none; z-index: 1001; } 
#header-logo { height: 80px; width: auto; object-fit: contain; transition: opacity 0.3s ease; }

/* --- HEADER PÁGINAS SECUNDÁRIAS (Fluido / Sem Espaços) --- */
.gallery-header {
    position: relative; 
    width: 100%;
    background: var(--bg-footer);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    height: 70px;
}
.back-arrow {
    color: var(--text-main);
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}
.back-arrow:hover { color: var(--primary-red); transform: translateX(-5px); }

/* --- NAVEGAÇÃO COM ANIMAÇÃO DE SUBLINHADO --- */
nav ul { display: flex; list-style: none; gap: 30px; align-items: center; margin: 0; padding: 0; }
nav a { 
    text-decoration: none; 
    color: var(--text-main); 
    font-size: 0.85rem; 
    font-weight: 600; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s; 
}
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}
nav a:hover { color: var(--primary-red); }
nav a:hover::after { width: 100%; }

.lang-switch { font-size: 0.75rem; font-weight: 700; cursor: pointer; font-family: 'Courier Prime', monospace; border: 1px solid var(--border-color); padding: 8px 15px; color: var(--text-main); transition: border-color 0.3s ease; }
.lang-switch:hover { border-color: var(--primary-red); }
.active-lang { color: var(--primary-red); } .inactive-lang { color: var(--text-muted); }
.theme-icon { width: 35px; height: 35px; border: 1px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; cursor: pointer; margin-left: 10px; color: var(--text-main); transition: all 0.3s ease; }
.theme-icon:hover { border-color: var(--primary-red); color: var(--primary-red); transform: rotate(15deg); }

/* --- HAMBÚRGUER (MENU MOBILE) --- */
.hamburger { display: none; cursor: pointer; z-index: 10001; margin-left: auto; width: 30px; height: 20px; position: relative; }
.bar { 
    display: block; 
    width: 100%; 
    height: 3px; 
    background-color: var(--text-main); 
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease; 
}
.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.bar:nth-child(3) { bottom: 0; }

.hamburger.active .bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); background-color: var(--primary-red); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); background-color: var(--primary-red); }

.main-content { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; max-width: 900px; margin-top: 60px; margin-bottom: 40px; }
.breadcrumbs { color: var(--primary-red); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: flex; gap: 10px; }
h1 { font-size: var(--h1-size); line-height: 0.9; font-weight: 900; text-transform: uppercase; margin-bottom: 30px; color: var(--text-main); }
h1 span { display: block; }
.hero-desc { font-size: 1.3rem; color: var(--text-secondary); font-weight: 400; line-height: 1.6; max-width: 600px; margin-bottom: 50px; }

/* --- ANIMAÇÕES MODERNAS DOS BOTÕES --- */
.btn-cta { 
    background-color: var(--primary-red); 
    color: #fff; 
    padding: 18px 40px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.9rem; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    width: fit-content; 
    border: 1px solid transparent; 
    cursor: pointer; 
    position: relative;
    overflow: hidden; 
    z-index: 1;
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease; 
}
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #a02020; 
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-cta:hover { transform: translateY(-3px); color: #fff !important; }
.btn-cta:hover::before { width: 100%; }
.btn-cta span:last-child { transition: transform 0.3s ease; }
.btn-cta:hover span:last-child { transform: translateX(6px); }

.footer-info { display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--border-color); padding-top: 25px; position: relative; }
.footer-info::before { content: ''; position: absolute; bottom: 50px; left: 0; width: 70px; height: 4px; background-color: var(--primary-red); }
.info-col { display: flex; flex-direction: column; gap: 5px; }
.info-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.info-value { font-size: 0.9rem; font-weight: 600; font-family: 'Courier Prime', monospace; letter-spacing: 1px; color: var(--text-main); }
.stats-container { display: flex; gap: 80px; } .red-text-small { color: var(--primary-red); }

.about-section, .portfolio-section, .form-section, .clients-section { background-color: var(--bg-section); padding: 120px 60px; display: flex; justify-content: center; position: relative; }
.portfolio-section, .clients-section { background-color: var(--bg-body); flex-direction: column; align-items: center;}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; max-width: 1600px; width: 100%; }

.about-image-wrapper { 
    width: 100%; 
    height: auto; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.about-image-wrapper img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    filter: grayscale(20%) contrast(110%); 
}

.about-content { display: flex; flex-direction: column; justify-content: center; }
.section-tag, .clients-tag { color: var(--primary-red); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; display: block; }
h2 { font-size: var(--h2-size); line-height: 0.95; font-weight: 900; text-transform: uppercase; margin-bottom: 50px; color: var(--text-main); }
.about-text p { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; font-weight: 400; margin-bottom: 30px; }
.about-divider { height: 1px; background-color: var(--border-color); width: 100%; margin: 40px 0; }
.about-stats { display: flex; gap: 100px; margin-top: 10px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 3.5rem; font-weight: 700; color: var(--primary-red); line-height: 1; margin-bottom: 10px; }
.stat-desc { font-family: 'Courier Prime', monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

.portfolio-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 80px; flex-wrap: wrap; gap: 50px; max-width: 1600px; width: 100%; }
.header-desc-side { max-width: 400px; font-family: 'Courier Prime', monospace; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; text-align: left; }

.gallery-page-container { max-width: 1600px; margin: 0 auto 100px auto; padding: 0 60px; width: 100%; }

/* --- ESTILOS DA GRID MASONRY --- */
.masonry-grid { width: 100%; }
.masonry-grid:after { content: ''; display: block; clear: both; }
.grid-sizer, .masonry-item { width: 33.333%; float: left; padding: 15px; }

.modal-masonry-grid { width: 100%; }
.modal-masonry-grid:after { content: ''; display: block; clear: both; }
.modal-grid-sizer, .modal-masonry-item { width: 33.333%; float: left; padding: 15px; }

.masonry-card { position: relative; background-color: var(--bg-card); overflow: hidden; cursor: pointer; transition: transform 0.3s; }
.masonry-card img, .modal-masonry-item img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; filter: brightness(0.8); }
.masonry-card:hover img, .modal-masonry-item:hover img { transform: scale(1.05); filter: brightness(0.6); }
.masonry-card:hover .card-overlay { padding-bottom: 50px; } 

/* --- CARTÃO CALL TO ACTION (MASONRY GAP FILLER) --- */
.masonry-cta { background-color: var(--bg-card); border: 2px dashed var(--border-color); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; height: 350px; transition: border-color 0.3s; }
.masonry-cta:hover { border-color: var(--primary-red); }
.masonry-cta h3 { color: var(--text-main); font-size: 1.5rem; margin-bottom: 15px; text-transform: uppercase; }
.masonry-cta p { color: var(--text-secondary); font-family: 'Courier Prime', monospace; margin-bottom: 30px; font-size: 0.9rem; }

.card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; background: var(--card-overlay-gradient); pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; transition: padding 0.4s ease; }
.proj-id { color: var(--primary-red); font-family: 'Courier Prime', monospace; font-size: 0.8rem; margin-bottom: 15px; display: block; letter-spacing: 1px; }
.proj-title { font-size: 1.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 25px; text-transform: uppercase; color: #fff; }
.proj-meta { font-family: 'Courier Prime', monospace; font-size: 0.75rem; color: #ddd; display: grid; gap: 10px; letter-spacing: 0.5px; }

/* --- ESTILOS DA GRID UNIFORME --- */
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    grid-auto-rows: 400px; 
    gap: 40px; 
    max-width: 1600px; 
    width: 100%; 
    margin: 0 auto; 
    grid-auto-flow: dense; 
}
.project-card { position: relative; background-color: var(--bg-card); overflow: hidden; cursor: pointer; transition: transform 0.3s; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.8); }
.project-card:hover img { transform: scale(1.05); filter: brightness(0.6); }
.project-card:hover .card-overlay { padding-bottom: 50px; }
.card-tall { grid-column: span 1; grid-row: span 2; }
.card-tall .proj-title { font-size: 2.2rem; }

/* --- MODAL ECRÃ INTEIRO (ALVENARIA) --- */
.modal { 
    display: none; position: fixed; z-index: 3000; left: 0; top: 0; 
    width: 100%; height: 100%; background-color: var(--bg-body); 
    overflow-y: auto; overscroll-behavior: contain; 
}
.modal-content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 100px 60px 60px; display: flex; flex-direction: column; background: transparent; border: none; }
.close-btn { position: fixed; right: 40px; top: 30px; color: #fff; font-size: 50px; font-weight: 300; cursor: pointer; z-index: 3010; line-height: 1; background: rgba(0,0,0,0.5); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.3s, color 0.3s, transform 0.3s; }
.close-btn:hover { color: var(--primary-red); background: rgba(255,255,255,0.1); transform: scale(1.1); }
.modal-info { text-align: left; margin-bottom: 50px; max-width: 800px; }
.modal-info h3 { font-size: 3rem; text-transform: uppercase; color: var(--primary-red); margin-bottom: 20px; line-height: 1.1; }
.modal-info p { font-family: 'Courier Prime', monospace; color: var(--text-secondary); line-height: 1.6; font-size: 1.1rem; }

/* Cursor de zoom para imagens dentro da alvenaria (abrem no Lightbox) */
.modal-masonry-item img { cursor: zoom-in; }

/* --- LIGHTBOX (VISUALIZADOR IMAGEM ÚNICA COM SETAS) --- */
.lightbox { 
    display: none; position: fixed; z-index: 4000; left: 0; top: 0; 
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); 
    align-items: center; justify-content: center; flex-direction: column;
    overscroll-behavior: contain;
}
.lightbox-img { max-width: 90%; max-height: 90vh; object-fit: contain; user-select: none; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-close { 
    position: absolute; top: 20px; right: 40px; color: white; font-size: 50px; font-weight: 300; 
    cursor: pointer; transition: color 0.3s; z-index: 4010; line-height: 1;
}
.lightbox-close:hover { color: var(--primary-red); }
.lightbox-prev, .lightbox-next { 
    position: absolute; top: 50%; transform: translateY(-50%); color: white; 
    font-size: 50px; font-weight: 300; cursor: pointer; transition: color 0.3s; 
    padding: 20px; z-index: 4010; user-select: none;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--primary-red); }
.open-lightbox { cursor: zoom-in; }

/* --- SECÇÃO DE CLIENTES COM LOGOS --- */
.clients-container { max-width: 1600px; margin: 0 auto; width: 100%; }
.clients-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 20px; margin-bottom: 60px; margin-top: 60px; }
.client-box { background-color: #ffffff; border: 2px solid transparent; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 15px; transition: all 0.3s ease; cursor: pointer; overflow: hidden; }
.client-box:hover { border-color: var(--primary-red); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.client-logo { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%) opacity(0.6); transition: all 0.3s ease; }
.client-box:hover .client-logo { filter: grayscale(0%) opacity(1); transform: scale(1.05); }
.clients-footer { font-family: 'Courier Prime', monospace; font-size: 0.85rem; color: var(--text-muted); margin-top: 50px; letter-spacing: 1px; }

/* Formulário */
.form-container { width: 100%; max-width: 900px; }
.contact-form { display: flex; flex-direction: column; gap: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-group label { font-family: 'Courier Prime', monospace; font-size: 0.8rem; text-transform: uppercase; color: var(--text-secondary); letter-spacing: 1px; }
.form-group input, .form-group textarea { background-color: var(--bg-body); border: 1px solid var(--border-color); padding: 15px 20px; font-family: 'Montserrat', sans-serif; color: var(--text-main); font-size: 1rem; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-red); }

/* --- FOOTER COM SELOS E LINKS LEGAIS --- */
.main-footer { background-color: var(--bg-footer); min-height: 90vh; padding: 100px 80px 40px 80px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; justify-content: space-between; }
.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 150px; 
    max-width: 1800px; 
    width: 100%; 
    margin: 0 auto; 
    flex-grow: 1; 
    align-items: flex-start; 
}
.footer-title h3 { font-size: 6rem; line-height: 0.9; font-weight: 900; text-transform: uppercase; margin-bottom: 40px; color: var(--text-main); }
.footer-desc { color: var(--text-secondary); font-size: 1.2rem; line-height: 1.6; margin-bottom: 60px; max-width: 500px; }
.contact-list { display: flex; flex-direction: column; gap: 40px; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; transition: transform 0.3s; cursor: default; }
.contact-item:hover { transform: translateX(5px); } 
.contact-icon { color: var(--primary-red); flex-shrink: 0; width: 30px; height: 30px; margin-top: 4px; font-size:1.5rem; }
.contact-text { display: flex; flex-direction: column; }
.contact-label { font-family: 'Courier Prime', monospace; font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 5px; }
.contact-value { font-size: 1.5rem; font-weight: 600; color: var(--text-main); }
.footer-right-side { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
    height: auto; 
    justify-content: flex-start; 
}
.hours-box { border: 1px solid var(--border-color); padding: 50px; background: rgba(255,255,255,0.01); width: 100%; transition: border-color 0.3s; }
.hours-box:hover { border-color: var(--border-hover); }
.hours-title { color: var(--primary-red); font-family: 'Courier Prime', monospace; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; display: block; }
.hours-list { display: flex; flex-direction: column; gap: 20px; font-family: 'Courier Prime', monospace; font-size: 1rem; color: var(--text-secondary); }
.hours-row { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.hours-row:last-child { border-bottom: none; padding-bottom: 0; }
.hours-row span:last-child { text-align: right; white-space: nowrap; }

/* MAPA DO RODAPÉ */
.footer-map {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 5px;
    background: rgba(255,255,255,0.01);
    transition: border-color 0.3s;
}
.footer-map:hover { border-color: var(--border-hover); }
.footer-map iframe {
    width: 100%;
    height: 350px;
    display: block;
    filter: grayscale(100%) contrast(120%);
    transition: all 0.3s ease;
}
.footer-map iframe:hover { filter: grayscale(0%) contrast(100%); }

/* Estilos dos Selos */
.footer-badges { display: flex; gap: 30px; align-items: center; margin-top: 0; }
.footer-badges img { height: 45px; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: all 0.3s ease; cursor: pointer; }
.footer-badges img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* Estilos do Sub-footer */
.footer-bottom-bar { border-top: 1px solid var(--border-color); padding-top: 30px; margin-top: 60px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-legal-links { display: flex; gap: 30px; font-family: 'Courier Prime', monospace; font-size: 0.85rem; }
.footer-legal-links a { color: var(--text-muted); text-decoration: none; position: relative; transition: color 0.3s; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 3px; }
.footer-legal-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 1px; background-color: var(--primary-red); transition: width 0.3s; }
.footer-legal-links a:hover { color: var(--primary-red); }
.footer-legal-links a:hover::after { width: 100%; }
.copyright-bar { font-family: 'Courier Prime', monospace; font-size: 0.8rem; color: var(--text-muted); }

/* --- PÁGINAS DE TEXTO LEGAL --- */
.legal-page-container { max-width: 900px; margin: 0 auto; padding: 0 60px 100px 60px; width: 100%; }
.legal-section { margin-bottom: 60px; }
.legal-section h2 { font-size: 2.2rem; color: var(--primary-red); margin-bottom: 30px; text-transform: none; }
.legal-section h3 { font-size: 1.5rem; color: var(--text-main); margin-top: 40px; margin-bottom: 20px; }
.legal-section p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; font-family: 'Courier Prime', monospace; }
.legal-section ul, .legal-section ol { margin-left: 20px; margin-bottom: 20px; color: var(--text-secondary); font-family: 'Courier Prime', monospace; line-height: 1.8; }
.legal-section li { margin-bottom: 10px; }
.legal-section a { color: var(--primary-red); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.legal-section a:hover { border-color: var(--primary-red); }
.legal-divider { border: 0; height: 1px; background: var(--border-color); margin: 60px 0; }

/* --- KEYFRAMES E BOTÃO SCROLL TO TOP --- */
@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.scroll-top-btn { position: fixed; bottom: -80px; right: 40px; width: 60px; height: 60px; background-color: var(--primary-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; z-index: 100; font-size: 1.5rem; border: none; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), background-color 0.3s ease; }
.scroll-top-btn.show { bottom: 40px; }
.scroll-top-btn.show:hover { background-color: #a02020; animation: bounce-soft 1.5s ease-in-out infinite; }


/* ==========================================================================
   NOVOS ESTILOS: EMPREENDIMENTOS E PAGINA DE VENDAS (JUNQUEIRA)
   ========================================================================== */

/* --- 1. GERAL PAGINAS DE VENDAS E CABEÇALHOS --- */
.page-header {
    padding: 80px 60px;
    background-color: var(--bg-section);
    text-align: center;
}
.venture-main-grid { max-width: 1400px; margin: 0 auto; width: 100%; }
.section-title-center { text-align: center; margin-bottom: 60px; font-size: 2.8rem;}
.btn-small { padding: 12px 25px; font-size: 0.8rem; }

/* --- 2. LISTA DE EMPREENDIMENTOS (empreendimentos.html) --- */
.ventures-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 40px; }

.venture-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.venture-card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.venture-image { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.venture-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.venture-card:hover .venture-image img { transform: scale(1.05); }

.venture-status-tag {
    position: absolute; top: 20px; right: 20px;
    background-color: var(--primary-red); color: #fff;
    font-family: 'Courier Prime', monospace; font-size: 0.75rem; font-weight: 700;
    padding: 8px 15px; letter-spacing: 1px;
}

.venture-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.venture-location { font-size: 0.8rem; text-transform: uppercase; color: var(--primary-red); letter-spacing: 2px; margin-bottom: 10px; display: block; font-family: 'Courier Prime', monospace; }
.venture-title { font-size: 1.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; color: var(--text-main); line-height: 1.1; }
.venture-excerpt { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; margin-bottom: 30px; flex-grow: 1; }

.venture-footer {
    border-top: 1px solid var(--border-color); padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.venture-price { font-size: 1.1rem; color: var(--text-main); font-weight: 700; font-family: 'Courier Prime', monospace;}

/* --- 3. HERO ESPECIFICO DO IMÓVEL (junqueira.html) --- */
.venture-hero { position: relative; width: 100%; height: 80vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.venture-hero .hero-overlay { background: rgba(0, 0, 0, 0.3); }

.venture-hero-content { position: relative; z-index: 10; text-align: center; color: #fff; max-width: 900px; padding: 0 20px; margin-top: 80px; }
.venture-status-badge { 
    background-color: #fff; color: #000; 
    font-family: 'Courier Prime', monospace; font-size: 0.8rem; font-weight: 700;
    padding: 10px 20px; letter-spacing: 2px; text-transform: uppercase;
    display: inline-block; margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.venture-hero-content h1 { 
    font-size: 4rem; 
    text-transform: uppercase; 
    font-weight: 900; 
    line-height: 0.95; 
    margin-bottom: 15px; 
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.6); 
}
.venture-hero-content p { 
    font-size: 1.5rem; 
    font-weight: 600; 
    color: #ffffff; 
    text-shadow: 1px 1px 10px rgba(0,0,0,0.9); 
}

/* --- 4. DETALHES E CARACTERÍSTICAS --- */
.venture-details-section, .venture-specs-section, .venture-plans-section, .venture-gallery-section { padding: 100px 60px; }
.lead-text { font-size: 1.6rem; color: var(--text-secondary); line-height: 1.5; font-weight: 400; max-width: 1000px; margin-bottom: 60px; }

.key-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.key-feature {
    border: 1px solid var(--border-color); padding: 30px;
    display: flex; flex-direction: column; gap: 5px;
}
.key-feature span { font-family: 'Courier Prime', monospace; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; }
.key-feature strong { font-size: 2.2rem; color: var(--primary-red); font-weight: 800; }

.specs-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; row-gap: 80px; }
.spec-col h3 { font-size: 1.8rem; text-transform: uppercase; color: var(--text-main); margin-bottom: 30px; padding-left: 15px; border-left: 3px solid var(--primary-red); }

.icon-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.icon-list li { 
    font-size: 1.1rem; color: var(--text-secondary); 
    display: flex; align-items: flex-start; gap: 12px; 
}
.icon-list li::before { 
    content: '→'; color: var(--primary-red); font-family: 'Courier Prime', monospace; font-weight: 700; margin-top: 1px;
}

.spec-col.full-width { grid-column: span 2; }
.const-system-box { background-color: var(--bg-card); padding: 50px; border: 1px solid var(--border-color); }
.const-system-box p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; max-width: 900px; }

/* --- 5. PLANTAS E GALERIA DENSA --- */
.section-header-left { margin-bottom: 60px; max-width: 700px; }
.section-header-left h2 { font-size: 2.8rem; margin-bottom: 15px; text-transform: uppercase; }
.section-header-left p { color: var(--text-secondary); font-family: 'Courier Prime', monospace; font-size: 1.1rem; }

.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.plan-item { 
    border: 1px solid var(--border-color); padding: 10px; background-color: var(--bg-card);
    transition: border-color 0.3s ease;
}
.plan-item:hover { border-color: var(--border-hover); }
.plan-item img { width: 100%; height: auto; display: block; }

.plan-item span { 
    display: block; text-align: center; padding: 15px 0;
    font-family: 'Courier Prime', monospace; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase;
}
.plan-item.full-width { grid-column: span 2; }

/* Grelha de Galeria Densa */
.dense-grid { grid-auto-flow: dense; grid-auto-rows: 300px; }
.dense-grid .project-card:first-child { grid-column: span 2; grid-row: span 2; }


/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 1200px) {
    .clients-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { gap: 50px; } 
}

/* TABLET (1050px) */
@media (max-width: 1050px) {
    .top-contact-bar { padding: 0 40px; }
    
    .hero-section, .about-section, .portfolio-section, .clients-section, .form-section { padding: 80px 40px; }
    .about-grid, .footer-grid { grid-template-columns: 1fr; gap: 60px; }
    
    .projects-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 350px; gap: 20px; }
    .card-tall { grid-column: span 1; grid-row: span 1; height: 100%; } 
    
    .projects-grid .project-card:nth-child(5) { display: none; }
    
    .main-footer { padding: 60px 40px 20px 40px; min-height: auto; }
    
    .grid-sizer, .masonry-item { width: 50%; padding: 10px; }
    .modal-grid-sizer, .modal-masonry-item { width: 50%; padding: 10px; }
    
    .modal-content { padding: 100px 40px 40px; }
    .modal-info h3 { font-size: 2.5rem; }
    
    .hamburger { display: block; z-index: 10001; }
    nav ul { 
        position: fixed; 
        top: 0; 
        right: -110%; 
        left: auto;
        width: 100%; 
        height: 100vh; 
        flex-direction: column; 
        background-color: var(--bg-footer); 
        justify-content: center; 
        transition: right 0.4s ease-in-out; 
        z-index: 10000; 
    }
    nav ul.active { right: 0; }
    nav ul li { margin: 15px 0; }
    nav a { font-size: 1.5rem; } 
    .lang-switch { font-size: 1rem; padding: 10px 20px; margin-top: 10px; }
    .theme-icon { margin-left: 0; margin-top: 20px; width: 45px; height: 45px; font-size: 1.8rem; }

    .venture-hero-content h1 { font-size: 3rem; text-shadow: 2px 2px 15px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.6); }
    .venture-hero-content p { text-shadow: 1px 1px 10px rgba(0,0,0,0.9); }
    
    .key-feature strong { font-size: 1.8rem; }
    .specs-list-grid { grid-template-columns: 1fr; }
    .spec-col.full-width { grid-column: span 1; }
    .dense-grid { grid-template-columns: repeat(2, 1fr); }
    .dense-grid .project-card:first-child { grid-column: span 1; grid-row: span 1; }
}

/* SMARTPHONE (768px) */
@media (max-width: 768px) {
    :root { 
        --h1-size: 2.8rem; 
        --h2-size: 2.2rem; 
        --font-size-base: 14px; 
    }
    
    .top-contact-bar { justify-content: center; padding: 0 15px; }
    .top-contact-info { gap: 15px; font-size: 0.7rem; }
    
    .page-header { padding: 60px 20px; } 
    .gallery-page-container, .legal-page-container { padding: 0 15px; } 
    .legal-page-container { padding-bottom: 60px; }
    
    .gallery-header { padding: 10px 15px; height: 60px; margin-top: 40px; }
    .back-arrow svg { width: 24px; height: 24px; }
    .hero-section { padding: 40px 15px; }
    header { justify-content: flex-end; }
    .logo-wrapper { position: absolute; left: 50%; transform: translateX(-50%); }
    #header-logo { height: 50px; }
    
    h1 { font-weight: 700; word-break: normal; hyphens: none; line-height: 0.95; }
    
    .about-section, .portfolio-section, .clients-section, .form-section { padding: 60px 15px; }
    .about-grid, .form-row { grid-template-columns: 1fr; gap: 40px; }
    
    .projects-grid { grid-template-columns: 1fr; grid-auto-rows: 350px; }
    
    .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .client-box { padding: 10px; }
    .main-footer { padding: 60px 20px; }
    
    .footer-title h3 { font-size: 2.8rem; line-height: 0.95; }
    
    .hours-box { padding: 30px; } 

    .footer-bottom-bar { flex-direction: column; text-align: center; justify-content: center; gap: 30px; }
    .footer-legal-links { flex-direction: column; gap: 15px; }
    .footer-badges { justify-content: center; flex-wrap: wrap; }

    .grid-sizer, .masonry-item { width: 100%; padding: 15px 0; }
    .modal-grid-sizer, .modal-masonry-item { width: 50%; padding: 5px; }
    
    .modal-content { padding: 80px 15px 40px; }
    .modal-info h3 { font-size: 2.2rem; }
    .close-btn { right: 15px; top: 15px; width: 45px; height: 45px; font-size: 35px; }
    .scroll-top-btn { right: 20px; width: 45px; height: 45px; font-size: 1.2rem; }
    .scroll-top-btn.show { bottom: 20px; }

    .ventures-grid { grid-template-columns: 1fr; }
    .venture-hero { height: 60vh; }
    
    .venture-hero-content h1 { 
        font-size: 2.8rem; 
        line-height: 0.95; 
        text-shadow: 2px 2px 12px rgba(0,0,0,0.9); 
    }
    .venture-hero-content p { 
        font-size: 1.1rem; 
        font-weight: 600;
        text-shadow: 1px 1px 8px rgba(0,0,0,1); 
    }
    
    .venture-details-section, .venture-specs-section, .venture-plans-section, .venture-gallery-section { padding: 60px 20px; }
    .key-features-grid { grid-template-columns: 1fr; gap: 15px; }
    
    .section-title-center, .section-header-left h2 { font-size: 2.2rem; line-height: 0.95; }
    
    .const-system-box { padding: 30px; }
    .plans-grid { grid-template-columns: 1fr; }
    .plan-item.full-width { grid-column: span 1; }
    .dense-grid { grid-template-columns: 1fr; }
}