/* ═══════════════════════════════════════════════════════════════
   DRA. MARCELA GOUVEIA — Design System CSS v4
   Paleta: #1C1008 · #C9A96E · #F7F3EF
   Fonte: DM Sans (corpo/UI) + Cormorant Garamond (display/serif)
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ───────────────────────────────────────────────── */
:root {
  /* Cores — sobrescritas pelo banco */
  --gold:          #C9A96E;
  --gold-dark:     #A07840;
  --gold-light:    #F0E6D0;
  --gold-bright:   #D4AF37;
  --brown:         #1C1008;
  --brown-mid:     #2A1A08;
  --brown-warm:    #3D2510;
  --cream:         #F7F3EF;
  --cream-dark:    #EDE5D8;

  /* Aliases dinâmicos (sobrescritos inline via PHP) */
  --color-primary:       var(--gold);
  --color-primary-dark:  var(--gold-dark);
  --color-primary-light: var(--gold-light);
  --color-secondary:     var(--gold-bright);
  --color-bg-dark:       var(--brown);
  --color-bg-medium:     var(--brown-mid);
  --color-bg-cream:      var(--cream);
  --color-surface:       var(--cream);
  --color-text:          var(--brown);
  --color-text-on-dark:  #F7F3EF;
  --color-border:        #D6C9B2;
  --color-border-dark:   rgba(201,169,110,.22);
  --color-muted:         #6E5A42;  /* ≥ 4.5:1 sobre #FFF e sobre #F7F3EF (WCAG AA) */
  --color-text-soft:     #4A3A28;  /* ≥ 7:1 sobre fundos claros (WCAG AAA)  */
  --text-soft:           var(--color-text-soft); /* alias compat */
  --text-muted:          var(--color-muted);     /* alias compat */

  /* Semânticas */
  --color-success: #4A7C5A;
  --color-danger:  #9B3A3A;
  --color-warning: #C9A96E;
  --color-info:    #4A6B8A;

  /* Tipografia */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Espaçamento */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3.5rem;
  --space-3xl: 5.5rem;

  /* Bordas */
  --radius-sm:   0.25rem;
  --radius-md:   0.375rem;
  --radius-lg:   0.625rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:   0 1px 3px rgba(28,16,8,.18);
  --shadow-md:   0 4px 16px rgba(28,16,8,.22);
  --shadow-lg:   0 12px 32px rgba(28,16,8,.28);
  --shadow-xl:   0 24px 48px rgba(28,16,8,.32);
  --shadow-gold: 0 6px 24px rgba(201,169,110,.35);

  /* Transições */
  --t-fast: 150ms ease;
  --t-base: 280ms ease;
  --t-slow: 480ms ease;

  /* Layout */
  --nav-h:           4.5rem;
  --sidebar-w:       270px;
  --content-max:     80rem;
  --content-narrow:  48rem;

  /* ── Tints canonicais (use em vez de rgba inline) ─────────── */
  --alpha-gold-04:   rgba(201,169,110,.04);
  --alpha-gold-08:   rgba(201,169,110,.08);
  --alpha-gold-10:   rgba(201,169,110,.10);
  --alpha-gold-12:   rgba(201,169,110,.12);
  --alpha-gold-15:   rgba(201,169,110,.15);
  --alpha-gold-20:   rgba(201,169,110,.20);
  --alpha-gold-25:   rgba(201,169,110,.25);
  --alpha-gold-35:   rgba(201,169,110,.35);
  --alpha-brown-06:  rgba(28,16,8,.06);
  --alpha-brown-08:  rgba(28,16,8,.08);
  --alpha-brown-10:  rgba(28,16,8,.10);

  /* ── Z-index scale ────────────────────────────────────────── */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  500;
  --z-modal:    1000;
  --z-toast:    2000;
  --z-tooltip:  3000;
  --z-skip:     10000;

  /* ── Shadow focus ─────────────────────────────────────────── */
  --shadow-focus: 0 0 0 3px var(--alpha-gold-25);

  /* ── Border presets ───────────────────────────────────────── */
  --border-thin:  1px solid var(--color-border);
  --border-soft:  1px solid var(--alpha-brown-08);
  --border-gold:  1px solid var(--alpha-gold-25);
}

/* ── 2. RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.public-body {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--brown); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ── 3. TIPOGRAFIA ───────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

.text-display {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.05;
}
.text-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.2;
}
.text-subhead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
}
.text-body  { font-size: 1rem; line-height: 1.7; }
.text-small { font-size: .875rem; line-height: 1.65; }
.text-xs    { font-size: .75rem; line-height: 1.5; }
.text-label {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 4. UTILITÁRIOS DE COR ───────────────────────────────────── */
.bg-dark    { background: var(--brown) !important; }
.bg-medium  { background: var(--brown-mid) !important; }
.bg-warm    { background: var(--brown-warm) !important; }
.bg-cream   { background: var(--cream) !important; }
.bg-gold    { background: var(--gold) !important; }
.text-gold  { color: var(--gold) !important; }
.text-muted { color: var(--color-muted) !important; }
.text-soft  { color: var(--color-text-soft) !important; }
.text-dark  { color: var(--brown) !important; }
.text-on-dark { color: var(--color-text-on-dark) !important; }

/* Seções */
.section-dark   { background: var(--brown); }
.section-medium { background: var(--brown-mid); }
.section-warm   { background: var(--brown-warm); }
.section-light  { background: var(--cream); }
.section-cream  { background: var(--cream-dark); }

/* ── 5. LAYOUT ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section    { padding-block: var(--space-3xl); }
.section-md { padding-block: var(--space-2xl); }
.section-sm { padding-block: var(--space-xl); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-lg);
}
.grid-auto-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ── 6. NAV ──────────────────────────────────────────────────── */
.nav-public {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(28,16,8,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-dark);
  transition: box-shadow var(--t-base);
}
.nav-public.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.5); }

.nav-public__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
  gap: 1rem;
  min-width: 0;
}

/* Logo */
.nav-public__logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; min-width: 0; }
.nav-public__logo-img { height: 2.75rem; width: auto; object-fit: contain; max-width: 160px; }
.nav-public__logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-public__logo-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--gold);
}
.nav-public__logo-tagline {
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Links desktop */
.nav-public__links {
  display: flex;
  align-items: center;
  gap: clamp(.875rem, 2vw, 1.75rem);
}

.nav-public__link {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247,243,239,.6);
  transition: color var(--t-fast);
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}
.nav-public__link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--t-base);
}
.nav-public__link:hover,
.nav-public__link.active { color: var(--gold); }
.nav-public__link:hover::after,
.nav-public__link.active::after { width: 100%; }

/* CTA nav */
.nav-public__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--t-base);
  flex-shrink: 0;
}
.nav-public__cta:hover { background: var(--gold); color: var(--brown); }

/* Ações direita (CTA + burger) */
.nav-public__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Burger */
.nav-public__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--brown);
  border-bottom: 1px solid var(--color-border-dark);
  padding: 1.25rem clamp(1rem,5vw,2.5rem) 1.5rem;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: .25rem;
}
.nav-mobile.open { display: flex; }

.nav-mobile__link {
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(247,243,239,.65);
  padding: .75rem 0;
  border-bottom: 1px solid var(--color-border-dark);
  transition: color var(--t-fast);
}
.nav-mobile__link:last-of-type { border-bottom: none; }
.nav-mobile__link:hover,
.nav-mobile__link.active { color: var(--gold); }

@media (max-width: 960px) {
  .nav-public__links { display: none; }
  .nav-public__toggle { display: flex; }
}
/* Oculta o CTA antes que ele comalha o burger — breakpoint generoso */
@media (max-width: 640px) {
  .nav-public__cta { display: none; }
}

/* ── 7. BOTÕES ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--brown);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--brown);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: rgba(247,243,239,.85);
  border-color: rgba(247,243,239,.35);
}
.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--cream); color: var(--brown); }

.btn-danger  { background: var(--color-danger);  color: #fff; border-color: var(--color-danger); }
.btn-success { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.btn-danger:hover,
.btn-success:hover { opacity: .85; transform: translateY(-1px); }

.btn-sm { padding: .5rem 1.25rem; font-size: .75rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: .875rem; }
.btn-xl { padding: 1.125rem 3rem; font-size: .875rem; }
.btn-icon { padding: .625rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── 8. HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--brown);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .55;          /* visível mas não ofuscante */
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(28,16,8,.92) 0%,
    rgba(28,16,8,.78) 55%,
    rgba(28,16,8,.45) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-2xl);
}
.hero__inner {
  max-width: 600px;
  text-align: left;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: '';
  display: block;
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 300;
  letter-spacing: .04em;
  color: #F7F3EF;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero__title-accent { color: var(--gold); display: block; }

.hero__subtitle {
  font-size: clamp(.9375rem, 2vw, 1.0625rem);
  color: rgba(247,243,239,.6);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: .01em;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,169,110,.2);
  flex-wrap: wrap;
  gap: 0;
}

.hero__stat {
  padding-right: 2rem;
  margin-right: 2rem;
  border-right: 1px solid rgba(201,169,110,.2);
}
.hero__stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }

.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.hero__stat-label {
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(247,243,239,.4);
  margin-top: .25rem;
}

@media (max-width: 600px) {
  .hero__stats { gap: 1.5rem; }
  .hero__stat { border-right: none; padding-right: 0; margin-right: 0; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ── Hero stats (novo — responsivo) ─────────────────────────── */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,169,110,.2);
}

.hero-stat { text-align: left; }

.hero-stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.hero-stat__unit {
  font-size: 1.375rem;
}

.hero-stat__label {
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(247,243,239,.4);
  margin-top: .3rem;
  line-height: 1.4;
}

.hero-stat__divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(201,169,110,.2);
  margin: 0 clamp(1rem, 3vw, 2rem);
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: .75rem;
  }
  .hero-stat__divider { display: none; }
  .hero-stat { text-align: center; }
  .hero-stat__num { font-size: 1.625rem; }
  .hero-stat__label { font-size: .575rem; letter-spacing: .1em; }
}

/* ── 8b. HERO SCROLL INDICATOR ───────────────────────────────── */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  color: rgba(247,243,239,.35);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--t-fast);
  z-index: 2;
}
.hero__scroll:hover { color: var(--gold, #C9A96E); }
.hero__scroll-icon {
  width: 1.5rem;
  height: 2.25rem;
  border: 1.5px solid currentColor;
  border-radius: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: .35rem;
}
.hero__scroll-dot {
  width: .3rem;
  height: .3rem;
  background: currentColor;
  border-radius: 50%;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0);   opacity: 1; }
  60%  { transform: translateY(.7rem); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}
@media (max-width: 480px) { .hero__scroll { display: none; } }

/* ── 9. SEÇÃO TÍTULOS ────────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-title__eyebrow {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .875rem;
}

.section-title__heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: .03em;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.section-dark  .section-title__heading,
.section-medium .section-title__heading,
.section-warm  .section-title__heading { color: #F7F3EF; }
.section-light .section-title__heading,
.section-cream .section-title__heading { color: var(--brown); }

.section-title__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  margin-bottom: .875rem;
}
.section-title__ornament::before,
.section-title__ornament::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}
.section-title__diamond {
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}
.section-title__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.section-title__sub {
  font-size: clamp(.875rem, 1.5vw, 1rem);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.8;
  font-weight: 300;
}
.section-dark  .section-title__sub,
.section-medium .section-title__sub,
.section-warm  .section-title__sub { color: rgba(247,243,239,.55); }
.section-light .section-title__sub { color: var(--color-text-soft); }

/* ── 10. CARDS ───────────────────────────────────────────────── */
/* Card escuro (padrão público) */
.card {
  background: rgba(42,26,8,.65);
  border: 1px solid var(--color-border-dark);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: rgba(201,169,110,.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.card__image {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  opacity: .88;
  transition: opacity var(--t-base), transform var(--t-slow);
}
.card:hover .card__image { opacity: 1; transform: scale(1.03); }

.card__body { padding: 1.25rem 1.5rem; flex: 1; }

.card__label {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: #F7F3EF;
  margin-bottom: .5rem;
  letter-spacing: .02em;
  line-height: 1.3;
}
.card__text {
  font-size: .875rem;
  color: rgba(247,243,239,.55);
  line-height: 1.7;
}

.card__footer {
  padding: .875rem 1.5rem;
  border-top: 1px solid var(--color-border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Card claro (admin) */
.card-light {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t-base);
}
.card-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-light .card__title { color: var(--brown); }
.card-light .card__text  { color: var(--color-text-soft); }

/* ── 11. PROFISSIONAIS ───────────────────────────────────────── */
.professional-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-border-dark);
  background: rgba(42,26,8,.45);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.professional-card::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--t-base);
}
.professional-card:hover::after { width: 60%; }
.professional-card:hover {
  border-color: rgba(201,169,110,.45);
  background: rgba(42,26,8,.8);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.professional-card__avatar {
  width: 7rem; height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--color-border-dark);
  transition: border-color var(--t-base);
}
.professional-card:hover .professional-card__avatar { border-color: var(--gold); }

.professional-card__avatar-placeholder {
  width: 7rem; height: 7rem;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,169,110,.1);
  color: var(--gold);
  font-size: 2.5rem;
  border: 1px solid var(--color-border-dark);
}

.professional-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: #F7F3EF;
  margin-bottom: .2rem;
  letter-spacing: .03em;
}
.professional-card__specialty {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .875rem;
}
.professional-card__bio {
  font-size: .875rem;
  color: rgba(247,243,239,.5);
  line-height: 1.7;
}

/* ── 12. FORMULÁRIOS ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,169,110,.2);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: #F7F3EF;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,169,110,.15);
}
.form-control::placeholder { color: rgba(247,243,239,.28); }
.form-control:disabled { opacity: .5; cursor: not-allowed; }

.form-control-light {
  background: #fff;
  border: 1.5px solid var(--color-border);
  color: var(--brown);
  border-radius: var(--radius-md);
}
.form-control-light:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,.12); }
.form-control-light::placeholder { color: var(--color-muted); }

textarea.form-control,
textarea.form-control-light { resize: vertical; min-height: 120px; }

select.form-control,
select.form-control-light {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C9A96E' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.5rem;
}

.form-error { font-size: .8rem; color: #E07070; margin-top: .25rem; }
.form-hint  { font-size: .8rem; color: var(--color-muted); margin-top: .25rem; }

/* ── 13. BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .75rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-primary   { background: rgba(201,169,110,.12); color: var(--gold);   border-color: rgba(201,169,110,.28); }
.badge-success   { background: rgba(74,124,90,.12);   color: #6AAD80; border-color: rgba(74,124,90,.28); }
.badge-warning   { background: rgba(201,169,110,.12); color: #D4AF37; border-color: rgba(201,169,110,.28); }
.badge-danger    { background: rgba(155,58,58,.12);   color: #E07070; border-color: rgba(155,58,58,.28); }
.badge-info      { background: rgba(74,107,138,.12);  color: #7AABCC; border-color: rgba(74,107,138,.28); }
.badge-muted     { background: rgba(138,117,96,.1);   color: var(--color-muted); border-color: rgba(138,117,96,.2); }
.badge-pending   { background: rgba(201,169,110,.1);  color: #C9A96E; border-color: rgba(201,169,110,.22); }
.badge-confirmed { background: rgba(74,124,90,.1);    color: #6AAD80; border-color: rgba(74,124,90,.22); }
.badge-canceled  { background: rgba(155,58,58,.1);    color: #E07070; border-color: rgba(155,58,58,.22); }
.badge-completed { background: rgba(74,107,138,.1);   color: #7AABCC; border-color: rgba(74,107,138,.22); }

/* ── 14. TABELAS ─────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-lg);
}
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: .875rem 1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  background: var(--cream);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.table td {
  padding: .875rem 1rem;
  font-size: .9rem;
  color: var(--brown);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(201,169,110,.04); }
.table-actions { display: flex; gap: .375rem; align-items: center; }

/* ── 15. ALERTAS ─────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: .875rem 1.25rem;
  border-left: 3px solid;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}
.alert-success { background: rgba(74,124,90,.1);  border-color: #4A7C5A; color: #6AAD80; }
.alert-danger  { background: rgba(155,58,58,.1);  border-color: #9B3A3A; color: #E07070; }
.alert-warning { background: rgba(201,169,110,.1);border-color: var(--gold); color: var(--gold); }
.alert-info    { background: rgba(74,107,138,.1); border-color: #4A6B8A; color: #7AABCC; }

/* ── 16. FAQ ─────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--color-border-dark); }
.faq-item:last-child { border-bottom: none; }

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  color: #F7F3EF;
  background: transparent;
  letter-spacing: .02em;
  transition: color var(--t-fast);
}
.faq-item__question:hover,
.faq-item.open .faq-item__question { color: var(--gold); }

.faq-item__icon {
  color: var(--gold);
  flex-shrink: 0;
  font-size: .875rem;
  opacity: .7;
  transition: transform var(--t-base);
}
.faq-item.open .faq-item__icon { transform: rotate(180deg); opacity: 1; }

.faq-item__answer {
  display: none;
  padding: 0 0 1.25rem;
  font-size: .9375rem;
  color: rgba(247,243,239,.55);
  line-height: 1.85;
}
.faq-item.open .faq-item__answer { display: block; }

/* FAQ claro */
.faq-light .faq-item { border-color: var(--color-border); }
.faq-light .faq-item__question { color: var(--brown); }
.faq-light .faq-item__question:hover,
.faq-light .faq-item.open .faq-item__question { color: var(--gold-dark); }
.faq-light .faq-item__answer { color: var(--color-text-soft); }

/* ── 17. REVIEWS ─────────────────────────────────────────────── */
.review-card {
  border: 1px solid var(--color-border-dark);
  padding: 2rem;
  background: rgba(42,26,8,.4);
  transition: all var(--t-base);
  position: relative;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  opacity: .15;
  line-height: 1;
}
.review-card:hover { border-color: rgba(201,169,110,.4); background: rgba(42,26,8,.7); }

.review-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 1rem; font-size: .875rem; }
.review-stars .empty { color: rgba(201,169,110,.18); }

.review-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: rgba(247,243,239,.75);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.review-author { display: flex; align-items: center; gap: .875rem; }
.review-author__name  { font-size: .875rem; font-weight: 600; color: #F7F3EF; }
.review-author__role  { font-size: .75rem; color: var(--color-muted); letter-spacing: .04em; }

/* ── 18. AGENDAMENTO STEPS ───────────────────────────────────── */
.booking-steps { display: flex; align-items: center; margin-bottom: 2.5rem; overflow-x: auto; }
.booking-step  { display: flex; flex-direction: column; align-items: center; gap: .375rem; min-width: 80px; }
.booking-step__num {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-border-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 600;
  color: var(--color-muted);
  background: transparent;
  transition: all var(--t-base);
}
.booking-step.active .booking-step__num { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,.1); }
.booking-step.done   .booking-step__num { border-color: var(--color-success); color: #fff; background: var(--color-success); }
.booking-step__label { font-size: .7rem; color: var(--color-muted); font-weight: 500; letter-spacing: .05em; }
.booking-step.active .booking-step__label { color: var(--gold); }
.booking-step-line { flex: 1; height: 1px; background: var(--color-border-dark); min-width: 2rem; margin-bottom: 1.25rem; }

/* ── 19. ABOUT GRID ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { display: block; } /* foto visível no mobile */
  .about-image__main { aspect-ratio: 4/3; max-height: 420px; }
  .about-image__frame { display: none; }
  .about-image__badge { right: 0; bottom: 0; }
}

.about-image { position: relative; }
.about-image__main { width: 100%; object-fit: cover; aspect-ratio: 3/4; }
.about-image__frame {
  position: absolute;
  top: -1rem; left: -1rem; right: 1rem; bottom: 1rem;
  border: 1px solid var(--color-border-dark);
  z-index: -1;
}
.about-image__badge {
  position: absolute;
  bottom: 1.5rem; right: -1.5rem;
  background: var(--brown);
  border: 1px solid var(--color-border-dark);
  padding: 1rem 1.5rem;
  min-width: 150px;
}
@media (max-width: 900px) {
  .about-image__badge { right: 0; }
}
.about-image__badge-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.about-image__badge-label {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247,243,239,.45);
}

.about-credentials { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.about-credential {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-dark);
}
.about-credential:last-child { border-bottom: none; }
.about-credential__icon { color: var(--gold); font-size: .875rem; margin-top: .1rem; flex-shrink: 0; }
.about-credential__text { font-size: .875rem; color: rgba(247,243,239,.6); line-height: 1.65; }

/* ── 20. ADMIN LAYOUT ────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  background: var(--cream);
}

.admin-topbar {
  grid-column: 1/-1;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding-inline: 1.5rem;
  gap: 1rem;
  position: sticky;
  top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}

.admin-sidebar {
  background: var(--brown);
  border-right: 1px solid rgba(201,169,110,.12);
  overflow-y: auto;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  padding: 1rem 0;
  transition: transform var(--t-base);
}

.admin-main { padding: 1.5rem; overflow-x: hidden; }

.admin-nav-group { margin-bottom: 1.25rem; }
.admin-nav-group__label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(201,169,110,.35);
  padding: 0 1rem .375rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .6rem 1rem;
  font-size: .8375rem;
  font-weight: 400;
  color: rgba(247,243,239,.48);
  transition: all var(--t-fast);
  border-left: 2px solid transparent;
  position: relative;
}
.admin-nav-link:hover { background: rgba(201,169,110,.06); color: var(--gold); }
.admin-nav-link.active {
  background: rgba(201,169,110,.08);
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 500;
}
.admin-nav-link__icon { width: 1rem; text-align: center; flex-shrink: 0; font-size: .875rem; }
.admin-nav-link__badge {
  margin-left: auto;
  font-size: .65rem;
  font-weight: 700;
  background: var(--color-danger);
  color: #fff;
  padding: .1rem .5rem;
  border-radius: var(--radius-full);
}

/* Stat cards admin */
.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--t-base);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card__icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; flex-shrink: 0;
  background: var(--gold-light);
  color: var(--gold-dark);
}
.stat-card__label { font-size: .8rem; color: var(--color-text-soft); margin-bottom: .25rem; }
.stat-card__value { font-size: 1.75rem; font-weight: 700; color: var(--brown); line-height: 1; }
.stat-card__change { font-size: .8rem; color: var(--color-success); margin-top: .25rem; }
.stat-card__change.down { color: var(--color-danger); }

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.page-header__title { font-size: 1.375rem; font-weight: 700; color: var(--brown); }
.page-header__sub   { font-size: .875rem; color: var(--color-muted); margin-top: .2rem; }

/* ── 21. MOBILE ADMIN ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    top: var(--nav-h); left: 0; bottom: 0;
    z-index: 200;
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 199;
  }
  .admin-sidebar-overlay.open { display: block; }
}
@media (max-width: 640px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .admin-main  { padding: 1rem; }
}

/* ── 22. ÁREA DO PACIENTE ────────────────────────────────────── */
.patient-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
@media (max-width: 768px) { .patient-layout { grid-template-columns: 1fr; } }
.patient-sidebar {
  background: var(--brown);
  border-right: 1px solid rgba(201,169,110,.12);
  padding: 2rem 1rem;
}

/* ── 23. FOOTER ──────────────────────────────────────────────── */
.footer-public {
  background: #0F0804;
  border-top: 1px solid rgba(201,169,110,.12);
  padding-block: var(--space-3xl) var(--space-xl);
}

.footer-public__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 960px) { .footer-public__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-public__grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-public__logo { height: 2.5rem; margin-bottom: 1.25rem; }
.footer-public__desc { font-size: .875rem; color: rgba(247,243,239,.42); line-height: 1.8; margin-bottom: 1.25rem; }
.footer-public__heading {
  font-size: .6rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.footer-public__links { display: flex; flex-direction: column; gap: .5rem; }
.footer-public__links--contact { gap: .875rem; }
.footer-public__link { font-size: .875rem; color: rgba(247,243,239,.42); transition: color var(--t-fast); }
.footer-public__link:hover { color: var(--gold); }

.footer-public__social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-public__social-link {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,169,110,.22);
  color: rgba(247,243,239,.45);
  font-size: .875rem;
  transition: all var(--t-base);
}
.footer-public__social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,.08);
}

.footer-public__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,169,110,.1);
  flex-wrap: wrap;
  gap: .75rem;
}
@media (max-width: 560px) {
  .footer-public__bottom { flex-direction: column; align-items: flex-start; }
}
.footer-public__copy { font-size: .8rem; color: rgba(247,243,239,.28); }

/* ── 24. WHATSAPP FLOAT ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: .625rem;
  background: linear-gradient(135deg, #C9A96E, #A07840);
  color: #1C1008;
  border-radius: var(--radius-full);
  padding: .875rem;
  box-shadow: 0 4px 20px rgba(201,169,110,.4);
  transition: all var(--t-base);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(201,169,110,.55); }
.whatsapp-float__icon { font-size: 1.5rem; line-height: 1; }
.whatsapp-float__text {
  font-size: .875rem; font-weight: 600; white-space: nowrap;
  max-width: 0; overflow: hidden;
  transition: max-width var(--t-slow);
}
.whatsapp-float:hover .whatsapp-float__text { max-width: 140px; }
@media (max-width: 480px) {
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }
  .whatsapp-float__text { display: none; }
}

/* ── 25. RESULTADOS ANTES/DEPOIS ─────────────────────────────── */
.result-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; position: relative; overflow: hidden; }
.result-pair__label {
  position: absolute; bottom: .625rem;
  font-size: .6rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  background: rgba(28,16,8,.85);
  color: var(--gold);
  padding: .2rem .6rem;
  z-index: 1;
}
.result-pair__label--before { left: .625rem; }
.result-pair__label--after  { right: .625rem; }

/* ── 26. UTILITÁRIOS ─────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.truncate   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aspect-video  { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1; }
.aspect-4-3    { aspect-ratio: 4/3; }
.aspect-3-4    { aspect-ratio: 3/4; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm   { display: flex; align-items: center; gap: .5rem; }
.flex-gap-md   { display: flex; align-items: center; gap: 1rem; }
.divider       { border: none; border-top: 1px solid var(--color-border); margin-block: 1.5rem; }
.divider-dark  { border: none; border-top: 1px solid var(--color-border-dark); margin-block: 1.5rem; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(201,169,110,.05) 25%, rgba(201,169,110,.12) 50%, rgba(201,169,110,.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Animações */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-in-up { animation: fadeInUp .6s ease both; }
.animate-fade-in    { animation: fadeIn .5s ease both; }
.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }
.delay-400 { animation-delay: .4s; }
.delay-500 { animation-delay: .5s; }

/* Print */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ── 27. CARD VARIANTES ──────────────────────────────────────── */
/* Card claro — para seções com fundo creme/branco */
.card--light {
  background: #fff;
  border: 1px solid rgba(28,16,8,.1);
}
.card--light:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(28,16,8,.12);
}
.card--light .card__title  { color: var(--brown); }
.card--light .card__text   { color: var(--color-text-soft); }
.card--light .card__label  { color: var(--gold-dark); }
.card--light .card__footer { border-color: rgba(28,16,8,.08); }

/* ── 28–29. PAGE HERO / SECTION HELPERS → see PUBLIC PAGES block below ── */

/* ── 29. SECTION HELPERS ─────────────────────────────────────── */
.section-title { /* reuse como shorthand */ }

/* Classe de bloco de título centrado — shorthand */
.block-title {
  text-align: center;
  margin-bottom: 3rem;
}
.block-title__eyebrow {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .75rem;
}
.block-title__heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 300;
  letter-spacing: .03em;
  line-height: 1.15;
  margin-bottom: .625rem;
}
/* cor automática pelo contexto */
.section-dark .block-title__heading,
.section-medium .block-title__heading { color: #F7F3EF; }
.section-light .block-title__heading,
.section-cream .block-title__heading  { color: var(--brown); }

.block-title__sub {
  font-size: clamp(.875rem, 1.5vw, 1rem);
  line-height: 1.8;
  max-width: 42rem;
  margin-inline: auto;
}
.section-dark .block-title__sub,
.section-medium .block-title__sub { color: rgba(247,243,239,.5); }
.section-light .block-title__sub,
.section-cream .block-title__sub  { color: var(--color-text-soft); }

/* ── 30. CONTACT INFO ITEM ───────────────────────────────────── */
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(28,16,8,.08);
}
.contact-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-item--dark {
  border-color: var(--color-border-dark);
}

.contact-item__icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(201,169,110,.1);
  border: 1px solid rgba(201,169,110,.22);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: .875rem;
}
.contact-item__label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: .25rem;
}
.contact-item__value {
  font-size: .9375rem;
  color: var(--brown);
  line-height: 1.6;
}
.contact-item__value a { color: inherit; transition: color var(--t-fast); }
.contact-item__value a:hover { color: var(--gold-dark); }

/* Dark variant */
.contact-item--dark .contact-item__label { color: rgba(247,243,239,.4); }
.contact-item--dark .contact-item__value { color: rgba(247,243,239,.8); }
.contact-item--dark .contact-item__value a:hover { color: var(--gold); }

/* ── 31. FORMULÁRIO DE GRID ──────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── 32. SHARE BUTTONS ───────────────────────────────────────── */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.125rem;
  font-size: .8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); }
.share-btn--whatsapp { background: linear-gradient(135deg, #C9A96E, #A07840); color: #1C1008; }
.share-btn--facebook  { background: #1877F2; color: #fff; }

/* ── 34. ARTICLE BODY ────────────────────────────────────────── */
.article-body {
  color: rgba(28,16,8,.8);
  line-height: 1.9;
  font-size: 1.0625rem;
}
.article-body p    { margin-bottom: 1.25em; }
.article-body h2   { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; color: var(--brown); margin: 2em 0 .75em; }
.article-body h3   { font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; color: var(--brown); margin: 1.5em 0 .5em; }
.article-body ul   { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25em; }
.article-body ol   { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25em; }
.article-body li   { margin-bottom: .4em; }
.article-body strong { font-weight: 600; color: var(--brown); }
.article-body em   { font-style: italic; }
.article-body a    { color: var(--gold-dark); text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5em 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text-soft);
}

/* ── 35. SIDEBAR STICKY ──────────────────────────────────────── */
.sidebar-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

/* ── 36. INFO BOX ────────────────────────────────────────────── */
.info-box {
  background: var(--brown);
  border: 1px solid var(--color-border-dark);
  padding: 2rem;
}
.info-box--light {
  background: #fff;
  border: 1px solid rgba(28,16,8,.1);
}
.info-box__heading {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: #F7F3EF;
  margin-bottom: 1.5rem;
}
.info-box--light .info-box__heading { color: var(--brown); }

.info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-dark);
}
.info-row:last-child { border-bottom: none; }
.info-row--light { border-color: rgba(28,16,8,.08); }
.info-row__icon {
  width: 2.75rem; height: 2.75rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--color-border-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: .9375rem;
}
.info-row__icon--light {
  background: rgba(201,169,110,.08);
  border-color: rgba(201,169,110,.2);
}
.info-row__label {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247,243,239,.35);
  margin-bottom: .2rem;
}
.info-row__label--light { color: var(--color-muted); }
.info-row__value {
  font-size: .9375rem;
  color: rgba(247,243,239,.85);
}
.info-row__value--light { color: var(--brown); }

/* ── 37. BLOG CARD ───────────────────────────────────────────── */
.blog-card {
  background: #fff;
  border: 1px solid rgba(28,16,8,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-base);
}
.blog-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(28,16,8,.1);
  transform: translateY(-3px);
}
.blog-card__image { width: 100%; height: 13rem; object-fit: cover; transition: transform var(--t-slow); }
.blog-card:hover .blog-card__image { transform: scale(1.04); }
.blog-card__image-wrap { height: 13rem; overflow: hidden; display: block; }
.blog-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { font-size: .75rem; color: var(--color-muted); margin-bottom: .875rem; }
.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brown);
  line-height: 1.35;
  margin-bottom: .75rem;
  transition: color var(--t-fast);
}
.blog-card:hover .blog-card__title { color: var(--gold-dark); }
.blog-card__excerpt { font-size: .875rem; color: var(--color-text-soft); line-height: 1.7; flex: 1; margin-bottom: 1.25rem; }
.blog-card__footer {
  padding-top: .875rem;
  border-top: 1px solid rgba(28,16,8,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.blog-card__read-more {
  font-size: .8125rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: gap var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}
.blog-card:hover .blog-card__read-more { gap: .625rem; }
.blog-card__image-placeholder {
  height: 13rem;
  background: var(--brown-mid, #2A1A08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201,169,110,.3);
  font-size: 2.5rem;
}

/* Badge de categoria sobre a imagem do card */
.blog-card__image-wrap { position: relative; }
.blog-card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--gold);
  color: #fff;
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: .2rem;
  pointer-events: none;
  z-index: 1;
}

/* Wrapper do corpo do blog com padding (substitui .section.section-light inline) */
.blog-body {
  background: var(--cream);
  padding-block: 2.5rem 4rem;
}

/* ── 37b. BLOG — layout, sidebar, post ──────────────────────── */

/* ── Grid principal: content + sidebar ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 21rem;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar  { order: -1; }          /* sidebar acima no mobile */
}

.blog-main { min-width: 0; }

/* ── Busca no hero da listagem ── */
.blog-search-form { margin-top: 1.75rem; max-width: 36rem; margin-inline: auto; }
.blog-search-wrap {
  display: flex;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(247,243,239,.2);
  border-radius: .375rem;
  overflow: hidden;
}
.blog-search-input {
  flex: 1;
  padding: .75rem 1.125rem;
  background: transparent;
  border: none;
  outline: none;
  color: #F7F3EF;
  font-size: .9375rem;
  font-family: var(--font-body);
}
.blog-search-input::placeholder { color: rgba(247,243,239,.4); }
.blog-search-input--sm {
  color: var(--color-text);
  background: #fff;
}
.blog-search-input--sm::placeholder { color: var(--color-muted); }
.blog-search-btn {
  padding: .75rem 1.125rem;
  background: var(--gold);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: .9375rem;
  transition: background var(--t-fast);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.blog-search-btn:hover { background: var(--gold-dark); }
.blog-search-btn--sm { background: var(--brown); padding: .625rem 1rem; }
.blog-search-btn--sm:hover { background: var(--gold-dark); }

/* ── Barra de filtro ativo ── */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  padding: .75rem 1rem;
  background: rgba(201,169,110,.06);
  border: 1px solid rgba(201,169,110,.18);
}
.blog-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--gold);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .25rem .625rem;
  border-radius: .25rem;
}
.blog-filter-tag__remove {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 1.125rem;
  line-height: 1;
}
.blog-filter-tag__remove:hover { color: #fff; }
.blog-filter-count { font-size: .8125rem; color: var(--color-muted); margin-left: auto; }
.blog-filter-clear { font-size: .8125rem; color: var(--gold-dark); text-decoration: underline; margin-left: .5rem; }

/* Categoria badge nos cards */
.blog-card__cat-link {
  display: inline-block;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(201,169,110,.12);
  padding: .175rem .5rem;
  border-radius: .25rem;
  text-decoration: none;
  transition: background var(--t-fast);
}
.blog-card__cat-link:hover { background: rgba(201,169,110,.25); }

/* ── Empty state ── */
.blog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 0;
  color: var(--color-muted);
  text-align: center;
}
.blog-empty i { font-size: 3rem; opacity: .25; color: var(--gold); }

/* ── Paginação ── */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin-top: 2.5rem; }
.pagination__num { min-width: 2.5rem; justify-content: center; }

/* ── Sidebar ── */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 5.5rem;
}
@media (max-width: 1100px) {
  .blog-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .blog-sidebar .blog-sidebar__widget { flex: 1 1 18rem; }
}
@media (max-width: 640px) {
  .blog-sidebar { flex-direction: column; }
  .blog-sidebar .blog-sidebar__widget { flex: 1 1 100%; }
}

.blog-sidebar__widget {
  background: #fff;
  border: 1px solid rgba(28,16,8,.08);
  padding: 1.375rem;
}

.blog-sidebar__title {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 1rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.blog-sidebar__title i { color: var(--gold); }

/* ── Sidebar: busca ── */
.blog-sidebar__search .blog-search-wrap {
  border-color: rgba(28,16,8,.15);
  background: #faf9f7;
  border-radius: .25rem;
}

/* ── Categorias lista ── */
.blog-cat-list { list-style: none; margin: 0; padding: 0; }
.blog-cat-list li { border-bottom: 1px solid rgba(28,16,8,.05); }
.blog-cat-list li:last-child { border-bottom: none; }
.blog-cat-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .25rem;
  text-decoration: none;
  color: var(--color-text-soft);
  font-size: .875rem;
  transition: color var(--t-fast);
}
.blog-cat-list__item:hover { color: var(--gold-dark); }
.blog-cat-list__item--active { color: var(--gold-dark); font-weight: 700; }
.blog-cat-list__count {
  font-size: .6875rem;
  font-weight: 700;
  background: rgba(28,16,8,.07);
  color: var(--color-muted);
  padding: .125rem .5rem;
  border-radius: 2rem;
  min-width: 1.5rem;
  text-align: center;
}
.blog-cat-list__item--active .blog-cat-list__count {
  background: var(--gold);
  color: #fff;
}

/* ── Posts recentes ── */
.blog-recent-list { list-style: none; margin: 0; padding: 0; }
.blog-recent-item { border-bottom: 1px solid rgba(28,16,8,.05); }
.blog-recent-item:last-child { border-bottom: none; }
.blog-recent-item__link {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .625rem 0;
  text-decoration: none;
  transition: opacity var(--t-fast);
}
.blog-recent-item__link:hover { opacity: .75; }
.blog-recent-item__thumb {
  width: 3.75rem;
  height: 3.75rem;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--brown-mid, #2a1a08);
}
.blog-recent-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-recent-item__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(201,169,110,.3); font-size: 1.125rem;
}
.blog-recent-item__info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.blog-recent-item__title {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-recent-item__date { font-size: .6875rem; color: var(--color-muted); }

/* ── CTA sidebar ── */
.blog-sidebar__cta {
  background: linear-gradient(160deg, var(--brown) 0%, #3a1e0a 100%);
  border-color: transparent;
  text-align: center;
}
.blog-sidebar__cta-lead {
  font-size: .875rem;
  color: rgba(247,243,239,.75);
  margin-bottom: 1.125rem;
  line-height: 1.55;
}

/* ── Breadcrumb ── */
.blog-breadcrumb {
  background: #f5f1ec;
  border-bottom: 1px solid rgba(28,16,8,.07);
  padding: .625rem 0;
}
.blog-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  font-size: .8125rem;
  color: var(--color-muted);
  overflow: hidden;
}
.blog-breadcrumb__list li { display: flex; align-items: center; white-space: nowrap; }
.blog-breadcrumb__list li + li::before {
  content: '\203A'; /* › */
  margin: 0 .4rem;
  opacity: .4;
  font-size: 1rem;
}
.blog-breadcrumb__list a { color: var(--gold-dark); text-decoration: none; }
.blog-breadcrumb__list a:hover { text-decoration: underline; }
.blog-breadcrumb__current {
  color: var(--color-muted);
  max-width: 28rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Post hero ── */
.blog-post-hero {
  background: linear-gradient(150deg, var(--brown) 0%, #251208 100%);
  padding: 3rem 0 2.75rem;
}
.blog-post-hero__inner { max-width: 100%; }
.blog-post-hero__cat { margin-bottom: .875rem; display: inline-block; }
.blog-post-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: 400;
  color: #F7F3EF;
  line-height: 1.22;
  margin-bottom: 1rem;
}
.blog-post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: .8125rem;
  color: rgba(247,243,239,.45);
  margin-bottom: 1rem;
}
.blog-post-hero__meta i { color: var(--gold); margin-right: .3rem; }
.blog-post-hero__excerpt {
  font-size: 1rem;
  color: rgba(247,243,239,.65);
  line-height: 1.65;
  max-width: 44rem;
  margin-top: .75rem;
}

/* ── Imagem de capa do post ── */
.blog-post-cover {
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid rgba(28,16,8,.08);
  max-height: 24rem;
}
.blog-post-cover__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Corpo do artigo ── */
.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: #4a3a2e;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brown);
  margin: 2.25rem 0 .875rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(201,169,110,.22);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--brown);
  margin: 1.75rem 0 .625rem;
}
.article-body p { margin-bottom: 1.125rem; }
.article-body ul,
.article-body ol { padding-left: 1.375rem; margin-bottom: 1.125rem; }
.article-body li { margin-bottom: .4rem; }
.article-body strong { font-weight: 600; color: var(--brown); }
.article-body em { font-style: italic; }
.article-body a { color: var(--gold-dark); text-decoration: underline; }
.article-body a:hover { color: var(--brown); }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: .875rem 1.25rem;
  margin: 1.75rem 0;
  background: rgba(201,169,110,.05);
  font-style: italic;
  color: var(--color-text-soft);
}
/* Imagens inseridas no corpo do artigo */
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.75rem auto;
  border-radius: .25rem;
  border: 1px solid rgba(28,16,8,.08);
}
/* Legenda de imagem (TinyMCE figura/figcaption) */
.article-body figure {
  margin: 1.75rem 0;
  text-align: center;
}
.article-body figure img { margin: 0 auto .625rem; }
.article-body figcaption {
  font-size: .8125rem;
  color: var(--color-muted);
  font-style: italic;
}
/* Vídeo embed responsivo */
.article-body iframe,
.article-body video {
  max-width: 100%;
  display: block;
  margin: 1.75rem auto;
  border-radius: .25rem;
}
/* Tabelas */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: .9375rem;
}
.article-body th,
.article-body td {
  padding: .625rem .875rem;
  border: 1px solid rgba(28,16,8,.1);
  text-align: left;
}
.article-body th {
  background: rgba(201,169,110,.1);
  font-weight: 700;
  color: var(--brown);
}
.article-body tr:nth-child(even) td { background: rgba(28,16,8,.02); }
/* Código inline */
.article-body code {
  font-family: monospace;
  font-size: .875em;
  background: rgba(28,16,8,.06);
  padding: .125rem .375rem;
  border-radius: .2rem;
  color: var(--brown);
}

/* ── Compartilhar ── */
.blog-post-share {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(28,16,8,.08);
}
.blog-post-share__label {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.blog-post-share__btns { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── CTA após artigo ── */
.blog-post-cta { margin-top: 2.5rem; text-align: center; }
.blog-post-cta__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: #F7F3EF;
  margin-bottom: .625rem;
}
.blog-post-cta__sub { color: rgba(247,243,239,.5); margin-bottom: 1.5rem; font-size: .9375rem; }

/* ── 38. SERVICE CARD ────────────────────────────────────────── */
.service-card {
  background: #fff;
  border: 1px solid rgba(28,16,8,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-base);
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(28,16,8,.1);
  transform: translateY(-3px);
}
.service-card__image-wrap { height: 14rem; overflow: hidden; flex-shrink: 0; }
.service-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.service-card:hover .service-card__image { transform: scale(1.05); }
.service-card__image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--brown), var(--brown-mid));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 2.5rem; opacity: .6;
}
.service-card__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: .75rem;
  line-height: 1.3;
}
.service-card__desc { font-size: .875rem; color: var(--color-text-soft); line-height: 1.7; flex: 1; margin-bottom: 1.25rem; }
.service-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .875rem 0;
  border-top: 1px solid rgba(28,16,8,.07);
  border-bottom: 1px solid rgba(28,16,8,.07);
  margin-bottom: 1.25rem;
}
.service-card__meta-label {
  font-size: .625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: .2rem;
}
.service-card__duration { font-size: .9375rem; color: var(--brown); }
.service-card__price    { font-size: 1.125rem; font-weight: 500; color: var(--gold-dark); }

/* ── 39. PROFISSIONAL PROFILE (mini link-page) ───────────────── */
.prof-profile-page { background: #F7F3EF; min-height: 60vh; padding: 3rem 0 5rem; }
.prof-profile-card {
  max-width: 52rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(28,16,8,.09);
  border-radius: 1.25rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 20rem 1fr;
  box-shadow: 0 8px 32px rgba(28,16,8,.07);
}
.prof-profile__photo-col {
  position: relative;
  background: var(--color-bg-dark, #1C1008);
  min-height: 28rem;
}
.prof-profile__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.prof-profile__placeholder {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  background: linear-gradient(160deg, #2a1a0a 0%, #1C1008 100%);
  display: flex; align-items: center; justify-content: center;
}
.prof-profile__placeholder-initial {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 300;
  color: rgba(201,169,110,.3);
}
.prof-profile__body {
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.prof-profile__specialty {
  font-size: .625rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold, #C9A96E);
  margin-bottom: .75rem;
  display: inline-flex; align-items: center;
  border: 1px solid rgba(201,169,110,.35);
  padding: .35rem .75rem; border-radius: 2rem; width: fit-content;
}
.prof-profile__name {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--brown, #1C1008);
  line-height: 1.15;
  margin-bottom: .5rem;
}
.prof-profile__reg { font-size: .8125rem; color: var(--color-muted); letter-spacing: .06em; margin-bottom: 1.25rem; }
.prof-profile__divider { width: 3rem; height: 2px; background: linear-gradient(90deg, var(--gold,#C9A96E), transparent); margin-bottom: 1.5rem; }
.prof-profile__bio { color: var(--color-text-soft); line-height: 1.85; font-size: .9375rem; margin-bottom: 1.75rem; }
.prof-profile__services-heading {
  font-size: .6rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-muted); margin-bottom: .75rem;
}
.prof-profile__services { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; margin-bottom: 1.75rem; }
.prof-profile__service {
  padding: .75rem .875rem;
  border: 1px solid rgba(28,16,8,.1);
  border-radius: .375rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.prof-profile__service:hover { border-color: var(--gold); background: rgba(201,169,110,.04); }
.prof-profile__service-name { font-size: .875rem; color: var(--brown); margin-bottom: .15rem; font-weight: 500; }
.prof-profile__service-desc { font-size: .75rem; color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-profile__cta { margin-top: auto; padding-top: 1.5rem; }

@media (max-width: 768px) {
  .prof-profile-card { grid-template-columns: 1fr; }
  .prof-profile__photo-col { min-height: 22rem; max-height: 26rem; }
  .prof-profile__photo { height: 100%; max-height: 26rem; }
  .prof-profile__body { padding: 1.75rem; }
  .prof-profile__services { grid-template-columns: 1fr; }
  .prof-profile-page { padding: 1.5rem 0 4rem; }
}

/* ── 40. PROF CARD GRID ──────────────────────────────────────── */
.prof-card {
  background: #fff;
  border: 1px solid rgba(28,16,8,.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all var(--t-base);
}
.prof-card:hover { border-color: var(--gold); box-shadow: 0 8px 32px rgba(28,16,8,.1); transform: translateY(-3px); }
.prof-card__photo-wrap { height: 16rem; overflow: hidden; flex-shrink: 0; position: relative; }
.prof-card__photo { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--t-slow); }
.prof-card:hover .prof-card__photo { transform: scale(1.04); }
.prof-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--brown), var(--brown-mid));
  display: flex; align-items: center; justify-content: center;
}
.prof-card__placeholder-initial {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: rgba(201,169,110,.12);
  border: 1px solid rgba(201,169,110,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem; color: var(--gold); font-weight: 300;
}
.prof-card__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.prof-card__name  { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; color: var(--brown); margin-bottom: .5rem; }
.prof-card__reg   { font-size: .75rem; color: var(--color-muted); letter-spacing: .05em; margin-bottom: 1rem; }
.prof-card__bio   { font-size: .875rem; color: var(--color-text-soft); line-height: 1.7; margin-bottom: 1.25rem; flex: 1; }
.prof-card__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: auto; }

/* ── 41. FORM CARD ───────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid rgba(28,16,8,.1);
  padding: 2.5rem;
}
@media (max-width: 640px) { .form-card { padding: 1.5rem; } }

/* Form control claro dentro de seção creme */
.section-light .form-control,
.section-cream .form-control,
.form-card .form-control {
  background: #fff;
  border: 1.5px solid rgba(28,16,8,.15);
  color: var(--brown);
}
.section-light .form-control:focus,
.section-cream .form-control:focus,
.form-card .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.12);
}
.section-light .form-control::placeholder,
.section-cream .form-control::placeholder,
.form-card .form-control::placeholder { color: var(--color-muted); }
.section-light .form-label,
.section-cream .form-label,
.form-card .form-label { color: var(--color-muted); }

/* ── 42. BACK LINK ───────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  letter-spacing: .05em;
  color: rgba(247,243,239,.4);
  text-decoration: none;
  transition: color var(--t-fast);
  margin-bottom: 1.75rem;
}
.back-link:hover { color: var(--gold); }
.back-link--dark {
  color: rgba(28,16,8,.45);
}
.back-link--dark:hover { color: var(--gold-dark); }

/* ── 43. SUCCESS / ERROR STATES ──────────────────────────────── */
.state-success,
.state-error {
  padding: .875rem 1.25rem;
  border-left: 3px solid;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.state-success { background: rgba(74,124,90,.06); border-color: #4A7C5A; color: #3A6A48; }
.state-error   { background: rgba(155,58,58,.06); border-color: #9B3A3A; color: #8B2A2A; }

/* Gold states (for light sections) */
.state-success--gold { background: rgba(201,169,110,.08); border-color: var(--gold); color: var(--gold-dark); }

/* ── 44. PAGE NAV (breadcrumb area) ──────────────────────────── */
.page-nav {
  background: var(--brown);
  border-bottom: 1px solid var(--color-border-dark);
  padding: 1.5rem 0;
}

/* ── 45. CTA BAND ────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════
   46. ADMIN COMPONENTS — Design System
   Estas classes são compartilhadas pelo painel admin e públicas.
   Mantê-las aqui evita duplicação com o <style> inline do layout.
   ══════════════════════════════════════════════════════════════ */

/* Tokens do admin */
:root {
  --admin-border:      rgba(28,16,8,.09);
  --admin-border-soft: rgba(28,16,8,.06);
  --admin-bg-row:      #FAF7F3;
  --admin-radius:      .5rem;
  --admin-t:           200ms ease;
}

/* Card */
.a-card {
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  overflow: hidden;
}
.a-card__header {
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--admin-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  min-width: 0;
}
.a-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
}
.a-card__body { padding: 1.5rem; }

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 1.125rem 1.25rem;
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: block;  /* override: não usar flex — icon/value/label em bloco vertical */
  gap: 0;          /* remove gap do flex anterior */
  align-items: unset;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.stat-card__icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: .375rem;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1rem;
  margin-bottom: .75rem;
  flex-shrink: 0;
}
.stat-card__value {
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.1;
  margin-bottom: .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.stat-card__label {
  font-size: .75rem;
  color: #8A7560;
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
  overflow: visible;
  display: block;
}

/* Table */
.a-table-wrap { overflow-x: auto; }
.a-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.a-table th {
  text-align: left;
  padding: .75rem 1rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A7560;
  background: var(--admin-bg-row);
  border-bottom: 1px solid var(--admin-border-soft);
  white-space: nowrap;
}
.a-table td {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--admin-border-soft);
  color: #3D2510;
  vertical-align: middle;
}
.a-table tr:last-child td { border-bottom: none; }
.a-table tbody tr:hover td { background: var(--admin-bg-row); }

/* Badge variants (admin + public) */
.badge--gold   { background: rgba(201,169,110,.15); color: #A07840; }
.badge--green  { background: rgba(74,124,90,.12);   color: #3A6A4A; }
.badge--red    { background: rgba(155,58,58,.12);   color: #9B3A3A; }
.badge--blue   { background: rgba(74,107,138,.12);  color: #3A5A7A; }
.badge--gray   { background: rgba(28,16,8,.07);     color: #5C4A35; }
.badge--orange { background: rgba(180,100,30,.12);  color: #B46020; }
.badge--yellow { background: rgba(210,160,20,.12);  color: #907000; }

/* Form controls (admin) */
.f-group { margin-bottom: 1.25rem; }
.f-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: #5C4A35;
  margin-bottom: .4rem;
}
.f-label .req { color: var(--gold-dark); margin-left: .2rem; }
.f-control {
  width: 100%;
  padding: .625rem .875rem;
  background: #fff;
  border: 1px solid rgba(28,16,8,.18);
  border-radius: .375rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--brown);
  outline: none;
  transition: border-color var(--admin-t), box-shadow var(--admin-t);
}
.f-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}
.f-control::placeholder { color: #B8A898; }
textarea.f-control { resize: vertical; min-height: 7rem; }
select.f-control { cursor: pointer; }
input[type="file"].f-control { padding: .375rem .875rem; cursor: pointer; }
.f-hint  { display: block; font-size: .8rem; color: #8A7560; margin-top: .35rem; }
.f-error { display: block; font-size: .8rem; color: #9B3A3A; margin-top: .35rem; }

/* Grid utilities */
.g2 { display: grid; grid-template-columns: 1fr 1fr;           gap: 1.25rem; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr;       gap: 1.25rem; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr);    gap: 1.25rem; }
/* Editor layout: coluna principal larga + coluna lateral estreita */
.g-editor { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; }

/* Notification dropdown */
.notif-dropdown {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + .5rem);
  width: 22rem;
  background: #fff;
  border: 1px solid rgba(28,16,8,.1);
  border-radius: .5rem;
  box-shadow: 0 12px 32px rgba(28,16,8,.18);
  z-index: 200;
  overflow: hidden;
}
.notif-dropdown.is-open { display: block; }
.notif-dropdown__head {
  padding: .875rem 1.125rem;
  border-bottom: 1px solid rgba(28,16,8,.08);
  display: flex; align-items: center; justify-content: space-between;
}
.notif-dropdown__title { font-size: .875rem; font-weight: 600; color: var(--brown); }
.notif-dropdown__mark-all {
  font-size: .75rem; color: var(--gold-dark);
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
}
.notif-dropdown__mark-all:hover { text-decoration: underline; }
.notif-list { max-height: 22rem; overflow-y: auto; }
.notif-item {
  display: flex; gap: .875rem;
  padding: .875rem 1.125rem;
  border-bottom: 1px solid rgba(28,16,8,.05);
  cursor: pointer; transition: background var(--admin-t);
}
.notif-item:hover       { background: var(--admin-bg-row); }
.notif-item--unread     { background: rgba(201,169,110,.05); }
.notif-item__icon {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark); font-size: .75rem;
  flex-shrink: 0; margin-top: .1rem;
}
.notif-item__title  { font-size: .8125rem; font-weight: 500; color: var(--brown); margin-bottom: .2rem; }
.notif-item__msg    { font-size: .75rem; color: #8A7560; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.notif-item__time   { font-size: .6875rem; color: #B8A898; margin-top: .3rem; }
.notif-dropdown__foot { padding: .75rem 1.125rem; border-top: 1px solid rgba(28,16,8,.08); text-align: center; }
.notif-dropdown__foot a { font-size: .8125rem; color: var(--gold-dark); text-decoration: none; }
.notif-dropdown__foot a:hover { text-decoration: underline; }

/* .page-header definido na seção 20 (admin) — não redeclarar aqui */

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Admin responsive */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
  .a-table th, .a-table td { padding: .75rem .875rem; }
}
@media (max-width: 1024px) {
  .g-editor { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header { align-items: flex-start; gap: .75rem; }
  .a-card__header { flex-direction: column; align-items: flex-start; }
  .a-table th, .a-table td { padding: .625rem .75rem; font-size: .8125rem; }
}
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   FIM DO DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════ */
.cta-band {
  background: var(--brown);
  border-top: 1px solid var(--color-border-dark);
  padding: 5rem 0;
  text-align: center;
}
.cta-band__heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 300;
  color: #F7F3EF;
  margin-bottom: 1rem;
}
.cta-band__sub { font-size: 1.0625rem; color: rgba(247,243,239,.55); margin-bottom: 2.5rem; line-height: 1.7; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN VISUAL FIXES — truncation, overflow, responsive polish
   ═══════════════════════════════════════════════════════════════ */

/* Currency values: slightly smaller font */
.stat-card__value--currency {
  font-size: 1.25rem;
}

/* Card title: truncate if too long */
.a-card__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

/* stat-grid layout: definido em linha ~1943 */

/* Table columns: prevent action buttons from forcing row expansion */
.a-table td, .a-table th {
  max-width: 18rem;
}
.a-table td:last-child,
.a-table th:last-child {
  max-width: none;
  white-space: nowrap;
}

/* Long text cells (name, email) - add ellipsis when cramped */
.a-table td.cell-truncate {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* g3 grids: collapse intermediate breakpoint */
@media (max-width: 1100px) {
  .g3 { grid-template-columns: 1fr 1fr; }
}

/* Page header: don't clip action buttons on small screens */
.page-header {
  flex-wrap: wrap;
  row-gap: .75rem;
}

/* Flash messages: don't shrink icon */
.flash i { flex-shrink: 0; }

/* Ensure a-card__header title doesn't push action btn out of view */
.a-card__header {
  min-width: 0;
}
.a-card__header .btn {
  flex-shrink: 0;
}

/* Badge: prevent wrapping mid-word */
.badge {
  white-space: nowrap;
}

/* f-control: ensure inputs don't overflow their container on mobile */
.f-control {
  max-width: 100%;
  min-width: 0;
}

/* Topbar title: ellipsis on very small screens */
@media (max-width: 420px) {
  .topbar__title {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


/* ──────────────────────────────────────────────
   Overrides de contraste (WCAG AA)
   Sobrescreve valores hard-coded de #8A7560 em views,
   garantindo contraste mínimo em fundos claros.
   ────────────────────────────────────────────── */
[style*="#8A7560"] { color: #6E5A42 !important; }
[style*="#5C4A35"] { color: #4A3A28 !important; }

/* Acessibilidade: foco visível global para links e botões */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible {
    outline: 3px solid #C9A96E;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ══════════════════════════════════════════════════════════
   DESIGN SYSTEM — Phase 3 additions
   Regra: somente adições. Nenhuma classe existente alterada.
   ══════════════════════════════════════════════════════════ */

/* ── Layout utilities ───────────────────────────────────── */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-end     { display: flex; align-items: center; justify-content: flex-end; }
.items-start  { align-items: flex-start; }
.gap-xs       { gap: .375rem; }
.gap-sm       { gap: .5rem; }
.gap-md       { gap: .75rem; }
.gap-lg       { gap: 1rem; }
.gap-xl       { gap: 1.5rem; }
.grow         { flex: 1 1 0; min-width: 0; }

/* ── Spacing utilities ──────────────────────────────────── */
.mb-0  { margin-bottom: 0; }
.mb-xs { margin-bottom: .5rem; }
.mb-sm { margin-bottom: .75rem; }
.mb-md { margin-bottom: 1.25rem; }
.mb-lg { margin-bottom: 1.75rem; }
.mt-sm { margin-top: .75rem; }
.mt-md { margin-top: 1.25rem; }
.mt-lg { margin-top: 1.75rem; }

/* ── Text utilities ─────────────────────────────────────── */
.text-sm    { font-size: .875rem; }
.text-xs    { font-size: .8125rem; }
.text-muted { color: #8A7560; }
.text-brown { color: var(--brown, #1C1008); }
.text-gold  { color: var(--gold-dark, #A07840); }
.text-green { color: #3A6A4A; }
.text-red   { color: #9B3A3A; }
.fw-500     { font-weight: 500; }
.fw-600     { font-weight: 600; }
.truncate   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Divider ────────────────────────────────────────────── */
.a-divider {
  border: none;
  border-top: 1px solid rgba(28,16,8,.07);
  margin: 1.25rem 0;
}

/* ── Table action cell (replaces inline style="display:flex;gap:.5rem") */
.a-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

/* ── Empty state (table/list with no records) ───────────── */
.a-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 3rem 1.5rem;
  color: #8A7560;
  text-align: center;
}
.a-empty__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(201,169,110,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark, #A07840);
  font-size: 1.25rem;
}
.a-empty__title {
  font-size: .9375rem;
  font-weight: 600;
  color: #5C4A35;
  margin: 0;
}
.a-empty__desc {
  font-size: .875rem;
  color: #8A7560;
  margin: 0;
  max-width: 28rem;
}

/* ── Checkbox / Radio styled ─────────────────────────────── */
.f-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  user-select: none;
}
.f-check input[type="checkbox"],
.f-check input[type="radio"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold, #C9A96E);
  cursor: pointer;
  flex-shrink: 0;
}
.f-check__label {
  font-size: .9375rem;
  color: var(--brown, #1C1008);
  line-height: 1.4;
}
.f-check__hint {
  display: block;
  font-size: .8rem;
  color: #8A7560;
  margin-top: .15rem;
}

/* ── Inline form (search bar pattern) ───────────────────── */
.f-inline {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.f-inline .f-control {
  flex: 1 1 14rem;
  max-width: 24rem;
}

/* ── a-card__body padding reduction on small screens ────── */
@media (max-width: 480px) {
  .a-card__body { padding: 1rem; }
  .a-card__header { padding: .875rem 1rem; }
}

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  max-width: 22rem;
  box-shadow: 0 4px 16px rgba(28,16,8,.18);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transform: translateY(.5rem);
  transition: opacity 220ms ease, transform 220ms ease;
  will-change: opacity, transform;
}
.toast--in  { opacity: 1; transform: translateY(0); }
.toast--out { opacity: 0; transform: translateY(.5rem); }

.toast i { flex-shrink: 0; font-size: 1rem; }

.toast--success {
  background: rgba(74,124,90,.12);
  border: 1px solid rgba(74,124,90,.3);
  color: #2E5A3A;
}
.toast--error {
  background: rgba(155,58,58,.1);
  border: 1px solid rgba(155,58,58,.3);
  color: #7A2828;
}
.toast--info {
  background: rgba(74,107,138,.1);
  border: 1px solid rgba(74,107,138,.3);
  color: #2A4A6A;
}

@media (max-width: 480px) {
  #toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
  .toast { max-width: none; }
}

/* ══════════════════════════════════════════════════════════
   CONFIRM DIALOG
   ══════════════════════════════════════════════════════════ */
#confirm-dialog {
  border: none;
  border-radius: .75rem;
  padding: 0;
  width: min(90vw, 26rem);
  box-shadow: 0 8px 32px rgba(28,16,8,.22);
  background: #fff;
}
#confirm-dialog::backdrop {
  background: rgba(28,16,8,.45);
  backdrop-filter: blur(2px);
}
.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
}
.cd-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(155,58,58,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9B3A3A;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.cd-msg {
  font-size: .9375rem;
  color: #3D2510;
  line-height: 1.5;
  margin: 0;
}
.cd-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  width: 100%;
}
.cd-actions .btn { flex: 1; justify-content: center; }

/* ── Form validation error state ───────────────────────────── */
.f-control--error {
  border-color: #C05050 !important;
  box-shadow: 0 0 0 3px rgba(155,58,58,.12) !important;
}
.f-error {
  display: block;
  font-size: .8rem;
  color: #9B3A3A;
  margin-top: .35rem;
  min-height: 1rem;
}
.char-counter {
  display: block;
  font-size: .75rem;
  color: #8A7560;
  margin-top: .25rem;
  text-align: right;
}

/* ══════════════════════════════════════════════════════════
   PUBLIC PAGES — Components extracted from views
   ══════════════════════════════════════════════════════════ */

/* ── btn-ghost (paginação, links discretos) ───────────────── */
.btn-ghost {
  background: transparent;
  color: var(--color-muted, #6E5A42);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background: rgba(28,16,8,.06);
  color: var(--brown, #1C1008);
}

/* ── Paginação ────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28,16,8,.08);
}

/* ── page-hero (hero compacto de páginas internas) ────────── */
.page-hero {
  background: var(--brown, #1C1008);
  border-bottom: 1px solid rgba(201,169,110,.2);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.page-hero__eyebrow {
  display: inline-block;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold, #C9A96E);
  margin-bottom: .875rem;
}
.page-hero__eyebrow::before { content: '—  '; }
.page-hero__eyebrow::after  { content: '  —'; }
.page-hero__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 300;
  color: #F7F3EF;
  letter-spacing: .03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero__sub {
  font-size: .9375rem;
  color: rgba(247,243,239,.55);
  max-width: 38rem;
  margin-inline: auto;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .page-hero { padding: 3rem 0 2.5rem; }
}

/* ── section-light ────────────────────────────────────────── */
.section-light { background: #F7F3EF; }

/* ── Serviços: abas e controles (services.php) ────────────── */
.svc-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .375rem;
  margin: 0 0 2rem;
  border-bottom: 2px solid #E5D5BC;
  padding: 0;
}
.svc-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  font-size: .9375rem;
  font-weight: 600;
  color: #5C4A35;
  background: transparent;
  text-decoration: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--t-fast, 150ms ease), background var(--t-fast, 150ms ease), border-color var(--t-fast, 150ms ease);
}
.svc-tab:hover,
.svc-tab:focus-visible { color: var(--brown, #1C1008); background: rgba(201,169,110,.08); outline: none; }
.svc-tab:focus-visible { box-shadow: 0 0 0 3px rgba(201,169,110,.35); border-radius: .25rem .25rem 0 0; }
.svc-tab[aria-current="page"] { color: #A07840; border-bottom-color: var(--gold, #C9A96E); }

.svc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.svc-controls__group { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.svc-controls__label {
  font-size: .8125rem;
  color: #5C4A35;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: 2rem;
  border: 1px solid var(--gold, #C9A96E);
  color: #5C4A35;
  background: #fff;
  text-decoration: none;
  transition: all var(--t-fast, 150ms ease);
  cursor: pointer;
}
.svc-btn:hover,
.svc-btn:focus-visible { color: var(--brown, #1C1008); border-color: #A07840; background: #FAF4E9; outline: none; }
.svc-btn:focus-visible { box-shadow: 0 0 0 3px rgba(201,169,110,.35); }
.svc-btn[aria-pressed="true"] { background: #A07840; color: #fff; border-color: #A07840; }

.svc-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .5rem;
  border: 1px solid var(--gold, #C9A96E);
  color: #5C4A35;
  background: #fff;
  text-decoration: none;
  transition: all var(--t-fast, 150ms ease);
}
.svc-iconbtn:hover,
.svc-iconbtn:focus-visible { color: var(--brown, #1C1008); border-color: #A07840; background: #FAF4E9; outline: none; }
.svc-iconbtn:focus-visible { box-shadow: 0 0 0 3px rgba(201,169,110,.35); }
.svc-iconbtn[aria-pressed="true"] { background: #A07840; color: #fff; border-color: #A07840; }

/* ── Serviços: modo lista (services.php) ──────────────────── */
.svc-list-item {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border-radius: .75rem;
  border: 1px solid rgba(201,169,110,.12);
  padding: 1rem;
  transition: box-shadow var(--t-fast, 150ms ease), border-color var(--t-fast, 150ms ease);
}
.svc-list-item:hover {
  border-color: rgba(201,169,110,.35);
  box-shadow: 0 4px 16px rgba(201,169,110,.1);
}
.svc-list-item__img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: .5rem;
  flex-shrink: 0;
}
.svc-list-item__body { flex: 1; min-width: 0; }
.svc-list-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown, #1C1008);
  margin-bottom: .25rem;
}
.svc-list-item__desc {
  font-size: .875rem;
  color: #8A7560;
  margin-bottom: .625rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-list-item__link {
  font-size: .8125rem;
  color: var(--gold-dark, #A07840);
  font-weight: 600;
  text-decoration: none;
}
.svc-list-item__link:hover { text-decoration: underline; }
.svc-list-item__meta {
  text-align: right;
  flex-shrink: 0;
  font-size: .8125rem;
  color: #8A7560;
}
.svc-list-item__duration { font-weight: 500; color: var(--brown, #1C1008); }
@media (max-width: 480px) {
  .svc-list-item { flex-wrap: wrap; }
  .svc-list-item__img { width: 100%; height: 10rem; border-radius: .5rem; }
  .svc-list-item__meta { width: 100%; text-align: left; }
}

/* ── Home: aba público-alvo (home.php) ────────────────────── */
.home-aud-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 auto 2rem;
  padding: .375rem;
  background: rgba(247,243,239,.08);
  border: 1px solid rgba(201,169,110,.35);
  border-radius: 2.5rem;
  max-width: 22rem;
}
.home-aud-tab {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  font-size: .9375rem;
  font-weight: 600;
  color: #F7F3EF;
  background: transparent;
  border: none;
  border-radius: 2rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast, 150ms ease);
}
.home-aud-tab:hover { background: rgba(201,169,110,.18); color: #fff; }
.home-aud-tab:focus-visible { outline: 3px solid #C9A96E; outline-offset: 2px; }
.home-aud-tab[aria-pressed="true"] { background: var(--gold, #C9A96E); color: var(--brown, #1C1008); }
[data-aud-panel][hidden] { display: none !important; }

/* ── Agendamento (appointment.php) ────────────────────────── */
.section-hero-mini {
  background: var(--brown, #1C1008);
  border-bottom: 1px solid rgba(201,169,110,.2);
}
.appt-card {
  background: #fff;
  border: 1px solid rgba(28,16,8,.1);
  border-radius: .75rem;
  padding: 2.5rem 3rem;
  box-shadow: 0 2px 24px rgba(28,16,8,.06);
}
.appt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.appt-field { display: flex; flex-direction: column; gap: .4rem; }
.appt-label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5C4A35;
}
.appt-req { color: #A07840; margin-left: .15rem; }
.appt-input {
  width: 100%;
  padding: .75rem 1rem;
  background: #FAFAF8;
  border: 1.5px solid #D6C9B2;
  border-radius: .5rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .9375rem;
  color: var(--brown, #1C1008);
  outline: none;
  transition: border-color var(--t-fast, 150ms ease), box-shadow var(--t-fast, 150ms ease), background var(--t-fast, 150ms ease);
  appearance: auto;
}
.appt-input::placeholder { color: #B8A898; }
.appt-input:focus { background: #fff; border-color: var(--gold, #C9A96E); box-shadow: 0 0 0 3px rgba(201,169,110,.15); }
.appt-input:hover:not(:focus) { border-color: #B8A898; }
select.appt-input { cursor: pointer; }
textarea.appt-input { resize: vertical; }
.appt-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  width: 100%;
  padding: .9375rem 2rem;
  background: var(--gold, #C9A96E);
  color: var(--brown, #1C1008);
  border: none;
  border-radius: .5rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast, 150ms ease), box-shadow var(--t-fast, 150ms ease), transform var(--t-fast, 150ms ease);
}
.appt-submit:hover { background: #A07840; color: #fff; box-shadow: 0 4px 16px rgba(201,169,110,.35); transform: translateY(-1px); }
.appt-submit:active { transform: translateY(0); }
.appt-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.appt-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.appt-info-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--brown, #1C1008);
  border: 1px solid rgba(201,169,110,.2);
  border-radius: .75rem;
}
.appt-info-icon { display: block; color: var(--gold, #C9A96E); font-size: 1.5rem; margin-bottom: .75rem; }
.appt-info-title { color: var(--gold, #C9A96E); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: .25rem; }
.appt-info-desc { color: rgba(247,243,239,.55); font-size: .8125rem; line-height: 1.5; }

@media (max-width: 640px) {
  .appt-card { padding: 1.5rem 1.25rem; }
  .appt-grid { grid-template-columns: 1fr; gap: 1rem; }
  .appt-info-grid { grid-template-columns: 1fr; }
}

/* ── Profissionais destaque e equipe (professionals.php) ───── */
.prof-hero {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: start;
  background: var(--brown, #1C1008);
  border: 1px solid rgba(201,169,110,.15);
  border-radius: 1.25rem;
  padding: 3rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.prof-hero__photo-wrap { position: relative; }
.prof-hero__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: .875rem;
  display: block;
  border: 2px solid rgba(201,169,110,.2);
}
.prof-hero__photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: rgba(201,169,110,.08);
  border-radius: .875rem;
  border: 2px solid rgba(201,169,110,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 6rem;
  font-weight: 300;
  color: rgba(201,169,110,.3);
}
.prof-hero__badge {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--gold, #C9A96E);
  color: var(--brown, #1C1008);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.prof-hero__specialty {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold, #C9A96E);
  margin-bottom: .75rem;
}
.prof-hero__name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  color: #F7F3EF;
  line-height: 1.1;
  margin-bottom: .4rem;
}
.prof-hero__reg { font-size: .8125rem; color: rgba(201,169,110,.6); letter-spacing: .08em; }
.prof-hero__divider { width: 3rem; height: 2px; background: linear-gradient(90deg, var(--gold, #C9A96E), transparent); margin: 1.5rem 0; }
.prof-hero__bio { font-size: .9375rem; color: rgba(247,243,239,.6); line-height: 1.85; margin-bottom: 1.75rem; }
.prof-hero__creds {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(201,169,110,.05);
  border: 1px solid rgba(201,169,110,.1);
  border-radius: .625rem;
}
.prof-hero__cred { display: flex; align-items: flex-start; gap: .75rem; font-size: .8125rem; color: rgba(247,243,239,.55); line-height: 1.5; }
.prof-hero__cred i { color: var(--gold, #C9A96E); font-size: .75rem; margin-top: .15rem; flex-shrink: 0; width: 1rem; text-align: center; }
.prof-hero__actions { display: flex; gap: .875rem; flex-wrap: wrap; }

.prof-team-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 0 2.5rem;
}
.prof-team-divider::before,
.prof-team-divider::after { content: ''; flex: 1; height: 1px; background: rgba(28,16,8,.12); }
.prof-team-divider span {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(28,16,8,.35);
  white-space: nowrap;
}

.prof-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
.prof-team-card {
  background: #fff;
  border: 1px solid rgba(28,16,8,.08);
  border-radius: .875rem;
  overflow: hidden;
  transition: transform var(--t-base, 280ms ease), box-shadow var(--t-base, 280ms ease);
  display: flex;
  flex-direction: column;
}
.prof-team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(28,16,8,.1); }
.prof-team-card__photo-wrap { width: 100%; overflow: hidden; background: #1C1008; }
.prof-team-card__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--t-slow, 480ms ease);
}
.prof-team-card:hover .prof-team-card__photo { transform: scale(1.04); }
.prof-team-card__placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--brown, #1C1008);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 4rem;
  font-weight: 300;
  color: rgba(201,169,110,.35);
}
.prof-team-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.prof-team-card__specialty {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A07840;
  margin-bottom: .5rem;
}
.prof-team-card__name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--brown, #1C1008);
  margin-bottom: .2rem;
  line-height: 1.2;
}
.prof-team-card__reg { font-size: .75rem; color: #A07840; letter-spacing: .06em; margin-bottom: .75rem; }
.prof-team-card__bio { font-size: .8125rem; color: rgba(28,16,8,.55); line-height: 1.7; margin-bottom: 1.25rem; flex: 1; }
.prof-team-card__actions { display: flex; gap: .625rem; margin-top: auto; padding-top: 1rem; }

@media (max-width: 900px) {
  .prof-hero { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
  .prof-hero__photo,
  .prof-hero__photo-placeholder { aspect-ratio: 1/1; max-height: 360px; }
}
@media (max-width: 480px) {
  .prof-team-grid { grid-template-columns: 1fr; }
}

/* ── Home: resultados (tabs + grid before/after) ────────────── */
.res-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.res-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.125rem;
  border: 1px solid rgba(201,169,110,.25);
  border-radius: 2rem;
  background: transparent;
  color: rgba(247,243,239,.5);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--t-fast, 150ms ease), color var(--t-fast, 150ms ease), border-color var(--t-fast, 150ms ease);
  white-space: nowrap;
}
.res-tab:hover { border-color: rgba(201,169,110,.5); color: rgba(247,243,239,.85); }
.res-tab--active { background: rgba(201,169,110,.15); border-color: var(--gold, #C9A96E); color: var(--gold, #C9A96E); }
.res-panel { display: none; }
.res-panel--active { display: block; }
.res-panel__desc {
  text-align: center;
  color: rgba(247,243,239,.55);
  font-size: .9375rem;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-inline: auto;
}
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 2rem;
}
.res-pair-placeholder {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .375rem;
  border-radius: .625rem;
  overflow: hidden;
  border: 1px dashed rgba(201,169,110,.25);
}
.res-pair-placeholder__half {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  aspect-ratio: 3/4;
  background: rgba(28,16,8,.4);
  color: rgba(201,169,110,.3);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.res-pair-placeholder__half i { font-size: 1.75rem; opacity: .4; }
.res-pair-placeholder__half--before { border-right: 1px dashed rgba(201,169,110,.15); }
.res-pair__caption {
  grid-column: 1/-1;
  text-align: center;
  padding: .5rem;
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(247,243,239,.35);
  background: rgba(28,16,8,.6);
}
.res-pair__badge {
  position: absolute;
  top: .625rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(201,169,110,.15);
  border: 1px solid rgba(201,169,110,.3);
  color: var(--gold, #C9A96E);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .75rem;
  border-radius: 2rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .res-tabs { gap: .375rem; }
  .res-tab { font-size: .75rem; padding: .4rem .875rem; }
  .res-tab span { display: none; }
  .res-tab i { font-size: 1rem; }
  .res-grid { grid-template-columns: 1fr; }
}

/* ── Home: ebook section responsive ─────────────────────────── */
@media (max-width: 560px) {
  #ebook .container > div { grid-template-columns: 1fr !important; justify-items: center; text-align: center; }
  #ebook .container > div > div:last-child > div { justify-content: center; }
}

/* ── AI Widget: botões de ação do header ────────────────────── */
.ai-widget__action-btn {
  background: rgba(201,169,110,.1);
  border: 1px solid rgba(201,169,110,.2);
  border-radius: .375rem;
  color: var(--gold, #C9A96E);
  cursor: pointer;
  font-size: .75rem;
  padding: .3rem .5rem;
  transition: background var(--t-fast, 150ms ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.ai-widget__action-btn:hover { background: rgba(201,169,110,.2); }

/* ── Footer: hover link P8W (sem inline event) ─────────────── */
.footer-dev-link {
  color: rgba(201,169,110,.55);
  text-decoration: none;
  transition: color var(--t-fast, 150ms ease);
}
.footer-dev-link:hover { color: var(--gold, #C9A96E); }

/* ── Social links (profissionais — gerados via PHP helper) ─── */
.prof-socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 1rem 0 0;
}
.prof-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,.45);
  color: var(--gold, #C9A96E);
  background: rgba(201,169,110,.08);
  text-decoration: none;
  transition: background var(--t-fast, 150ms ease), color var(--t-fast, 150ms ease);
}
.prof-social-link:hover { background: var(--gold, #C9A96E); color: var(--brown, #1C1008); }
.prof-social-link--sm { width: 2rem; height: 2rem; }

/* ── FAQ / Knowledge Base (faq.php) ─────────────────────────── */
.kb-hero {
  background: var(--brown, #1C1008);
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid rgba(201,169,110,.15);
}
.kb-search-wrap { position: relative; max-width: 34rem; margin: 0 auto; }
.kb-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: rgba(201,169,110,.5); font-size: .9375rem; pointer-events: none; }
.kb-search {
  width: 100%;
  padding: .875rem 2.75rem .875rem 2.75rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,169,110,.25);
  border-radius: 2rem;
  color: #F7F3EF;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .9375rem;
  outline: none;
  transition: border-color var(--t-fast, 150ms ease), background var(--t-fast, 150ms ease), box-shadow var(--t-fast, 150ms ease);
}
.kb-search::placeholder { color: rgba(247,243,239,.3); }
.kb-search:focus { border-color: var(--gold, #C9A96E); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(201,169,110,.12); }
.kb-search-clear { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(247,243,239,.4); cursor: pointer; padding: .25rem; font-size: .875rem; transition: color var(--t-fast, 150ms ease); }
.kb-search-clear:hover { color: var(--gold, #C9A96E); }
.kb-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.kb-nav { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: .25rem; }
.kb-nav__title { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(201,169,110,.5); margin-bottom: .5rem; padding: 0 .75rem; }
.kb-nav__item {
  display: flex;
  align-items: center;
  gap: .625rem;
  width: 100%;
  padding: .5rem .75rem;
  border-radius: .5rem;
  background: transparent;
  border: none;
  color: rgba(247,243,239,.5);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast, 150ms ease), color var(--t-fast, 150ms ease);
  text-align: left;
}
.kb-nav__item:hover { background: rgba(201,169,110,.08); color: rgba(247,243,239,.85); }
.kb-nav__item--active { background: rgba(201,169,110,.15); color: var(--gold, #C9A96E); }
.kb-nav__item i { width: 1rem; text-align: center; font-size: .875rem; flex-shrink: 0; }
.kb-nav__count { margin-left: auto; font-size: .6875rem; font-style: normal; background: rgba(201,169,110,.12); color: rgba(201,169,110,.6); border-radius: 1rem; padding: .1rem .45rem; font-weight: 600; }
.kb-nav__divider { height: 1px; background: rgba(201,169,110,.1); margin: .5rem 0; }
.kb-nav__cta { margin-top: 1.5rem; padding: 1.25rem 1rem; border: 1px solid rgba(201,169,110,.15); border-radius: .625rem; text-align: center; background: rgba(201,169,110,.04); }
.kb-panel { display: none; }
.kb-panel--active { display: block; }
.kb-panel__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(201,169,110,.12); }
.kb-panel__icon { width: 3rem; height: 3rem; border-radius: .625rem; border: 1px solid; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.kb-panel__title { font-family: var(--font-display, 'Cormorant Garamond', serif); font-size: 1.5rem; font-weight: 400; color: #F7F3EF; margin: 0; }
.kb-panel__count { font-size: .75rem; color: rgba(247,243,239,.35); margin: 0; letter-spacing: .04em; }
.kb-accordion { display: flex; flex-direction: column; gap: .5rem; }
.kb-item { border: 1px solid rgba(201,169,110,.12); border-radius: .625rem; overflow: hidden; transition: border-color var(--t-fast, 150ms ease); }
.kb-item:hover { border-color: rgba(201,169,110,.25); }
.kb-item.kb-item--open { border-color: rgba(201,169,110,.35); }
.kb-item__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.03);
  border: none;
  color: #F7F3EF;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  text-align: left;
  transition: background var(--t-fast, 150ms ease);
}
.kb-item__q:hover { background: rgba(201,169,110,.07); }
.kb-item--open .kb-item__q { background: rgba(201,169,110,.08); color: var(--gold, #C9A96E); }
.kb-item__num { flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(201,169,110,.12); color: rgba(201,169,110,.7); font-size: .6875rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: .1rem; }
.kb-item__text { flex: 1; }
.kb-item__chevron { flex-shrink: 0; color: rgba(201,169,110,.5); font-size: .75rem; margin-top: .35rem; transition: transform var(--t-base, 280ms ease); }
.kb-item--open .kb-item__chevron { transform: rotate(180deg); color: var(--gold, #C9A96E); }
.kb-item__a { padding: 1rem 1.25rem 1.25rem calc(1.25rem + 1.5rem + .875rem); color: rgba(247,243,239,.6); font-size: .9rem; line-height: 1.75; border-top: 1px solid rgba(201,169,110,.08); background: rgba(201,169,110,.04); }
mark { background: rgba(201,169,110,.3); color: #F7F3EF; border-radius: .125rem; padding: 0 .1rem; }
@media (max-width: 768px) {
  .kb-layout { grid-template-columns: 1fr; }
  .kb-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: .375rem; }
  .kb-nav__title,
  .kb-nav__cta,
  .kb-nav__divider,
  .kb-nav__count { display: none; }
  .kb-nav__item { flex: 0 0 auto; padding: .375rem .75rem; border-radius: 2rem; border: 1px solid rgba(201,169,110,.2); font-size: .75rem; }
  .kb-nav__item--active { border-color: var(--gold, #C9A96E); }
  .kb-item__a { padding-left: 1.25rem; }
}

/* ── Service: sidebar responsiva (service.php) ───────────────── */
@media (max-width: 900px) {
  .service-sidebar-grid { grid-template-columns: 1fr !important; }
  .sidebar-sticky { position: static !important; }
}

/* ── Patient login: voltar ao site ─────────────────────────── */
.back-to-site-link {
  font-size: .8125rem;
  color: rgba(247,243,239,.4);
  text-decoration: none;
  transition: color var(--t-fast, 150ms ease);
}
.back-to-site-link:hover { color: var(--color-primary, #C9A96E); }

/* ── Ebook checkout: link de compra card ───────────────────── */
.ebook-buy-link {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1.125rem;
  background: #fff;
  border: 1px solid rgba(28,16,8,.09);
  border-radius: .625rem;
  text-decoration: none;
  color: var(--brown, #1C1008);
  font-size: .875rem;
  transition: border-color var(--t-fast, 150ms ease), box-shadow var(--t-fast, 150ms ease);
}
.ebook-buy-link:hover {
  border-color: rgba(201,169,110,.5);
  box-shadow: 0 4px 16px rgba(201,169,110,.12);
}
@media (max-width: 680px) {
  .ebook-layout { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

/* ── Contato: grid responsivo (contact.php) ───────────────── */
@media (max-width: 768px) {
  .contact-grid-asymmetric { grid-template-columns: 1fr !important; }
}

/* ── Skip link ──────────────────────────────────────────────── */
/* skip-link: ver definição canônica abaixo (seção acessibilidade) */

/* ═══════════════════════════════════════════════════════════════
   DS — DESIGN SYSTEM COMPONENTS (v5)
   Componentes novos com prefixo .ds- para evitar conflitos.
   Use estes em vez de criar variantes ad-hoc.
   ═══════════════════════════════════════════════════════════════ */

/* ── DS Empty State ──────────────────────────────────────────
   Mensagem padronizada quando uma lista/tabela está vazia.

   <div class="ds-empty">
     <div class="ds-empty__icon"><i class="fas fa-inbox"></i></div>
     <h3 class="ds-empty__title">Nenhum registro</h3>
     <p class="ds-empty__msg">Cadastre o primeiro item para começar.</p>
     <a href="..." class="btn btn-primary ds-empty__cta">
       <i class="fas fa-plus"></i> Novo registro
     </a>
   </div>
─────────────────────────────────────────────────────────────── */
.ds-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--color-muted);
}
.ds-empty--inset { padding: 2.5rem 1.5rem; }
.ds-empty--compact { padding: 1.75rem 1rem; }
.ds-empty__icon {
  width: 4rem; height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--alpha-gold-08);
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.ds-empty--compact .ds-empty__icon {
  width: 2.5rem; height: 2.5rem;
  font-size: 1rem;
  margin-bottom: .5rem;
}
.ds-empty__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: .375rem;
  letter-spacing: -0.005em;
}
.ds-empty__msg {
  font-size: .875rem;
  color: var(--color-muted);
  max-width: 28rem;
  line-height: 1.5;
  margin: 0 auto;
}
.ds-empty__cta { margin-top: 1.25rem; }

/* Variant on dark surface (paciente / public) */
.ds-empty--on-dark { color: var(--alpha-cream-55); }
.ds-empty--on-dark .ds-empty__icon {
  background: var(--alpha-gold-12);
  color: var(--gold);
}
.ds-empty--on-dark .ds-empty__title { color: var(--cream); }
.ds-empty--on-dark .ds-empty__msg   { color: var(--alpha-cream-55); }


/* ── DS KPI Card ─────────────────────────────────────────────
   Card de métrica com ícone, valor grande e label.

   <div class="ds-kpi ds-kpi--primary">
     <div class="ds-kpi__icon"><i class="fas fa-dollar-sign"></i></div>
     <div class="ds-kpi__body">
       <div class="ds-kpi__value">R$ 12.430,00</div>
       <div class="ds-kpi__label">Receita no Período</div>
       <div class="ds-kpi__trend ds-kpi__trend--up">
         <i class="fas fa-arrow-up"></i> 12,4%
       </div>
     </div>
   </div>
─────────────────────────────────────────────────────────────── */
.ds-kpi {
  background: #fff;
  border: 1px solid var(--admin-border, var(--alpha-brown-08));
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.375rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.ds-kpi:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.ds-kpi::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gold);
  opacity: .85;
}
.ds-kpi--success::before { background: var(--color-success); }
.ds-kpi--info::before    { background: var(--color-info); }
.ds-kpi--danger::before  { background: var(--color-danger); }
.ds-kpi--warning::before { background: var(--gold-bright); }

.ds-kpi__icon {
  width: 2.75rem; height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--alpha-gold-12);
  color: var(--gold-dark);
  font-size: 1.125rem;
  flex-shrink: 0;
}
.ds-kpi--success .ds-kpi__icon { background: rgba(74,124,90,.12); color: var(--color-success); }
.ds-kpi--info    .ds-kpi__icon { background: rgba(74,107,138,.12); color: var(--color-info); }
.ds-kpi--danger  .ds-kpi__icon { background: rgba(155,58,58,.12);  color: var(--color-danger); }
.ds-kpi--warning .ds-kpi__icon { background: rgba(212,175,55,.14); color: #997300; }

.ds-kpi__body {
  flex: 1;
  min-width: 0;
}
.ds-kpi__value {
  font-family: var(--font-body);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: .25rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ds-kpi__label {
  font-size: .75rem;
  color: var(--color-muted);
  letter-spacing: .03em;
  line-height: 1.35;
}
.ds-kpi__trend {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .5rem;
  padding: .125rem .5rem;
  font-size: .6875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--alpha-brown-06);
  color: var(--color-muted);
}
.ds-kpi__trend--up   { background: rgba(74,124,90,.12);  color: #3A6A4A; }
.ds-kpi__trend--down { background: rgba(155,58,58,.12);  color: var(--color-danger); }
.ds-kpi__trend i { font-size: .625rem; }

/* Grid de KPIs — auto responsivo */
.ds-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
}
@media (max-width: 480px) {
  .ds-kpi { padding: 1rem; gap: .75rem; }
  .ds-kpi__icon { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
  .ds-kpi__value { font-size: 1.375rem; }
}


/* ── DS Filter Bar ───────────────────────────────────────────
   Barra de filtros com chips + datepickers + botão filtrar.

   <div class="ds-filterbar">
     <div class="ds-filterbar__chips">
       <button class="ds-chip ds-chip--active">Todos</button>
       <button class="ds-chip">Pendente</button>
       ...
     </div>
     <div class="ds-filterbar__divider"></div>
     <div class="ds-filterbar__fields">
       <input type="date" class="f-control f-control--inline">
       <input type="date" class="f-control f-control--inline">
       <button class="btn btn-primary btn-sm">Filtrar</button>
     </div>
   </div>
─────────────────────────────────────────────────────────────── */
.ds-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--admin-border, var(--alpha-brown-08));
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
}
.ds-filterbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  align-items: center;
}
.ds-filterbar__divider {
  width: 1px;
  height: 1.75rem;
  background: var(--alpha-brown-10);
  margin: 0 .25rem;
}
.ds-filterbar__fields {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .ds-filterbar { flex-direction: column; align-items: stretch; }
  .ds-filterbar__divider { display: none; }
  .ds-filterbar__fields { justify-content: flex-start; }
}

/* Chip filter */
.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .4rem .85rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--color-muted);
  background: transparent;
  border: 1px solid var(--alpha-brown-08);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.ds-chip:hover {
  background: var(--alpha-gold-08);
  color: var(--brown);
  border-color: var(--alpha-gold-25);
}
.ds-chip--active {
  background: var(--gold);
  color: var(--brown);
  border-color: var(--gold);
  font-weight: 600;
}
.ds-chip--active:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.ds-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .375rem;
  font-size: .625rem;
  font-weight: 700;
  background: var(--alpha-brown-10);
  color: inherit;
  border-radius: var(--radius-full);
}
.ds-chip--active .ds-chip__count { background: rgba(28,16,8,.18); }

/* Inline form control (within filterbar) */
.f-control--inline {
  width: auto;
  padding: .45rem .75rem;
  font-size: .8125rem;
}

/* Separador textual ("até") dentro da filterbar */
.ds-filterbar__sep {
  font-size: .8125rem;
  color: var(--color-muted);
  padding: 0 .15rem;
}


/* ── DS Chart Card ───────────────────────────────────────────
   Wrapper para gráficos com header consistente.

   <div class="ds-chart">
     <div class="ds-chart__head">
       <h3 class="ds-chart__title">Receita Mensal</h3>
       <div class="ds-chart__actions">
         <button class="btn btn-outline btn-sm"><i class="fas fa-download"></i> CSV</button>
       </div>
     </div>
     <div class="ds-chart__body">
       <canvas id="chart-revenue"></canvas>
     </div>
   </div>
─────────────────────────────────────────────────────────────── */
.ds-chart {
  background: #fff;
  border: 1px solid var(--admin-border, var(--alpha-brown-08));
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ds-chart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--admin-border-soft, var(--alpha-brown-06));
  flex-wrap: wrap;
  min-height: 3.5rem;
}
.ds-chart__title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--brown);
  margin: 0;
}
.ds-chart__sub {
  font-size: .75rem;
  color: var(--color-muted);
  margin-top: .15rem;
}
.ds-chart__actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.ds-chart__body {
  padding: 1.25rem;
  position: relative;
  min-height: 12rem;
}
.ds-chart__body--flush { padding: 0; }

/* Empty state inside chart body */
.ds-chart__body .ds-empty { padding: 2rem 1rem; }


/* ── DS Section Header ───────────────────────────────────────
   Título de seção com subtítulo (usado dentro de .a-card__body
   ou em qualquer agrupamento dentro de páginas admin).

   <div class="ds-section-head">
     <div>
       <h2 class="ds-section-head__title">Configurações</h2>
       <p class="ds-section-head__sub">Ajustes gerais da clínica</p>
     </div>
     <div class="ds-section-head__actions">...</div>
   </div>
─────────────────────────────────────────────────────────────── */
.ds-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--alpha-brown-06);
}
.ds-section-head__title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: -0.005em;
}
.ds-section-head__sub {
  font-size: .8125rem;
  color: var(--color-muted);
  margin-top: .15rem;
}
.ds-section-head__actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}


/* ── DS Stack (vertical rhythm helper) ───────────────────────
   Aplica gap consistente entre filhos diretos.
   Use em containers que agrupam cards/seções.
─────────────────────────────────────────────────────────────── */
.ds-stack       > * + * { margin-top: 1rem; }
.ds-stack-sm    > * + * { margin-top: .5rem; }
.ds-stack-lg    > * + * { margin-top: 1.5rem; }
.ds-stack-xl    > * + * { margin-top: 2rem; }


/* ── DS Cluster (horizontal grouping) ────────────────────────
   Itens lado a lado com gap consistente, com wrap.
─────────────────────────────────────────────────────────────── */
.ds-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.ds-cluster--lg { gap: 1rem; }
.ds-cluster--between { justify-content: space-between; }
.ds-cluster--end { justify-content: flex-end; }


/* ═══════════════════════════════════════════════════════════════
   PÁGINA: ADMIN REPORTS
   Componentes específicos da página de relatórios.
   ═══════════════════════════════════════════════════════════════ */

/* Grid 2:1 (chart principal + side card) */
.rpt-grid-2-1 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .rpt-grid-2-1 { grid-template-columns: 1fr; }
}

/* Lista vertical com itens label+valor (receita por serviço, profissionais) */
.rpt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rpt-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--alpha-brown-06);
  min-width: 0;
}
.rpt-list__item:last-child { border-bottom: none; }
.rpt-list__main {
  min-width: 0;
  flex: 1;
}
.rpt-list__title {
  font-size: .875rem;
  font-weight: 500;
  color: var(--brown);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .15rem;
}
.rpt-list__title--single { margin-bottom: 0; }
.rpt-list__sub {
  font-size: .75rem;
  color: var(--color-muted);
}
.rpt-list__value {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--brown);
  white-space: nowrap;
}
.rpt-list__value--success { color: #16A34A; }
.rpt-list__meta {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-shrink: 0;
}
.rpt-list__pill {
  font-size: .75rem;
  font-weight: 500;
  padding: .15rem .5rem;
  border-radius: var(--radius-full);
  background: var(--alpha-brown-06);
  color: var(--color-muted);
  white-space: nowrap;
}
.rpt-list__pill--success {
  background: rgba(74,124,90,.12);
  color: #3A6A4A;
}

/* Lista de progress bars (status, leads) */
.rpt-progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.rpt-progress {
  display: block;
}
.rpt-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .35rem;
}
.rpt-progress__label {
  font-size: .8125rem;
  color: var(--brown-warm);
  font-weight: 500;
}
.rpt-progress__value {
  font-size: .8125rem;
  color: var(--color-muted);
  white-space: nowrap;
}
.rpt-progress__track {
  height: .375rem;
  background: var(--alpha-brown-06);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.rpt-progress__bar {
  height: 100%;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: width .4s ease;
}

/* Tabela específica de relatório: alinhamento e cores numéricas */
.rpt-th-num   { text-align: right; }
.rpt-th-share { width: 12rem; }
.rpt-td-name  { font-weight: 500; color: var(--brown); }
.rpt-td-num   { text-align: right; white-space: nowrap; }
.rpt-td-num--success { color: #16A34A; font-weight: 500; }

/* Share bar (participação % na tabela) */
.rpt-share {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.rpt-share__track {
  flex: 1;
  height: .375rem;
  background: var(--alpha-brown-06);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.rpt-share__bar {
  height: 100%;
  background: var(--gold-dark);
  border-radius: var(--radius-full);
}
.rpt-share__pct {
  font-size: .75rem;
  color: var(--color-muted);
  white-space: nowrap;
  min-width: 2.5rem;
  text-align: right;
}

/* Funil CRM stats (3 colunas no topo) */
.rpt-funnel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--alpha-brown-06);
}
.rpt-funnel-stat { text-align: center; min-width: 0; }
.rpt-funnel-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.1;
  margin-bottom: .25rem;
}
.rpt-funnel-stat__value--success { color: #16A34A; }
.rpt-funnel-stat__value--gold    { color: var(--gold-dark); }
.rpt-funnel-stat__label {
  font-size: .6875rem;
  color: var(--color-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Bloco de "taxa de conclusão" com número grande */
.rpt-completion {
  text-align: center;
  padding: 2rem 1.5rem !important;
}
.rpt-completion__value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--brown);
  line-height: 1;
  margin-bottom: .5rem;
}
.rpt-completion__label {
  color: var(--color-muted);
  font-size: .875rem;
}


/* ═══════════════════════════════════════════════════════════════
   UTILITIES — TABLE CELLS
   Padroniza apresentação de células em todas as tabelas admin.
   Substitui os inline styles repetidos.
   ═══════════════════════════════════════════════════════════════ */

/* Nome principal (linha 1 de uma célula composta) */
.cell-name {
  display: block;
  font-weight: 500;
  color: var(--brown);
}

/* Texto secundário discreto (email abaixo do nome, hora abaixo da data) */
.cell-sub {
  display: block;
  font-size: .8125rem;
  color: var(--color-muted);
  margin-top: .15rem;
}

/* Data ou número proeminente em célula */
.cell-date {
  display: block;
  font-weight: 500;
  color: var(--brown);
}

/* Texto secundário em linha (badges, status text) */
.cell-muted {
  font-size: .8125rem;
  color: var(--brown-warm);
}

/* Não quebrar (datas, valores, telefones) */
.cell-nowrap { white-space: nowrap; }

/* Alinhamento numérico */
.cell-num    { text-align: right; white-space: nowrap; }
.cell-num--success { color: #16A34A; font-weight: 500; }
.cell-num--danger  { color: var(--color-danger); font-weight: 500; }

/* Link em célula (sem decoração, herda cor do brown) */
.cell-link {
  color: var(--brown);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast);
}
.cell-link:hover { color: var(--gold-dark); }

/* Célula que hospeda um empty state em tabela */
.a-table__empty-cell {
  text-align: center !important;
  padding: 0 !important;
  background: var(--cream);
}
.a-table__empty-cell .ds-empty {
  background: transparent;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN BODY — overrides contextuais
   Sobrepõe os componentes globais com as variantes menores/com
   border-radius que o admin usa. Evita redeclaração no layout.
   ═══════════════════════════════════════════════════════════════ */

/* Fundo e cor base do admin */
.admin-body {
  background: #F4F0EB;
  color: var(--brown);
}

/* Botões no contexto admin — menores, com border-radius */
.admin-body .btn {
  padding: .5625rem 1.125rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.admin-body .btn-primary {
  background: var(--gold);
  color: var(--brown);
  border-color: var(--gold);
}
.admin-body .btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(201,169,110,.3);
  transform: none;
}
.admin-body .btn-outline {
  background: transparent;
  color: var(--brown);
  border-color: rgba(28,16,8,.2);
}
.admin-body .btn-outline:hover {
  background: #FAF7F3;
  border-color: rgba(28,16,8,.3);
  transform: none;
}
.admin-body .btn-danger {
  background: rgba(155,58,58,.1);
  color: #9B3A3A;
  border-color: rgba(155,58,58,.25);
}
.admin-body .btn-danger:hover {
  background: rgba(155,58,58,.2);
  transform: none;
  opacity: 1;
}
.admin-body .btn-sm   { padding: .375rem .875rem; font-size: .8125rem; }
.admin-body .btn-lg   { padding: .75rem 1.5rem; font-size: 1rem; }
.admin-body .btn-icon { padding: .5rem; width: 2.125rem; height: 2.125rem; justify-content: center; }

/* Badge no admin — pill com border-radius full */
.admin-body .badge {
  border-radius: var(--radius-full);
  padding: .2rem .625rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
}

/* Flash messages — contexto admin */
.flash {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.125rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}
.flash--success {
  background: rgba(74,124,90,.12);
  border-color: rgba(74,124,90,.3);
  color: #3A6A4A;
}
.flash--error {
  background: rgba(155,58,58,.1);
  border-color: rgba(155,58,58,.25);
  color: #9B3A3A;
}
.flash--info {
  background: rgba(74,107,138,.1);
  border-color: rgba(74,107,138,.25);
  color: #3A5A7A;
}

/* ═══════════════════════════════════════════════════════════════
   PÁGINAS DE ERRO (404, 500, 403)
   ═══════════════════════════════════════════════════════════════ */
.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-dark);
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.error-page__inner {
  max-width: 32rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-primary);
  opacity: .3;
  margin-bottom: var(--space-md);
  user-select: none;
}

.error-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-md);
  letter-spacing: .02em;
}

.error-page__desc {
  color: rgba(247,243,239,.5);
  font-size: clamp(.9375rem, 2vw, 1.0625rem);
  line-height: 1.75;
  margin-bottom: var(--space-2xl);
}

.error-page__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   ACESSIBILIDADE — SKIP LINK
   ═══════════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -9999px;
  left: var(--space-md);
  z-index: var(--z-skip);
  background: var(--gold);
  color: var(--brown);
  padding: .625rem 1.25rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--brown);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   ACESSIBILIDADE — FOCO VISÍVEL GLOBAL
   Garante foco visível em todos os elementos interativos (WCAG 2.4.11)
   ═══════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Remove o outline padrão apenas quando não é teclado */
:focus:not(:focus-visible) {
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════
   ACESSIBILIDADE — FOOTER ITENS DE CONTATO
   Substitui os inline styles dos itens de contato do footer.
   ═══════════════════════════════════════════════════════════════ */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .625rem;
}

.footer-contact-item--top {
  align-items: flex-start;
}

.footer-contact-item__icon {
  color: var(--color-primary);
  font-size: .75rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.footer-contact-item--top .footer-contact-item__icon {
  margin-top: .2rem;
}

.footer-contact-item__text {
  font-size: .875rem;
  color: rgba(247,243,239,.45);
}

/* ═══════════════════════════════════════════════════════════════
   PERFORMANCE — PREFERS-REDUCED-MOTION
   Respeita a preferência do sistema operacional (WCAG 2.3.3)
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__scroll-dot { animation: none; }
  .skeleton { animation: none; background: rgba(201,169,110,.08); }
  .animate-fade-in-up,
  .animate-fade-in { animation: none; opacity: 1 !important; }
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX — estilos migrados do JS inline para CSS
   Permite override e garante consistência.
   ═══════════════════════════════════════════════════════════════ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(28,16,8,.97);
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.lightbox-overlay.open {
  display: flex;
}
.lightbox-overlay__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}
.lightbox-overlay__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(247,243,239,.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--t-fast);
  padding: .5rem;
  line-height: 1;
}
.lightbox-overlay__close:hover,
.lightbox-overlay__close:focus-visible {
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ — TRANSIÇÃO SUAVE NA RESPOSTA (acessibilidade + UX)
   ═══════════════════════════════════════════════════════════════ */
.faq-item__answer {
  /* sobrescreve display:none original com grid trick para transição */
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base);
  overflow: hidden;
  padding: 0;
  /* reset do padding original que estava sempre presente */
}
.faq-item__answer-inner {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom var(--t-base);
}
.faq-item.open .faq-item__answer {
  grid-template-rows: 1fr;
}
.faq-item.open .faq-item__answer-inner {
  padding-bottom: 1.25rem;
}

/* Mantém compatibilidade com FAQs que não têm .faq-item__answer-inner */
.faq-item__answer > p,
.faq-item__answer > div {
  min-height: 0;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITÁRIOS EXTRAS
   ═══════════════════════════════════════════════════════════════ */

/* Visually hidden mas acessível a leitores de tela */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus trap helper — esconde conteúdo fora de modais */
[aria-hidden="true"] { pointer-events: none; }

/* dev-link no footer */
.footer-dev-link {
  color: rgba(247,243,239,.4);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-dev-link:hover { color: var(--gold); }

/* ==========================================================================
   UTILITY CLASSES — padrões recorrentes extraídos das views
   Prefixo .u- para utilities globais (admin + public + patient)
   ========================================================================== */

/* ── Flex layouts ─────────────────────────────────────────────────────────── */
.u-flex          { display: flex; }
.u-flex-col      { display: flex; flex-direction: column; }
.u-flex-center   { display: flex; align-items: center; }
.u-flex-between  { display: flex; align-items: center; justify-content: space-between; }
.u-flex-end      { display: flex; justify-content: flex-end; }
.u-flex-wrap     { flex-wrap: wrap; }
.u-flex-1        { flex: 1; min-width: 0; }
.u-items-start   { align-items: flex-start; }

/* ── Gap ─────────────────────────────────────────────────────────────────── */
.u-gap-xs  { gap: .375rem; }
.u-gap-sm  { gap: .5rem; }
.u-gap-md  { gap: .75rem; }
.u-gap-lg  { gap: 1rem; }
.u-gap-xl  { gap: 1.25rem; }
.u-gap-2xl { gap: 1.5rem; }

/* ── Max-width presets (formulários e cards) ─────────────────────────────── */
.u-mw-sm  { max-width: 40rem; }
.u-mw-md  { max-width: 42rem; }
.u-mw-lg  { max-width: 48rem; }
.u-mw-xl  { max-width: 52rem; }
.u-mw-2xl { max-width: 56rem; }

/* ── Margin bottom ───────────────────────────────────────────────────────── */
.u-mb-0  { margin-bottom: 0; }
.u-mb-xs { margin-bottom: .375rem; }
.u-mb-sm { margin-bottom: .5rem; }
.u-mb-md { margin-bottom: 1rem; }
.u-mb-lg { margin-bottom: 1.5rem; }

/* ── Tipografia ──────────────────────────────────────────────────────────── */
.u-text-xs    { font-size: .75rem; }
.u-text-sm    { font-size: .8125rem; }
.u-text-base  { font-size: .875rem; }
.u-text-label {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.u-text-muted  { color: var(--text-muted, #8A7560); }
.u-text-soft   { color: var(--text-soft,  #B8A898); }
.u-text-gold   { color: var(--gold, #C9A96E); }
.u-text-dark   { color: var(--brown, #1C1008); }
.u-font-medium { font-weight: 500; }
.u-font-semi   { font-weight: 600; }

/* ── Dividers ────────────────────────────────────────────────────────────── */
.u-divider-top    { border-top:    1px solid rgba(28,16,8,.07); }
.u-divider-bottom { border-bottom: 1px solid rgba(28,16,8,.07); }
.u-divider-top-pt { border-top: 1px solid rgba(28,16,8,.07); padding-top: 1rem; margin-top: 1rem; }

/* ── Ícone-círculo (avatares, status indicators) ─────────────────────────── */
.u-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.u-icon-circle--gold { background: rgba(201,169,110,.12); color: var(--gold, #C9A96E); }
.u-icon-circle--sm   { width: 1.75rem; height: 1.75rem; }

/* ── Form helpers ────────────────────────────────────────────────────────── */
.u-resize-v  { resize: vertical; }
.u-resize-n  { resize: none; }
.u-w-auto    { width: auto; }
.u-w-full    { width: 100%; }
.u-min-w-select { min-width: 10rem; }
.u-min-w-input  { min-width: 14rem; }

/* ── Tabelas simples (admin) ─────────────────────────────────────────────── */
.u-table {
  width: 100%;
  border-collapse: collapse;
}
.u-table th,
.u-table td {
  padding: .625rem .5rem;
  text-align: left;
}
.u-table th {
  font-size: .8125rem;
  color: var(--text-muted, #8A7560);
  font-weight: 500;
  border-bottom: 1px solid rgba(28,16,8,.08);
}
.u-table td { border-bottom: 1px solid rgba(28,16,8,.05); }
.u-table tr:last-child td { border-bottom: none; }

/* ── Background tints ────────────────────────────────────────────────────── */
.u-bg-gold-tint   { background: rgba(201,169,110,.06); }
.u-bg-cream       { background: #F7F3EF; }
.u-bg-cream-deep  { background: #EDE8E2; }

/* ── Object-fit ──────────────────────────────────────────────────────────── */
.u-object-cover   { object-fit: cover; }
.u-object-contain { object-fit: contain; }

/* ── Positioning helpers ─────────────────────────────────────────────────── */
.u-relative { position: relative; }
.u-absolute { position: absolute; }
.u-inset-0  { inset: 0; }

/* ── Overflow ────────────────────────────────────────────────────────────── */
.u-overflow-hidden { overflow: hidden; }
.u-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Admin / Chart ────────────────────────────────────────────────────────── */
/* Área de gráfico com altura fixa e position:relative para Canvas */
.ds-chart__body--h18 { height: 18rem; position: relative; }

/* KPI grid com margin inferior padrão */
.ds-kpi-grid--mb-md { margin-bottom: 1.25rem; }
.ds-kpi-grid--mb-lg { margin-bottom: 1.5rem; }

/* Section grid com margin inferior */
.rpt-grid-2-1--mb { margin-bottom: 1.5rem; }

/* ── Stat grid (CRM e outras listas) ─────────────────────────────────────── */
.stat-grid--mb { margin-bottom: 1.5rem; }

/* ── Detalhes / key-value table (appointments show, prescriptions etc.) ───── */
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table td { padding: .625rem .5rem; vertical-align: top; }
.kv-table .kv-table__key {
  color: #8A7560;
  font-size: .8125rem;
  font-weight: 500;
  white-space: nowrap;
  width: 7rem;
}
.kv-table .kv-table__val { color: #1C1008; font-size: .9375rem; }
.kv-table .kv-table__notes {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(28,16,8,.07);
}
.kv-table__notes-label {
  font-size: .8125rem;
  color: #8A7560;
  font-weight: 500;
  margin-bottom: .5rem;
}
.kv-table__notes-text { font-size: .9375rem; color: #3D2510; line-height: 1.6; }

/* ── CRM / Activity feed ─────────────────────────────────────────────────── */
.crm-activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(28,16,8,.06);
}
.crm-activity-item:last-child { border-bottom: none; }
.crm-activity-item__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(201,169,110,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #A07840;
  font-size: .8125rem;
}
.crm-activity-item__body { flex: 1; min-width: 0; }
.crm-activity-item__title { font-weight: 500; color: #1C1008; margin-bottom: .2rem; }
.crm-activity-item__meta  { font-size: .75rem; color: #B8A898; }

/* ── CRM / info-grid cells (key-value pairs em cards) ────────────────────── */
.crm-info__key {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8A7560;
  margin-bottom: .25rem;
}
.crm-info__val { font-weight: 500; color: #1C1008; }

/* ── CRM / table cell helpers ────────────────────────────────────────────── */
.cell-primary { font-weight: 500; color: #1C1008; }
.cell-email   { display: block; font-size: .875rem;  color: #3D2510; }
.cell-phone   { display: block; font-size: .8125rem; color: #8A7560; }
.cell-source  { font-size: .8125rem; color: #8A7560; }
.cell-ts      { font-size: .8125rem; color: #8A7560; white-space: nowrap; }

/* ── Patient item cells ───────────────────────────────────────────────────── */
.pat-item__main  { flex: 1; min-width: 0; }
.pat-item__title { font-weight: 500; color: #1C1008; margin-bottom: .2rem; }
.pat-item__meta  { font-size: .8125rem; color: #8A7560; }
.pat-item__icon  { margin-right: .375rem; }

/* ── Form: full-width submit com margin-top ──────────────────────────────── */
.btn-submit-full { width: 100%; margin-top: .875rem; }
.btn-full        { width: 100%; }

/* ── a-card padding override (filter bar) ────────────────────────────────── */
.a-card__body--pad-sm { padding: 1rem 1.5rem; }

/* ── Filter bar inline form ──────────────────────────────────────────────── */
.filter-form {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-form__search { flex: 1; min-width: 14rem; }
.filter-form__select { width: auto; min-width: 10rem; }

/* ── Appointments index: count badge inline ───────────────────────────────── */
.page-sub-count { margin-left: .5rem; }

/* ── Prescription document (show) ────────────────────────────────────────── */
.rx-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201,169,110,.2);
  margin-bottom: 1.5rem;
}
.rx-doc-header__right { text-align: right; }
.rx-doc-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8A7560;
  margin-bottom: .25rem;
}
.rx-doc-label--sm {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #B8A898;
  margin-bottom: .2rem;
}
.rx-doc-value--lg   { font-size: 1.25rem; font-weight: 500; color: #1C1008; }
.rx-doc-value--md   { font-size: 1.125rem; color: #3D2510; }
.rx-doc-value--sm   { font-size: .8125rem; color: #B8A898; margin-top: .25rem; }
.rx-doc-value       { font-weight: 500; color: #1C1008; }
.rx-doc-value--sub  { font-size: .875rem; color: #8A7560; margin-top: .2rem; }
.rx-doc-text        { color: #3D2510; line-height: 1.75; }
.rx-doc-section     { margin-bottom: 1.5rem; }

.rx-person-box {
  background: rgba(201,169,110,.06);
  border: 1px solid rgba(201,169,110,.2);
  border-radius: .625rem;
  padding: 1rem 1.25rem;
}

.rx-med-box {
  background: rgba(201,169,110,.04);
  border: 1px solid rgba(201,169,110,.15);
  border-radius: .5rem;
  padding: .875rem 1.25rem;
}
.rx-med-list { display: flex; flex-direction: column; gap: .625rem; }

/* ── Patients index: filter bar ─────────────────────────────────────────── */
.patient-search { max-width: 24rem; }

/* ── Notification feed ───────────────────────────────────────────────────── */
.notif-item {
  display: flex;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid rgba(28,16,8,.06);
}
.notif-item--unread { background: rgba(201,169,110,.04); }
.notif-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(201,169,110,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
  color: #A07840;
  font-size: .875rem;
}
.notif-item--unread .notif-item__icon { background: rgba(201,169,110,.2); }
.notif-item__body  { flex: 1; min-width: 0; }
.notif-item__head  { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.notif-item__title { font-size: .9375rem; font-weight: 500; color: #1C1008; margin-bottom: .25rem; }
.notif-item__msg   { font-size: .875rem; color: #5C4A35; line-height: 1.55; }
.notif-item__ts    { font-size: .75rem; color: #B8A898; margin-top: .375rem; }
.notif-item__ts i  { margin-right: .25rem; }
.notif-item__actions { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }

/* ── Ticket thread ───────────────────────────────────────────────────────── */
.ticket-msg {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(28,16,8,.06);
}
.ticket-msg--admin { background: rgba(201,169,110,.05); }
.ticket-msg__head  { display: flex; justify-content: space-between; margin-bottom: .375rem; }
.ticket-msg__sender-admin  { font-size: .8125rem; font-weight: 600; color: #A07840; }
.ticket-msg__sender-client { font-size: .8125rem; font-weight: 600; color: #3D2510; }
.ticket-msg__ts    { font-size: .75rem; color: #B8A898; }
.ticket-msg__text  { font-size: .875rem; color: #3D2510; line-height: 1.7; }

/* Ticket details dl */
.ticket-dl { display: flex; flex-direction: column; gap: .875rem; }
.ticket-dl dt {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8A7560;
  margin-bottom: .25rem;
}
.ticket-dl dd       { font-weight: 500; color: #1C1008; }
.ticket-dl dd.small { font-size: .875rem; color: #3D2510; font-weight: 400; }

/* Reply form */
.ticket-reply-actions {
  margin-top: .875rem;
  display: flex;
  justify-content: flex-end;
}

/* Ticket card messages box */
.ticket-msgs-body { padding: 0; max-height: 28rem; overflow-y: auto; }

/* ── Medical records (prontuário) ────────────────────────────────────────── */
.record-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.record-summary__key {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8A7560;
  margin-bottom: .25rem;
}
.record-summary__val      { font-weight: 500; color: #1C1008; }
.record-summary__val--sub { color: #3D2510; }

.record-empty { padding: 3.5rem; text-align: center; color: #8A7560; }
.record-empty__icon  { font-size: 2.5rem; opacity: .25; display: block; margin-bottom: 1rem; }
.record-empty__msg   { margin-bottom: 1.25rem; }

.record-card { margin-bottom: 1rem; }
.record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(201,169,110,.15);
  flex-wrap: wrap;
}
.record-header__left    { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.record-header__icon    {
  width: 2.5rem; height: 2.5rem; border-radius: .5rem;
  background: rgba(201,169,110,.1);
  display: flex; align-items: center; justify-content: center;
  color: #A07840; flex-shrink: 0;
}
.record-header__date    { font-weight: 600; color: #1C1008; font-size: .9375rem; }
.record-header__meta    { font-size: .8125rem; color: #8A7560; margin-top: .1rem; }
.record-header__actions { display: flex; gap: .375rem; }

.record-fields {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 1.25rem;
}
.record-field__label {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em;
  color: #8A7560; font-weight: 600; margin-bottom: .375rem;
}
.record-field__text { font-size: .9rem; color: #3D2510; line-height: 1.6; white-space: pre-wrap; }

/* ── Logs ────────────────────────────────────────────────────────────────── */
.logs-nav        { display: flex; gap: .5rem; }
.log-filter-form { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.log-filter-field { display: flex; flex-direction: column; gap: .375rem; }
.log-filter-field .f-label   { margin: 0; }
.log-filter-field .f-control { width: auto; }
.log-filter-select { min-width: 9rem; }
.cell-log-id   { font-size: .8125rem; color: #8A7560; }
.cell-log-msg  { font-size: .8125rem; color: #3D2510; max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-log-file { font-size: .75rem;   color: #8A7560; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-log-ts   { font-size: .8125rem; color: #8A7560; white-space: nowrap; }

.pagination-bar {
  display: flex; justify-content: center; gap: .5rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(28,16,8,.07);
}

/* ── Public Home ─────────────────────────────────────────────────────────── */
.res-pair__img-wrap { position: relative; }
.res-pair__img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.res-pair__caption-row { grid-column: 1/-1; text-align: center; margin-top: .5rem; font-size: .75rem; color: rgba(247,243,239,.45); letter-spacing: .06em; }
.section-title__heading--dark { color: var(--color-text-on-dark, #F7F3EF); }
.card-link { font-family: var(--font-body); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-primary, #C9A96E); display: flex; align-items: center; gap: .5rem; white-space: nowrap; transition: gap .2s ease; }
.card-link i { font-size: .75rem; }
.card-link:hover { gap: .75rem; }
.card-footer-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-price-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(247,243,239,.55); }
.review-author__avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cta-block { max-width: 600px; margin: 0 auto; text-align: center; }
.cta-block__actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.faq-list--centered { max-width: 720px; margin: 0 auto; }
.section-cta-center { text-align: center; margin-top: 2.5rem; }

/* ── Public Home — About section ─────────────────────────────────────────── */
.about-body-text { font-family: var(--font-body); font-size: 1rem; color: rgba(247,243,239,.65); line-height: 1.85; margin-bottom: 1.5rem; font-weight: 300; }
.about-quote { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-primary); font-style: italic; margin-bottom: 2rem; }
.section-title__line--left { justify-content: flex-start; }
.section-title__line-bar { width: 3rem; height: 1px; background: var(--color-primary); }
.u-mt-xl { margin-top: 2rem; }
.u-mb-md { margin-bottom: 1.25rem; }
.u-mb-lg { margin-bottom: 1.5rem; }
.section-title__eyebrow--center { justify-content: center; display: inline-flex; margin-bottom: 1.5rem; }
.cta-body-text { font-family: var(--font-body); color: rgba(247,243,239,.6); line-height: 1.8; margin-bottom: 2.5rem; font-size: 1rem; }

/* ── Card icon placeholder (fallback when no image) ─────────────────────── */
.card__icon-placeholder { height: 12rem; background: var(--color-bg-warm); display: flex; align-items: center; justify-content: center; }
.card__icon-placeholder i { font-size: 3rem; color: rgba(201,169,110,.3); }

/* ── Review author icon avatar ───────────────────────────────────────────── */
.review-author__avatar-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(201,169,110,.15); border: 1px solid var(--color-border-dark); display: flex; align-items: center; justify-content: center; color: var(--color-primary); font-size: 1rem; flex-shrink: 0; }

/* ── Google badge ────────────────────────────────────────────────────────── */
.google-badge { height: 4rem; margin: 0 auto; display: block; }

/* ── Ebook section ───────────────────────────────────────────────────────── */
.ebook-section { padding-top: 4rem; padding-bottom: 4rem; }
.ebook-grid { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; max-width: 56rem; margin: 0 auto; }
.ebook-cover-wrap { flex-shrink: 0; }
.ebook-cover { width: 180px; border-radius: .75rem; box-shadow: 0 16px 48px rgba(0,0,0,.35); border: 1px solid rgba(201,169,110,.2); display: block; }
.ebook-cover-placeholder { width: 180px; height: 252px; background: rgba(201,169,110,.08); border-radius: .75rem; border: 1px solid rgba(201,169,110,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ebook-cover-placeholder__icon { font-size: 3rem; color: rgba(201,169,110,.3); }
.ebook-badge { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(201,169,110,.6); margin-bottom: .75rem; }
.ebook-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.625rem, 4vw, 2.5rem); font-weight: 300; color: #F7F3EF; line-height: 1.15; margin-bottom: 1rem; }
.ebook-desc { font-size: .9375rem; color: rgba(247,243,239,.55); line-height: 1.8; margin-bottom: 1.5rem; max-width: 36rem; }
.ebook-footer { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.ebook-price { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 300; color: #C9A96E; letter-spacing: .04em; }
@media (max-width: 600px) { .ebook-grid { grid-template-columns: 1fr; } .ebook-cover, .ebook-cover-placeholder { margin: 0 auto; } }
