:root {
  --bg: #2b171e;
  --bg-dark: #4d1f27;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #b68a35;
  --accent-dark: #9a6b52;
  --surface: #faf8f6;
  --surface-alt: #f2efec;
  --border: #e7e2dd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Crimson Text', serif;
}

ul li {
  margin-bottom: 8px;
}

a {
  color: inherit;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  color: white;
  padding: 8px 16px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top .2s;
}

.skip-link:focus { top: 0; }

header {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
  color: white;
  padding: 28px 0 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.back-link {
  color: #f3e9e5;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  color: var(--accent);
}

.logo {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .logo {
  max-width: 420px;
  margin: 12px auto 32px;
}

.page-detail .logo {
  max-width: 360px;
  margin: 24px auto 32px;
}

.hero {
  display: grid;
  align-items: center;
}

.page-home .hero {
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  margin-top: 64px;
}

.page-detail .hero {
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
}

.page-home .hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.page-detail .hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  margin: 0 0 18px;
}

.page-home .hero p {
  font-size: 1.1rem;
  color: #f3e9e5;
}

.page-detail .hero p {
  font-size: 1.08rem;
  color: #f3e9e5;
  margin: 0;
}

.cta-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: 24px;
  backdrop-filter: blur(6px);
}

.page-home .cta-box {
  border-radius: 16px;
}

.page-detail .cta-box {
  border-radius: 18px;
}

.page-home .cta-box h2 {
  font-size: 1.5rem;
  margin-top: 0;
}

.page-detail .cta-box h2 {
  font-size: 1.55rem;
  margin: 0 0 12px;
}

.page-detail .cta-box p {
  margin: 0 0 12px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: .2s ease;
}

.page-home .btn {
  font-weight: bold;
}

.page-detail .btn {
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-block {
  display: block;
  text-align: center;
  margin-top: 16px;
}

.text-link {
  color: #74353e;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.page-home main {
  padding: 48px 0;
}

.page-detail main {
  padding: 52px 0 72px;
}

.page-home section {
  margin-bottom: 48px;
}

.page-detail section {
  margin-bottom: 40px;
}

.page-home h2 {
  font-size: 2.2rem;
  margin: 0 0 24px;
}

.page-home .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(77, 44, 49, .08);
}

.page-detail .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 28px;
  align-items: start;
}

.page-detail .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(77, 44, 49, .08);
}

.page-detail .card h2 {
  font-size: 2rem;
  margin: 0 0 18px;
}

.page-detail .card p {
  margin: 0 0 16px;
}

.profile-card {
  overflow: hidden;
  padding: 0;
}

.profile-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.profile-body {
  padding: 24px;
}

.profile-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.page-doencas .profile-body h3,
.page-decisoes .profile-body h3 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}

.page-decisoes .profile-body h3 {
  margin-bottom: 8px;
}

.callout {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
  color: white;
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}

.callout h2 {
  font-size: 2.1rem;
  margin: 0 0 12px;
}

.callout p {
  color: #f3e9e5;
  margin: 0 0 20px;
}

footer {
  background: transparent;
  color: var(--text);
  padding: 72px 0 32px;
  text-align: center;
  font-size: .9rem;
  line-height: 2;
}

footer .container {
  max-width: 920px;
}

footer img {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 20px;
}

footer p { margin: 0; }

footer a {
  color: #74353e;
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

.footer-brand {
  font-family: 'Crimson Text', serif;
  font-size: 1.8rem;
  line-height: 1.05;
  margin-bottom: 10px;
}

.footer-meta,
.footer-contact,
.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-divider {
  color: var(--muted);
}

.footer-contact {
  margin-top: 14px;
}

.footer-phone {
  font-size: 1.2rem;
  font-weight: 500;
}

.footer-address {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-legal {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  gap: 0;
  flex-direction: column;
}

.footer-disclaimer {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.8;
}

.footer-legal > span,
.footer-legal > a {
  display: none;
}

.footer-legal > .footer-legal-copy,
.footer-legal > .footer-privacy-link {
  display: inline-block;
}

.footer-privacy {
  display: inline-block;
  margin-top: 12px;
  white-space: nowrap;
}

.small {
  color: var(--muted);
  font-size: .95rem;
}

@media (max-width: 860px) {
  .page-detail .hero,
  .page-detail .content-grid {
    grid-template-columns: 1fr;
  }

  .callout h2,
  .page-detail .card h2 {
    font-size: 1.8rem;
  }

  .footer-meta {
    flex-direction: column;
    gap: 0;
    line-height: 1.6;
  }

  .footer-meta .footer-divider {
    display: none;
  }

  .footer-phone {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .footer-legal {
    gap: 0;
  }
}

@media (max-width: 800px) {
  .page-home .hero {
    grid-template-columns: 1fr;
  }

  .page-home h2 {
    font-size: 1.8rem;
    text-align: center;
  }
}
