/* 
   Arquivo: style.css
   Descrição: Estilos principais para a Landing Page Muthambo.
*/

/* --- 1. Reset Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* --- 2. Variáveis (Paleta Oficial e Fontes) --- */
:root {
    /* Paleta Oficial */
    --color-brown-light: #70523d;
    --color-orange: #ff4800;
    --color-brown-dark: #3c3830;
    --color-cream: #eedbc9;
    --color-green-dark: #006837;
    --color-green: #008444;

    /* Cores de Uso Geral */
    --color-text: var(--color-brown-dark);
    --color-bg-light: var(--color-cream);
    --color-white: #FFFFFF;

    /* Tipografia */
    --font-primary: 'AlteHaasCustom', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    /* Fallback/Texto corrido */
}

/* --- 3. Fontes Personalizadas --- */
@font-face {
    font-family: 'AlteHaasCustom';
    src: url('./assets/fonts/AlteHaasGroteskRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AlteHaasCustom';
    src: url('./assets/fonts/AlteHaasGroteskBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* --- 4. Estilos Gerais --- */
body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
a,
button {
    font-family: 'AlteHaasCustom', sans-serif;
    /* Forçando aplicação direta */
    font-weight: bold;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 5. Navbar (Glassmorphism) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
}

/* Estado da navbar quando rolar a página */
header.scrolled {
    background: rgba(60, 56, 48, 0.9);
    /* Dark Brown com transparência */
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--color-white);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 30px;
}

/* Links do menu */
nav a {
    color: var(--color-white);
    font-size: 1rem;
    position: relative;
    opacity: 0.9;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-orange);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--color-orange);
    opacity: 1;
}

/* Menu Mobile (Hambúrguer) - Inicialmente oculto no desktop */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-white);
    cursor: pointer;
}

/* --- 6. Hero Section (Vídeo Background) --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
    text-align: center;
}

/* Vídeo de fundo */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay escuro para melhorar legibilidade */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Ajuste a opacidade conforme necessário */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1,
.hero h1 span {
    font-family: 'AlteHaasCustom', sans-serif !important;
    font-weight: bold;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* --- 7. Seção Sobre --- */
.about {
    background-color: var(--color-white);
    padding: 80px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-brown-dark);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
    font-family: var(--font-secondary);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--color-cream);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brown-light);
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- 8. Seção Serviços --- */
.services {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    color: var(--color-brown-dark);
    margin-bottom: 5px;
}

.section-subtitle {
    font-family: var(--font-primary);
    color: var(--color-green);
    font-size: 1.2rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid transparent;
    cursor: default;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--color-orange);
}

.service-card.highlight {
    border: 2px solid var(--color-green);
    background-color: #f0fdf4;
    /* Verde muito claro */
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-brown-dark);
}

.service-card p {
    font-size: 1rem;
    color: #666;
    font-family: var(--font-secondary);
    line-height: 1.6;
}

/* Responsividade adicional para Sobre */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        width: 100%;
    }

    .image-placeholder {
        height: 250px;
    }
}

/* Botão CTA */
.btn-cta {
    display: inline-block;
    background-color: var(--color-orange);
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 72, 0, 0.4);
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    border: none;
    outline: none;
    cursor: pointer;
}

.btn-cta:hover {
    background-color: #e04000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 72, 0, 0.6);
}

/* --- Animações --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Menu Mobile */
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        /* Escondido */
        width: 70%;
        height: 100vh;
        background-color: var(--color-brown-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    nav ul.active {
        right: 0;
    }
}

/* --- 9. Seção Portfólio --- */
.portfolio {
    background-color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}

.portfolio h2 {
    font-size: 2.5rem;
    color: var(--color-brown-dark);
    margin-bottom: 5px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.portfolio-item {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

/* Placeholders de fundo para portfolio */
.video-bg {
    background-color: #333;
}

.photo-bg {
    background-color: #555;
}

.ai-bg {
    background-color: #777;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--color-white);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-cta {
    margin-top: 30px;
}

.btn-cta.secondary {
    background-color: transparent;
    border: 2px solid var(--color-green);
    color: var(--color-green);
}

.btn-cta.secondary:hover {
    background-color: var(--color-green);
    color: var(--color-white);
}

/* --- 10. Seção Contato --- */
.contact {
    background-color: var(--color-brown-dark);
    padding: 80px 0;
    color: var(--color-white);
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.contact-list {
    margin: 30px 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-icon:hover {
    background-color: var(--color-orange);
}

/* Formulário */
.contact-form {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-white);
    font-family: var(--font-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-orange);
}

.btn-cta.full-width {
    width: 100%;
    text-align: center;
}

/* Footer Ajuste */
footer {
    padding-top: 40px;
}

/* Responsividade Contato */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}

/* --- Animações Avançadas (Estilo Estúdio Tango) --- */

/* 1. Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.0s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Staggered Text Wrapper */
.stagger-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.stagger-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.stagger-word.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Hover Orgânico (Botões) */
.btn-cta {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--color-green);
    /* Cor do preenchimento ao passar o mouse */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-cta:hover::before {
    width: 300%;
    height: 300%;
}

.btn-cta:hover {
    color: var(--color-white);
    /* Garante contraste */
    box-shadow: 0 8px 25px rgba(0, 132, 68, 0.4);
    /* Sombra verde */
}

/* 4. Parallax */
.parallax-element {
    transition: transform 0.1s linear;
    /* Movimento fluido sem delay excessivo */
    will-change: transform;
}