/* ============================================================
   SISTEMA DE AGENDA · CAMILA MORAES
   Design profissional · SaaS-style
   ============================================================ */

:root{
  /* neutros */
  --bg:#FAFAF8;
  --bg-soft:#F4F2EE;
  --surface:#FFFFFF;
  --surface-2:#F7F5F1;

  --border:#E8E4DC;
  --border-soft:#F0EDE6;
  --border-strong:#D5CFC4;

  --text:#1A1F22;
  --text-soft:#4A5258;
  --text-mute:#8A8E92;
  --text-faint:#B8BAB9;

  /* brand */
  --teal:#2C5F5E;
  --teal-hover:#234C4B;
  --teal-soft:#E8F0EE;
  --teal-light:#5E8E8D;

  --gold:#B89865;
  --gold-soft:#F5EFE2;

  /* status */
  --ok:#2D8F6F;
  --ok-soft:#E0F0E9;
  --warn:#C5933D;
  --warn-soft:#FAF1DC;
  --danger:#B5524C;
  --danger-soft:#FAE5E3;
  --info:#3A6EA5;
  --info-soft:#E5EEF9;

  /* sombras sutis */
  --shadow-xs:0 1px 2px rgba(20,25,28,.04);
  --shadow-sm:0 1px 3px rgba(20,25,28,.06), 0 1px 2px rgba(20,25,28,.04);
  --shadow:0 4px 12px rgba(20,25,28,.06), 0 2px 4px rgba(20,25,28,.04);
  --shadow-lg:0 12px 32px rgba(20,25,28,.08), 0 4px 8px rgba(20,25,28,.04);

  /* spacing */
  --radius-xs:6px;
  --radius-sm:8px;
  --radius:10px;
  --radius-lg:14px;
  --radius-xl:20px;

  /* transição */
  --t:.18s ease;
  --t-slow:.28s ease;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html, body{
  font-family:'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  font-size:14px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{ color:var(--teal); text-decoration:none; transition:color var(--t); }
a:hover{ color:var(--teal-hover); }

button{
  font-family:inherit;
  border:0;
  cursor:pointer;
  background:none;
  color:inherit;
}

input, select, textarea{ font-family:inherit; }

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
.serif{
  font-family:'Cormorant Garamond', Georgia, serif;
}

h1, h2, h3, h4, h5{
  font-family:'Inter', 'DM Sans', sans-serif;
  font-weight:600;
  letter-spacing:-.015em;
  line-height:1.25;
  color:var(--text);
}

h1{ font-size:28px; }
h2{ font-size:20px; }
h3{ font-size:17px; }
h4{ font-size:15px; }
h5{ font-size:13px; }

/* heading com toque brand (só telas públicas) */
.heading-brand{
  font-family:'Cormorant Garamond', serif;
  font-weight:500;
  font-style:italic;
}
.heading-brand strong, .heading-brand em{
  font-weight:600;
  font-style:italic;
  color:var(--teal);
}

.eyebrow{
  font-family:inherit;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--text-mute);
}

.muted{ color:var(--text-mute); }
.soft{ color:var(--text-soft); }
.faint{ color:var(--text-faint); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}
.container-narrow{ max-width:680px; }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px 14px;
  border-radius:var(--radius-sm);
  font-weight:500;
  font-size:13px;
  letter-spacing:-.005em;
  transition:all var(--t);
  cursor:pointer;
  border:1px solid transparent;
  white-space:nowrap;
  line-height:1.2;
}

.btn-primary{
  background:var(--teal);
  color:#fff;
  border-color:var(--teal);
}
.btn-primary:hover{
  background:var(--teal-hover);
  border-color:var(--teal-hover);
}

.btn-secondary{
  background:var(--surface);
  color:var(--text);
  border-color:var(--border);
}
.btn-secondary:hover{
  background:var(--surface-2);
  border-color:var(--border-strong);
}

.btn-ghost{
  background:transparent;
  color:var(--text-soft);
  border-color:transparent;
}
.btn-ghost:hover{
  background:var(--bg-soft);
  color:var(--text);
}

.btn-danger{
  background:var(--surface);
  color:var(--danger);
  border-color:var(--border);
}
.btn-danger:hover{
  background:var(--danger-soft);
  border-color:var(--danger);
}

.btn-sm{ padding:6px 10px; font-size:12px; }
.btn-lg{ padding:11px 22px; font-size:14px; font-weight:600; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ============================================================
   CARDS / SURFACES
   ============================================================ */
.surface{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
}
.surface-flat{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
}

.panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:20px;
}
.panel-sm{ padding:14px; }
.panel-lg{ padding:24px; }

.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
  padding-bottom:14px;
  border-bottom:1px solid var(--border-soft);
}
.panel-head h2{
  font-size:16px;
  font-weight:600;
}
.panel-head h3{
  font-size:14px;
  font-weight:600;
}
.panel-head .head-sub{
  font-size:12px;
  color:var(--text-mute);
  margin-top:2px;
}

/* card interativo (escolhas) */
.choice{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
  cursor:pointer;
  transition:all var(--t);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.choice:hover{
  border-color:var(--teal);
  box-shadow:var(--shadow-sm);
}
.choice.selected{
  border-color:var(--teal);
  background:var(--teal-soft);
  border-width:2px;
}

/* ============================================================
   BADGES (mais sutis)
   ============================================================ */
.badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:2px 8px;
  border-radius:var(--radius-xs);
  font-size:11px;
  font-weight:500;
  letter-spacing:.01em;
  background:var(--bg-soft);
  color:var(--text-soft);
  white-space:nowrap;
  border:1px solid var(--border);
  line-height:1.5;
}
.badge .dot{
  width:6px; height:6px;
  border-radius:50%;
  background:var(--text-mute);
  display:inline-block;
}
.badge.ok{ background:var(--ok-soft); color:var(--ok); border-color:transparent; }
.badge.ok .dot{ background:var(--ok); }
.badge.warn{ background:var(--warn-soft); color:#8a651b; border-color:transparent; }
.badge.warn .dot{ background:var(--warn); }
.badge.danger{ background:var(--danger-soft); color:var(--danger); border-color:transparent; }
.badge.danger .dot{ background:var(--danger); }
.badge.info{ background:var(--info-soft); color:var(--info); border-color:transparent; }
.badge.info .dot{ background:var(--info); }
.badge.gold{ background:var(--gold-soft); color:#7a5e1f; border-color:transparent; }
.badge.gold .dot{ background:var(--gold); }
.badge.teal{ background:var(--teal-soft); color:var(--teal); border-color:transparent; }
.badge.teal .dot{ background:var(--teal); }

/* ============================================================
   FORMS
   ============================================================ */
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:16px;
}
.field label{
  font-size:12px;
  font-weight:600;
  color:var(--text-soft);
  letter-spacing:.01em;
}
.field input,
.field textarea,
.field select{
  font-size:14px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:var(--surface);
  color:var(--text);
  transition:border-color var(--t), box-shadow var(--t);
  outline:none;
  line-height:1.4;
}
.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color:var(--teal);
  box-shadow:0 0 0 3px rgba(44,95,94,.08);
}
.field textarea{
  resize:vertical;
  min-height:84px;
  line-height:1.5;
  font-family:inherit;
}
.field .hint{
  font-size:11px;
  color:var(--text-mute);
}

.radio-group{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.radio-pill{
  padding:8px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:var(--surface);
  font-size:13px;
  font-weight:500;
  text-align:center;
  cursor:pointer;
  transition:all var(--t);
  color:var(--text-soft);
}
.radio-pill:hover{ border-color:var(--teal); }
.radio-pill.active{
  background:var(--teal);
  color:#fff;
  border-color:var(--teal);
}

/* ============================================================
   STEPPER
   ============================================================ */
.stepper{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:8px 0 32px;
}
.stepper .step{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--text-mute);
  font-size:13px;
  font-weight:500;
}
.stepper .step .dot{
  width:24px; height:24px;
  border-radius:50%;
  background:var(--surface);
  border:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:12px;
  font-weight:600;
  color:var(--text-mute);
  transition:all var(--t);
}
.stepper .step.active{ color:var(--text); font-weight:600; }
.stepper .step.active .dot{
  background:var(--teal);
  border-color:var(--teal);
  color:#fff;
}
.stepper .step.done{ color:var(--teal); }
.stepper .step.done .dot{
  background:var(--teal-soft);
  border-color:var(--teal);
  color:var(--teal);
}
.stepper .line{
  height:1px;
  width:48px;
  background:var(--border);
  margin:0 14px;
}
.stepper .line.done{ background:var(--teal); }

/* ============================================================
   CALENDÁRIO
   ============================================================ */
.calendar{
  background:var(--surface);
  border-radius:var(--radius-lg);
  padding:20px;
  border:1px solid var(--border);
}
.calendar-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}
.calendar-header h3{
  font-size:15px;
  font-weight:600;
}
.calendar-header .nav{ display:flex; gap:4px; }
.calendar-header .nav button{
  width:30px; height:30px;
  border-radius:var(--radius-sm);
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--text-soft);
  font-size:14px;
  transition:all var(--t);
}
.calendar-header .nav button:hover{
  background:var(--surface-2);
  border-color:var(--border-strong);
}

.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:4px;
}
.calendar-grid .wd{
  text-align:center;
  font-size:10px;
  color:var(--text-mute);
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:8px 0;
}
.calendar-day{
  aspect-ratio:1;
  border-radius:var(--radius-sm);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:500;
  color:var(--text);
  background:transparent;
  cursor:pointer;
  transition:all var(--t);
  position:relative;
}
.calendar-day:hover{
  background:var(--bg-soft);
}
.calendar-day.unavailable{
  color:var(--text-faint);
  cursor:not-allowed;
}
.calendar-day.unavailable:hover{ background:transparent; }
.calendar-day.available{
  background:var(--teal-soft);
  color:var(--teal);
  font-weight:600;
}
.calendar-day.available:hover{
  background:var(--teal);
  color:#fff;
}
.calendar-day.empty{ background:transparent; cursor:default; }
.calendar-day.empty:hover{ background:transparent; }
.calendar-day.selected{
  background:var(--teal);
  color:#fff;
}
.calendar-day.today{
  outline:1.5px solid var(--gold);
  outline-offset:-2px;
}

/* slots */
.timeslots{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(86px, 1fr));
  gap:8px;
}
.timeslot{
  padding:10px;
  text-align:center;
  border-radius:var(--radius-sm);
  background:var(--surface);
  border:1px solid var(--border);
  font-weight:600;
  font-size:13px;
  color:var(--text);
  cursor:pointer;
  transition:all var(--t);
}
.timeslot:hover{
  border-color:var(--teal);
  background:var(--teal-soft);
  color:var(--teal);
}
.timeslot.taken{
  opacity:.4;
  cursor:not-allowed;
  text-decoration:line-through;
}
.timeslot.taken:hover{
  border-color:var(--border);
  background:var(--surface);
  color:var(--text);
}
.timeslot.selected{
  background:var(--teal);
  color:#fff;
  border-color:var(--teal);
}

/* ============================================================
   MOCKUP BAR
   ============================================================ */
.mock-bar{
  background:var(--text);
  color:#fff;
  padding:8px 20px;
  text-align:center;
  font-size:11px;
  letter-spacing:.02em;
  font-weight:500;
}
.mock-bar b{ color:var(--gold); }
.mock-bar a{
  color:#fff;
  text-decoration:underline;
  margin-left:14px;
  font-weight:500;
}
.mock-bar a:hover{ color:var(--gold); }

/* ============================================================
   PUBLIC HEADER
   ============================================================ */
.public-header{
  background:var(--surface);
  border-bottom:1px solid var(--border);
  padding:14px 0;
}
.public-header .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.public-logo{
  font-family:'Cormorant Garamond', serif;
  font-size:22px;
  font-weight:600;
  color:var(--text);
  font-style:italic;
}
.public-logo em{ color:var(--teal); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(20,25,28,.5);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:200;
  padding:20px;
  backdrop-filter:blur(2px);
}
.modal{
  background:var(--surface);
  border-radius:var(--radius-lg);
  max-width:520px;
  width:100%;
  max-height:90vh;
  overflow-y:auto;
  padding:28px;
  position:relative;
  box-shadow:var(--shadow-lg);
  border:1px solid var(--border);
}
.modal-close{
  position:absolute;
  top:16px; right:16px;
  width:28px; height:28px;
  border-radius:var(--radius-sm);
  background:transparent;
  font-size:16px;
  color:var(--text-mute);
  display:flex; align-items:center; justify-content:center;
  transition:all var(--t);
}
.modal-close:hover{ background:var(--bg-soft); color:var(--text); }

.modal h2{
  font-size:18px;
  font-weight:600;
  margin-bottom:4px;
}
.modal .modal-sub{
  color:var(--text-mute);
  font-size:13px;
  margin-bottom:20px;
}

/* ============================================================
   UTIL
   ============================================================ */
.row{ display:flex; gap:10px; align-items:center; }
.col{ display:flex; flex-direction:column; gap:10px; }
.spread{ display:flex; justify-content:space-between; align-items:center; }
.wrap{ flex-wrap:wrap; }

.gap-4{ gap:4px; } .gap-6{ gap:6px; } .gap-8{ gap:8px; } .gap-12{ gap:12px; } .gap-16{ gap:16px; } .gap-24{ gap:24px; }

.mt-0{ margin-top:0; } .mt-4{ margin-top:4px; } .mt-8{ margin-top:8px; } .mt-12{ margin-top:12px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-32{ margin-top:32px; }
.mb-0{ margin-bottom:0; } .mb-4{ margin-bottom:4px; } .mb-8{ margin-bottom:8px; } .mb-12{ margin-bottom:12px; } .mb-16{ margin-bottom:16px; } .mb-24{ margin-bottom:24px; } .mb-32{ margin-bottom:32px; }

.text-xs{ font-size:11px; }
.text-sm{ font-size:12px; }
.text-md{ font-size:14px; }
.text-lg{ font-size:16px; }
.text-xl{ font-size:18px; }
.text-2xl{ font-size:24px; }
.text-3xl{ font-size:30px; }
.text-center{ text-align:center; }
.text-right{ text-align:right; }
.fw-500{ font-weight:500; }
.fw-600{ font-weight:600; }
.fw-700{ font-weight:700; }
.hidden{ display:none !important; }

.divider{
  height:1px;
  background:var(--border-soft);
  margin:16px 0;
}

/* avatar */
.avatar{
  width:32px; height:32px;
  border-radius:50%;
  background:var(--bg-soft);
  color:var(--text-soft);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  font-size:11px;
  letter-spacing:.02em;
  border:1px solid var(--border);
  flex-shrink:0;
}
.avatar-sm{ width:24px; height:24px; font-size:10px; }
.avatar-lg{ width:44px; height:44px; font-size:14px; }
.avatar-xl{ width:60px; height:60px; font-size:18px; }

.avatar.brand{ background:var(--teal); color:#fff; border-color:var(--teal); }
.avatar.gold{ background:var(--gold-soft); color:#7a5e1f; }

/* responsive */
@media (max-width:768px){
  h1{ font-size:24px; }
  .stepper{ gap:0; }
  .stepper .line{ width:24px; margin:0 8px; }
  .stepper .step{ font-size:11px; }
  .modal{ padding:22px 18px; }
}
