:root {
  --brand: #2f6f92;
  --brand-dark: #245a78;
  --brand-tint: rgba(47, 111, 146, 0.08);
  --accent: #1f8fbf;
  --accent-dark: #187aa3;
  --accent-text: #17739a; /* accent escurecido p/ texto (contraste AA) */
  --ice: #5cc8ef;
  --grad: linear-gradient(135deg, #2f6f92 0%, #1f8fbf 55%, #4fc3ea 100%);
  --ink: #14233a;
  --muted: #5b6b82;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #f6f9fc;
  --border: #e2e8f0;
  --deep: #0f1f33;
  --on-deep: #f1f4f9;
  --btn-bg: #2f6f92;
  --btn-fg: #ffffff;
  --btn-bg-hover: #245a78;
  --focus-ring: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem rgba(31, 143, 191, 0.45);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -28px rgba(20, 40, 80, 0.25);
  --shadow-sm: 0 1px 2px rgba(20, 40, 80, 0.04), 0 8px 24px -16px rgba(20, 40, 80, 0.12);
  --shadow-lg: 0 30px 80px -20px rgba(20, 40, 80, 0.32);
  --ok: #2d7a55;
  --ok-tint: #e5f1ea;
  --err: #a83a3a;
  --err-tint: #f7e6e4;
  --warn: #7a6113;
  --warn-tint: #f5edd3;
  --airflow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='240' viewBox='0 0 720 240' fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath stroke-opacity='.14' d='M0 80C120 50 240 50 360 80S600 110 720 80'/%3E%3Cpath stroke-opacity='.10' d='M0 125C120 155 240 155 360 125S600 95 720 125'/%3E%3Cpath stroke-opacity='.06' d='M0 170C120 145 240 145 360 170S600 195 720 170'/%3E%3C/svg%3E");
  --font-serif: "Sora", "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --font-sans: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;

  --bs-body-bg: var(--surface);
  --bs-body-color: var(--ink);
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--border);
  --bs-secondary-bg: var(--surface-2);
  --bs-tertiary-bg: var(--surface-2);
  --bs-link-color-rgb: 47, 111, 146;
  --bs-link-hover-color-rgb: 36, 90, 120;
}

:root[data-bs-theme="dark"] {
  --brand: #7cc4e4;
  --brand-dark: #a6dbf1;
  --brand-tint: rgba(124, 196, 228, 0.10);
  --accent: #5cc8ef;
  --accent-dark: #8ad8f4;
  --accent-text: #5cc8ef;
  --ice: #7fd6f5;
  --grad: linear-gradient(135deg, #2f6f92 0%, #1f8fbf 55%, #4fc3ea 100%);
  --ink: #e7eef7;
  --muted: #96a6bd;
  --bg: #0a111c;
  --surface: #111a28;
  --surface-2: #162132;
  --border: #223047;
  --deep: #0d1a2c;
  --on-deep: #f1f4f9;
  --btn-bg: #1f7fae;
  --btn-fg: #ffffff;
  --btn-bg-hover: #2a8fc0;
  --focus-ring: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem rgba(92, 200, 239, 0.5);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  --ok: #7cc4a0;
  --ok-tint: rgba(124, 196, 160, 0.12);
  --err: #e59a93;
  --err-tint: rgba(229, 154, 147, 0.12);
  --warn: #dcc176;
  --warn-tint: rgba(220, 193, 118, 0.12);
  --bs-link-color-rgb: 124, 196, 228;
  --bs-link-hover-color-rgb: 166, 219, 241;
  color-scheme: dark;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6,
.home-title, .home-heading, .page-title,
.modal-title, .display-4, .stat-value, .step-num {
  font-family: var(--font-serif);
  color: var(--ink);
}

a {
  color: var(--brand);
}

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-select:focus, .form-check-input:focus {
  box-shadow: var(--focus-ring);
}

.form-control,
.form-select {
  background-color: var(--surface);
  border-color: var(--border);
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--surface);
  border-color: var(--brand);
  color: var(--ink);
}

.form-control::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.text-muted {
  color: var(--muted) !important;
}

.card {
  background: var(--surface);
  border-color: var(--border);
  border-radius: var(--radius);
  color: var(--ink);
}

.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--btn-bg-hover) !important;
  border-color: var(--btn-bg-hover) !important;
  color: var(--btn-fg) !important;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--surface-2) !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover, .btn-accent:focus, .btn-accent:active {
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  color: #fff !important;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.page-title {
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.dataTables_wrapper,
.table-wrap,
.table-card {
  background: var(--surface);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table.table {
  --bs-table-bg: var(--surface);
  --bs-table-striped-bg: var(--surface-2);
  --bs-table-hover-bg: var(--brand-tint);
  --bs-table-color: var(--ink);
  margin-bottom: 0;
  border-color: var(--border);
}

table.table thead.table-dark th {
  background: var(--surface-2);
  border-color: var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  white-space: nowrap;
}

table.table thead.table-dark th:first-child {
  border-top-left-radius: var(--radius-sm);
}

table.table thead.table-dark th:last-child {
  border-top-right-radius: var(--radius-sm);
}

table.table tbody td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  vertical-align: middle;
  border-color: var(--border);
  color: var(--ink);
}

table.table tbody tr {
  transition: background-color 0.12s ease;
}

table.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: var(--surface-2);
}

table.table-hover tbody tr:hover > td {
  background-color: var(--brand-tint);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.is-active {
  background: var(--ok-tint);
  color: var(--ok);
}

.status-badge.is-inactive {
  background: var(--err-tint);
  color: var(--err);
}

.status-badge.is-warning {
  background: var(--warn-tint);
  color: var(--warn);
}

.dt-container .dt-length,
.dt-container .dt-search {
  margin-bottom: 1rem;
}

.dt-container .dt-length label,
.dt-container .dt-search label,
.dt-container .dt-info {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.dt-container .dt-input,
.dt-container input[type="search"],
.dt-container select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem;
  color: var(--ink);
  background-color: var(--surface);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dt-container select.form-select {
  padding-right: 2rem;
}

.dt-container .dt-input:focus,
.dt-container input[type="search"]:focus,
.dt-container select:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.dt-container .dt-paging {
  margin-top: 1rem;
}

.dt-container .dt-paging .pagination {
  margin-bottom: 0;
}

.dt-container .dt-paging .page-link {
  color: var(--ink);
  background: transparent;
  border-color: var(--border);
  border-radius: var(--radius-sm);
  margin: 0 0.15rem;
  font-weight: 600;
}

.dt-container .dt-paging .page-link:hover {
  background: var(--brand-tint);
  color: var(--brand);
  border-color: var(--border);
}

.dt-container .dt-paging .page-item.active .page-link {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}

.dt-container .dt-paging .page-item.disabled .page-link {
  color: var(--muted);
  opacity: 0.5;
}

.btn + .text-center {
  margin-top: 1.25rem;
}

label.fw-bold {
  color: var(--ink);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-control-plaintext {
  color: var(--ink);
}

.form-control-plaintext.border-bottom {
  border: 0;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0;
  padding: 0.5rem 0.25rem;
  transition: border-color 0.2s ease;
}

input.form-control-plaintext:focus {
  border-bottom-color: var(--brand) !important;
  box-shadow: none;
  outline: none;
}

#togglePassword {
  color: var(--muted);
}

.modal-content {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header,
.modal-footer {
  border-color: var(--border);
}

.modal-header.bg-dark {
  background: var(--deep) !important;
  color: var(--on-deep);
}

.modal-header.bg-dark .modal-title {
  color: var(--on-deep);
  font-weight: 400;
}

.modal-backdrop.show {
  opacity: 0.6;
}

.dropdown-menu {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.display-4 {
  color: var(--ink);
  font-weight: 400;
}

/* ---------- Home e páginas públicas ---------- */
.home-hero {
  padding: 4rem 0 3.5rem;
}

.home-badge,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-badge {
  margin-bottom: 1.75rem;
}

.home-badge::before,
.section-eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

.home-title {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.home-title em {
  color: var(--brand);
}

.home-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 34rem;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero-card {
  display: inline-block;
}

.home-logo {
  max-width: 100%;
  height: auto;
  max-height: 320px;
}

.home-section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: 2.5rem;
}

.section-head .home-heading {
  margin: 0.75rem 0 0;
}

.section-head .home-subheading {
  margin: 0;
  max-width: 26rem;
}

.home-heading {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.home-subheading {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.feature-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.75rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.step-item {
  height: 100%;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}

.step-num {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 1.6rem;
  font-style: normal;
  color: var(--accent-text);
  line-height: 1;
}

.step-item h4 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.step-item p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.home-hours {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 3rem;
  margin: 1rem 0 2rem;
}

.hours-card {
  height: 100%;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 1px solid var(--accent);
}

.hours-card .feature-icon {
  display: none;
}

.hours-card h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hours-card p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0;
}

.hours-card strong {
  font-weight: 400;
  font-style: normal;
  color: var(--accent-text);
}

.home-cta-band,
.page-hero {
  background: var(--deep) var(--airflow) no-repeat right -60px center / 720px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--on-deep);
}

.home-cta-band {
  padding: 3.25rem;
  margin: 2rem 0 3rem;
}

.home-cta-band .home-heading,
.home-cta-band .home-subheading {
  color: var(--on-deep);
}

.home-cta-band .home-subheading {
  opacity: 0.7;
}

.page-hero {
  padding: 3.25rem;
  margin: 1rem 0;
}

.page-hero h1 {
  color: var(--on-deep);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--on-deep);
  opacity: 0.75;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 40rem;
}

.texto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem 2.25rem;
}

.texto-card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.texto-card p:last-child {
  margin-bottom: 0;
}

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

.sinais-lista li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.sinais-lista li:last-child {
  border-bottom: 0;
}

.sinais-lista i {
  color: var(--brand);
  margin-top: 0.2rem;
}

.login-card,
.registro-card {
  margin: 3rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card {
  max-width: 420px;
  padding: 2.5rem 2.25rem 1.75rem;
}

.registro-card {
  max-width: 720px;
  padding: 2.5rem 2.5rem 1.75rem;
}

.login-card::before,
.registro-card::before {
  display: block;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.login-card::before {
  content: "Bem-vindo de volta";
}

.registro-card::before {
  content: "Criar conta";
}

.login-card .modal-body,
.login-card .modal-footer,
.registro-card .modal-body,
.registro-card .modal-footer {
  border: 0;
  padding: 0;
}

.login-card .modal-footer,
.registro-card .modal-footer {
  display: block;
}

.login-card .modal-footer .row,
.registro-card .modal-footer .row {
  width: 100%;
  margin: 0;
}

.login-card .modal-body,
.registro-card .modal-body {
  margin-bottom: 1.5rem;
}

.login-card .row > div,
.login-card .col-md-11,
.login-card .col-md-6 {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.login-card input {
  width: 100%;
  padding: 0.6rem 0.25rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.login-card input:focus {
  border-bottom-color: var(--brand);
  box-shadow: none;
}

.login-card .modal-footer .row,
.registro-card .modal-footer .row {
  gap: 0.6rem 0;
}

.login-card .btn,
.registro-card .btn {
  width: 100%;
}

.login-card .text-danger,
.registro-card .text-danger {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.login-fundo {
  display: grid;
  gap: 0.6rem;
  text-align: center;
}

.login-fundo p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

#modalLogin .modal-dialog {
  max-width: 420px;
}

.login-modal {
  position: relative;
  padding: 2.5rem 2.25rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* o form do modal de cadastro estica (flex: 1); o de login não precisa */
.modal-content.login-modal > form {
  flex: 0 0 auto;
}

.login-modal .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.login-modal-titulo {
  margin: 0 0 0.35rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
}

.login-modal-sub {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-campo {
  margin-bottom: 1.1rem;
}

.login-erro {
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--err-tint);
  color: var(--err);
  font-size: 0.9rem;
}

.login-modal-rodape {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-modal-rodape a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.login-modal-rodape a:hover {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .login-modal {
    justify-content: center;
    padding: 3.5rem 1.5rem 2rem;
    border: 0;
    border-radius: 0;
  }
}

.login-divisor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-divisor::before,
.login-divisor::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn-google:hover, .btn-google:focus {
  background: var(--surface-2);
  border-color: var(--brand);
  color: var(--ink);
}

.btn-google .fa-google {
  color: var(--brand);
}

.login-card > span,
.registro-card > span {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-card > span a,
.registro-card > span a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.login-card > span a:hover,
.registro-card > span a:hover {
  text-decoration: underline;
}

.footer {
  background: transparent;
  border-color: var(--border) !important;
  font-size: 0.85rem;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table.table {
  min-width: 560px;
}

@media (max-width: 767.98px) {
  .page-header {
    align-items: stretch;
  }

  .page-header .btn {
    width: 100%;
    justify-content: center;
  }

  .servicos-hero,
  .page-hero,
  .texto-card,
  .home-hours,
  .home-cta-band {
    padding: 1.75rem 1.5rem;
  }

  .home-hero {
    padding: 2rem 0 0.5rem;
  }

  .home-section {
    padding: 2rem 0;
  }

  .feature-card {
    padding: 1.5rem 1.35rem;
  }

  .login-card,
  .registro-card {
    margin: 1.5rem auto;
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .servicos-hero {
    padding: 1.5rem 1.35rem;
  }

  .categoria-heading {
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
  }

  .modal-body {
    padding: 1.25rem 1rem;
  }
}

.table-cards tbody tr[data-codigo] {
  cursor: pointer;
}

.modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.modal-footer {
  gap: 0.5rem;
}

.modal-footer > * {
  margin: 0;
}

.ficha .form-control-plaintext {
  min-height: 2.4rem;
  margin-bottom: 0;
  word-break: break-word;
}

textarea.form-control-plaintext {
  resize: vertical;
}

.tipos-lista {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 16rem;
  overflow-y: auto;
  background: var(--surface);
}

.tipo-opcao {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.tipo-opcao:last-child {
  border-bottom: 0;
}

.tipo-opcao:hover {
  background: var(--brand-tint);
}

.tipo-opcao:has(.tipo-check:checked) {
  background: var(--brand-tint);
}

.tipo-opcao .form-check-input {
  margin: 0;
  flex-shrink: 0;
}

.tipo-nome {
  flex: 1;
}

.tipo-preco {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.dt-layout-end:has(.btn-filtros) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dt-container .dt-search {
  margin-bottom: 0;
}

.table-wrap .dt-container .dt-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.table-wrap .dt-container .dt-search input {
  margin-left: 0;
  min-width: 15rem;
}

.btn-filtros {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
}

.btn-filtros:hover,
.btn-filtros[aria-expanded="true"] {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-filtros.is-ativo {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-filtros .badge {
  background: var(--accent);
  font-size: 0.7rem;
}

#painelFiltros {
  flex: 1 1 100%;
  width: 100%;
}

.painel-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.painel-filtros-campos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.filtro-campo label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.filtro-campo .form-control {
  min-width: 11rem;
}

.btn-limpar-filtro {
  padding: 0.4rem 0;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.btn-limpar-filtro:hover {
  color: var(--err);
}

.painel-filtros-atalhos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-basis: 100%;
}

.chip-filtro {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip-filtro:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip-filtro.is-ativo {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}

.painel-filtros-acoes {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.secao-graficos {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.secao-titulo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.table-wrap table.dataTable th.dt-type-numeric,
.table-wrap table.dataTable th.dt-type-date,
.table-wrap table.dataTable td.dt-type-numeric,
.table-wrap table.dataTable td.dt-type-date {
  text-align: left;
}

.table-wrap table.dataTable th.dt-type-numeric div.dt-column-header,
.table-wrap table.dataTable th.dt-type-date div.dt-column-header {
  flex-direction: row;
}

.table-wrap .dt-container > .row {
  margin-left: 0;
  margin-right: 0;
}

.table-wrap .dt-container > .row > div {
  padding-left: 0;
  padding-right: 0;
}

.table-wrap .dt-container .dt-info {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .table-wrap:has(.table-cards) {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  .table-wrap table.table.table-cards {
    min-width: 0;
    width: 100% !important;
    border-collapse: separate;
  }

  .table-cards thead {
    display: none;
  }

  .table-cards,
  .table-cards tbody {
    display: block;
  }

  .table-cards tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 0.35rem 1rem;
    margin-bottom: 0.75rem;
  }

  .table-cards tbody tr:active {
    border-color: var(--brand);
  }

  .table-cards tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0 !important;
    border: 0;
    border-bottom: 1px dashed var(--border);
    background: transparent !important;
    box-shadow: none !important;
    text-align: right !important;
    word-break: break-word;
  }

  .table-cards tbody td:last-child {
    border-bottom: 0;
  }

  .table-cards tbody td::before {
    content: attr(data-label);
    flex-shrink: 0;
    text-align: left;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .table-cards tbody td.cell-title {
    order: -1;
    justify-content: flex-start;
    text-align: left !important;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0 !important;
  }

  .table-cards tbody td.cell-title::before {
    display: none;
  }

  .table-cards tbody td.dt-empty {
    justify-content: center;
    text-align: center !important;
    border: 0;
  }

  .table-cards tbody td.dt-empty::before {
    display: none;
  }

  .table-wrap .dt-container > .row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .table-wrap .dt-container > .row > div {
    width: 100%;
    padding: 0;
  }

  .table-wrap .dt-container .dt-search,
  .table-wrap .dt-container .dt-length {
    text-align: left;
    margin-bottom: 0.5rem;
  }

  .table-wrap .dt-container .dt-search input {
    display: block;
    width: 100%;
    margin: 0.35rem 0 0 !important;
  }

  .table-wrap .dt-container .dt-info {
    text-align: center;
  }

  .table-wrap .dt-container .dt-paging .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .table-wrap .dt-container .dt-layout-end:has(.btn-filtros) {
    display: flex;
  }

  .table-wrap .dt-container .dt-layout-end:has(.btn-filtros) .dt-search {
    flex: 1 1 auto;
    margin-bottom: 0;
  }

  .table-wrap .dt-container .dt-search input {
    min-width: 0;
    margin: 0 !important;
  }

  .btn-filtros {
    padding: 0.55rem 0.85rem;
  }

  .painel-filtros {
    padding: 0.85rem 1rem;
  }

  .painel-filtros-campos {
    width: 100%;
    flex-wrap: nowrap;
  }

  .filtro-campo {
    flex: 1 1 0;
    min-width: 0;
  }

  .filtro-campo .form-control {
    min-width: 0;
    width: 100%;
  }

  .btn-limpar-filtro {
    width: 100%;
    text-align: center;
  }

  .painel-filtros-acoes {
    width: 100%;
  }

  .painel-filtros-acoes > * {
    flex: 1 1 0;
  }

  .secao-graficos {
    margin-top: 1.5rem;
  }

  .modal-footer {
    flex-wrap: nowrap;
  }

  .modal-footer > .btn,
  .modal-footer > form {
    flex: 1 1 0;
  }

  .modal-footer > form .btn {
    width: 100%;
  }

  .modal-footer .btn {
    padding: 0.7rem 0.5rem;
  }

  .modal input,
  .modal select,
  .modal textarea,
  .dt-container input,
  .dt-container select {
    font-size: 16px !important;
  }

  .tipos-lista {
    max-height: none;
  }

  .tipo-opcao {
    padding: 0.8rem 0.85rem;
  }
}

/* ---------- Sidebar ---------- */
:root {
  --sidebar-w: 250px;
  --topbar-h: 64px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1045;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: 1.15rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar-acoes {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.topbar-toggle .tema-claro {
  display: none;
}

:root[data-bs-theme="dark"] .topbar-toggle .tema-escuro {
  display: none;
}

:root[data-bs-theme="dark"] .topbar-toggle .tema-claro {
  display: inline;
}

:root[data-bs-theme="dark"] .topbar-brand img,
:root[data-bs-theme="dark"] .home-logo {
  filter: brightness(0) invert(0.92);
}

.topbar-toggle:hover {
  background: var(--bg);
  color: var(--brand);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.topbar-brand img {
  width: 48px;
}

.sidebar {
  position: fixed;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  z-index: 1040;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transition: width 0.2s ease, transform 0.25s ease, background-color 0.25s ease;
  overflow-x: hidden;
}

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

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.6rem;
}

.sidebar-footer {
  padding: 0.6rem;
  border-top: 1px solid var(--border);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.15rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link i {
  width: 1.25rem;
  flex-shrink: 0;
  text-align: center;
  color: var(--muted);
  transition: color 0.15s ease;
}

.sidebar-link:hover {
  background: var(--bg);
  color: var(--brand);
}

.sidebar-link:hover i {
  color: var(--brand);
}

.sidebar-link.active {
  background: var(--brand-tint);
  color: var(--ink);
  font-weight: 700;
}

.sidebar-link.active i {
  color: var(--brand);
}

.sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-chevron {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.sidebar-section.collapsed .sidebar-chevron {
  transform: rotate(-90deg);
}

.app-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--topbar-h);
  margin-left: var(--sidebar-w);
  transition: margin-left 0.2s ease;
}

.app-content > .container {
  padding-top: 1.5rem;
}

.sidebar-backdrop {
  display: none;
}

/* Mobile: gaveta */
@media (max-width: 767.98px) {
  :root {
    --topbar-h: 56px;
  }

  .topbar-brand img {
    width: 40px;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: var(--topbar-h) 0 0 0;
    z-index: 1039;
    background: rgba(8, 12, 15, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .app-content {
    margin-left: 0;
  }

  .app-content > .container {
    padding-top: 1rem;
  }
}

/* ---------- Perfil ---------- */
.perfil {
  max-width: 1040px;
  margin: 0 auto;
}

.perfil-hero {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin: 0.5rem 0 1.5rem;
  padding: 2rem 2.25rem;
}

.perfil-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 20px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
}

.perfil-hero-texto {
  flex: 1;
  min-width: 14rem;
}

.perfil-hero-texto h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.perfil-hero-texto p {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}

.perfil-selos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.perfil-selo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--card-borda);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.perfil-selo i {
  color: var(--accent);
  font-size: 0.8rem;
}

.perfil-selo.is-ativo { color: var(--ok); }
.perfil-selo.is-ativo i { color: var(--ok); }
.perfil-selo.is-inativo { color: var(--err); }
.perfil-selo.is-inativo i { color: var(--err); }

.perfil-hero-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.perfil-card {
  height: 100%;
  padding: 1.6rem 1.75rem;
}

.perfil-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.perfil-card-head .feature-icon {
  width: 2.6rem !important;
  height: 2.6rem !important;
  margin: 0;
  font-size: 0.95rem;
  border-radius: 12px !important;
}

.perfil-card-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.perfil-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.perfil-card-head .btn {
  margin-left: auto;
}

.perfil-dados {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.perfil-dado {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: var(--ficha-bg);
}

.perfil-dado.is-largo {
  grid-column: 1 / -1;
}

.perfil-dado dt {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.perfil-dado dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.perfil-dado dd.perfil-vazio {
  color: var(--muted);
  font-weight: 400;
  font-style: normal;
}

/* Atendimentos */
.perfil-contadores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.25rem 0 1rem;
}

.atendimentos {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.atendimento {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--card-borda);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.atendimento:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--card-borda));
  transform: translateY(-1px);
}

.atendimento-data {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-text);
  line-height: 1;
}

.atendimento-data strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.atendimento-data span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.atendimento-info {
  min-width: 0;
}

.atendimento-info h3 {
  margin: 0 0 0.15rem;
  overflow: hidden;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atendimento-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.atendimento-fim {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
}

.atendimento-fim strong {
  font-size: 0.95rem;
}

.perfil-vazio-estado {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 2rem 1rem;
  border: 1px dashed var(--card-borda);
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
}

.perfil-vazio-estado .feature-icon {
  margin: 0;
}

.perfil-vazio-estado p {
  margin: 0;
  max-width: 26rem;
}

@media (max-width: 767.98px) {
  .perfil-hero {
    padding: 1.5rem;
  }

  .perfil-avatar {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    font-size: 1.5rem;
  }

  .perfil-hero-acoes {
    width: 100%;
  }

  .perfil-hero-acoes .btn,
  .perfil-hero-acoes form {
    flex: 1 1 0;
  }

  .perfil-hero-acoes form .btn {
    width: 100%;
  }

  .perfil-card {
    padding: 1.35rem 1.25rem;
  }

  .perfil-dados {
    grid-template-columns: 1fr;
  }

  .atendimento {
    grid-template-columns: auto 1fr;
  }

  .atendimento-fim {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
  }
}

/* =====================================================================
   Visual do site: simples e familiar, com a identidade da AW
   (azul-aço do logo, títulos em Libre Baskerville, texto em Manrope)
   ===================================================================== */
:root {
  --brand: #2f5d78;
  --brand-dark: #234a61;
  --brand-tint: rgba(47, 93, 120, 0.08);
  --accent: #35698a;
  --accent-dark: #2f5d78;
  --ice: #8db7cd;
  --grad: linear-gradient(135deg, #2f5d78, #3a6f8f);
  --ink: #1b2a38;
  --muted: #5d6b7a;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #f3f6f8;
  --border: #e1e7ec;
  --deep: #1f3a4c;
  --btn-bg: #2f5d78;
  --btn-fg: #ffffff;
  --btn-bg-hover: #234a61;
  --focus-ring: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem rgba(47, 93, 120, 0.35);
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --card-bg: var(--surface);
  --card-borda: var(--border);
  --card-sombra: 0 1px 2px rgba(20, 35, 50, 0.05), 0 6px 16px -10px rgba(20, 35, 50, 0.14);
  --card-sombra-hover: 0 1px 2px rgba(20, 35, 50, 0.05), 0 14px 28px -16px rgba(20, 35, 50, 0.24);
  --glass-borda: var(--border);
  --glass-brilho: 0 0 0 transparent;
  --cta-bg: #2f5d78;

  --sidebar-w: 260px;
  --topbar-h: 64px;

  --bs-link-color-rgb: 47, 93, 120;
  --bs-link-hover-color-rgb: 35, 74, 97;
}

:root[data-bs-theme="dark"] {
  --brand: #7fb0cc;
  --brand-dark: #a7cade;
  --brand-tint: rgba(127, 176, 204, 0.1);
  --accent: #7fb0cc;
  --accent-dark: #a7cade;
  --ice: #8db7cd;
  --grad: linear-gradient(135deg, #3a6f8f, #457d9f);
  --ink: #e6edf3;
  --muted: #9aa8b6;
  --bg: #0f151c;
  --surface: #161e27;
  --surface-2: #1b2530;
  --border: #26323f;
  --deep: #1f3a4c;
  --btn-bg: #3a6f8f;
  --btn-bg-hover: #457d9f;
  --focus-ring: 0 0 0 0.1rem var(--surface), 0 0 0 0.25rem rgba(127, 176, 204, 0.4);
  --card-sombra: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px -12px rgba(0, 0, 0, 0.6);
  --card-sombra-hover: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 30px -16px rgba(0, 0, 0, 0.75);
  --cta-bg: #1f3a4c;
  --bs-link-color-rgb: 127, 176, 204;
  --bs-link-hover-color-rgb: 167, 202, 222;
}

html {
  scroll-behavior: smooth;
}

.app-content {
  overflow-x: clip;
}

/* ---------- Tipografia ---------- */
h1, h2,
.home-title, .home-heading, .page-title, .page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h3, h4, h5, h6, .modal-title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0;
}

.home-title {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.15;
}

.home-title em {
  font-style: normal;
  color: var(--brand);
}

.home-heading {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

::selection {
  background: color-mix(in srgb, var(--brand) 22%, transparent);
}

/* ---------- Cursor ---------- */
/* seta no azul do logo; nos clicáveis ganha um ponto. Só para mouse, campos de texto mantêm o cursor de digitação */
@media (hover: hover) and (pointer: fine) {
  html {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 2.5v16.2l4.6-4.3 2.9 6.6 3-1.3-2.9-6.5h6.3z' fill='%232f5d78' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto;
  }

  a, button, summary, select,
  .btn, .btn-close, .form-select, .sidebar-link, .chip-filtro, .tipo-opcao, .toggle-password,
  [role="button"], [data-sidebar-toggle], [data-tema-toggle],
  .table-cards tbody tr[data-codigo],
  input[type="checkbox"], input[type="radio"], input[type="file"], input[type="submit"], input[type="button"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 2.5v16.2l4.6-4.3 2.9 6.6 3-1.3-2.9-6.5h6.3z' fill='%232f5d78' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='18.5' cy='18.5' r='3.6' fill='%238db7cd' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 3 2, pointer;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
  textarea,
  [contenteditable="true"] {
    cursor: text;
  }

  :disabled,
  .disabled {
    cursor: not-allowed;
  }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: none !important;
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

.btn-primary,
.btn-accent {
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-accent:hover, .btn-accent:focus, .btn-accent:active {
  background: var(--btn-bg-hover) !important;
  border-color: var(--btn-bg-hover) !important;
  color: var(--btn-fg) !important;
  box-shadow: 0 6px 14px -6px rgba(35, 74, 97, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--surface-2) !important;
  border-color: color-mix(in srgb, var(--ink) 18%, var(--border)) !important;
  color: var(--ink) !important;
}

.btn-whatsapp .fa-whatsapp {
  color: #25a35a;
}

.btn-primary .fa-whatsapp,
.home-cta-band .btn-whatsapp .fa-whatsapp {
  color: inherit;
}

/* Etiquetas das seções */
.home-badge,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-badge::before,
.section-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Topbar e sidebar ---------- */
.topbar {
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  padding: 0 1rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.topbar-toggle:hover {
  background: var(--surface-2);
  color: var(--brand);
}

/* atalho para o perfil (ou para entrar) no canto do topo */
.topbar-perfil {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  max-width: 200px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar-perfil i {
  color: var(--brand);
  font-size: 1.2rem;
}

.topbar-perfil span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-perfil:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.topbar-perfil.active {
  background: var(--brand-tint);
  color: var(--brand);
}

@media (max-width: 575.98px) {
  .topbar-perfil {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .topbar-perfil span {
    display: none;
  }
}

/* escondida para o lado; abre pelo menu (sidebar-open) ou encostando o mouse na borda (sidebar-espiando) */
.sidebar {
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

body.sidebar-open .sidebar,
body.sidebar-espiando .sidebar {
  transform: none;
  visibility: visible;
  box-shadow: 12px 0 30px -18px rgba(20, 35, 50, 0.35);
  transition: transform 0.3s ease, visibility 0s;
}

.sidebar-gatilho {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .sidebar-gatilho {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 14px;
    z-index: 1041;
  }
}

.sidebar-link {
  position: relative;
  border-radius: var(--radius-sm);
}

.sidebar-link:hover {
  background: var(--surface-2);
}

.sidebar-link.active {
  background: var(--brand-tint);
  color: var(--ink);
}

.sidebar-link.active::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}

.app-content {
  padding-top: calc(var(--topbar-h) + 1rem);
  margin-left: 0;
}

.footer {
  border-top-color: var(--border) !important;
}

@media (max-width: 767.98px) {
  :root {
    --topbar-h: 56px;
  }

  .sidebar {
    width: min(var(--sidebar-w), 85vw);
  }

  .sidebar-backdrop {
    inset: var(--topbar-h) 0 0 0;
    background: rgba(10, 18, 26, 0.4);
  }
}

/* ---------- Cards ---------- */
.feature-card,
.servico-card,
.texto-card,
.home-hours,
.table-wrap,
.table-card,
.perfil-card,
.painel-filtros,
.login-card,
.registro-card,
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-borda);
  border-radius: var(--radius);
  box-shadow: var(--card-sombra);
  color: var(--ink);
}

.feature-card,
.servico-card {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover,
.servico-card:hover {
  border-color: color-mix(in srgb, var(--ink) 14%, var(--card-borda));
  box-shadow: var(--card-sombra-hover);
}

.feature-card h3 {
  font-size: 1.15rem;
}

.feature-icon,
.servico-icon {
  width: 2.75rem !important;
  height: 2.75rem !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--brand-tint) !important;
  color: var(--brand) !important;
  font-size: 1.05rem;
}

.servico-whatsapp,
.servico-solicitar {
  border-radius: var(--radius-sm) !important;
}

.servico-solicitar {
  background: var(--btn-bg) !important;
}

.servico-solicitar:hover {
  background: var(--btn-bg-hover) !important;
}

.categoria-heading .categoria-dot {
  background: var(--brand) !important;
}

/* Cabeçalho das páginas internas e faixa de chamada */
.page-hero,
.servicos-hero {
  position: relative;
  padding: 2.25rem 2.5rem;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface)) !important;
  border: 1px solid var(--card-borda);
  border-radius: var(--radius);
  color: var(--ink);
}

.page-hero::after,
.servicos-hero::before,
.servicos-hero::after,
.home-cta-band::after {
  content: none;
}

.page-hero,
.servicos-hero {
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 22%, transparent) 1px, transparent 1.5px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000);
  mask-image: linear-gradient(90deg, transparent 45%, #000);
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.page-hero p {
  color: var(--muted);
  opacity: 1;
}

.servicos-topo {
  margin-bottom: 2rem;
}

.home-cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 2.75rem;
  margin: 1rem 0 3rem;
  background: var(--cta-bg) !important;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
}

.home-cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--airflow) repeat-x 0 60% / 720px auto;
  opacity: 0.9;
}

.home-cta-band .home-heading {
  color: #fff;
}

.home-cta-band .home-subheading {
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.home-cta-band .section-eyebrow {
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  color: #d5e6f0;
}

.home-cta-band .btn-accent {
  background: #fff;
  border-color: #fff;
  color: #1f3a4c;
}

.home-cta-band .btn-accent:hover,
.home-cta-band .btn-accent:focus {
  background: #e8f1f6 !important;
  border-color: #e8f1f6 !important;
  color: #1f3a4c !important;
}

/* ---------- Home ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  padding: 2.5rem 0 2rem;
}

/* malha de pontos e uma luz suave atrás do topo */
.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3rem -50vw 0;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 20%, transparent) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: -6%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ice) 30%, transparent), transparent 65%);
  pointer-events: none;
}

.home-badge {
  margin-bottom: 1.25rem;
}

.home-lead {
  max-width: 34rem;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-scene {
  position: relative;
  height: 420px;
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-scene.com-3d .hero-canvas {
  opacity: 1;
}

.hero-credito {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.75;
}

.hero-credito a {
  color: inherit;
}

.home-section {
  padding: 4rem 0;
}

.section-head .home-subheading {
  margin: 0.6rem 0 0;
  max-width: 34rem;
}

/* faixa branca de ponta a ponta para destacar os serviços */
.secao-servicos {
  position: relative;
  isolation: isolate;
  padding: 4.5rem 0;
  margin: 1rem 0;
}

.secao-servicos::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.secao-servicos .feature-card {
  background: var(--surface-2);
  box-shadow: none;
}

.servico-destaque {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.servico-lista {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.4rem;
}

.servico-lista li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 0.93rem;
}

.servico-check {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
}

.servico-check i {
  font-size: 0.6rem;
}

.servico-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.servico-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Como funciona */
.passos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.passos::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--border);
}

.passo {
  position: relative;
  text-align: center;
}

.passo-icone {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 1.15rem;
}

.passo-icone::after {
  content: attr(data-num);
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
}

:root[data-bs-theme="dark"] .passo-icone::after {
  color: #0f151c;
}

.passo h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.passo p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Horário */
.secao-horario {
  padding-top: 0;
}

.secao-horario .home-hours {
  padding: 2.25rem;
  margin: 0;
}

.secao-horario .home-heading {
  margin: 0.6rem 0 0;
}

.horario-hoje {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 0.86rem;
  font-weight: 600;
}

.horario-ponto {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.hours-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-image: none;
  border-radius: 12px;
  background: var(--surface-2);
}

.hours-card .feature-icon {
  display: flex !important;
  flex-shrink: 0;
  margin: 0;
}

.hours-card h3 {
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
}

.hours-card p {
  font-family: var(--font-serif);
}

.hours-card strong {
  font-style: normal;
  font-weight: 400;
  color: var(--brand);
}

.hours-card.is-hoje {
  border-color: var(--brand);
}

.hours-card.is-hoje::after {
  content: "Hoje";
  position: absolute;
  top: -0.6rem;
  right: 0.9rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

:root[data-bs-theme="dark"] .hours-card.is-hoje::after {
  color: #0f151c;
}

@media (max-width: 767.98px) {
  .home-section {
    padding: 2.75rem 0;
  }

  .hero-scene {
    height: 300px;
  }

  .section-head .btn {
    width: 100%;
    justify-content: center;
  }

  .passos {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .passos::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .passo {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .passo-icone {
    margin: 0;
  }

  .page-hero,
  .home-cta-band,
  .secao-horario .home-hours {
    padding: 1.6rem 1.4rem;
  }
}

@media (max-width: 991.98px) {
  .home-hero > .row {
    --bs-gutter-x: 1.5rem;
  }
}

/* ---------- Formulários e modais ----------
   Um padrão só para campos (inputs, selects, textarea, datas) e para os modais de
   cadastro/edição e as fichas de visualização, nos dois temas. */
:root {
  --campo-bg: #f5f8fb;
  --campo-borda: #dbe3ec;
  --campo-borda-hover: #c3d0de;
  --campo-foco: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  --ficha-bg: #f3f6fa;
  --modal-bg: #ffffff;
  --modal-rodape: #f7f9fc;
}

:root[data-bs-theme="dark"] {
  --campo-bg: rgba(255, 255, 255, 0.04);
  --campo-borda: rgba(255, 255, 255, 0.10);
  --campo-borda-hover: rgba(255, 255, 255, 0.18);
  --campo-foco: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  --ficha-bg: rgba(255, 255, 255, 0.035);
  --modal-bg: #121c2b;
  --modal-rodape: #0f1825;
}

/* Campos: o mesmo visual em todo lugar. Os modais usavam .form-control-plaintext
   com sublinhado nos campos editáveis; aqui eles viram campos de verdade. */
.form-control,
.form-select,
.modal input.form-control-plaintext,
.modal textarea.form-control-plaintext,
.login-card input.form-control-plaintext,
.registro-card input.form-control-plaintext,
.dt-container .dt-input {
  min-height: 2.85rem;
  padding: 0.6rem 0.9rem;
  background-color: var(--campo-bg);
  border: 1px solid var(--campo-borda) !important;
  border-radius: 12px !important;
  color: var(--ink);
  font-size: 0.95rem;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-select {
  padding-right: 2.4rem;
}

.form-control:hover,
.form-select:hover,
.modal input.form-control-plaintext:hover,
.modal textarea.form-control-plaintext:hover,
.login-card input.form-control-plaintext:hover {
  border-color: var(--campo-borda-hover) !important;
}

.form-control:focus,
.form-select:focus,
.modal input.form-control-plaintext:focus,
.modal textarea.form-control-plaintext:focus,
.login-card input.form-control-plaintext:focus,
.registro-card input.form-control-plaintext:focus,
.dt-container .dt-input:focus {
  background-color: var(--surface);
  border-color: var(--accent) !important;
  box-shadow: var(--campo-foco);
  outline: none;
}

.modal textarea.form-control-plaintext {
  min-height: 6rem;
  resize: vertical;
}

.modal input.form-control-plaintext[readonly] {
  background-color: transparent;
  border-style: dashed !important;
  font-weight: 700;
}

/* rótulos */
.modal label.fw-bold,
.login-card label.fw-bold,
.registro-card label.fw-bold,
.ficha label.fw-bold {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

.modal label.fw-bold small {
  font-weight: 400;
}

/* botão de mostrar senha centralizado no campo */
.modal .toggle-password,
.login-card .toggle-password {
  bottom: 0.85rem !important;
  margin-bottom: 0 !important;
  color: var(--muted);
  cursor: pointer;
}

/* checkbox */
.form-check-input {
  width: 1.15em;
  height: 1.15em;
  background-color: var(--campo-bg);
  border: 1.5px solid var(--campo-borda-hover);
  border-radius: 6px !important;
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* select + botão (ex.: cliente + "novo cliente") */
.input-group > .form-select,
.input-group > .form-control {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group > .btn {
  min-width: 2.85rem;
  border-radius: 0 12px 12px 0 !important;
  border: 1px solid var(--campo-borda);
  border-left: 0;
  background: var(--campo-bg);
  color: var(--accent-text);
}

.input-group > .btn:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--campo-bg));
  color: var(--accent-text);
  border-color: var(--campo-borda);
}

/* lista de tipos com checkbox */
.tipos-lista {
  overflow-x: hidden;
  background: var(--campo-bg);
  border: 1px solid var(--campo-borda);
  border-radius: 14px;
}

.tipo-nome {
  min-width: 0;
  line-height: 1.35;
}

.tipo-opcao {
  border-bottom-color: var(--campo-borda);
}

.tipo-opcao:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.tipo-opcao:has(.tipo-check:checked) {
  background: color-mix(in srgb, var(--accent) 11%, transparent);
}

.tipo-opcao:has(.tipo-check:checked) .tipo-nome {
  font-weight: 600;
}

/* Fichas (somente leitura): cada dado num bloco suave, sem cara de campo */
.ficha .form-control-plaintext,
.ficha p.form-control-plaintext {
  min-height: 2.75rem;
  margin: 0;
  padding: 0.6rem 0.9rem;
  background: var(--ficha-bg);
  border: 0 !important;
  border-radius: 12px !important;
  color: var(--ink);
  font-weight: 500;
}

.ficha p.form-control-plaintext:empty::before {
  content: "—";
  color: var(--muted);
}

/* Modal */
.modal-backdrop {
  background-color: #0a1422;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal-content {
  background: var(--modal-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid var(--card-borda);
  border-radius: 16px;
  box-shadow: 0 40px 90px -30px rgba(10, 25, 45, 0.55), var(--glass-brilho);
}

.modal-header,
.modal-header.bg-dark {
  position: relative;
  padding: 1.35rem 1.75rem 1.2rem;
  background: var(--modal-bg) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--card-borda);
}

.modal-header .modal-title,
.modal-header.bg-dark .modal-title {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
}

/* modal-lg já a partir de 640px (o padrão do Bootstrap só alarga em 992px e deixa o
   formulário espremido em 500px nas telas médias) */
@media (min-width: 640px) {
  .modal-lg {
    --bs-modal-width: min(820px, calc(100vw - 3rem));
  }
}

.modal-header .btn-close,
.modal-header .btn-close-white {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: -0.25rem -0.5rem -0.25rem auto;
  border-radius: 50%;
  background-color: transparent;
  background-size: 0.8rem;
  opacity: 0.6;
  filter: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

:root[data-bs-theme="dark"] .modal-header .btn-close,
:root[data-bs-theme="dark"] .modal-header .btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-header .btn-close:hover {
  opacity: 1;
  background-color: color-mix(in srgb, var(--ink) 8%, transparent);
}

.modal-body {
  padding: 1.5rem 1.75rem;
}

.modal-body > p.text-muted:first-child {
  margin-bottom: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.75rem;
  background: var(--modal-rodape);
  border-top: 1px solid var(--card-borda);
}

/* Botões de ação nos tons do tema (suaves, sem as cores cruas do Bootstrap) */
.btn-success,
.btn-danger,
.btn-warning,
.btn-outline-danger,
.btn-outline-dark {
  border: 1px solid transparent;
  box-shadow: none;
}

.btn-success { background: var(--ok-tint); color: var(--ok); }
.btn-danger,
.btn-outline-danger { background: var(--err-tint); color: var(--err); }
.btn-warning { background: var(--warn-tint); color: var(--warn); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--campo-borda); }

.btn-success:hover, .btn-success:focus { background: var(--ok) !important; color: #fff !important; border-color: var(--ok) !important; }
.btn-danger:hover, .btn-danger:focus,
.btn-outline-danger:hover, .btn-outline-danger:focus { background: var(--err) !important; color: #fff !important; border-color: var(--err) !important; }
.btn-warning:hover, .btn-warning:focus { background: var(--warn) !important; color: #fff !important; border-color: var(--warn) !important; }
.btn-outline-dark:hover, .btn-outline-dark:focus { background: var(--campo-bg) !important; color: var(--ink) !important; border-color: var(--campo-borda-hover) !important; }

:root[data-bs-theme="dark"] .btn-success:hover,
:root[data-bs-theme="dark"] .btn-danger:hover,
:root[data-bs-theme="dark"] .btn-outline-danger:hover,
:root[data-bs-theme="dark"] .btn-warning:hover {
  color: #0a111c !important;
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--campo-borda);
}

.modal-footer .btn {
  min-height: 2.75rem;
  padding: 0.55rem 1.2rem;
}

@media (max-width: 575.98px) {
  .modal-content {
    border-radius: 0;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

/* ---------- Exemplos de serviços ---------- */
.exemplo-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.exemplo-antes-depois {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--card-borda);
}

.exemplo-antes-depois figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--ficha-bg);
}

.exemplo-antes-depois img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exemplo-antes-depois figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(10, 20, 34, 0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exemplo-antes-depois figure:last-child figcaption {
  background: var(--grad);
}

.exemplo-corpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.4rem 1.4rem;
}

.exemplo-categoria {
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exemplo-corpo h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.1rem;
}

.exemplo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.exemplo-meta i {
  color: var(--accent);
  margin-right: 0.2rem;
}

.exemplo-descricao {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem;
}

.exemplo-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.galeria-momento {
  margin: 0.25rem 0 0.75rem;
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.galeria-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.galeria-grade img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.exemplo-fotos-ficha {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
}

.exemplo-foto-item {
  position: relative;
  margin: 0;
}

.exemplo-foto-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.exemplo-foto-item figcaption {
  margin-top: 0.25rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-excluir-foto {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 20, 34, 0.6);
  color: #fff;
  font-size: 0.75rem;
}

.btn-excluir-foto:hover {
  background: var(--err);
}

/* ---------- Fotos dos serviços ---------- */
.servico-destaque {
  padding: 0;
}

.servico-foto {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--card-borda);
}

.servico-corpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 1.5rem 1.5rem;
}

/* ---------- Rodapé ---------- */
.rodape {
  margin-top: 1.5rem;
  padding: 3.5rem 0 1.5rem;
  background: #16303f;
  border-top: 0 !important;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.6;
}

:root[data-bs-theme="dark"] .rodape {
  background: #0b1117;
  border-top: 1px solid var(--border) !important;
}

.rodape a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.rodape a:hover {
  color: #fff;
  text-decoration: underline;
}

.rodape-grade {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem 2.5rem;
  padding-bottom: 2.5rem;
}

.rodape-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  color: #fff !important;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  text-decoration: none !important;
}

/* o logo é traço escuro: no rodapé escuro ele fica branco */
.rodape-logo img {
  width: 48px;
  height: auto;
  filter: brightness(0) invert(1);
}

.rodape-marca p {
  max-width: 22rem;
  margin-bottom: 1.1rem;
}

.rodape .btn-whatsapp .fa-whatsapp {
  color: inherit;
}

.rodape-coluna h2 {
  margin-bottom: 0.9rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rodape-coluna ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rodape-contato li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.rodape-contato i {
  width: 1rem;
  margin-top: 0.3rem;
  color: #8db7cd;
  text-align: center;
}

.rodape-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 991.98px) {
  .rodape-grade {
    grid-template-columns: 1fr 1fr;
  }

  .rodape-marca {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .rodape {
    padding-top: 2.5rem;
  }

  .rodape-grade {
    gap: 1.75rem 1.5rem;
  }
}

/* ---------- Entrada suave ao rolar ---------- */
/* o atraso escalonado vale só para a entrada; sombra e borda do hover respondem na hora */
.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease var(--reveal-delay, 0s),
    transform 0.5s ease var(--reveal-delay, 0s),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.js-anim [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-anim [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Acessibilidade: link "pular para o conteúdo" (aparece só ao receber foco) */
.pular-conteudo {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.pular-conteudo:focus {
  transform: none;
  color: var(--btn-fg);
  box-shadow: var(--focus-ring);
}

.toggle-password:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.aviso-legal {
  font-size: 0.85rem;
  color: var(--muted);
}

/* caixa "Li e aceito" do cadastro */
.aceite-termos {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.9rem;
}

.aceite-termos .form-check-input {
  flex-shrink: 0;
  margin: 0.15rem 0 0;
}

.aceite-termos .form-check-label {
  color: var(--ink);
}

#conteudo:focus {
  outline: none;
}

.rodape-contato a {
  overflow-wrap: anywhere;
}

.rodape-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Campos obrigatórios: asterisco vermelho depois do rótulo (marcado pelo site.js) */
.campo-obrigatorio::after {
  content: " *";
  color: #d93636;
  font-weight: 700;
}

:root[data-bs-theme="dark"] .campo-obrigatorio::after {
  color: #ff7b7b;
}

/* Termos e Política: sumário e tabelas */
.documento-indice {
  margin: 0.5rem 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.92rem;
}

.documento-indice ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
}

.documento-indice li {
  break-inside: avoid;
  margin-bottom: 0.2rem;
}

.documento-indice a {
  color: var(--brand);
  text-decoration: none;
}

.documento-indice a:hover {
  text-decoration: underline;
}

.documento-legal h2[id] {
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
}

.documento-tabela {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ink);
  font-size: 0.88rem;
}

.documento-tabela th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.documento-tabela td,
.documento-tabela th {
  padding: 0.6rem 0.75rem;
  border-color: var(--border);
  vertical-align: top;
}

.documento-tabela code {
  color: var(--brand);
  font-size: 0.82rem;
  word-break: break-all;
}

@media (max-width: 575.98px) {
  .documento-indice ol {
    columns: 1;
  }
}

/* Banner de cookies */
.cookies-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1050;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.1rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -16px rgba(10, 20, 34, 0.45);
  color: var(--ink);
}

.cookies-banner-texto {
  flex: 1 1 360px;
}

.cookies-banner-texto strong {
  display: block;
  margin-bottom: 0.25rem;
}

.cookies-banner-texto strong i {
  color: var(--brand);
}

.cookies-banner-texto p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookies-banner-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookies-opcao {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.cookies-opcao:first-child {
  padding-top: 0;
}

.cookies-opcao p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.cookies-opcao .form-switch .form-check-input {
  width: 2.5em;
  height: 1.3em;
}

@media (max-width: 575.98px) {
  .cookies-banner {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
  }

  .cookies-banner-acoes .btn {
    flex: 1 1 auto;
  }
}
