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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: black;
    display: flex;
    justify-content: center;
}

#bloco {
    width: 800px;
    min-height: 100vh;
    background-color: white;
}

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

/* Header */
.header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-name {
    font-size: 18px;
    font-weight: 700;
    color: #003d7a;
    margin: 0;
}

.company-tagline {
    font-size: 12px;
    color: #003d7a;
    margin: 0;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #003d7a;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    /*max-width: 1200px;*/
    margin: 0 auto; /* Centraliza horizontalmente */
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 50%;
    transform: translateY(-50%);
    padding: 2rem;
    z-index: 1;
    color: white; /* ou outra cor que contraste com a imagem */
    background: rgba(0, 0, 0, 0);
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

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

.hero-img {
    width: 100%;         /* Ocupa 100% da largura da div */
    height: auto;        /* Mantém a proporção da imagem */
    display: block;      /* Remove espaços em branco abaixo da imagem */
}

/* App Section */
.app-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-text {
    display: flex;
    align-items: center;
    padding-left: 30%;
}

.app-description {
    font-size: 24px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    text-align: right;
}

.app-image {
    display: flex;
    justify-content: center;
}

.app-img {
    width: 100%;
    height: auto;
    max-width: 180px;
    display: block;
}

/* Footer */
.footer {
    background-color: #f0f0f0;
    padding: 30px 0;
    text-align: right;
}

.footer-text {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.hidden {
    display: none;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #003d7a;
    margin: 0 0 30px 0;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-input,
.form-textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #003d7a;
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

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

.form-button {
    padding: 12px 24px;
    background-color: #003d7a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #002d5a;
}

.form-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-message {
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.form-message.hidden {
    display: none;
}

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

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

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav {
        gap: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

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

    .app-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .app-description {
        font-size: 18px;
    }

    .app-img {
        max-width: 200px;
    }

    .modal-content {
        padding: 30px 20px;
        max-width: 90%;
    }

    .modal-title {
        font-size: 20px;
    }

    .footer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-section {
        gap: 8px;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .company-name {
        font-size: 16px;
    }

    .company-tagline {
        font-size: 10px;
    }

    .hero {
        padding: 40px 0;
        background: linear-gradient(135deg, #003d7a 0%, #003d7a 100%);
    }

    .hero-title {
        font-size: 20px;
    }

    .app-section {
        padding: 40px 0;
    }

    .app-description {
        font-size: 16px;
    }

    .app-img {
        max-width: 150px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 18px;
    }

    .form-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
