:root {
  --hm-bg: #f3efe8;
  --hm-surface: rgba(255, 255, 255, 0.92);
  --hm-surface-strong: #ffffff;
  --hm-text: #17201d;
  --hm-text-soft: #58625d;
  --hm-line: rgba(23, 32, 29, 0.12);
  --hm-accent: #c5a059;
  --hm-accent-strong: #a8833f;
  --hm-accent-soft: rgba(197, 160, 89, 0.12);
  --hm-shadow: 0 24px 60px rgba(18, 26, 23, 0.08);
  --hm-hero: radial-gradient(circle at top left, rgba(197, 160, 89, 0.22), transparent 28%), linear-gradient(180deg, #fbf8f2 0%, #f1ece4 100%);
  --hm-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 244, 236, 0.9) 100%);
  --hm-theme-button-bg: rgba(255, 255, 255, 0.82);
  --hm-theme-button-fg: #17201d;
  --hm-theme-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
  --hm-theme-label: "Ativar modo escuro";
}

html[data-theme="dark"],
body[data-theme="dark"],
html[data-interno-theme="dark"],
body[data-interno-theme="dark"] {
  --hm-bg: #07110e;
  --hm-surface: rgba(10, 16, 14, 0.88);
  --hm-surface-strong: #0d1714;
  --hm-text: #f4f1ea;
  --hm-text-soft: rgba(244, 241, 234, 0.72);
  --hm-line: rgba(197, 160, 89, 0.18);
  --hm-accent: #c5a059;
  --hm-accent-strong: #e1c27f;
  --hm-accent-soft: rgba(197, 160, 89, 0.16);
  --hm-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --hm-hero: radial-gradient(circle at top left, rgba(197, 160, 89, 0.14), transparent 24%), linear-gradient(180deg, #07110e 0%, #0d1714 100%);
  --hm-panel: linear-gradient(180deg, rgba(10, 16, 14, 0.94) 0%, rgba(13, 23, 20, 0.98) 100%);
  --hm-theme-button-bg: rgba(255, 255, 255, 0.06);
  --hm-theme-button-fg: #f4f1ea;
  --hm-theme-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 1 0 9 9 9 9 0 1 1-9-9'/%3E%3C/svg%3E");
  --hm-theme-label: "Ativar modo claro";
}

html,
body {
  background: var(--hm-bg);
  color: var(--hm-text);
  transition: background-color 180ms ease, color 180ms ease;
}

body {
  color-scheme: light;
}

html[data-theme="dark"],
html[data-interno-theme="dark"],
body[data-theme="dark"],
body[data-interno-theme="dark"] {
  color-scheme: dark;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--hm-line);
  background: var(--hm-theme-button-bg);
  color: var(--hm-theme-button-fg);
  box-shadow: var(--hm-shadow);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.theme-toggle::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--hm-theme-mask) center / contain no-repeat;
  mask: var(--hm-theme-mask) center / contain no-repeat;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--hm-accent);
  outline: none;
}

.hm-marketing-body {
  min-height: 100vh;
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--hm-hero);
  color: var(--hm-text);
}

.hm-site-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.hm-marketing-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--hm-bg) 84%, transparent);
  border-bottom: 1px solid var(--hm-line);
}

.hm-marketing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.hm-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.hm-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  color: var(--hm-accent);
  box-shadow: var(--hm-shadow);
}

.hm-brand-copy strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: "Arial", sans-serif;
}

.hm-brand-copy span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hm-accent);
  font-family: "Arial", sans-serif;
}

.hm-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hm-nav-links a {
  color: var(--hm-text-soft);
  text-decoration: none;
  font: 700 0.74rem/1 "Arial", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hm-nav-links a:hover,
.hm-nav-links a.is-active {
  color: var(--hm-accent);
}

.hm-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hm-pill-link,
.hm-primary-link,
.hm-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font: 700 0.76rem/1 "Arial", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.hm-primary-link {
  background: var(--hm-accent);
  color: #07110e;
}

.hm-secondary-link,
.hm-pill-link {
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  color: var(--hm-text);
}

.hm-primary-link:hover,
.hm-secondary-link:hover,
.hm-pill-link:hover {
  transform: translateY(-1px);
  border-color: var(--hm-accent);
}

.hm-hero,
.hm-page-hero {
  padding: 72px 0 56px;
}

.hm-hero-grid,
.hm-page-grid,
.hm-split-grid,
.hm-contact-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hm-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.hm-page-grid,
.hm-contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
}

.hm-split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hm-kicker,
.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--hm-accent);
  font: 700 0.76rem/1 "Arial", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hm-kicker::before,
.hm-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hm-accent);
}

.hm-hero-title,
.hm-section-title,
.hm-post-title,
.hm-page-title {
  margin: 0;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hm-hero-title {
  font-size: clamp(3rem, 8vw, 5.8rem);
}

.hm-section-title,
.hm-post-title,
.hm-page-title {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

.hm-gold {
  color: var(--hm-accent);
  font-style: italic;
}

.hm-hero-copy,
.hm-section-copy,
.hm-post-copy,
.hm-post-content,
.hm-card-copy,
.hm-list-copy,
.hm-page-copy {
  color: var(--hm-text-soft);
  font-family: "Arial", sans-serif;
  line-height: 1.8;
}

.hm-hero-copy,
.hm-section-copy,
.hm-post-copy,
.hm-page-copy {
  font-size: 1.02rem;
  max-width: 60ch;
}

.hm-hero-actions,
.hm-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 34px;
}

.hm-inline-actions {
  margin: 26px 0 0;
}

.hm-hero-metrics,
.hm-inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hm-metric {
  padding-right: 18px;
  border-right: 1px solid var(--hm-line);
}

.hm-metric:last-child {
  border-right: 0;
  padding-right: 0;
}

.hm-metric strong {
  display: block;
  color: var(--hm-accent);
  font-size: 1.7rem;
  font-weight: 400;
}

.hm-metric span {
  display: block;
  color: var(--hm-text-soft);
  font: 0.8rem/1.5 "Arial", sans-serif;
}

.hm-hero-visual,
.hm-panel,
.hm-card,
.hm-post-shell,
.hm-calc-panel,
.hm-form-card,
.hm-contact-card,
.hm-process-card,
.hm-quote-band {
  background: var(--hm-panel);
  border: 1px solid var(--hm-line);
  box-shadow: var(--hm-shadow);
}

.hm-hero-visual,
.hm-page-visual {
  padding: 18px;
}

.hm-hero-visual img,
.hm-page-visual img,
.hm-post-hero,
.hm-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.hm-hero-visual img,
.hm-page-visual img {
  aspect-ratio: 4 / 5;
}

.hm-page-visual img {
  aspect-ratio: 16 / 12;
}

.hm-section {
  padding: 48px 0 0;
}

.hm-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 30px;
}

.hm-grid,
.hm-process-grid,
.hm-contact-stack {
  display: grid;
  gap: 20px;
}

.hm-grid-3,
.hm-process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hm-card {
  overflow: hidden;
}

.hm-card img {
  aspect-ratio: 16 / 10;
}

.hm-card-body,
.hm-process-card,
.hm-contact-card,
.hm-form-card,
.hm-calc-panel,
.hm-quote-band {
  padding: 24px;
}

.hm-card-meta {
  margin-bottom: 12px;
  color: var(--hm-accent);
  font: 700 0.72rem/1 "Arial", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hm-card-title,
.hm-list-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.05;
}

.hm-card-link {
  color: inherit;
  text-decoration: none;
}

.hm-card-link:hover .hm-card-title {
  color: var(--hm-accent);
}

.hm-list,
.hm-checklist,
.hm-footer-list,
.hm-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-checklist li,
.hm-contact-list li {
  position: relative;
  padding-left: 20px;
  color: var(--hm-text-soft);
  font: 0.95rem/1.8 "Arial", sans-serif;
}

.hm-checklist li + li,
.hm-contact-list li + li {
  margin-top: 10px;
}

.hm-checklist li::before,
.hm-contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hm-accent);
}

.hm-process-card strong {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--hm-accent);
  font: 700 0.8rem/1 "Arial", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hm-calc-panel {
  display: grid;
  gap: 18px;
}

.hm-calc-total {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hm-line);
}

.hm-calc-total strong {
  color: var(--hm-accent);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

.hm-field {
  display: grid;
  gap: 10px;
}

.hm-field label,
.hm-chip-label {
  color: var(--hm-text);
  font: 700 0.72rem/1 "Arial", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hm-field input,
.hm-field select,
.hm-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  color: var(--hm-text);
  font: 0.96rem/1.4 "Arial", sans-serif;
  box-sizing: border-box;
}

.hm-field textarea {
  min-height: 140px;
  resize: vertical;
}

.hm-field input[type="range"] {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.hm-range-values {
  display: flex;
  justify-content: space-between;
  color: var(--hm-text-soft);
  font: 0.76rem/1 "Arial", sans-serif;
}

.hm-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hm-chip {
  border: 1px solid var(--hm-line);
  background: transparent;
  color: var(--hm-text);
  padding: 12px 14px;
  text-align: left;
  font: 0.84rem/1.4 "Arial", sans-serif;
  cursor: pointer;
}

.hm-chip.is-active {
  border-color: var(--hm-accent);
  background: var(--hm-accent-soft);
  color: var(--hm-accent);
}

.hm-muted-note {
  color: var(--hm-text-soft);
  font: 0.8rem/1.6 "Arial", sans-serif;
}

.hm-post-shell {
  width: min(860px, calc(100% - 40px));
  margin: 48px auto 80px;
  padding: 28px;
}

.hm-post-hero {
  aspect-ratio: 16 / 9;
  margin: 20px 0 24px;
}

.hm-post-content p {
  margin: 0 0 16px;
}

.hm-quote-band {
  margin-top: 40px;
}

.hm-footer {
  position: relative;
  margin-top: 56px;
  border-top: 1px solid var(--hm-line);
  overflow: hidden;
}

.hm-footer-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--hm-text);
  opacity: 0.04;
  font-size: min(18vw, 220px);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hm-footer-shell {
  position: relative;
  z-index: 1;
  padding: 72px 0 28px;
}

.hm-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
  gap: 28px;
  margin-bottom: 32px;
}

.hm-footer-title {
  margin: 0 0 18px;
  color: var(--hm-accent);
  font: 700 0.76rem/1 "Arial", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hm-footer-copy,
.hm-footer-list a,
.hm-footer-list span,
.hm-footer-base,
.hm-footer-base a {
  color: var(--hm-text-soft);
  font: 0.94rem/1.8 "Arial", sans-serif;
}

.hm-footer-copy {
  margin: 0;
}

.hm-footer-list li + li {
  margin-top: 8px;
}

.hm-footer-list a,
.hm-footer-base a {
  text-decoration: none;
}

.hm-footer-list a:hover,
.hm-footer-base a:hover {
  color: var(--hm-accent);
}

.hm-footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 24px;
  border-top: 1px solid var(--hm-line);
}

.hm-footer-base-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hm-portal-brand {
  background: linear-gradient(180deg, var(--hm-surface) 0%, transparent 100%);
}

html[data-theme="dark"] .re-shell-header,
html[data-interno-theme="dark"] .re-shell-header,
body[data-theme="dark"] .re-shell-header,
body[data-interno-theme="dark"] .re-shell-header,
html[data-theme="dark"] .header,
html[data-interno-theme="dark"] .header,
body[data-theme="dark"] .header,
body[data-interno-theme="dark"] .header {
  background: rgba(10, 16, 14, 0.92);
  border-bottom-color: var(--hm-line);
}

html[data-theme="dark"] .sidebar,
html[data-interno-theme="dark"] .sidebar,
body[data-theme="dark"] .sidebar,
body[data-interno-theme="dark"] .sidebar,
html[data-theme="dark"] .portal-card,
html[data-interno-theme="dark"] .portal-card,
body[data-theme="dark"] .portal-card,
body[data-interno-theme="dark"] .portal-card,
html[data-theme="dark"] .client-detail-tabs-shell,
html[data-interno-theme="dark"] .client-detail-tabs-shell,
body[data-theme="dark"] .client-detail-tabs-shell,
body[data-interno-theme="dark"] .client-detail-tabs-shell,
html[data-theme="dark"] .client-detail-summary-card,
html[data-interno-theme="dark"] .client-detail-summary-card,
body[data-theme="dark"] .client-detail-summary-card,
body[data-interno-theme="dark"] .client-detail-summary-card,
html[data-theme="dark"] .client-detail-hero,
html[data-interno-theme="dark"] .client-detail-hero,
body[data-theme="dark"] .client-detail-hero,
body[data-interno-theme="dark"] .client-detail-hero {
  background: rgba(10, 16, 14, 0.92);
  border-color: var(--hm-line);
  color: var(--hm-text);
  box-shadow: var(--hm-shadow);
}

html[data-theme="dark"] .section-title,
html[data-interno-theme="dark"] .section-title,
body[data-theme="dark"] .section-title,
body[data-interno-theme="dark"] .section-title,
html[data-theme="dark"] .client-detail-title,
html[data-interno-theme="dark"] .client-detail-title,
body[data-theme="dark"] .client-detail-title,
body[data-interno-theme="dark"] .client-detail-title,
html[data-theme="dark"] .section-header,
html[data-interno-theme="dark"] .section-header,
body[data-theme="dark"] .section-header,
body[data-interno-theme="dark"] .section-header {
  color: var(--hm-text);
}

html[data-theme="dark"] .logo-text,
html[data-interno-theme="dark"] .logo-text,
body[data-theme="dark"] .logo-text,
body[data-interno-theme="dark"] .logo-text,
html[data-theme="dark"] .header-page-title,
html[data-interno-theme="dark"] .header-page-title,
body[data-theme="dark"] .header-page-title,
body[data-interno-theme="dark"] .header-page-title {
  color: var(--hm-text);
}

html[data-theme="dark"] .logo-sub,
html[data-interno-theme="dark"] .logo-sub,
body[data-theme="dark"] .logo-sub,
body[data-interno-theme="dark"] .logo-sub,
html[data-theme="dark"] .header-page-kicker,
html[data-interno-theme="dark"] .header-page-kicker,
body[data-theme="dark"] .header-page-kicker,
body[data-interno-theme="dark"] .header-page-kicker {
  color: var(--hm-accent);
}

html[data-theme="dark"] .sidebar-link,
html[data-interno-theme="dark"] .sidebar-link,
body[data-theme="dark"] .sidebar-link,
body[data-interno-theme="dark"] .sidebar-link {
  color: var(--hm-text-soft);
}

html[data-theme="dark"] .sidebar-link.active,
html[data-interno-theme="dark"] .sidebar-link.active,
body[data-theme="dark"] .sidebar-link.active,
body[data-interno-theme="dark"] .sidebar-link.active {
  background: var(--hm-accent-soft);
  color: var(--hm-accent);
  border-color: var(--hm-line);
}

@media (max-width: 980px) {
  .hm-marketing-nav,
  .hm-section-head,
  .hm-footer-grid,
  .hm-hero-grid,
  .hm-page-grid,
  .hm-split-grid,
  .hm-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hm-nav-links {
    order: 3;
  }

  .hm-nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hm-grid-3,
  .hm-process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hm-site-shell,
  .hm-post-shell {
    width: min(100% - 24px, 100%);
  }

  .hm-marketing-nav {
    gap: 14px;
    min-height: 72px;
  }

  .hm-nav-links {
    gap: 12px;
  }

  .hm-card-body,
  .hm-process-card,
  .hm-contact-card,
  .hm-form-card,
  .hm-calc-panel,
  .hm-quote-band {
    padding: 20px;
  }

  .hm-footer-shell {
    padding-top: 56px;
  }
}
