/* =========================================================
   Klinger Barber — Design tokens (moderno, claro, minimalista)
   ========================================================= */
:root {
  --bg            : #fafafa;
  --bg-alt        : #f2f1ee;
  --surface       : #ffffff;
  --surface-2     : #f5f5f7;
  --border        : #e6e5e1;
  --text          : #14151a;
  --text-muted    : #6b6f76;
  --text-soft     : #9a9ea5;

  --accent        : #4f46e5;   /* indigo-600 */
  --accent-dark   : #3730a3;
  --accent-soft   : #eeecfd;
  --lime          : #c6f24e;   /* acento vibrante secundário */

  --radius-sm     : 10px;
  --radius-md     : 16px;
  --radius-lg     : 24px;
  --radius-xl     : 32px;

  --shadow-sm     : 0 2px 8px rgba(20,21,26,0.05);
  --shadow-md     : 0 8px 24px rgba(20,21,26,0.08);
  --shadow-lg     : 0 20px 48px rgba(20,21,26,0.12);

  --font-display  : 'Space Grotesk', sans-serif;
  --font-body     : 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

button { font-family: var(--font-body); cursor: pointer; border: none; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250,250,250,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar { padding: 16px 0; }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-brand .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-menu a:hover { color: var(--text); }

.btn-agendar {
  background: var(--text);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}

.btn-agendar:hover { background: var(--accent); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content { max-width: 640px; }

.hero-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--text);
  color: #fff;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}

.hero-stat span { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================================
   Section header (shared)
   ========================================================= */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p { color: var(--text-muted); font-size: 1.02rem; }

/* =========================================================
   Serviços
   ========================================================= */
.servicos { padding: 88px 0; background: var(--surface); }

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.servico-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.servico-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.servico-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.servico-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }

.preco-partir { font-size: 0.78rem; color: var(--text-soft); margin-bottom: 12px; }

.servico-precos { list-style: none; margin-bottom: 18px; }

.servico-precos li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}

.servico-precos li span:last-child { font-weight: 600; }

.btn-card-agendar {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  transition: background 0.2s, color 0.2s;
}

.btn-card-agendar:hover { background: var(--text); color: #fff; }

/* =========================================================
   Sobre
   ========================================================= */
.sobre { padding: 88px 0; }

.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.sobre-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.sobre-text h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }

.sobre-text p { color: var(--text-muted); margin-bottom: 16px; }

.sobre-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.feature .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* =========================================================
   Agendamento — painel único, sem steps
   ========================================================= */
.agendamento { padding: 88px 0; background: var(--surface); }

.booking-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.booking-block { margin-bottom: 28px; }

.booking-block:last-child { margin-bottom: 0; }

.booking-block-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}

.booking-block-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.booking-block.done .booking-block-num { background: var(--lime); color: var(--text); }

.booking-summary-line {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-left: 36px;
}

/* Etapa colapsável: escondida até habilitada, com transição suave */
.booking-step {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.45s ease;
}

.booking-step.open { max-height: 900px; opacity: 1; }

.field-row { display: flex; gap: 12px; flex-wrap: wrap; }

.select-field, .text-field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.94rem;
  color: var(--text);
  font-family: var(--font-body);
}

.select-field:focus, .text-field:focus { outline: none; border-color: var(--accent); }

.service-duration-hint { font-size: 0.8rem; color: var(--text-soft); margin-top: 8px; }

/* Calendário */
.cal-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-nav-title { font-weight: 700; font-size: 0.95rem; text-transform: capitalize; }

.cal-arrows { display: flex; gap: 6px; }

.cal-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cal-arrow-btn:hover { background: var(--accent-soft); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
}

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

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-soft);
}

.cal-day.other-month { opacity: 0; pointer-events: none; }

.cal-day.available {
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.cal-day.available:hover { background: var(--accent-soft); transform: scale(1.06); }

.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }

.cal-day.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

.cal-day.disabled { text-decoration: line-through; opacity: 0.35; }

.time-section { margin-top: 20px; }

.time-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}

.slot {
  padding: 10px 6px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.slot:hover { border-color: var(--accent); }

.slot.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

.slot.taken { opacity: 0.3; text-decoration: line-through; cursor: not-allowed; }

.empty-hint { font-size: 0.85rem; color: var(--text-soft); }

.booking-footer { margin-top: 32px; }

.btn-confirm {
  width: 100%;
  background: var(--text);
  color: #fff;
  padding: 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-confirm:hover:not(:disabled) { background: var(--accent); transform: translateY(-2px); }

.btn-confirm:disabled { opacity: 0.6; cursor: not-allowed; }

/* Confirmação */
.confirmacao-message {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  box-shadow: var(--shadow-md);
}

.confirmacao-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--text);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.confirmacao-message h3 { font-size: 1.4rem; margin-bottom: 10px; }

.confirmacao-message p { color: var(--text-muted); margin-bottom: 24px; }

.resumo-agendamento {
  text-align: left;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.resumo-agendamento p { margin-bottom: 6px; color: var(--text); }

/* =========================================================
   Contato
   ========================================================= */
.contato { padding: 88px 0; }

.contato-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.contato-info { display: flex; flex-direction: column; gap: 22px; }

.info-item { display: flex; gap: 16px; align-items: flex-start; }

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }

.info-item p { color: var(--text-muted); font-size: 0.9rem; }

.contato-social {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contato-social h3 { font-size: 1.1rem; margin-bottom: 16px; }

.social-links { display: flex; gap: 12px; }

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.social-link:hover { background: var(--accent); transform: translateY(-2px); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.footer p { margin-bottom: 4px; }

/* =========================================================
   Scroll animations
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .sobre-content, .contato-grid, .hero-grid { grid-template-columns: 1fr; }
  .sobre-image { order: -1; }
  .hero-photo { order: -1; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .btn-agendar { display: none; }
  .hamburger { display: flex; }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }

  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

  .hero { padding: 64px 0 56px; }
  .booking-card { padding: 26px 20px; }
  .sobre-features { grid-template-columns: 1fr; }
}
