/* ================================================================
   CLÍNICA DE PSICOPEDAGOGIA — Folha de Estilos Principal
   Paleta: Sage (#6B8F71) · Terra (#C4785A) · Stone (#3D3830)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── VARIÁVEIS ─────────────────────────────────────────────────── */
:root {
  --sage:         #6B8F71;
  --sage-light:   #A8C5AD;
  --sage-pale:    #E8F0E9;
  --terra:        #C4785A;
  --terra-light:  #E8A98E;
  --cream:        #FAF7F2;
  --stone:        #3D3830;
  --stone-mid:    #6B6357;
  --warm-white:   #FFFEF9;
  --gold:         #C9A84C;
  --lavender:     #8B7FB5;
  --sky:          #5B8FA8;
  --mint:         #4E9E8B;
  --mint-pale:    #E2F3F0;
  --rose:         #B5707A;
  --rose-pale:    #F5E8EA;
  --sidebar-bg:   #2A2520;
  --sidebar-w:    220px;
  --topbar-h:     56px;
  --r:            10px;
  --r-sm:         6px;
  --shadow:       0 2px 12px rgba(61,56,48,0.09);
  --shadow-lg:    0 6px 32px rgba(61,56,48,0.15);
}

/* ── RESET / BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size:   14px;
  color:       var(--stone);
  background:  var(--cream);
  line-height: 1.5;
}

a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

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

/* ── TIPOGRAFIA ────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 300; letter-spacing: -0.02em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.9rem; }

em.sage { color: var(--sage); font-style: italic; }

/* ── BOTÕES ────────────────────────────────────────────────────── */
.btn {
  display:        inline-flex;
  align-items:    center;
  gap:            6px;
  padding:        8px 18px;
  border-radius:  24px;
  font-family:    'DM Sans', sans-serif;
  font-size:      0.8rem;
  font-weight:    500;
  border:         none;
  cursor:         pointer;
  transition:     all 0.18s;
  white-space:    nowrap;
}

.btn-primary   { background: var(--sage);       color: white; }
.btn-primary:hover { background: #5a7d60; }
.btn-secondary { background: var(--cream);      color: var(--stone); border: 1px solid rgba(107,143,113,0.25); }
.btn-secondary:hover { background: var(--sage-pale); }
.btn-danger    { background: var(--rose-pale);  color: var(--rose); }
.btn-danger:hover { background: var(--rose); color: white; }
.btn-sm        { padding: 5px 12px; font-size: 0.72rem; }
.btn-lg        { padding: 12px 28px; font-size: 0.88rem; }
.btn-block     { width: 100%; justify-content: center; }

/* ── FORMULÁRIOS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display:      block;
  font-size:    0.72rem;
  font-weight:  600;
  color:        var(--stone-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.form-control {
  width:        100%;
  padding:      9px 13px;
  border:       1px solid rgba(107,143,113,0.25);
  border-radius: var(--r-sm);
  background:   var(--warm-white);
  font-family:  'DM Sans', sans-serif;
  font-size:    0.82rem;
  color:        var(--stone);
  transition:   border-color 0.15s;
  appearance:   none;
}

.form-control:focus {
  outline:      none;
  border-color: var(--sage);
  box-shadow:   0 0 0 3px rgba(107,143,113,0.12);
}

textarea.form-control { min-height: 80px; resize: vertical; }
select.form-control { cursor: pointer; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.form-hint { font-size: 0.68rem; color: var(--stone-mid); margin-top: 4px; }
.form-error { font-size: 0.72rem; color: var(--rose); margin-top: 4px; }

/* ── CHECKBOX GRID (sessão) ────────────────────────────────────── */
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }

.check-item {
  display:      flex;
  align-items:  center;
  gap:          8px;
  padding:      8px 10px;
  border:       1px solid rgba(107,143,113,0.15);
  border-radius: var(--r-sm);
  background:   var(--cream);
  cursor:       pointer;
  font-size:    0.74rem;
  color:        var(--stone-mid);
  user-select:  none;
  transition:   all 0.12s;
}

.check-item:hover    { background: var(--sage-pale); border-color: var(--sage-light); }
.check-item.checked  { background: var(--sage-pale); border-color: var(--sage); color: var(--sage); font-weight: 500; }
.check-item input[type="checkbox"] { display: none; }
.check-mark { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; }

/* ── ESCALA 1-5 ────────────────────────────────────────────────── */
.scale-row { display: flex; gap: 8px; align-items: center; }
.scale-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(107,143,113,0.2);
  background: var(--cream); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; font-family: 'Fraunces', serif;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.scale-btn:hover { border-color: var(--sage); background: var(--sage-pale); }
.scale-btn.active { background: var(--sage); border-color: var(--sage); color: white; }
.scale-label { font-size: 0.72rem; color: var(--stone-mid); margin-left: 8px; }

/* ── CARDS ─────────────────────────────────────────────────────── */
.card {
  background:    var(--warm-white);
  border:        1px solid rgba(107,143,113,0.15);
  border-radius: var(--r);
  box-shadow:    var(--shadow);
  overflow:      hidden;
}

.card-header {
  padding:       12px 18px;
  border-bottom: 1px solid rgba(107,143,113,0.1);
  display:       flex;
  align-items:   center;
  gap:           10px;
  font-size:     0.8rem;
  font-weight:   600;
  color:         var(--stone);
}

.card-body  { padding: 16px 18px; }
.card-footer { padding: 10px 18px; border-top: 1px solid rgba(107,143,113,0.1); display: flex; gap: 8px; justify-content: flex-end; }

/* ── KPIs (dashboard) ──────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }

.kpi-card {
  background: var(--warm-white);
  border: 1px solid rgba(107,143,113,0.15);
  border-radius: var(--r);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.kpi-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--stone-mid); margin-bottom: 8px; }
.kpi-value { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 300; line-height: 1; color: var(--stone); }
.kpi-sub   { font-size: 0.68rem; color: var(--stone-mid); margin-top: 5px; }

/* ── TABELAS ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow); }

table {
  width:           100%;
  border-collapse: collapse;
  background:      var(--warm-white);
  font-size:       0.8rem;
}

thead th {
  padding:         10px 16px;
  text-align:      left;
  font-size:       0.65rem;
  font-weight:     600;
  text-transform:  uppercase;
  letter-spacing:  0.07em;
  color:           var(--stone-mid);
  background:      var(--cream);
  border-bottom:   1px solid rgba(107,143,113,0.15);
}

tbody td { padding: 10px 16px; border-bottom: 1px solid rgba(107,143,113,0.08); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(107,143,113,0.04); }

/* ── STATUS CHIPS ──────────────────────────────────────────────── */
.badge {
  display:        inline-block;
  font-size:      0.64rem;
  font-weight:    600;
  padding:        2px 8px;
  border-radius:  10px;
}

.status-scheduled   { background: var(--cream);         color: var(--stone-mid); border: 1px solid rgba(107,99,87,0.2); }
.status-confirmed   { background: var(--sage-pale);     color: var(--sage); }
.status-arrived     { background: #e6f0ff;              color: #2563eb; }
.status-missed      { background: var(--rose-pale);     color: var(--rose); }
.status-cancelled   { background: rgba(61,56,48,0.08);  color: var(--stone-mid); }
.status-rescheduled { background: #fdf6e3;              color: var(--gold); }
.status-pending     { background: #fdf6e3;              color: var(--gold); }
.status-draft       { background: var(--cream);         color: var(--stone-mid); }
.status-final       { background: var(--sage-pale);     color: var(--sage); }
.status-sent        { background: var(--mint-pale);     color: var(--mint); }

/* ── LAYOUT PAINEL ─────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width:        var(--sidebar-w);
  background:   var(--sidebar-bg);
  display:      flex;
  flex-direction: column;
  position:     fixed;
  top:          0;
  left:         0;
  height:       100vh;
  z-index:      100;
  overflow-y:   auto;
}

.sidebar-logo {
  padding:       16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo .logo-mark {
  width:36px;height:36px;background:var(--sage);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',serif;font-style:italic;color:white;font-size:16px;
}

.sidebar-clinic { font-family: 'Fraunces', serif; font-size: 0.78rem; font-weight: 300; color: rgba(250,247,242,0.75); margin-top: 6px; }
.sidebar-clinic em { color: var(--sage-light); font-style: italic; }

.sidebar-section {
  font-size:      0.58rem;
  font-weight:    600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.22);
  padding:        14px 18px 5px;
}

.nav-item {
  display:     flex;
  align-items: center;
  gap:         10px;
  padding:     8px 18px;
  font-size:   0.78rem;
  color:       rgba(250,247,242,0.5);
  cursor:      pointer;
  transition:  all 0.14s;
  position:    relative;
  text-decoration: none;
}

.nav-item:hover  { background: rgba(255,255,255,0.05); color: rgba(250,247,242,0.85); text-decoration: none; }
.nav-item.active { background: rgba(107,143,113,0.16); color: var(--sage-light); font-weight: 500; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sage-light); border-radius: 0 2px 2px 0; }

.nav-icon   { font-size: 15px; flex-shrink: 0; opacity: 0.9; }
.nav-badge  { margin-left: auto; background: var(--terra); color: white; font-size: 0.6rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; }

.sidebar-user {
  margin-top:  auto;
  padding:     14px 18px;
  border-top:  1px solid rgba(255,255,255,0.06);
  display:     flex;
  align-items: center;
  gap:         10px;
}

.user-avatar { width:32px;height:32px;background:var(--lavender);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;color:white;flex-shrink:0; }
.user-name   { font-size: 0.74rem; font-weight: 500; color: rgba(250,247,242,0.8); }
.user-role   { font-size: 0.62rem; color: rgba(250,247,242,0.35); }

/* Main content */
.main-content {
  flex:        1;
  margin-left: var(--sidebar-w);
  display:     flex;
  flex-direction: column;
  min-height:  100vh;
}

.topbar {
  height:        var(--topbar-h);
  background:    var(--warm-white);
  border-bottom: 1px solid rgba(107,143,113,0.12);
  padding:       0 24px;
  display:       flex;
  align-items:   center;
  gap:           12px;
  position:      sticky;
  top:           0;
  z-index:       50;
}

.topbar h1 { font-size: 1rem; font-weight: 400; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.page-body { padding: 24px; flex: 1; }

/* ── FLASH MESSAGES ────────────────────────────────────────────── */
.flash {
  padding:       10px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
  font-size:     0.8rem;
  display:       flex;
  align-items:   center;
  gap:           8px;
}

.flash-success { background: var(--sage-pale);  color: var(--sage);  border: 1px solid var(--sage-light); }
.flash-error   { background: var(--rose-pale);  color: var(--rose);  border: 1px solid var(--rose); }
.flash-info    { background: #eaf3f7;            color: var(--sky);   border: 1px solid var(--sky-light); }
.flash-warning { background: #fdf6e3;            color: var(--gold);  border: 1px solid var(--gold); }

/* ── TIMELINE (prontuário) ─────────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: rgba(107,143,113,0.15); }

.tl-item { position: relative; margin-bottom: 18px; }
.tl-dot  { position: absolute; left: -32px; top: 4px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--sage); background: var(--warm-white); z-index: 1; }
.tl-dot.filled { background: var(--sage); }

.tl-card { background: var(--warm-white); border: 1px solid rgba(107,143,113,0.15); border-radius: var(--r-sm); padding: 14px 16px; box-shadow: var(--shadow); }
.tl-date  { font-size: 0.68rem; color: var(--stone-mid); margin-bottom: 4px; }
.tl-title { font-size: 0.82rem; font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-body  { font-size: 0.75rem; color: var(--stone-mid); line-height: 1.55; }

/* ── CHIP TAGS ─────────────────────────────────────────────────── */
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chip { font-size: 0.64rem; font-weight: 500; padding: 2px 8px; border-radius: 10px; }
.chip-cog  { background: #eaf3f7; color: var(--sky); }
.chip-mot  { background: var(--mint-pale); color: var(--mint); }
.chip-soc  { background: #fdf6e3; color: var(--gold); }

/* ── CALENDÁRIO (FullCalendar overrides) ───────────────────────── */
#calendar {
  background: var(--warm-white);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
}

.fc .fc-toolbar-title    { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 300; }
.fc .fc-button           { background: var(--sage) !important; border-color: var(--sage) !important; font-size: 0.78rem !important; padding: 5px 12px !important; border-radius: 6px !important; }
.fc .fc-button-active    { background: #4d6d52 !important; }
.fc .fc-day-today        { background: rgba(107,143,113,0.06) !important; }
.fc .fc-event            { border-radius: 4px !important; font-size: 0.72rem !important; cursor: pointer; }
.fc .fc-timegrid-slot    { height: 40px !important; }
.fc .fc-col-header-cell  { font-size: 0.72rem; font-weight: 600; }

/* ── REPOSITÓRIO ───────────────────────────────────────────────── */
.repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

.repo-card {
  background: var(--warm-white);
  border: 1px solid rgba(107,143,113,0.15);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.repo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.repo-thumb { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.repo-info  { padding: 10px 12px; }
.repo-title { font-size: 0.78rem; font-weight: 500; margin-bottom: 6px; line-height: 1.3; }
.repo-tags  { display: flex; flex-wrap: wrap; gap: 4px; }
.repo-tag   { font-size: 0.62rem; padding: 1px 7px; border-radius: 8px; }
.repo-fav   { color: var(--gold); font-size: 0.65rem; margin-top: 5px; }

.repo-add-card {
  border: 2px dashed rgba(107,143,113,0.2);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.repo-add-card:hover { border-color: var(--sage); background: var(--sage-pale); }
.repo-add-card span  { font-size: 0.75rem; color: var(--stone-mid); text-align: center; }

/* ── FILTROS ────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filter-chip { padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(107,143,113,0.2); font-size: 0.73rem; cursor: pointer; background: var(--warm-white); color: var(--stone-mid); transition: all 0.12s; }
.filter-chip:hover  { background: var(--sage-pale); border-color: var(--sage-light); }
.filter-chip.active { background: var(--sage-pale); border-color: var(--sage); color: var(--sage); font-weight: 500; }

.search-input {
  flex: 1;
  min-width: 220px;
  padding: 8px 16px;
  border: 1px solid rgba(107,143,113,0.25);
  border-radius: 24px;
  background: var(--warm-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
}

.search-input:focus { outline: none; border-color: var(--sage); }

/* ── MODAL ──────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(61,56,48,0.45);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--warm-white);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(12px); transition: transform 0.2s;
}

.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid rgba(107,143,113,0.12); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1rem; }
.modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--stone-mid); line-height: 1; }
.modal-body   { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid rgba(107,143,113,0.12); display: flex; gap: 8px; justify-content: flex-end; }

/* ── LAYOUT PÚBLICO ─────────────────────────────────────────────── */
.public-header {
  background:    var(--warm-white);
  padding:       14px 40px;
  display:       flex;
  align-items:   center;
  gap:           16px;
  border-bottom: 1px solid rgba(107,143,113,0.15);
  position:      sticky;
  top:           0;
  z-index:       100;
}

.public-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.public-nav a { font-size: 0.82rem; color: var(--stone-mid); }
.public-nav a.active { color: var(--sage); font-weight: 500; }
.public-nav .nav-cta { background: var(--sage); color: white; padding: 7px 18px; border-radius: 20px; font-size: 0.78rem; font-weight: 500; }
.public-nav .nav-cta:hover { background: #5a7d60; text-decoration: none; }

.hero {
  background:   linear-gradient(135deg, var(--sage-pale) 0%, #f0ede8 100%);
  padding:      60px 40px;
  display:      grid;
  grid-template-columns: 1fr 380px;
  gap:          48px;
  align-items:  center;
}

.hero h1 { font-size: 2.4rem; margin-bottom: 14px; }
.hero p   { color: var(--stone-mid); font-size: 0.9rem; line-height: 1.7; max-width: 460px; margin-bottom: 24px; }

.hero-cards { display: flex; flex-direction: column; gap: 10px; }
.hero-card  { background: white; border: 1px solid rgba(107,143,113,0.2); border-radius: var(--r); padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.hero-card-icon { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.hero-card strong { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 2px; }
.hero-card p { font-size: 0.72rem; color: var(--stone-mid); line-height: 1.4; }

/* ── LOGIN ──────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display:    flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sidebar-bg) 0%, #1a1410 100%);
  padding:    20px;
}

.login-box {
  background:    var(--warm-white);
  border-radius: 16px;
  padding:       40px 36px;
  width:         100%;
  max-width:     380px;
  box-shadow:    0 24px 80px rgba(0,0,0,0.4);
}

.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .logo-mark { width: 52px; height: 52px; font-size: 22px; margin: 0 auto 10px; background: var(--sage); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-style: italic; color: white; }
.login-logo h2 { font-size: 1rem; font-weight: 300; color: var(--stone-mid); }
.login-logo h2 em { color: var(--sage); font-style: italic; }

/* ── BOOKING STEPS ──────────────────────────────────────────────── */
.booking-steps { display: flex; gap: 24px; padding: 18px 40px; background: var(--cream); border-bottom: 1px solid rgba(107,143,113,0.12); }
.bstep { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: rgba(107,99,87,0.4); }
.bstep.done .bnum, .bstep.current .bnum { background: var(--sage); color: white; border-color: var(--sage); }
.bstep.current { color: var(--stone); }
.bnum { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(107,99,87,0.25); display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 600; flex-shrink: 0; }
.bstep-arrow { color: rgba(107,99,87,0.25); }

/* ── CALENDÁRIO MINI (agendamento público) ──────────────────────── */
.mini-cal { width: 100%; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-header span { font-family: 'Fraunces', serif; font-size: 0.95rem; }
.cal-nav { background: none; border: 1px solid rgba(107,143,113,0.2); border-radius: 6px; padding: 3px 9px; cursor: pointer; font-size: 0.8rem; color: var(--stone-mid); }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day-name { text-align: center; font-size: 0.6rem; font-weight: 600; text-transform: uppercase; color: var(--stone-mid); padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.76rem; border-radius: 6px; cursor: pointer; color: var(--stone-mid); transition: all 0.12s; }
.cal-day.avail { background: var(--sage-pale); color: var(--sage); font-weight: 500; }
.cal-day.avail:hover { background: var(--sage); color: white; }
.cal-day.sel  { background: var(--sage); color: white; font-weight: 600; }
.cal-day.off  { color: rgba(107,99,87,0.25); cursor: default; }
.cal-day.empty { visibility: hidden; }
.time-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 14px; }
.time-slot  { padding: 8px 4px; text-align: center; border: 1px solid rgba(107,143,113,0.2); border-radius: 6px; font-size: 0.75rem; cursor: pointer; background: var(--sage-pale); color: var(--sage); font-weight: 500; transition: all 0.12s; }
.time-slot:hover { background: var(--sage); color: white; }
.time-slot.sel { background: var(--sage); color: white; }
.time-slot.off { background: var(--cream); color: rgba(107,99,87,0.3); cursor: default; border-color: transparent; }

/* ── UTILITÁRIOS ────────────────────────────────────────────────── */
.d-flex    { display: flex; }
.gap-2     { gap: 8px; }
.gap-3     { gap: 12px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.ml-auto   { margin-left: auto; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 28px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.text-muted  { color: var(--stone-mid); }
.text-sm     { font-size: 0.75rem; }
.text-xs     { font-size: 0.68rem; }
.text-sage   { color: var(--sage); }
.text-terra  { color: var(--terra); }
.text-rose   { color: var(--rose); }
.fw-500      { font-weight: 500; }
.divider { height: 1px; background: rgba(107,143,113,0.12); margin: 16px 0; }
.hidden  { display: none !important; }

/* ── SPINNER ────────────────────────────────────────────────────── */
.spinner { width:18px;height:18px;border:2px solid rgba(107,143,113,0.2);border-top-color:var(--sage);border-radius:50%;animation:spin .7s linear infinite;display:inline-block;vertical-align:middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVO ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { padding: 0 14px; }
  .page-body { padding: 14px; }
}

/* ── SITE PÚBLICO v2 (Jucely Dantas) ─────────────────────────────── */
:root {
  --teal:       #1F6F8B;
  --teal-deep:  #14505F;
  --teal-pale:  #E3F0F4;
  --wine:       #B54A6B;
  --wine-pale:  #F7E9EE;
}

.section { padding: 64px 40px; }
.section-title { font-size: 1.6rem; margin-bottom: 6px; }
.section-sub { color: var(--stone-mid); font-size: 0.88rem; margin-bottom: 28px; }

.brand-name { font-family:'Fraunces',serif; font-size: 1rem; color: var(--stone); line-height: 1.15; }
.brand-name strong { font-weight: 600; }
.brand-tag { font-size: 0.62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

.hero-v2 { background: linear-gradient(135deg, var(--sage-pale) 0%, var(--teal-pale) 100%); }
.hero-kicker { display:inline-block; background: var(--warm-white); border: 1px solid rgba(31,111,139,.25); color: var(--teal); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 20px; margin-bottom: 18px; }

.trust-strip { display:flex; flex-wrap:wrap; gap: 14px; padding: 22px 40px; background: var(--warm-white); border-top:1px solid rgba(107,143,113,.12); border-bottom:1px solid rgba(107,143,113,.12); justify-content:center; }
.trust-item { display:flex; align-items:center; gap:9px; font-size:.78rem; color:var(--stone-mid); }
.trust-item strong { color: var(--stone); font-weight:600; }
.trust-dot { width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;background:var(--sage-pale); }

.about-grid { display:grid; grid-template-columns: 340px 1fr; gap: 44px; align-items:start; }
.about-photo { border-radius: var(--r); overflow:hidden; box-shadow: var(--shadow-lg); background: var(--sage-pale); }
.about-photo img { width:100%; display:block; }
.about-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.about-badge { background: var(--sage-pale); color: var(--sage); font-size:.7rem; font-weight:600; padding:6px 12px; border-radius:16px; }
.about-badge.teal { background: var(--teal-pale); color: var(--teal); }
.about-badge.wine { background: var(--wine-pale); color: var(--wine); }
.about-quote { margin-top:20px; padding:16px 18px; background:var(--warm-white); border-left:3px solid var(--sage); border-radius:0 var(--r) var(--r) 0; font-size:.85rem; color:var(--stone-mid); font-style:italic; line-height:1.7; }

.steps-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; }
.step-card { background:var(--warm-white); border-radius:var(--r); padding:24px 20px; box-shadow:var(--shadow); position:relative; }
.step-num { width:32px;height:32px;border-radius:50%;background:var(--sage);color:#fff;display:flex;align-items:center;justify-content:center;font-family:'Fraunces',serif;font-size:.95rem;margin-bottom:12px; }
.step-card h3 { font-size:.95rem; margin-bottom:6px; font-weight:600; font-family:'DM Sans',sans-serif; }
.step-card p { font-size:.78rem; color:var(--stone-mid); line-height:1.6; }

.wa-float { position:fixed; right:20px; bottom:20px; z-index:200; width:56px; height:56px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 18px rgba(0,0,0,.25); transition:transform .15s; }
.wa-float:hover { transform:scale(1.08); text-decoration:none; }
.wa-float svg { width:30px; height:30px; fill:#fff; }

.btn-wa { background:#25D366; color:#fff !important; }
.btn-wa:hover { background:#1fb457; text-decoration:none; }

@media (max-width: 900px) {
  .section { padding: 44px 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-v2 { padding: 44px 20px; }
  .public-header { padding: 12px 16px; flex-wrap: wrap; }
  .public-nav { gap: 14px; }
  .trust-strip { padding: 18px 16px; }
}
