:root {
  --bg-main: #faf7f2;
  --bg-tinted: #f1ede4;
  --bg-card: #ffffff;
  --text-main: #1c2329;
  --text-muted: #555c63;
  --accent: #9b4e1b;
  --accent-hover: #7f3e13;
  --border: rgba(28, 35, 41, 0.11);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px;
  --max-w: 1060px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-main);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max-w), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.desktop-nav a:not(.btn):hover {
  color: var(--text-main);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
}

.mobile-drawer {
  position: fixed;
  inset: 74px 0 0 0;
  z-index: 39;
  background: var(--bg-main);
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a:not(.btn) {
  padding: 0.65rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.45rem;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.52rem 1.05rem;
  font-size: 0.86rem;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--text-main);
}

.text-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  color: var(--text-main);
}

/* Hero */
.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.2rem, 6vw, 5.2rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
}

.eyebrow,
.section-label {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.7vw, 3.9rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.04rem, 1.35vw, 1.15rem);
  color: var(--text-muted);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-portrait {
  margin: 0;
}

.portrait-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 42px -24px rgba(28, 35, 41, 0.25);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}

.hero-portrait figcaption {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Sections */
.section {
  padding: clamp(3.4rem, 6vw, 5rem) 0;
}

.section-surface {
  background: var(--bg-main);
}

.section-tinted {
  background: var(--bg-tinted);
}

.section-intro {
  max-width: 60ch;
  margin-bottom: 2.25rem;
}

.section-intro h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

/* Sobre */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--border);
}

.about-copy p {
  margin: 0 0 1.05rem;
  color: var(--text-main);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
}

.timeline-card h3 {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--text-muted);
}

.timeline-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.tl-year {
  font-weight: 600;
  color: var(--accent);
}

.focus-strip {
  padding-top: 2.5rem;
}

.focus-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.focus-item {
  border-top: 2px solid var(--border);
  padding-top: 0.95rem;
  min-width: 0;
}

.focus-item h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.focus-item p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-muted);
}

/* Atendimento */
.care-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.care-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  min-width: 0;
}

.care-tag {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.care-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.care-card p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.care-meta {
  color: var(--text-main) !important;
  font-weight: 500;
}

.care-policy {
  margin-bottom: 0 !important;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.89rem !important;
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-copy p:not(.section-label) {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
}

.channel-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.channel-row:first-child {
  padding-top: 0;
}

.channel-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.channel-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-self: baseline;
}

.channel-row a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  color: var(--accent);
}

.channel-row a:hover {
  color: var(--text-main);
}

.channel-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #1c2329;
  color: rgba(250, 247, 242, 0.85);
  padding: 2.25rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-meta {
  margin: 0.2rem 0 0;
  font-size: 0.83rem;
  color: rgba(250, 247, 242, 0.65);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
}

.footer-links a,
.link-button {
  color: rgba(250, 247, 242, 0.82);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.footer-links a:hover,
.link-button:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Dialog */
.legal-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  max-width: 500px;
  width: calc(100% - 2rem);
  background: var(--bg-main);
  color: var(--text-main);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.legal-dialog::backdrop {
  background: rgba(28, 35, 41, 0.55);
}

.dialog-body {
  padding: 1.6rem;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dialog-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

.dialog-close {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
}

.dialog-body p {
  margin: 0 0 0.85rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.dialog-body p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .focus-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid,
  .about-grid,
  .care-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    max-width: 400px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 1.75rem);
  }

  .focus-items {
    grid-template-columns: 1fr;
  }

  .channel-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
