/* Interior pages — reuses the tokens and components from styles.css */
.page-hero {
  min-height: 25rem;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--purple-deep);
}
.page-hero .hero-photo {
  object-position: center 32%;
  filter: saturate(.68);
}
.page-hero .hero-shade {
  background: linear-gradient(180deg, rgba(46,8,84,.92) 0%, rgba(46,8,84,.76) 52%, rgba(46,8,84,.92) 100%);
}
.page-hero .topbar { background: rgba(46,8,84,.3); }
.page-hero-content {
  position: relative;
  z-index: 2;
  width: min(88%, 72rem);
  margin: 0 auto;
  padding: 10rem 0 4.5rem;
  text-align: center;
}
.page-hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: .4rem;
  background: rgba(46,8,84,.58);
  font-size: var(--text-xs);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .14em;
}
.page-hero h1 {
  max-width: 60rem;
  margin: 0 auto;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.035em;
}
.page-hero-content > p:last-child {
  max-width: 46rem;
  margin: 1rem auto 0;
  color: rgba(255,255,255,.92);
  font-size: var(--text-md);
  line-height: 1.7;
}
.page-main { background: var(--white); }
.page-section { padding: 4.5rem 0; }
.page-section.is-soft { background: var(--snow); }
.page-shell { width: min(88%, 72rem); margin: auto; }
.page-section-head { max-width: 48rem; margin: 0 auto 2.5rem; text-align: center; }
.page-section-head .section-title { margin: 0; }
.page-section-head p { margin: .75rem 0 0; color: var(--text-muted); font-size: var(--text-base); line-height: 1.7; }
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.page-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 .5rem 1.5rem rgba(46,8,84,.07);
}
.page-card > img { width: 100%; height: 12rem; display: block; object-fit: cover; }
.page-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.4rem; }
.page-eyebrow { margin: 0 0 .6rem; color: var(--magenta); font-size: var(--text-xs); line-height: 1.4; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-card h2, .page-card h3 { margin: 0; color: var(--purple-deep); font-size: var(--text-lg); line-height: 1.3; font-weight: 800; }
.page-card p { margin: .7rem 0 1.2rem; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.65; }
.text-link { margin-top: auto; color: var(--magenta); font-size: var(--text-sm); font-weight: 700; }
.text-link:hover { color: var(--magenta-hover); }
.page-feature {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: stretch;
  overflow: hidden;
  border-radius: 1rem;
  color: var(--white);
  background: var(--purple-deep);
  box-shadow: 0 1rem 2.5rem rgba(30,5,56,.16);
}
.page-feature > img { width: 100%; height: 100%; min-height: 22rem; display: block; object-fit: cover; }
.page-feature-body { padding: 2.4rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.page-feature .page-eyebrow { color: #FFC5E0; }
.page-feature h2 { margin: 0; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.2; font-weight: 800; }
.page-feature p { margin: .9rem 0 1.2rem; color: rgba(255,255,255,.9); font-size: var(--text-base); line-height: 1.7; }
.page-feature .page-list { color: rgba(255,255,255,.9); }
.page-feature .page-list li { color: rgba(255,255,255,.9); }
.page-feature .page-list li::before { color: var(--cyan); }
.page-list { margin: 0 0 1.4rem; padding: 0; display: grid; gap: .55rem; list-style: none; }
.page-list li { position: relative; padding-left: 1.4rem; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; }
.page-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--magenta); font-weight: 800; }
.page-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.page-actions.is-centered { justify-content: center; }
.page-actions .primary-button { margin-top: 0; }
.page-button-secondary {
  min-height: 44px;
  padding: .7rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: .5rem;
  color: var(--purple-deep);
  background: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: border-color .2s, color .2s;
}
.page-button-secondary:hover { border-color: var(--magenta); color: var(--magenta); }
.page-pillars { margin-top: 0; }
.page-pillars .callout-card { min-height: 0; }
.page-steps .steps { width: 100%; margin-top: 2rem; }
.page-cta {
  padding: 3.5rem 0;
  color: var(--white);
  background: linear-gradient(112deg, var(--magenta) 0%, var(--violet) 55%, var(--cyan) 100%);
}
.page-cta-inner { width: min(88%, 72rem); margin: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.page-cta h2 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; font-weight: 800; }
.page-cta p { margin: .5rem 0 0; color: rgba(255,255,255,.92); font-size: var(--text-base); line-height: 1.65; }
.page-cta .primary-button { margin-top: 0; background: var(--white); color: var(--purple-deep); }
.page-cta .primary-button:hover { background: var(--snow); color: var(--magenta); }
.page-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.page-contact-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--white); }
.page-contact-card h2, .page-contact-card h3 { margin: 0 0 .6rem; color: var(--purple-deep); font-size: var(--text-md); line-height: 1.3; font-weight: 800; }
.page-contact-card p { margin: 0 0 1rem; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.65; }
.page-social-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.page-social-links.is-centered { justify-content: center; }
.page-social-links a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--purple-deep);
  background: var(--white);
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.page-social-links a:hover { color: var(--white); background: var(--magenta); border-color: var(--magenta); transform: translateY(-2px); }
.page-social-links .iconify { width: 20px; height: 20px; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.page-social-links svg { width: 20px; height: 20px; display: block; color: currentColor; }
.page-note { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-left: 4px solid var(--magenta); background: var(--snow); color: var(--text-muted); font-size: var(--text-sm); line-height: 1.65; }
.join-form-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 2rem; align-items: start; }
.join-form-aside {
  padding: 2rem;
  border-radius: 1rem;
  color: var(--white);
  background: linear-gradient(150deg, var(--purple-deep) 0%, #4A0B6F 100%);
  box-shadow: 0 .8rem 2rem rgba(46,8,84,.12);
}
.join-form-aside .page-eyebrow { color: #FFC5E0; }
.join-form-aside h3 { margin: .2rem 0 .8rem; font-size: var(--text-xl); line-height: 1.2; font-weight: 800; }
.join-form-aside > p { margin: 0; color: rgba(255,255,255,.9); font-size: var(--text-sm); line-height: 1.7; }
.join-form-aside .page-list { margin: 1.2rem 0; }
.join-form-aside .page-list li { color: rgba(255,255,255,.9); }
.join-form-aside .page-list li::before { color: var(--cyan); }
.join-alert {
  margin: 1.2rem 0;
  padding: 1rem;
  border-left: 4px solid var(--magenta);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.join-alert strong { color: #FFC5E0; }
.join-form-card { padding: 2rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--white); box-shadow: 0 .8rem 2rem rgba(46,8,84,.08); }
.join-form-card > h3 { margin: 0 0 .4rem; color: var(--purple-deep); font-size: var(--text-lg); line-height: 1.3; font-weight: 800; }
.join-form-card > p { margin: 0 0 1.4rem; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.65; }
.join-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.form-field-full { grid-column: 1 / -1; }
.form-field > label { color: var(--purple-deep); font-size: var(--text-sm); line-height: 1.4; font-weight: 700; }
.form-field input, .form-field select {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  color: var(--text);
  background: var(--white);
  font-size: var(--text-sm);
}
.form-field select { cursor: pointer; }
.form-field input::placeholder { color: #9A8AA8; }
.form-field input:focus, .form-field select:focus { outline: 3px solid rgba(0,168,232,.28); outline-offset: 1px; border-color: var(--cyan); }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"] { border-color: var(--magenta); background: #FFF7FA; }
.form-hint { margin: 0; color: var(--text-muted); font-size: var(--text-xs); line-height: 1.5; }
.form-error { min-height: 0; margin: 0; color: var(--magenta); font-size: var(--text-xs); line-height: 1.5; }
.form-check { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; cursor: pointer; }
.form-check input { width: 20px; height: 20px; min-height: 0; flex: 0 0 20px; margin-top: .2rem; accent-color: var(--magenta); }
.form-status { display: none; grid-column: 1 / -1; margin: 0; padding: 1rem 1.1rem; border-left: 4px solid var(--cyan); background: rgba(0,168,232,.08); color: var(--text); font-size: var(--text-sm); line-height: 1.6; }
.form-status.is-visible { display: block; }
.form-status.is-error { border-left-color: var(--magenta); background: rgba(225,21,109,.08); }
.form-status.is-info { border-left-color: var(--cyan); background: rgba(0,168,232,.08); }
.form-privacy { grid-column: 1 / -1; margin: 0; color: var(--text-muted); font-size: var(--text-xs); line-height: 1.6; }
.join-form .primary-button { width: 100%; min-height: 48px; margin: 0; }
.join-form .form-submit { grid-column: 1 / -1; }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.partner-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 1rem; background: var(--white); box-shadow: 0 .5rem 1.5rem rgba(46,8,84,.07); }
.partner-logo { height: 11rem; display: grid; place-items: center; padding: 1rem; background: var(--snow); border-bottom: 1px solid var(--border); }
.partner-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.partner-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.35rem; }
.partner-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem; }
.partner-card h2, .partner-card h3 { margin: 0; color: var(--purple-deep); font-size: var(--text-lg); line-height: 1.3; font-weight: 800; }
.partner-seal { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .3rem; padding: .38rem .55rem; border-radius: 999px; background: var(--magenta); color: var(--white); font-size: var(--text-2xs); line-height: 1.2; font-weight: 800; letter-spacing: .05em; white-space: nowrap; }
.partner-seal .iconify { width: 14px; height: 14px; display: block; }
.partner-type { margin: 0 0 .45rem; color: var(--cyan-hover); font-size: var(--text-xs); line-height: 1.4; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.partner-card p { margin: .65rem 0 1.1rem; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.65; }
.partner-card .text-link { margin-top: auto; }
.team-level { margin-top: 2.5rem; }
.team-level:first-of-type { margin-top: 0; }
.team-level-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.team-level-head h3 { margin: 0; color: var(--purple-deep); font-size: var(--text-md); line-height: 1.3; font-weight: 800; white-space: nowrap; }
.team-level-head span { flex: 1; height: 1px; background: var(--border); }
.team-level-head small { color: var(--text-muted); font-size: var(--text-xs); line-height: 1.4; white-space: nowrap; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.team-grid.is-lead { grid-template-columns: minmax(0, 34rem); justify-content: center; }
.team-grid.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-card { overflow: hidden; border: 1px solid var(--border); border-radius: 1rem; background: var(--white); box-shadow: 0 .5rem 1.5rem rgba(46,8,84,.07); }
.team-card.is-lead { display: grid; grid-template-columns: .82fr 1.18fr; }
.team-photo { position: relative; aspect-ratio: 4 / 4.7; background: var(--purple-deep); }
.team-card.is-lead .team-photo { min-height: 20rem; aspect-ratio: auto; }
.team-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.team-photo-badge { position: absolute; left: 1rem; bottom: 1rem; padding: .4rem .55rem; border: 1px solid rgba(255,255,255,.45); border-radius: .35rem; background: rgba(46,8,84,.82); color: var(--white); font-size: var(--text-2xs); line-height: 1.3; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.team-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.35rem; }
.team-card h3 { margin: 0; color: var(--purple-deep); font-size: var(--text-lg); line-height: 1.3; font-weight: 800; }
.team-role { margin: .25rem 0 .7rem; color: var(--magenta); font-size: var(--text-sm); line-height: 1.45; font-weight: 700; }
.team-card p.team-bio { margin: 0; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.65; }
.team-card.is-lead .team-card-body { justify-content: center; padding: 1.8rem; }
.team-note { margin-top: 2rem; }

@media (max-width: 980px) {
  .page-hero { overflow: visible; }
}

@media (max-width: 960px) {
  .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-feature { grid-template-columns: 1fr; }
  .page-feature > img { min-height: 16rem; max-height: 22rem; }
  .page-feature-body { padding: 2rem; }
  .join-form-layout { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid, .team-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-card.is-lead { grid-template-columns: 1fr; }
  .team-card.is-lead .team-photo { min-height: 18rem; aspect-ratio: 4 / 4.7; }
  .team-card.is-lead .team-card-body { padding: 1.5rem; }
}

@media (max-width: 700px) {
  .page-hero { min-height: 0; }
  .page-hero-content { padding: 7.5rem 0 3rem; }
  .page-hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .page-hero-content > p:last-child { font-size: var(--text-base); }
  .page-section { padding: 3rem 0; }
  .page-section-head { margin-bottom: 2rem; }
  .page-grid, .page-grid.two, .page-contact-grid { grid-template-columns: 1fr; }
  .page-card > img { height: 11rem; }
  .page-feature > img { min-height: 14rem; max-height: 18rem; }
  .page-feature-body { padding: 1.5rem; }
  .page-cta { padding: 2.5rem 0; }
  .page-cta-inner { flex-direction: column; align-items: flex-start; }
  .page-actions { width: 100%; }
  .page-actions .primary-button, .page-button-secondary { width: 100%; }
  .join-form-aside, .join-form-card { padding: 1.35rem; }
  .join-form { grid-template-columns: 1fr; }
  .form-field-full, .form-status, .form-privacy, .join-form .form-submit { grid-column: auto; }
  .partner-grid, .team-grid, .team-grid.is-four { grid-template-columns: 1fr; }
  .team-grid.is-lead { grid-template-columns: 1fr; }
  .team-card.is-lead .team-photo { min-height: 17rem; }
  .team-level-head { flex-wrap: wrap; gap: .5rem; }
  .team-level-head span { min-width: 2rem; }
  .team-level-head small { width: 100%; }
}

/* Modal de candidatura recebida (fazer parte) */
.join-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(26rem, calc(100vw - 2rem));
}
.join-modal::backdrop { background: rgba(46, 8, 84, .5); backdrop-filter: blur(2px); }
.join-modal-card {
  padding: 1.9rem 1.6rem 1.6rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 1.5rem 3rem rgba(46, 8, 84, .3);
  text-align: center;
  font-family: 'Montserrat', var(--font);
}
.join-modal-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto .8rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--magenta), var(--violet));
  color: var(--white);
}
.join-modal-icon .iconify { width: 26px; height: 26px; }
.join-modal-card h2 { margin: 0 0 .5rem; color: var(--purple-deep); font-family: 'Poppins', var(--font); font-size: 1.35rem; letter-spacing: -.02em; }
.join-modal-card p { margin: 0 0 1.2rem; color: var(--text-muted, #6b6478); font-size: .92rem; line-height: 1.65; }
.join-modal-actions { display: grid; gap: .55rem; }
.join-modal-actions .primary-button { margin: 0; width: 100%; }
.join-modal-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem 1rem;
  border: 1px solid var(--border, #e4e0ea);
  border-radius: .6rem;
  background: var(--white);
  color: var(--purple-deep);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
.join-modal-actions .secondary-button:hover { border-color: var(--magenta); color: var(--magenta); }
