/*
Theme Name: IntegraPass
Theme URI: https://integrapass.com.br
Author: IntegraPass
Description: Tema WordPress institucional do IntegraPass - plataforma de integracao digital, treinamentos obrigatorios e comprovacao de participacao.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: integrapass
*/

:root {
  --ip-bg: #f7f9fc;
  --ip-surface: #eef3fa;
  --ip-card: #ffffff;
  --ip-border: #dbe3ef;
  --ip-primary: #1666d6;
  --ip-primary-deep: #0b2a5b;
  --ip-accent: #e4efff;
  --ip-success: #0f9d6f;
  --ip-text: #14213d;
  --ip-muted: #5a6b86;
  --ip-radius: 18px;
  --ip-shadow: 0 10px 30px rgba(11, 42, 91, .08);
  --ip-shadow-lift: 0 18px 44px rgba(11, 42, 91, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ip-bg);
  color: var(--ip-text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .ip-display {
  font-family: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  color: var(--ip-primary-deep);
  line-height: 1.15;
  margin: 0;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0; }
a { color: var(--ip-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.ip-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ip-section { padding: 76px 0; }
.ip-section--surface { background: var(--ip-surface); }
.ip-muted { color: var(--ip-muted); }
.ip-eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ip-primary); margin-bottom: 12px;
}
.ip-lead { font-size: 1.1rem; color: var(--ip-muted); max-width: 60ch; }
.ip-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.ip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  text-decoration: none;
}
.ip-btn:hover { text-decoration: none; transform: translateY(-1px); }
.ip-btn--primary { background: var(--ip-primary); color: #fff; box-shadow: var(--ip-shadow); }
.ip-btn--primary:hover { background: var(--ip-primary-deep); box-shadow: var(--ip-shadow-lift); color: #fff; }
.ip-btn--outline { background: #fff; color: var(--ip-primary-deep); border-color: var(--ip-border); }
.ip-btn--outline:hover { border-color: var(--ip-primary); background: var(--ip-accent); }
.ip-btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.ip-btn--light:hover { background: rgba(255,255,255,.2); color: #fff; }
.ip-btn--sm { padding: 10px 20px; }

/* Header */
.ip-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 249, 252, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ip-border);
}
.ip-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.ip-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ip-primary-deep); }
.ip-brand:hover { text-decoration: none; }
.ip-brand__mark {
  width: 36px; height: 36px; border-radius: 12px; background: var(--ip-primary);
  color: #fff; display: grid; place-items: center; font-size: 18px;
}
.ip-nav ul { display: flex; gap: 26px; align-items: center; }
.ip-nav a { font-size: .95rem; font-weight: 600; color: var(--ip-muted); }
.ip-nav a:hover, .ip-nav .current-menu-item > a { color: var(--ip-primary); text-decoration: none; }
.ip-header__cta { display: flex; }
.ip-burger {
  display: none; background: #fff; border: 1px solid var(--ip-border);
  border-radius: 10px; padding: 9px 11px; cursor: pointer; color: var(--ip-primary-deep);
}
.ip-mobile { display: none; border-top: 1px solid var(--ip-border); background: #fff; padding: 16px 0 22px; }
.ip-mobile.is-open { display: block; }
.ip-mobile ul { display: grid; gap: 14px; margin-bottom: 16px; }
.ip-mobile a { font-weight: 600; color: var(--ip-muted); }

@media (max-width: 880px) {
  .ip-nav, .ip-header__cta { display: none; }
  .ip-burger { display: inline-flex; }
}

/* Hero */
.ip-hero {
  background:
    radial-gradient(900px 420px at 12% -10%, var(--ip-accent), transparent 70%),
    radial-gradient(700px 380px at 92% 0%, #eaf7f1, transparent 70%);
  border-bottom: 1px solid var(--ip-border);
  padding: 84px 0;
}
.ip-hero__grid { display: grid; gap: 46px; grid-template-columns: 1.05fr .95fr; align-items: center; }
.ip-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--ip-border); border-radius: 999px; padding: 7px 16px;
  font-size: .82rem; font-weight: 700; color: var(--ip-primary-deep);
}
.ip-hero h1 { margin-top: 18px; }
.ip-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.ip-hero__proof { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; font-size: .9rem; color: var(--ip-muted); font-weight: 600; }
.ip-hero__card { background: #fff; border: 1px solid var(--ip-border); border-radius: 24px; box-shadow: var(--ip-shadow-lift); padding: 26px; }
.ip-hero__card h2 { font-size: 1.15rem; }
.ip-steps { display: grid; gap: 14px; margin-top: 18px; }
.ip-step { display: flex; gap: 14px; align-items: flex-start; background: var(--ip-surface); border-radius: 14px; padding: 14px 16px; }
.ip-step__num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ip-primary); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 800; }
.ip-step strong { display: block; color: var(--ip-primary-deep); font-size: .95rem; }
.ip-step span { font-size: .88rem; color: var(--ip-muted); }

@media (max-width: 940px) { .ip-hero__grid { grid-template-columns: 1fr; } }

/* Cards / grids */
.ip-grid { display: grid; gap: 22px; margin-top: 40px; }
.ip-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ip-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ip-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .ip-grid--3, .ip-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .ip-grid--2, .ip-grid--3, .ip-grid--4 { grid-template-columns: 1fr; } }

.ip-card {
  background: var(--ip-card); border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius); padding: 26px; box-shadow: var(--ip-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ip-card:hover { transform: translateY(-3px); box-shadow: var(--ip-shadow-lift); }
.ip-card__icon {
  width: 44px; height: 44px; border-radius: 13px; background: var(--ip-accent);
  color: var(--ip-primary); display: grid; place-items: center; font-size: 20px; margin-bottom: 16px;
}
.ip-card h3 { margin-bottom: 8px; }
.ip-card p { font-size: .95rem; color: var(--ip-muted); }

.ip-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ip-pill { background: #fff; border: 1px solid var(--ip-border); border-radius: 999px; padding: 9px 20px; font-weight: 600; font-size: .92rem; color: var(--ip-primary-deep); }

.ip-check { display: grid; gap: 12px; margin-top: 24px; }
.ip-check li { display: flex; gap: 10px; align-items: flex-start; color: var(--ip-muted); font-size: .98rem; }
.ip-check li::before { content: "✓"; color: var(--ip-success); font-weight: 800; }

/* Comparativo */
.ip-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.ip-compare__col { border-radius: var(--ip-radius); padding: 28px; border: 1px solid var(--ip-border); background: #fff; }
.ip-compare__col--old { background: #fdf6f4; border-color: #f3d9d2; }
.ip-compare__col h3 { margin-bottom: 16px; }
.ip-compare li { display: flex; gap: 10px; padding: 9px 0; font-size: .95rem; color: var(--ip-muted); border-bottom: 1px dashed var(--ip-border); }
.ip-compare li:last-child { border-bottom: 0; }
@media (max-width: 760px) { .ip-compare { grid-template-columns: 1fr; } }

/* CTA band */
.ip-cta {
  background: linear-gradient(120deg, var(--ip-primary-deep), var(--ip-primary));
  color: #fff; padding: 72px 0; text-align: center;
}
.ip-cta h2 { color: #fff; }
.ip-cta p { color: rgba(255,255,255,.85); margin: 14px auto 0; max-width: 60ch; }
.ip-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Page hero */
.ip-pagehero {
  background: radial-gradient(800px 380px at 10% -20%, var(--ip-accent), transparent 70%);
  border-bottom: 1px solid var(--ip-border); padding: 70px 0;
}

/* Prose (legal / default pages) */
.ip-prose { max-width: 760px; margin: 0 auto; }
.ip-prose h2 { margin-top: 34px; font-size: 1.3rem; }
.ip-prose h3 { margin-top: 26px; }
.ip-prose p, .ip-prose li { color: var(--ip-muted); }
.ip-prose p { margin-top: 12px; }
.ip-prose ul { list-style: disc; padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }

/* Formulario */
.ip-form { background: #fff; border: 1px solid var(--ip-border); border-radius: var(--ip-radius); box-shadow: var(--ip-shadow); padding: 30px; }
.ip-field { display: grid; gap: 7px; margin-bottom: 18px; }
.ip-field label { font-size: .88rem; font-weight: 700; color: var(--ip-primary-deep); }
.ip-field input, .ip-field select, .ip-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--ip-border); border-radius: 12px;
  font: inherit; color: var(--ip-text); background: var(--ip-bg);
}
.ip-field input:focus, .ip-field select:focus, .ip-field textarea:focus {
  outline: none; border-color: var(--ip-primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(22,102,214,.14);
}
.ip-field textarea { min-height: 120px; resize: vertical; }
.ip-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 660px) { .ip-form__row { grid-template-columns: 1fr; } }
.ip-form__note { font-size: .82rem; color: var(--ip-muted); margin-top: 14px; }
.ip-alert { border-radius: 12px; padding: 14px 16px; font-size: .93rem; margin-bottom: 20px; }
.ip-alert--ok { background: #e7f7f0; color: #0b6b4d; border: 1px solid #bfe8d8; }
.ip-alert--err { background: #fdecea; color: #9b271b; border: 1px solid #f5cfc9; }

/* Footer */
.ip-footer { background: var(--ip-surface); border-top: 1px solid var(--ip-border); }
.ip-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding: 56px 0; }
.ip-footer h3 { font-size: .95rem; margin-bottom: 14px; }
.ip-footer li { margin-bottom: 9px; }
.ip-footer a, .ip-footer p { color: var(--ip-muted); font-size: .93rem; }
.ip-footer__bottom { border-top: 1px solid var(--ip-border); padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--ip-muted); font-size: .88rem; }
@media (max-width: 760px) { .ip-footer__grid { grid-template-columns: 1fr; } }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
