/* ============================================================
   Agenda do Mestre — página de apresentação da barbearia
   Cores da barbearia (definidas na view):
   --c / --c-fg        botão principal sobre fundo claro
   --cd / --cd-fg      botão principal sobre fundo escuro
   ============================================================ */

.lp {
  --ink: #141414;
  --ink-2: #1e1e1e;
  --paper: #f4f2ee;
  --card: #ffffff;
  --line: #e5e0d7;
  --line-2: #d6cfc3;
  --text: #171717;
  --muted: #645e55;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255,255,255,.74);
  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px; /* espaço da barra fixa no celular */
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp a { color: inherit; }
.lp :focus-visible { outline: 3px solid var(--focus, #2a6df4); outline-offset: 3px; }
.lp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ── Hero ──────────────────────────────────────────────────── */
.lp-hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding: calc(56px + env(safe-area-inset-top)) 0 40px;
}
/* Foto do ambiente: no celular é uma faixa alta própria (fotos de celular são em pé),
   com o texto abaixo; no computador ocupa a metade direita. Nada de texto em cima do rosto. */
.lp-hero.has-cover { padding-top: 0; }
.lp-hero-media { position: relative; height: min(118vw, 64vh); min-height: 300px; margin-bottom: -56px; }
.lp-hero-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.lp-hero-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,20,20,.35) 0%, rgba(20,20,20,0) 22%, rgba(20,20,20,0) 62%, rgba(20,20,20,1) 100%);
}
.lp-hero:not(.has-cover)::before {
  /* textura discreta de listras finas, sem imagem */
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
}
.lp-hero-inner { position: relative; z-index: 1; }

.lp-logo-ring {
  width: 88px; height: 88px; border-radius: 50%;
  border: 2px solid var(--cd);
  overflow: hidden; background: #262626;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.lp-logo-ring img { width: 100%; height: 100%; object-fit: cover; transform-origin: center center; }
.lp-monogram { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: .02em; color: #fff; }

.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-muted); margin-bottom: 12px;
}
.lp-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--cd); }
.lp-name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 9vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 14px; max-width: 16ch; overflow-wrap: anywhere;
}
.lp-bio { font-size: 1.05rem; line-height: 1.55; color: var(--on-dark-muted); margin: 0 0 26px; max-width: 46ch; }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: .9rem; color: var(--on-dark-muted); }
.lp-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.lp-hero-meta a { text-decoration: none; }
.lp-hero-meta a:hover { color: #fff; text-decoration: underline; }

/* ── Botões ────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 12px;
  font-weight: 800; font-size: 1.02rem; text-decoration: none; letter-spacing: .005em;
  border: 1px solid transparent; cursor: pointer;
  transition: filter .15s, transform .15s, background-color .15s;
}
.lp-btn:active { transform: translateY(1px); }
.lp-cta-btn { background: var(--cd); color: var(--cd-fg) !important; border-color: rgba(0,0,0,.12); }
.lp-cta-btn:hover { filter: brightness(.93); }
.lp-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.32); font-weight: 700; }
.lp-btn-ghost:hover { background: rgba(255,255,255,.08); }
.lp-btn-light { background: var(--c); color: var(--c-fg) !important; border-color: rgba(0,0,0,.12); }
.lp-btn-light:hover { filter: brightness(.93); }
.lp-btn-outline { background: #fff; color: var(--text) !important; border-color: var(--line-2); font-weight: 700; }
.lp-btn-outline:hover { border-color: var(--muted); }
.lp-btn-block { width: 100%; }

/* ── Seções ────────────────────────────────────────────────── */
.lp-section { padding: 44px 0 0; }
.lp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lp-h2 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; margin: 0; }
.lp-section-note { font-size: .88rem; color: var(--muted); }

.lp-main { display: grid; gap: 0; }
@media (min-width: 960px) {
  .lp-main { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
  .lp-aside { position: sticky; top: 24px; padding-top: 44px; }
}

/* Serviços */
.lp-svc-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.lp-svc { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.lp-svc:last-child { border-bottom: 0; }
.lp-svc-name { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.lp-svc-desc { font-size: .88rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.lp-svc-right { text-align: right; flex-shrink: 0; }
.lp-svc-price { font-weight: 800; font-size: 1.02rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-svc-dur { font-size: .82rem; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.lp-svc-more { padding: 14px 18px; font-size: .88rem; color: var(--muted); }

/* Galeria (ids/classes usados pelo script do carrossel) */
.lp-carousel-track {
  display: flex; gap: 13px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 -20px; padding: 0 20px 4px;
  scroll-padding-inline: 20px; /* o encaixe respeita o recuo: 1ª foto não cola na borda */
}
.lp-carousel-track::-webkit-scrollbar { display: none; }
.lp-carousel-item {
  flex-shrink: 0; width: 72%; max-width: 300px; aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden; scroll-snap-align: start;
  background: #e6e1d8;
}
.lp-carousel-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
@media (min-width: 960px) { .lp-carousel-item { width: 260px; } }
.lp-carousel-dots { display: flex; justify-content: center; gap: 2px; padding-top: 10px; }
.lp-dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lp-dot::before { content: ''; width: 7px; height: 7px; border-radius: 4px; background: var(--line-2); transition: width .2s, background-color .2s; }
.lp-dot.active::before { width: 20px; background: var(--ink); }

/* Cartões laterais */
.lp-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 16px; }
.lp-card:first-child { margin-top: 0; }
.lp-card-title { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lp-addr { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; min-height: 44px; }
.lp-addr i { font-size: 1.15rem; margin-top: 1px; }
.lp-addr strong { display: block; font-weight: 700; line-height: 1.4; }
.lp-addr span { font-size: .86rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.lp-amenities { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-amenity { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; }
.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.lp-steps li { counter-increment: s; display: flex; gap: 12px; padding: 8px 0; font-size: .92rem; line-height: 1.45; }
.lp-steps li::before {
  content: counter(s); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .76rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.lp-policy { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); line-height: 1.5; display: flex; gap: 10px; }
.lp-policy strong { color: var(--text); }
.lp-social { display: grid; gap: 10px; }
.lp-soc-btn { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
.lp-soc-btn:hover { border-color: var(--muted); }
.lp-soc-btn i { font-size: 1.15rem; }
.lp-soc-btn .lp-soc-sub { margin-left: auto; font-weight: 500; font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }

.lp-empty { background: var(--card); border: 1px dashed var(--line-2); border-radius: 16px; padding: 22px; color: var(--muted); font-size: .95rem; }

/* Rodapé */
.lp-footer { text-align: center; padding: 48px 20px 28px; font-size: .82rem; color: var(--muted); }
.lp-footer a { color: var(--text); font-weight: 600; text-decoration: none; }
.lp-footer a:hover { text-decoration: underline; }

/* Barra fixa no celular */
.lp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.lp-bar { transition: transform .22s ease; }
/* Enquanto o botão de agendar do topo está na tela, a barra fica guardada:
   assim a primeira tela não termina numa barra e o cliente vê que há mais abaixo. */
.lp-bar.is-hidden { transform: translateY(110%); }
.lp-bar .lp-btn { flex: 1; min-height: 50px; }
.lp-bar-wa {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); background: #fff; color: #1f8f4e !important; font-size: 1.35rem; text-decoration: none;
}
/* Celular/tablet: topo mais baixo, para a primeira tela mostrar slogan, botão de
   agendar e o começo de "Nossos trabalhos" (sem "fundo falso"). */
@media (max-width: 959.98px) {
  .lp-hero { padding-bottom: 28px; }
  .lp-hero-media { height: clamp(200px, 38vh, 380px); min-height: 0; margin-bottom: -72px; }
  .lp-logo-ring { width: 72px; height: 72px; margin-bottom: 14px; }
  .lp-monogram { font-size: 1.55rem; }
  .lp-eyebrow { margin-bottom: 10px; font-size: .72rem; letter-spacing: .12em; }
  .lp-name { font-size: clamp(2rem, 8.5vw, 3rem); margin-bottom: 10px; }
  .lp-bio { font-size: 1rem; line-height: 1.5; margin-bottom: 18px; }
  .lp-hero-actions { flex-wrap: nowrap; gap: 10px; }
  .lp-hero-actions .lp-cta-btn { flex: 1; min-width: 0; padding-left: 18px; padding-right: 18px; }
  .lp-hero-actions .lp-btn-ghost { flex-shrink: 0; width: 52px; padding: 0; font-size: 1.3rem; }
  .lp-hero-actions .lp-btn-ghost .lp-btn-label { display: none; }
  .lp-hero-meta { flex-direction: column; flex-wrap: nowrap; gap: 6px; margin-top: 14px; font-size: .86rem; }
  .lp-hero-meta i { margin-right: 8px; }
  .lp-hero-meta > span, .lp-hero-meta > a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  .lp-section { padding-top: 32px; }
  .lp-section-head { margin-bottom: 14px; }
}
@media (min-width: 960px) {
  .lp { padding-bottom: 0; }
  .lp-bar { display: none; }
  .lp-hero { padding: calc(96px + env(safe-area-inset-top)) 0 72px; }
  .lp-hero.has-cover { padding-top: calc(96px + env(safe-area-inset-top)); min-height: 620px; }
  .lp-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; height: auto; min-height: 0; margin: 0; }
  .lp-hero-media::after { background: linear-gradient(90deg, rgba(20,20,20,1) 0%, rgba(20,20,20,.55) 18%, rgba(20,20,20,0) 45%); }
  .lp-hero.has-cover .lp-hero-inner { padding-right: 48%; }
  .lp-logo-ring { width: 104px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { transition: none !important; scroll-behavior: auto !important; }
}
/* No topo escuro o foco é sempre claro (cor da barbearia pode ser escura) */
.lp-hero :focus-visible { outline-color: #fff; }
.lp-bar :focus-visible { outline-color: #141414; }
