/**
 * Desafio Saudável - Estilos Customizados Conforme Figma
 * Layout baseado em template-figma-desafio-saudavel.pdf
 */

/* ===== CORES DA PALETA FIGMA ===== */
:root {
    --color-pink: #ED1651;
    --color-pink-hover: #C01041;
    --color-pink-light: #F04A78;
    --color-green-lime: #B0D348;
    --color-green-lime-hover: #8DAA2E;
    --color-green-dark: #0A6055;
    --color-orange: #F47A1F;
    --color-orange-hover: #C96010;
    --color-gray-dark: #585C65;
    --color-gray: #777777;
    --color-border: #D9D9D9;
    --color-bg-light: #FAFAFA;
    --color-bg-card: #F8F9FF;
}

/* ===== UTILITÁRIOS DE COR ===== */
.text-pink {
    color: var(--color-pink) !important;
}

.text-green-lime {
    color: var(--color-green-lime) !important;
}

.text-green-dark {
    color: var(--color-green-dark) !important;
}

/* Mantém compatibilidade: .text-orange agora usa a cor rosa/pink do template */
.text-orange {
    color: var(--color-pink) !important;
}

.bg-pink {
    background-color: var(--color-pink) !important;
}

.bg-green-lime {
    background-color: var(--color-green-lime) !important;
}

/* Botões Rosa (CTA principal) */
.btn-orange,
.btn-primary-ds {
    background-color: var(--color-pink);
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-family: 'UnimedSans', sans-serif;
}

.btn-orange:hover,
.btn-primary-ds:hover {
    background-color: var(--color-pink-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 22, 81, 0.3);
}

.btn-orange:focus,
.btn-orange:active,
.btn-primary-ds:focus,
.btn-primary-ds:active {
    background-color: var(--color-pink-hover) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(237, 22, 81, 0.25) !important;
}

/* Botões Verde Limão (CTA secundário) */
.btn-green-lime {
    background-color: var(--color-green-lime);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-green-lime:hover {
    background-color: var(--color-green-lime-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 211, 72, 0.3);
}

/* Menu e ícones de navegação */
.navbar .nav-link,
.navbar-brand,
.navbar-toggler {
    font-family: 'UnimedSans', sans-serif;
}

/* ===== HERO SECTION ===== */
.hero-desafio,
.hero-vitalidade {
    position: relative;
}

/*
 * Coluna esquerda: fundo BRANCO — o verde é apenas a faixa
 * inferior via ::after, onde o bowl da salada descansa.
 * Igual ao Figma: parte superior branca, parte inferior verde.
 */
/* ===== HERO SECTION ===== */
.hero-desafio,
.hero-vitalidade {
    position: relative;
}

/*
 * Desktop: background-hero.webp cobre a seção inteira.
 * O webp já tem o split verde (esq) / branco (dir) — sem ::after necessário.
 * A imagem da salada fica sobre o fundo via z-index.
 */
.hero-section.hero-desafio {
    background-image: url('../assets/background-hero.webp');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
}

.hero-left {
    background: transparent;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

/* Coluna direita: #FAFAFA (o webp já é branco nessa área, mantemos explicit) */
.hero-right {
    background-color: #FAFAFA !important;
    position: relative;
    min-height: 60vh;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Imagem da salada: sem distorção, height: auto sempre */
.hero-image {
    position: relative;
    z-index: 1;
    animation: heroFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.10));
    display: block;
    height: auto !important;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0);     }
    50%       { transform: translateY(-14px); }
}

/*
 * Tablet/Mobile: background-hero.webp é landscape e fica distorcido
 * em colunas empilhadas. Remove o webp e usa cores sólidas + faixa verde.
 */
@media (max-width: 991.98px) {
    .hero-section.hero-desafio {
        background-image: none;
    }
    .hero-left {
        background-color: #FFFFFF;
        min-height: auto !important;
    }
    /* faixa verde na base da coluna empilhada */
    .hero-left::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 36%;
        background-color: #B0D348;
        z-index: 0;
    }
    .hero-right {
        min-height: auto !important;
    }
    /* Centraliza conteúdo textual do hero em mobile */
    .hero-content {
        text-align: center;
    }
    .hero-content .hero-description {
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content .btn {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image {
        width: 74% !important;
        max-width: 380px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-image {
        width: 80% !important;
        max-width: 190px !important;
    }
}

/* ===== ESPAÇAMENTO VERTICAL DAS SEÇÕES NO MOBILE ===== */
@media (max-width: 767.98px) {
    /* Reduz o double-padding (py-5 + py-5) em mobile */
    #curso.py-5,
    #programacao.py-5,
    #informacoes.py-5,
    #faq.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    #curso .container,
    #programacao .container,
    #informacoes .container,
    #faq .container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* ===== PADDING LATERAL NAS SEÇÕES EM MOBILE ===== */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    .hero-content {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* ===================================================================
   TIPOGRAFIA GLOBAL — UnimedSans do projeto
   Todas as seções seguem este sistema. Não sobrescrever via inline.
=================================================================== */

/* Título principal de seção (h2) */
.section-title {
    font-family: 'UnimedSans', sans-serif;
    font-weight: 700;
    font-size: clamp(2.188rem, 3vw, 2rem);
    color: #585C65;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Título secundário de seção (h3) */
.section-subtitle {
    font-family: 'UnimedSans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #585C65;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Texto de parágrafo padrão — 1.125rem = 20px (base 16px) */
.section-text {
    font-family: 'UnimedSans', sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #777777;
}

/* Título de item/pergunta dentro de seção */
.item-title {
    font-family: 'UnimedSans', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: #585C65;
    margin-bottom: 0.3rem;
}

/* ===================================================================
   LARGURA CONSISTENTE DAS SEÇÕES
   .section-inner centraliza o conteúdo com max-width: 840px,
   igual ao wrapper já usado em pilares.php
=================================================================== */
.section-inner {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.min-vh-75 {
    min-height: 75vh !important;
}

/* ===== ÍCONES CIRCULARES (PRINCIPAIS CORES) ===== */
.icon-circle-orange,
.icon-circle-pink {
    width: 80px;
    height: 80px;
    background-color: var(--color-pink);
    padding: 15px;
}

.icon-circle-green {
    width: 80px;
    height: 80px;
    background-color: var(--color-green-lime);
    padding: 15px;
}

.icon-circle-orange img,
.icon-circle-pink img,
.icon-circle-green img {
    filter: brightness(0) invert(1);
}

/* Bootstrap rounded-4 (caso não exista) */
.rounded-4 {
    border-radius: 1rem !important;
}

/* ===== CARDS DO DESAFIO (O QUE VOCÊ APRENDERÁ) ===== */
.card-desafio-verde {
    background-color: #B0D348;
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.75rem;
}

/* Altura fixa em tablet+ conforme proposta do projeto */
@media (min-width: 768px) {
    .card-desafio-verde {
        height: 159px;
    }
}

.card-desafio-verde:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(176, 211, 72, 0.35) !important;
}

.card-desafio-rosa {
    background-color: #ED1651;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card-desafio-rosa:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(237, 22, 81, 0.35) !important;
}

/* Badge rosa */
.badge-pink {
    background-color: var(--color-pink);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== ACCORDION FAQ ===== */
/* Remover seta padrão do Bootstrap */
.accordion-button::after {
    display: none !important;
}

.accordion-button:not(.collapsed)::after {
    display: none !important;
}

/* ===== FOOTER - REDES SOCIAIS ===== */
footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

footer .social-link:hover {
    transform: translateY(-3px);
}

footer .social-link i {
    transition: color 0.3s ease;
}

footer .social-link:hover i {
    color: var(--color-pink) !important;
}

/* ===== FAQ ACCORDION ===== */
.accordion-button {
    position: relative;
    font-size: 1.05rem;
}

.accordion-button:not(.collapsed) {
    background-color: white !important;
    color: #333 !important;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button .text-orange {
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed) .text-orange {
    transform: rotate(45deg);
}

.accordion-body {
    padding-top: 1rem;
}

/* ===== SOCIAL ICONS ===== */
.social-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    transform: scale(1.15);
}

/* ===== HEADER ===== */
.navbar {
    transition: all 0.3s ease;
}

/* ===== SCROLL BUTTON ===== */
#scrollToTop {
    transition: all 0.3s ease;
}

#scrollToTop:hover {
    transform: scale(1.1);
}

/* Gradientes baseados na paleta Desafio Saudável */
.bg-gradient-primary-custom {
    background: linear-gradient(135deg, #F04A78 0%, #ED1651 50%, #C01041 100%);
}

.bg-gradient-secondary-custom {
    background: linear-gradient(135deg, #CEDF80 0%, #B0D348 50%, #8DAA2E 100%);
}

.bg-gradient-accent-custom {
    background: linear-gradient(135deg, #0D7D6F 0%, #0A6055 50%, #083F38 100%);
}

/* Hero Section Customizado */
/* Cards com Hover Effect Customizado */
.card-hover-lift {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 168, 89, 0.15), 0 10px 10px rgba(0, 168, 89, 0.12);
}

/* Formulário Estilizado */
.form-control-custom {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: #ED1651;
    box-shadow: 0 0 0 0.2rem rgba(237, 22, 81, 0.15);
}

/* Seções com Fundo Alternado */
.section-bg-alternate:nth-of-type(even) {
    background-color: #F8F9FA;
}

.section-bg-alternate:nth-of-type(odd) {
    background-color: #FFFFFF;
}

/* Overlay Escuro para Imagens de Fundo */
.overlay-dark {
    position: relative;
}

.overlay-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.overlay-dark > * {
    position: relative;
    z-index: 2;
}

/* Botões Customizados com Gradiente */
.btn-gradient-primary {
    background: linear-gradient(45deg, #00A859, #33BD7C);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(45deg, #008A47, #00A859);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 168, 89, 0.3);
    color: white;
}

.btn-gradient-secondary {
    background: linear-gradient(45deg, #0066CC, #3385D6);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-gradient-secondary:hover {
    background: linear-gradient(45deg, #0052A3, #0066CC);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 102, 204, 0.3);
    color: white;
}

/* Stats / Números com Destaque */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00A859, #0066CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timeline Style (se necessário) */
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(180deg, #00A859, #0066CC);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00A859;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #00A859;
}

.timeline-item:last-child::before {
    display: none;
}

/* Responsividade Adicional */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 80px 0 60px;
    }
}

@media (min-width: 992px) {
    .hero-subtitle-nowrap {
        white-space: nowrap;
    }
}

/* ===== SEÇÃO INFORMAÇÕES - TIPOGRAFIA FAQ (ESQUERDA) ===== */
#informacoes .item-title {
    font-size: 1.25rem;       /* 20px */
    font-weight: 700;
    line-height: 23px;
    letter-spacing: -1px;
    color: #585C65;
    margin-bottom: 0.3rem;
}

#informacoes .section-text {
    font-size: 1.25rem;       /* 20px */
    font-weight: 400;
    line-height: 23px;
    letter-spacing: -1px;
    color: #777777;
}

/* ===== CTA CARD - SPECS FIGMA ===== */
.cta-card {
    background: rgba(217, 217, 217, 0.36);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* "Vagas limitadas..." — 700 / 20px / line-height 30px */
.cta-vagas {
    font-family: 'UnimedSans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;       /* 20px */
    line-height: 30px;
    text-align: center;
    color: #777777;
    margin-bottom: 1.5rem;
}

/* Botão "Fazer inscrição" — 700 / 24px / border-radius 64px */
.cta-btn {
    font-family: 'UnimedSans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;        /* 24px */
    line-height: 30px;
    text-align: center;
    color: #0A6055;
    text-decoration: none;
    background: #B0D348;
    border-radius: 64px;
    padding: 0.625rem 2rem;   /* ~10px vertical para atingir ~50px height */
    margin-bottom: 1.5rem;
    display: block;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background: #8DAA2E;
    color: #0A6055;
    transform: translateY(-2px);
}

/* Área de contato — flex coluna com gap 16px */
.cta-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* "Tem alguma dúvida? / Entre em contato..." — 400 / 20px / 22px */
.cta-contact-text {
    font-family: 'UnimedSans', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;       /* 20px */
    line-height: 22px;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 0.5rem;
}

/* "0800 001 9797" — 700 / 24px / letter-spacing -1px */
.cta-phone {
    font-family: 'UnimedSans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;        /* 24px */
    line-height: 52px;
    text-align: center;
    letter-spacing: -1px;
    color: #777777;
    margin-bottom: 0;
}

/* Mobile: ajustes responsivos CTA */
@media (max-width: 767.98px) {
    #informacoes .item-title,
    #informacoes .section-text {
        font-size: 1rem;
        line-height: 1.4;
        letter-spacing: -0.5px;
    }

    .cta-card {
        padding: 1.75rem 1.25rem;
    }

    .cta-vagas {
        font-size: 1rem;
        line-height: 1.5;
    }

    .cta-btn {
        font-size: 1.25rem;
    }

    .cta-contact-text {
        font-size: 1rem;
        line-height: 1.4;
    }

    .cta-phone {
        font-size: 1.25rem;
        line-height: 1.5;
    }
}
