/* ==========================================================================
   Portal Social — Associação Franciscana
   Landing (tema "Marca", azul-petróleo)
   ========================================================================== */

/* --- Variáveis do tema --- */
:root {
  --primary: #0A485E;
  --action:  #006992;
  --accent:  #978346;
  --bg:      #FBFCFD;
  --surface: #EEF4F6;
  --text:    #16242B;
  --muted:   #54676E;
  --border:  #D8E4E8;
  --onDark:  #E4F0F4;
}

/* --- Reset básico --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* --- Container raiz da landing --- */
.ps-root {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--bg);
  color: var(--text);
  font-family: 'Public Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: clamp(16px, 4vw, 22px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
}

.ps-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-brand img {
  height: 64px;
  width: auto;
  display: block;
}

.ps-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.12;
}

.ps-brand-name {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 25px;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.ps-brand-sub {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ps-nav-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

/* Botão hamburger — oculto no desktop */
.ps-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}

.ps-hamburger span {
  display: block;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

/* Navegação inline (desktop) */
.ps-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 30px);
}

.ps-nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.ps-nav-link:hover,
.ps-nav-link:focus-visible {
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
}

/* Botão "Inscreva-se" no nav */
.ps-nav-cta {
  background: var(--action);
  color: var(--onDark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ps-nav-cta:hover,
.ps-nav-cta:focus-visible {
  background: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

/* ==========================================================================
   BOTÕES (genéricos do corpo)
   ========================================================================== */
.ps-btn-primary {
  background: var(--action);
  color: var(--onDark);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 30px;
  border-radius: 7px;
  display: inline-block;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ps-btn-primary:hover,
.ps-btn-primary:focus-visible {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.ps-btn-outline {
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: inline-block;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.ps-btn-outline:hover,
.ps-btn-outline:focus-visible {
  border-color: var(--action);
  color: var(--primary);
  background: var(--surface);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.ps-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  padding: clamp(48px, 7vw, 76px) clamp(20px, 5vw, 80px) clamp(44px, 6vw, 72px);
}

.ps-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}

.ps-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.ps-hero h1 {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 0 0 22px;
  text-wrap: balance;
}

.ps-hero-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 90%;
}

.ps-hero-lead strong {
  color: var(--text);
}

.ps-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.ps-hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--muted);
}

.ps-hero-note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.ps-hero-note strong {
  color: var(--text);
  margin-left: 2px;
}

.ps-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.ps-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ps-stat {
  padding: 30px clamp(20px, 4vw, 40px);
  border-right: 1px solid var(--border);
}

.ps-stat:first-child {
  padding-left: clamp(20px, 5vw, 80px);
}

.ps-stat:last-child {
  border-right: none;
}

.ps-stat-num {
  font-family: 'Source Serif 4', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.ps-stat-label {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 6px;
}

/* ==========================================================================
   SEÇÕES GENÉRICAS
   ========================================================================== */
.ps-section {
  padding: clamp(52px, 7vw, 80px) clamp(20px, 5vw, 80px);
}

.ps-section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ps-section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.ps-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.ps-h2 {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin: 0;
}

/* ==========================================================================
   COMO FUNCIONA
   ========================================================================== */
.ps-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 2.4vw, 28px);
}

.ps-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ps-step-num {
  font-family: 'Source Serif 4', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}

.ps-rule {
  height: 1px;
  background: var(--border);
}

.ps-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 0;
}

.ps-step p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   QUEM PODE PARTICIPAR
   ========================================================================== */
.ps-twocol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.ps-criterios {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ps-criterio {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.ps-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--action);
  color: var(--onDark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.ps-criterio-txt {
  font-size: 16px;
  color: var(--text);
}

.ps-h2--mb {
  margin: 0 0 26px;
}

.ps-criterio-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.ps-card-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.ps-card-big {
  font-family: 'Source Serif 4', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.05;
}

.ps-card-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 22px;
}

.ps-card-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 22px;
}

.ps-card-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   UNIDADES
   ========================================================================== */
.ps-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.ps-unit {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  border-top: 3px solid var(--accent);
}

.ps-unit-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.ps-unit h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px;
}

.ps-unit-full {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

.ps-unit p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 18px;
}

.ps-unit-foot {
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ==========================================================================
   DOCUMENTOS
   ========================================================================== */
.ps-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px clamp(20px, 3vw, 40px);
}

.ps-doc {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 18px 20px;
}

.ps-doc-letter {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}

.ps-doc-txt {
  font-size: 15.5px;
  color: var(--text);
}

/* ==========================================================================
   CRONOGRAMA
   ========================================================================== */
.ps-timeline {
  display: flex;
  flex-direction: column;
}

.ps-tl-row {
  display: grid;
  grid-template-columns: clamp(110px, 24vw, 200px) 1fr;
  gap: clamp(16px, 3vw, 30px);
  padding: 22px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}

.ps-tl-row:last-child {
  border-bottom: 1px solid var(--border);
}

.ps-tl-date {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}

.ps-tl-txt {
  font-size: 16px;
  color: var(--text);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.ps-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.ps-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0 20px;
}

.ps-faq-item:first-child {
  padding-top: 0;
}

.ps-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ps-faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 7px;
}

.ps-faq-item p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.ps-cta {
  padding: clamp(56px, 8vw, 84px) clamp(20px, 5vw, 80px);
  background: var(--primary);
  text-align: center;
}

.ps-cta h2 {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--onDark);
  margin: 0 0 16px;
  text-wrap: balance;
}

.ps-cta p {
  font-size: 18px;
  color: var(--onDark);
  opacity: 0.82;
  margin: 0 auto 32px;
  max-width: 560px;
}

.ps-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  padding: 17px 40px;
  border-radius: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ps-cta-btn:hover,
.ps-cta-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ps-footer {
  padding: clamp(32px, 5vw, 48px) clamp(20px, 5vw, 80px);
  background: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.ps-footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.ps-footer-brand img {
  height: 40px;
  width: auto;
  display: block;
}

.ps-footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ps-footer-name {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--onDark);
}

.ps-footer-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--onDark);
  opacity: 0.7;
}

.ps-footer-legal {
  font-size: 13.5px;
  color: var(--onDark);
  opacity: 0.7;
}

/* ==========================================================================
   MODAIS (login / cadastro)
   ========================================================================== */
.ps-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  overflow: auto;
}

/* Container oculto por padrão; o JS adiciona .is-open */
.ps-modal[hidden] {
  display: none;
}

.ps-modal-brand {
  background: var(--primary);
  color: var(--onDark);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.ps-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--onDark);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.18s ease;
}

.ps-back:hover,
.ps-back:focus-visible {
  opacity: 1;
}

.ps-modal-brand-mid {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ps-modal-brand-mid img {
  height: 76px;
  width: auto;
  display: block;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
}

.ps-modal-brand-mid h2 {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.ps-modal-brand-mid p {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.82;
  margin: 0;
  max-width: 420px;
}

.ps-modal-brand-foot {
  font-size: 13px;
  opacity: 0.6;
}

.ps-modal-form {
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.ps-form-inner {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.ps-form-inner h1 {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin: 0 0 6px;
}

.ps-form-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 32px;
}

.ps-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.ps-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ps-label-row .ps-label {
  margin-bottom: 0;
}

.ps-forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--action);
  text-decoration: none;
}

.ps-forgot:hover,
.ps-forgot:focus-visible {
  text-decoration: underline;
}

/* Inputs com focus-ring */
.ps-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 20px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ps-input--tight {
  margin-bottom: 18px;
}

.ps-input:focus {
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(0, 105, 146, 0.12);
}

/* Botão de submit dos forms */
.ps-submit {
  width: 100%;
  background: var(--action);
  color: var(--onDark);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  padding: 15px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  transition: background 0.18s ease, transform 0.18s ease;
}

.ps-submit:hover,
.ps-submit:focus-visible {
  background: var(--primary);
  transform: translateY(-1px);
}

.ps-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}

.ps-divider span:first-child,
.ps-divider span:last-child {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ps-divider-txt {
  font-size: 13px;
  color: var(--muted);
}

.ps-switch {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.ps-switch--top {
  margin-top: 26px;
}

.ps-switch a {
  color: var(--action);
  font-weight: 700;
  text-decoration: none;
}

.ps-switch a:hover,
.ps-switch a:focus-visible {
  text-decoration: underline;
}

/* Mensagem de erro/feedback dentro dos forms (oculta por padrão) */
.ps-form-msg {
  font-size: 14px;
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.ps-form-msg[hidden] {
  display: none;
}

.ps-form-msg--error {
  color: #8a1c1c;
  background: #fbeaea;
  border: 1px solid #f0c5c5;
}

/* ==========================================================================
   RESPONSIVO — menu mobile (<= 760px)
   ========================================================================== */
@media (max-width: 760px) {
  /* Mostra o hamburger */
  .ps-hamburger {
    display: flex;
  }

  /* Esconde a navegação inline por padrão no mobile */
  .ps-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 230px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
    z-index: 60;
  }

  /* Aberto via JS */
  .ps-nav.is-open {
    display: flex;
  }

  .ps-hero-lead {
    max-width: 100%;
  }
}
