/* ============================================
   CLONE - viamandadooab.com.br
   Advogado Guilherme Trentin
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000;
    --color-dourado: #977944;
    --color-dourado-escuro: #8B6D3A;
    --color-dourado-hover: #A88B55;
    --color-branco: #FFFFFF;
    --color-preto-texto: #000000;
    --color-cinza-medio: #666666;
    --color-fundo-form: #F5F5F5;
    --color-input-bg: #F5F5F5;
    --color-input-text: #333333;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-branco);
    color: var(--color-preto-texto);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* === HEADER === */
header {
    background-color: var(--color-black);
    padding: 30px 0;
    text-align: center;
}

.header-container {
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: auto;
    height: 111px;
    object-fit: contain;
    object-position: center;
    display: block;
    max-width: 100%;
}

/* === BARRA DOURADA DIVISORA === */
.divisor-dourado {
    width: 100%;
    height: 10px;
    background-color: var(--color-dourado);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-branco);
    padding: 100px 20px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--color-preto-texto);
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: 0;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--color-preto-texto);
    line-height: 1.5;
    margin-bottom: 30px;
}

.hero-divider {
    width: 30%;
    max-width: 300px;
    height: 4px;
    background-color: var(--color-dourado);
    margin: 0 auto 35px;
}

.hero-text {
    font-family: var(--font-secondary);
    font-size: clamp(0.95rem, 1.7vw, 1.1rem);
    color: var(--color-preto-texto);
    line-height: 1.7;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-cta-text {
    font-family: var(--font-secondary);
    font-size: clamp(0.95rem, 1.7vw, 1.1rem);
    font-weight: 700;
    color: var(--color-preto-texto);
    margin-bottom: 35px;
    line-height: 1.5;
}

/* Botão CTA como imagem */
.btn-cta-img {
    display: inline-block;
    max-width: 280px;
    width: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.btn-cta-img:hover {
    transform: scale(1.05);
}

.btn-cta-img img {
    width: 100%;
    height: auto;
}

/* === ÁREAS DE ATUAÇÃO === */
.areas {
    padding: 80px 20px;
    background-color: var(--color-black);
    text-align: center;
}

.areas-title {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 50px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.area-card {
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.area-card:hover {
    transform: scale(1.03);
}

.area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--color-dourado);
}

.area-card-text {
    font-family: var(--font-primary);
    font-size: clamp(0.8rem, 1.3vw, 0.95rem);
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    margin-top: 12px;
    text-align: center;
}

/* Card wrapper que inclui imagem + texto */
.area-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.area-card-wrapper .area-card {
    width: 100%;
}

/* === SOBRE O ADVOGADO === */
.sobre {
    padding: 80px 20px;
    background-color: var(--color-dourado);
    text-align: center;
}

.sobre-container {
    max-width: 700px;
    margin: 0 auto;
}

.sobre-foto {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    margin: 0 auto 25px;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.sobre-nome {
    font-family: 'Georgia', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-branco);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.sobre-texto {
    font-family: var(--font-primary);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    color: var(--color-branco);
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.8;
    font-weight: 400;
}

.sobre .btn-cta-img {
    max-width: 280px;
}

/* === MAPA === */
.mapa {
    padding: 0;
    width: 100%;
    height: 400px;
    background-color: var(--color-black);
}

.mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* === CONTATO === */
.contato {
    padding: 80px 20px;
    background-color: var(--color-branco);
    text-align: center;
}

.contato-title {
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--color-preto-texto);
    margin-bottom: 25px;
}

.contato-divider {
    width: 25%;
    max-width: 120px;
    height: 4px;
    background-color: var(--color-dourado);
    margin: 0 auto 30px;
}

.contato-info {
    max-width: 600px;
    margin: 0 auto 40px;
}

.contato-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.contato-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contato-item-text {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-preto-texto);
}

.contato-item-text a {
    color: #555555;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contato-item-text a:hover {
    color: var(--color-dourado);
}

.contato-item-text strong {
    color: var(--color-preto-texto);
    font-weight: 700;
    font-size: 18px;
}

.contato-endereco {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #888888;
    line-height: 1.6;
    font-weight: 400;
}

/* === FORMULÁRIO === */
.formulario {
    max-width: 600px;
    margin: 0 auto;
}

.formulario-title {
    font-family: var(--font-primary);
    font-size: clamp(1.3rem, 2.8vw, 1.8rem);
    font-weight: 700;
    color: var(--color-preto-texto);
    margin-bottom: 30px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-preto-texto);
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-input-bg);
    border: 1px solid #E0E0E0;
    border-radius: 3px;
    color: var(--color-input-text);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-dourado);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #AAAAAA;
}

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

.btn-enviar {
    display: inline-block;
    background-color: var(--color-dourado);
    color: var(--color-branco);
    padding: 14px 45px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-enviar:hover {
    background-color: var(--color-dourado-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(151, 121, 68, 0.3);
}

.form-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(0, 176, 144, 0.2);
    color: #00b090;
    border: 1px solid #00b090;
}

.form-message.error {
    display: block;
    background-color: rgba(252, 81, 133, 0.2);
    color: #fc5185;
    border: 1px solid #fc5185;
}

/* === INSTAGRAM === */
.instagram-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 10px;
}

.instagram-divider {
    width: 80px;
    height: 3px;
    background-color: var(--color-dourado);
    margin: 0 auto 20px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid var(--color-dourado);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    background-color: var(--color-dourado);
    transform: scale(1.1);
}

.instagram-link svg {
    width: 22px;
    height: 22px;
    fill: var(--color-dourado);
    transition: fill 0.3s ease;
}

.instagram-link:hover svg {
    fill: var(--color-branco);
}

/* === FOOTER === */
footer {
    padding: 35px 20px;
    background-color: var(--color-black);
    text-align: center;
}

footer p {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--color-branco);
    margin-bottom: 5px;
}

footer p strong {
    font-weight: 700;
}

footer a {
    color: var(--color-cinza-medio);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-branco);
}

/* === WHATSAPP FLUTUANTE === */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #FFFFFF;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
}

/* === RESPONSIVO === */
@media (max-width: 1024px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 0;
    }

    .logo img {
        width: 100%;
        max-width: 600px;
        height: auto;
        aspect-ratio: 611/111;
    }

    .hero {
        padding: 60px 20px;
    }

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

    .areas {
        padding: 60px 20px;
    }

    .areas-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .area-card-text {
        font-size: 0.75rem;
    }

    .sobre {
        padding: 60px 20px;
    }

    .sobre-foto {
        width: 200px;
        height: 200px;
    }

    .contato {
        padding: 60px 20px;
    }

    .mapa {
        height: 300px;
    }

    .btn-cta-img {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 611/111;
    }

    .areas-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .area-card {
        aspect-ratio: 4 / 3;
    }

    .contato-item {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
