/* ===== HERO SECTION ===== */
.diviflex-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: clamp(40px, 6vh, 0px) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

.diviflex-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 45, 85, 0.85) 0%,
            rgba(0, 0, 0, 0.75) 50%,
            rgba(0, 45, 85, 0.85) 100%);
    z-index: 1;
}

.diviflex-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-logo {
    animation: fadeInDown 1s ease;
}

.hero-logo-img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-brand {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
    color: white;
    letter-spacing: 4px;
    padding: 8px 24px;
    display: inline-block;
    animation: fadeInUp 1s ease 0.1s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    max-width: 800px;
    margin: 20px auto;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.hero-subtitle-text {
    display: inline;
}

.subtitle-line,
.title-line {
    display: inline;
    font-size: inherit;
    font-weight: 500;
    color: var(--primary);
    margin: 0;
    padding: 0;
    background: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title-line {
    color: var(--secondary);
}

/* ===== SEÇÃO PRODUTOS E SOLUÇÕES ===== */
.diviflex-products {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--surface) 0%, var(--muted) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    height: 450px;
    perspective: 2000px;
    cursor: pointer;
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 450px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card-front,
.product-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

/* Frente do Card */
.product-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2;
}

/* Overlay escuro sobre as imagens */
.product-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: background 0.3s ease;
}

.product-card:hover .product-card-front::before {
    background: rgba(0, 0, 0, 0.4);
}

.product-card-front > * {
    position: relative;
    z-index: 2;
}

/* Imagens de fundo específicas */
.product-card-front.epis {
    background-image: url('../../src/img/epi.png');
}

.product-card-front.maquinas {
    background-image: url('../../src/img/tools.jpg');
}

.product-card-front.insumos {
    background-image: url('https://images.unsplash.com/photo-1553413077-190dd305871c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.product-card-front.suprimentos {
    background-image: url('../../src/img/cleaning.jpg');
}

.product-card-front.eletricos {
    background-image: url('https://images.unsplash.com/photo-1621905251918-48416bd8575a?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.product-card-front.escritorio {
    background-image: url('../../src/img/office-supplies.jpg');
}

.product-card-front > * {
    position: relative;
    z-index: 2;
}

.product-icon-wrapper {
    position: relative;
    margin-bottom: 25px;
    z-index: 2;
}

.product-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.product-card-front h4 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.product-card-front p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
    max-width: 280px;
}

.product-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 2;
}

.product-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Verso do Card */
.product-card-back {
    background: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1;
}

.back-content {
    height: 450px;
    display: flex;
    flex-direction: column;
    padding: 30px 25px;
    background: white;
    overflow-y: auto;
}

.product-card-back h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
    padding-bottom: 10px;
    position: relative;
}

.product-card-back h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex: 1;
    overflow-y: auto;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-features li i {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.product-features li span {
    color: black;
    font-size: 0.95rem;
    line-height: 1.4;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 8px 16px rgba(233, 113, 19, 0.3);
    cursor: pointer;
}

.product-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 95, 172, 0.4);
}

.product-btn:hover i {
    transform: translateX(5px);
}

/* ===== SEÇÃO NOSSA ATUAÇÃO ===== */
.diviflex-numbers {
    padding: 60px 0;
    background: var(--background);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.number-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.number-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px var(--shadow, rgba(0, 0, 0, 0.1));
}

.number-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.number-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.number-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== SEÇÃO NOSSA ESPECIALIZAÇÃO ===== */
.diviflex-values {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: var(--surface);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 30px;
    border-radius: 24px;
}

.value-feature {
    display: flex;
    gap: 25px;
    padding: 35px;
    background: var(--background);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.value-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.value-feature:hover::before {
    transform: translateX(0);
}

.feature-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: right;
}

.value-feature:hover .feature-number {
    transform: scale(1.1);
}

.feature-content {
    flex: 1;
    position: relative;
}

.feature-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    transition: color 0.3s ease;
}

.value-feature:hover .feature-content p {
    color: var(--text);
}

/* ===== SEÇÃO MANTRA ===== */
.diviflex-mantra {
    padding: 20px 0;
    background: var(--surface);
}

.mantra-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mantra-text {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.mantra-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-line {
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.author-name {
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* ===== SEÇÃO FAZEMOS PARTE ===== */
.diviflex-group {
    padding: 60px 0;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.group-content {
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.group-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.group-description strong {
    color: var(--primary);
    font-weight: 700;
}

.logo-grid {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px;
}

.logo-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-row:first-child .group-logo-item {
    flex: 1 1 0;
    min-width: 0;
}

.logo-row.centered {
    justify-content: center;
    gap: 20px;
}

.logo-row.centered .group-logo-item {
    width: calc(33.333% - 14px);
    flex: 0 0 auto;
    max-width: calc(33.333% - 14px);
}

.group-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px 15px;
    background: var(--surface);
    border-radius: 16px;
    font-weight: 700;
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    min-height: 180px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
}

.group-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.group-logo-image-container {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.group-logo-img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
    padding: 5px;
    position: relative;
    z-index: 1;
    display: block;
}

.group-logo-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s ease;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    max-width: 100%;
    word-break: break-word;
}

.group-logo-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 8px 20px var(--shadow);
}

.group-logo-item:hover .group-logo-img {
    transform: scale(1.05);
}

.group-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 15px 25px;
    color: white;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.group-badge i {
    font-size: 1.3rem;
}

/* ===== SEÇÃO CONVITE ===== */
.diviflex-invite {
    padding: 80px 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.invite-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.invite-heading {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.invite-heading span {
    color: var(--primary);
    display: block;
}

.invite-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
    color: var(--text);
}

.invite-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.invite-btn-primary {
    background: white;
    color: var(--secondary);
    border: 2px solid white;
    padding: 15px 35px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.invite-btn-primary:hover {
    background: transparent;
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.invite-btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 35px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.invite-btn-secondary:hover {
    color: var(--text);
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text, #212529);
    letter-spacing: 4px;
}

.footer-tagline {
    color: var(--text-light, #6c757d);
    font-size: 1rem;
}

/* ===== RESPONSIVIDADE ===== */

/* Telas grandes (até 1200px) */
@media screen and (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Telas médias (até 992px) */
@media screen and (max-width: 992px) {
    .story-grid,
    .group-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-content,
    .group-text {
        padding-right: 0;
        text-align: center;
    }

    .values-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .value-feature {
        padding: 30px;
    }

    .feature-number {
        font-size: 3rem;
        min-width: 60px;
    }

    .logo-grid {
        max-width: 500px;
        margin: 0 auto;
    }

    .media-collage {
        max-width: 600px;
        margin: 0 auto 25px;
    }
}

/* Tablets (até 768px) */
@media screen and (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .numbers-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .value-feature {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .invite-actions {
        flex-direction: column;
        align-items: center;
    }

    .invite-btn-primary,
    .invite-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .media-collage {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .item-1,
    .item-2,
    .item-3 {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }

    .media-badge {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 90%;
        max-width: 350px;
    }

    .product-card,
    .product-card-inner,
    .product-card-front,
    .product-card-back,
    .back-content {
        height: 420px;
    }

    .product-card-front h4 {
        font-size: 1.8rem;
    }

    .product-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .values-grid {
        gap: 20px;
        padding: 20px;
    }

    .value-feature {
        padding: 25px;
    }

    .feature-number {
        font-size: 2.5rem;
        min-width: 50px;
    }

    .feature-content h4 {
        font-size: 1.3rem;
    }

    .group-logo-item {
        min-height: 100px;
        padding: 20px;
    }

    .group-logo-img {
        width: 60px;
        height: 60px;
    }

    .group-badge {
        padding: 12px 20px;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 280px;
    }
}

/* Mobile (até 576px) */
@media screen and (max-width: 576px) {
    .hero-content {
        padding: 0 15px;
    }

    .hero-brand {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .media-badge {
        padding: 10px 20px;
        font-size: 0.85rem;
        gap: 10px;
    }

    .story-quote {
        padding: 20px;
    }

    .story-quote p {
        font-size: 1rem;
    }

    .product-card,
    .product-card-inner,
    .product-card-front,
    .product-card-back,
    .back-content {
        height: 400px;
    }

    .back-content {
        padding: 20px 15px;
    }

    .product-features li {
        gap: 10px;
        padding: 10px 5px;
    }

    .product-features li i {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .product-features li span {
        font-size: 0.9rem;
    }

    .value-feature {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 25px 20px;
    }

    .feature-number {
        text-align: center;
        min-width: auto;
    }

    .number-card {
        padding: 30px 15px;
    }

    .number-value {
        font-size: 2.5rem;
    }

    .invite-heading {
        font-size: 1.8rem;
    }

    .invite-text {
        font-size: 1rem;
    }

    .group-logo-item {
        min-height: 90px;
        padding: 15px;
    }

    .group-logo-text {
        font-size: 0.9rem;
    }

    .group-logo-img {
        width: 50px;
        height: 50px;
    }
}

/* Mobile pequeno (até 360px) */
@media screen and (max-width: 360px) {
    .product-tags {
        flex-direction: column;
        align-items: center;
    }

    .product-tag {
        width: 100%;
        text-align: center;
    }

    .group-logo-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .group-logo-img {
        margin-bottom: 5px;
    }

    .group-badge {
        font-size: 0.85rem;
    }
}