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

:root {
  --primary: #c2185b;
  --primary-light: rgba(194,24,91,.08);
  --primary-border: rgba(194,24,91,.2);
  --radius: 8px;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 45%, #eff6ff 100%);
  min-height: 100vh;
  color: #111827;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ── Navbar ────────────────────────────────────────── */
nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
@media (min-width: 640px) {
  .nav-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.nav-brand { display: flex; align-items: center; gap: .75rem; }
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-title h1 { font-size: 1.25rem; font-weight: 700; color: #111827; line-height: 1.2; }
.nav-title p  { font-size: .78rem; color: #6b7280; margin-top: 1px; }

.nav-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Main ──────────────────────────────────────────── */
main {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Home ──────────────────────────────────────────── */
#home { display: block; }
#faq  { display: none; }

.hero {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}
.hero h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: .75rem;
}
.hero p { font-size: 1.05rem; color: #6b7280; line-height: 1.6; }

.profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 560px) { .profiles-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .profiles-grid { grid-template-columns: repeat(6, 1fr); }
  .profiles-grid .profile-card { grid-column: span 2; }
  .profiles-grid .profile-card:nth-child(4) { grid-column: 2 / span 2; }
}

.profile-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  transition: border-color .2s, box-shadow .25s, transform .2s;
  text-align: center;
}
.profile-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(194,24,91,.15);
  transform: translateY(-3px);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 28px; height: 28px; }
.profile-card h3 { font-size: 1.05rem; font-weight: 600; color: #111827; }
.profile-card p  { font-size: .82rem; color: #9ca3af; margin-top: .3rem; line-height: 1.4; }

/* icon colours */
.ic-paciente    { background: #fce7f3; color: var(--primary); }
.ic-familiar    { background: #ede9fe; color: #7c3aed; }
.ic-doador      { background: #fef3c7; color: #d97706; }
.ic-colaborador { background: #dbeafe; color: #1d4ed8; }
.ic-fornecedor  { background: #dcfce7; color: #15803d; }

/* ── General section on home ───────────────────────── */
.general-section {
  margin-top: 3rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 2.5rem;
}

.general-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.general-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.general-section-icon svg { width: 24px; height: 24px; }

.general-section-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.general-section-header p {
  font-size: .8rem;
  color: #9ca3af;
  margin-top: 2px;
}

/* ── FAQ view ──────────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: none;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.5rem;
}
.back-btn:hover { text-decoration: underline; }
.back-btn svg { width: 16px; height: 16px; }

.faq-card {
  background: var(--primary-light);
  border: 2px solid var(--primary-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.faq-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0;
  flex-shrink: 0;
}
.faq-card .card-icon svg { width: 24px; height: 24px; }
.faq-card h2 { font-size: 1.15rem; font-weight: 700; color: #111827; }
.faq-card p  { font-size: .82rem; color: #6b7280; margin-top: 2px; }

/* tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.25rem;
  gap: 0;
}
.tab-btn {
  padding: .65rem 1.25rem;
  border: none;
  background: none;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover:not(.active) { color: #374151; }

/* section label */
.section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  margin: 1.5rem 0 .75rem;
}

/* ── Accordion ─────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: .5rem; }

.acc-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.acc-btn:hover { background: #fafafa; }

.acc-icon-wrap {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--primary);
}
.acc-icon-wrap svg { width: 20px; height: 20px; }

.acc-question {
  flex: 1;
  font-size: .9rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

.acc-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #9ca3af;
  transition: transform .2s;
}
.acc-item.open .acc-chevron { transform: rotate(180deg); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.acc-item.open .acc-body { max-height: 400px; }

.acc-answer {
  padding: .75rem 1.25rem 1.1rem calc(1.25rem + 20px + .75rem);
  font-size: .875rem;
  color: #4b5563;
  line-height: 1.75;
  border-top: 1px solid #f3f4f6;
}

/* ── Footer ────────────────────────────────────────── */
footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
footer strong { color: #374151; font-weight: 600; display: block; margin-bottom: .25rem; }
footer p { font-size: .82rem; color: #6b7280; }
footer a { color: var(--primary); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-copy { margin-top: 2rem; }
