/* CorteX · tema escuro com dourado, por cima do Bootstrap 5.3 */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root,
[data-bs-theme="dark"] {
  --cx-gold: #d4af37;
  --cx-gold-hi: #e8c962;
  --cx-gold-lo: #a8892a;
  --cx-gold-ink: #17130a;
  --cx-bg: #0d0d0f;
  --cx-surface: #151518;
  --cx-surface-2: #1c1c20;
  --cx-line: #2a2a30;
  --cx-text: #ece9e2;
  --cx-muted: #a6a29a;
  --cx-radius: 12px;

  --bs-body-bg: var(--cx-bg);
  --bs-body-color: var(--cx-text);
  --bs-body-font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-secondary-color: var(--cx-muted);
  --bs-tertiary-bg: var(--cx-surface);
  --bs-secondary-bg: var(--cx-surface-2);
  --bs-border-color: var(--cx-line);
  --bs-emphasis-color: #fff;
  --bs-primary: var(--cx-gold);
  --bs-primary-rgb: 212, 175, 55;
  --bs-link-color: var(--cx-gold-hi);
  --bs-link-color-rgb: 232, 201, 98;
  --bs-link-hover-color: #f3dc8c;
  --bs-link-hover-color-rgb: 243, 220, 140;
  --bs-border-radius: var(--cx-radius);
  --bs-border-radius-lg: 16px;
  --bs-focus-ring-color: rgba(212, 175, 55, .35);
}

body { font-stretch: 100%; -webkit-font-smoothing: antialiased; }
::selection { background: var(--cx-gold); color: var(--cx-gold-ink); }

.cx-display {
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02;
}
.cx-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cx-gold);
}
.text-gold { color: var(--cx-gold) !important; }
.text-muted, .text-secondary { color: var(--cx-muted) !important; }

/* ---- Botões ---------------------------------------------------------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-y: .7rem; --bs-btn-padding-x: 1.2rem; border-radius: var(--cx-radius); }
.btn:active { transform: translateY(1px); }
.btn-gold {
  --bs-btn-color: var(--cx-gold-ink);
  --bs-btn-bg: var(--cx-gold);
  --bs-btn-border-color: var(--cx-gold);
  --bs-btn-hover-color: var(--cx-gold-ink);
  --bs-btn-hover-bg: var(--cx-gold-hi);
  --bs-btn-hover-border-color: var(--cx-gold-hi);
  --bs-btn-active-color: var(--cx-gold-ink);
  --bs-btn-active-bg: var(--cx-gold-lo);
  --bs-btn-active-border-color: var(--cx-gold-lo);
  --bs-btn-disabled-color: var(--cx-gold-ink);
  --bs-btn-disabled-bg: var(--cx-gold);
  --bs-btn-disabled-border-color: var(--cx-gold);
  --bs-btn-focus-shadow-rgb: 212, 175, 55;
}
.btn-outline-gold {
  --bs-btn-color: var(--cx-gold);
  --bs-btn-border-color: rgba(212, 175, 55, .55);
  --bs-btn-hover-color: var(--cx-gold-ink);
  --bs-btn-hover-bg: var(--cx-gold);
  --bs-btn-hover-border-color: var(--cx-gold);
  --bs-btn-active-color: var(--cx-gold-ink);
  --bs-btn-active-bg: var(--cx-gold-lo);
  --bs-btn-focus-shadow-rgb: 212, 175, 55;
}
.btn-sm { --bs-btn-padding-y: .35rem; --bs-btn-padding-x: .7rem; }
.btn-whatsapp { --bs-btn-color: #fff; --bs-btn-bg: #1f8f4e; --bs-btn-border-color: #1f8f4e; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #24a65b; --bs-btn-hover-border-color: #24a65b; }

/* ---- Formulários ----------------------------------------------------- */
.form-control, .form-select { background-color: var(--cx-surface-2); border-color: var(--cx-line); padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--cx-gold); box-shadow: 0 0 0 .2rem rgba(212, 175, 55, .22); background-color: var(--cx-surface-2); }
.form-control::placeholder { color: #6f6c66; }
.form-check-input:checked { background-color: var(--cx-gold); border-color: var(--cx-gold); }
.form-check-input:focus { border-color: var(--cx-gold); box-shadow: 0 0 0 .2rem rgba(212, 175, 55, .22); }
.form-label { font-weight: 600; font-size: .9rem; }
.form-control-sm, .form-select-sm { padding: .35rem .55rem; }
:focus-visible { outline: 2px solid var(--cx-gold); outline-offset: 2px; }

/* ---- Superfícies ----------------------------------------------------- */
.cx-card { background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: 16px; }
.cx-card-pad { padding: 1.5rem; }
.alert { border-radius: var(--cx-radius); }
.table { --bs-table-bg: transparent; --bs-table-border-color: var(--cx-line); }
.table > :not(caption) > * > * { padding: .85rem .75rem; }
.badge { font-weight: 600; letter-spacing: .02em; }
.badge-estado-confirmado { background: rgba(212, 175, 55, .16); color: var(--cx-gold-hi); }
.badge-estado-concluido { background: rgba(95, 179, 161, .16); color: #7fd0bd; }
.badge-estado-cancelado { background: rgba(255, 255, 255, .06); color: var(--cx-muted); text-decoration: line-through; }
.cx-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: middle; background: var(--cx-dot, var(--cx-gold)); }

/* ---- Cabeçalho / rodapé públicos ------------------------------------- */
.cx-top { border-bottom: 1px solid var(--cx-line); background: rgba(13, 13, 15, .86); backdrop-filter: blur(10px); }
.cx-brand { font-stretch: 120%; font-weight: 800; letter-spacing: -.01em; color: var(--cx-text); text-decoration: none; font-size: 1.15rem; }
.cx-brand:hover { color: #fff; }
.cx-brand-mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--cx-gold); color: var(--cx-gold-ink); margin-right: .55rem; font-size: 1rem; }
.cx-foot { border-top: 1px solid var(--cx-line); color: var(--cx-muted); font-size: .88rem; }

/* ---- Landing --------------------------------------------------------- */
.cx-hero { padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.cx-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60rem 30rem at 85% -10%, rgba(212, 175, 55, .10), transparent 60%);
}
.cx-hero h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); max-width: 17ch; }
.cx-hero .lead { color: var(--cx-muted); max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.cx-phone {
  width: min(320px, 82vw); margin-inline: auto; border-radius: 40px; padding: 12px;
  background: #1a1a1e; box-shadow: 0 0 0 1px #2c2c33, 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 120px -40px rgba(212, 175, 55, .25);
}
.cx-phone-screen { border-radius: 30px; background: var(--cx-bg); padding: 1.25rem 1rem 1.4rem; min-height: 540px; }
.cx-mock-slot { border: 1px solid var(--cx-line); border-radius: 10px; padding: .55rem 0; text-align: center; font-weight: 600; font-size: .9rem; }
.cx-mock-slot.is-on { background: var(--cx-gold); color: var(--cx-gold-ink); border-color: var(--cx-gold); }
.cx-mock-slot.is-off { color: #4d4b47; text-decoration: line-through; }
.cx-section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--cx-line); }
.cx-section h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 20ch; }
.cx-pain { border-top: 1px solid var(--cx-line); padding: 1.4rem 0; }
.cx-pain-num { font-stretch: 120%; font-weight: 800; color: var(--cx-gold); font-size: 1.1rem; min-width: 3rem; }
.cx-bento { display: grid; gap: 1rem; grid-template-columns: repeat(6, 1fr); }
.cx-bento > * { grid-column: span 6; }
@media (min-width: 768px) {
  .cx-bento .b-wide { grid-column: span 4; }
  .cx-bento .b-narrow { grid-column: span 2; }
  .cx-bento .b-half { grid-column: span 3; }
}
.cx-bento .cx-card { height: 100%; }
.cx-icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: rgba(212, 175, 55, .12); color: var(--cx-gold); font-size: 1.2rem; }
.cx-cta-band { background: var(--cx-gold); color: var(--cx-gold-ink); border-radius: 20px; padding: clamp(2rem, 5vw, 3.5rem); }
.cx-cta-band .btn-dark { --bs-btn-bg: #111; --bs-btn-border-color: #111; }

/* ---- Marcação -------------------------------------------------------- */
.cx-book { max-width: 640px; }
.cx-steps { display: flex; gap: .4rem; }
.cx-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--cx-line); transition: background .3s ease; }
.cx-steps span.is-done { background: var(--cx-gold); }
.cx-option {
  display: flex; width: 100%; align-items: center; gap: 1rem; text-align: left;
  background: var(--cx-surface); color: var(--cx-text); border: 1px solid var(--cx-line); border-radius: 14px;
  padding: 1rem 1.1rem; transition: border-color .2s ease, background .2s ease, transform .1s ease;
}
.cx-option:hover { border-color: rgba(212, 175, 55, .55); }
.cx-option:active { transform: scale(.99); }
.cx-option[aria-pressed="true"] { border-color: var(--cx-gold); background: rgba(212, 175, 55, .08); }
.cx-avatar { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--cx-surface-2); border: 1px solid var(--cx-line); font-weight: 800; font-stretch: 115%; color: var(--cx-gold); }
.cx-price { font-weight: 700; white-space: nowrap; }
.cx-days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cx-day {
  flex: none; width: 4.2rem; scroll-snap-align: start; text-align: center;
  background: var(--cx-surface); color: var(--cx-text); border: 1px solid var(--cx-line); border-radius: 12px; padding: .55rem 0;
}
.cx-day small { display: block; color: var(--cx-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.cx-day strong { display: block; font-size: 1.25rem; font-stretch: 112%; }
.cx-day[aria-pressed="true"] { background: var(--cx-gold); border-color: var(--cx-gold); color: var(--cx-gold-ink); }
.cx-day[aria-pressed="true"] small { color: var(--cx-gold-ink); }
.cx-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .5rem; }
.cx-slot {
  background: var(--cx-surface); color: var(--cx-text); border: 1px solid var(--cx-line); border-radius: 10px;
  padding: .65rem 0; font-weight: 600; font-variant-numeric: tabular-nums;
}
.cx-slot:hover { border-color: rgba(212, 175, 55, .6); }
.cx-slot[aria-pressed="true"] { background: var(--cx-gold); color: var(--cx-gold-ink); border-color: var(--cx-gold); }
.cx-skel { height: 2.6rem; border-radius: 10px; background: linear-gradient(90deg, var(--cx-surface) 0, var(--cx-surface-2) 50%, var(--cx-surface) 100%); background-size: 200% 100%; animation: cx-skel 1.2s ease-in-out infinite; }
@keyframes cx-skel { to { background-position: -200% 0; } }
.cx-summary { border: 1px dashed rgba(212, 175, 55, .45); border-radius: 14px; padding: 1rem 1.1rem; background: rgba(212, 175, 55, .04); }
.cx-ok-icon { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; margin-inline: auto; background: rgba(212, 175, 55, .14); color: var(--cx-gold); font-size: 2rem; }
.cx-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---- Painel ---------------------------------------------------------- */
.cx-nav { background: var(--cx-surface); border-bottom: 1px solid var(--cx-line); }
.cx-nav .nav-link { color: var(--cx-muted); font-weight: 600; border-radius: 10px; padding: .5rem .8rem; }
.cx-nav .nav-link:hover { color: var(--cx-text); }
.cx-nav .nav-link.active { color: var(--cx-gold-ink); background: var(--cx-gold); }
.cx-stat { font-stretch: 115%; font-weight: 800; font-size: 1.9rem; line-height: 1; }
.cx-hora { font-variant-numeric: tabular-nums; font-weight: 700; font-stretch: 110%; }
.cx-mobile-list .cx-row { border-top: 1px solid var(--cx-line); padding: .9rem 0; }

/* FullCalendar no tema escuro */
.fc { --fc-border-color: var(--cx-line); --fc-page-bg-color: var(--cx-bg); --fc-neutral-bg-color: var(--cx-surface); --fc-today-bg-color: rgba(212, 175, 55, .06); --fc-now-indicator-color: var(--cx-gold); --fc-event-border-color: transparent; }
.fc .fc-toolbar-title { font-size: 1.15rem; font-weight: 700; font-stretch: 112%; }
.fc .fc-button { background: var(--cx-surface-2); border-color: var(--cx-line); color: var(--cx-text); font-weight: 600; text-transform: capitalize; }
.fc .fc-button:hover { background: #26262b; border-color: var(--cx-line); color: #fff; }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { background: var(--cx-gold); border-color: var(--cx-gold); color: var(--cx-gold-ink); }
.fc .fc-col-header-cell-cushion, .fc .fc-timegrid-slot-label-cushion { color: var(--cx-muted); text-decoration: none; }
.fc-event { cursor: pointer; font-weight: 600; }
.fc-event.ev-bloqueio { background: repeating-linear-gradient(135deg, #24242a 0 8px, #1c1c21 8px 16px) !important; border: 1px solid #3a3a42 !important; }
.fc-event.ev-bloqueio .fc-event-main { color: #c9c5bd; }
.fc-event.ev-concluido { opacity: .55; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 992px) { .w-lg-auto { width: auto !important; } }
.cx-narrow { max-width: 460px; }
.cx-dot-bloqueio { background: repeating-linear-gradient(135deg, #3a3a42 0 3px, #1c1c21 3px 6px); }
.cx-phone .cx-day { flex: 1 1 0; width: auto; min-width: 0; }
.cx-phone .cx-slots { grid-template-columns: repeat(3, 1fr); }
.cx-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; }
.cx-book section, #painel-bloqueio, #form-bloqueio, [id^="servico-"] { scroll-margin-top: 96px; }
.form-select { padding-right: 2.4rem; }
.form-select-sm { padding-right: 2rem; }
.fc .fc-timegrid-slot { height: 2.75rem; }
.fc-timegrid-event .fc-event-main { padding: 3px 5px; font-size: .8rem; line-height: 1.25; }
.min-w-0 { min-width: 0; }
.cx-stat { font-size: clamp(1.35rem, 5.2vw, 1.9rem); white-space: nowrap; }
@media (max-width: 767px) { .fc .fc-toolbar-title { font-size: .95rem; } .fc .fc-toolbar { gap: .5rem; } }
.cx-demo { background: #1a1608; color: #e8c962; border-bottom: 1px solid rgba(212, 175, 55, .3); font-size: .85rem; text-align: center; padding: .45rem 1rem; }
.cx-demo a { color: #f3dc8c; margin-left: .35rem; }
.cx-demo-login { border: 1px dashed rgba(212, 175, 55, .45); border-radius: 14px; padding: 1rem; background: rgba(212, 175, 55, .05); }
