/**
 * Sistema GRU Arrais-Amador
 * Estilos principais - Layout institucional
 * 
 * @author Sistema GRU
 * @version 1.0
 * @date 2025-06-21
 */

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

/* Variáveis CSS */
:root {
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --secondary-color: #f8fafc;
    --accent-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

/* Header */
.header {
    background: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 14px;
}

.header-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.header-link {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.header-link:hover {
    color: #93c5fd;
}

.header-main {
    padding: 20px 0;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-brasao {
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="%23ffffff" stroke="%23ffffff" stroke-width="2"/><text x="50" y="60" text-anchor="middle" fill="%231e3a8a" font-size="40" font-weight="bold">⚓</text></svg>') center/contain no-repeat;
}

.logo-text {
    flex: 1;
}

.logo-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.search-section {
    min-width: 300px;
}

.search-box {
    display: flex;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-button {
    background: var(--primary-light);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: var(--primary-dark);
}

.search-icon {
    font-size: 16px;
}

/* Navigation */
.navigation {
    background: var(--primary-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: white;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--secondary-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-item {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-copy {
    background: var(--warning-color);
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-copy:hover {
    background: #d97706;
}

/* Sections */
.section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Info Section */
.info-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.info-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

.info-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    text-align: left;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: var(--text-color);
}

/* Price Table */
.price-table {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    color: var(--text-light);
}

.price-value {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 18px;
}

/* Process Section */
.process-section {
    padding: 80px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.step-text {
    color: var(--text-light);
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--secondary-color);
}

.faq-icon {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Form Styles */
.form-section {
    padding: 40px 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-header {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    text-align: center;
}

.form-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.cadastro-form {
    padding: 40px;
}

.form-fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.fieldset-legend {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    padding: 0 15px;
    background: white;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error,
.form-select.error {
    border-color: var(--danger-color);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-input {
    margin: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* Valor Info */
.valor-info {
    grid-column: 1 / -1;
}

.valor-card {
    background: linear-gradient(135deg, var(--accent-color), #059669);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.valor-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.valor-amount {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.valor-description {
    opacity: 0.9;
}

/* Payment Styles */
.payment-section {
    padding: 40px 0;
    background: var(--secondary-color);
}

.payment-container {
    max-width: 1000px;
    margin: 0 auto;
}

.payment-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    text-align: center;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-subtitle {
    opacity: 0.9;
}

.card-content {
    padding: 40px;
}

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

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.data-item:last-child {
    border-bottom: none;
}

.data-item.highlight {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: bold;
}

.data-label {
    color: var(--text-light);
    font-weight: 600;
}

.data-value {
    color: var(--text-color);
    font-weight: 600;
}

.card-actions {
    text-align: center;
    margin-top: 30px;
}

/* QR Code Styles */
.qr-code-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.qr-code-container {
    text-align: center;
}

.qr-code-image {
    max-width: 256px;
    height: auto;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.qr-instructions h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.qr-instructions ol {
    color: var(--text-light);
    line-height: 1.7;
}

.qr-instructions li {
    margin-bottom: 8px;
}

/* PIX Code Styles */
.pix-code-section {
    margin-bottom: 40px;
}

.pix-code-section h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.pix-code-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pix-code-text {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
    min-height: 120px;
    background: var(--secondary-color);
}

.pix-code-info {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 10px;
}

/* Payment Info */
.payment-info {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.info-box h4 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.info-box ul {
    color: var(--text-light);
    line-height: 1.7;
}

.info-box li {
    margin-bottom: 8px;
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}

.step-content ul {
    color: var(--text-light);
    margin-left: 20px;
}

.step-content li {
    margin-bottom: 5px;
}

/* Payment Actions */
.payment-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Alerts */
.alert {
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.alert h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info h4 {
    margin-bottom: 10px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background: var(--text-color);
    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 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-text {
    color: #d1d5db;
    line-height: 1.7;
}

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

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer-link:hover {
    color: white;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: #d1d5db;
    padding: 5px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #9ca3af;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-link {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-link:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .search-section {
        min-width: auto;
        width: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 12px 15px;
    }
    
    .header-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .qr-code-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .pix-code-container {
        flex-direction: column;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .form-container,
    .payment-card {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .cadastro-form,
    .card-content {
        padding: 20px;
    }
    
    .form-header {
        padding: 30px 20px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-buttons .btn {
        width: auto;
        min-width: 200px;
    }
}

/* Print Styles */
@media print {
    .header,
    .navigation,
    .footer,
    .btn,
    .search-section {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .payment-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .qr-code-image {
        max-width: 200px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card,
.step,
.faq-item {
    animation: fadeIn 0.6s ease-out;
}

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

/* Focus styles for accessibility */
.btn:focus,
.form-input:focus,
.form-select:focus,
.nav-link:focus,
.header-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-light: #000;
    }
}

