/* 
  Dagaz Contabilidade - Estilos Principais
  Arquitetura: Moderno, Corporativo, Seguro
*/

:root {
    --primary: #0F172A;
    --secondary: #1E293B;
    --accent: #B45309;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; border-left: 4px solid var(--accent); padding-left: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin-bottom: 1.2rem; }

/* Header & Nav */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    background-color: var(--white);
    background-image: url('../img/pattern.svg');
    padding: 6rem 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
}

/* Content Blocks */
.content-block {
    background: var(--white);
    border-radius: 8px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

tr:nth-child(even) {
    background: #f1f5f9;
}

/* Forms */
.contact-section {
    background: var(--primary);
    color: var(--white);
}

.contact-section h2 {
    color: var(--white);
    border-color: var(--accent);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--secondary);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-radius: 4px;
}

.form-group input:focus {
    outline: 2px solid var(--accent);
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
    text-decoration: none;
}

.btn:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    background: #020617;
    color: var(--white);
    padding: 4rem 0 2rem;
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info {
    opacity: 0.6;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.5;
    font-size: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero, .grid-2, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* Simplificação para o exemplo, em prod teria menu hamburguer */
    }
    
    .content-block {
        padding: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
}
