/* ===========================================================
   BOX EXPRESS — HOME V3 / FASE 2
   Confiança, apresentação de soluções e percurso do envio.
   Carregar DEPOIS de style.css e home-v3-fase1.css.
   Escopo: apenas classes home-v3-* e secções de confiança.
   =========================================================== */

/* Aproxima o painel de confiança dos cartões de orientação. */
.home-v3-paths {
    padding-bottom: clamp(18px, 3vw, 42px);
}
.home-v3-confidence {
    padding: 0 0 clamp(55px, 6vw, 90px);
}
.home-v3-confidence__panel {
    position: relative;
    overflow: hidden;
    border-radius: 23px;
    padding: clamp(28px, 4vw, 50px);
    background: linear-gradient(125deg, #142e56 0%, #1b3563 58%, #295184 100%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 52px rgba(20,46,86,.16);
    color: #fff;
}
.home-v3-confidence__panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,#f3cc1f 0%,#f7df7a 46%,#fff 100%);
}
.home-v3-confidence__heading {
    position: relative;
    max-width: 750px;
    margin: 0 auto clamp(26px, 3vw, 40px);
    text-align: center;
}
.home-v3-confidence__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #f3cc1f;
    font-size: .75rem;
    font-weight: 800;
    font-family: 'Open Sans',sans-serif;
    letter-spacing: .14em;
}
.home-v3-confidence__heading h2 {
    color: #fff;
    font-size: clamp(1.65rem, 2.9vw, 2.55rem);
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -.025em;
}
.home-v3-confidence__heading p {
    margin: 0 auto;
    color: #e0e9f6;
    font-size: .97rem;
    line-height: 1.75;
    font-weight: 400;
    font-family: 'Open Sans',sans-serif;
}
.home-v3-confidence__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 0;
}
.home-v3-confidence__item {
    min-width: 0;
    padding: 5px clamp(12px, 2vw, 27px);
    text-align: center;
}
.home-v3-confidence__item + .home-v3-confidence__item {
    border-left: 1px solid rgba(255,255,255,.18);
}
.home-v3-confidence__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 18px;
    border-radius: 15px;
    background: rgba(243,204,31,.13);
    border: 1px solid rgba(243,204,31,.38);
    color: #f3cc1f;
    font-size: 1.3rem;
}
.home-v3-confidence__item h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(.98rem,1.25vw,1.13rem);
    line-height: 1.35;
}
.home-v3-confidence__item p {
    margin: 0;
    color: #e0e9f6;
    font-size: .81rem;
    font-weight: 400;
    font-family: 'Open Sans',sans-serif;
    line-height: 1.65;
}

/* Secções de soluções e serviços: uma hierarquia comum. */
.home-v3-section-heading {
    max-width: 830px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(22px, 3vw, 35px);
}
.home-v3-section-heading h2 {
    color: #1b3563;
    font-size: clamp(1.75rem,2.6vw,2.45rem);
    line-height: 1.2;
}
.home-v3-section-heading__description {
    max-width: 680px;
    margin: 0 auto;
    font-family: 'Open Sans',sans-serif;
    font-size: .97rem;
    font-weight: 400;
    color: #52637c;
    line-height: 1.75;
}
.home-v3-section-actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(17px,2.6vw,30px);
}
.home-v3-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 48px;
    max-width: 100%;
    padding: 11px 21px;
    border: 1px solid #cbd6e6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 17px rgba(27,53,99,.055);
    text-decoration: none;
    color: #1b3563;
    font-family: 'Quicksand',sans-serif;
    font-size: .94rem;
    font-weight: 700;
    transition: border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.home-v3-section-link i {
    color: #bd8a00;
    transition: transform .2s ease;
}
.home-v3-section-link:hover {
    color: #1b3563;
    text-decoration: none;
    border-color: #e2bb21;
    box-shadow: 0 10px 26px rgba(27,53,99,.12);
    transform: translateY(-2px);
}
.home-v3-section-link:hover i { transform: translateX(3px); }
.home-v3-section-link:focus-visible {
    outline: 3px solid #f3cc1f;
    outline-offset: 4px;
}

/* Percurso resumido: não interfere com o carousel de serviços. */
.home-v3-journey {
    position: relative;
    margin-bottom: clamp(22px,3vw,34px);
    padding: clamp(17px,2.3vw,28px);
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    background: linear-gradient(120deg,#fff 0%,#f4f8fe 100%);
    box-shadow: 0 10px 26px rgba(27,53,99,.055);
}
.home-v3-journey__eyebrow {
    margin-bottom: 17px;
    text-align: center;
    font-family: 'Open Sans',sans-serif;
    font-size: .72rem;
    font-weight: 800;
    color: #6c7990;
    letter-spacing: .14em;
}
.home-v3-journey__steps {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-v3-journey__steps li {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    font-family: 'Open Sans',sans-serif;
    color: #1b3563;
}
.home-v3-journey__steps li:not(:last-child)::after {
    content: '›';
    display: block;
    margin-left: auto;
    font-size: 1.25rem;
    line-height: 1;
    color: #c0a03b;
}
.home-v3-journey__number {
    flex: 0 0 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: #e8f0fa;
    border: 1px solid #d7e2f0;
    color: #1b3563;
    font-size: .77rem;
    font-weight: 800;
}
.home-v3-journey__steps li:last-child .home-v3-journey__number {
    background: #fff2bf;
    border-color: #eed777;
}
.home-v3-journey__name {
    min-width: 0;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width:1199.98px) {
    .home-v3-confidence__grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap: 24px; }
    .home-v3-confidence__item:nth-child(3) { border-left: 0; }
    .home-v3-journey__steps { grid-template-columns:repeat(3,minmax(0,1fr)); row-gap: 16px; }
    .home-v3-journey__steps li:nth-child(3)::after { display:none; }
}
@media (max-width:767.98px) {
    .home-v3-confidence__panel { padding: 27px 20px; border-radius: 17px; }
    .home-v3-confidence__grid { gap: 20px 10px; }
    .home-v3-confidence__item { padding: 0 10px; }
    .home-v3-confidence__item:nth-child(2n+1) { border-left: 0; }
    .home-v3-confidence__item h3 { font-size: .98rem; }
    .home-v3-journey__steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home-v3-journey__steps li:nth-child(3)::after { display:block; }
    .home-v3-journey__steps li:nth-child(2n)::after { display:none; }
    .home-v3-journey__steps li:last-child { grid-column:1/-1; justify-content:center; }
}
@media (max-width:480px) {
    .home-v3-confidence__grid { grid-template-columns:1fr; gap:17px; }
    .home-v3-confidence__item,
    .home-v3-confidence__item + .home-v3-confidence__item {
        display:grid;
        grid-template-columns:42px minmax(0,1fr);
        column-gap:13px;
        text-align:left;
        border-left:0;
        padding: 0;
    }
    .home-v3-confidence__icon { width:42px; height:42px; margin:0; border-radius:12px; grid-row:span 2; font-size:1rem; }
    .home-v3-confidence__item h3 { margin:0 0 3px; align-self:end; }
    .home-v3-confidence__item p { grid-column:2; }
    .home-v3-section-actions { margin-top: 17px; }
    .home-v3-section-link { width:100%; text-align:center; }
    .home-v3-journey { padding: 19px 15px; }
    .home-v3-journey__steps { gap: 14px 8px; }
    .home-v3-journey__steps li { gap:7px; }
    .home-v3-journey__number { width:30px; height:30px; flex-basis:30px; }
    .home-v3-journey__name { font-size:.74rem; }
}
@media (prefers-reduced-motion:reduce) {
    .home-v3-section-link,
    .home-v3-section-link i { transition:none; }
    .home-v3-section-link:hover,
    .home-v3-section-link:hover i { transform:none; }
}