/* ========================================
   VARIÁVEIS CSS
   ======================================== */
:root {
    --cor-primaria: #e6a7c3;
    --cor-primaria-hover: #e6a7c3b4;
    --cor-fundo: #05529e06;
    --cor-texto: #000;
    --cor-destaque: #0eb385;
    --cor-alerta: red;
    --fonte-principal: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --sombra-card: 1px 0.5px 3.5px 1px #000;
    --sombra-navbar: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 7px;
    --transition-speed: 0.3s;
}

/* ========================================
   RESET E CONFIGURAÇÕES BÁSICAS
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-principal);
    line-height: 1.6;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TIPOGRAFIA (ALINHAMENTO)
   ======================================== */
p,
li {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* Mantém textos centralizados onde o layout pede explicitamente */
.text-center p,
.text-center li {
    text-align: center;
    text-justify: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   NAVEGAÇÃO
   ======================================== */
.navbar {
    background-color: var(--cor-primaria);
    box-shadow: var(--sombra-navbar);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-weight: 700;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-brand {
    color: var(--cor-texto);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--cor-texto);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.nav-link:hover {
    color: var(--cor-destaque);
}

.navbar-toggler {
    display: none;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.navbar-toggler:focus-visible {
    outline: 2px solid var(--cor-texto);
    outline-offset: 2px;
}

.navbar-toggler:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.navbar-toggler:active {
    transform: scale(0.95);
}

.navbar-toggler-icon {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--cor-texto);
    position: relative;
    border-radius: 2px;
    transition: all var(--transition-speed);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--cor-texto);
    left: 0;
    transition: all var(--transition-speed);
    border-radius: 2px;
}

.navbar-toggler-icon::before {
    top: -9px;
}

.navbar-toggler-icon::after {
    bottom: -9px;
}

/* Animação do menu hamburger quando aberto */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ========================================
   LAYOUT RESPONSIVO
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col-md-6,
.col-lg-3,
.col-lg-4,
.col-xl-3,
.col-md-6,
.col-sm-12 {
    padding: 0 0.75rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-xl-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 3rem;
}

.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.d-flex {
    display: flex;
}

/* ========================================
   PERFIL
   ======================================== */
.profile-img {
    border-radius: 50%;
    width: 240px;
    height: 240px;
    margin: 0 auto;
    object-fit: cover;
}

.subtitle {
    font-weight: 600;
    color: #666;
}

/* ========================================
   CARDS
   ======================================== */
.products>h2 {
    margin-bottom: 2.5rem;
}

.cards-container {
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

.card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    max-width: 320px;
    margin: 0 auto;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 2px 2px 8px 2px rgba(0, 0, 0, 0.2);
}

.sombreamento {
    box-shadow: var(--sombra-card);
}

.card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-title {
    font-size: 1.35rem;
    margin: 0;
    font-weight: 700;
    text-align: center;
}

.promocao {
    color: var(--cor-alerta);
}

.card-text {
    margin: 0;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* Badges de atendimento */
.atendimento-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.badge img {
    display: inline-block;
    vertical-align: middle;
    filter: brightness(0.9);
}

.badge .bi {
    font-size: 1rem;
    line-height: 1;
}

.badge-presencial {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.badge-presencial:hover {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    transform: translateX(3px);
}

.badge-online {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border: 1px solid #90caf9;
}

.badge-online:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    transform: translateX(3px);
}

/* ========================================
   BOTÕES
   ======================================== */
.botao-produto {
    display: inline-block;
    background-color: var(--cor-primaria);
    border-radius: var(--border-radius);
    border: none;
    color: var(--cor-texto);
    padding: 0.7rem 1.25rem;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-speed);
    cursor: pointer;
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.botao-produto:hover {
    background-color: var(--cor-primaria-hover);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    color: var(--cor-destaque);
    transform: translateY(-2px);
}

/* ========================================
   REDES SOCIAIS
   ======================================== */
.social-links {
    gap: 1rem;
}

.social-links a {
    transition: transform var(--transition-speed);
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.1);
}

address {
    font-style: normal;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: rgba(8, 8, 8, 0.9);
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
    color: #f0f0f0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links-footer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links-footer a {
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.75rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-decoration: none;
}

.social-links-footer a i {
    font-size: 1.5rem;
    color: #ffffff !important;
}

.social-links-footer a:hover {
    transform: scale(1.15) translateY(-3px);
    background: var(--cor-primaria);
}

.social-links-footer a:hover i {
    color: #080808 !important;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #f0f0f0;
    opacity: 0.85;
}

.foter {
    text-align: center;
    padding-top: 2rem;
}

/* ========================================
   SEÇÃO FAQ
   ======================================== */
.faq-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--cor-texto);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--cor-primaria), var(--cor-destaque));
    border-radius: 2px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--sombra-card);
    overflow: hidden;
    transition: all var(--transition-speed);
}

.faq-item:hover {
    box-shadow: 2px 2px 8px 2px rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--cor-texto);
    transition: background-color var(--transition-speed);
    font-family: var(--fonte-principal);
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question i {
    font-size: 1.2rem;
    transition: transform var(--transition-speed);
    color: var(--cor-primaria);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   SEÇÃO QUANDO PROCURAR AJUDA
   ======================================== */
.help-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.help-intro {
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.help-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.help-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--sombra-card);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 2px 2px 12px 2px rgba(0, 0, 0, 0.15);
}

.help-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-primaria-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.help-icon i {
    font-size: 2rem;
    color: #fff;
}

.help-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cor-texto);
    margin: 0;
}

.help-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.help-cta {
    margin-top: 2rem;
}

.help-cta-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--cor-texto);
    font-weight: 600;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--sombra-card);
    border-left: 4px solid var(--cor-primaria);
}

/* ========================================
   FORMULÁRIO DE CONTATO
   ======================================== */
.contact-form-section {
    padding: 3rem 0;
}

.form-intro {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-size: 1rem;
    color: #666;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.whatsapp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--cor-texto);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--cor-primaria);
    font-size: 1.1rem;
}

.form-control {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--fonte-principal);
    transition: all var(--transition-speed);
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--cor-primaria);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(235, 183, 206, 0.1);
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: var(--cor-alerta);
    font-size: 0.85rem;
    display: none;
    margin-top: -0.25rem;
}

.form-group.error .form-control {
    border-color: var(--cor-alerta);
    background: #fff5f5;
}

.form-group.error .error-message {
    display: block;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-submit {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    font-family: var(--fonte-principal);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    font-size: 1.4rem;
}

/* ========================================
   MEDIA QUERIES - RESPONSIVIDADE
   ======================================== */

/* Responsividade para FAQ e Quando Procurar Ajuda */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .faq-answer.active {
        padding: 0 1rem 1rem 1rem;
    }

    .help-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .help-container {
        grid-template-columns: 1fr;
    }

    .help-card {
        padding: 1.5rem;
    }

    .help-icon {
        width: 60px;
        height: 60px;
    }

    .help-icon i {
        font-size: 1.7rem;
    }

    .form-wrapper {
        padding: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Telas extra grandes */
@media (min-width: 1400px) {
    .col-xl-3 {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .cards-container {
        max-width: 1600px;
    }
}

/* Telas médias - Laptops (1200px a 1399px) */
@media (min-width: 993px) and (max-width: 1399px) {

    .col-lg-3,
    .col-xl-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .card {
        max-width: 100%;
    }
}

/* Tablets e dispositivos médios */
@media (max-width: 992px) {

    .col-lg-3,
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .descolar-texto {
        padding-top: 1.5rem;
    }

    .card {
        max-width: 100%;
    }
}

/* Smartphones e dispositivos pequenos */
@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
    }

    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        display: none;
        width: 100%;
        margin-top: 1rem;
        animation: slideDown 0.3s ease-out;
    }

    .navbar-collapse.active {
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--border-radius);
        padding: 0.5rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 0.875rem 1.25rem;
        transition: all var(--transition-speed);
    }

    .nav-link:hover {
        background: var(--cor-primaria);
        padding-left: 1.5rem;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-lg-3,
    .col-lg-4,
    .col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .descolar-texto {
        padding-top: 1.5rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    .card {
        max-width: 100%;
    }

    /* Inverter ordem do mapa e endereço */
    #contato .row {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* Dispositivos muito pequenos */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .profile-img {
        max-width: 60%;
        width: 150px;
        height: 150px;
    }

    .card-body {
        padding: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .col-lg-3,
    .col-lg-4,
    .col-xl-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .card {
        max-width: 100%;
    }
}

/* ========================================
   OTIMIZAÇÕES DE PERFORMANCE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    /* Descomente para suporte a tema escuro
    :root {
        --cor-fundo: #1a1a1a;
        --cor-texto: #ffffff;
    }

    .card {
        background: #2a2a2a;
    }
    */
}