@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --bege: #F5F1EB;
    --bege-claro: #FAF8F5;
    --branco: #FFFFFF;
    --texto: #1A1A1A;
    --texto-claro: #6B6B6B;
    --borda: #E8E4DD;
}

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

body {
    background: var(--bege-claro);
    font-family: 'Inter', sans-serif;
    color: var(--texto);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Banner */
.hero {
    width: 100%;
    min-height: 60vh;
    background: var(--bege);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
    margin-bottom: 80px;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--texto);
    margin-bottom: 20px;
    line-height: 1;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--texto);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Sidebar Vertical */
.vertical-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: var(--branco);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 20px;
    z-index: 100;
    border-right: 1px solid var(--borda);
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--texto);
    margin-bottom: 60px;
    text-transform: uppercase;
}

/* Seção About */
.about-section {
    max-width: 1400px;
    margin: 0 auto 100px;
    padding: 0 40px 0 140px;
    position: relative;
}

.section-content {
    background: var(--branco);
    padding: 60px 80px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--texto);
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--texto-claro);
    margin-bottom: 40px;
}

.about-text p {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-icon {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Seção Vídeos */
.videos-section {
    max-width: 1400px;
    margin: 0 auto 100px;
    padding: 0 40px 0 140px;
    display: flex;
    gap: 40px;
    position: relative;
}

.videos-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--branco);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    border-color: var(--borda);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.video-wrapper:hover video {
    opacity: 0.9;
}

/* Vídeo com play no hover */
.video-hover-play {
    position: relative;
}

.video-hover-play video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-hover-play:hover video {
    opacity: 1;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.video-hover-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--texto);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.video-card:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.video-info {
    padding: 25px;
}

.video-company {
    font-weight: 600;
    color: var(--texto);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.video-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--texto-claro);
}

.video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 3;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.video-badge span {
    font-size: 0.75rem;
}

/* Seção Stories */
.stories-section {
    max-width: 1400px;
    margin: 0 auto 100px;
    padding: 0 40px 0 140px;
    display: flex;
    gap: 40px;
    position: relative;
}

.section-sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex-shrink: 0;
}

.section-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--texto);
    text-transform: uppercase;
}

.stories-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.story-card {
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: var(--branco);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Seção Captions */
.captions-section {
    max-width: 1400px;
    margin: 0 auto 100px;
    padding: 0 40px 0 140px;
    display: flex;
    gap: 40px;
    position: relative;
}

.captions-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.caption-card {
    background: var(--branco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.caption-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.caption-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.caption-text {
    padding: 30px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--texto-claro);
}

.caption-company {
    font-weight: 600;
    color: var(--texto);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* Indicador de Carrossel */
.carousel-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-badge::before {
    content: '📷';
    font-size: 0.9rem;
}

.story-card,
.caption-card {
    position: relative;
}

/* Modal Carrossel */
.carousel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-modal.active {
    display: flex;
    opacity: 1;
}

.carousel-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.carousel-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
    z-index: 10001;
}

.carousel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    line-height: 1;
    padding: 0;
}

.carousel-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.carousel-container {
    width: 100%;
    max-width: 1400px;
    height: 80vh;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-item img,
.carousel-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.carousel-item video {
    width: 100%;
    height: 100%;
}

.carousel-item iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
}

.carousel-item > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 4rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    line-height: 1;
    padding: 0;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.3);
}

.carousel-info {
    margin-top: 20px;
    text-align: center;
    color: white;
}

.carousel-counter {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.carousel-caption {
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Loading */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 400px;
}

.loader {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.loader-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--texto);
    animation: bounce 1.4s ease-in-out infinite;
    opacity: 0.6;
}

.loader-circle:nth-child(1) {
    animation-delay: 0s;
}

.loader-circle:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.4;
    }
    40% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

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

.loading-message {
    font-size: 1rem;
    font-weight: 400;
    color: var(--texto-claro);
    text-align: center;
}

.error-container {
    text-align: center;
    padding: 60px 20px;
}

.error-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--texto);
    margin-bottom: 12px;
}

.error-subtitle {
    font-size: 0.95rem;
    color: var(--texto-claro);
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px;
    color: var(--texto-claro);
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 100px;
}

@media (max-width: 1200px) {
    .about-section,
    .videos-section,
    .stories-section,
    .captions-section {
        max-width: 100%;
        padding-left: 100px;
        padding-right: 40px;
    }

    .videos-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .stories-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .captions-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 1024px) {
    .vertical-sidebar {
        display: none;
    }

    .about-section,
    .videos-section,
    .stories-section,
    .captions-section {
        padding-left: 40px;
        padding-right: 40px;
    }

    .section-content {
        padding: 40px 40px;
    }

    .videos-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .stories-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }

    .captions-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 60px 20px 40px;
        margin-bottom: 60px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: clamp(0.75rem, 2vw, 1rem);
        letter-spacing: 2px;
    }

    .about-section,
    .videos-section,
    .stories-section,
    .captions-section {
        padding-left: 20px;
        padding-right: 20px;
        margin-bottom: 60px;
    }

    .section-content {
        padding: 30px 20px;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 25px;
    }

    .about-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .videos-section,
    .stories-section,
    .captions-section {
        flex-direction: column;
        gap: 20px;
    }

    .videos-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stories-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }

    .captions-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .video-card {
        border-radius: 12px;
    }

    .video-wrapper {
        aspect-ratio: 16 / 9;
    }

    .video-play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .video-info {
        padding: 20px;
    }

    .video-company {
        font-size: 1rem;
    }

    .video-description {
        font-size: 0.85rem;
    }

    .caption-text {
        padding: 20px;
        font-size: 0.9rem;
    }

    .caption-company {
        font-size: 1rem;
    }

    .carousel-modal-content {
        padding: 40px 10px 10px;
    }

    .carousel-container {
        height: 70vh;
        max-height: 600px;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 2.5rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 2.5rem;
    }

    .section-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
    }

    .section-label {
        writing-mode: horizontal-tb;
        text-orientation: unset;
        font-size: 0.8rem;
    }

    .social-icons {
        gap: 15px;
        flex-wrap: wrap;
    }

    .social-icon {
        font-size: 1.3rem;
    }

    .carousel-info {
        margin-top: 15px;
        padding: 0 20px;
    }

    .carousel-counter {
        font-size: 0.85rem;
    }

    .carousel-caption {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 40vh;
        padding: 40px 15px 30px;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .about-section,
    .videos-section,
    .stories-section,
    .captions-section {
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 40px;
    }

    .section-content {
        padding: 25px 15px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .videos-container,
    .stories-container,
    .captions-container {
        gap: 20px;
    }

    .stories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .story-card {
        border-radius: 8px;
    }

    .caption-card {
        border-radius: 8px;
    }

    .video-card {
        border-radius: 8px;
    }

    .video-play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .video-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .carousel-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .carousel-container {
        height: 60vh;
        max-height: 500px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .carousel-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        font-size: 2rem;
    }

    .carousel-indicators {
        gap: 8px;
        margin-top: 15px;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .section-label {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .about-text {
        font-size: 0.9rem;
    }

    .caption-text {
        padding: 15px;
        font-size: 0.85rem;
    }

    footer {
        padding: 40px 15px;
        font-size: 0.85rem;
        margin-top: 60px;
    }
}

@media (max-width: 360px) {
    .stories-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 30vh;
        padding: 40px 20px;
    }

    .carousel-container {
        height: 85vh;
    }
}
