/**
 * CIMED THEME — home.css (V2)
 */

.home-main-v2 {
    overflow-x: hidden;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

.section-sub {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

.bg-light-soft {
    background-color: #FAFAFA;
}

/* 1. Hero */
.h2-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.h2-hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Title on top */
    gap: 40px;
    max-width: 90vw;
    height: 100%;
}

/* .h2-hero-left {
    max-width: 650px;
} */

.h2-hero-title {
    color: #FFF;
    font-size: 52px;
    font-weight: 400;
    line-height: .95;
    margin-bottom: 40px;
    width: 570px;
}

.h2-hero-title b,
.h2-hero-title strong,
.h2-hero-title span {
    /* font-size: 1.15em;
    font-weight: 900; */
    display: block;
}

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

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 30px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    text-transform: none;
    border: solid 2px #000;
}

.btn-hero svg {
    width: 20px;
}

.h2-hero-right {
    max-width: 400px;
    align-self: flex-end;
    /* Text on bottom */
    margin-top: 200px;
    /* Push it down */
}

.h2-hero-text {
    color: #FFF;
    font-size: 15px;
    line-height: 1.4;
    text-align: right;
    font-weight: 400;
}

.h2-hero-text b,
.h2-hero-text strong {
    font-style: italic;
    font-weight: 700;
}

/* 2. Partners */
.h2-partners {
    padding-top: 60px;
    background: #FFF;
    overflow: hidden;
}

.h2-partners-title {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hp-symbol {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.hp-animated-words {
    position: relative;
    display: inline-block;
    color: var(--color-primary);
    font-weight: 800;
    height: 1.2em;
    /* To fix height during swap */
    text-align: left;
    min-width: 150px;
    /* Prevenir pulos laterais */
}

.hp-word {
    position: absolute;
    top: -5px;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
}

.hp-word.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-word.is-hidden {
    opacity: 0;
    transform: translateY(-20px);
}

.h2-partners-track-wrap {
    position: relative;
    width: 100vw;
}

.h2-partners-track {
    display: flex;
    gap: 40px;
    align-items: center;
    width: max-content;
    animation: marquee-partners 30s linear infinite;
}

.h2-partners-track:hover {
    animation-play-state: paused;
}

.h2-partner-img,
.h2-partner-placeholder {
    height: 200px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-fast);
}

.h2-partner-img:hover,
.h2-partner-placeholder:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes marquee-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 3. Instagram */
.h2-instagram {
    padding: 60px 0;
}

.h2-ig-feed {
    margin-top: 40px;
    margin-bottom: 40px;
}

.h2-ig-placeholder {
    padding: 100px;
    background: #F0F0F0;
    border: 2px dashed #CCC;
    border-radius: 12px;
}

.h2-ig-btn {
    padding: 12px 32px;
    font-weight: 700;
}

/* 4. Busca */
.h2-search {
    padding: 100px 0 0;
    background: #FFF;
    margin: 0 auto;
}

.h2-search-title {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 60px;
    color: #1a1a1a;
}

.h2-search-form {
    max-width: 900px;
    margin: 0 auto;
}

.h2-search-bar-wrap {
    display: flex;
    align-items: center;
    background: #FFF;
    border: 2px solid #EAEAEA;
    border-radius: 16px;
    padding: 5px 5px 5px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    width: 720px;
    margin: 0 auto;
}

.h2-search-bar-wrap:focus-within {
    border-color: #FFC000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.h2-search-bar-icon {
    flex-shrink: 0;
    margin-right: 16px;
}

.h2-search-input {
    flex-grow: 1;
    border: none !important;
    padding: 16px 0 !important;
    font-size: 1rem !important;
    outline: none !important;
    color: #333;
    background: transparent;
}

.h2-search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.h2-search-submit {
    height: 60px;
    padding: 0 28px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    background-color: #FFC000 !important;
    color: #000 !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.h2-search-submit:hover {
    background-color: #f2b600 !important;
    transform: translateY(-1px);
}

.banner-sites-box {
    background: none;
    border: none;
}

.banner-sites-title {
    font-size: 22px !important;
}

/* 5. Marquee */
.h2-marquee {
    background: #FFC000;
    padding: 30px 0;
    overflow: hidden;
    white-space: nowrap;
}

.h2-mq-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 60s linear infinite;
}

.h2-mq-item {
    font-size: 18px;
    font-weight: 300;
    color: #1a1a1a;
    margin-right: 80px;
    text-transform: none;
    display: flex;
    align-items: center;
    font-style: italic;
}

.h2-mq-item::before,
.h2-mq-item::after {
    content: '"';
}


@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* simple linear fallback */
}

/* 6. Produtos */
.h2-produtos {
    padding: 100px 0;
    background-color: #FAFAFA;
}

.h2-produtos .section-title,
.h2-linkedin .section-title,
.h2-diferenciais .section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.h2-produtos .section-sub {
    font-size: 18px;
    color: #777;
    margin-bottom: 48px;
}

/* Home Products Slider */
.h2-prod-slider-container {
    position: relative;
    padding: 0 40px;
    margin: 0 0 40px;
}

.h2-prod-slider-viewport {
    overflow: hidden;
    padding: 20px 0;
    /* Espaço para sombra do card */
}

.h2-prod-slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.h2-slide-item {
    flex: 0 0 calc((100% - (30px * 3)) / 4);
    min-width: 0;
}

.h2-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #FFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s;
}

.h2-slider-arrow.prev {
    left: -25px;
}

.h2-slider-arrow.next {
    right: -25px;
}

.h2-slider-arrow:hover {
    border-color: #000;
}

.h2-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.h2-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.h2-dot {
    width: 8px;
    height: 8px;
    background: #EAEAEA;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s;
}

.h2-dot.active {
    width: 20px;
    border-radius: 4px;
    background: #FFC000;
}

/* 7. Diferenciais */
.h2-diferenciais {
    padding: 100px 0;
    background-color: #f5f5f5;
    margin-top: -130px;
    position: relative;
}

.h2-diff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.h2-diff-card {
    background: #FFF;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.h2-diff-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(255, 192, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.h2-diff-icon-wrap img,
.h2-diff-icon-wrap svg {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.h2-dc-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.h2-dc-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Hover State */
.h2-diff-card:hover {
    background-color: #FFC000;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 192, 0, 0.2);
}

.h2-diff-card:hover .h2-diff-icon-wrap {
    background: #FFF;
}

.h2-diff-card:hover .h2-dc-title,
.h2-diff-card:hover .h2-dc-text {
    color: #000;
}

/* 8. Compromisso */
.h2-compromisso {
    position: relative;
    padding: 100px 0;
    background-color: #FFC000;
    overflow: hidden;
    height: 840px;
}

.h2-compromisso::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fdb913e6;
    z-index: 1;
}

.h2-compromisso .container {
    position: relative;
    z-index: 2;
}

.h2-comp-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.h2-comp-sub {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #1a1a1a;
    line-height: 1.4;
}

.h2-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.h2-stat-box {
    background: #FDC744;
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.h2-st-num-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 8px;
}

.h2-st-num {
    font-size: 72px;
    font-weight: 900;
    color: #000;
    line-height: 1;
}

.h2-st-suffix {
    font-size: 72px;
    font-weight: 900;
    color: #000;
    margin-left: 2px;
}

.h2-st-lab {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    opacity: 0.8;
}

.btn-stats-cta {
    display: inline-block;
    background: #000;
    color: #FFF;
    padding: 16px 48px;
    border-radius: 15px;
    font-weight: 700;
    text-transform: capitalize;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-stats-cta:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #FFF;
}

/* 9. LinkedIn */
.h2-linkedin {
    padding: 80px 0;
    background: #FAFAFA;
}

.h2-linkedin svg {
    width: 18px;
}

a.btn.btn-yellow.h2-lk-btn {
    border-radius: 15px !important;
    margin-top: 50px !important;
    text-transform: none !important;
    font-size: 16px !important;
    padding: 22px 40px;
}

.h2-lk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
    text-align: left;
}

.h2-lk-card {
    background: #FFF;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #EAEAEA;
    display: flex;
    flex-direction: column;
}

.h2-lk-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.h2-lk-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #000;
    color: #FFF;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
}

.h2-lk-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.h2-lk-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 16px;
}

.h2-lk-link {
    color: #0c66c2;
    /* Linkedin Blue */
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

/* 10. Newsletter */
.h2-newsletter {
    background: url('../img/news_bg.png') no-repeat;
    background-color: #FFC000;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
}

/* Background patterns simplified from print */
.h2-newsletter::before,
.h2-newsletter::after {
    content: 'C';
    position: absolute;
    font-size: 400px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    z-index: 0;
}

.h2-newsletter::before {
    top: 0;
    left: -100px;
    transform: rotate(-15deg);
}

.h2-newsletter::after {
    bottom: 0;
    right: -100px;
    transform: rotate(15deg);
}

.h2-newsletter .container {
    position: relative;
    z-index: 2;
}

.h2-nl-icon-circle {
    width: 60px;
    height: 60px;
    background-color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.h2-nl-icon-circle svg {
    width: 24px;
    height: 24px;
}

.h2-nl-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.h2-nl-sub {
    font-size: 18px;
    color: #444;
    margin-bottom: 40px;
}

.h2-nl-form-container {
    background: #FFF;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.h2-nl-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.h2-nl-input {
    flex-grow: 1;
    border: 1px solid #DDD !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    outline: none !important;
}

.h2-nl-submit {
    background-color: #1a1a1a !important;
    color: #FFF !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 40px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.h2-nl-submit:hover {
    background-color: #333 !important;
    transform: translateY(-2px);
}

.h2-nl-consent {
    text-align: left;
    font-size: 13px;
    color: #666;
}

.h2-nl-consent label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.h2-nl-consent a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 26px !important;
        line-height: 1.2;
    }

    /* 1. Hero Mobile Refined */
    .h2-hero {
        height: auto;
        min-height: 400px;
        padding: 40px 0;
        background-position: center;
        background-size: cover;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .h2-hero-container {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 30px !important;
        display: flex !important;
    }

    .h2-hero-left,
    .h2-hero-right {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 40px;
    }

    .h2-hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        /* Overlay sutil apenas para legibilidade */
        z-index: 1;
    }

    /* Manter as cores originais, apenas ajustar tamanhos */
    .h2-hero-title {
        font-size: 20px !important;
        /* Tamanho base bem menor */
        margin-bottom: 20px !important;
        line-height: 1.1 !important;
        position: relative;
        z-index: 3;
        width: 100%;
        max-width: 100%;
    }

    .h2-hero-title b,
    .h2-hero-title strong,
    .h2-hero-title span {
        font-size: 1.4em !important;
        display: block !important;
        margin-top: 5px;
    }

    .h2-hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
        /* Limitar largura para não sair da tela */
        margin: 0 auto;
        gap: 10px;
        position: relative;
        z-index: 3;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
        padding: 14px 15px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .h2-hero-right {
        margin-top: 20px;
        max-width: 100%;
        position: relative;
        z-index: 3;
    }

    .h2-hero-text {
        text-align: center;
        font-size: 13px;
        line-height: 1.4;
    }

    /* 2. Partners Mobile */
    .h2-partners {
        padding: 40px 0;
    }

    .h2-partners-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .hp-symbol {
        height: 24px;
    }

    .hp-animated-words {
        min-width: 100px;
    }

    .h2-partner-img {
        height: 60px;
    }

    /* 4. Busca Mobile */
    .h2-search {
        padding: 60px 0 40px;
    }

    .h2-search-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .h2-search-bar-wrap {
        width: 100% !important;
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .h2-search-bar-icon {
        display: none;
    }

    .h2-search-input {
        width: 100% !important;
        background: #FFF !important;
        border: 1px solid #DDD !important;
        border-radius: 12px !important;
        padding: 15px 20px !important;
        margin-bottom: 12px;
    }

    .h2-search-submit {
        width: 100% !important;
        height: 54px;
        border-radius: 12px !important;
    }

    /* 6. Produtos Mobile */
    .h2-produtos {
        padding: 60px 0;
    }

    .h2-prod-slider-container {
        padding: 0 10px;
    }

    .h2-slide-item {
        flex: 0 0 100%;
    }

    .h2-slider-arrow {
        display: none;
        /* Hide arrows on mobile, use touch scroll */
    }

    .h2-prod-slider-viewport {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .h2-slide-item {
        scroll-snap-align: center;
    }

    /* 7. Diferenciais Mobile */
    .h2-diferenciais {
        padding: 60px 0;
        margin-top: 0;
    }

    .h2-diff-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .h2-diff-card {
        padding: 30px 20px;
    }

    /* 8. Compromisso Mobile */
    .h2-compromisso {
        padding: 60px 0;
        height: auto;
    }

    .h2-comp-title {
        font-size: 32px;
    }

    .h2-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .h2-stat-box {
        padding: 30px 20px;
    }

    .h2-st-num {
        font-size: 56px;
    }

    .h2-st-suffix {
        font-size: 56px;
    }

    /* 9. LinkedIn Mobile */
    .h2-linkedin {
        padding: 60px 0;
    }

    .h2-lk-grid {
        grid-template-columns: 1fr;
    }

    /* 10. Newsletter Mobile */
    .h2-newsletter {
        padding: 60px 0;
    }

    .h2-nl-title {
        font-size: 26px;
    }

    .h2-nl-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .h2-nl-submit {
        height: 52px;
        width: 100%;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .h2-hero-title {
        font-size: 28px !important;
    }

    .container {
        padding-inline: 20px;
    }

    .h2-comp-title {
        font-size: 28px;
    }
}