:root {
    --primary-color: #1a365d;
    --secondary-color: #2d5a87;
    --accent-color: #d4af37;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M0,800Q100,900 200,800T400,700Q500,600 600,700T800,800Q900,700 1000,800V1000H0Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.3);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Sobre Section */
.sobre {
    background: var(--light-gray);
}

.sobre-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.sobre-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.sobre-text p:last-child {
    margin-bottom: 0;
}

.sobre-stats {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.stat-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-item .stat-icon {
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.stat-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.stat-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.stat-label {
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 400;
}

.valores-principais {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.valor-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.valor-icon {
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.valor-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.valor-card p {
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .sobre-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .valores-principais {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }

    .sobre-stats {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .valor-card {
        padding: 30px 25px;
    }

    .stat-item {
        padding: 30px 25px;
    }

    .sobre-stats {
        gap: 30px;
    }

    .sobre-content {
        margin-bottom: 20px;
    }

    .valores-principais {
        margin-top: 20px;
    }

    /* Centraliza a foto do membro */
.membro-foto {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 220px; /* mantém altura proporcional ao card */
}

/* Garante centralização dos cards em telas pequenas */
@media (max-width: 768px) {
    .equipe-grid {
        justify-items: center;
    }
    .membro-card {
        margin-left: auto;
        margin-right: auto;
    }
}
}

/* Serviços Section */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.servico-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.servico-icon {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.servico-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.servico-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    background: var(--light-gray);
}

.portfolio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.portfolio-chart {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.portfolio-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.metric-card h4 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.metric-period {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Depoimentos Section */
.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.depoimento-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.depoimento-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: serif;
}

.depoimento-content {
    margin-bottom: 30px;
}

.depoimento-content p {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}

.depoimento-author h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.depoimento-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Equipe Section */
.equipe {
    background: var(--light-gray);
}

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.membro-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.membro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.membro-foto {
    height: 450px;
    overflow: hidden;
}

/* Remover centralização forçada em telas pequenas */
@media (max-width: 768px) {
    .equipe-grid {
        grid-template-columns: 1fr;
        /* Remover justify-items: center; */
    }
    .membro-card {
        margin-left: 0;
        margin-right: 0;
        /* Remover margin auto */
    }
    .membro-foto {
        display: block;
        justify-content: unset;
        align-items: unset;
    }
}

/* Equipe Section - cards responsivos */
@media (max-width: 768px) {
    .equipe-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .membro-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .membro-foto {
        height: 220px;
    }
}

/* Equipe Section - aumenta a altura dos cards em 50% */
.membro-card {
    min-height: 450px; /* exemplo: se antes era 300px, agora é 450px */
}

/* Para garantir que a foto acompanhe o aumento */
.membro-foto {
    height: 300px; /* ajuste proporcional à altura do card */
}

/* Equipe Section - aumenta a altura dos cards em mais 50% */
.membro-card {
    min-height: 675px; /* 450px + 50% = 675px */
}

.membro-foto {
    height: 450px; /* 300px + 50% = 450px */
    overflow: hidden;
}

/* Insights Section */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.insight-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.insight-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.insight-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.insight-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.insight-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.insight-link:hover {
    color: var(--primary-color);
}

/* Contato Section */
.contato {
    background: var(--light-gray);
}

.contato-content {
    display: flex;
    justify-content: center;
}

.contato-info {
    max-width: 800px;
    width: 100%;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.footer-section {
    min-width: 0;
    max-width: 100%;
    padding-right: 32px; /* Espaço interno à direita para separar visualmente */
}

.footer-section:last-child {
    padding-right: 0;
}

/* Remove espaço extra se houver menos de 3 seções */
.footer-content > .footer-section {
    flex-basis: 0;
    flex-grow: 1;
}

/* Para telas pequenas, empilha as seções */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 32px;
        align-items: stretch;
    }
    .footer-section {
        max-width: 100%;
        min-width: 0;
        flex: unset;
        padding-right: 0;
    }
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    font-size: 0.95em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    margin-right: 16px;
    color: #007bff;
    text-decoration: underline;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 250px;
        text-align: center;
    }

    .sobre-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .equipe-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        display: flex;
        flex-wrap: wrap;
        gap: 32px;
        justify-content: flex-start;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-section {
        min-width: 220px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    .servico-card,
    .depoimento-card,
    .insight-card {
        padding: 25px 20px;
    }

    .stat-item {
        padding: 25px 20px;
    }
}

/* Centraliza e aumenta a altura da foto dos membros em dispositivos móveis */
@media (max-width: 768px) {
    .membro-foto {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        height: 99%; /* 66% + 50% = 99% do card */
        min-height: 220px;
        max-height: 450px;
        width: 100%;
    }
    .membro-foto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }
    .membro-card {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
        min-height: 495px; /* 330px + 50% = 495px */
        display: flex;
        flex-direction: column;
    }
}