:root {
  --primary: #1a2b5c;
  --secondary: #f59e0b;
  --accent: #2563eb;
  --light: #f8fafc;
  --dark: #1e293b;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--light);
  color: var(--dark);
}

/* Reduce CLS for hero by fixing min-height on mobile */
.hero {
  min-height: 60vh;
}

/* Ensure images don't overflow and have display block */
img { display: block; max-width: 100%; height: auto; }

/* Simple icon replacements using Unicode where possible */
.fa { display: inline-block; width: 1em; text-align: center; }

/* Header styles */
.header-logo-version {
    background: #22c55e;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.header-subtitle {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
}

.free-consultation {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(245, 152, 36, 0.1);
    transition: transform 0.3s ease;
}

.free-consultation:hover {
    transform: scale(1.05);
}

/* Services section styles */
.services-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Online documents section styles */
.online-documents-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.online-documents-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.online-documents-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--dark);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.document-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--accent);
    transition: all 0.3s ease;
}

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

.document-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.document-price {
    background: #f0f9ff;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #0ea5e9;
    margin-bottom: 1rem;
    text-align: center;
}

.document-price-text {
    color: #0c4a6e;
    font-weight: 600;
    font-size: 0.9rem;
}

.generate-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.generate-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* How it works section */
.how-it-works {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.how-it-works-title {
    color: var(--primary);
    margin-bottom: 1rem;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-number {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-description {
    color: var(--dark);
    font-size: 0.9rem;
}

/* About section */
.about-title {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.about-description {
    max-width: 800px;
    font-size: 1.1rem;
}

/* Online services section */
.online-services-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

.online-services-subtitle {
    margin-bottom: 1.5rem;
}

/* Contact section */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.contact-info {
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Map section */
.map-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--primary);
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    border-radius: 8px;
}

.load-map-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
}

/* Footer */
.footer-links {
    margin-top: 1rem;
}

/* Floating elements */
.floating-phone {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #00ff00;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--accent);
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 9999px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Cookie notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 43, 92, 0.95);
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-notice-text {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-notice-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-accept-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.cookie-close-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: var(--primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.modal-body {
    padding: 2rem;
}

/* Payment modal specific styles */
.payment-modal-content {
    max-width: 600px;
}

.payment-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.payment-title {
    color: var(--primary);
    margin-bottom: 1rem;
}

.payment-description {
    color: var(--dark);
    margin-bottom: 1rem;
}

.payment-price-display {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #0ea5e9;
    margin-bottom: 1.5rem;
}

.payment-price-amount {
    color: var(--secondary);
    font-size: 1.2rem;
}

.payment-methods-title {
    color: var(--primary);
    margin-bottom: 1rem;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.payment-method-btn {
    background: #4C6EF5;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.3);
}

.payment-method-sbp {
    background: #21A038;
}

.payment-security-notice {
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.payment-warning {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f59e0b;
    margin-bottom: 1.5rem;
}

.payment-warning-text {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
}

.payment-actions {
    text-align: center;
}

.payment-cancel-btn {
    background: #6b7280;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 1rem;
    transition: background 0.3s;
}

.payment-preview-btn {
    background: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Result modal styles */
.result-modal-content {
    max-width: 900px;
}

.document-result {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.result-actions {
    margin-top: 2rem;
    text-align: center;
}

.download-btn {
    background: var(--secondary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-right: 1rem;
    transition: background 0.3s;
}

.copy-btn {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .free-consultation {
        font-size: 0.9rem;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-notice-content {
        flex-direction: column;
    }
    
    .cookie-notice-text {
        min-width: auto;
    }
}

