/* --- Configurações Gerais e Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif; 
    background-color: #f6f6f6; 
}

a {
    text-decoration: none;
    color: inherit; 
}

ul {
    list-style: none;
}

.highlighted-paragraph {
    color: #1cc88a !important;
}

/* --- Estilos de Seção Padrão --- */
.dark-section {
    background-color: #111;
    color: #fff; 
    padding: 20px 8%;
}

.light-section {
    background-color: #f6f6f6;
    padding: 20px 5%;
}

.white-section {
    background-color: #fff;
    padding: 20px 5%;
}

.light-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.light-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.dark-green-section {
    background-color: #159969; 
    color: #fff; 
    padding: 200px 8%; 
}

/* --- Cabeçalho e Navegação --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 90px;
    height: 130px;
}

.logo img {
    height: 50px;
}

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

.header-container nav a {
    font-size: 1rem;
    font-weight: 400;
}

/* --- Seção Hero (Título Principal) --- */
.hero-container h1 {
    font-size: 4rem;
    font-weight: 800;
    max-width: 600px;
    line-height: 1.2;
}

#green-highlight {
    color: #1cc88a;
    white-space: nowrap;
}

/* --- Estilos de Botões --- */
.btn-nav {
    background-color: #fff;
    color: #111;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.btn-nav:hover {
    background-color: #1cc88a;
    color: #ffffff;
}

nav a:hover {
    color: #1cc88a;
}

.btn-hero {
    display: inline-block;
    background-color: #111;
    color: #fff;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 25px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-hero:hover {
    background-color: #333;
}

/* --- Helpers de Layout --- */
.full-screen {
    min-height: 92vh; 
    width: 100%;
}

.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* --- Efeito de Fundo --- */
#home-section {
    position: relative;
    background: none !important;
    --bg-opacity: 1; 
}

#home-section::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./background.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--bg-opacity);
    transition: opacity 0.4s ease-out;
    z-index: -1;
}

.preditix-logo-bottom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: auto; 	
    height: 250px;
    z-index: 10;
    opacity: var(--bg-opacity);
    transition: opacity 0.4s ease-out;
}

/* --- Header: layout com menu e ação à direita --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-menu {
    flex: 1 1 auto;
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #111;
    transition: transform .25s ease, opacity .25s ease;
}

/* Estado aberto */
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menu móvel fechado por padrão */
@media (max-width: 900px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 8px 20px rgba(0,0,0,.06);
        padding: 10px 5%;
        display: none;
        z-index: 1000;
    }

    .nav-menu ul {
        display: flex;              /* garante exibição no modo aberto */
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-menu.is-open {
        display: block;
    }

    .hamburger { display: inline-flex; }

    /* Esconde o menu somente quando fechado */
    .nav-menu:not(.is-open) ul { display: none; }

    .btn-contact { white-space: nowrap; }

    .header-container h1{
        font-size: 3.5rem;
    }
    .header-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background: #f6f6f6;
        height: 70px;
        padding: 10px 5%;
        align-items: center;
        padding-bottom: 0;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    /* Compensação global do layout sob o header fixo */
    body { padding-top: 70px; }

    /* Garante que o dropdown do menu inicie logo abaixo do header */
    .nav-menu { top: 70px; }

    /* Ajusta o fundo da home para iniciar abaixo do header */
    #home-section::before { top: 70px; }

}

/* Garantir visibilidade da logo em telas pequenas */
@media (max-width: 400px) {
    .logo img {
        height: 36px;
    }
}

/* Garantir visibilidade da logo em telas pequenas */
@media (max-width: 290px) {
    .header-container h1{
        font-size: 2.5rem;
    }
}

/* --- Seção de Planos e Cards --- */
.section-title {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 100px;
    text-align: left;
}

.plans-container {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}

.plan-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 350px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 5px solid #1cc88a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 20px;
}
.card-header > .fa-solid {
    font-size: 2.5rem;
    color: #1cc88a;
}
.card-title h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}
.card-title p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.card-body {
    padding: 0 25px 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}
.card-body li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #333;
}
.card-body .fa-check {
    color: #159969;
}

.card-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    display: none;
}
.card-footer {
    padding: 25px;
    background-color: #f6f6f6;
    text-align: center;
}
.btn-card {
    background-color: #111;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-card:hover {
    background-color: #1cc88a;
    color: #fff;
}

/* --- NOVOS ESTILOS PARA O RODAPÉ COM IA --- */
.footer-container {
    background-color: #111;
    color: #fff;
    padding: 80px 8%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-column h3 {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-column a, .footer-column div {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #1cc88a;
}

.footer-column .fa-solid, .footer-column .fa-brands {
    width: 24px;
    color: #1cc88a;
    margin-right: 10px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    font-size: 1.5rem; /* 24px */
    color: #fff;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #1cc88a;
}

.form-column {
    grid-column: span 2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #e5e7eb;
    border-radius: 6px;
    border: none;
    transition: box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
}

.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #1cc88a;
}

.contact-form button {
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#generate-draft-btn {
    background-color: #374151;
}

#generate-draft-btn:hover {
    background-color: #1f2937;
}

#generate-draft-btn:disabled {
    background-color: #9ca3af;
    cursor: wait;
}

.submit-btn {
    background-color: #1cc88a;
}

.submit-btn:hover {
    background-color: #159969;
}

.response-area {
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.loader {
    width: 18px;
    height: 18px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #2e2e2e;
}

.site-link {
    display: block;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
}

.site-link:hover {
    color: #1cc88a;
}

.copyright {
    font-size: 0.9rem;
    color: #fff;
}


/* --- Seção Quem Somos (About Us) --- */
/* Mantém o título da seção, já que center-content foi removido da div principal */
.white-section h1 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 60px;
    padding-top: 80px;
}

.about-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1900px;
    margin: 0 auto;
    /* Removido o padding-right para que a imagem possa ir até a borda da janela. */
    padding: 20px 0 20px 5%; /* Mantém o padding esquerdo para o texto. */
    position: relative;
    /* REMOVA ou COMENTE esta linha, a altura será controlada pelo JavaScript */
    /* min-height: 500px; */ 
    height: 100%; /* Permite que o wrapper se estique à altura do pai */
}

.about-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
    z-index: 10;
    padding-right: 20px; /* Mantenha um padding para o texto para não colidir com a imagem */
}

.about-text p {
    font-size: 2rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-text h3 {
    font-size: 2.5rem;
    color: #159969;
    margin-top: 25px;
    margin-bottom: 50px;
    font-weight: 700;
}

/* --- ESTILOS DA IMAGEM: AGORA COM 'position: absolute' CORRETAMENTE --- */
.white-section .about-content-wrapper img {
    position: absolute;
    right: -5%; 
    left: auto;
    top: 0; /* Alinha a imagem ao topo do about-content-wrapper */
    transform: none; /* Remove a transformação vertical, pois a imagem preencherá a altura */
    max-width: 600px;
    width: 45%; 
    height: 100%; /* A imagem tentará preencher 100% da altura do about-content-wrapper */
    object-fit: cover; /* ESSENCIAL: Garante que a imagem preencha o espaço sem distorcer, cortando o excesso */
    border-radius: 0;
    box-shadow: none;
    z-index: 5;

    /* Degradê transparente da ESQUERDA para a DIREITA (original) */
    mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%);
}

/* --- Responsividade global adicional --- */
@media (max-width: 1200px) {
    .hero-container h1 {
        font-size: 3.5rem;
    }

    .header-container {
        padding-bottom: 60px;
        height: auto;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .plans-container {
        gap: 24px;
    }

    .plan-card {
        width: 320px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .about-content-wrapper {
        flex-direction: column;
        text-align: center;
        min-height: auto; /* Deixa o browser decidir a altura em mobile */
        height: auto; /* Deixa o browser decidir a altura em mobile */
        padding: 20px 5%; /* Restaura o padding para telas menores, se necessário */
    }

    .about-text {
        max-width: 100%;
        text-align: center;
        padding-right: 0;
    }

    .white-section .about-content-wrapper img {
        position: static; /* Volta ao posicionamento normal em telas menores */
        transform: none;
        margin-top: 30px;
        max-width: 100%;
        width: 100%;
        height: auto; /* Remove a altura fixa para mobile, deixa a imagem se adaptar */
        mask-image: none;
        -webkit-mask-image: none;
    }

    .white-section h1 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .header-container nav ul {
        gap: 16px;
        flex-wrap: wrap;
    }

    .header-container nav a {
        font-size: 0.95rem;
    }

    .hero-container h1 {
        font-size: 3.5rem;
        max-width: 90%;
    }

    #green-highlight {
        white-space: normal; /* permite quebra em telas menores */
    }

    .preditix-logo-bottom {
        height: 160px;
        right: 12px;
        bottom: 12px;
    }

    .dark-green-section {
        padding: 120px 6%;
    }

    .section-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 60px;
    }

    .plans-container {
        justify-content: center;
    }

    .plan-card {
        width: 100%;
        max-width: 520px;
    }

    .card-header {
        padding: 20px;
    }

    .card-body {
        padding: 0 20px 20px 20px;
    }

    .card-footer {
        padding: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .header-container {
        padding-bottom: 40px;
    }

    .logo img {
        height: 42px;
    }

    .header-container nav ul {
        gap: 12px;
    }

    .btn-nav {
        padding: 8px 14px;
        border-radius: 16px;
    }

    .hero-container h1 {
        font-size: 3.5rem;
    }

    .light-section p {
        font-size: 1rem;
    }

    .preditix-logo-bottom {
        display: block; 
        height: 90px;      /* reduz para caber na tela */
        right: 10px;
        bottom: 10px;
        opacity: 0.95;
        z-index: 10;
    }

    .dark-green-section {
        padding: 80px 5%;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .plan-card {
        max-width: 480px;
    }

    .about-text p {
        font-size: 1.2rem;
    }

    .about-text h3 {
        font-size: 1.6rem;
    }

    .footer-container {
        padding: 60px 6%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-link {
        font-size: 1rem;
    }
}