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

:root {
    --primary-dark: #1a1f2e;
    --secondary-dark: #2c3447;
    --text-white: #ffffff;
    --text-gray: #b8c1d4;
    --bg-form: #252b3a;
    --border-color: #3d4557;
    --button-gray: #8a92a3;
    --accent-blue: #2563eb;
    --bronze: #cd7f32;
    --bronze-light: #d4a574;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== DOBRA 1 - HERO COM VÍDEO ==================== */
.hero-video {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/advogado.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.95) 0%, rgba(26, 31, 46, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-headline {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-align: center;
}

.hero-subheadline {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

.highlight-bronze {
    color: var(--bronze-light);
    font-weight: 900;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

#videoPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================== DOBRA 2 - FORMULÁRIO ==================== */
.form-section {
    background: var(--primary-dark);
    padding: 60px 20px;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-white);
}

.form-wrapper {
    max-width: 750px;
    margin: 0 auto;
    background: var(--bg-form);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #000000;
    background: var(--text-white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group select {
    color: #000000;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--text-white);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-white);
    background: var(--button-gray);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #6b7280;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #10b981;
    color: var(--text-white);
}

.form-message.error {
    display: block;
    background: #ef4444;
    color: var(--text-white);
}

/* ==================== DOBRA 3 - SOBRE ==================== */
.about-section {
    position: relative;
    background: url('../images/advogado.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 20px;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(26, 31, 46, 0.98) 0%, rgba(26, 31, 46, 0.75) 50%, rgba(26, 31, 46, 0.3) 100%);
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    max-width: 550px;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--text-white);
    border: 2px solid var(--text-white);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-contact::before {
    content: '⚖';
    font-size: 1.2rem;
}

.btn-contact:hover {
    background: transparent;
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.about-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    opacity: 0; /* Imagem já está no background */
}

/* ==================== RESPONSIVIDADE ==================== */

/* Tablet */
@media (max-width: 992px) {
    .hero-headline {
        font-size: 2rem;
        padding: 0 20px;
    }
    
    .hero-subheadline {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .about-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .about-image {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-video {
        padding: 60px 15px;
        min-height: auto;
        background-position: center right;
        background-size: cover;
    }
    
    .hero-headline {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        padding: 0 10px;
    }
    
    .hero-subheadline {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .hero-headline br {
        display: none;
    }
    
    .video-container {
        max-width: 100%;
    }
    
    .form-section {
        padding: 40px 15px;
    }
    
    .form-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .contact-form {
        gap: 1.2rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 15px;
        font-size: 1rem;
    }
    
    .about-section {
        padding: 50px 15px;
        background-position: center right;
        background-size: cover;
    }
    
    .about-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .about-text {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .btn-contact {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
    .hero-video {
        background-position: 70% center;
    }
    
    .hero-headline {
        font-size: 1.4rem;
        line-height: 1.4;
    }
    
    .hero-subheadline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-wrapper {
        padding: 25px 15px;
    }
    
    .about-section {
        background-position: 70% center;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-text {
        font-size: 0.95rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.form-wrapper,
.about-content {
    animation: fadeInUp 0.8s ease;
}
