:root {
  --cream: #F7F4EF;
  --paper: #ffffff;
  --ink: #333333;
  --muted: #6f6a65;
  --brand: #23362E;
  --brand-dark: #23362E;
  --clay: #C9AABA;
  --gold: #B89A6A;
  --line: #e4ddd3;
  --shadow: 0 18px 45px rgba(35, 54, 46, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.topbar {
  background: var(--brand-dark);
  color: #fff;
  font-size: 14px;
  padding: 10px 0;
}

.topbar .container,
.nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 239, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav .container {
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 14px;
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-family: Georgia, serif;
  font-size: 22px;
}

.brand-logo {
  width: auto;
  max-width: 260px;
  height: 58px;
  object-fit: contain;
  filter: none;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  color: var(--ink);
}

.menu a:hover { color: var(--brand-dark); }

.menu-toggle { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn.gold { background: var(--gold); color: #17211f; }
.btn.light { background: #fff; color: var(--brand-dark); }

.hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(35, 54, 46, .92), rgba(35, 54, 46, .48)),
    var(--hero-image, url("https://images.unsplash.com/photo-1550831107-1553da8c8464?auto=format&fit=crop&w=1800&q=80")) center/cover;
  color: #fff;
}

.hero h1 {
  width: min(760px, 100%);
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.04;
  font-weight: 700;
  color: #fff;
}

.hero p {
  width: min(640px, 100%);
  font-size: 19px;
  line-height: 1.7;
  margin: 0 0 30px;
}

.section { padding: 66px 0; }
.section.compact { padding: 58px 0; }
.section.white { background: var(--paper); }
.section.green { background: var(--brand-dark); color: #fff; }

.eyebrow {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
}

.section-title {
  margin: 7px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  color: var(--brand-dark);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: 1fr 1fr; align-items: center; }

.service,
.post-card,
.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(35, 54, 46, .08);
  overflow: hidden;
}

.service { padding: 24px; min-height: 210px; }
.service h3, .post-card h3 { margin-top: 0; color: var(--brand-dark); }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { margin-bottom: 0; color: var(--muted); }
.service-icon { font-size: 30px; color: var(--gold); margin-bottom: 12px; }

.medicas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.medica-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(35, 54, 46, .09);
  overflow: hidden;
}

.medica-topo {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 17px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(247, 244, 239, .95), rgba(201, 170, 186, .22));
}

.medica-topo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.medica-dados h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.08;
  color: var(--brand-dark);
}

.medica-dados p {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.medica-dados ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.medica-dados li {
  width: fit-content;
  padding: 6px 10px;
  border-left: 3px solid var(--gold);
  background: #fff;
  font-weight: 800;
  font-size: 14px;
}

.medica-descricao {
  padding: 0 22px 22px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.medica-descricao p:first-child { margin-top: 0; }
.medica-descricao p:last-child { margin-bottom: 0; }

.section:nth-of-type(3) {
  background: var(--cream);
}

.cta {
  display: flex;
  justify-content: space-between;
  gap: 38px;
  align-items: center;
}

.cta p {
  max-width: 680px;
}

.post-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.post-card .body { padding: 22px; }
.date { color: var(--muted); font-size: 14px; font-weight: 700; }

.materias-hero {
  padding: 72px 0;
  background: rgba(201, 170, 186, .2);
}

.article {
  background: #fff;
  padding: clamp(24px, 5vw, 56px);
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.article img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  margin: 24px 0;
}

.form {
  display: grid;
  gap: 14px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  font: inherit;
}

.form textarea { min-height: 130px; resize: vertical; }
.notice { padding: 12px 14px; border-radius: 4px; background: #e8f4ee; color: var(--brand-dark); font-weight: 700; }
.notice.error { background: #fbe7e7; color: #9a2c2c; }

.footer {
  background: var(--brand-dark);
  color: #dce7e4;
  padding: 54px 0 24px;
}

.footer h3 { color: #fff; margin-top: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; color: #9db2ad; }

@media (max-width: 860px) {
  .container {
    width: calc(100% - 36px);
    max-width: calc(100vw - 36px);
  }
  .topbar .container { align-items: flex-start; flex-direction: column; gap: 6px; }
  .nav .container {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 0;
  }
  .menu-toggle {
    display: inline-flex !important;
    position: static;
    min-height: 38px;
    padding: 0 12px;
  }
  .nav .brand {
    max-width: calc(100% - 86px);
    overflow: hidden;
  }
  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 28px rgba(35, 54, 46, .1);
  }
  .nav-open .menu { display: flex; }
  .grid.two, .grid.three, .medicas { grid-template-columns: 1fr; }
  .medica-topo { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .hero p { font-size: 16px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .brand-logo { width: auto; max-width: 210px; height: 48px; }
  .section { padding: 48px 0; }
  .section.compact { padding: 44px 0; }
  .section-title { font-size: clamp(28px, 8vw, 34px); }
}
