/* ------------------------------------------------------------------
 * SOPHOS - INDEX (página inicial)
 * ------------------------------------------------------------------ */

/* Hero: pilha de capas em leque */
.sp-home .sp-hero { padding-bottom: 10px; }
.sp-stack { display: flex; justify-content: center; align-items: center; padding: 20px 0 30px; }
.sp-stack-item { display: block; flex: 0 0 auto; width: 160px; margin-left: -26px; border-radius: 6px; overflow: hidden;
    box-shadow: 0 22px 44px rgba(0,0,0,.45), 0 0 0 1px rgba(227,176,134,.3); transition: transform .25s, z-index 0s; background: var(--navy-dark); }
.sp-stack-item:first-child { margin-left: 0; }
.sp-stack-item img { display: block; width: 100%; height: auto; }
.sp-stack-item:hover { transform: translateY(-14px) rotate(0deg) scale(1.04) !important; z-index: 10 !important; }

/* Vitrine */
.sp-group { margin-bottom: 56px; }
.sp-group:last-child { margin-bottom: 0; }
.sp-group-title { font: 600 26px/34px 'Poppins', sans-serif; color: var(--navy); margin: 0 0 6px; padding-left: 16px; border-left: 4px solid var(--copper); }
.sp-group-sub { color: #5d6470; margin: 0 0 26px; padding-left: 20px; font-size: 16px; line-height: 26px; max-width: 760px; }
.sp-books { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.sp-books > li { flex: 1 1 440px; display: flex; }
.sp-book { display: flex; gap: 24px; width: 100%; background: #fff; border-radius: 8px; padding: 22px; box-shadow: 0 6px 22px rgba(10,43,74,.10); border: 1px solid #efe6db; transition: box-shadow .2s, transform .2s; }
.sp-book:hover { box-shadow: 0 14px 34px rgba(10,43,74,.16); transform: translateY(-3px); }
.sp-book-cover { flex: 0 0 150px; width: 150px; align-self: flex-start; }
.sp-book-cover img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 22px rgba(10,43,74,.28); }
.sp-book-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sp-book-tag { text-transform: uppercase; letter-spacing: 2px; font: 500 11px/16px 'Poppins', sans-serif; color: var(--copper-dark); margin: 0 0 6px; }
.sp-book h4 { font: 600 20px/27px 'Poppins', sans-serif; margin: 0 0 8px; }
.sp-book h4 a { color: var(--navy); }
.sp-book h4 a:hover { color: var(--copper-dark); text-decoration: none; }
.sp-book-desc { color: #5d6470; font-size: 15px; line-height: 24px; margin: 0 0 12px; }
.sp-book-price { margin: 0 0 14px; color: var(--navy); font-size: 15px; line-height: 24px; }
.sp-book-price strong { font: 700 24px/28px 'Poppins', sans-serif; }
.sp-book-price s { color: #8a909a; margin-right: 4px; }
.sp-launch { display: inline-block; margin-left: 6px; background: #f6f1ea; color: var(--copper-dark); font: 500 11px/18px 'Poppins', sans-serif; padding: 1px 9px; border-radius: 10px; vertical-align: middle; }
.sp-book-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.sp-book-actions .uk-button { font-size: 14px; padding: 0 20px; line-height: 44px; white-space: nowrap; }
.sp-more { color: var(--copper-dark); font-weight: 500; font-size: 15px; }

/* Como funciona */
.sp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; counter-reset: s; }
.sp-steps li { flex: 1 1 260px; max-width: 340px; text-align: center; }
.sp-step-n { display: inline-block; width: 64px; height: 64px; line-height: 60px; border: 2px solid var(--copper); border-radius: 50%; color: var(--copper-light); font: 600 26px/60px 'Poppins', sans-serif; margin-bottom: 16px; }
.sp-steps h4 { color: #fff; font: 600 19px/26px 'Poppins', sans-serif; margin: 0 0 8px; }
.sp-steps p { color: rgba(255,255,255,.78); font-size: 15px; line-height: 25px; margin: 0; }

/* Depoimentos na home */
.sp-home #depoimentos .sp-h2 { margin-bottom: 30px; }

@media (max-width: 959px) {
    .sp-stack-item { width: 130px; margin-left: -36px; }
    .sp-stack { padding-top: 40px; }
}
@media (max-width: 767px) {
    .sp-stack-item { width: 84px; margin-left: -22px; }
    .sp-books > li { flex-basis: 100%; }
    .sp-book { flex-direction: column; align-items: center; text-align: center; }
    .sp-book-cover { flex-basis: auto; width: 150px; align-self: center; }
    .sp-book-actions { justify-content: center; }
    .sp-group-title { font-size: 22px; }
}

/* 4 pilares em 2x2 */
#sophos .sp-benefits { max-width: 980px; margin: 0 auto; }
#sophos .sp-benefits > li { flex: 1 1 calc(50% - 11px); min-width: 300px; }
@media (max-width: 767px) { #sophos .sp-benefits > li { flex-basis: 100%; min-width: 0; } }
