/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2DADA3 0%, #26958d 100%);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: #2DADA3;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #26958d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sections */
.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #2DADA3;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2DADA3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-small {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2DADA3;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sobre Section */
.sobre-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sobre-content h3 {
    color: #2DADA3;
    font-size: 24px;
    margin: 30px 0 15px;
}

.sobre-content h3:first-child {
    margin-top: 0;
}

.sobre-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Serviços Grid */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.servico-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-top: 4px solid #2DADA3;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.servico-card h3 {
    color: #2DADA3;
    font-size: 22px;
    margin-bottom: 15px;
}

.servico-card p {
    color: #666;
    line-height: 1.6;
}

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.case-card h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.case-cliente {
    display: inline-block;
    background: #2DADA3;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.case-card p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.case-card strong {
    color: #2DADA3;
}

.case-resultados {
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-post {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-post-content {
    padding: 25px;
}

.blog-post h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-categoria {
    background: #2DADA3;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.blog-tempo {
    color: #999;
    font-size: 14px;
}

.blog-post p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-post .btn-ler-mais {
    display: inline-block;
    color: #2DADA3;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.blog-post .btn-ler-mais:hover {
    color: #26958d;
    padding-left: 10px;
}

/* Contato Section */
.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contato-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contato-info h3 {
    color: #2DADA3;
    margin-bottom: 20px;
}

.contato-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.contato-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contato-form input,
.contato-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contato-form input:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: #2DADA3;
}

/* Footer */
.footer {
    background: #222;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #2DADA3;
    margin-bottom: 20px;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-section a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

/* Redes Sociais */
.redes-sociais {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rede-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.rede-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    opacity: 0.8;
}

/* API Status Indicator */
.api-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    transition: all 0.3s;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #999;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #4CAF50;
}

.status-dot.offline {
    background: #f44336;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 14px;
    color: #333;
}

/* Error State */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #c62828;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .contato-content {
        grid-template-columns: 1fr;
    }
    
    .servicos-grid,
    .cases-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
