/* ================================
   🎯 HERO SECTION COM MOVIMENTO ORGÂNICO
================================= */
.hero {
    background: linear-gradient(135deg, #fdfdfd 0%, #f8fafc 100%);
    padding: 3rem 0 1rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Orbs Flutuantes - Movimento Orgânico */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(20, 160, 119, 0.1) 0%, rgba(20, 160, 119, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: orb-float 6s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(20, 160, 119, 0.08) 0%, rgba(20, 160, 119, 0.03) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    animation: orb-float 8s ease-in-out infinite reverse;
    z-index: 1;
}

/* Orbs Extras */
.orb-extra {
    position: absolute;
    top: 60%;
    right: 30%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    animation: orb-float 7s ease-in-out infinite;
    z-index: 1;
}

.orb-extra-2 {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(20, 160, 119, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: orb-float 9s ease-in-out infinite reverse;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
}

/* Badge com Glass Morphism */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(240, 253, 250, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    color: #14a077;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(20, 160, 119, 0.2);
    box-shadow: 0 4px 20px rgba(20, 160, 119, 0.1);
}

.badge svg {
    width: 18px;
    height: 18px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #14a077, #0e7355);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    max-width: 42rem;
    margin: 0 auto 3rem;
    color: var(--gray-600);
    line-height: 1.75;
}

.hero p strong {
    color: var(--primary-500);
    font-weight: 600;
}

/* ================================
   🔍 SEARCH BOX COM GLASS MORPHISM
================================= */
.search-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin: 3rem auto;
    max-width: 64rem;
    position: relative;
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1.3fr auto;
    gap: 1rem;
    align-items: center;
}

.input-group {
    position: relative;
}

.search-box input,
.search-box select {
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    font-size: 1.1rem;
    border: 2px solid rgba(243, 244, 246, 0.8);
    border-radius: 1rem;
    background: rgba(249, 250, 251, 0.8);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    font-family: inherit;
}

.search-box input:focus,
.search-box select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(20, 160, 119, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.search-box input::placeholder {
    color: var(--gray-400);
}

.input-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #14a077;
    width: 22px;
    height: 22px;
    z-index: 5;
    stroke-width: 2.5;
}

.search-btn {
    background: #14a077;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 1rem;
    padding: 1.5rem 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(20, 160, 119, 0.3);
}

.search-btn:hover {
    background: #0e7355;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(20, 160, 119, 0.4);
}

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

/* ================================
   🎨 ANIMAÇÕES ORGÂNICAS
================================= */
@keyframes orb-float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-10px) translateX(5px) scale(1.02);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-15px) translateX(10px) scale(1.05);
        opacity: 1;
    }
    75% { 
        transform: translateY(-8px) translateX(7px) scale(1.03);
        opacity: 0.9;
    }
}

/* ================================
   📱 RESPONSIVO PARA HERO
================================= */
@media (max-width: 640px) {
    .hero {
        padding: 2rem 0 1rem 0;
    }
    
    .search-box {
        padding: 1.5rem;
        margin: 2rem auto;
    }
    
    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-box input,
    .search-box select {
        padding: 1.25rem 1.25rem 1.25rem 3.5rem;
        font-size: 1rem;
    }
    
    .input-icon {
        width: 20px;
        height: 20px;
        left: 1.25rem;
    }
    
    .search-btn {
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }
    
    /* Orbs menores no mobile */
    .hero::before {
        width: 80px;
        height: 80px;
    }
    
    .hero::after {
        width: 60px;
        height: 60px;
    }
    
    .orb-extra {
        width: 40px;
        height: 40px;
    }
    
    .orb-extra-2 {
        width: 30px;
        height: 30px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .search-form {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .search-btn {
        grid-column: 1 / -1;
    }
}

/* ================================
   ⚡ LOADING STATES PARA BUSCA
================================= */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}/*
Theme Name: Vagaideal Child
Template: generatepress
Version: 1.0
*/

/* ================================
   🎨 CSS VARIABLES & RESET
================================= */
:root {
    --primary-50: #f0fdfa;
    --primary-100: #ccfbf1;
    --primary-500: #14a077;
    --primary-600: #0e7355;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --transition: all 0.2s ease-in-out;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

/* ================================
   🌐 GLOBAL / BASE
================================= */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-600);
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ================================
   🧭 HEADER / NAV IMPROVEMENTS
================================= */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 1rem;
}

.nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a:hover {
    color: var(--primary-500);
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--primary-500);
    transition: all 0.3s ease-in-out;
}

.nav a:hover::after {
    width: 100%;
    left: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-500);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* ================================
   🎯 HERO SECTION
================================= */
.hero {
    background: white;
    padding: 3rem 0 1rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--primary-100);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(60px);
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background: #dbeafe;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(60px);
    animation: float 6s ease-in-out infinite reverse;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero h1 span {
    color: var(--primary-500);
    background: linear-gradient(135deg, var(--primary-500), #059669);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    max-width: 42rem;
    margin: 0 auto 3rem;
    color: var(--gray-600);
    line-height: 1.75;
}

.hero p strong {
    color: var(--primary-500);
    font-weight: 600;
}

/* ================================
   📊 STATS SECTION
================================= */
.stats-section {
    background: var(--gray-50);
    padding: 2rem 0;
    margin: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 48rem;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    background: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ================================
   🔍 SEARCH BOX
================================= */
.search-box {
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    border-radius: 1rem;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 64rem;
    position: relative;
}

.search-box form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.search-box input,
.search-box select {
    width: 100%;
    padding: 1.25rem 1rem 1.25rem 3rem;
    font-size: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    background-color: var(--gray-50);
    transition: var(--transition);
    font-family: inherit;
    position: relative;
}

.search-box input:focus,
.search-box select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(20, 160, 119, 0.1);
    background-color: white;
}

.search-box input::placeholder {
    color: var(--gray-400);
}

.search-box button {
    width: 100%;
    background: var(--primary-500);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    padding: 1.25rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-box button:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.search-box button:active {
    transform: translateY(0);
}

/* ================================
   🧩 SECTIONS & TITLES
================================= */
section {
    padding: 2rem 0;
    margin: 0;
}

/* Alternância de backgrounds */
section:nth-child(even) {
    background: var(--gray-50);
}

section:nth-child(odd) {
    background: white;
}

/* Seções específicas */
#vagas {
    padding: 3rem 0;
}

#cidades {
    background: var(--gray-50);
    padding: 3rem 0;
}

#categorias {
    background: white;
    padding: 3rem 0;
}

#grupos {
    background: linear-gradient(135deg, var(--primary-500), #059669);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#grupos::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

#grupos::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

#grupos .container {
    position: relative;
    z-index: 2;
}

#grupos .section-title {
    color: white;
    margin-bottom: 1rem;
}

#grupos p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

#grupos a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-500);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    font-size: 1.125rem;
}

#grupos a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.95);
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   🃏 CARDS & GRID
================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-500);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--primary-500);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: 9999px;
    margin-bottom: 1rem;
}

/* ================================
   🏙️ CITY CARDS
================================= */
.city-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.city-card-fallback {
    width: 100%;
    height: 120px;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

/* ================================
   📱 CATEGORY CARDS - Sistema de Ícones Admin
================================= */

/* Wrapper do ícone */
.category-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Ícone SVG */
.category-icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.3s ease;
}

/* Container do card de categoria */
.category-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    transform: translateZ(0);
}

/* Overlay de hover */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-500);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
    z-index: 1;
}

/* Estados de hover */
.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-500);
}

.category-card:hover .category-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1);
}

.category-card:hover .category-icon {
    color: white !important;
}

/* Título da categoria */
.category-card .card-title {
    position: relative;
    z-index: 2;
    color: var(--gray-900);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.category-card:hover .card-title {
    color: white;
}

/* Subtitle da categoria */
.category-card .card-subtitle {
    position: relative;
    z-index: 2;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    justify-content: center;
}

.category-card:hover .card-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Descrição da categoria */
.category-description {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.category-card:hover .category-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Link "Explorar vagas" */
.category-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-500);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.category-card:hover .category-link {
    opacity: 1;
    color: white;
}

.category-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(4px);
}

/* ================================
   🎨 ANIMATIONS
================================= */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ================================
   📱 RESPONSIVE DESIGN
================================= */

/* Mobile */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0 1rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .search-box {
        padding: 1.5rem;
        margin: 2rem auto;
    }
    
    .search-box form {
        gap: 1rem;
    }
    
    .search-box input,
    .search-box select,
    .search-box button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .category-icon-wrapper {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .category-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .nav {
        padding: 0 1rem;
    }
    
    .nav a {
        margin-left: 1rem;
        font-size: 0.9rem;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    .search-box form {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .search-box button {
        grid-column: 1 / -1;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .search-box form {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 1.5rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    #categorias .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 2.5rem 2rem;
    }
    
    .category-icon-wrapper {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .category-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .hero {
        padding: 4rem 0 2rem 0;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .stats {
        gap: 3rem;
    }
}

/* Extra large screens */
@media (min-width: 1280px) {
    .container {
        padding: 0 2rem;
    }
    
    .grid {
        gap: 2.5rem;
    }
}

/* ================================
   ⚡ PERFORMANCE & ACCESSIBILITY
================================= */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gray-500: #000000;
        --gray-600: #000000;
        --gray-700: #000000;
        --gray-900: #000000;
    }
    
    .card {
        border-width: 2px;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero::before,
    .hero::after,
    #grupos::before,
    #grupos::after {
        display: none;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .search-box {
        display: none;
    }
}

/* ================================
   🔧 UTILITY CLASSES
================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================
   🎯 LOADING STATES
================================= */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================
   📧 FOOTER (se necessário)
================================= */
footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

footer h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-500);
}

footer .copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    margin-top: 2rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}