/* ============================================================
   Sonder Filmes — estilos do site (home + sobre)
   ============================================================ */

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
    --bg-dark:      #0d0d0c;
    --text-main:    #ffffff;
    --text-muted:   #aaaaaa;
    --border-color: rgba(255, 255, 255, 0.15);
    --font-base:    'Inter', sans-serif;
    --font-syne:    'Syne', sans-serif;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Tipografia ────────────────────────────────────────────── */
.font-syne        { font-family: var(--font-syne); }
.font-inter       { font-family: var(--font-base); }
.text-light-muted { color: var(--text-muted) !important; }
.tracking-wide    { letter-spacing: 0.12em; }
.text-shadow      { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); }
.fs-xs            { font-size: 0.70rem; }
.fs-sm            { font-size: 0.82rem; }

/* ── Navbar ────────────────────────────────────────────────── */
#mainNav {
    width: 100%;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
#mainNav.scrolled { background-color: #000; }
#mainNav .navbar-brand img { max-height: 40px; }
.transition-all { transition: all 0.3s ease; }
.nav-link {
    letter-spacing: 0.15em;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.nav-hover:hover { opacity: 1 !important; color: #fff !important; }

/* ── Botão ─────────────────────────────────────────────────── */
.custom-btn {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--text-main);
    transition: all 0.3s ease;
}
.custom-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
    color: var(--text-main);
}

/* ── Hero / Topo ───────────────────────────────────────────── */
.hero { min-height: 100vh; }
.hero-layer { z-index: 0; }
.hero-bg {
    background-color: #121212;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) contrast(1.1);
}
.hero-overlay {
    background: linear-gradient(180deg, rgba(13,13,12,0) 0%, rgba(13,13,12,0.3) 60%, var(--bg-dark) 100%);
}
.hero-noise {
    background-image: url('/assets/images/comon/NOISE.png');
    background-color: #000;
    background-blend-mode: multiply;
    opacity: 0.3;
    pointer-events: none;
}
.hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.hero-vector {
    top: 78%;
    z-index: 9;
    pointer-events: none;
}
.hero-vector img { height: auto; display: block; opacity: 0.8; }

/* ── Bloco preto antes dos vídeos ──────────────────────────── */
.pre-works {
    height: 350px;
    position: relative;
    z-index: 5;
    margin-bottom: -100px;
    background-color: #000;
}

/* ── Trabalhos / Vídeos ────────────────────────────────────── */
.works {
    position: relative;
    z-index: 10;
    padding-bottom: 3rem;
    background-color: #000;
}
.border-secondary { border-color: var(--border-color) !important; }
.work-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    cursor: pointer;
    height: 350px;
}
.work-card--featured { height: 60vh; min-height: 400px; }
.thumbnail-wrapper { z-index: 1; }
.work-thumb-shade { background: rgba(0, 0, 0, 0.35); }
.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, background 0.25s ease;
}
.video-card:hover .play-btn {
    transform: scale(1.12);
    background: rgba(255, 255, 255, 0.25) !important;
}
.work-title {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 0 9px 0;
    display: table;
}
.work-title--has-desc { padding-bottom: 2px; }
.work-desc {
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 0 9px 0;
    display: table;
}
.video-container {
    z-index: 5;
    display: none;
}
.yt-wrapper { position: relative; width: 100%; height: 100%; overflow: hidden; }
.iframe-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.yt-player-target { width: 100%; height: 100%; pointer-events: auto !important; }
.video-container iframe { width: 100%; height: 100%; object-fit: cover; }

/* ── Contato ───────────────────────────────────────────────── */
.contato {
    background-color: #000;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.contato-info p   { color: #B3B3B3; }
.contato-info .bi { font-size: 0.9rem; }

/* ── Instagram ─────────────────────────────────────────────── */
.insta-section {
    background-color: #1a1a1a;
    position: relative;
    padding-top: 5rem;
    padding-bottom: 12rem;
    overflow: hidden;
}
.insta-inner {
    width: 65%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.insta-heading { letter-spacing: 2px; color: #888; }
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.insta-item {
    display: block;
    aspect-ratio: 1;
    background: #222 center/cover no-repeat;
    border-radius: 4px;
    transition: opacity .2s;
}
.insta-item:hover { opacity: .85; }
.insta-empty { color: #555; font-size: 0.8rem; }
.insta-divider { border-color: rgba(255, 255, 255, 0.1); margin: 0; }
.insta-bottom { position: relative; padding-top: 5rem; padding-bottom: 3rem; }
.footer-text p { font-size: 0.75rem; color: #888; }
.footer-logo img { max-height: 30px; }
.insta-vector {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

/* ── Rodapé mínimo (padrão do site) ────────────────────────── */
.site-foot {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 28px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--bg-dark);
}
.site-foot-credito {
    font-size: 11px;
    color: #7a7a7a;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

/* ── Formulário de contato (modal) ─────────────────────────── */
#leadForm .form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 0.8rem 1rem;
    border-radius: 8px;
}
#leadForm .form-control::placeholder { color: rgba(255, 255, 255, 0.5) !important; }
#leadForm .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
}

/* ── Página Sobre ──────────────────────────────────────────── */
.sobre-page {
    position: relative;
    min-height: 100vh;
    padding: 160px 0 250px;
    overflow: hidden;
}
.sobre-graphism {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1300px;
    max-width: 140%;
    height: 100%;
    background: url('/assets/images/comon/vector.png') no-repeat top center;
    background-size: 100% auto;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}
.sobre-content { position: relative; z-index: 1; }
.sobre-fotos { display: flex; gap: 0; align-items: stretch; }
.sobre-foto { background: #2a2a2a center/cover no-repeat; }
.sobre-foto-grande { flex: 1; border-radius: 3px 0 0 3px; }
.sobre-fotos-col { flex: 1; display: flex; flex-direction: column; gap: 0; }
.sobre-foto-2 { aspect-ratio: 15 / 8; border-radius: 0 3px 0 0; }  /* foto de cima — 20% mais baixa */
.sobre-foto-3 { aspect-ratio: 5 / 4;  border-radius: 0 0 3px 0; }  /* foto de baixo — 20% mais alta */
.sobre-textos { display: grid; grid-template-columns: 7fr 3fr; gap: 60px; margin-top: 38px; }
.sobre-texto-grande { font-size: 1.15rem; line-height: 1;    color: #ededed; }
.sobre-texto-menor  { font-size: 0.82rem; line-height: 1.75; color: #8a8a8a; }
.sobre-textos a { color: #ffffff; text-decoration: underline; }
.sobre-vazio { color: #666; text-align: center; }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    #mainNav .container { padding-left: 30px; padding-right: 30px; }

    .hero-content { padding-left: 30px; padding-right: 30px; }

    .works { padding-left: 20px; padding-right: 20px; }
    .works > .row { margin-left: 0; margin-right: 0; }
    .works > .row > [class*="col-"] { padding-left: 0; padding-right: 0; margin-bottom: 20px; }

    .insta-inner { width: 100%; padding-left: 20px; padding-right: 20px; }
    .insta-grid { grid-template-columns: repeat(2, 1fr); }

    .sobre-page { padding: 120px 0 70px; }
    .sobre-content { padding-left: 20px; padding-right: 20px; }
    .sobre-textos { grid-template-columns: 1fr; gap: 22px; }

    /* Fotos do Sobre no mobile: foto 1 full em cima, 2 e 3 lado a lado embaixo */
    .sobre-fotos { flex-direction: column; }
    .sobre-foto-grande { aspect-ratio: 1 / 1; border-radius: 3px 3px 0 0; }
    .sobre-fotos-col { flex-direction: row; }
    .sobre-foto-2, .sobre-foto-3 { flex: 1; aspect-ratio: 1 / 1; }
    .sobre-foto-2 { border-radius: 0 0 0 3px; }
    .sobre-foto-3 { border-radius: 0 0 3px 0; }
}
