/* ============================================================
   PORTEFÓLIO – ENG.ª VERÓNICA WAMUSSE
   ============================================================ */

:root {
  --primary: #0f3d6e;
  --primary-2: #1b5a9e;
  --accent: #f59e0b;
  --accent-2: #d97706;
  --dark: #0a1f33;
  --gray: #64748b;
  --gray-light: #cbd5e1;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 4px 20px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .15);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.logo { display: flex; align-items: center; gap: .7rem; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  letter-spacing: .5px;
  font-size: .95rem;
}
.logo-text { font-weight: 700; font-size: 1rem; color: var(--primary); }

.nav { display: flex; gap: 1.6rem; }
.nav-link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray);
  position: relative;
  padding: .4rem 0;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, .12), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(27, 90, 158, .18), transparent 45%),
    linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
  z-index: -1;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 61, 110, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 61, 110, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: .35rem .9rem;
  background: rgba(245, 158, 11, .15);
  color: var(--accent-2);
  font-size: .8rem;
  font-weight: 600;
  border-radius: 30px;
  margin-bottom: 1.2rem;
  letter-spacing: .3px;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 1.8rem;
}

.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.8rem; }

.hero-meta {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--gray);
}

.hero-visual { position: relative; display: flex; justify-content: center; }
.avatar {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid; place-items: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 3px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.avatar::after {
  content: '';
  position: absolute; inset: -12px;
  border: 2px dashed rgba(245, 158, 11, .5);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-card {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 1.4rem;
  white-space: nowrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: var(--primary);
}
.hero-stat span { font-size: .72rem; color: var(--gray); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .92rem;
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-2); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-ghost {
  background: #fff;
  color: var(--primary);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-2); }

.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }

.btn-block { width: 100%; }

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-tag {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2.2rem;
  line-height: 1.2;
}
.section-lead {
  color: var(--gray);
  max-width: 680px;
  margin: -1.4rem 0 2.2rem;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}
.about-text p { margin-bottom: 1rem; color: #334155; }

.quick-facts {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .9rem;
}
.quick-facts div {
  padding: .8rem 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.quick-facts span { display: block; font-size: .72rem; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; }
.quick-facts strong { font-size: .92rem; color: var(--primary); }

.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.side-card h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.05rem; }

.check-list { list-style: none; }
.check-list li {
  padding: .4rem 0 .4rem 1.6rem;
  position: relative;
  font-size: .92rem;
  color: #334155;
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

.lang { margin-bottom: .9rem; }
.lang > span {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .3rem;
}
.bar { height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; }
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 6px;
}

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-dot {
  position: absolute;
  left: -2rem; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 61, 110, .1);
}
.tl-body {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.tl-body:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.tl-date {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.tl-body h3 { font-size: 1.05rem; color: var(--primary); margin: .35rem 0 .2rem; }
.tl-org { font-size: .85rem; color: var(--gray); font-weight: 600; margin-bottom: .5rem; }
.tl-body p:last-child { font-size: .9rem; color: #475569; }

/* ---------- EDUCAÇÃO ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.edu-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.edu-year {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: .2rem .7rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .8rem;
}
.edu-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: .4rem; }
.edu-inst { font-size: .85rem; color: var(--gray); font-weight: 600; margin-bottom: .6rem; }
.edu-desc { font-size: .88rem; color: #475569; }

/* ---------- ENSINO / CURSOS ---------- */
.filters {
  display: flex;
  gap: .8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filters input, .filters select {
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  background: #fff;
  color: var(--dark);
  transition: var(--transition);
}
.filters input { flex: 1; min-width: 220px; }
.filters input:focus, .filters select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 61, 110, .1);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.course-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--transition);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.course-card:hover::before { transform: scaleY(1); }

.course-role {
  display: inline-block;
  padding: .2rem .7rem;
  background: rgba(15, 61, 110, .1);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  border-radius: 20px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.course-role.role-Regente { background: rgba(245, 158, 11, .18); color: var(--accent-2); }
.course-role.role-Formadora { background: rgba(16, 185, 129, .15); color: #047857; }

.course-card h3 {
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.3;
}
.course-card p {
  font-size: .85rem;
  color: var(--gray);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--gray);
  border-top: 1px solid var(--border);
  padding-top: .7rem;
  margin-top: .3rem;
}
.course-meta strong { color: var(--primary); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray);
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- PROJECTOS ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.proj-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proj-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .2rem .7rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .7rem;
}
.proj-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: .5rem; }
.proj-card p { font-size: .88rem; color: #475569; }

/* ---------- SKILLS ---------- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.skill {
  padding: .55rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--primary);
  transition: var(--transition);
}
.skill:hover { background: var(--primary); color: #fff; transform: translateY(-2px); border-color: var(--primary); }

/* ---------- CONTACTO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .35rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .92rem;
  background: #fff;
  color: var(--dark);
  transition: var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 61, 110, .08);
}
.field textarea { resize: vertical; }

.form-feedback {
  margin-top: .8rem;
  font-size: .88rem;
  font-weight: 500;
}
.form-feedback.ok { color: #047857; }
.form-feedback.err { color: #b91c1c; }

.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.info-block {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
}
.info-block h3 { color: var(--primary); font-size: 1rem; margin-bottom: .8rem; }
.info-block p { font-size: .9rem; color: #334155; margin-bottom: .4rem; }

.refs { list-style: none; }
.refs li {
  font-size: .85rem;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--border);
  color: #334155;
}
.refs li:last-child { border: none; }
.refs strong { color: var(--primary); }
.refs span { display: block; color: var(--gray); font-size: .8rem; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 1.6rem 0;
  font-size: .85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-link {
  color: #94a3b8;
  font-size: .82rem;
  padding: .4rem .8rem;
  border-radius: 6px;
  transition: var(--transition);
}
.admin-link:hover { color: var(--accent); background: rgba(255, 255, 255, .05); }

/* ---------- MODAIS ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 51, .7);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}
.modal-panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: slideUp .3s ease;
  width: 100%;
}
.modal-sm { max-width: 420px; }
.modal-lg { max-width: 820px; }
.modal-body { padding: 2rem; }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1.8rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--gray);
  transition: var(--transition);
  display: grid;
  place-items: center;
  z-index: 2;
}
.modal-close:hover { background: var(--bg-alt); color: var(--primary); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- CONTEÚDO DO MODAL DE CADEIRA ---------- */
.course-detail h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  margin-bottom: .4rem;
  font-size: 1.4rem;
  padding-right: 2rem;
}
.course-detail .cd-meta {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.course-detail .cd-chip {
  padding: .25rem .75rem;
  background: var(--bg-alt);
  border-radius: 20px;
  font-size: .75rem;
  color: var(--primary);
  font-weight: 600;
}
.course-detail section { margin-bottom: 1.5rem; }
.course-detail h3 {
  font-size: .95rem;
  color: var(--primary);
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .8rem;
}
.course-detail p, .course-detail li {
  font-size: .92rem;
  color: #334155;
  line-height: 1.7;
}
.course-detail ul { padding-left: 1.2rem; }

.materials-list { display: flex; flex-direction: column; gap: .6rem; }
.material-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .8rem 1rem;
  background: var(--bg-alt);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.material-item:hover { border-color: var(--primary); background: #fff; }
.material-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.material-info { flex-grow: 1; min-width: 0; }
.material-info strong {
  display: block;
  font-size: .9rem;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.material-info span {
  font-size: .75rem;
  color: var(--gray);
}
.material-item a {
  color: var(--primary);
  font-weight: 700;
  font-size: .82rem;
  padding: .35rem .8rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.material-item a:hover { background: var(--primary); color: #fff; }

.notice-item {
  padding: .8rem 1rem;
  background: rgba(245, 158, 11, .1);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  margin-bottom: .6rem;
  font-size: .88rem;
}
.notice-item small { display: block; color: var(--gray); margin-top: .2rem; font-size: .75rem; }

/* ---------- ADMIN PANEL ---------- */
.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-alt);
  display: none;
  overflow-y: auto;
}
.admin-panel.open { display: block; }

.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-header h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  font-size: 1.2rem;
}
.admin-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.admin-tabs {
  display: flex;
  gap: .3rem;
  padding: 1rem 2rem 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  overflow-x: auto;
}
.tab {
  padding: .7rem 1.2rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray);
  border-radius: 8px 8px 0 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--accent); }

.admin-content { padding: 2rem; max-width: 1100px; margin: 0 auto; }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.admin-tab-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-tab-head h3 { color: var(--primary); font-size: 1.1rem; }

.admin-list { display: flex; flex-direction: column; gap: .8rem; }

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-card strong { color: var(--primary); display: block; font-size: .95rem; }
.admin-card small { color: var(--gray); font-size: .8rem; }
.admin-card-actions { display: flex; gap: .4rem; }
.admin-card-actions button {
  padding: .4rem .8rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-edit { background: rgba(15, 61, 110, .1); color: var(--primary); }
.btn-edit:hover { background: var(--primary); color: #fff; }
.btn-del { background: rgba(185, 28, 28, .1); color: #b91c1c; }
.btn-del:hover { background: #b91c1c; color: #fff; }

.muted { color: var(--gray); font-size: .9rem; }
.small { font-size: .8rem; }
code {
  background: var(--bg-alt);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .85em;
  color: var(--accent-2);
  font-weight: 600;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: .7rem 0; border-bottom: 1px solid var(--border); }
  .nav-link:last-child { border: none; }
  .nav-link.active::after { display: none; }
  .nav-link.active { color: var(--accent-2); }

  .avatar { width: 200px; height: 200px; font-size: 3rem; }
  .hero-card { position: static; transform: none; margin-top: 1.5rem; }
  .hero-visual { flex-direction: column; align-items: center; }
  .section { padding: 3.5rem 0; }
  .modal-body { padding: 1.4rem; }
  .admin-header, .admin-tabs, .admin-content { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* ---------- PAGE HERO (cabeçalho das páginas internas) ---------- */
.page-hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .section-tag { margin-bottom: .5rem; }
.page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--primary);
  margin-bottom: .8rem;
  line-height: 1.15;
}
.page-hero p {
  color: var(--gray);
  max-width: 680px;
  font-size: 1rem;
}

/* ---------- LANDING CARDS (página inicial) ---------- */
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.landing-card {
  display: block;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.landing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.landing-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: .4rem;
}
.landing-card p {
  color: var(--gray);
  font-size: .88rem;
}
