/* Reset e Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --royal-blue: #4169E1;
    --dark-blue: #1E3A8A;
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    --gray-dark: #333333;
    font-size: 16px; /* Base font size for rem calculation */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem; /* Usando rem */
}

/* Header (Mobile First) */
.header.header-hidden {
    top: -100vh; /* Move o header para fora da tela */
}

.header {
    background-color: var(--black);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--royal-blue);
    transition: top 0.3s ease-in-out; /* Adiciona transição suave para o efeito de esconder/mostrar */
}

.header .container {
    display: flex;
    /* No mobile, distribui o espaço entre o logo e os botões */
    justify-content: space-between; 
    align-items: center;
}

.nav-buttons {
    display: flex; 
    gap: 8px;
    /* Permite que os botões se ajustem em telas menores, se necessário */
    flex-wrap: wrap; 
    /* Alinha os botões à direita */
    justify-content: flex-end; 
}

.logo h1 {
    color: var(--white);
    font-size: 1.5rem; /* Usando rem */
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
}



.btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centraliza o texto/ícone no mobile */
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    /* Removido width: 100% daqui, pois agora só se aplica aos botões CTA */
}

.btn-primary {
    background-color: var(--royal-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.4);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    color: var(--white);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(221, 42, 123, 0.4);
}

/* Hero Section (Mobile First) */
.hero {
    margin-top: 3.5rem; /* Ajuste para o header minimalista (apenas logo) */
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-blue) 100%);
    padding: 4rem 1rem; /* Usando rem */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234169E1" opacity="0.1" width="1200" height="600"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem; /* Reduzido para mobile */
    font-weight: 900;
    color: var(--royal-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.125rem; /* Reduzido para mobile */
    font-weight: 300;
    color: var(--white);
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: backwards;
}

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

/* Gallery Section (Mobile First) */
.gallery {
    padding: 3rem 1rem; /* Usando rem */
    background-color: var(--black);
}

.section-title {
    text-align: center;
    font-size: 2rem; /* Reduzido para mobile */
    font-weight: 900;
    color: var(--royal-blue);
    margin-bottom: 2rem; /* Usando rem */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    /* Mobile: 1 coluna para telas muito pequenas, ou 2 colunas */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-dark) 0%, var(--royal-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    border: 2px solid var(--royal-blue);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

/* Testimonials Section (Mobile First) */
.testimonials {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--black) 100%);
}

.testimonials-grid {
    display: grid;
    /* Mobile: 1 coluna */
    grid-template-columns: 1fr; 
    gap: 1.5rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--royal-blue);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--royal-blue);
    text-align: right;
}

/* CTA Section (Mobile First) */
.cta {
    padding: 4rem 1rem;
    background-color: var(--black);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--royal-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile: Botões empilhados */
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Footer (Mobile First) */
.footer {
    background-color: var(--black);
    padding: 1.5rem 1rem;
    border-top: 2px solid var(--royal-blue);
}

.footer-content {
    display: flex;
    flex-direction: column; /* Mobile: Conteúdo empilhado */
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-content p {
    color: var(--white);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--royal-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--white);
}

/* Desktop/Tablet Styles (Min-width: 769px) */
@media (min-width: 769px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }

    /* Header */
    .header .container {
        /* No desktop, o header volta a ter o logo e os botões */
        justify-content: space-between;
        align-items: center;
    }

    .nav-buttons {
        display: flex; /* Mostra os botões no desktop */
        gap: 15px;
    }

    .btn {
        width: auto; /* Botões com largura automática no desktop */
    }

    .header .container {
        flex-direction: row; /* Desktop: Itens lado a lado */
    }

    /* Hero */
    .hero {
        margin-top: 80px; /* Volta para o margin-top original */
        padding: 7.5rem 1.25rem; /* 120px 20px */
    }

    .hero-title {
        font-size: 4rem; /* 64px */
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 1.5rem; /* 24px */
    }

    /* Gallery */
    .gallery {
        padding: 5rem 1.25rem; /* 80px 20px */
    }

    .section-title {
        font-size: 2.625rem; /* 42px */
        letter-spacing: 3px;
        margin-bottom: 3.75rem; /* 60px */
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }

    /* Testimonials */
    .testimonials {
        padding: 5rem 1.25rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.875rem;
    }

    .testimonial-card {
        padding: 2.5rem; /* 40px */
    }

    /* CTA */
    .cta {
        padding: 6.25rem 1.25rem; /* 100px 20px */
    }

    .cta-title {
        font-size: 3rem; /* 48px */
    }

    .cta-subtitle {
        font-size: 1.25rem; /* 20px */
        margin-bottom: 2.5rem; /* 40px */
    }

    .cta-buttons {
        flex-direction: row; /* Desktop: Botões lado a lado */
        gap: 1.25rem;
    }

    .btn-large {
        padding: 1.125rem 2.5rem; /* 18px 40px */
        font-size: 1.125rem; /* 18px */
    }

    /* Footer */
    .footer {
        padding: 2.5rem 1.25rem;
    }

    .footer-content {
        flex-direction: row; /* Desktop: Conteúdo lado a lado */
        justify-content: space-between;
        gap: 1.25rem;
    }
}

/* Media Query para telas Ultra-Pequenas (Ex: iPhone SE, Galaxy S5) */
@media (max-width: 380px) {
    .nav-buttons {
        /* Centraliza os botões em telas muito pequenas */
        justify-content: center;
    }
    .logo h1 {
        font-size: 1.25rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .section-title, .cta-title {
        font-size: 1.75rem;
    }
    .gallery-grid {
        /* Garante que em telas muito pequenas a galeria tenha 1 coluna */
        grid-template-columns: 1fr;
    }
}


/* Regra para ocultar o botão 'VER TRABALHOS' no mobile */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}
