@import url('../styles/base.css');
@import url('../styles/components.css');

tml {
    scroll-behavior: smooth;
}

/* Ajuste do container principal */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}

.section {
    scroll-margin-top: 5rem;
    padding: 0 1rem;
}

.shadow-custom {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.gradient-bg {
    background: linear-gradient(135deg, #2B6D82 0%, #1d4d5d 100%);
    margin-bottom: 0;
    padding-bottom: 4rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.gradient-bg .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.metrics-gradient {
    background: linear-gradient(135deg, #1d4d5d 0%, #2B6D82 100%);
}


/* Estilos para a galeria de clientes */
.client-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.client-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.client-card:hover .client-image {
    transform: scale(1.05);
}

.client-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(43, 109, 130, 0.9), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.client-card:hover .client-overlay {
    transform: translateY(0);
}

.client-name {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.client-location {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Estilo para a seção Sobre Nós com paralaxe */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 3rem;
    color: white;
    text-align: center;
    margin: 0 auto;
}

.parallax-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.parallax-content h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2B6D82;
}

.parallax-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Fix para dispositivos móveis onde o background-attachment: fixed não funciona bem */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* Hero section com imagem de fundo responsiva */
.hero-bg {
    background-image: url('../assets/inicio.webp');
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #f8f9fa; /* Fallback color while image loads */
    position: relative;
    min-height: 500px;
    width: 100%;
    will-change: transform; /* Optimize for animations */
    transform: translateZ(0); /* Force GPU acceleration */
}
@media (max-width: 768px) {
    .hero-bg {
        min-height: 320px;
    }
}
.hero-overlay {
    background: rgba(20, 40, 60, 0.55);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.hero-bg > .container {
    position: relative;
    z-index: 2;
}

main {
    overflow: hidden;
}


body {
    overflow-x: hidden;
    width: 100%;
}

/* Side Menu Styles */
#side-menu {
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
}

#side-menu > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#side-menu nav {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
}

#side-menu nav a {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#side-menu nav a:hover {
    background-color: rgba(43, 109, 130, 0.1);
    transform: translateX(5px);
}

#side-menu nav a svg {
    transition: transform 0.3s ease;
}

#side-menu nav a:hover svg {
    transform: scale(1.1);
}

#menu-overlay {
    backdrop-filter: blur(2px);
}

/* Smooth transitions */
#side-menu, #menu-overlay {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
} 