/* ===== Efraim Clínica ===== */
/* Palette: Alegria Pastel */

:root {
  --bg:        #faf7f3;
  --card:      #ffffff;
  --ink:       #2d2c38;
  --body:      #5c5a68;
  --accent:    #ef8a6c;   /* coral */
  --accent-h:  #db6f50;   /* coral hover */
  --accent-2:  #8a7fd0;   /* violeta */
  --section:   #f4efe9;
  --border:    rgba(40,40,50,.09);
  --whatsapp:  #25D366;

  /* legacy aliases used throughout the stylesheet */
  --surface:  var(--card);
  --text:     var(--ink);
  --muted:    var(--body);
  --heading:  var(--ink);
  --accent2:  var(--accent-2);
  --shadow:   0 2px 12px rgba(40,40,50,.06);
  --radius:   6px;

  /* admin-only chrome (kept distinct from the public pastel theme) */
  --nav-bg:   #4A2472;
  --nav-text: #F5F0E8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Mulish', system-ui, sans-serif;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--card);
  color: var(--ink);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(40,40,50,.06);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand-logo-placeholder {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.brand-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  font-weight: 500;
}

/* ===== NAV ===== */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
}
.nav-list a {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius);
  letter-spacing: .3px;
  transition: background .18s, color .18s;
  display: block;
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list a.active {
  background: var(--section);
  color: var(--accent);
}

/* WhatsApp CTA */
.wa-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--whatsapp);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 24px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background .18s;
  flex-shrink: 0;
}
.wa-btn:hover { background: #1eb856; }
.wa-btn svg { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}
.mobile-nav {
  display: none;
  background: var(--card);
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(120deg,#fdeede 0%,#e9f3ec 48%,#e6eefb 100%);
  color: var(--ink);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }
.hero-inner--split {
  max-width: var(--max-w);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.hero-photo img {
  width: 100%;
  min-height: 320px;
  max-height: 420px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 18px;
  background: var(--section);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 56px;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}
.hero-content { position: relative; }
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-2);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -.5px;
  color: var(--ink);
}
.hero p {
  font-size: 16px;
  color: var(--body);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-h); color: #fff; text-decoration: none; }
.btn-outline {
  background: #fff;
  border: 1.5px solid var(--accent-2);
  color: var(--accent-2);
}
.btn-outline:hover { background: var(--accent-2); color: #fff; text-decoration: none; }

/* ===== SECTIONS ===== */
.section {
  padding: 72px 24px;
}
.section-alt { background: var(--section); }
.container { max-width: var(--max-w); margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--heading);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-header p { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 auto; }
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== DESTAQUE (notícia em evidência) ===== */
.destaque-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--border);
}
.destaque-img {
  min-height: 360px;
  background: var(--accent2);
  overflow: hidden;
}
.destaque-img img { width: 100%; height: 100%; object-fit: cover; }
.destaque-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-2), #6f63c0);
  font-family: var(--font-display);
  color: rgba(255,255,255,.55);
  font-size: 48px;
}
.destaque-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.destaque-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.destaque-body h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--heading);
}
.destaque-body p { color: var(--muted); margin-bottom: 28px; line-height: 1.75; }

/* ===== CURSOS GRID ===== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.curso-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.curso-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.11); }
.curso-card-img {
  height: 180px;
  overflow: hidden;
  background: var(--section);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(45,44,56,.28);
  font-size: 32px;
}
.curso-card:nth-child(3n+1) .curso-card-img { background: #dff0e6; }
.curso-card:nth-child(3n+2) .curso-card-img { background: #fde3d3; }
.curso-card:nth-child(3n+3) .curso-card-img { background: #dcecf9; }
.curso-card-img img { width: 100%; height: 100%; object-fit: cover; }
.curso-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.curso-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--heading);
  line-height: 1.3;
}
.curso-card-body p { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 12px; line-height: 1.6; }
.curso-valor {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  display: inline-block;
  transition: background .18s;
  text-decoration: none;
}
.btn-sm:hover { background: var(--accent-h); color: #fff; text-decoration: none; }

/* ===== NOTICIAS GRID ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s;
}
.news-card:hover { transform: translateY(-3px); }
.news-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--section);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(45,44,56,.28);
  font-size: 28px;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.news-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.35;
  color: var(--heading);
}
.news-card-body p { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 16px; }
.leia-mais {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.leia-mais:hover { text-decoration: underline; }

/* ===== ASSOCIADOS ===== */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.search-bar input, .search-bar select {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
}
.search-bar button {
  padding: 10px 22px;
  background: var(--accent2);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background .18s;
}
.search-bar button:hover { background: #6f63c0; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
thead tr { background: var(--section); color: var(--ink); }
th, td { padding: 13px 16px; text-align: left; font-size: 14px; }
th { font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--section); }

/* ===== FILIACAO ===== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-section-title:first-child { margin-top: 0; }
.form-section-title span.num {
  background: var(--accent);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 600; color: var(--text); }
.required::after { content: ' *'; color: #c0392b; }
input[type="text"], input[type="email"], input[type="date"], input[type="tel"],
select, textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: border-color .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent2);
  background: #fff;
}
textarea { resize: vertical; min-height: 90px; }
.tipo-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.tipo-btn {
  flex: 1;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s;
  background: var(--surface);
  color: var(--muted);
}
.tipo-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #faf6ee;
}
.alerta-info {
  background: #fef9e7;
  border: 1px solid #f0d080;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #7a6000;
  margin: 20px 0;
  line-height: 1.6;
}
.checkbox-group { display: flex; gap: 24px; flex-wrap: wrap; }
.checkbox-group label { font-weight: 400; display: flex; align-items: center; gap: 7px; cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: 16px; height: 16px; }

/* ===== CONTATO ===== */
.contato-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contato-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: var(--heading);
}
.contato-info p { color: var(--muted); margin-bottom: 20px; }
.wa-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .18s;
}
.wa-big:hover { background: #1eb856; text-decoration: none; color: #fff; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--section);
  color: var(--ink);
  padding: 56px 24px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.page-header p { color: var(--body); font-size: 16px; }

/* ===== INSTITUTIONAL ===== */
.inst-content {
  max-width: 820px;
  margin: 0 auto;
}
.inst-img { border-radius: 8px; margin-bottom: 32px; width: 100%; max-height: 420px; object-fit: cover; }
.inst-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent2);
  margin-bottom: 8px;
}
.inst-content .prose {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
}
.inst-content .prose p { margin-bottom: 18px; }

/* ===== DETALHE CURSO ===== */
.detalhe-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detalhe-wrap img { border-radius: 8px; width: 100%; }
.detalhe-info h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.valor-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 18px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 32px;
}
.video-wrap iframe { position: absolute; top:0; left:0; width:100%; height:100%; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: all .18s;
}
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.news-filter { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.news-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .18s;
}
.news-filter-btn:hover { border-color: var(--accent); }
.news-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== FOOTER ===== */
footer {
  background: var(--section);
  color: var(--body);
  text-align: center;
  padding: 28px 24px;
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
footer a { color: var(--accent-2); }

/* ===== ALERTS ===== */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14.5px;
}
.alert-success { background: #eafaf1; border: 1px solid #a3d9b8; color: #1e6c41; }
.alert-error   { background: #fdf0f0; border: 1px solid #e8a7a7; color: #7c1b1b; }
.alert-info    { background: #eef6fb; border: 1px solid #9ecce8; color: #1a5575; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  background: var(--nav-bg);
  color: var(--nav-text);
  flex-shrink: 0;
  padding: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
}
.sidebar-logo small { display: block; font-family: var(--font-body); font-size: 11px; color: rgba(255,255,255,.5); margin-top: 3px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  transition: all .18s;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.sidebar nav a:hover, .sidebar nav a.active {
  color: #fff;
  background: rgba(255,255,255,.07);
  border-left-color: var(--accent);
}
.admin-main {
  margin-left: 240px;
  flex: 1;
  padding: 32px;
  background: #EDE8F5;
  min-height: 100vh;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.admin-topbar h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--heading);
}
.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.admin-table-actions { display: flex; gap: 8px; }
.btn-edit { background: var(--accent2); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 4px; border: none; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-del  { background: #c0392b;        color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 4px; border: none; cursor: pointer; }
.btn-del:hover { background: #a93226; }
.btn-edit:hover { background: #6f63c0; text-decoration: none; color: #fff; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form-grid .full { grid-column: 1/-1; }
.btn-save { background: var(--accent); color: #fff; border: none; padding: 11px 26px; border-radius: var(--radius); font-weight: 700; font-size: 15px; cursor: pointer; }
.btn-save:hover { background: var(--accent-h); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-green { background: #d5f5e3; color: #1e6c41; }
.badge-gray  { background: #e8e6e2; color: #666; }
.badge-blue  { background: #dfe6fb; color: #33449b; }
.badge-red   { background: #fbdede; color: #a3312a; }

/* ===== PERFIS / AUDITORIA ===== */
.perm-matrix th, .perm-matrix td { text-align: left; }
.filter-bar { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.filter-bar .form-group { min-width: 160px; margin-bottom: 0; }

/* ===== QUEM SOMOS / EQUIPE ===== */
.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 em {
  font-style: italic;
  color: var(--accent);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.team-card { text-align: center; }
.team-photo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 22px;
  background: #b8b4c4;
}
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #9a96a8, #7a7488);
  font-size: 44px;
  color: rgba(255,255,255,.4);
  font-family: var(--font-display);
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 10px;
}
.team-divider {
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 12px;
}
.team-role {
  font-size: 13.5px;
  color: var(--accent2);
  line-height: 1.55;
}
.team-email {
  margin-top: 8px;
  font-size: 13px;
}
.team-email a {
  color: var(--accent);
  text-decoration: none;
}
.team-email a:hover { text-decoration: underline; }
.team-resumo {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}
.team-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: opacity .2s;
}
.team-social a:hover { opacity: .8; }

/* ===== FOOTER NOVO ===== */
footer .footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .5px;
  margin-bottom: 6px;
}
footer .footer-copy {
  font-size: 13px;
  color: var(--body);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .destaque-card { grid-template-columns: 1fr; }
  .destaque-img { min-height: 240px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contato-wrap { grid-template-columns: 1fr; }
  .detalhe-wrap { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero-inner--split { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-photo { order: 2; }
  .hero-photo img, .hero-photo-placeholder { min-height: 240px; max-height: 280px; }
}
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 768px) {
  .brand-name { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .sidebar { position: static; width: 100%; }
  .admin-main { margin-left: 0; padding: 20px; }
  .form-card { padding: 22px; }
  .destaque-body { padding: 28px 22px; }
  .tipo-selector { flex-direction: column; }
}
@media (max-width: 480px) {
  .topbar-inner { height: 58px; }
  .wa-btn span { display: none; }
}

/* ===== APRESENTAÇÃO PÚBLICA DO SISTEMA ===== */
.pres-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  padding: 96px 24px 108px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pres-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(255,255,255,.14), transparent 40%),
              radial-gradient(circle at 82% 78%, rgba(255,255,255,.12), transparent 45%);
}
.pres-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.pres-hero .section-eyebrow { color: rgba(255,255,255,.85); }
.pres-hero h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 600; margin: 14px 0 18px; line-height: 1.22; }
.pres-hero p { font-size: 17px; color: rgba(255,255,255,.94); line-height: 1.75; margin-bottom: 34px; }
.pres-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pres-hero-actions .btn-primary { background: #fff; color: var(--accent-h); }
.pres-hero-actions .btn-primary:hover { opacity: .9; color: var(--accent-h); }
.pres-hero-actions .btn-outline { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.pres-hero-actions .btn-outline:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Fluxograma: linhas de caixas conectadas por setas, com seta vertical entre linhas */
.pres-flowchart { display: flex; flex-direction: column; gap: 0; max-width: 980px; margin: 0 auto; }
.pres-flow-row { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.pres-flow-down { display: flex; justify-content: center; color: var(--accent-2); font-size: 22px; padding: 6px 0; }
.pres-flow-box {
  flex: 1 1 0;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.pres-flow-box:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.09); }
.pres-flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  margin-bottom: 10px;
}
.pres-flow-box h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--heading); margin-bottom: 6px; line-height: 1.25; }
.pres-file { display: inline-block; font-family: monospace; font-size: 11px; color: var(--accent-2); background: var(--section); padding: 2px 7px; border-radius: 4px; margin-bottom: 8px; }
.pres-flow-box p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.pres-flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent-2); font-size: 20px; flex: 0 0 auto; padding: 0 2px; }
@media (max-width: 900px) {
  .pres-flow-row { flex-direction: column; }
  .pres-flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.module-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.module-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.09); }
.module-icon { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--section); color: var(--accent-2); }
.module-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--heading); margin: 4px 0 8px; }
.module-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.module-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 3px 10px; border-radius: 10px; }
.module-tag.tag-conteudo { background: #d5f5e3; color: #1e6c41; }
.module-tag.tag-admin { background: #dfe6fb; color: #33449b; }

.perm-diagram { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.perm-box { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px 28px; text-align: center; box-shadow: var(--shadow); min-width: 150px; }
.perm-box strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--heading); margin-bottom: 4px; }
.perm-box span { font-size: 12.5px; color: var(--muted); }
.perm-arrow { color: var(--accent); font-size: 22px; }

.audit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audit-item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.audit-dot { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.audit-item h4 { font-family: var(--font-display); font-size: 1.02rem; color: var(--heading); margin-bottom: 4px; }
.audit-item p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.pres-cta { text-align: center; padding: 76px 24px; }
.pres-cta h2 { font-family: var(--font-display); font-size: 1.9rem; color: var(--heading); margin-bottom: 14px; }
.pres-cta p { color: var(--muted); margin-bottom: 28px; }

@media (max-width: 900px) {
  .module-grid { grid-template-columns: repeat(2,1fr); }
  .audit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .module-grid { grid-template-columns: 1fr; }
}
