/*
* André Patrick Advogados Associados
* Style Sheet
*/

/* ===== VARIABLES ===== */
:root {
    --azul-marinho: #0a1f3d;
    --azul-claro: #4fa3e3;
    --prata: #C0C0C0;
    --cinza-gelo: #F0F4FA;
    --branco: #ffffff;
    --cinza-escuro: #2c3e50;
    --cinza-medio: #7f8c8d;
    --cinza-claro: #ecf0f1;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--cinza-escuro);
    background-color: var(--branco);
    position: relative;
}

/* ===== MARCA D'ÁGUA ===== */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('../img/logo-andre-patrick-branca.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

main, header, footer {
    position: relative;
    z-index: 1;
}

/* ===== MAIN CONTENT ===== */
main {
    margin-top: 80px;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--azul-marinho);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 50px;
    width: auto;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--branco);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--azul-claro);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--azul-claro);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-whatsapp {
    background-color: transparent;
    color: var(--branco);
    padding: 0.5rem 0.8rem;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 45px;
}

.btn-whatsapp:hover {
    background-color: rgba(37, 211, 102, 0.2);
    border-color: #25D366;
    transform: scale(1.1);
}

.btn-whatsapp img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.btn-cliente {
    background-color: var(--azul-claro);
    color: var(--branco);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-cliente:hover {
    background-color: #3d8bc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 163, 227, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--branco);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--azul-marinho) 0%, #0d2a52 100%);
    color: var(--branco);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(79, 163, 227, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.btn-primary {
    background-color: var(--azul-claro);
    color: var(--branco);
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #3d8bc4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 163, 227, 0.3);
}

/* ===== AUTHORITY BAND ===== */
.authority-band {
    background-color: var(--cinza-gelo);
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.authority-item {
    padding: 1.5rem;
}

.authority-item h3 {
    color: var(--azul-marinho);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.authority-item p {
    color: var(--cinza-medio);
    font-size: 0.95rem;
}

/* ===== SEÇÃO SOBRE ===== */
.sobre {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sobre h2 {
    color: var(--azul-marinho);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.sobre-subtitle {
    text-align: center;
    color: var(--azul-claro);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.sobre-text h3 {
    color: var(--azul-marinho);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.sobre-text p {
    margin-bottom: 1.2rem;
    color: var(--cinza-escuro);
    line-height: 1.9;
    text-align: justify;
    font-size: 0.95rem;
}

.sobre-image {
    text-align: center;
}

.sobre-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sobre-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar {
    background-color: var(--cinza-gelo);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--azul-claro);
}

.pillar h4 {
    color: var(--azul-marinho);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pillar p {
    color: var(--cinza-escuro);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== ÁREAS DE ATUAÇÃO ===== */
.areas {
    background-color: var(--cinza-gelo);
    padding: 4rem 2rem;
}

.areas-container {
    max-width: 1200px;
    margin: 0 auto;
}

.areas h2 {
    color: var(--azul-marinho);
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.area-card {
    background-color: var(--branco);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--azul-claro);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--azul-claro) 0%, transparent 100%);
    opacity: 0.05;
    border-radius: 0 0 0 100px;
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.area-card h3 {
    color: var(--azul-marinho);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.area-card p {
    color: var(--cinza-escuro);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    text-align: justify;
}

/* ===== MÉTODO DE TRABALHO ===== */
.metodo {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.metodo h2 {
    color: var(--azul-marinho);
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.metodo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.metodo-step {
    text-align: center;
    padding: 2rem;
    background-color: var(--cinza-gelo);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.metodo-step:hover {
    background-color: var(--azul-claro);
    color: var(--branco);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--azul-claro);
    color: var(--branco);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.metodo-step:hover .step-number {
    background-color: var(--branco);
    color: var(--azul-claro);
}

.metodo-step h3 {
    color: var(--azul-marinho);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.metodo-step:hover h3 {
    color: var(--branco);
}

.metodo-step p {
    color: var(--cinza-escuro);
    font-size: 0.95rem;
    line-height: 1.6;
}

.metodo-step:hover p {
    color: var(--branco);
}

/* ===== SEÇÃO AGENDAR CONSULTA ===== */
.agendar {
    background: linear-gradient(135deg, var(--azul-marinho) 0%, #0d2a52 100%);
    color: var(--branco);
    padding: 4rem 2rem;
}

.agendar-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.agendar h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.agendar p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.agendar-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-agendar {
    background-color: var(--azul-claro);
    color: var(--branco);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-agendar:hover {
    background-color: #3d8bc4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 163, 227, 0.3);
}

.btn-agendar-whatsapp {
    background-color: #25D366;
    color: var(--branco);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-agendar-whatsapp:hover {
    background-color: #1ebd56;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-agendar-whatsapp img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ===== SEÇÃO CONTATO ===== */
.contato {
    background-color: var(--cinza-gelo);
    padding: 4rem 2rem;
}

.contato-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contato h2 {
    color: var(--azul-marinho);
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contato-item {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--azul-claro);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contato-item h3 {
    color: var(--azul-marinho);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contato-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--cinza-escuro);
}

.contato-item a {
    color: var(--azul-claro);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contato-item a:hover {
    color: var(--azul-marinho);
}

/* ===== GOOGLE MAPS ===== */
.maps-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.maps-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--branco);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: var(--cinza-medio);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--azul-marinho);
}

.modal h2 {
    color: var(--azul-marinho);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--azul-marinho);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--cinza-claro);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--azul-claro);
    box-shadow: 0 0 5px rgba(79, 163, 227, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel {
    background-color: var(--cinza-claro);
    color: var(--cinza-escuro);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: var(--cinza-medio);
    color: var(--branco);
}

.btn-submit {
    background-color: var(--azul-claro);
    color: var(--branco);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #3d8bc4;
}

/* ===== CHATBOT ===== */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--azul-claro);
    color: var(--branco);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-button:hover {
    background-color: #3d8bc4;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chatbot-button.active {
    display: none;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background-color: var(--branco);
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--azul-marinho) 0%, #0d2a52 100%);
    color: var(--branco);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--branco);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot .message-content {
    background-color: var(--cinza-gelo);
    color: var(--cinza-escuro);
    border-bottom-left-radius: 4px;
}

.message.user .message-content {
    background-color: var(--azul-claro);
    color: var(--branco);
    border-bottom-right-radius: 4px;
}

.chatbot-input-area {
    padding: 1rem;
    border-top: 1px solid var(--cinza-claro);
    display: flex;
    gap: 0.5rem;
}

.chatbot-input {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid var(--cinza-claro);
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--azul-claro);
}

.chatbot-send {
    background-color: var(--azul-claro);
    color: var(--branco);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.chatbot-send:hover {
    background-color: #3d8bc4;
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--azul-marinho);
    color: var(--branco);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(79, 163, 227, 0.2);
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

footer strong {
    color: var(--azul-claro);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .logo-container img {
        height: 40px;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--azul-marinho);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 0.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions {
        width: 100%;
        margin-top: 1rem;
        flex-direction: column;
    }

    .btn-whatsapp,
    .btn-cliente {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    main {
        margin-top: 120px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .sobre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .metodo-grid {
        grid-template-columns: 1fr;
    }

    .contato-grid {
        grid-template-columns: 1fr;
    }

    .agendar-buttons {
        flex-direction: column;
    }

    .btn-agendar,
    .btn-agendar-whatsapp {
        width: 100%;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .sobre,
    .areas,
    .metodo,
    .agendar,
    .contato {
        padding: 3rem 1rem;
    }

    .chatbot-window {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        bottom: 0;
        right: 0;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .maps-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }

    .sobre h2,
    .areas h2,
    .metodo h2,
    .agendar h2,
    .contato h2 {
        font-size: 1.8rem;
    }

    .area-card,
    .metodo-step,
    .contato-item {
        padding: 1.5rem;
    }

    .chatbot-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .chatbot-window {
        width: 100%;
        height: 100%;
    }
}
