/* ============================================= */
/* --- ARQUIVO: mobile.css (VERSÃO FINAL) --- */
/* ============================================= */

/* --- 1. ESCONDENDO ITENS DO DESKTOP --- */
.desktop-nav, .desktop-only, .mega-menu-wrapper {
    display: none !important;
}

/* --- 2. LAYOUT SANDUÍCHE E AJUSTES GERAIS --- */
.steps-container,
.plans-container,
.footer-grid,
.hero-content-container,
.profile-layout,
.listing-header,
.provider-card,
.featured-post,
.shop-header,
.form-row,
.testimonial-grid {
    flex-direction: column !important;
    gap: 30px;
}

.category-grid,
.blog-grid,
.product-grid {
    grid-template-columns: 1fr !important;
}

/* --- 3. TAMANHO DAS FONTES E TÍTULOS --- */
.hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2;
    text-align: left; /* 1. Alinha o texto para a direita */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); /* 2. Sombra mais suave */
}
h1, .hero-professionals .hero-title, .page-header h1 {
    font-size: 2.1rem !important;
    line-height: 1.3;
}
h2, .section-title, .cta-title {
    font-size: 1.8rem !important;
}
.hero-subtitle {
    font-size: 1.1rem !important;
    max-width: 100%;
}

/* --- 4. CALIBRAGEM DE PADDINGS --- */
.page-section {
    padding-top: 100px !important; /* Aumenta o espaçamento superior para 100px */
}
.feature-section,
.category-section,
.testimonial-section,
.cta-section,
.plans-section,
.faq-section,
.listing-page,
.shop-section {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}
.main-header .container {
    height: 70px; /* Reduz um pouco a altura do header no mobile */
}
.profile-header {
    padding: 20px !important;
    text-align: center;
}
.profile-header__avatar {
    margin: 0 auto;
    width: 120px;
    height: 120px;
}
.login-form, .payment-form, .signup-form {
    padding: 20px;
}

/* --- 5. CORREÇÃO DO CARROSSEL (HERO SECTION) --- */
.hero-revamped {
    min-height: auto;
    height: auto;
    padding: 100px 20px 60px 20px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}
.hero-cta-panel {
    flex-basis: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
}

/* --- 6. ESTILOS DO NOVO MENU MOBILE --- */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 0, 25, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Abaixo do botão toggle */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}
/* Classe que ativa o menu */
.main-nav.active .mobile-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.mobile-nav-menu li {
    margin-bottom: 25px;
}
.mobile-nav-menu a {
    text-decoration: none;
    color: var(--white-color);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-headings);
    transition: color 0.3s ease;
}
.mobile-nav-menu a:hover {
    color: var(--primary-color);
}
.mobile-nav-menu .btn-impact {
    margin-top: 40px;
    padding: 18px 40px;
    font-size: 1.1rem;
}
/* Posição e estilo do botão de menu (hambúrguer/X) */
.mobile-menu-toggle {
    z-index: 1001; /* Fica acima de tudo */
    position: relative;
}

/* --- 7. AJUSTES FINOS --- */
.footer-grid {
    text-align: center;
}
.social-links {
    justify-content: center;
}


/* --- CORREÇÃO FINAL: Centraliza o profissional na foto da home --- */

/* Alvo: Exclusivamente o primeiro slide do carrossel */
.hero-carousel .hero-slide:nth-child(1) {
    /* Define o ponto de foco da imagem. 25% na horizontal, 50% na vertical. */
    background-position: 25% 50% !important;
}


/* --- AJUSTE CIRÚRGICO: PÁGINA DA LOJA (MARKETPLACE) --- */

/* Alvo: A seção hero da loja */
.marketplace-hero {
    /* Reduz drasticamente o espaçamento superior */
    padding-top: 100px !important;
}

/* Alvo: O título principal da loja */
.marketplace-hero .hero-title {
    /* Diminui o tamanho da fonte para se ajustar melhor à tela */
    font-size: 2.2rem !important;
    line-height: 1.3;
}

/* Alvo: A barra de busca */
.search-bar {
    padding: 6px; /* Reduz o padding interno */
}
.search-bar input {
    font-size: 1rem; /* Diminui a fonte do campo de busca */
    padding: 8px 0;
}
.search-bar .btn {
    padding: 10px 20px; /* Diminui o tamanho do botão "Buscar" */
    font-size: 0.9rem;
}

/* --- AJUSTE CIRÚRGICO: Centraliza os cards de planos (Página Profissionais) --- */

/* Alvo: O container dos planos de assinatura */
.plans-container {
    /* Este comando alinha os itens no centro do eixo transversal (horizontal, neste caso) */
    align-items: center;
}

/* --- AJUSTE CIRÚRGICO: Espaçamento do badge "Mais Popular" nos planos --- */

/* Alvo: O card de plano que tem o destaque "featured" (o Premium) */
.plan-card.featured {
    /* Adiciona uma margem no topo, empurrando-o para baixo e criando espaço */
    margin-top: 25px;
}

/* =================================================================== */
/* --- CORREÇÕES FINAIS DE TIPOGRAFIA E LAYOUT (MÓVEL) --- */
/* =================================================================== */

/* 1. Ajustes no Formulário de Cadastro (cadastro.html) */
body#page-signup h1,
body#page-signup #signup-title {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
}

body#page-signup #signup-subtitle {
    font-size: 1rem !important;
}

body#page-signup .step-title {
    font-size: 1.5rem !important;
}

/* 2. Ajustes nas Páginas de Listagem de Serviços (ex: /paginas-de-listagem/providers-residencial.html) */
.listing-page .listing-title h1 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
}

.listing-page .listing-title p {
    font-size: 1rem !important;
}

/* ========================================================== */
/* --- ARQUIVO mobile.css - VERSÃO FINAL E CENTRALIZADA --- */
/* ========================================================== */

/* --- 1. GERAL: ESCONDER ITENS DE DESKTOP E AJUSTAR LAYOUTS --- */
.desktop-nav, .desktop-only, .mega-menu-wrapper {
    display: none !important;
}
.steps-container, .plans-container, .footer-grid, .hero-content-container,
.profile-layout, .listing-header, .provider-card, .featured-post,
.shop-header, .form-row, .testimonial-grid {
    flex-direction: column !important;
    gap: 30px;
}
.category-grid, .blog-grid, .product-grid, .plan-switcher {
    grid-template-columns: 1fr !important;
}

/* --- 2. GERAL: TIPOGRAFIA E PADDINGS --- */
h1, .page-header h1, .hero-professionals .hero-title {
    font-size: 2rem !important; line-height: 1.3 !important;
}
h2, .section-title, .cta-title {
    font-size: 1.8rem !important; text-align: center !important;
}
.page-section, .feature-section, .category-section, .testimonial-section,
.cta-section, .plans-section, .faq-section, .listing-page, .shop-section {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* --- 3. PÁGINA INICIAL (index.html) --- */
.hero-revamped {
    min-height: auto; height: auto; padding: 100px 20px 60px 20px;
    border-radius: 0 0 30px 30px;
}
.hero-revamped .hero-title {
    font-size: 2.5rem !important;
}
.hero-carousel .hero-slide:nth-child(1) {
    background-position: 25% 50% !important;
}
.hero-cta-panel {
    background: rgba(255, 255, 255, 0.9); padding: 30px;
}

/* --- 4. MENU MOBILE --- */
.mobile-menu-toggle { z-index: 1001; position: relative; }
.mobile-menu-toggle i.fa-xmark { color: var(--white-color) !important; }
.mobile-nav-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: rgba(10, 0, 25, 0.98);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}
.main-nav.active .mobile-nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav-menu ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.mobile-nav-menu li { margin-bottom: 25px; }
.mobile-nav-menu a {
    text-decoration: none; color: var(--white-color); font-size: 1.8rem;
    font-weight: 700; font-family: var(--font-headings); transition: color 0.3s ease;
}
.mobile-nav-menu a:hover { color: var(--primary-color); }
.mobile-nav-menu .btn-impact { margin-top: 40px; padding: 18px 40px; font-size: 1.1rem; }

/* --- 5. PÁGINA DE CADASTRO (cadastro.html) --- */
.signup-form { padding: 25px; }
.signup-form h1, .signup-form #signup-title {
    font-size: 1.8rem !important; line-height: 1.3 !important; text-align: center !important;
}
.signup-form p, .signup-form #signup-subtitle {
    font-size: 1rem !important; line-height: 1.5 !important; text-align: center !important;
    margin-bottom: 35px !important;
}
.signup-form .step-title {
    font-size: 1.5rem !important; text-align: center !important;
}

/* --- 6. PÁGINAS DE LISTAGEM DE SERVIÇOS --- */
.listing-page .listing-title h1 {
    font-size: 1.6rem !important; /* Diminui o tamanho do título */
    line-height: 1.3 !important;
    text-align: left !important; /* Alinha o título à esquerda */
}
.listing-page .listing-title p {
    font-size: 1rem !important;
    text-align: left !important; /* Alinha o subtítulo à esquerda */
}

/* --- 7. PÁGINA DE SUCESSO NO CADASTRO (cadastro-sucesso.html) --- */
.success-box { padding: 30px; text-align: center; }
.success-icon { font-size: 4rem !important; }
.success-box h1 { font-size: 1.8rem !important; }
.success-box p { font-size: 1rem !important; }
.success-actions {
    flex-direction: column !important; gap: 15px; align-items: stretch;
}

/* --- 8. OUTROS AJUSTES FINOS --- */
.plan-card.featured { margin-top: 25px; }
.plans-container { align-items: center; }
.plan-option .plan-price { font-size: 1.3rem !important; }

/* ========================================================== */
/* --- REFINAMENTOS FINAIS: BOTÕES E TELA DE REVISÃO --- */
/* ========================================================== */

/*
   1. CORREÇÃO: Botões de Navegação do Formulário
   Alvo: Botões "Voltar", "Revisar Cadastro", "Corrigir", etc.
*/
.form-navigation .btn {
    display: inline-flex !important;   /* Alinha ícone e texto na mesma linha */
    justify-content: center !important; /* Centraliza o conteúdo horizontalmente */
    align-items: center !important;   /* Centraliza o conteúdo verticalmente */
    gap: 8px !important;              /* Cria um espaço entre o ícone e o texto */
}


/*
   2. CORREÇÃO: Alinhamento da Tela de Revisão
   Alvo: O texto de revisão que estava centralizado indevidamente.
*/
.signup-form .review-box,
.signup-form .review-box h4,
.signup-form .review-box p,
.signup-form .review-box ul,
.signup-form .review-box li {
    text-align: left !important; /* Força o alinhamento de todo o conteúdo à esquerda */
}


/* --- AJUSTE FINAL: Centraliza o botão no cabeçalho do perfil --- */
.profile-header__actions {
    display: flex;
    justify-content: center;
    width: 100%; /* Garante que o container ocupe todo o espaço disponível */
}




/* =================================================================== */
/* === A REVOLUÇÃO DO DASHBOARD (VERSÃO FINAL POLIDA E CORRIGIDA) === */
/* =================================================================== */

/* --- FUNDAÇÃO: O CORPO DA PÁGINA --- */
.dashboard-page {
    /* Padding inferior ajustado já que o botão não é mais flutuante */
    padding: 110px 0 60px; 
    background-color: #f4f5f7;
}

/* --- CABEÇALHO DA PÁGINA (ALINHAMENTO FINAL) --- */
.dashboard-page .page-header {
    display: flex;
    justify-content: space-between; /* Coloca um item na esquerda e outro na direita */
    align-items: center;            /* Alinha os dois itens verticalmente */
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 25px;
    margin-bottom: 40px;
}

.dashboard-page .page-header h1 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-page .page-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 5px; /* Um respiro sutil abaixo do título */
    padding: 0;
}


/* --- ESTRUTURA DE CARDS --- */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
}
.dashboard-main, .dashboard-sidebar {
    width: 100%;
}
.dashboard-sidebar {
    order: -1;
}

/* CARD 1: RESUMO DO PERFIL (ANTIGA SIDEBAR) */
.widget-card {
    background: linear-gradient(145deg, var(--primary-color), #5c328b);
    color: white;
    padding: 25px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 25px rgba(93, 0, 255, 0.2);
    display: flex; /* ATIVADO: Para controlar o alinhamento interno */
    flex-direction: column; /* Itens empilhados verticalmente */
    align-items: center; /* Centraliza tudo horizontalmente */
    text-align: center; /* Garante que o texto também se centralize */
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    opacity: 0.9;
    margin-bottom: 20px;
}
.progress-ring__track { stroke: rgba(255, 255, 255, 0.3); }
.progress-ring__bar { stroke: white; }
.progress-text {
    color: white;
    font-size: 2rem;
}
/* --- WIDGETS DA SIDEBAR (ALINHAMENTO CORRIGIDO) --- */
.widget-description {
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    opacity: 0.9;
    margin: 20px 0 15px; /* A margem inferior foi reduzida de 25px para 15px */
    max-width: 95%;
    padding: 10px 35px;
}

/* AJUSTADO: Botão perfeitamente centralizado */
.widget-card .btn {
    background-color: white;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 20px;
    padding: 10px 25px;
    display: inline-block; /* Comportamento de botão normal */
    width: auto; /* Largura baseada no conteúdo */
}

/* CARD 2: AS ESTATÍSTICAS */
.stats-cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card-bg);
    border: none;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.stat-card__icon { display: none; }
.stat-card__value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2px;
}
.stat-card__label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* CARDS DO FORMULÁRIO E ESTILO DOS INPUTS */
.dashboard-form .form-section {
    background: var(--card-bg);
    padding: 25px 20px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.dashboard-form .form-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    color: #212529;
    background-color: #f4f5f7;
    border: 1px solid #f4f5f7;
    border-radius: 12px;
    box-shadow: none;
    transition: all 0.2s ease-in-out;
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}
.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(93, 0, 255, 0.15);
}

/* PORTFÓLIO */
.portfolio-manager {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.portfolio-item, .add-photo-label {
    height: 125px;
    border-radius: 12px;
}
.add-photo-label {
    border: 2px dashed #dce1e7;
    background-color: #f8f9fa;
}
.delete-photo-btn {
    background-color: rgba(229, 62, 62, 0.8);
    color: white;
    border: none;
    backdrop-filter: blur(2px);
    opacity: 1;
    transform: scale(1);
}

/* AÇÃO: BOTÃO DE SALVAR (NÃO MAIS FLUTUANTE) */
.form-actions {
    position: static; /* Remove o comportamento flutuante */
    width: 100%;
    padding: 30px 0 0; /* Apenas espaço no topo, antes do botão */
    background: none;  /* Remove o fundo gradiente */
    text-align: right; /* Alinha o botão à direita */
    z-index: 1;
}
.form-actions {
    text-align: center; /* Centraliza conteúdo inline/inline-block */
}

.form-actions .btn-primary {
    width: auto; /* Já está correto */
    max-width: none;
    margin: 0 auto; /* Opcional: para fallback */
    display: inline-block; /* Já está correto */
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

/* BOTÃO DE LOGOUT ELEGANTE E HARMONIZADO (VERSÃO CORRIGIDA) */
.btn-logout {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(93, 0, 255, 0.08);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    transition: background-color 0.2s ease;
}
.btn-logout:hover {
    background-color: rgba(93, 0, 255, 0.15);
    color: var(--primary-color);
}
.btn-logout i {
    margin-right: 0;
}


/* =================================================================== */
/* === A REVOLUÇÃO DO RODAPÉ (MOBILE-FIRST E GENIAL) === */
/* =================================================================== */

/* --- A BASE DO NOVO RODAPÉ --- */
.main-footer-section {
    padding: 40px 15px 20px; /* Reduz o padding vertical drasticamente */
    text-align: center; /* Centraliza todo o conteúdo */
}

/* Destruindo o grid do desktop e simplificando */
.footer-grid {
    flex-direction: column !important; /* Força o empilhamento */
    gap: 25px !important; /* Espaçamento entre os blocos */
    margin-bottom: 30px;
}

/* A coluna principal com logo e redes sociais */
.footer-column.about-column {
    margin-bottom: 10px;
}

/* O logo com mais destaque */
.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.about-column p {
    font-size: 0.95rem;
    max-width: 300px; /* Evita que a descrição fique muito larga */
    margin: 0 auto 20px; /* Centraliza a descrição */
}

/* Ícones de redes sociais maiores e mais espaçados */
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px; /* Espaço generoso entre os ícones */
}
.social-links a {
    font-size: 1.6rem; /* Ícones bem maiores e fáceis de tocar */
    color: var(--text-primary);
}

/* --- LISTAS DE LINKS: HORIZONTAIS E DISCRETAS --- */
.footer-column h4 {
    display: none; /* Esconde os títulos "Navegação" e "Suporte" */
}

.footer-column ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permite que os links quebrem a linha se necessário */
    gap: 10px 20px; /* Espaçamento vertical e horizontal entre os links */
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--card-border); /* Linha sutil de separação */
    padding-top: 25px;
}

.footer-column ul li a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- COPYRIGHT: LIMPO E SIMPLES --- */
.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* --- AJUSTE PONTUAL PARA A PÁGINA DE PROFISSIONAIS --- */

/*
  Esta regra usa a classe '.hero-professionals' que envolve a seção
  para garantir que o alinhamento seja aplicado SOMENTE ao título
  dentro dela, sem afetar outras páginas.
*/
.hero-professionals .hero-title {
    /* --- ALINHAMENTO --- */
    text-align: center; /* Mantém o título centralizado */

    /* --- LARGURA / PESO DA FONTE --- */
    /* Use valores como 400 (normal), 500, 600, 700 (bold) ou 800 (extra-bold) */
    font-weight: 600; /* Deixa a fonte mais "grossa" e encorpada */

    /* --- SOMBRA DO TEXTO --- */
    /* A sombra foi suavizada para ser menos intensa. */
    /* Formato: [deslocamento horizontal] [deslocamento vertical] [esfumaçado] [cor] */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.114); /* Sombra mais discreta */

    /* --- TAMANHO DA FONTE --- */
    /* Ajuste o tamanho conforme sua preferência */
    font-size: 2.2rem; /* Exemplo: um pouco maior que o padrão */

    /* --- ESPAÇAMENTO ENTRE LETRAS --- */
    /* Pode ajudar na legibilidade. Use 'normal' ou valores como -0.5px, 1px, etc. */
    letter-spacing: normal;

    /* --- ALTURA DA LINHA --- */
    /* Útil se o título quebrar em duas linhas, para controlar o espaço entre elas. */
    line-height: 1.2;

    padding: 0 0 25px 0;
}