/* =========================================================
   FONTES & VARIÁVEIS
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,100..900;1,100..900&family=Press+Start+2P&display=swap');

:root {
    --rocho: #170039;
    --rocho-claro: #5C329E;
    --cinza: #7C778E;
    --branco: #FEFEFE;
}

/* =========================================================
   RESET E BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    width: 40px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #F2F2F2;
}

/* =========================================================
   HEADER
========================================================= */
.header, header {
    background: linear-gradient(90deg, var(--rocho) 0%, var(--rocho-claro) 100%);
    color: var(--branco);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--rocho-claro);
    transition: background 0.3s ease;
}

.container h2 {
    text-align: center;
    margin: 20px 0px;
}

main {
    width: 100vw;
    margin: auto;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 10px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
}

/* TÍTULO ESCONDIDO NO CELULAR — ADAPTADO */
@media (max-width: 768px) {
    .site-title {
        display: none;
    }
}

@media (min-width: 769px) {
    .site-title {
        display: block;
    }
}

.menu {
    display: flex;
    gap: 25px;
}

.link-header {
    text-decoration: none;
    color: white;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s;
}

.link-header::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: all 0.3s ease;
}

.link-header:hover {
    color: #ad9de4;
}

.link-header:hover::after {
    width: 100%;
}

/* =========================================================
   APRESENTAÇÃO (HERO)
========================================================= */
.header-apresentacao {
    background: linear-gradient(90deg, var(--rocho) 0%, var(--rocho-claro) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 30px;
    height: 500px;
    text-align: center;
    color: white;
}

.header-apresentacao h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 30px;
    margin-bottom: 10px;
}

.header-apresentacao h1 span {
    color: #9365db;
}

/* =========================================================
   CONTAINERS GERAIS
========================================================= */
.container-section,
.diferenciais,
.depoimentos,
.parceiros {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

.titulo-section {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* =========================================================
   GRID GERAL
========================================================= */
.grid-cards,
.dif-grid,
.dep-grid {
    display: grid;
    gap: 25px;
}

@media (min-width: 600px) {
    .grid-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .grid-cards,
    .dif-grid,
    .dep-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   CARDS PRINCIPAIS
========================================================= */
.card {
    background: rgb(39, 1, 101);
    border-radius: 10px;
    box-shadow: 2px 3px 10px #5b329e8b;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    color: black;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-content {
    padding: 16px;
    text-align: center;
    color: var(--branco);
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-content p {
    color: #c6b1e8;
    margin-bottom: 10px;
}

.card-content a {
    color: #f4e9ff;
    font-weight: bold;
    text-decoration: none;
}

.card-content a:hover {
    text-decoration: underline;
}

/* =========================================================
   CHATBOT
========================================================= */
.chat-bot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.chat-desc {
    font-size: 14px;
    color: white;
    border: 1px solid var(--rocho-claro);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.4;
    padding: 10px 5px;
    border-radius: 10px;
    background-color: rgba(172, 0, 207, 0.532);
}


.chat-bot img {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
}

.chat-bot:hover {
    transform: scale(1.1);
}

.chat {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: white;
    border: 2px solid #794bc3;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    padding: 15px;
}

.chat-area {
    height: 260px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.chat .user, .chat .bot {
    padding: 8px 10px;
    border-radius: 10px;
    max-width: 80%;
}

.chat .user {
    align-self: flex-end;
    background: #8fd3ff;
}

.chat .bot {
    align-self: flex-start;
    background: #d1ffd1;
}

.chat-input {
    display: flex;
    gap: 6px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.chat-input button {
    padding: 10px 14px;
    border: none;
    background: #6d00d6;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.topic-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    justify-content: center;
}

.topic-buttons button {
    padding: 6px 10px;
    border: none;
    background: #794bc3;
    color: white;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .1s, background .2s;
}

.topic-buttons button:hover {
    background: #5f34a6;
    transform: scale(1.05);
}


/* =========================================================
   FORMULÁRIO
========================================================= */
.container-contato,
.contact-container {
    padding: 25px;
    border-radius: 10px;
    max-width: 80%;
    margin: auto;
}

form {
    padding: 9px;
}

form label {
    color: gray;
    font-weight: bold;
    margin-bottom: 10px;
}

form input,
textarea {
    display: block;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

input:focus {
    border-color: #6a5acd;
    outline: none;
}

.submit-button {
    width: 100%;
    padding: 10px;
    background-color: #6a5acd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-button:hover {
    background-color: #5a4fcf;
}

/* =========================================================
   FOOTER
========================================================= */
.footer, footer {
    background: #4c1d95;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer i {
    color: white;
}

.social {
    margin-top: 15px;
}

.social i {
    font-size: 24px;
    margin: 0 10px;
    transition: 0.3s;
    color: white;
}

.social i:hover {
    transform: translateY(-3px);
}

/* =========================================================
   DEPOIMENTOS
========================================================= */
.dep-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 20px 0;
}

.avaliacao-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avaliacao-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.avaliacao-card p {
    font-size: 15px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.5;
}

.avaliacao-card h4 {
    font-weight: 600;
    color: #222;
    font-size: 14.5px;
}

/* =========================================================
   PARCEIROS
========================================================= */
.parc-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    justify-items: center;
    padding: 10px 0;
}

.parceiro-card {
    width: 130px;
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.parceiro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.parceiro-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
}

.parceiro-card p {
    font-weight: 600;
    font-size: 12.5px;
    line-height: 1.35;
    color: #333;
}

/* =========================================================
   MEDIA QUERIES ESPECÍFICAS
========================================================= */
@media (max-width: 500px) {
    .chat {
        width: 90%;
        right: 5%;
    }
}

@media (max-width: 420px) {
    .parceiro-card {
        width: 120px;
        padding: 12px;
    }

    .parceiro-card img {
        width: 60px;
        height: 60px;
    }

    .parceiro-card p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .avaliacao-card {
        padding: 18px;
    }

    .avaliacao-card p {
        font-size: 14px;
    }

    .avaliacao-card h4 {
        font-size: 13.5px;
    }
}

/* GRID PRINCIPAL DOS PROJETOS */
.grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    width: 100%;
}

.grid .card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.grid .card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.grid .card-content {
    padding: 18px;
    text-align: center;
}

.grid .card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2d2d2d;
}

.grid .card-content p {
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 14px;
    color: #555;
}

.grid .card-content a {
    display: inline-block;
    padding: 10px 18px;
    background: #5C329E;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.grid .card-content a:hover {
    background: #47237b;
}

@media (max-width: 480px) {
    .grid {
        padding: 10px;
        gap: 20px;
    }

    .grid .card img {
        height: 200px;
    }
}

/* =========================================================
   DIFERENCIAIS
========================================================= */
.dif-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 28px 20px;
}

.dif-container .titulo-section {
  margin-bottom: 22px;
  font-size: 26px;
  text-align: center;
  color: var(--rocho);
}

.grid-container {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
  padding: 6px;
}

.grid-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,250,250,0.98) 100%);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(16, 12, 30, 0.06);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  border: 1px solid rgba(92,50,158,0.06);
}

.grid-item:hover,
.grid-item:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(16, 12, 30, 0.12);
  outline: none;
  border-color: var(--rocho-claro);
}

.icon {
  font-size: 38px;
  line-height: 1;
  display: inline-block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(92,50,158,0.10);
  color: var(--rocho-claro);
  display: grid;
  place-items: center;
  margin: 0 auto 4px auto;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rocho);
  margin-top: 4px;
}

.grid-item p {
  font-size: 14px;
  color: var(--cinza);
  line-height: 1.45;
  margin-top: 4px;
  flex: 1;
}

.grid-item::after {
  content: "";
  height: 4px;
  width: 48px;
  background: linear-gradient(90deg, var(--rocho) 0%, var(--rocho-claro) 100%);
  border-radius: 4px;
  margin: 12px auto 0 auto;
  display: block;
}

@media (max-width: 420px) {
  .grid-container { gap: 16px; }
  .grid-item { padding: 16px; border-radius: 12px; }
  .icon { width: 58px; height: 58px; font-size: 32px; }
  .card-title { font-size: 16px; }
  .grid-item p { font-size: 13px; }
  .link-header { font-size: 13px; }
  .menu {gap: 14px; }
}
