/* ======================= */
/* RESET BÁSICO            */
/* ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}


/* ======================= */
/* FADE-IN                 */
/* ======================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================= */
/* HEADER / NAVBAR         */
/* ======================= */
header {
    background-color: #2b4544;
    padding: 10px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 130px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    font-size: 17.5px;
}

.navbar .nav-links li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.navbar .nav-links li a.active,
.navbar .nav-links li a:hover {
    color: #00cc99;
}

.navbar .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #00cc99;
    transition: width 0.3s ease;
}

.navbar .nav-links li a:hover::after,
.navbar .nav-links li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar .nav-links {
    transition: all 0.3s ease;
}

/* ======================= */
/* BOTÕES PADRONIZADOS      */
/* ======================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    color: #fff;
    background-color: #00cc99;
}

.btn:hover {
    background-color: #009973;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #009973;
}

.btn-primary:hover {
    background-color: #017d5e;
    transform: translateY(-3px);
}

/* ======================= */
/* SECTIONS / CONTAINERS   */
/* ======================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Barra de progresso de scroll */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;       /* altura da barra */
  background-color: #00cc99; /* cor da barra */
  width: 0%;
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* ======================= */
/* HERO CONTATO            */
/* ======================= */
.hero-contato {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/parceria.jpg') center/cover no-repeat;
    color: #fff;
    padding: 120px 20px;
    text-align: center;
}

.hero-contato h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #15b78f; /* igual aos serviços */
    font-family: 'Montserrat', sans-serif;
}

.hero-contato p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #fff;
}

/* ======================= */
/* SEÇÃO CONTATO           */
/* ======================= */
.contato-section {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
    gap: 50px;
    flex-wrap: wrap;
}

.contato-wrapper {
    display: flex;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row-reverse;
    /* Mantemos o wrap para mobile */
}

/* ====== LADO ESQUERDO ====== */
.contato-left {
    flex: 1 1 5000px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ícone à esquerda */
    gap: 12px;
    padding: 20px 20px; /* maior, mantendo o botão grandinho */
    border-radius: 10px;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    min-width: 180px; /* largura mínima, mas não fixa */
}

.btn-social img {
    width: 28px;
    height: 28px;
}

.btn-social span {
    flex: 1; /* texto ocupa restante do botão */
    text-align: left;
}

/* cores / gradientes redes sociais permanecem iguais */
.btn-social.instagram {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.btn-social.facebook {
    background-color: #1877F2;
}

.btn-social.linkedin {
    background-color: #0A66C2;
}

.btn-social.whatsapp {
    background-color: #25D366;
}

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

/* Informações de contato */
.contato-info {
    display: flex;
    flex-direction: column;
    gap: 10px; /* espaçamento uniforme entre os <p> */
    max-width: 600px;
}


.contato-info p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    text-align: left;
    word-break: break-word;   /* quebra palavras longas */
    overflow-wrap: anywhere;  /* quebra caso seja necessário */
    margin: 0; /* remove margem extra que pode desalinhar */
}


.contato-info p strong {
    color: #15b78f;
    margin-right: 5px; /* afasta o texto do label */
}

.contato-info p .horario {
    white-space: nowrap;
}

/* ====== LADO DIREITO: FORMULÁRIO ====== */
.contato-right {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-contato {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

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

.form-group label {
    font-weight: 600;
    color: #15b78f;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    transition: border 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00cc99;
    box-shadow: 0 0 5px rgba(0,204,153,0.5);
}

textarea {
    resize: vertical;
}

/* Botão enviar padronizado */
.enviar-btn {
    background-color: #00cc99;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.enviar-btn:hover {
    background-color: #009973;
    transform: translateY(-2px);
}


/* ======================= */
/* FOOTER                  */
/* ======================= */
.footer-section {
    background-color: #2b4544;
    color: #fff;
    padding: 60px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    align-items: start;
    padding-bottom: 30px; /* adiciona espaço extra antes do footer-bottom */
}

.footer-logo-img {
    width: 200px;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.footer-logo p {
    color: #eee;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    margin-bottom: 12px;
    color: #00cc99;
    font-weight: 600;
}

.footer-contact h3{
    margin-bottom: 0px; /* aproxima o conteúdo do título */
}

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

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: #00cc99;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-contact .contact-item {
    display: flex;
    flex-direction: column;

}

.footer-contact .label {
    font-weight: 600;
    color: #00cc99;
    margin-bottom: 3px;
}

.footer-contact .info {
    color: #eee;
    line-height: 1.3;
    word-break: break-word;
    text-align: justify;
}

.footer-social a {
    margin-right: 12px;
    display: inline-block;
}

.footer-social .icon {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}

.footer-social .icon:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    padding-bottom: 30px;
    color: #eee;
    font-size: 0.85rem;
}
/* ======================= */
/* BOTÃO VOLTAR AO TOPO     */
/* ======================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #00cc99;
    color: #fff;
    border: none;
    padding: 10px 14px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none; /* controlado pelo JS */
    z-index: 1000;
    transition: transform 0.3s, background 0.3s;
}

.back-to-top:hover {
    transform: translateY(-2px);
    background-color: #009973;
}

/* ======================= */
/* ACESSIBILIDADE LINKS    */
/* ======================= */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #00cc99; /* cor de destaque */
    outline-offset: 3px;
}
/* ======================= */
/* RESPONSIVIDADE COMPLETA - TELA DE CONTATO */
/* ======================= */

/* ======================= */
/* DESKTOP GRANDE / DEFAULT */
/* ======================= */
.contato-section { 
    padding: 80px 20px; 
    gap: 50px; 
}
.contato-left, .contato-right { 
    flex: 1 1 500px; 
}
.contato-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row-reverse; /* Formulário à direita */
}

@media (min-width: 1024px) {
  .contato-info p:nth-child(1) { 
    white-space: nowrap; 
  }
}

/* ======================= */
/* TABLET GRANDE / SMALL DESKTOP (992px) */
/* ======================= */
@media (max-width: 992px) {
    /* Hero */
    .hero-contato { padding: 90px 20px; }
    .hero-contato h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-contato p { font-size: 1.05rem; line-height: 1.4; }

    /* Contato */
    .contato-section { padding: 60px 20px; gap: 40px; }
    .contato-left, .contato-right { flex: 1 1 400px; }

    /* Botões sociais */
    .btn-social { font-size: 1rem; padding: 16px 16px; }

    /* Formulário */
    .form-contato { padding: 25px 20px; }
}

/* ======================= */
/* TABLET / MOBILE MÉDIO (768px) */
/* ======================= */
@media (max-width: 768px) {
    /* Navbar */
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 2rem 1rem;
        gap: 1rem;
        background-color: #2b4544;
        backdrop-filter: blur(4px);
        z-index: 9999;
    }
    .navbar .nav-links.show { display: flex; }
    .menu-toggle { display: flex; }

    /* Hero */
    .hero-contato { padding: 70px 15px; }
    .hero-contato h1 { font-size: 1.8rem; line-height: 1.25; }
    .hero-contato p { font-size: 1rem; line-height: 1.4; }

    /* Contato */
    .contato-section { flex-direction: column; padding: 50px 15px; gap: 30px; }
    .contato-wrapper { flex-direction: column-reverse; gap: 30px; } /* Form primeiro */
    .contato-left, .contato-right { flex: 1 1 100%; }

    /* Botões sociais */
    .btn-social { width: 100%; max-width: 180px; font-size: 0.95rem; padding: 14px 16px; text-align: center; justify-content: center; }
    .social-buttons { display: grid; grid-template-columns: repeat(2, 1fr); justify-items: center; gap: 12px; }
    
    .social-buttons a:last-child {
        grid-column: 1 / -1; /* ocupa todas as colunas */
    }

    /* Formulário */
    .form-contato { padding: 20px 15px; }
    .form-group input, .form-group textarea { font-size: 0.9rem; padding: 8px 10px; }
    .enviar-btn { font-size: 0.95rem; padding: 10px 20px; }
}

/* ======================= */
/* SMARTPHONES PORTRAIT (480px) */
/* ======================= */
@media (max-width: 480px) {
    /* Hero */
    .hero-contato { padding: 60px 12px; }
    .hero-contato h1 { font-size: 1.5rem; line-height: 1.2; }
    .hero-contato p { font-size: 0.95rem; line-height: 1.35; }

    /* Contato */
    .contato-section { padding: 40px 12px; gap: 20px; }
    .contato-wrapper { flex-direction: column-reverse; gap: 20px; }
    .contato-left, .contato-right { width: 100%; }

    /* Botões sociais */
    .btn-social { font-size: 0.9rem; padding: 12px 14px; gap: 8px; }
    .social-buttons { grid-template-columns: repeat(2, 1fr); }

    /* Formulário */
    .form-contato { padding: 15px 12px; }
    .form-group input, .form-group textarea { font-size: 0.85rem; padding: 7px 9px; }
    .enviar-btn { font-size: 0.9rem; padding: 8px 16px; }
}

/* ======================= */
/* VERY SMALL PHONES / 360px */
/* ======================= */
@media (max-width: 360px) {
    /* Hero */
    .hero-contato { padding: 50px 10px; }
    .hero-contato h1 { font-size: 1.3rem; line-height: 1.15; }
    .hero-contato p { font-size: 0.85rem; line-height: 1.3; }

    /* Contato */
    .contato-wrapper { flex-direction: column-reverse; gap: 15px; }

    /* Botões sociais */
    .btn-social { font-size: 0.85rem; padding: 10px 12px; }

    /* Formulário */
    .form-contato { padding: 12px 10px; }
    .form-group input, .form-group textarea { font-size: 0.8rem; padding: 6px 8px; }
    .enviar-btn { font-size: 0.85rem; padding: 6px 14px; }
}
