/* ============================================================
   InnoProForm — stylesheet
   Paleta oficial (IdGram): Space Indigo #29235c · Light Sea #25b3ae
   Fundo warm #f6f3f2 · Tipografia Nexa (fallback Montserrat)
   ============================================================ */

:root {
  --navy: #29235c;          /* Space Indigo */
  --navy-deep: #1d1842;
  --teal: #25b3ae;          /* Light Sea */
  --teal-dark: #1c8f8b;
  --cream: #f6f3f2;         /* fundo warm */

  --ink: #221f45;
  --body: #55536a;
  --muted: #9694a8;
  --line: #e7e4e6;
  --white: #ffffff;

  --font: "Montserrat", "Nexa", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 50px -28px rgba(41, 35, 92, 0.4);
  --shadow-sm: 0 10px 30px -18px rgba(41, 35, 92, 0.35);
  --grad: linear-gradient(115deg, var(--navy) 0%, var(--navy) 20%, var(--teal) 100%);
  --transition: 0.25s ease;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); line-height: 1.18; font-weight: 800; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-teal { color: var(--teal); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--teal { background: var(--teal); color: var(--white); box-shadow: var(--shadow); }
.btn--teal:hover { background: var(--teal-dark); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* -------------------- Banner de manutenção (admin) -------------------- */
.maint-banner {
  background: #f7c948; color: #4a3800; text-align: center;
  padding: 10px 16px; font-size: 0.9rem; font-weight: 600;
}
.maint-banner a { color: #4a3800; text-decoration: underline; font-weight: 700; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand__logo { height: 38px; width: auto; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-block; padding: 9px 13px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; color: var(--navy);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover, .nav__link.is-active { color: var(--teal); }
.nav__link--cta,
.nav__link--cta.is-active { background: var(--teal); color: var(--white); margin-left: 4px; }
.nav__link--cta:hover { background: var(--teal-dark); color: var(--white); }
.nav__lang { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-inline: 6px; }
.nav__langlink { padding: 2px 4px; }
.nav__langlink.is-active { color: var(--navy); }
.nav__langlink:hover { color: var(--teal); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle__bar { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* -------------------- Hero -------------------- */
.hero { position: relative; background: var(--grad); color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__circle { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,0.12); }
.hero__circle--1 { width: 480px; height: 480px; top: -140px; right: -120px; }
.hero__circle--2 { width: 300px; height: 300px; bottom: -120px; right: 22%; background: rgba(255,255,255,0.05); border: 0; }
.hero__inner { position: relative; z-index: 1; padding-block: 96px 104px; max-width: 860px; }
.hero__eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.8rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--white);
  background: rgba(255,255,255,0.14); padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero__title { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.7rem); letter-spacing: -1px; margin-bottom: 24px; }
.hero__lead { font-size: 1.14rem; color: rgba(255,255,255,0.9); max-width: 60ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__pillars { display: flex; flex-wrap: wrap; gap: 28px; font-weight: 700; font-size: 1.02rem; color: var(--white); }
.hero__pillars li { display: inline-flex; align-items: center; gap: 10px; }
.pillar__o {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--teal); color: var(--teal); background: rgba(255,255,255,0.95);
  font-weight: 800; font-size: 0.9rem; line-height: 1;
}

/* -------------------- Sections -------------------- */
.section { padding-block: 92px; }
.section--cream { background: var(--cream); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__eyebrow { font-weight: 700; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section__title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.5px; margin-bottom: 16px; }
.section__intro { font-size: 1.08rem; }

/* -------------------- Sobre -------------------- */
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about__text p { margin-bottom: 20px; }
.about__lead { font-weight: 600; color: var(--navy); }
.checklist { display: grid; gap: 12px; margin-bottom: 22px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 600; color: var(--navy); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; display: grid; place-items: center;
  width: 23px; height: 23px; border-radius: 50%; background: var(--teal); color: var(--white);
  font-size: 0.8rem; font-weight: 700;
}

.person { background: var(--cream); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.person__photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-sm); margin-bottom: 20px; display: block;
}
.person__name { font-size: 1.35rem; margin-bottom: 4px; }
.person__role { color: var(--teal); font-weight: 700; font-size: 0.92rem; margin-bottom: 14px; }
.person__bio { font-size: 0.96rem; margin-bottom: 18px; }
.person__creds { display: grid; gap: 10px; }
.person__creds li { position: relative; padding-left: 22px; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.person__creds li::before { content: "•"; position: absolute; left: 4px; color: var(--teal); font-weight: 800; }

.competencies { margin-top: 72px; }
.competencies__title { text-align: center; font-size: 1.5rem; margin-bottom: 32px; }

/* -------------------- Cards genéricos -------------------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.mini-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.mini-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.mini-card h4 { color: var(--navy); font-size: 1.08rem; margin-bottom: 10px; }
.mini-card p { font-size: 0.94rem; }

/* -------------------- Serviços -------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card__num { font-size: 2.4rem; font-weight: 800; color: var(--teal); opacity: 0.35; line-height: 1; }
.service-card__title { font-size: 1.3rem; margin: 10px 0 14px; }
.service-card__list { display: grid; gap: 9px; margin: 16px 0; }
.service-card__list li { position: relative; padding-left: 24px; font-size: 0.93rem; font-weight: 500; color: var(--navy); }
.service-card__list li::before { content: "→"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.service-card__note { margin-top: auto; font-size: 0.9rem; font-style: italic; color: var(--body); border-top: 1px solid var(--line); padding-top: 16px; }

/* -------------------- Catálogo -------------------- */
.catalog__filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-family: var(--font); font-weight: 600; font-size: 0.9rem; color: var(--navy); cursor: pointer; transition: all var(--transition); }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.course { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.course:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.course__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.course__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--teal); background: rgba(37,179,174,0.12); padding: 4px 12px; border-radius: 999px; }
.course__hours { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.course__title { font-size: 1.15rem; margin-bottom: 8px; }
.course__text { font-size: 0.93rem; margin-bottom: 18px; }
.course__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.course__mode { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.course__link { font-weight: 700; color: var(--teal); font-size: 0.9rem; }
.catalog__hint { text-align: center; margin-top: 32px; font-size: 0.88rem; color: var(--muted); }
.catalog__hint em { color: var(--teal); font-style: normal; font-weight: 700; }

/* -------------------- Banner gradiente -------------------- */
.banner { background: var(--grad); color: var(--white); }
.banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 60px; flex-wrap: wrap; }
.banner__title { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 22ch; }

/* -------------------- Notícias -------------------- */
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 16 / 9; background: var(--grad); }
.post__body { padding: 24px; }
.post__tag { display: inline-block; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.8px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.post__title { font-size: 1.14rem; margin-bottom: 10px; }
.post__text { font-size: 0.93rem; margin-bottom: 16px; }
.post__date { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.card__link { font-weight: 700; color: var(--teal); }

/* Feed do Instagram (híbrido com notícias) */
.ig-feed { margin-top: 56px; }
.ig-feed__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ig-feed__title { font-size: 1.3rem; color: var(--navy); }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.ig-feed__hint { color: var(--body); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.ig-feed__embed { max-width: 100%; overflow-x: auto; }
.ig-feed__embed iframe { max-width: 100%; }
.ig-feed__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ig-feed__grid:empty { display: none; }
.ig-post { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.ig-post img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform var(--transition); }
.ig-post:hover img { transform: scale(1.05); }
@media (max-width: 720px) { .ig-feed__grid { grid-template-columns: repeat(2, 1fr); } }

/* -------------------- Contactos -------------------- */
.contacts__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contacts__info { position: sticky; top: 100px; }
.contacts__info .section__head { text-align: left; margin: 0; }
.contacts__info > p { margin-bottom: 24px; }
.contacts__list { display: grid; gap: 14px; margin-bottom: 24px; }
.contacts__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.contacts__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(37,179,174,0.12); color: var(--teal); font-size: 1.1rem; }
.contacts__badge { background: var(--cream); border-left: 3px solid var(--teal); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 600; color: var(--navy); font-size: 0.95rem; }

.contacts__form { background: var(--cream); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--navy); margin-bottom: 7px; }
.req { color: var(--teal); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.94rem; color: var(--ink); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2329235c' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(37,179,174,0.15); }
.field textarea { resize: vertical; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fieldset { border: 0; padding: 0; margin: 8px 0 22px; }
.fieldset legend { font-weight: 800; color: var(--navy); font-size: 1.02rem; padding: 0; margin-bottom: 14px; display: block; width: 100%; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.legend-opt { font-weight: 500; color: var(--muted); font-size: 0.85rem; }

.contacts__form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field__note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.field__note.is-ok { color: var(--teal-dark); font-weight: 700; }
.field__note.is-error { color: #d64550; font-weight: 700; }

/* -------------------- Cofinanciamento (Pessoas 2030) -------------------- */
.cofinance { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.08); }
.cofinance__inner { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; padding-block: 22px; }
.cofinance__bar { max-width: 640px; width: 100%; height: auto; }
.cofinance__ficha {
  flex-shrink: 0; color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.25); padding: 8px 16px; border-radius: 999px;
  transition: border-color var(--transition), color var(--transition);
}
.cofinance__ficha:hover { color: #fff; border-color: var(--teal); }

/* -------------------- Footer -------------------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.72); }
.footer__badges { display: flex; align-items: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.footer__cert { width: 190px; max-width: 100%; height: auto; }
.footer__seal { width: 86px; height: auto; flex-shrink: 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer__logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer__about { font-size: 0.93rem; margin-bottom: 20px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.1); font-weight: 700; font-size: 0.85rem; color: var(--white); transition: background var(--transition); text-transform: uppercase; }
.footer__social a:hover { background: var(--teal); }
.footer__title { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer__links li, .footer__contact li { margin-bottom: 10px; font-size: 0.93rem; }
.footer__links a:hover, .footer__contact a:hover { color: var(--teal); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; font-size: 0.85rem; flex-wrap: wrap; }
.footer__tag { font-weight: 700; color: var(--teal); }
.footer__credit { color: rgba(255,255,255,0.55); }
.footer__credit a { color: rgba(255,255,255,0.8); font-weight: 700; }
.footer__credit a:hover { color: var(--teal); }

/* -------------------- Subpáginas (legal / recrutamento) -------------------- */
.legal { padding-block: 56px 48px; }
.legal__inner { max-width: 820px; }
.legal__title { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--navy); margin-bottom: 20px; }
.legal h2 { font-size: 1.15rem; color: var(--navy); margin: 30px 0 10px; }
.legal p { margin-bottom: 14px; }
.legal a { color: var(--teal-dark); font-weight: 600; }
.legal__contact { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.alert-ok { background: #e6f7f5; color: var(--teal-dark); border: 1px solid #bfe9e5; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-top: 20px; }
.alert-err { background: #fde8ea; color: #d64550; border: 1px solid #f6c9ce; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-top: 20px; }
.field input[type="file"] { padding: 9px 12px; background: var(--white); font-size: 0.88rem; cursor: pointer; }

/* -------------------- Responsive -------------------- */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr; }
  .contacts__inner { grid-template-columns: 1fr; gap: 36px; }
  .contacts__info { position: static; }
  .contacts__info .section__head { text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .nav {
    position: fixed; inset: 78px 0 auto 0; background: var(--white);
    border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height var(--transition);
  }
  .nav.is-open { max-height: 520px; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 4px; }
  .nav__link { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav__link--cta { margin-left: 0; text-align: center; }
  .nav__lang { justify-content: center; margin: 6px 0; }
  .nav-toggle { display: flex; }
}
@media (max-width: 760px) {
  .cards--3 { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .banner__inner { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__pillars { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
