/* ============================================================
   PAR VIDEOGRAFIA — index.css
   CSS específico da homepage
   ============================================================ */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 4rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(9, 65, 103, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 9rem);
    color: white;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--blue-light);
    margin-bottom: 3rem;
    max-width: 900px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 3rem;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-cta a {
    color: var(--blue-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    border-bottom: 2px solid var(--blue-light);
    padding-bottom: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.hero-cta a:hover {
    color: white;
    border-color: white;
}

.hero-cta span {
    color: var(--text-mid);
    font-weight: 400;
}

.hero-tags {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(172, 172, 172, 0.2);
    animation: fadeInUp 1s ease-out 1s both;
}

.hero-tags .label {
    color: var(--text-mid);
    opacity: 0.6;
}

/* Sections */
section {
    padding: 8rem 4rem;
    position: relative;
}

.section-alt {
    background: var(--bg-light);
    color: var(--bg-dark);
}

.section-alt h2,
.section-alt h3,
.section-alt p {
    color: var(--bg-dark);
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.9;
    max-width: 800px;
}


/* Strategy Block */
.strategy-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
    margin-top: 4rem;
}

.strategy-statement {
    text-align: center;
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(51, 51, 51, 0.15);
}

.strategy-statement p {
    font-size: 1.75rem;
    font-weight: 700;
    color: rgb(51, 51, 51);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    letter-spacing: -0.5px;
}

/* Brands Block */
.brands-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.brands-intro h2 { margin-bottom: 1rem; }
.brands-intro p { font-size: 1rem; opacity: 0.7; }

/* Brands Carousel */
.brands-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brands-carousel-wrapper::before,
.brands-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 2;
}
.brands-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
}
.brands-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-dark) 0%, transparent 100%);
}

.brands-carousel-track {
    display: flex;
    animation: brandScroll 40s linear infinite;
}
.brands-carousel-track:hover {
    animation-play-state: paused;
}

/* Segunda linha — direção oposta */
.brands-carousel-track--reverse {
    animation: brandScrollReverse 40s linear infinite;
    border-top: 1px solid rgba(172, 172, 172, 0.05);
}
.brands-carousel-track--reverse:hover {
    animation-play-state: paused;
}

@keyframes brandScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes brandScrollReverse {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.brand-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 180px;
    height: 110px;
    padding: 1.5rem 2rem;
    border-right: 1px solid rgba(172, 172, 172, 0.07);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.brand-logo-item:hover {
    opacity: 0.75;
    transform: scale(1.06);
}
.brand-logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .brand-logo-item {
        width: 140px;
        height: 90px;
        padding: 1rem 1.25rem;
    }
    .brands-carousel-wrapper::before,
    .brands-carousel-wrapper::after {
        width: 50px;
    }
}

/* Projects Block */
.projects-section { padding: 0 !important; }
.projects-header { padding: 8rem 4rem 4rem; }
.projects-footer { padding: 4rem 4rem 8rem; }
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0; margin: 0; padding: 0;
}

.project-item {
    position: relative;
    width: 100%;
    height: 500px;
    background: rgb(60, 60, 60);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.project-item:hover { transform: scale(1.005); }

.project-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.65);
    transition: background 0.4s ease;
    z-index: 1;
}

.project-item:hover .project-overlay { background: rgba(0, 0, 0, 0.35); }

.project-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; opacity: 0.9;
    transition: all 0.3s ease;
}

.project-item:hover .project-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.project-play svg { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)); }

.project-title-box {
    position: absolute;
    bottom: 0; left: 0;
    padding: 3rem 4rem;
    z-index: 2;
}

.project-title-box h3 {
    font-size: 2.5rem; font-weight: 700;
    color: white; margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.project-title-box p {
    font-size: 1.125rem; font-weight: 400;
    color: rgba(255, 255, 255, 0.85); margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Project thumbnails */
.project-item:nth-child(1) { background-image: url('../img/projects/projeto1.jpg'); }
.project-item:nth-child(2) { background-image: url('../img/projects/projeto4.jpg'); }
.project-item:nth-child(3) { background-image: url('../img/projects/projeto2.jpg'); }
.project-item:nth-child(4) { background-image: url('../img/projects/projeto3.jpg'); }

.projects-divider {
    width: 100%;
    max-width: 1400px;
    margin: 4rem auto 0;
    border-top: 1px solid rgba(51, 51, 51, 0.15);
}

/* Narrative Block */
.narrative-block {
    /* height calculado dinamicamente por JS: N * stepSize + 100vh */
    position: relative;
    background: var(--bg-dark);
}

.narrative-scroll-container {
    position: sticky; top: 0; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; /* confina frases que escalam para fora durante saída */
    z-index: 2; background: var(--bg-dark);
}

/* Efeitos decorativos confinados ao container sticky (não fixed global) */
.narrative-scroll-container::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
    opacity: 0.3; pointer-events: none; z-index: 0;
}

.narrative-scroll-container::after {
    content: ''; position: absolute; top: 0; left: -30%;
    width: 60%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(9, 65, 103, 0.08) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

.narrative-phrase {
    position: absolute; max-width: 900px; width: 100%;
    padding: 0 4rem; text-align: center;
    opacity: 0; transform: scale(0.92);
    will-change: transform, opacity;
    pointer-events: none;
    /* Sem CSS transitions — toda a animação é controlada via RAF em JS */
}

.narrative-phrase h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700; letter-spacing: -1px; margin: 0;
}

.narrative-phrase p {
    font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.6;
    color: rgba(172, 172, 172, 0.85); font-weight: 400; margin: 0;
}

.narrative-phrase .final-phrase {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: rgba(255, 255, 255, 0.9); font-weight: 600;
}

.narrative-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    z-index: 3;
    color: rgba(172, 172, 172, 0.72);
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.narrative-scroll-hint.is-hidden {
    opacity: 0;
}

.narrative-scroll-hint__arrow {
    font-size: 1.1rem;
    line-height: 1;
    animation: narrativeHintBounce 1.8s ease-in-out infinite;
}

.narrative-scroll-hint__text {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@keyframes narrativeHintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Final Block */
.final-block {
    text-align: center; padding: 10rem 4rem;
    background: var(--blue-dark);
}

.final-block h2 {
    font-size: clamp(3rem, 6vw, 5rem); color: white;
    margin-bottom: 1.5rem; font-weight: 700;
}

.final-block h3 {
    font-size: clamp(2rem, 4vw, 3.5rem); color: var(--text-mid);
    margin-bottom: 1rem; font-weight: 600;
}

.final-block p {
    font-size: 1.5rem; color: var(--blue-light);
    margin-bottom: 3rem; font-weight: 500;
}

.final-cta {
    display: inline-block; color: var(--blue-light);
    text-decoration: none; font-weight: 600; font-size: 1.5rem;
    border-bottom: 3px solid var(--blue-light); padding-bottom: 6px;
    transition: all 0.3s ease;
}

.final-cta:hover { color: white; border-color: white; transform: translateY(-3px); }

@media (max-width: 1024px) {
    .hero, section { padding: 6rem 2rem; }
    .strategy-block { grid-template-columns: 1fr; gap: 3rem; }
    .par-method { grid-template-columns: 1fr; }
    .projects-header { padding: 6rem 2rem 3rem; }
    .projects-footer { padding: 3rem 2rem 6rem; }
    .project-item { height: 350px; }
    .project-title-box { padding: 2rem; }
    .project-title-box h3 { font-size: 1.75rem; }
    .project-title-box p { font-size: 0.9rem; }
}

@media (max-width: 768px) {
    .hero-cta { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .final-block { padding: 6rem 2rem; }
    .narrative-scroll-hint { bottom: 1.5rem; }
    .narrative-scroll-hint__text { font-size: 0.62rem; }
}
