/* css/style.css
   Valentine Estágios — Estilos principais
   Acessibilidade, responsividade e foco visível
*/

/* ===== RESET / BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #222; background: #fafafa; line-height: 1.5; }
img { max-width: 100%; display: block; height: auto; border: none; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #0a74da; }

/* ===== CONTAINER ===== */
.container { max-width: 1080px; margin-inline: auto; padding: 1rem; }

/* ===== HEADER ===== */
.site-header, header {
  background: linear-gradient(90deg, #0a74da 0%, #0e66c9 100%);
  color: #fff;
  padding-block: 0.75rem;
  box-shadow: 0 2px 6px rgba(10,20,40,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: top 0.4s ease, background 0.3s ease;
}

.site-header picture, header picture {
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 1rem;
}
.site-header img, header img {
  width: 140px;
  height: auto;
  object-fit: contain;
}
.site-header nav, header nav {
  display: inline-block;
  vertical-align: middle;
}
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; align-items: center; }
.nav-list a { color: #fff; padding: .35rem .6rem; border-radius: 6px; font-weight: 600; transition: background .15s, color .15s; }
.nav-list a:hover,
.nav-list a:focus { background: rgba(255,255,255,0.12); outline: none; }

/* ===== HERO (PÁGINA INICIAL) ===== */
.hero { padding-block: 2.4rem; background: linear-gradient(180deg, rgba(10,116,218,0.04), transparent); }
.hero .container { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: center; }
.hero h1 { font-size: 1.75rem; color: #073e78; margin-bottom: .5rem; }
.hero p { color: #334155; margin-bottom: 1rem; }
.hero-img { border-radius: 10px; box-shadow: 0 6px 18px rgba(8,30,65,0.06); }

/* ===== SEÇÕES ===== */
section[aria-labelledby] { padding-block: 1.25rem; }
h2 { color: #0b4b85; font-size: 1.25rem; margin-bottom: .5rem; }
h3 { color: #0b3f6f; font-size: 1.05rem; margin: .5rem 0; }
p { margin-bottom: .75rem; }

/* ===== CARDS ===== */
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.card { background: #fff; border: 1px solid #e6eef9; padding: 1rem; border-radius: 10px; box-shadow: 0 4px 10px rgba(12,40,90,0.03); }
.card img { border-radius: 6px; margin-top: .5rem; }

/* ===== CONTATO ===== */
address { font-style: normal; color: #2b2b2b; margin: 0; }
address a { color: #0a74da; text-decoration: underline; }

/* ===== FORMULÁRIO ===== */
form {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #e8eef8;
  box-shadow: 0 6px 18px rgba(8,30,65,0.03);
}
fieldset {
  border: 1px solid #e1e8f3;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
legend { font-weight: 700; color: #0b4b85; padding: 0 .5rem; }
label { display: block; margin-top: .75rem; font-weight: 600; color: #213547; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: .6rem .7rem;
  margin-top: .25rem;
  border: 1px solid #cbd7ee;
  border-radius: 8px;
  font-size: .95rem;
  color: #0b2b3f;
  transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 96px; }

/* ===== FOCUS / VALIDAÇÃO ===== */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #0a74da;
  box-shadow: 0 0 0 4px rgba(10,116,218,0.08);
}
input:invalid { border-color: #d9534f; }

/* ===== BOTÕES ===== */
button {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #0a74da;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .08s ease, box-shadow .08s;
}
button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(10,116,218,0.12); }
button[type="reset"] { background: #6b7280; }
.form-actions { display: flex; gap: .5rem; margin-top: .75rem; }

/* ===== FOOTER ===== */
.site-footer, footer {
  background: #071733;
  color: #e6f0ff;
  padding-block: 1rem;
  text-align: center;
  margin-top: 2rem;
}
.site-footer p, footer p { margin: 0.3rem 0; font-size: .95rem; }
.social { list-style: none; padding: 0; margin-top: .5rem; display: flex; justify-content: center; gap: .75rem; }
.social a { color: #cfe6ff; text-decoration: underline; }

/* ===== ANIMAÇÕES ===== */
section, article {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* Imagens dos projetos */
.hero-img {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease, transform 1.2s ease;
  border-radius: 10px;
}
.image-visible {
  opacity: 1;
  transform: scale(1);
}

/* Efeito hover nas imagens dos projetos */
.hero-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: all .3s ease;
}

/* Imagem da página de cadastro */
.hidden-slide {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-in {
  opacity: 1;
  transform: translateX(0);
}

/* ===== ACESSIBILIDADE ===== */
a:focus, button:focus {
  outline: 3px dashed rgba(10,116,218,0.25);
  outline-offset: 2px;
}
.hidden { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 600px) {
  .nav-list { flex-direction: column; gap: .25rem; }
  .hero h1 { font-size: 1.35rem; }
  .container { padding: .75rem; }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .nav-list { display: none; }
  body { background: #fff; color: #000; }
}

/* ===== HEADER ESCONDIDO (SCROLL) ===== */
.header-hidden { top: -120px; }

/* Modal de inscrição */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  animation: popIn .3s ease;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.participar-btn {
  background: #0a74da;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: .5rem 1rem;
  margin-top: .75rem;
  cursor: pointer;
  transition: background .2s ease;
}
.participar-btn:hover { background: #095db3; }

#fechar-modal {
  background: #6b7280;
}

.hidden { display: none !important; }
  