/* ============================================================
   HOME
   CSS exclusivo do conteúdo da página inicial.

   A estrutura global (header, footer, tipografia, variáveis, etc.) 
   continua vindo de categoria.css.
   ============================================================ */

.home-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 22px 60px;
}

/* HERO -------------------------------------------------------- */

.hero {
    margin-bottom: 28px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 255, 255, .18), transparent 30%),
        linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 12px 35px rgba(70, 52, 122, .18);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 42px;
    align-items: center;
    padding: 58px 60px;
}

.hero h1 {
    margin: 0 0 18px;
    color: #fff;
    text-align: left;
    font-size: clamp(36px, 4.8vw, 62px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -.035em;
}

.hero-subtitle {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .94);
    font-size: 19px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .14);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.hero-card {
    padding: 27px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(5px);
}

.hero-card-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 800;
}

.hero-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    margin-top: 17px;
    color: rgba(255, 255, 255, .94);
    line-height: 1.45;
}

.hero-step:first-of-type {
    margin-top: 0;
}

.hero-step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-weight: 800;
}

/* BENEFÍCIOS -------------------------------------------------- */

.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 52px;
}

.trust-item {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--card);
    text-align: center;
}

.trust-icon {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 23px;
    font-weight: 800;
}

.trust-item strong {
    color: #333;
    font-size: 15px;
}

.trust-item span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

/* SEÇÕES ------------------------------------------------------ */

.home-section {
    margin-top: 58px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 9px;
    color: #555;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.25;
}

.section-heading p {
    margin: 0;
    color: #777;
    font-size: 16px;
    line-height: 1.6;
}

/* CATEGORIAS -------------------------------------------------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-card {
    display: block;
    min-height: 220px;
    padding: 26px 22px;
    border: 1px solid #e2dfe8;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(40, 30, 60, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #cfc4e2;
    box-shadow: 0 12px 26px rgba(40, 30, 60, .10);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #f1edf8;
    color: var(--primary);
    font-size: 24px;
}

.category-card h3,
.popular-card h3,
.how-card h3 {
    margin: 0 0 8px;
    color: #333;
    font-size: 18px;
}

.category-card p,
.popular-card p,
.how-card p {
    margin: 0;
    color: #707070;
    font-size: 14px;
    line-height: 1.6;
}

/* MAIS PROCURADAS -------------------------------------------- */

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.popular-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: 27px;
    border: 1px solid #e1dde8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(40, 30, 60, .06);
}

.popular-badge {
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 5px 9px;
    border-radius: 5px;
    background: #f0ecf7;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.popular-card .rating {
    margin-top: 18px;
}

.popular-card .rating span {
    color: #e1a72c;
}

.popular-card .rating small {
    color: #888;
}

.popular-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 22px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.popular-link:hover {
    text-decoration: underline;
}

/* OCASIÕES ---------------------------------------------------- */

.occasion-box {
    padding: 38px;
    border: 1px solid #e2dfe8;
    border-radius: 18px;
    background: #faf9fc;
}

.occasion-box .section-heading {
    margin-bottom: 25px;
}

.occasion-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.occasion-grid a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #ddd7e8;
    border-radius: 8px;
    background: #fff;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.occasion-grid a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* COMO FUNCIONA ---------------------------------------------- */

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.how-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.how-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 17px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

/* CTA --------------------------------------------------------- */

.final-cta {
    margin-top: 58px;
    padding: 46px 30px;
    border-radius: 18px;
    background: #f3f0f8;
    text-align: center;
}

.final-cta h2 {
    margin: 0 0 10px;
    color: #4d4163;
    font-size: clamp(25px, 3vw, 34px);
}

.final-cta p {
    max-width: 680px;
    margin: 0 auto 23px;
    color: #666;
    line-height: 1.6;
}

/* SEO --------------------------------------------------------- */

.seo-home {
    max-width: 920px;
    margin: 60px auto 0;
    color: #555;
    line-height: 1.75;
}

.seo-home h2 {
    margin: 0 0 18px;
    color: #444;
    font-size: 25px;
}

.seo-home p {
    margin: 0 0 18px;
}

/* RESPONSIVO -------------------------------------------------- */

@media (max-width: 1000px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 46px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {

    .popular-grid,
    .how-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(34px, 9vw, 48px);
    }
}

@media (max-width: 650px) {
    .home-container {
        padding: 18px 14px 45px;
    }

    .hero {
        border-radius: 16px;
    }

    .hero-inner {
        padding: 32px 22px;
        gap: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .trust-bar {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .trust-item {
        min-height: 105px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .occasion-box {
        padding: 26px 18px;
    }

    .home-section {
        margin-top: 45px;
    }
}

.home-search {
    width: 100%;
    margin: 0 0 34px;
    text-align: center;
}

.home-search .search-title {
    margin-bottom: 5px;
    color: #444;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.home-search .search-subtitle {
    margin-bottom: 11px;
    color: #777;
    font-size: 13px;
    line-height: 1.4;
}

.home-search #search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.home-search #search-input {
    flex: 1;
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #d9d5df;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #444;
    font-family: inherit;
    font-size: 14px;
}

.home-search #search-input::placeholder {
    color: #999;
}

.home-search #search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 70, 150, .10);
}

.home-search #search-form button {
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.home-search #search-form button:hover {
    background: var(--primary-dark);
}

.home-search #search-results {
    width: 100%;
    max-width: 650px;
    margin: 12px auto 0;
    text-align: left;
}

@media (max-width: 600px) {

    .home-search #search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .home-search #search-form button {
        width: 100%;
    }

}