/* 
   Estilos para Magalhães & Vale Advogados Associados
   Paleta de cores: 
   - Dourado: #D4AF37
   - Azul escuro: #1A355B
   - Cinza escuro: #2F2F2F
   - Branco: #FFFFFF
*/

/* Reset e Estilos Gerais */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #2F2F2F;
    background-color: #FFFFFF;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1A355B;
}

.separator {
    width: 80px;
    height: 3px;
    background-color: #D4AF37;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: #D4AF37;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #c29e2b;
}

/* WhatsApp Botão Flutuante */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.whatsapp-button a:hover {
    transform: scale(1.1);
}

.whatsapp-button i {
    color: white;
    font-size: 28px;
}

/* Header */
#header {
    background-image: url('../imagens/headerbackground.jpg');
    background-size: cover;
    background-position: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-square {
    width: 50px;
    height: 50px;
    background-color: #D4AF37;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-right: 15px;
}

.logo-text h1 {
    color: #D4AF37;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.logo-text h2 {
    color: #1A355B;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}

/* Navegação */
#nav {
    display: flex;
    align-items: center;
}

#menu {
    display: flex;
    gap: 30px;
}

#menu a {
    color: #1A355B;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

#menu a:hover {
    color: #D4AF37;
}

#menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D4AF37;
    transition: width 0.3s ease;
}

#menu a:hover::after {
    width: 100%;
}

#menu a.btn-contato {
    background-color: #D4AF37;
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 5px;
}

#menu a.btn-contato:hover {
    background-color: #c29e2b;
}

#menu a.btn-contato::after {
    display: none;
}

#btn-mobile {
    display: none;
}

/* Hero Section com Slider */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.7);
}

.slide-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #FFFFFF;
    z-index: 1;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease 0.5s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #D4AF37;
    transform: scale(1.2);
}

/* Sobre Nós */
.sobre {
    padding: 120px 0 80px;
    background-color: #fff;
}

.sobre-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.sobre-imagem {
    flex: 1;
}

.sobre-imagem img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sobre-texto {
    flex: 1;
}

.sobre-texto h3 {
    font-size: 2rem;
    color: #1A355B;
    margin-bottom: 20px;
}

.sobre-texto p {
    margin-bottom: 20px;
    color: #2F2F2F;
}

.valores {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.valor {
    text-align: center;
    flex: 1;
    min-width: calc(50% - 15px);
}

.valor i {
    font-size: 2.5rem;
    color: #D4AF37;
    margin-bottom: 15px;
}

.valor h4 {
    font-weight: 500;
    color: #1A355B;
}

/* Áreas de Atuação */
.areas {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.areas-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.area-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 320px;
    max-width: 380px;
    transition: all 0.3s ease;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.area-icon {
    width: 80px;
    height: 80px;
    background-color: #1A355B;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
}

.area-icon i {
    font-size: 35px;
    color: #D4AF37;
}

.area-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1A355B;
}

.area-content {
    text-align: left;
    margin-bottom: 25px;
}

.area-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.area-content ul li::before {
    content: "•";
    color: #D4AF37;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.btn-saiba-mais {
    background-color: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-saiba-mais:hover {
    background-color: #D4AF37;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: #FFFFFF;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    animation: modalOpen 0.5s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #2F2F2F;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #D4AF37;
}

.modal-area-content {
    display: none;
}

.modal-area-content h3 {
    font-size: 2rem;
    color: #1A355B;
    margin-bottom: 20px;
}

.modal-img {
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
}

.modal-area-content h4 {
    color: #1A355B;
    margin: 20px 0 15px;
}

.modal-area-content ul {
    margin-bottom: 20px;
}

.modal-area-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

/* CTA Section */
.cta {
    background-color: #1A355B;
    padding: 80px 0;
    text-align: center;
    color: #FFFFFF;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contato */
.contato {
    padding: 80px 0;
}

.contato-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contato-info {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contato-item {
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.contato-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.contato-item i {
    font-size: 2rem;
    color: #D4AF37;
    margin-bottom: 15px;
}

.contato-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1A355B;
}

.contato-phones {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.phone {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.btn-whatsapp i {
    font-size: 1rem;
    margin: 0 5px 0 0;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.btn-mapa {
    display: inline-block;
    padding: 8px 15px;
    background-color: #1A355B;
    color: white;
    border-radius: 5px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-mapa:hover {
    background-color: #122642;
}

.contato-form {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
}

.contato-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #1A355B;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2F2F2F;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: #D4AF37;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.btn-submit:hover {
    background-color: #c29e2b;
}

/* Mapa */
.mapa {
    width: 100%;
    height: 450px;
}

/* Footer */
.footer {
    background-color: #1A355B;
    padding: 60px 0 20px;
    color: #FFFFFF;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo,
.footer-contato,
.footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-logo .logo-square {
    background-color: #D4AF37;
}

.footer-logo .logo-text h2 {
    color: #D4AF37;
    font-size: 18px;
}

.footer-logo .logo-text h3 {
    color: white;
    font-size: 10px;
}

.footer-contato h3,
.footer-social h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #D4AF37;
}

.footer-contato p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contato i {
    color: #D4AF37;
}

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

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #D4AF37;
    transform: translateY(-5px);
}

.social-icons i {
    color: white;
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsividade */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .slide-content h2 {
        font-size: 2.8rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

    .sobre-content {
        flex-direction: column;
    }

    .contato-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    #btn-mobile {
        display: flex;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        border: none;
        background: none;
        cursor: pointer;
        gap: 0.5rem;
        align-items: center;
    }

    #hamburger {
        width: 20px;
        border-top: 2px solid #1A355B;
        display: block;
        position: relative;
    }

    #hamburger::after,
    #hamburger::before {
        content: '';
        display: block;
        width: 20px;
        height: 2px;
        background-color: #1A355B;
        margin-top: 5px;
        transition: 0.3s;
        position: relative;
    }

    #nav.active #hamburger {
        border-top-color: transparent;
    }

    #nav.active #hamburger::before {
        transform: rotate(135deg);
        top: -7px;
    }

    #nav.active #hamburger::after {
        transform: rotate(-135deg);
        top: -9px;
    }

    #menu {
        display: block;
        position: absolute;
        width: 100%;
        top: 70px;
        right: 0;
        background-color: #f9f9f9;
        height: 0;
        overflow-y: hidden;
        visibility: hidden;
        transition: 0.6s;
        z-index: 1000;
    }

    #nav.active #menu {
        height: auto;
        visibility: visible;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    #menu a {
        padding: 1rem 0;
        margin: 0 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: block;
    }

    #menu a.btn-contato {
        margin: 1rem;
        text-align: center;
    }

    .slide-content h2 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .logo-square {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text h2 {
        font-size: 10px;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .contato-item {
        padding: 20px 15px;
    }

    .modal-content {
        padding: 20px;
    }
}