/* ================================
   HERO SECTION
================================ */
.hero {
    height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transform: translateZ(0);
    transition: opacity 1.5s ease-in-out; /* Duração e suavidade da transição */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.489), rgba(0, 0, 0, 0.445));
    z-index: -1;
}

.tagline {
    color: var(--accent-color);
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content img {
    width: 600px;
    max-width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 700px;
}

.hero-content p {
    font-size: 2.0rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #ddd;
    text-align: center;
    margin-top: -40px;
    font-style: italic;
}

.hero-btns {
    display: flex;
    gap: 15px;
}


/* ================================
   TRUST BAR
================================ */
.trust-bar {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-bar p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logos-grid img {
    height: 50px;
    opacity: 0.6;
    filter: grayscale(100%) brightness(200%);
    transition: opacity .3s, filter .3s, transform .3s;
}

.logos-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}


/* ================================
   PORTFOLIO MOSAIC
================================ */
.portfolio-section {
    padding-bottom: 120px;
}

.portfolio-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.header-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 20px auto;
}

.portfolio-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.portfolio-cols {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.col-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    width: 100%;
    border: 1px solid var(--border-color);
    transition: transform .4s ease, box-shadow .4s ease;
}

.h-tall { height: 400px; }
.h-short { height: 240px; }

.card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    will-change: transform;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13,27,42, 0.92) 0%,
        rgba(13,27,42, 0.45) 50%,
        transparent 95%
    );
    opacity: 0.9;
    transition: opacity 0.3s;
}

.card-details {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 25px;
    width: 100%;
    z-index: 2;
}

.card-details h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.card-details p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.9;
}

/* Hovers */
.products-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.products-card:hover .card-bg { transform: scale(1.08); }
.products-card:hover .card-overlay { opacity: 0.7; }

@media (max-width: 768px) {
    .hero-content p {
        margin-top: 2px;
    }
    .portfolio-section {
    padding-bottom: 50px;
}
}

@media (max-width: 900px) {
    .h-tall { height: 320px; }
    .h-short { height: 200px; }
}

@media (max-width: 600px) {
    .portfolio-cols {
        flex-direction: column;
    }

    .h-tall, .h-short {
        height: 250px;
    }
}
