/* =========================================================
   PAGE.CSS — Landing Page Tour Virtual (Estilo Premium Gold)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --bg:          #000000;
    --bg-2:        #111111;
    --bg-3:        #1a1a1a;
    --border:      rgba(255,255,255,0.1);
    --text:        #ffffff;
    --muted:       #cccccc;
    --accent:      #c29565; /* Ouro Premium */
    --accent2:     #d8aa78;
    --green:       #22c55e;
    --gold:        #c29565;
    --radius:      12px;
    --radius-sm:   8px;
    
    --sidebar-w:   60px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img  { display: block; width: 100%; height: 100%; object-fit: cover; }
a    { text-decoration: none; color: inherit; }

/* ── Containers ── */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-fluid { padding: 0 40px; }

/* ── Ajuste Global Sidebar ── */
.main-wrapper {
    width: calc(100% - var(--sidebar-w));
    margin-left: var(--sidebar-w);
}

.section { padding: 100px 0; }

/* =========================================================
   HERO / VIEWER
   ========================================================= */
.hero-section {
    padding: 120px 40px 60px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 24px;
    background: var(--bg);
}

.hero-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(194, 149, 101, 0.1); border: 1px solid rgba(194, 149, 101, 0.3);
    color: var(--accent); padding: 6px 16px; border-radius: 100px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-label-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title { font-size: clamp(36px, 5vw, 62px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hero-title-accent { color: var(--accent); }
.hero-sub { font-size: 16px; color: var(--muted); font-weight: 400; max-width: 500px; }

/* Wrapper do iframe — proporção 16:9 */
.viewer-wrapper {
    position: relative;
    width: 100%; max-width: 1160px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 40px 120px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04);
}
.viewer-iframe { width: 100%; height: 100%; border: none; display: block; }

.viewer-badge {
    position: absolute; top: 18px; left: 18px; z-index: 10;
    display: flex; align-items: center; gap: 7px;
    background: rgba(10,10,10,0.72); backdrop-filter: blur(12px);
    border: 1px solid var(--accent); border-radius: 100px;
    padding: 6px 14px; font-size: 11px; font-weight: 700; color: #fff;
    pointer-events: none; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-icon { width: 14px; height: 14px; stroke: var(--accent); }

/* Pills */
.hero-pills { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pill {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-2); border: 1px solid var(--border);
    padding: 8px 16px; border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--muted);
    transition: color 0.2s, border-color 0.2s; text-transform: uppercase; letter-spacing: 0.05em;
}
.pill:hover { color: #fff; border-color: var(--accent); }
.pill svg { width: 14px; height: 14px; stroke: var(--accent); }

/* =========================================================
   SOBRE O PROJETO
   ========================================================= */
.sobre-section { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sobre-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.section-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 24px; }
.text-accent { color: var(--accent); }
.section-body { font-size: 15px; line-height: 1.75; color: var(--muted); margin-bottom: 16px; }
.section-subtitle { font-size: 16px; color: var(--muted); margin-top: 12px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.stat-item {
    background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 24px; display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s;
}
.stat-item.in-view { opacity: 1; transform: translateY(0); }
.stat-item:hover { border-color: var(--accent); }
.stat-number { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -0.04em; }
.stat-label  { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Galeria */
.sobre-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { position: relative; height: 300px; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s ease; }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-main-label {
    position: absolute; bottom: 14px; left: 14px;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    color: var(--accent); font-size: 10px; font-weight: 700; padding: 6px 14px; border-radius: 100px;
    border: 1px solid var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
}
.gallery-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery-thumb { position: relative; height: 140px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
    opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.gallery-thumb.in-view { opacity: 1; transform: translateY(0); }
.gallery-thumb img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s ease; }
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-thumb span {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 20px 10px 10px; font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; text-align: center;
}

/* ── Botões ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--accent); color: #000;
    padding: 14px 28px; border-radius: 100px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    transition: background 0.2s, transform 0.15s; cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-primary svg { width: 17px; height: 17px; stroke-width: 2; }
.btn-primary--lg { padding: 16px 34px; font-size: 14px; }

/* =========================================================
   OUTROS PROJETOS
   ========================================================= */
.projetos-section { background: var(--bg); }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; padding: 0 0 0 0; }
.section-header-actions { display: flex; gap: 10px; }
.scroll-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-2); border: 1px solid var(--border);
    color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.scroll-btn:hover { background: var(--bg-3); color: var(--accent); border-color: var(--accent); }
.scroll-btn svg { width: 18px; height: 18px; }

.projetos-track {
    display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.projetos-track::-webkit-scrollbar { display: none; }

.projeto-card {
    flex: 0 0 320px; border-radius: var(--radius); overflow: hidden;
    background: var(--bg-2); border: 1px solid var(--border);
    scroll-snap-align: start; opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s;
}
.projeto-card.in-view { opacity: 1; transform: translateY(0); }
.projeto-card:hover { border-color: var(--accent); }

.projeto-img-wrap { position: relative; height: 200px; overflow: hidden; }
.projeto-img-wrap img { transition: transform 0.5s ease; }
.projeto-card:hover .projeto-img-wrap img { transform: scale(1.06); }

.projeto-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.projeto-card:hover .projeto-overlay { opacity: 1; }
.projeto-tour-btn {
    display: flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid var(--accent); color: var(--accent);
    padding: 10px 20px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    transition: background 0.2s, color 0.2s;
}
.projeto-tour-btn:hover { background: var(--accent); color: #000; }
.projeto-tour-btn svg { width: 15px; height: 15px; }

.projeto-info { padding: 18px 20px 20px; }
.projeto-tag {
    display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.projeto-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.projeto-meta { font-size: 12px; color: var(--muted); }

/* =========================================================
   VÍDEOS 360°
   ========================================================= */
.videos-section { background: var(--bg-2); border-top: 1px solid var(--border); }
.section-header-centered { text-align: center; margin-bottom: 56px; }

.videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.videos-grid-secondary { display: flex; flex-direction: column; gap: 16px; }

.video-card {
    background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s;
}
.video-card.in-view { opacity: 1; transform: translateY(0); }
.video-card:hover { border-color: var(--accent); }

.video-thumb { position: relative; overflow: hidden; }
.video-card--featured .video-thumb { height: 300px; }
.video-card--sm .video-thumb { height: 130px; }
.video-thumb img { transition: transform 0.5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4); transition: background 0.3s;
}
.video-card:hover .video-overlay { background: rgba(0,0,0,0.6); }

.play-btn {
    width: 54px; height: 54px; border-radius: 50%;
    background: rgba(0,0,0,0.5); border: 1px solid var(--accent);
    display: flex; align-items: center; justify-content: center; color: var(--accent);
    transition: background 0.2s, transform 0.2s;
}
.play-btn--lg { width: 68px; height: 68px; }
.video-card:hover .play-btn { background: var(--accent); color: #000; transform: scale(1.08); }
.play-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: none; margin-left: 3px; }
.play-btn--lg svg { width: 26px; height: 26px; }

.video-badge {
    position: absolute; top: 12px; right: 12px;
    display: flex; align-items: center; gap: 5px;
    background: rgba(0,0,0,0.8); border: 1px solid var(--border); border-radius: 100px;
    padding: 5px 11px; font-size: 10px; font-weight: 800; color: #fff; letter-spacing: 0.1em; text-transform: uppercase;
}
.video-badge svg { width: 12px; height: 12px; stroke: var(--accent); }
.video-badge--gold { border-color: var(--accent); color: var(--accent); }

.video-info { padding: 16px 18px 18px; }
.video-card--sm .video-info { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.video-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-shrink: 0; }
.video-card--sm .video-meta { margin-bottom: 0; }
.video-duration { font-size: 12px; font-weight: 600; color: var(--muted); }
.video-dot { color: var(--accent); font-size: 10px; }
.video-quality { font-size: 10px; font-weight: 800; color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; }
.video-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.35; }
.video-card--sm .video-title { font-size: 13px; }

/* =========================================================
   MODAL DE VÍDEO
   ========================================================= */
.video-modal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.video-modal.active { opacity: 1; pointer-events: auto; }
.video-modal-inner {
    position: relative; width: 90vw; max-width: 1100px;
    aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 40px 120px rgba(0,0,0,0.8); border: 1px solid var(--accent);
}
.video-modal-close {
    position: absolute; top: -44px; right: 0;
    background: transparent; border: 1px solid var(--accent); border-radius: 50%;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--accent); transition: background 0.2s; z-index: 10;
}
.video-modal-close:hover { background: var(--accent); color: #000; }
.video-modal-close svg { width: 16px; height: 16px; }
.video-modal-frame { width: 100%; height: 100%; }
.video-modal-frame iframe { width: 100%; height: 100%; border: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 900px) {
    .sobre-section .container { grid-template-columns: 1fr; gap: 48px; }
    .videos-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 90px 20px 48px; }
    .container, .container-fluid { padding: 0 20px; }
    .section { padding: 80px 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .section-header-row { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 600px) {
    .main-wrapper { width: 100%; margin-left: 0; }
}
