/* ==============================================
   VARIÁVEIS GLOBAIS & RESET
   ============================================== */
:root {
    /* Cores principais */
    --primary-color: #1a3a5f;
    --secondary-color: #c9a96e;
    --accent-color: #2c5282;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    
    /* Tipografia */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Efeitos visuais */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --section-padding: 80px 0;
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

/* ==============================================
   TIPOGRAFIA
   ============================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1.2rem;
    color: var(--gray-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 25px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-color);
}

.highlight {
    color: var(--secondary-color);
}

/* ==============================================
   BOTÕES
   ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #b89446;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
    font-size: 0.95rem;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-contato {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.btn-contato:hover {
    background-color: #b89446;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Estados dos botões */
.form-submitting .btn-primary {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.form-submitting .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==============================================
   HEADER & NAVEGAÇÃO
   ============================================== */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo principal */
.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: margin-left 0.3s ease;
}

.logo span {
    color: var(--secondary-color);
}

/* Menu de navegação */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 35px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Menu hamburguer (mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: var(--transition);
}

/* Logotipo no header ao scroll */
.header-logo-scroll {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    height: 50px;
}

.header-logo-scroll.visible {
    opacity: 1;
    visibility: visible;
}

.logo-scroll {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    min-height: 50px;
    max-width: 200px;
    transition: all 0.3s ease;
}

.header.scrolled .logo {
    margin-left: 80px;
    transition: margin-left 0.3s ease;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
    background: linear-gradient(rgba(26, 58, 95, 0.88), rgba(26, 58, 95, 0.85)), url('imagens/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 33px 0 40px;
    text-align: center;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    color: white;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 1.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Logotipo no hero */
.hero-logo {
    text-align: center;
    margin-bottom: 3px;
}

.logo-hero {
    width: 130px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    text-align: center;
    width: 100%;
}

/* ==============================================
   SEÇÃO SOBRE
   ============================================== */
.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-text p {
    font-size: 1.1rem;
}

.sobre-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Destaques na seção sobre */
.destaques {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.destaque {
    text-align: center;
    padding: 25px 15px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.destaque:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.destaque i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.destaque h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.destaque p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==============================================
   SEÇÃO EQUIPA (CARTÕES DOS ADVOGADOS)
   ============================================== */

/* Grid da equipa */
.equipa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

/* Cartão do advogado - Estrutura principal */
.advogado-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 380px; /* Aumente conforme necessário, ex: 500px, 550px, etc. */
}

.advogado-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Contêiner da foto do advogado */
.advogado-img-container {
    width: 100%;
    height: 80px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

/* Imagem do advogado */
.advogado-img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* Informações do advogado - Estrutura interna */
.advogado-info {
    padding: 25px 25px 40px; /* Aumente o padding-bottom para mais espaço abaixo do botão */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Nome do advogado */
.advogado-info h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.4rem;
}

/* Especialidade do advogado */
.advogado-especialidade {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Descrição do advogado */
.advogado-descricao {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--gray-color);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

/* Áreas de atuação do advogado */
.advogado-areas {
    margin: 10px 0 15px 0;
    min-height: 50px;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.advogado-areas-container {
    width: 100%;
}

/* Lista de áreas com checkmarks */
.areas-lista-checkmark {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    max-height: 100px;
    overflow-y: auto;
}

.areas-lista-checkmark li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    padding: 2px 0;
    padding-left: 5px;
}

.areas-lista-checkmark li .checkmark {
    color: var(--secondary-color);
    margin-right: 8px;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Scrollbar personalizada para lista de áreas */
.areas-lista-checkmark::-webkit-scrollbar {
    width: 4px;
}

.areas-lista-checkmark::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.areas-lista-checkmark::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 2px;
}

.areas-lista-checkmark::-webkit-scrollbar-thumb:hover {
    background: #b89446;
}

/* Botão "Ver Perfil Completo" */
.btn-perfil-completo {
    margin-top: auto; /* Isso empurra o botão para o final do contêiner flex */
    padding: 10px 20px;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    display: block;
    width: 100%;
    font-weight: 600;
}

.btn-perfil-completo:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Mensagem de erro no carregamento */
.erro-carregamento {
    color: #e63946;
    font-size: 0.9rem;
    font-style: italic;
}

/* ==============================================
   SEÇÃO ÁREAS DE ATUAÇÃO
   ============================================== */
#areas-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    min-height: 300px;
}

/* Cartão de área */
.area-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: cardEntrada 0.5s ease forwards;
}

@keyframes cardEntrada {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.area-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Ícone da área */
.area-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    padding-top: 30px;
    text-align: center;
}

.area-card:hover .area-icon {
    transform: scale(1.1);
}

/* Título da área */
.area-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 25px;
}

/* Conteúdo da área */
.area-conteudo {
    padding: 0 40px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Lista de serviços da área */
.area-card ul {
    list-style: none;
    text-align: left;
    margin: 0;
    flex-grow: 1;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 25px;
    padding-left: 25px;
}

.area-card li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.area-card li:before {
    content: '•';
    color: var(--secondary-color);
    font-size: 1.2rem;
    position: absolute;
    left: 10px;
    top: 0;
}

/* Descrição adicional da área */
.area-description {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 15px;
    line-height: 1.5;
    flex-shrink: 0;
    padding: 0 15px;
}

.area-observacao {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    color: #888;
    font-size: 0.85rem;
    flex-shrink: 0;
    padding: 0 35px 10px;
}

/* Estados de loading e erro das áreas */
.area-card-loading {
    grid-column: 1 / -1;
    text-align: center;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 40px 25px;
}

.area-card-error {
    grid-column: 1 / -1;
    background-color: #fff5f5;
    border-color: #e63946;
    padding: 40px 25px;
}

.btn-recarregar {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-recarregar:hover {
    background-color: var(--secondary-color);
}

/* ==============================================
   SEÇÃO CONTACTOS
   ============================================== */
.contactos-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: white;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Informações de contacto */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-card-link {
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: none;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.info-card-link:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--secondary-color);
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(201, 169, 110, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.info-card-link:hover .info-icon i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.info-content h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.info-content a {
    color: var(--accent-color);
}

.info-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Formulário de contacto */
.contacto-form h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==============================================
   SISTEMA DE NOTIFICAÇÕES
   ============================================== */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    width: 100%;
}

.notification {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Tipos de notificação */
.notification.success {
    background: linear-gradient(135deg, #e6f7e9, #d1f0d5);
    border-left: 5px solid #28a745;
    color: #155724;
}

.notification.error {
    background: linear-gradient(135deg, #ffe6e6, #f8d7da);
    border-left: 5px solid #dc3545;
    color: #721c24;
}

/* Ícone da notificação */
.notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notification.success .notification-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.notification.error .notification-icon {
    background: linear-gradient(135deg, #dc3545, #e63946);
    color: white;
}

/* Conteúdo da notificação */
.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 5px;
    line-height: 1;
    flex-shrink: 0;
}

.notification-close:hover {
    opacity: 1;
}

/* Barra de progresso da notificação */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    transition: width 0.1s linear;
}

.notification.success .notification-progress-bar {
    background: #28a745;
}

.notification.error .notification-progress-bar {
    background: #dc3545;
}

/* ==============================================
   MODAIS
   ============================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cabeçalho do modal */
.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Corpo do modal */
.modal-body {
    padding: 30px;
    line-height: 1.6;
    color: #333;
}

.modal-body h4 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.modal-body p, .modal-body ul {
    margin-bottom: 15px;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 5px;
}

.data-atualizacao {
    font-style: italic;
    color: #666;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Estado de loading do modal */
.modal-loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.modal-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ==============================================
   RODAPÉ
   ============================================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 70px 0 30px;
    position: relative;
    margin-top: 50px;
}

/* Linha decorativa no topo do rodapé */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
    height: 4px;
    background: linear-gradient(
        90deg,
        rgba(201, 169, 110, 0) 0%,
        rgba(201, 169, 110, 0.8) 20%,
        rgba(201, 169, 110, 1) 40%,
        rgba(201, 169, 110, 1) 60%,
        rgba(201, 169, 110, 0.8) 80%,
        rgba(201, 169, 110, 0) 100%
    );
    border-radius: 4px;
    box-shadow: 
        0 2px 8px rgba(201, 169, 110, 0.4),
        0 0 15px rgba(201, 169, 110, 0.2);
    z-index: 1;
}

.footer::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 420px;
    height: 6px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    border-radius: 50%;
    z-index: 0;
    filter: blur(1px);
}

/* Conteúdo do rodapé */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* Logo do rodapé */
.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

/* Links sociais */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Menu do rodapé */
.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Rodapé inferior */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 6px 0;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 8px;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    font-style: italic;
    line-height: 1.3;
}

/* ==============================================
   BOTÃO VOLTAR AO TOPO
   ============================================== */
.btn-topo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.btn-topo.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-topo:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-topo:active {
    transform: translateY(0);
}

/* ==============================================
   ANIMAÇÕES
   ============================================== */
.advogado-card,
.area-card,
.destaque {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.advogado-card.animate-in,
.area-card.animate-in,
.destaque.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================
   ESTILOS PARA PÁGINAS DE PERFIL
   ============================================== */
.perfil-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 50px 0 30px;
    margin-bottom: 30px;
    text-align: center;
}

.perfil-hero h1 {
    color: white;
    margin-bottom: 8px;
    font-size: 2.2rem;
}

.perfil-hero .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.perfil-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.perfil-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.perfil-imagem {
    flex: 0 0 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 300px;
    background-color: #f5f5f5;
    position: relative;
    max-width: 100%;
}

.perfil-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: opacity 0.5s ease;
}

.perfil-detalhes {
    flex: 1;
    min-width: 300px;
}

.perfil-detalhes h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 5px;
}

.perfil-subtitulo {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 25px;
    display: block;
}

.perfil-biografia {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.7;
}

.perfil-areas {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.perfil-areas h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.lista-areas {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px 30px;
}

.lista-areas li {
    position: relative;
    padding-left: 20px;
    color: #333;
    font-weight: 500;
}

.lista-areas li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.perfil-destaques {
    flex: 1 1 100%;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.destaque-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.destaque-icon {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.destaque-texto h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.destaque-texto p {
    margin: 0;
    color: #666;
}

.perfil-botoes {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-voltar {
    background: #6c757d;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-voltar:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-contato-perfil {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-contato-perfil:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   CORREÇÕES E ESTILOS ADICIONAIS
   ============================================== */

/* Remove a antiga mensagem do formulário */
#formMessage {
    display: none;
}

/* Força o redimensionamento correto das imagens */
img.advogado-img {
    max-width: 100%;
    height: auto;
}

/* Garante que todas as imagens dos advogados usam contain */
.advogado-card img {
    object-fit: contain;
}

/* ==============================================
   RESPONSIVIDADE
   ============================================== */

/* Tablets (1024px e abaixo) */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    .hero { 
        padding: 27px 0 30px; 
        margin-top: 70px;
    }
    
    .logo-hero {
        width: 110px;
        max-height: 93px;
    }
    
    .hero h1 {
        margin-bottom: 1rem;
    }
    
    .hero p {
        margin-bottom: 1.5rem;
    }
}

/* Tablets (900px e abaixo) */
@media (max-width: 900px) {
    .sobre-content,
    .contactos-wrapper {
        grid-template-columns: 1fr;
    }
    
    .destaques {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets e dispositivos móveis (768px e abaixo) */
@media (max-width: 768px) {
    /* Menu Hamburguer */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.5s ease;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 30px 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    /* Ajustes gerais de tipografia */
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    
    /* Hero section */
    .hero {
        padding: 23px 0 25px;
        margin-top: 85px;
        padding-top: 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .logo-hero {
        width: 90px;
        max-height: 76px;
    }
    
    .hero-logo {
        margin-bottom: 2px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.3rem;
    }
    
    .hero-buttons {
        gap: 10px;
        margin-top: 1.2rem;
    }
    
    /* Seção sobre */
    .destaques {
        grid-template-columns: 1fr;
    }
    
    /* Seção equipa */
    .equipa-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .advogado-card {
        min-height: 440px;
    }
    
    .advogado-descricao {
        -webkit-line-clamp: 3;
    }
    
    .areas-lista-checkmark {
        max-height: 80px;
    }
    
    .btn-perfil-completo {
        margin-top: 15px;
        padding: 9px 18px;
        font-size: 0.85rem;
    }
    
    /* Seção áreas */
    #areas-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .area-card {
        padding: 0;
    }
    
    .area-card h4 {
        font-size: 1.1rem;
        min-height: 2.5em;
        padding: 0 20px;
    }
    
    .area-icon {
        font-size: 2rem;
        padding-top: 20px;
        margin-bottom: 15px;
    }
    
    .area-conteudo {
        padding: 0 20px 20px;
    }
    
    .area-card ul {
        max-height: 150px;
        padding-left: 3px;
    }
    
    .area-card li {
        padding-left: 22px;
    }
    
    .area-card li:before {
        left: 8px;
    }
    
    .area-description,
    .area-observacao {
        padding: 0 10px;
    }
    
    /* Seção contactos */
    .contactos-wrapper {
        padding: 30px;
    }
    
    /* Rodapé */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Notificações */
    .notification-container {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 15px;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Botão voltar ao topo */
    .btn-topo {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Logotipo no header */
    .header-logo-scroll {
        left: 15px;
        height: 40px;
    }
    
    .logo-scroll {
        height: 40px;
    }
    
    .header.scrolled .logo {
        margin-left: 60px;
        font-size: 0.9rem;
    }
    
    /* Linhas decorativas do rodapé */
    .footer::before {
        width: 70%;
        max-width: 300px;
        height: 3px;
    }
    
    .footer::after {
        width: 75%;
        max-width: 320px;
        height: 4px;
    }
    
    /* Modais */
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    /* Rodapé compacto */
    .footer {
        padding: 30px 0 20px;
        margin-top: 40px;
    }
    
    .footer-content {
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-col h4 {
        margin-bottom: 12px;
    }
    
    .footer-col p {
        margin-bottom: 6px;
        line-height: 1.4;
    }
    
    .footer-col li {
        margin-bottom: 6px;
    }
    
    .footer-bottom {
        padding-top: 15px;
        margin-top: 15px;
        font-size: 0.85rem;
    }
    
    .footer-bottom p {
        margin: 4px 0;
        line-height: 1.3;
    }
    
    .footer-bottom a {
        margin: 0 5px;
    }
    
    .footer-info {
        font-size: 0.75rem;
        margin-top: 8px;
        line-height: 1.2;
    }
}

/* Dispositivos móveis (480px e abaixo) */
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .container {
        padding: 0 15px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    /* Hero section */
    .logo-hero {
        width: 70px;
        max-height: 59px;
    }
    
    .contactos-wrapper {
        padding: 25px 20px;
    }
    
    .hero {
        padding: 20px 0 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.7rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Seção equipa */
    .advogado-img-container {
        height: 70px;
    }
    
    .advogado-card {
        min-height: 420px;
    }
    
    .advogado-info {
        padding: 20px 15px 25px;
    }
    
    .advogado-descricao {
        -webkit-line-clamp: 2;
        margin-bottom: 15px;
    }
    
    .advogado-especialidade {
        margin-bottom: 12px;
    }
    
    .advogado-areas {
        margin-bottom: 10px;
    }
    
    .areas-lista-checkmark {
        max-height: 70px;
    }
    
    .btn-perfil-completo {
        margin-top: 15px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Seção áreas */
    #areas-container {
        grid-template-columns: 1fr;
    }
    
    .area-card h4 {
        padding: 0 15px;
    }
    
    .area-conteudo {
        padding: 0 15px 15px;
    }
    
    /* Notificações */
    .notification {
        padding: 12px;
        gap: 10px;
    }
    
    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .notification-title {
        font-size: 1rem;
    }
    
    .notification-message {
        font-size: 0.85rem;
    }
    
    /* Rodapé */
    .footer::before {
        width: 60%;
        max-width: 250px;
        height: 2.5px;
    }
    
    .footer::after {
        width: 65%;
        max-width: 270px;
        height: 3px;
    }
    
    .footer {
        padding: 25px 0 15px;
        margin-top: 30px;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
    
    .footer-info {
        font-size: 0.7rem;
    }
}

/* ==============================================
   ESTILOS ADICIONAIS PARA FEEDBACK DO FORMULÁRIO
   ============================================== */

/* Estados dos botões */
.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    animation: pulse-success 2s infinite;
}

.btn-error {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    animation: pulse-error 2s infinite;
}

@keyframes pulse-success {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

@keyframes pulse-error {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Mensagens aprimoradas */
.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.success-message i {
    color: #28a745;
    font-size: 1.3rem;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.error-message i {
    color: #dc3545;
    font-size: 1.3rem;
}

.loading-message {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.loading-message i {
    color: #17a2b8;
    font-size: 1.3rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Campos do formulário com estados */
.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
    border-color: #dc3545 !important;
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
    border-color: #28a745 !important;
}

/* Feedback em tempo real */
.validation-feedback {
    display: none;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group.invalid .validation-feedback {
    display: block;
    color: #dc3545;
}

.form-group.valid .validation-feedback {
    display: block;
    color: #28a745;
}

/* Botão de tentar novamente */
.btn-retry {
    margin-top: 10px;
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Indicador de envio no botão */
.btn-sending::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade para mensagens */
@media (max-width: 768px) {
    .success-message,
    .error-message,
    .loading-message {
        padding: 12px 15px;
        font-size: 0.95rem;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .success-message i,
    .error-message i,
    .loading-message i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .success-message,
    .error-message,
    .loading-message {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    

}