/* ================================================================
   Império da Canastra — Estilos Customizados
   Paleta oficial: doc/Paleta de Cores.jpeg
   ================================================================ */

/* ── Variáveis de marca ─────────────────────────────────────── */
:root {
    /* Primárias */
    --teal-escuro:    #004348;
    --dourado:        #F8C84B;

    /* Secundárias */
    --verde:          #007963;
    --laranja:        #FBAB45;
    --vermelho-cta:   #FF3F28;
    --vermelho-hover: #E0301B;

    /* Tons de apoio derivados da paleta */
    --dourado-claro:  #FDF1D9;
    --teal-claro:     #E6EEEE;
    --texto:          #2B2B2B;
    --cinza-texto:    #69727D;
    --branco:         #FFFFFF;

    /* Degradês sugeridos na paleta */
    --gradiente-teal:    linear-gradient(135deg, var(--verde) 0%, var(--teal-escuro) 100%);
    --gradiente-dourado: linear-gradient(135deg, var(--dourado) 0%, var(--laranja) 100%);
    --gradiente-cta:     linear-gradient(135deg, var(--dourado) 0%, var(--vermelho-cta) 100%);

    /* Tipografia */
    --font-titulo: 'Poppins', sans-serif;
    --font-corpo:  'Inter', sans-serif;
}

/* ── Reset / Base ────────────────────────────────────────────── */
body {
    font-family: var(--font-corpo);
    color: var(--texto);
    padding-top: 73px;
}

h1, h2, h3, h4, h5, .hero-title, .section-title {
    font-family: var(--font-titulo);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-canastra {
    background: var(--teal-escuro);
    padding: .7rem 0;
}

.navbar-canastra .nav-link {
    color: rgba(255, 255, 255, .82);
    font-family: var(--font-titulo);
    font-weight: 500;
    font-size: .93rem;
    padding: .45rem .85rem;
    border-radius: .5rem;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.navbar-canastra .nav-link:hover {
    transform: translateY(-1px);
    color: var(--branco);
    background: rgba(248, 200, 75, .18);
}

.navbar-canastra .navbar-toggler {
    border-color: rgba(255, 255, 255, .3);
}

.logo-canastra {
    max-height: 46px;
    width: auto;
}

/* ── Botões ──────────────────────────────────────────────────── */
.btn-canastra {
    position: relative;
    background: var(--vermelho-cta);
    color: var(--branco);
    border: none;
    border-radius: 50px;
    padding: .75rem 2rem;
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    transition: background .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}

.btn-canastra::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0) 70%);
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.btn-canastra:hover,
.btn-canastra:focus {
    background: var(--vermelho-hover);
    color: var(--branco);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px rgba(255, 63, 40, .35);
}

.btn-canastra:hover::before { transform: translateX(120%); }

.btn-canastra:active {
    transform: translateY(0) scale(.98);
    box-shadow: 0 4px 12px rgba(255, 63, 40, .3);
}

.btn-canastra.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-canastra-outline {
    position: relative;
    background: transparent;
    color: var(--branco);
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 50px;
    padding: .7rem 1.85rem;
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: color .25s ease, border-color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}

.btn-canastra-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--dourado);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.btn-canastra-outline:hover {
    border-color: var(--dourado);
    color: var(--teal-escuro);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.btn-canastra-outline:hover::before { transform: scaleX(1); }

/* ── Hero (sem foto — composição em degradê + formas) ─────────── */
.hero-home,
.hero-interno {
    position: relative;
    overflow: hidden;
    background: var(--gradiente-teal);
    isolation: isolate;
}

.hero-home { height: calc((100vh - 73px) * .8); display: flex; align-items: center; }
.hero-interno { min-height: 40vh; display: flex; align-items: center; }

.hero-home::before,
.hero-interno::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto auto;
    width: 46vw;
    height: 46vw;
    max-width: 620px;
    max-height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(248, 200, 75, .35), rgba(248, 200, 75, 0) 70%);
    z-index: 0;
}

.hero-home::after,
.hero-interno::after {
    content: '';
    position: absolute;
    inset: auto auto -25% -10%;
    width: 38vw;
    height: 38vw;
    max-width: 520px;
    max-height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 70%, rgba(255, 63, 40, .25), rgba(255, 63, 40, 0) 70%);
    z-index: 0;
}

.hero-home .container,
.hero-interno .container {
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 121, 99, .55) 0%, rgba(0, 67, 72, .82) 100%);
    z-index: 0;
}

/* ── Contato (sem hero-interno — cabeçalho simples acima do form) ── */
.contato-intro {
    padding-top: 7rem;
}

.contato-intro .section-title {
    font-size: 2rem;
    line-height: 1.25;
}

/* ── Hero em carrossel (banners rotativos) ────────────────────── */
.hero-home--carousel {
    align-items: stretch;
}

.hero-home--carousel .carousel {
    width: 100%;
    height: 100%;
}

.hero-home--carousel .carousel-inner,
.hero-home--carousel .carousel-item {
    height: 100%;
}

.hero-home--carousel .carousel-item {
    position: relative;
}

.hero-home--carousel .carousel-item.active,
.hero-home--carousel .carousel-item-next,
.hero-home--carousel .carousel-item-prev {
    display: flex;
    align-items: center;
}

.hero-home--carousel .container { z-index: 1; }

.hero-carousel-nav {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-home--carousel .carousel-control-prev,
.hero-home--carousel .carousel-control-next {
    position: static;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .15);
    opacity: .85;
    transition: background-color .25s ease, opacity .25s ease;
}

.hero-home--carousel .carousel-control-prev-icon,
.hero-home--carousel .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
}

.hero-home--carousel .carousel-control-prev:hover,
.hero-home--carousel .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, .3);
    opacity: 1;
}

.hero-indicators {
    position: static;
    margin: 0;
}

.hero-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .5);
    border: none;
    opacity: 1;
    margin: 0 5px;
    transition: background-color .25s ease, transform .25s ease;
}

.hero-indicators [data-bs-target].active {
    background-color: var(--dourado);
    transform: scale(1.3);
}

.hero-kicker {
    display: inline-block;
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dourado);
    margin-bottom: .75rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--branco);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: .92;
    max-width: 620px;
    margin: 0 auto;
    color: var(--branco);
}

/* ── Seções ──────────────────────────────────────────────────── */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--verde);
}

.section-kicker {
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vermelho-cta);
    display: inline-block;
    margin-bottom: .5rem;
}

.section-subtitle {
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.bg-verde-escuro { background: var(--teal-escuro); }
.bg-gradiente-teal { background: var(--gradiente-teal); }
.bg-dourado-claro { background: var(--dourado-claro); }

/* ── Cards de produto ────────────────────────────────────────── */
.card-produto {
    background: var(--teal-escuro);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card-produto:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18), 0 0 0 1px rgba(248, 200, 75, .35);
    border-color: rgba(248, 200, 75, .5);
}

.card-produto-img {
    background: var(--branco);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-produto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.card-produto:hover .card-produto-img img {
    transform: scale(1.06);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--laranja);
    font-size: 3rem;
    background: var(--gradiente-dourado);
}

.card-produto-body {
    padding: 1rem 1.25rem 1.25rem;
}

.badge-categoria {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dourado);
    margin-bottom: .4rem;
}

.card-produto-nome {
    font-family: var(--font-titulo);
    font-weight: 600;
    color: var(--branco);
    margin: 0;
    font-size: 1.05rem;
}

/* ── Cards de receita ────────────────────────────────────────── */
.card-receita {
    background: var(--branco);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}

.card-receita:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}

.card-receita-img {
    position: relative;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradiente-teal);
    color: var(--dourado);
    font-size: 2.6rem;
    overflow: hidden;
    clip-path: polygon(0% 0%, 100% 0%, 100.00% 100.00%, 97.92% 98.84%, 95.83% 97.68%, 93.75% 96.53%, 91.67% 95.37%, 89.58% 94.21%, 87.50% 93.05%, 85.42% 91.90%, 83.33% 90.74%, 81.25% 89.82%, 79.17% 89.46%, 77.08% 89.22%, 75.00% 89.22%, 72.92% 89.34%, 70.83% 89.46%, 68.75% 89.82%, 66.67% 90.31%, 64.58% 90.91%, 62.50% 91.52%, 60.42% 92.25%, 58.33% 92.85%, 56.25% 93.46%, 54.17% 94.06%, 52.08% 94.55%, 50.00% 94.79%, 47.92% 93.46%, 45.83% 92.25%, 43.75% 91.28%, 41.67% 90.56%, 39.58% 89.94%, 37.50% 89.59%, 35.42% 89.34%, 33.33% 89.22%, 31.25% 89.22%, 29.17% 89.46%, 27.08% 89.71%, 25.00% 90.07%, 22.92% 90.68%, 20.83% 91.28%, 18.75% 92.00%, 16.67% 92.80%, 14.58% 93.70%, 12.50% 94.60%, 10.42% 95.50%, 8.33% 96.40%, 6.25% 97.30%, 4.17% 98.20%, 2.08% 99.10%, 0.00% 100.00%);
}

/* Foto grande do topo da página de receita — sem o recorte de serra */
.card-receita-img--flat {
    clip-path: none;
}

.card-receita-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.card-receita:hover .card-receita-img img {
    transform: scale(1.06);
}

.card-receita-body {
    padding: 1.35rem 1.25rem 1.5rem;
}

.badge-categoria-receita {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--vermelho-cta);
    background: var(--dourado-claro);
    border-radius: .35rem;
    padding: .2rem .55rem;
    margin-bottom: .55rem;
}

.card-receita-nome {
    font-family: var(--font-titulo);
    font-weight: 600;
    color: var(--teal-escuro);
    margin: 0 0 .6rem;
    font-size: 1.05rem;
    min-height: 2.6rem;
}

.receita-meta {
    display: flex;
    gap: 1rem;
    font-size: .82rem;
    color: var(--cinza-texto);
}

.receita-meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.receita-meta i { color: var(--vermelho-cta); }

/* ── Estatísticas ────────────────────────────────────────────── */
.stat-card { padding: 2rem 1rem; }

.stat-numero {
    font-family: var(--font-titulo);
    font-weight: 700;
    font-size: 3rem;
    color: var(--branco);
    margin: 0;
}

.stat-label {
    color: rgba(255, 255, 255, .75);
    font-size: .95rem;
    margin: 0;
}

.text-creme,
.text-dourado { color: var(--dourado); }

.stat-card-light {
    padding: 2rem 1rem;
    background: var(--branco);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.stat-numero-verde {
    font-family: var(--font-titulo);
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--verde);
    margin: 0;
}

.stat-label-dark {
    color: var(--cinza-texto);
    font-size: .95rem;
    margin: 0;
}

/* ── Benefícios (página Distribuidor) ────────────────────────── */
.beneficio-card {
    padding: 2rem 1.5rem;
    background: var(--branco);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    transition: box-shadow .2s;
}

.beneficio-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.beneficio-icon {
    width: 64px;
    height: 64px;
    background: var(--dourado-claro);
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--vermelho-cta);
    margin: 0 auto 1rem;
}

/* ── Filtros de categoria (produtos / receitas) ──────────────── */
.btn-filtro {
    border: 2px solid var(--teal-escuro);
    color: var(--teal-escuro);
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
    padding: .4rem 1.2rem;
    font-family: var(--font-titulo);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}

.btn-filtro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 67, 72, .18);
}

.btn-filtro:hover,
.btn-filtro.active {
    background: var(--teal-escuro);
    color: var(--branco);
}

.btn-filtro:active { transform: translateY(0) scale(.97); }

/* ── Sidebar de categorias (página Produtos) ─────────────────── */
.categorias-sidebar {
    background: var(--branco);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.categorias-sidebar h6 {
    font-family: var(--font-titulo);
    font-weight: 700;
    color: var(--teal-escuro);
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .06em;
    margin-bottom: 1rem;
}

.categorias-sidebar .lista-categoria {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categorias-sidebar .lista-categoria button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: .55rem .6rem;
    border-radius: .5rem;
    font-size: .92rem;
    color: var(--texto);
    font-weight: 500;
    transition: background .2s, color .2s;
}

.categorias-sidebar .lista-categoria button:hover,
.categorias-sidebar .lista-categoria button.active {
    background: var(--dourado-claro);
    color: var(--vermelho-cta);
}

/* ── Busca de produtos ────────────────────────────────────────── */
.busca-produtos {
    background: var(--branco);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.busca-produtos .form-control {
    border: 2px solid var(--teal-claro);
    border-radius: 50px 0 0 50px;
    padding: .7rem 1.25rem;
}

.busca-produtos .form-control:focus {
    box-shadow: none;
    border-color: var(--verde);
}

.busca-produtos .btn-buscar {
    border-radius: 0 50px 50px 0;
    background: var(--vermelho-cta);
    color: var(--branco);
    border: 2px solid var(--vermelho-cta);
    padding: .7rem 1.5rem;
    font-weight: 600;
    transition: background .2s ease, transform .15s ease;
}

.busca-produtos .btn-buscar:hover {
    background: var(--vermelho-hover);
}

.busca-produtos .btn-buscar:hover i { transform: scale(1.15); }

.busca-produtos .btn-buscar i { display: inline-block; transition: transform .2s ease; }

.busca-produtos .btn-buscar:active { transform: scale(.95); }

/* ── Estado vazio (catálogo sem produtos / busca sem resultado) ── */
.estado-vazio {
    background: var(--branco);
    border: 1px dashed rgba(0, 67, 72, .18);
    border-radius: 1rem;
    padding: 3rem 1.5rem;
}

/* ── Timeline (página História) ──────────────────────────────── */
.timeline-historia {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    padding-top: 1rem;
}

.timeline-item {
    flex: 1 1 220px;
    position: relative;
    padding-top: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--vermelho-cta);
    box-shadow: 0 0 0 4px var(--dourado-claro);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 14px;
    width: 100%;
    height: 2px;
    background: var(--teal-claro);
}

.timeline-item:last-child::after { display: none; }

.timeline-ano {
    font-family: var(--font-titulo);
    font-weight: 700;
    color: var(--verde);
    font-size: 1.3rem;
    margin-bottom: .35rem;
    display: block;
}

.timeline-texto {
    color: var(--cinza-texto);
    font-size: .95rem;
    margin: 0;
}

@media (max-width: 767.98px) {
    .timeline-historia { flex-direction: column; gap: 1.75rem; }
    .timeline-item::after { display: none; }
}

/* ── Redes sociais (badges) ──────────────────────────────────── */
.social-badge {
    width: 44px;
    height: 44px;
    background: var(--dourado-claro);
    border-radius: .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--vermelho-cta);
    text-decoration: none;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease, background .25s ease, color .25s ease;
}

.social-badge:hover {
    transform: translateY(-3px) rotate(-6deg) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    background: var(--vermelho-cta);
    color: var(--branco);
}

.social-badge:active { transform: translateY(-1px) scale(.96); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer-canastra {
    background: var(--teal-escuro);
}

.footer-heading {
    color: var(--branco);
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .75rem;
}

.footer-links {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    font-size: .9rem;
    line-height: 2;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--dourado);
}

/* ── Páginas institucionais ─────────────────────────────────── */
.prose h5 {
    color: var(--verde);
    font-family: var(--font-titulo);
    margin-top: 1.75rem;
}

.prose a {
    color: var(--vermelho-cta);
}

.letter-spacing {
    letter-spacing: .1em;
}

/* ── Responsividade extra ────────────────────────────────────── */
@media (max-width: 575.98px) {
    .hero-title { font-size: 1.8rem; }
}
