/* ============================================================
   PAR VIDEOGRAFIA — styles.css
   Design system partilhado — importado em todas as páginas
   ============================================================ */

/* ── VARIÁVEIS ── */
:root {
    --blue-dark:   rgb(9, 65, 103);
    --blue-light:  rgb(105, 159, 188);
    --bg-dark:     rgb(51, 51, 51);
    --bg-darker:   rgb(38, 38, 38);
    --bg-light:    rgb(242, 242, 242);
    --text-light:  rgb(230, 230, 230);
    --text-mid:    rgb(172, 172, 172);
    --text-muted:  rgb(160, 160, 160);
}

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

/* ── BASE ── */
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-dark);
    color: var(--text-mid);
    line-height: 1.7;
    overflow-x: hidden;
}
h1, h2 { font-weight: 700; line-height: 1.2; }
h3 { font-weight: 600; }
p { font-weight: 400; }
a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }
::selection { background: var(--blue-light); color: white; }

/* ── HEADER ── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(172, 172, 172, 0.1);
}

/* ── LOGO ── */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

/* ── NAV ── */
nav { 
    display: flex; 
    gap: 2rem; 
    align-items: center; 
}

nav a {
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
nav a:hover,
nav a.active { color: var(--blue-light); }

/* CTA nav button */
nav a.cta-nav {
    color: var(--blue-light);
    border: 1px solid var(--blue-light);
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}
nav a.cta-nav:hover { background: var(--blue-light); color: white; }
nav a.cta-nav.active { background: var(--blue-light); color: white; }

/* ── FOOTER ── */
footer {
    background: rgb(30, 30, 30);
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    position: relative;
    border-top: 1px solid rgba(172, 172, 172, 0.08);
}
footer p {
    font-size: 0.8rem;
    color: var(--text-mid);
    opacity: 0.4;
    margin-top: 1.4rem;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
    font-size: 0.8rem;
    color: rgba(172, 172, 172, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--blue-light); }
footer .footer-links a:nth-child(-n+2) {
    position: absolute;
    top: 3rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: rgba(172, 172, 172, 0.42);
}
footer .footer-links a:nth-child(1) { right: 11rem; }
footer .footer-links a:nth-child(2) { right: 4rem; }

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    background: white;
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2.75rem;
    border-radius: 2px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: var(--blue-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ── UTILITY ── */
.label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
}
.eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 1.5rem;
}

/* ── VIDEO MODAL ── */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.video-modal.active { display: flex; }
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
}
.video-modal-close {
    position: absolute;
    top: -3.5rem; right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.video-modal-close:hover { opacity: 1; }
#videoPlayer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
#videoPlayer div,
#videoPlayer iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

/* ── RESPONSIVE — HEADER/FOOTER ── */
@media (max-width: 1024px) {
    header { padding: 1.5rem 2rem; }
    footer {
        padding: 2.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        position: static;
    }
    footer p { margin-top: 0; }
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
    footer .footer-links a:nth-child(-n+2) {
        position: static;
    }
}

/* ── HAMBURGER MENU (MOBILE) ── */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

/* As 3 linhas do hamburger */
.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 0;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* Animação para o "X" quando está ativo */
.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.2rem 1.5rem;
    }

    .hamburger {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(38, 38, 38, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 2.5rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(172, 172, 172, 0.1);

        /* Estado inicial (escondido) */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.4s ease;
    }

    nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    nav a {
        margin-left: 0;
        font-size: 1rem;
    }
}
/* ── VIDEO BACKGROUND (HERO) ── */
.video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.video-bg video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    object-fit: cover;
    z-index: 0;
}
.video-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(51, 51, 51, 0.98) 0%,
        rgba(51, 51, 51, 0.85) 40%,
        rgba(51, 51, 51, 0.45) 75%,
        rgba(51, 51, 51, 0.15) 100%
    );
    pointer-events: none;
}
