/**
 * Estilos Principais - Star Cont Assessoria Contabil
 * Paleta de Cores: Ouro (#FFD700), Azul Marinho (#003366), Branco (#FFFFFF), Verde (#28A745)
 */

/* Reset e Configurações Globais */
* {
    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-color: #f8f9fa;
}

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

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

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

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

.logo a {
    display: block;
    line-height: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

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

/* Navegação */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #FFD700;
    color: #003366;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #003366 0%, #005599 100%);
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #28A745;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: #FFD700;
    color: #003366;
}

.btn-secondary:hover {
    background-color: #FFC700;
}

/* Seções de Conteúdo */
section {
    padding: 60px 20px;
}

section h2 {
    font-size: 36px;
    color: #003366;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

section h3 {
    font-size: 24px;
    color: #003366;
    margin-bottom: 15px;
}

/* Cards de Serviços */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.service-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    text-align: center;
}

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

.service-card .icon {
    font-size: 48px;
    color: #FFD700;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 22px;
}

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

/* Lista de Serviços */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-item:hover {
    border-left-color: #28A745;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.service-item h3 {
    color: #003366;
    margin-bottom: 10px;
}

.service-item p {
    color: #555;
}

/* Sobre Nós */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    color: #444;
    text-align: justify;
}

.about-content strong {
    color: #003366;
}

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

.blog-card {
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

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

.blog-card .date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

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

/* Artigo Completo */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-content h1 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 32px;
}

.article-content .meta {
    color: #999;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.article-content p {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.8;
    text-align: justify;
}

.article-content h2 {
    color: #003366;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 26px;
}

.article-content h2::after {
    display: none;
}

.article-content ul, .article-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
    color: #444;
}

.article-content li {
    margin-bottom: 10px;
}

/* Formulário de Contato */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #003366;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Informações de Contato */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-item .icon {
    font-size: 36px;
    color: #FFD700;
    margin-bottom: 15px;
}

.contact-item h3 {
    color: #003366;
    margin-bottom: 10px;
    font-size: 20px;
}

.contact-item p {
    color: #666;
}

.contact-item a {
    color: #28A745;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #003366;
    color: #FFFFFF;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p,
.footer-section ul {
    color: #CCCCCC;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #004080;
    color: #CCCCCC;
}

/* Responsividade */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    section h2 {
        font-size: 28px;
    }
    
    .services-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        max-width: 100%;
    }
}
