/* ============================================================
   HOME-CONTENT.CSS — Seções internas da home
   Sobre, FAQ, Depoimentos, CTA Fixo, Carrossel
   ============================================================ */

/* ============================================================
   SEÇÕES GERAIS
   ============================================================ */
.about-section,
.why-section,
.testimonials-section {
    padding: 70px 10%;
    text-align: center;
}

/* ============================================================
      TIPOGRAFIA & TÍTULOS
      ============================================================ */
.subtitle {
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.section-title-center {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.1rem;
    color: var(--dark-text);
    font-weight: 700;
    line-height: 1.25;
}

.about-description {
    max-width: 780px;
    margin: 16px auto 0;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.75;
}

/* ============================================================
      MINI FEATURES (ícones "Editável", "Atualizado", etc.)
      ============================================================ */
.features-mini-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-green);
}

/* ============================================================
      GRID POR QUÊ
      ============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.why-card {
    background: #fff;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* ============================================================
      CARROSSEL
      ============================================================ */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto;
}

.carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.6s ease;
}

.card {
    min-width: 280px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.09);
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2c3e50;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.arrow:hover {
    background: #1a252f;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

/* ============================================================
      FAQ
      ============================================================ */
.faq-section {
    background-color: #f9f9f9;
    padding: 80px 10%;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.faq-card {
    background: white;
    padding: 28px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    text-align: left;
}

.faq-card h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--dark-text);
    font-weight: 700;
}

.faq-card p {
    font-size: 0.93rem;
    color: #666;
    line-height: 1.65;
}

/* ============================================================
      DEPOIMENTOS
      ============================================================ */
.testimonials-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 8px 0;

    overflow: hidden;
}

.testimonial-card {
    background: #fff;
    padding: 22px;
    border-radius: 15px;

    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    text-align: left;

    flex: 1;
    min-width: 0;

    max-width: 360px;

    box-sizing: border-box;
}

.arrow.left,
.arrow.right {
    display: none;
}

.stars {
    color: #ffb800;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.dep-card-p {
    color: #4b5563;
    line-height: 1.55;
    font-style: italic;

    margin-bottom: 18px;

    flex-grow: 1;

    font-size: 0.88rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* imagem antiga dentro do card (mantida por compatibilidade) */
.testimonial-card>img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    object-fit: cover;
}

.user-info h4 {
    margin: 0 0 2px;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 700;
}

.user-info span {
    font-size: 0.82rem;
    color: #9ca3af;
    display: block;
}

/* ============================================================
      CTA FIXO
      Empurra-se para cima do scroll só no mobile se
      precisar — aqui garantimos que não tampe botões
      ============================================================ */
.fixed-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111;
    color: white;
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 998;
    /* abaixo do header (1000) */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    max-width: calc(100vw - 40px);
    /* não vaza em telas pequenas */
}

.fixed-cta span {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.3;
}

.fixed-cta button {
    background: #00c853;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.fixed-cta button:hover {
    background: #00a844;
}

/* ============================================================
      CARRINHO (animação — reutilizado aqui para outras páginas)
      ============================================================ */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    padding: 5px;
    transition: transform 0.2s ease;
}

.cart-icon i {
    font-size: 20px;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes cartWiggle {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(15deg) scale(1.1);
    }

    50% {
        transform: rotate(-15deg) scale(1.1);
    }

    75% {
        transform: rotate(10deg) scale(1.05);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.cart-wiggle {
    animation: cartWiggle 0.5s ease-in-out;
}

/* ============================================================
    RESPONSIVO — Tablet (≤ 900px)
============================================================ */
@media (max-width: 900px) {

    .about-section,
    .why-section,
    .testimonials-section {
        padding: 55px 3%;
    }

    .faq-section {
        padding: 60px 6%;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title-center {
        font-size: 1.75rem;
    }

    .testimonials-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .testimonial-card {
        flex: 0 1 calc(50% - 20px);
        max-width: 360px;
    }

    .arrow.left,
    .arrow.right {
        display: flex !important;
    }
}

/* ============================================================
      RESPONSIVO — Mobile (≤ 768px)
      ============================================================ */
@media (max-width: 768px) {

    .testimonials-section {
        padding: 45px 0;
        position: relative;
    }

    .testimonials-section .container {
        padding: 0;
    }

    .testimonials-section h2 {
        padding: 0 5%;
        font-size: 1.55rem;
    }

    /* Wrapper precisa de position: relative para as setas */
    .testimonials-grid {
        position: relative;
        display: block;
        padding: 10px 0 20px;
    }

    /* Esconde todos os cards por padrão */
    .testimonial-card {
        display: none;
        width: 86%;
        max-width: 360px;
        margin: 0 auto;
    }

    /* Mostra apenas o card ativo */
    .testimonial-card.active {
        display: flex;
    }

    /* Setas de navegação reutilizando .arrow */
    .testimonials-grid .arrow {
        position: absolute;
        top: 45%;
        background: #e6e6e6;
        color: #1a1a1a;
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .testimonials-grid .arrow.left {
        left: 5px;
    }

    .testimonials-grid .arrow.right {
        right: 5px;
    }

    .testimonials-grid .arrow:hover {
        background: #d4d4d4;
    }

    .arrow.left,
    .arrow.right {
        display: flex !important;
    }
}

/* ============================================================
      RESPONSIVO — Mobile pequeno (≤ 480px)
      ============================================================ */
@media (max-width: 480px) {
    .section-title-center {
        font-size: 1.3rem;
    }

    .about-description {
        font-size: 0.95rem;
    }

    .arrow {
        width: 32px;
        height: 32px;
    }

    .card {
        min-width: 200px;
    }

    .testimonial-card {
        width: 88vw;
    }

    .faq-card h3 {
        font-size: 0.98rem;
    }

    .faq-card p {
        font-size: 0.88rem;
    }

    /* CTA fixo: texto some, só botão */
    .fixed-cta span {
        display: none;
    }

    .fixed-cta {
        left: auto;
        right: 12px;
        width: auto;
        padding: 10px 14px;
    }

    .arrow.left,
    .arrow.right {
        display: flex !important; 
    }
}