:root {
  --green-900: #12362c;
  --green-700: #1f6b53;
  --green-500: #2e9e77;
  --green-300: #8fd9bd;
  --green-100: #e2f5ec;
  --sand-100: #faf7f2;
  --sand-200: #f0ebe2;
  --ink-900: #1b2523;
  --ink-600: #4d5b57;
  --ink-400: #8a9995;
  --grey-100: #eceeed;
  --grey-300: #cfd5d3;
  --danger: #c0392b;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(18, 54, 44, .08);
  --shadow-md: 0 10px 30px rgba(18, 54, 44, .12);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--sand-100);
  line-height: 1.6;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 .5rem;
  color: var(--green-900);
}

p { margin: 0 0 1rem; }

a { color: var(--green-700); }

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

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-700);
  color: var(--white);
  padding: .75rem 1rem;
  z-index: 100;
}

.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
}

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
}

.brand-text { display: flex; flex-direction: column; }

.brand-text strong {
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--green-700);
}

.brand-text small {
  font-size: .72rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: .95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-600);
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--green-700);
  border-bottom-color: var(--green-300);
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 12% 20%, var(--green-100), transparent 55%),
    linear-gradient(135deg, #f4fbf7 0%, var(--sand-100) 70%);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.hero-inner { max-width: 720px; }

.hero-eyebrow {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  letter-spacing: -.02em;
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--ink-600);
  max-width: 55ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.hero-badges li {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .88rem;
  color: var(--ink-600);
  box-shadow: var(--shadow-sm);
}

/* Secções */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }

.section-head { margin-bottom: 2rem; max-width: 60ch; }

.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }

.section-head p { color: var(--ink-600); margin: 0; }

/* Cartões de profissionais */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pro-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pro-card-photo {
  background: var(--green-100);
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.pro-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pro-card-body h3 { font-size: 1.2rem; margin-bottom: .15rem; }

.pro-role {
  color: var(--green-700);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.pro-bio {
  color: var(--ink-600);
  font-size: .93rem;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

.tags li {
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .78rem;
  font-weight: 600;
}

.pro-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--ink-400);
  margin-bottom: 1rem;
}

.pro-meta strong { color: var(--ink-900); }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.4rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}

.btn-primary { background: var(--green-700); color: var(--white); }

.btn-primary:hover { background: var(--green-900); }

.btn-primary:active { transform: scale(.98); }

.btn-block { width: 100%; }

.btn-back {
  background: none;
  border: 0;
  color: var(--green-700);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: .4rem 0;
  margin-bottom: 1.25rem;
}

.btn-back:hover { text-decoration: underline; }

/* Passos */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-weight: 700;
  margin-bottom: .75rem;
}

.steps h3 { font-size: 1.05rem; }

.steps p { color: var(--ink-600); font-size: .93rem; margin: 0; }

/* Resumo do profissional */
.pro-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.pro-summary img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-100);
  flex-shrink: 0;
}

.pro-summary h2 { font-size: 1.35rem; margin-bottom: .1rem; }

/* Agenda */
.schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-head h3 {
  font-size: 1.1rem;
  margin: 0;
}

.calendar-head h3::first-letter { text-transform: uppercase; }

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sand-200);
  background: var(--white);
  color: var(--green-700);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.nav-btn:hover:not(:disabled) { background: var(--green-100); }

.nav-btn:disabled { opacity: .35; cursor: not-allowed; }

.weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .4rem;
}

.weekdays {
  margin-bottom: .4rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-400);
  text-align: center;
}

.day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--grey-100);
  color: var(--ink-400);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: not-allowed;
  padding: 0;
}

.day.is-empty { background: transparent; border-color: transparent; }

.day.is-free {
  background: var(--green-100);
  color: var(--green-900);
  border-color: var(--green-300);
  cursor: pointer;
}

.day.is-free:hover { background: var(--green-300); }

.day.is-selected {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.day-slots { font-size: .68rem; font-weight: 600; opacity: .85; }

.day.is-today { box-shadow: inset 0 0 0 2px var(--green-500); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 1rem 0 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--sand-200);
  font-size: .82rem;
  color: var(--ink-600);
}

.legend li { display: flex; align-items: center; gap: .4rem; }

.dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.dot-free { background: var(--green-100); border: 1px solid var(--green-300); }

.dot-busy { background: var(--grey-100); border: 1px solid var(--grey-300); }

.dot-selected { background: var(--green-700); }

.slots-panel h3 { font-size: 1.1rem; }

.slots-date {
  color: var(--ink-600);
  font-size: .92rem;
}

.slots-date::first-letter { text-transform: uppercase; }

.slots-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .6rem;
}

.slot {
  border: 1px solid var(--green-300);
  background: var(--green-100);
  color: var(--green-900);
  border-radius: var(--radius-sm);
  padding: .7rem .5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}

.slot:hover { background: var(--green-500); color: var(--white); }

.slot.is-taken {
  background: var(--grey-100);
  border-color: var(--grey-300);
  color: var(--ink-400);
  cursor: not-allowed;
  text-decoration: line-through;
}

.empty-state {
  color: var(--ink-400);
  font-size: .92rem;
  background: var(--sand-100);
  border: 1px dashed var(--grey-300);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 54, 44, .55);
}

.modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: min(100%, 520px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.modal-close {
  position: absolute;
  top: .75rem;
  right: 1rem;
  background: none;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-400);
  cursor: pointer;
}

.modal-close:hover { color: var(--ink-900); }

.booking-summary {
  background: var(--green-100);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  color: var(--green-900);
  font-size: .95rem;
}

/* Formulário */
.field { margin-bottom: 1rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label { display: block; font-weight: 600; font-size: .9rem; }

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  font: inherit;
  margin-top: .3rem;
  background: var(--white);
}

input:focus { border-color: var(--green-500); }

input.is-invalid { border-color: var(--danger); background: #fdf3f2; }

.error {
  color: var(--danger);
  font-size: .82rem;
  margin: .3rem 0 0;
  min-height: 1rem;
}

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem .6rem;
  align-items: start;
  margin: 1.25rem 0;
}

.field-check input { margin-top: .35rem; }

.field-check label { font-weight: 400; font-size: .88rem; }

.field-check .error { grid-column: 1 / -1; }

/* Confirmação */
.confirmation { text-align: center; }

.confirmation-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-note {
  font-size: .85rem;
  color: var(--ink-400);
  background: var(--sand-100);
  border-radius: var(--radius-sm);
  padding: .75rem;
}

/* Rodapé */
.site-footer {
  background: var(--green-900);
  color: var(--green-100);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.site-footer p { margin: 0 0 .25rem; font-size: .92rem; }

.footer-note {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 1rem;
  font-size: .82rem;
  opacity: .75;
}

/* Vistas */
.view { display: none; }

.view.is-active { display: block; }

/* Responsivo */
@media (max-width: 900px) {
  .schedule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: .6rem 0;
  }
  .site-nav { gap: 1.1rem; font-size: .85rem; }
  .modal-card { padding: 1.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .pro-summary { flex-direction: column; text-align: center; }
  .day { font-size: .85rem; }
  .day-slots { display: none; }
  .weekdays, .calendar-days { gap: .25rem; }
  .panel { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
