/* Estilos Globais */
:root {
    --primary-color: #1a2f69;
    --secondary-color: #f5f0e5;
    --accent-color: #0d4d8c;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #1a2f69;
    --light-bg: #f5f5f5;
    --border-radius: 4px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fafafa; /* Cor de fundo suave */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Sombra para melhor legibilidade */
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.btn-outline:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* AnimaÃ§Ãµes */
.animate {
    /* opacity: 0; /* Removido para garantir visibilidade padrÃ£o */
    /* transform: translateY(30px); /* Removido para evitar deslocamento inicial */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Mantido caso animaÃ§Ãµes sejam reativadas */
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../images/hero-pattern-new.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 47, 105, 0.8);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--light-text);
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #ddd;
}

.about-image {
    text-align: center;
}

.office-pattern {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
}

/* Ãreas de AtuaÃ§Ã£o */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.area-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.area-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.area-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.other-areas {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.other-areas h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.member-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1.5rem;
    text-align: center;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-position {
    font-size: 0.9rem;
    opacity: 0.9;
}

.member-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left !important; /* ForÃ§a alinhamento Ã  esquerda com !important */
}

.member-description {
    margin-bottom: 1.5rem;
    text-align: left !important; /* Alinhamento Ã  esquerda explÃ­cito */
    line-height: 1.7;
}

.expertise-section {
    margin-bottom: 1.5rem;
    text-align: left !important; /* Alinhamento Ã  esquerda explÃ­cito */
}

.expertise-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    text-align: left !important; /* Alinhamento Ã  esquerda explÃ­cito */
}

.expertise-item {
    margin-bottom: 0.8rem;
    text-align: left !important; /* Alinhamento Ã  esquerda explÃ­cito */
}

.expertise-item-title {
    font-weight: 600;
    text-align: left !important; /* Alinhamento Ã  esquerda explÃ­cito */
}

.expertise-item-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: left !important; /* Alinhamento Ã  esquerda explÃ­cito */
}

.differentials {
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Reativado para empurrar contato para baixo */
    text-align: left !important; /* Alinhamento Ã  esquerda explÃ­cito */
}

.differentials-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    text-align: left !important; /* Alinhamento Ã  esquerda explÃ­cito */
}

.differential-item {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
    text-align: left !important; /* Alinhamento Ã  esquerda explÃ­cito */
}

.differential-item::before {
    content: 'â€¢';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.member-contact {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.member-contact a {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.member-contact a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Contact Section - Enhanced */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: center; /* Align items vertically */
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.8rem; /* Slightly larger icon */
    color: var(--light-text); /* White icon color */
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); /* Gradient background */
    width: 50px; /* Fixed width */
    height: 50px; /* Fixed height */
    line-height: 50px; /* Center icon vertically */
    border-radius: 50%; /* Circular shape */
    text-align: center;
    margin-right: 1.5rem; /* Increased margin */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.contact-icon:hover {
    transform: scale(1.1); /* Slight scale on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-text h3 {
    margin-bottom: 0.3rem; /* Reduced margin */
    color: var(--primary-color);
}

.contact-text p {
    margin-bottom: 0; /* Remove bottom margin from paragraph */
    line-height: 1.4; /* Adjust line height */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 47, 105, 0.1);
}

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

/* FormulÃ¡rio com melhorias visuais */
.contact-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.form-submit-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 47, 105, 0.3);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 47, 105, 0.4);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

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

/* Mensagens de feedback */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: slideInUp 0.5s ease;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message i {
    font-size: 1.2rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de carregamento */
.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Melhorias nos inputs */
.form-control {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #6c757d;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links h3 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-links i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-container,
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .hero-btns .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* TransiÃ§Ãµes de pÃ¡gina inspiradas no site Pinheiro Neto */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition.active {
    transform: translateY(0);
}

.page-transition.exit {
    transform: translateY(-100%);
}

/* Efeito de fade para seÃ§Ãµes */
.fade-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efeito de hover nos cards */
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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



/* Hero Section Button Visibility Enhancements */
.hero .btn {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); /* Sombra para destaque */
    text-shadow: none; /* Remover sombra do texto se o botÃ£o jÃ¡ tem sombra */
}

.hero .btn-outline {
    background-color: rgba(255, 255, 255, 0.1); /* Fundo levemente opaco */
    border-width: 2px;
    backdrop-filter: blur(3px); /* Efeito vidro fosco para elegÃ¢ncia */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); /* Sombra para destaque */
    text-shadow: none; /* Remover sombra do texto */
}

.hero .btn:hover {
    background-color: var(--accent-color); /* Usar cor de destaque no hover */
    color: var(--light-text);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.hero .btn-outline:hover {
    background-color: var(--light-text); /* Fundo branco sÃ³lido no hover */
    color: var(--primary-color); /* Texto escuro no hover */
    border-color: var(--light-text);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}



/* Team Section - Alinhamento forÃ§ado Ã  esquerda */
.team-member {
    background-color: #ffffff;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: left !important; /* ForÃ§a alinhamento geral do card */
}

.team-member * {
    text-align: left !important; /* ForÃ§a alinhamento de todos os elementos filhos */
}

.team-member:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.member-header {
    background-color: #2c3e50; /* Tom azul escuro mais moderno */
    padding: 1.5rem 1rem;
    text-align: center !important; /* Apenas o header permanece centralizado */
}

.member-header * {
    text-align: center !important; /* ForÃ§a centralizaÃ§Ã£o apenas no header */
}

.member-name {
    font-size: 1.4rem;
}

.member-position {
    font-size: 0.85rem;
    opacity: 0.8;
}

.member-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left !important;
}

.member-content * {
    text-align: left !important; /* ForÃ§a alinhamento Ã  esquerda de todos os elementos */
}

.member-description {
    margin-bottom: 1.5rem;
    min-height: 100px;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left !important;
}

.expertise-section {
    margin-bottom: 1.5rem;
    text-align: left !important;
}

.expertise-section * {
    text-align: left !important;
}

.expertise-title {
    font-weight: 700;
    color: #34495e;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    text-align: left !important;
}

.expertise-item {
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left !important;
}

.expertise-item * {
    text-align: left !important;
}

.expertise-item-title {
    font-weight: 600;
    color: #555;
    text-align: left !important;
}

.expertise-item-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    padding-left: 0.5em;
    text-align: left !important;
}

.differentials {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: left !important;
}

.differentials * {
    text-align: left !important;
}

.differentials-title {
    font-weight: 700;
    color: #34495e;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    text-align: left !important;
}

.differential-item {
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    text-align: left !important;
}

.differential-item::before {
    content: '\2713';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0.2rem;
}

.member-contact {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.member-contact a {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.member-contact a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}


/* Styling for the new contact links */
.contact-link {
    color: inherit; /* Inherit text color from parent */
    text-decoration: none; /* Remove underline */
    display: block; /* Make the link take up the text block */
    transition: transform 0.2s ease;
}

.contact-link:hover {
    color: var(--accent-color); /* Change color on hover */
    transform: translateX(3px); /* Slight move effect on hover */
}

.contact-link:hover .contact-text h3 {
    color: var(--accent-color); /* Change title color on hover too */
}