/* 
 * Me Indica Alguém? v2 - Home Page CSS
 * Ultra-Responsive / Luxury Enterprise Design
 */

/* ================= HERO SECTION ================= */
.hero-section {
    position: relative;
    padding: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    background-color: #edf2f7;
    overflow: hidden;
}

/* Container principal do conteúdo da hero (texto + imagem) */
.hero-section .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) 1.5rem clamp(2rem, 4vw, 3rem);
    text-align: left;
    /* Fundo: gradiente sólido branco à esquerda que se dissolve para transparente à direita */
    background-image: 
        linear-gradient(to right, 
            #edf2f7 0%, 
            #edf2f7 40%, 
            rgba(237, 242, 247, 0.85) 55%, 
            rgba(237, 242, 247, 0) 75%
        );
}

/* Imagem de fundo posicionada com pseudo-elemento para controle total */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;
    background-image: url('../img/hero-bg.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 1;
}

/* ===== DARK MODE ===== */
html.dark .hero-section {
    background-color: #0f172a;
}

html.dark .hero-section .hero-content {
    background-image: 
        linear-gradient(to right, 
            #0f172a 0%, 
            #0f172a 40%, 
            rgba(15, 23, 42, 0.85) 55%, 
            rgba(15, 23, 42, 0) 75%
        );
}

html.dark .hero-section::before {
    opacity: 0.4;
}

/* Nenhum shape flutuante */
.hero-bg-shapes { display: none; }

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

html.dark .hero-title { color: #ffffff; }

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: #475569;
    margin-bottom: 2rem;
    font-weight: 500;
    max-width: 520px;
    line-height: 1.6;
}

html.dark .hero-subtitle { color: #cbd5e1; }

/* ===== HERO FEATURES (Encontre, Avalie, Confie, Feche negócio) ===== */
.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hf-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    max-width: 155px;
}

.hf-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.2rem;
}

html.dark .hf-icon-circle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #93c5fd;
}

.hf-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
}

html.dark .hf-title { color: #f1f5f9; }

.hf-text {
    font-size: 0.73rem;
    color: #64748b;
    line-height: 1.4;
    font-weight: 500;
}

html.dark .hf-text { color: #94a3b8; }

/* ===== SEARCH SECTION OVERRIDES (dentro da hero) ===== */
.search-section {
    max-width: 900px; /* Aumentado de 680px para barra mais longa no desktop */
    margin: 0 0 0;
    position: relative;
    z-index: 20;
}

.search-heading {
    display: none; /* Removido pois o título principal já diz tudo */
}

/* ===== HERO STATS — BARRA AZUL INFERIOR ===== */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #0f4c81 0%, #1a6bb5 50%, #2980d4 100%);
    position: relative;
    z-index: 15;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 1.5rem;
    color: #ffffff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item .stat-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.stat-title {
    font-weight: 700;
    font-size: 0.82rem;
    color: #ffffff;
    line-height: 1.2;
}

.stat-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Dark mode — a barra azul fica levemente mais escura */
html.dark .hero-stats {
    background: linear-gradient(135deg, #0a2d4d 0%, #0f4c81 50%, #1a6bb5 100%);
}

/* =============================================================
   📱 MOBILE RESPONSIVE — HERO SECTION (ULTRA APP-LIKE v5)
   ::before absolute + padding-top no content = 100% compatível
   com Safari iOS, Chrome Android e todos os navegadores reais.
   ============================================================= */

@media (max-width: 992px) {

    .hero-section {
        background-color: #edf2f7;
        min-height: auto;
        position: relative;
        overflow: hidden;
    }

    /* Imagem hero: absolute, cobre o topo da seção */
    .hero-section::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 65vw;
        min-height: 260px;
        max-height: 440px;
        background-image: url('../img/hero-bg-mobile.png');
        background-position: top center;
        background-size: cover;
        background-repeat: no-repeat;
        opacity: 1;
        z-index: 1;
        -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    }

    html.dark .hero-section { background-color: #0f172a; }
    html.dark .hero-section::before { opacity: 0.65; }

    /* Conteúdo hero: padding-top empurra abaixo da imagem */
    .hero-section .hero-content {
        text-align: left;
        padding: 1.5rem 1.25rem 1.5rem;
        padding-top: calc(55vw);
        min-height: auto;
        background: transparent;
        background-image: none;
        position: relative;
        z-index: 10;
    }

    html.dark .hero-section .hero-content {
        background: transparent;
        background-image: none;
    }

    .hero-title {
        font-size: clamp(1.65rem, 6vw, 2.4rem);
        text-shadow: none;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 380px;
        margin-bottom: 1.5rem;
    }

    /* Features: 4 colunas, cards quadrados compactos */
    .hero-features {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
        justify-items: stretch;
        margin-bottom: 0;
        max-width: 100%;
    }

    .hf-item {
        background: #ffffff;
        border-radius: 16px;
        padding: 0.75rem 0.4rem 0.65rem;
        align-items: center;
        text-align: center;
        max-width: none;
        gap: 0.3rem;
        width: 100%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(15, 76, 129, 0.05);
        overflow: hidden;
        /* Prevent vertical stretching on real devices */
        min-height: 0;
    }

    html.dark .hf-item {
        background: rgba(30, 41, 59, 0.7);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .hf-icon-circle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
        background: transparent;
        border: 1.5px solid var(--primary);
        box-shadow: none;
        margin-bottom: 0.15rem;
        flex-shrink: 0;
    }

    html.dark .hf-icon-circle {
        border-color: var(--primary-light);
        color: var(--primary-light);
    }

    .hf-title { font-size: 0.72rem; font-weight: 800; color: var(--text-main); line-height: 1.2; }
    .hf-text { font-size: 0.58rem; line-height: 1.3; color: var(--text-muted); }

    /* Search: relocado após Como Funciona via JS */
    .search-section { max-width: 100%; }

    /* Estilo quando movido para fora do hero */
    .search-section.mobile-relocated {
        display: block;
        padding: 1.5rem 1.25rem 2.5rem;
        margin: 0 auto;
        background: var(--bg-color);
        width: 100%;
        max-width: 600px;
    }

    /* Stats: vertical card list com chevrons - Enterprise App Style */
    .hero-stats {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0;
        gap: 0;
        border-radius: 20px;
        margin: 1.25rem 1rem 0;
        background: #0d4675;
        box-shadow: 0 10px 30px rgba(13, 70, 117, 0.15);
        overflow: hidden;
    }

    html.dark .hero-stats {
        background: #0a2d4d;
    }

    .stat-item {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        padding: 1.15rem 1.5rem;
        border-right: none;
        border-bottom: none;
        position: relative;
        background: transparent;
        transition: background 0.2s ease;
    }

    .stat-item:active {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Inset separator line */
    .stat-item:not(:last-child)::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 4.5rem;
        right: 1.5rem;
        height: 1px;
        background: rgba(255, 255, 255, 0.12);
    }

    /* Chevron arrow on mobile stats */
    .stat-item::after {
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.3);
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.2s ease;
    }

    .stat-item:hover::after {
        transform: translateY(-50%) translateX(3px);
        color: rgba(255, 255, 255, 0.6);
    }

    .stat-item .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        color: #fff;
    }

    .stat-info {
        flex: 1;
        min-width: 0;
        padding-right: 1.5rem;
    }

    .stat-title { 
        font-size: 0.95rem; 
        font-weight: 700; 
        color: #ffffff; 
        margin-bottom: 2px;
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .stat-text { 
        font-size: 0.75rem; 
        color: rgba(255, 255, 255, 0.75); 
        font-weight: 500;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* --- MOBILE ≤576px (iPhone 12/13/14/15, Galaxy S, Pixel) --- */
@media (max-width: 576px) {

    .hero-section::before {
        height: 72vw;
        min-height: 260px;
        max-height: 400px;
    }

    .hero-section .hero-content {
        padding: 1.25rem 1rem 1.25rem;
        padding-top: calc(58vw);
        background: transparent;
        background-image: none;
    }

    html.dark .hero-section .hero-content {
        background: transparent;
        background-image: none;
    }

    .hero-title { font-size: clamp(1.6rem, 7vw, 2rem); }

    .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 1.4rem;
        max-width: 320px;
    }

    .hero-features { gap: 0.5rem; margin-bottom: 0; }

    .hf-item {
        padding: 0.7rem 0.3rem 0.6rem;
        border-radius: 14px;
    }

    .hf-icon-circle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 0.9rem;
        border-width: 1.5px;
    }

    .hf-title { font-size: 0.68rem; }
    .hf-text { font-size: 0.52rem; line-height: 1.2; }

    .hero-stats {
        margin: 0.75rem 0.75rem 0;
        border-radius: 18px;
        padding: 0.5rem 0;
    }

    .stat-item {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .stat-item:not(:last-child)::before {
        left: 3.8rem;
        right: 1rem;
    }

    .stat-item::after { right: 1rem; font-size: 0.7rem; }

    .stat-item .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .stat-info { padding-right: 1rem; }

    .stat-title { font-size: 0.9rem; }
    .stat-text { font-size: 0.7rem; }

    .search-section.mobile-relocated {
        padding: 1rem 1rem 2rem;
    }
}

/* --- MOBILE ≤400px (iPhone SE, Galaxy A, small) --- */
@media (max-width: 400px) {

    .hero-section::before {
        height: 78vw;
        min-height: 240px;
        max-height: 360px;
    }

    .hero-section .hero-content {
        padding: 1rem 0.75rem 1rem;
        padding-top: calc(62vw);
        background: transparent;
        background-image: none;
    }

    html.dark .hero-section .hero-content {
        background: transparent;
        background-image: none;
    }

    .hero-title { font-size: 1.45rem; }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
        max-width: 260px;
    }

    .hero-features { gap: 0.3rem; margin-bottom: 0; }

    .hf-item {
        padding: 0.6rem 0.25rem 0.5rem;
        border-radius: 12px;
    }

    .hf-icon-circle {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 0.8rem;
        border-width: 1px;
    }

    .hf-title { font-size: 0.62rem; }
    .hf-text { font-size: 0.48rem; }

    .hero-stats {
        margin: 0.5rem 0.5rem 0;
        border-radius: 16px;
        padding: 0.4rem 0;
    }

    .stat-item { padding: 0.75rem 0.85rem; gap: 0.6rem; }
    
    .stat-item:not(:last-child)::before {
        left: 3.2rem;
        right: 0.85rem;
    }

    .stat-item::after { right: 0.85rem; font-size: 0.65rem; }

    .stat-item .stat-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .stat-info { padding-right: 0.85rem; }

    .stat-title { font-size: 0.82rem; }
    .stat-text { font-size: 0.65rem; }

    .search-section.mobile-relocated {
        padding: 0.75rem 0.85rem 1.5rem;
    }
}

/* search-section e search-heading já definidos na seção Hero acima */

.search-ultra-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible !important;
}

html.dark .search-ultra-bar {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.search-ultra-bar:focus-within {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(15, 76, 129, 0.15);
}

.search-content-wrapper {
    display: flex;
    align-items: center;
    height: 60px;
}

/* Main Input Section */
.search-main {
    flex: 2;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.search-icon {
    font-size: 1.25rem;
    color: var(--primary);
    margin-right: 1rem;
}

.search-main input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
}

/* ================= LIVE SEARCH DROPDOWN ================= */
/* O dropdown agora é filho de .search-section (fora do form) */

.live-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 100%;
    max-width: 560px;
    margin-top: 0.5rem;
    background: #fdfdfe;
    border: 1.5px solid rgba(15, 76, 129, 0.12);
    border-radius: 16px;
    box-shadow: 
        0 8px 30px rgba(15, 76, 129, 0.10),
        0 20px 50px rgba(0, 0, 0, 0.08);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

html.dark .live-search-dropdown {
    background: #1a202c;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(66, 153, 225, 0.1);
}

.live-search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.live-search-results {
    overflow-y: auto;
    max-height: 380px;
    padding: 0.35rem;
    scroll-behavior: smooth;
}

/* Scrollbar */
.live-search-results::-webkit-scrollbar { width: 4px; }
.live-search-results::-webkit-scrollbar-track { background: transparent; }
.live-search-results::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 10px; }
html.dark .live-search-results::-webkit-scrollbar-thumb { background: var(--gray-700); }

/* Header — compacto */
.live-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

html.dark .live-search-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.live-search-header-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
}

.live-search-header-count {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(15, 76, 129, 0.07);
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
}

html.dark .live-search-header-count {
    background: rgba(66, 153, 225, 0.12);
    color: var(--primary-light);
}

/* Item de resultado */
.live-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: var(--text-main);
    animation: liveSearchFadeIn 0.2s ease forwards;
    opacity: 0;
}

@keyframes liveSearchFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.live-search-item:nth-child(2) { animation-delay: 0.02s; }
.live-search-item:nth-child(3) { animation-delay: 0.04s; }
.live-search-item:nth-child(4) { animation-delay: 0.06s; }
.live-search-item:nth-child(5) { animation-delay: 0.08s; }
.live-search-item:nth-child(6) { animation-delay: 0.10s; }
.live-search-item:nth-child(7) { animation-delay: 0.12s; }
.live-search-item:nth-child(8) { animation-delay: 0.14s; }
.live-search-item:nth-child(9) { animation-delay: 0.16s; }

.live-search-item:hover,
.live-search-item.focused {
    background: rgba(15, 76, 129, 0.06);
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.06);
}

html.dark .live-search-item:hover,
html.dark .live-search-item.focused {
    background: rgba(66, 153, 225, 0.08);
}

.live-search-item:active {
    transform: scale(0.99);
}

/* Avatar */
.ls-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1.5px solid rgba(15, 76, 129, 0.08);
}

html.dark .ls-avatar {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ls-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

/* Info */
.ls-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ls-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ls-name mark {
    background: rgba(15, 76, 129, 0.1);
    color: var(--primary);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 800;
}

html.dark .ls-name mark {
    background: rgba(66, 153, 225, 0.18);
    color: var(--primary-light);
}

.ls-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 700;
    opacity: 0.8;
}

html.dark .ls-category {
    color: var(--primary-light);
}

.ls-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1px;
}

.ls-location {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 500;
}

.ls-location i {
    color: #4facfe;
    font-size: 0.6rem;
}

.ls-rating {
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 600;
    color: #ffc200;
}

.ls-rating span {
    color: var(--text-muted);
    font-weight: 500;
}

/* Arrow */
.ls-arrow {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(15, 76, 129, 0.05);
    color: var(--primary);
    font-size: 0.6rem;
    transition: all 0.2s ease;
}

html.dark .ls-arrow {
    background: rgba(66, 153, 225, 0.08);
    color: var(--primary-light);
}

.live-search-item:hover .ls-arrow {
    background: var(--primary);
    color: white;
    transform: translateX(2px);
}

html.dark .live-search-item:hover .ls-arrow {
    background: var(--primary-light);
    color: var(--dark);
}

/* Footer */
.live-search-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    border-top: 1px solid rgba(15, 76, 129, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

html.dark .live-search-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: var(--primary-light);
}

.live-search-footer:hover {
    background: rgba(15, 76, 129, 0.05);
}

html.dark .live-search-footer:hover {
    background: rgba(66, 153, 225, 0.08);
}

.live-search-footer i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.live-search-footer:hover i {
    transform: translateX(3px);
}

/* Loading */
.live-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.live-search-loading i {
    color: var(--primary);
    font-size: 1rem;
}

html.dark .live-search-loading i {
    color: var(--primary-light);
}

/* Vazio */
.live-search-empty {
    text-align: center;
    padding: 1.5rem 1.25rem;
    color: var(--text-muted);
}

.live-search-empty i {
    font-size: 1.6rem;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
    display: block;
}

html.dark .live-search-empty i {
    color: var(--gray-600);
}

.live-search-empty p {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.live-search-empty .live-search-empty-hint {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

/* =============== LIVE SEARCH — DESKTOP =============== */
@media (min-width: 993px) {
    .live-search-dropdown {
        margin-top: 0.35rem;
        border-radius: 14px;
    }

    .live-search-results {
        padding: 0.3rem;
    }

    .live-search-item {
        padding: 0.5rem 0.6rem;
        border-radius: 10px;
    }
}

/* =============== LIVE SEARCH — MOBILE =============== */
@media (max-width: 992px) {
    .live-search-dropdown {
        max-width: 100%;
        right: 0;
        margin-top: 0.5rem;
        border-radius: 16px;
    }

    .live-search-results {
        max-height: 50vh;
    }

    .ls-avatar {
        width: 40px;
        height: 40px;
    }

    .live-search-item {
        padding: 0.55rem 0.65rem;
        gap: 0.65rem;
    }
}

@media (max-width: 576px) {
    .live-search-dropdown {
        border-radius: 14px;
    }

    .live-search-results {
        max-height: 45vh;
        padding: 0.25rem;
    }

    .ls-avatar {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .ls-avatar-initial {
        font-size: 0.95rem;
    }

    .ls-name {
        font-size: 0.85rem;
    }

    .ls-category {
        font-size: 0.6rem;
    }

    .ls-location, .ls-rating {
        font-size: 0.68rem;
    }

    .ls-arrow {
        width: 22px;
        height: 22px;
        font-size: 0.55rem;
    }

    .live-search-item {
        padding: 0.5rem 0.5rem;
        gap: 0.55rem;
        border-radius: 10px;
    }

    .live-search-footer {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
}

.search-divider {
    width: 1px;
    height: 30px;
    background: var(--gray-200);
}

html.dark .search-divider {
    background: rgba(255, 255, 255, 0.1);
}

/* Location Section */
.search-location {
    flex: 1.5;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.search-location .premium-select {
    width: 100%;
    min-width: 0;
}

.search-location .ps-trigger {
    border: none !important;
    background: transparent !important;
    height: 60px;
    padding: 0 0.5rem;
    box-shadow: none !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 0.8rem !important;
    width: 100%;
    min-width: 0;
}

.search-location .ps-trigger span {
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-location .ps-dropdown {
    width: 280px !important;
    left: auto !important;
    right: 0 !important;
}

.select-icon {
    font-size: 1.1rem;
    color: var(--primary);
    margin-right: 0.5rem;
}

/* GPS Button PC */
.geo-btn-minimal {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 76, 129, 0.05) !important;
    border: 1px solid rgba(15, 76, 129, 0.1) !important;
    border-radius: 12px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.geo-btn-minimal:hover {
    background: rgba(15, 76, 129, 0.1) !important;
    transform: rotate(15deg);
}

/* Action Section */
.btn-ultra-search {
    height: 60px;
    padding: 0 2.5rem;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .search-ultra-bar {
        border-radius: 22px;
        padding: 10px;
        background: #ffffff;
        border-color: #e2e8f0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    html.dark .search-ultra-bar {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .search-content-wrapper {
        display: flex;
        flex-wrap: wrap;
        height: auto;
        gap: 10px;
    }

    /* Input de busca: ocupa linha inteira */
    .search-main {
        width: 100%;
        flex: 0 0 100%;
        min-height: 50px;
        height: 50px;
        background: #f8fafc;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        padding: 0 1rem;
        display: flex;
        align-items: center;
        box-shadow: none !important;
    }

    /* Estado + GPS + Buscar: mesma linha */
    .search-location {
        flex: 1 1 0;
        min-width: 0;
        min-height: 48px;
        height: 48px;
        background: #f8fafc;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        padding: 0 0.75rem;
        display: flex;
        align-items: center;
        box-shadow: none !important;
        gap: 0.5rem;
    }

    html.dark .search-main, html.dark .search-location {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.08);
    }

    /* Absolute cleanup of browser default styles on mobile */
    .search-main input, 
    .search-location input,
    .search-location select,
    .search-location .ps-trigger {
        border: none !important;
        background: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        outline: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
        height: 100% !important;
        font-size: 16px !important;
        color: var(--text-main) !important;
    }

    /* Fixed alignment for icons in mobile capsules */
    .search-icon, .select-icon {
        font-size: 1.1rem;
        margin-right: 0.6rem;
        flex-shrink: 0;
        color: var(--primary);
    }

    .search-divider {
        display: none;
    }

    .search-location .premium-select {
        flex: 1;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .search-location .ps-trigger {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        min-width: 0;
        height: 48px !important;
        font-size: 0.9rem !important;
    }

    .search-location .ps-trigger .arrow-icon {
        font-size: 0.65rem;
    }

    .geo-btn-minimal {
        width: 40px;
        height: 40px;
        min-width: 40px;
        background: rgba(15, 76, 129, 0.08) !important;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(15, 76, 129, 0.1) !important;
        font-size: 0.9rem;
    }

    /* Botão Buscar — compacto na mesma linha */
    .search-action {
        flex: 0 0 auto;
        padding: 0;
        margin: 0;
    }

    .btn-ultra-search {
        width: auto;
        height: 48px;
        justify-content: center;
        border-radius: 14px;
        font-size: 0.95rem;
        font-weight: 700;
        padding: 0 1.25rem;
        background: var(--primary);
        box-shadow: 0 8px 20px rgba(15, 76, 129, 0.2);
        gap: 0.5rem;
    }

    .btn-ultra-search span {
        display: inline;
    }
}

/* ===== SEARCH — MOBILE PADRÃO (≤576px) ===== */
@media (max-width: 576px) {
    .search-ultra-bar {
        border-radius: 18px;
        padding: 8px;
    }

    .search-content-wrapper {
        gap: 8px;
    }

    .search-main {
        min-height: 46px;
        height: 46px;
        border-radius: 12px;
        padding: 0 0.75rem;
    }

    .search-main input {
        font-size: 15px !important;
    }

    .search-location {
        min-height: 44px;
        height: 44px;
        border-radius: 12px;
        padding: 0 0.6rem;
    }

    .search-location .ps-trigger {
        font-size: 0.85rem !important;
        height: 44px !important;
        gap: 0.4rem;
    }

    .geo-btn-minimal {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
        font-size: 0.8rem;
    }

    .btn-ultra-search {
        height: 44px;
        border-radius: 12px;
        font-size: 0.88rem;
        padding: 0 1rem;
    }

    .search-icon {
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .select-icon {
        font-size: 0.95rem;
        margin-right: 0.4rem;
    }
}

/* ===== SEARCH — MOBILE MUITO PEQUENO (≤400px) ===== */
@media (max-width: 400px) {
    .search-ultra-bar {
        border-radius: 16px;
        padding: 6px;
    }

    .search-content-wrapper {
        gap: 6px;
    }

    /* Em telas muito pequenas, Buscar vira linha inteira */
    .search-content-wrapper {
        display: flex;
        flex-wrap: wrap;
    }

    .search-location {
        flex: 1 1 0;
    }

    .search-action {
        flex: 0 0 auto;
    }

    .search-main {
        min-height: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .search-location {
        min-height: 42px;
        height: 42px;
        border-radius: 10px;
        padding: 0 0.5rem;
    }

    .search-location .ps-trigger {
        font-size: 0.8rem !important;
        gap: 0.3rem;
    }

    .geo-btn-minimal {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 8px;
        font-size: 0.75rem;
    }

    .btn-ultra-search {
        height: 42px;
        border-radius: 10px;
        font-size: 0.82rem;
        padding: 0 0.8rem;
        gap: 0.35rem;
    }
}

.field-icon {
    font-size: 1.1rem;
    color: var(--primary);
    margin-right: 0.8rem;
    opacity: 0.8;
}

html.dark .field-icon {
    color: var(--primary-light);
}

.search-field input,
.search-field select {
    flex: 1;
    border: none;
    background: transparent;
    min-height: 44px;
    height: 100%;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    width: 100%;
}

.search-field input::placeholder {
    color: var(--gray-500);
    font-weight: 400;
}

html.dark .search-field input {
    color: var(--white);
}

html.dark .search-field input::placeholder {
    color: var(--gray-400);
}

/* Actions */
.search-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex: 0 0 auto;
}

/* Inline Geo Button */
.geo-inline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent !important;
    border: none !important;
    border-radius: 8px;
    color: var(--primary) !important;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.5rem;
    padding: 0;
}

html.dark .geo-inline-btn {
    color: var(--primary-light) !important;
}

.geo-inline-btn:hover {
    background: rgba(15, 76, 129, 0.08);
    transform: scale(1.05);
}

html.dark .geo-inline-btn:hover {
    background: rgba(66, 153, 225, 0.15);
}

.geo-inline-btn.located {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

html.dark .geo-inline-btn.located {
    background: rgba(16, 185, 129, 0.2);
}

.search-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 56px;
    padding: 0 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1 1 auto;
}

/* ═══════════ GEO-DETECTED BAR — integrated ═══════════ */
.geo-detected-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.dark .geo-detected-bar {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.geo-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.geo-detected-bar i.fa-location-dot {
    color: #10b981;
    font-size: 1rem;
}

.geo-detected-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

html.dark .geo-detected-text {
    color: var(--white);
}

.geo-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: var(--danger);
    padding: 0.3rem 0.8rem;
    height: 34px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.geo-clear-btn:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    transform: scale(1.05);
}

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

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

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0.5rem;
    }

    .search-location-group {
        border-left: none;
        border-top: 1px solid var(--gray-200);
        padding: 1rem 0 0;
    }

    html.dark .search-location-group {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .search-submit-group {
        padding-left: 0;
    }

    .search-submit-btn {
        width: 100%;
    }
}

/* hero-stats e stat-item já definidos na seção Hero acima */

/* ================= INTELLIGENT FILTER ================= */
.filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
    gap: 1rem;
}

html.dark .filter-toolbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.filter-toolbar-label {
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.filter-toolbar-label i {
    color: var(--primary);
}

.filter-btn-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid var(--gray-200);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

html.dark .filter-btn {
    border-color: var(--gray-700);
    color: var(--gray-400);
}

.filter-btn:hover {
    background: rgba(15, 76, 129, 0.05);
    color: var(--primary);
    border-color: var(--primary);
}

html.dark .filter-btn:hover {
    background: rgba(66, 153, 225, 0.1);
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
}

html.dark .filter-btn.active {
    background: var(--primary-light);
    color: var(--dark);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .filter-toolbar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        padding: 1rem;
    }

    .filter-toolbar-label {
        justify-content: center;
        margin-bottom: 0.8rem;
    }

    .filter-btn-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        width: 100%;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.6rem 0.2rem;
        font-size: 0.75rem;
        white-space: normal;
        line-height: 1.2;
    }
}

/* ================= PROVIDER GRID (LUXURY RESPONSE) ================= */
.services-section {
    padding: var(--space-3xl) 0;
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.providers-grid {
    display: grid;
    /* Auto-filling grid: cards have a logical min/max width to prevent stretching or squishing */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 450px), 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}

.provider-list-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 100%;
    /* Garante que todos os cards na mesma linha tenham a mesma altura */
}

.provider-list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), var(--glass-shadow);
    border-color: var(--primary);
}

.provider-list-inner {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    gap: 1.25rem;
    height: 100%;
}

/* Favorite Button (Top-Right - Original) */
.provider-fav-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    padding: 2px;
    display: flex;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.provider-fav-btn:hover {
    color: var(--secondary);
    transform: scale(1.2);
}

.provider-fav-btn.active {
    color: var(--secondary);
    filter: drop-shadow(0 0 8px rgba(255, 75, 75, 0.3));
}

/* Left Section: Avatar Compacto e Luxuoso */
.provider-list-left {
    flex-shrink: 0;
}

.provider-avatar-img,
.provider-avatar-initial {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    /* Quadrado arredondado estilo App */
    background-color: #121826 !important; /* Fundo escuro fixo para preservar cores de logos transparentes */
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

html.dark .provider-avatar-img,
html.dark .provider-avatar-initial {
    border-color: var(--gray-700);
}

.provider-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    text-transform: uppercase;
}

/* Middle Section: Informações com Hierarquia */
.provider-list-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-right: 20px;
    /* Espaço para o botão de info */
}

.provider-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.provider-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 700;
}

.provider-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.provider-location i {
    color: #4facfe;
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2px;
}

.rating-number {
    font-weight: 700;
    color: #ffc200;
    font-size: 0.95rem;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Right Section: Ação Discreta (Seta ou Info) */
.provider-list-right {
    flex-shrink: 0;
}

.btn-info-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent; /* Alterado para parecer mais com uma seta de navegação */
    color: var(--primary);
    border: 2px solid rgba(15, 76, 129, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: static; /* Importante para o pseudo-elemento pegar o card todo */
}

/* Pseudo-elemento para tornar o card todo clicável APENAS NO CELULAR */
@media (max-width: 768px) {
    .btn-info-action::after {
        content: '';
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        z-index: 1; /* Cobre o card */
    }
}

html.dark .btn-info-action {
    color: var(--primary-light);
    border-color: rgba(255, 255, 255, 0.1);
}

.provider-list-card:hover .btn-info-action {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(4px); /* Move levemente para a direita como indicação de ir adiante */
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
}

html.dark .provider-list-card:hover .btn-info-action {
    background: var(--primary-light);
    color: var(--dark);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 📱 MOBILE HORIZONTAL COMPACT (O segredo do luxo) */
@media (max-width: 576px) {
    .providers-grid {
        gap: 1rem;
    }

    .provider-list-inner {
        padding: 1rem;
        gap: 1rem;
    }

    .provider-avatar-img,
    .provider-avatar-initial {
        width: 70px;
        height: 70px;
        border-radius: 14px;
    }

    .provider-name {
        font-size: 1.05rem;
    }

    .provider-category {
        font-size: 0.75rem;
    }

    .provider-fav-btn {
        top: 0.5rem;
        right: 0.75rem;
        font-size: 1rem;
    }

    .btn-info-action {
        width: 36px;
        height: 36px;
    }
}


/* ================= CATEGORIES ================= */
.categories-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, transparent 100%);
}

html.dark .categories-section {
    background: linear-gradient(180deg, var(--gray-900) 0%, transparent 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-lg);
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border-radius: 24px;
    background: var(--light);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

html.dark .cat-card {
    background: var(--dark);
    border-color: var(--gray-800);
}

.cat-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cat-card h4 {
    font-size: 1rem;
    font-weight: 600;
}

.cat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(15, 76, 129, 0.1);
    transform: translateY(-5px);
}

.cat-card:hover .cat-icon {
    transform: scale(1.15) rotate(5deg);
}

/* ================= RESPONSIVE LUXURY ================= */

/* Tablets and small desktops */
@media (max-width: 992px) {
    .search-form {
        flex-wrap: wrap;
    }

    .search-group:not(:last-of-type) {
        flex: 1 1 40%;
    }
}

/* Mobile Devices (Ultra-Responsive Stack) */
@media (max-width: 768px) {
    .search-bar-glass {
        border-radius: 24px;
        /* Un-pill to stack nicely */
        padding: 1.2rem !important;
    }

    .search-form {
        flex-direction: column;
        gap: 0.8rem;
    }

    .search-group {
        width: 100%;
        padding: 0.5rem 1rem;
        background: var(--gray-50);
        border-radius: 16px;
        border: 1px solid var(--gray-200);
    }

    html.dark .search-group {
        background: rgba(0, 0, 0, 0.2);
        border-color: var(--gray-700);
    }

    .search-separator {
        border-left: none;
        /* Only remove the vertical line, don't hide the element */
        height: auto;
    }

    .search-input {
        padding: 0.5rem 0;
        font-size: 1rem;
        /* iOS anti-zoom */
    }

    /* Wrap buttons nicely */
    .mobile-search-actions {
        display: flex;
        width: 100%;
        gap: 0.8rem;
        margin-top: 0.5rem;
    }

    .geo-btn {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        margin: 0;
    }

    .search-btn {
        flex: 1;
        border-radius: 16px;
        height: 54px;
    }

    /* Adjust grids for mobile */
    .providers-grid {
        grid-template-columns: 1fr;
    }

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

    .cat-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    /* Make search placeholder shorter on tiny screens if needed */
    .search-input::placeholder {
        font-size: 0.95rem;
    }
}

/* ================= NOVO LAYOUT ULTRA-PROFISSIONAL ================= */

/* Features Section */
.features-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.feature-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--glass-border);
}

html.dark .feature-card {
    background: var(--glass-bg);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.bg-primary-soft {
    background: rgba(15, 76, 129, 0.1);
}

.bg-secondary-soft {
    background: rgba(255, 107, 107, 0.1);
}

.bg-info-soft {
    background: rgba(23, 162, 184, 0.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Services Advanced Section */
.services-advanced-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.bg-light-alt {
    background: var(--gray-100);
}

html.dark .bg-light-alt {
    background: var(--dark);
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-adv-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

html.dark .service-adv-card {
    background: var(--gray-900);
}

.service-adv-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 15px 30px rgba(15, 76, 129, 0.1);
}

html.dark .service-adv-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.sa-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-adv-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-adv-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-block {
    display: block;
    width: 100%;
}

/* CTA Banner Section */
.cta-banner-section {
    padding: 4rem 0;
}

.cta-glass-banner {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

html.dark .cta-glass-banner {
    background: var(--glass-bg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.cta-glass-banner h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.cta-glass-banner p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.shadow-success {
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

/* Testimonials Section */
.testimonials-section {
    padding: 2rem 0 6rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.testimonial-card {
    padding: 3rem 2.5rem;
    border-radius: 24px;
    background: var(--white);
    text-align: left;
    border: 1px solid var(--glass-border);
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

html.dark .testimonial-card {
    background: var(--glass-bg);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: var(--text-main);
    line-height: 1.7;
    font-weight: 500;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .cta-glass-banner {
        padding: 3rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   📱 ULTRA-RESPONSIVE — Seções abaixo da Hero (≤576px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    /* Features Section */
    .features-section {
        padding: clamp(2.5rem, 6vw, 4rem) 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 2rem 1.25rem;
        border-radius: 18px;
    }

    .feature-icon {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
        border-radius: 16px;
        margin-bottom: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.88rem;
    }

    /* Services Advanced Section */
    .services-advanced-section {
        padding: clamp(2.5rem, 6vw, 4rem) 0;
    }

    .service-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-adv-card {
        padding: 2rem 1.25rem;
        border-radius: 18px;
    }

    .sa-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .service-adv-card h3 {
        font-size: 1.1rem;
    }

    .service-adv-card p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    /* CTA Banner */
    .cta-banner-section {
        padding: 2.5rem 0;
    }

    .cta-glass-banner {
        padding: 2.5rem 1.25rem;
        border-radius: 20px;
    }

    .cta-glass-banner h2 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .cta-glass-banner p {
        font-size: 0.95rem;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 2rem 0 4rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .testimonial-card {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
    }

    .quote-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .testimonial-text {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        line-height: 1.6;
    }

    /* Section headers */
    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    }

    .section-header .text-muted {
        font-size: 0.88rem;
    }

    /* Provider cards */
    .services-section {
        padding: clamp(2rem, 5vw, 3.5rem) 0;
    }

    /* Filter toolbar */
    .filter-toolbar {
        border-radius: 16px;
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .filter-toolbar-label {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .filter-btn {
        font-size: 0.72rem;
        padding: 0.5rem 0.15rem;
    }

    /* View all button */
    #view-all-container .btn {
        padding: 0.85rem 2rem !important;
        font-size: 0.85rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   📱 ULTRA-RESPONSIVE — Telas muito pequenas (≤400px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
    .features-section,
    .services-advanced-section {
        padding: 2rem 0;
    }

    .feature-card,
    .service-adv-card {
        padding: 1.75rem 1rem;
        border-radius: 16px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        border-radius: 14px;
    }

    .feature-card h3,
    .service-adv-card h3 {
        font-size: 1.05rem;
    }

    .feature-card p,
    .service-adv-card p {
        font-size: 0.82rem;
    }

    .cta-glass-banner {
        padding: 2rem 1rem;
        border-radius: 16px;
    }

    .cta-glass-banner h2 {
        font-size: 1.3rem;
    }

    .testimonial-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .testimonial-text {
        font-size: 0.92rem;
    }

    .section-title {
        font-size: clamp(1.15rem, 5vw, 1.5rem) !important;
    }

    .filter-btn {
        font-size: 0.68rem;
        padding: 0.45rem 0.1rem;
    }

    .filter-toolbar {
        border-radius: 14px;
        padding: 0.6rem;
    }

    /* Provider cards compactos */
    .provider-list-inner {
        padding: 0.85rem;
        gap: 0.85rem;
    }

    .provider-avatar-img,
    .provider-avatar-initial {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .provider-name {
        font-size: 0.95rem;
    }

    .provider-category {
        font-size: 0.68rem;
    }

    .provider-location {
        font-size: 0.78rem;
    }

    .btn-info-action {
        width: 32px;
        height: 32px;
    }
}

/* ═══════════════════════════════════════════════════════════
   ✨ NEW COMPANY BADGE — Premium Animated Badge
   ═══════════════════════════════════════════════════════════ */

.provider-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.provider-name-row .provider-name {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   🏠 COMO FUNCIONA — HOME MINI STEPS SECTION
   ═══════════════════════════════════════════════════════════ */
.como-funciona-home {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--bg-color);
}

.cf-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.cf-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.cf-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--text-muted);
    font-weight: 500;
}

.cf-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Dashed connecting line */
.cf-steps::before {
    content: '';
    position: absolute;
    top: 28px; /* Half of 56px icon */
    left: 12.5%;
    right: 12.5%;
    height: 0;
    border-top: 2px dashed rgba(15, 76, 129, 0.2);
    z-index: 0;
}

html.dark .cf-steps::before {
    border-top-color: rgba(66, 153, 225, 0.2);
}

.cf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.cf-step-icon-wrap {
    position: relative;
    margin-bottom: 0.3rem;
    background: var(--bg-color); /* To cover the dashed line behind it */
    border-radius: 50%;
    padding: 2px; /* Small gap between line and icon */
}

.cf-step-number {
    position: absolute;
    bottom: -4px;
    left: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(15, 76, 129, 0.25);
}

.cf-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(15, 76, 129, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    transition: all 0.3s ease;
    border: 1.5px solid rgba(15, 76, 129, 0.1);
}

html.dark .cf-step-icon {
    background: rgba(66, 153, 225, 0.1);
    border-color: rgba(66, 153, 225, 0.15);
    color: var(--primary-light);
}

html.dark .cf-step-number {
    border-color: var(--bg-color);
}

.cf-step:hover .cf-step-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.15);
    background: rgba(15, 76, 129, 0.12);
}

.cf-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.cf-step-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 500;
    max-width: 160px;
    margin: 0;
}

/* Mobile ≤768px */
@media (max-width: 768px) {
    .como-funciona-home {
        padding: clamp(2rem, 4vw, 3rem) 0;
    }

    .cf-steps {
        gap: 0.75rem;
    }

    .cf-steps::before {
        top: 25px; /* Half of 50px */
    }

    .cf-step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .cf-step-number {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .cf-step-title {
        font-size: 0.82rem;
    }

    .cf-step-text {
        font-size: 0.68rem;
        max-width: 130px;
    }
}

/* Mobile ≤576px */
@media (max-width: 576px) {
    .como-funciona-home {
        padding: 1.75rem 0;
    }

    .cf-steps {
        gap: 0.5rem;
    }

    .cf-steps::before {
        top: 22px; /* Half of 44px */
    }

    .cf-step-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .cf-step-number {
        width: 18px;
        height: 18px;
        font-size: 0.55rem;
        bottom: -3px;
        left: -3px;
    }

    .cf-step-title {
        font-size: 0.75rem;
    }

    .cf-step-text {
        font-size: 0.6rem;
        max-width: 100px;
    }
}

/* Mobile ≤400px */
@media (max-width: 400px) {
    .como-funciona-home {
        padding: 1.5rem 0;
    }

    .cf-steps::before {
        top: 19px; /* Half of 38px */
    }

    .cf-step-icon {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .cf-step-number {
        width: 16px;
        height: 16px;
        font-size: 0.5rem;
        bottom: -2px;
        left: -2px;
    }

    .cf-step-title {
        font-size: 0.7rem;
    }

    .cf-step-text {
        font-size: 0.55rem;
        max-width: 85px;
    }
}
