/* ==========================================================================
   Barber Café — Design System v2 (tokens espelham as variáveis "BC · Tokens" do Figma)
   ========================================================================== */
:root {
  /* Fundos */
  --bc-color-bg-page: #050505;
  --bc-color-bg-sunken: #0A0A0A;
  --bc-color-bg-surface: #111111;
  --bc-color-bg-surface-raised: #242424;
  --bc-color-bg-highlight: #17160E;
  --bc-color-bg-primary: #FACC15;
  --bc-color-bg-primary-hover: #FDE047;
  --bc-color-bg-primary-subtle: #2A2611;
  --bc-color-bg-chart-muted: #4A4322;
  --bc-color-bg-success-subtle: #18231C;
  --bc-color-bg-danger-subtle: #2A1414;
  /* Texto */
  --bc-color-text-primary: #FFFFFF;
  --bc-color-text-secondary: #D1D5DB;
  --bc-color-text-muted: #9CA3AF;
  --bc-color-text-subtle: #6B7280;
  --bc-color-text-on-primary: #000000;
  --bc-color-text-accent: #FACC15;
  --bc-color-text-success: #A5CFB2;
  --bc-color-text-danger: #F87171;
  /* Bordas */
  --bc-color-border-default: #222222;
  --bc-color-border-strong: #333333;
  --bc-color-border-accent: #FACC15;
  --bc-color-border-danger: #F87171;
  /* Espaçamento e raios */
  --bc-spacing-2xs: 4px; --bc-spacing-xs: 8px; --bc-spacing-sm: 12px; --bc-spacing-md: 16px;
  --bc-spacing-lg: 24px; --bc-spacing-xl: 32px; --bc-spacing-2xl: 48px; --bc-spacing-3xl: 64px; --bc-spacing-4xl: 96px;
  --bc-radius-sm: 4px; --bc-radius-md: 12px; --bc-radius-lg: 16px; --bc-radius-xl: 24px; --bc-radius-full: 9999px;
  /* Tipografia */
  --bc-font-display: "Alfa Slab One", Georgia, serif;
  --bc-font-ui: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Efeitos */
  --bc-glow-primary: 0 0 40px rgba(250, 204, 21, .2);
  --bc-shadow-elevated: 0 25px 50px -12px rgba(0, 0, 0, .25);
  --bc-container: 1216px;
  --bc-gutter: 20px;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bc-color-bg-sunken); color: var(--bc-color-text-secondary);
  font-family: var(--bc-font-ui); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bc-color-text-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--bc-color-text-primary); font-weight: 400; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bc-color-border-accent); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.bc-container { width: 100%; max-width: calc(var(--bc-container) + 2 * var(--bc-gutter)); margin: 0 auto; padding: 0 var(--bc-gutter); }

/* Tipografia ------------------------------------------------------------- */
.bc-display { font-family: var(--bc-font-display); font-weight: 400; color: var(--bc-color-text-primary); letter-spacing: 0; }
.bc-display--xl { font-size: clamp(44px, 5.4vw, 100px); line-height: 1; }
.bc-display--l { font-size: clamp(38px, 3.4vw, 64px); line-height: 1.2; }
.bc-display--m { font-size: clamp(32px, 2.5vw, 46px); line-height: 1.25; }
.bc-display--s { font-size: clamp(28px, 1.8vw, 34px); line-height: 1.3; }
.bc-accent { color: var(--bc-color-text-accent); }
.bc-overline { font-size: 12px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--bc-color-text-accent); }
.bc-heading-l { font-size: clamp(28px, 2vw, 32px); line-height: 1.25; color: var(--bc-color-text-primary); }
.bc-heading-m { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--bc-color-text-primary); }
.bc-heading-s { font-size: 21px; line-height: 27px; font-weight: 700; color: var(--bc-color-text-primary); }
.bc-body-l { font-size: 18px; line-height: 28px; color: var(--bc-color-text-secondary); }
.bc-muted { color: var(--bc-color-text-muted); }
.bc-caption { font-size: 12px; line-height: 17px; color: var(--bc-color-text-subtle); }

/* Botões ----------------------------------------------------------------- */
.bc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--bc-radius-full); border: 1px solid transparent; cursor: pointer;
  font-family: var(--bc-font-ui); font-weight: 700; font-size: 14px; line-height: 20px;
  text-decoration: none !important; white-space: nowrap; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.bc-btn svg { width: 16px; height: 16px; flex: none; }
.bc-btn--primary { background: var(--bc-color-bg-primary); color: var(--bc-color-text-on-primary); }
.bc-btn--primary:hover { background: var(--bc-color-bg-primary-hover); }
.bc-btn--secondary { background: transparent; color: var(--bc-color-text-primary); border-color: var(--bc-color-border-strong); }
.bc-btn--secondary svg { color: var(--bc-color-text-accent); }
.bc-btn--secondary:hover { border-color: var(--bc-color-border-accent); background: var(--bc-color-bg-surface-raised); }
.bc-btn--ghost { background: none; color: var(--bc-color-text-accent); padding: 4px 0 !important; }
.bc-btn--ghost:hover { text-decoration: underline !important; }
.bc-btn--l { padding: 16px 32px; }
.bc-btn--l.bc-btn--primary { box-shadow: var(--bc-glow-primary); }
.bc-btn--m { padding: 12px 24px; }
.bc-btn--m.bc-btn--secondary { padding: 11px 18px; }
.bc-btn--s { padding: 8px 16px; font-size: 12px; gap: 4px; }
.bc-btn--s svg { width: 12px; height: 12px; }
.bc-btn--block { width: 100%; }

/* Etiquetas -------------------------------------------------------------- */
.bc-badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--bc-radius-full); font-size: 12px; line-height: 14px; font-weight: 700; white-space: nowrap; }
.bc-badge--neutral { background: var(--bc-color-bg-surface-raised); color: var(--bc-color-text-secondary); }
.bc-badge--accent { background: var(--bc-color-bg-primary-subtle); color: var(--bc-color-text-accent); }
.bc-badge--success { background: var(--bc-color-bg-success-subtle); color: var(--bc-color-text-success); }
.bc-badge--danger { background: var(--bc-color-bg-danger-subtle); color: var(--bc-color-text-danger); }

/* Cards e campos ----------------------------------------------------------- */
.bc-card { background: var(--bc-color-bg-surface); border: 1px solid var(--bc-color-border-default); border-radius: var(--bc-radius-lg); }
.bc-field { display: flex; flex-direction: column; gap: 10px; }
.bc-field label, .bc-label { font-size: 12px; line-height: 14px; font-weight: 700; text-transform: uppercase; color: var(--bc-color-text-secondary); }
.bc-input {
  width: 100%; min-height: 54px; padding: 15px 16px; background: var(--bc-color-bg-sunken); color: var(--bc-color-text-primary);
  border: 1px solid var(--bc-color-border-strong); border-radius: var(--bc-radius-md); font-size: 15px; line-height: 22px; outline: none;
}
.bc-input::placeholder { color: var(--bc-color-text-muted); }
.bc-input:focus { border-color: var(--bc-color-border-accent); }
.bc-input.is-error { border-color: var(--bc-color-border-danger); }
textarea.bc-input { min-height: 120px; resize: vertical; }
select.bc-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.bc-field-error { font-size: 12px; color: var(--bc-color-text-danger); }
.bc-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--bc-color-text-secondary); cursor: pointer; }
.bc-check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--bc-color-border-strong); border-radius: var(--bc-radius-sm); background: transparent; cursor: pointer; display: grid; place-items: center; }
.bc-check input:checked { background: var(--bc-color-bg-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat; border-color: var(--bc-color-bg-primary); }

/* Cabeçalho ---------------------------------------------------------------- */
.bc-header { position: absolute; inset: 0 0 auto 0; z-index: 30; background: linear-gradient(180deg, rgba(10,10,10,.8), rgba(10,10,10,.4) 60%, rgba(10,10,10,0)); }
.bc-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 104px; }
.bc-logo { display: block; width: 101px; }
.bc-logo img, .bc-logo svg { width: 100%; height: auto; }
.bc-nav { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.bc-nav a { color: var(--bc-color-text-secondary); font-size: 14px; line-height: 20px; }
.bc-nav a:hover, .bc-nav .current-menu-item > a, .bc-nav a[aria-current="page"] { color: var(--bc-color-text-primary); text-decoration: none; }
.bc-header__actions { display: flex; align-items: center; gap: 16px; }
.bc-header__login { display: inline-flex; align-items: center; gap: 8px; color: var(--bc-color-text-secondary); font-size: 14px; font-weight: 500; }
.bc-header__login svg { width: 18px; height: 18px; color: var(--bc-color-text-secondary); }
.bc-header__cta { padding: 10px 24px; }
.bc-menu-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bc-color-border-strong); background: transparent; color: var(--bc-color-text-accent); align-items: center; justify-content: center; cursor: pointer; }
.bc-menu-toggle svg { width: 18px; height: 18px; }
.bc-mobile-nav { display: none; }
.bc-header__mobile-cta { display: none !important; }

/* Banner principal --------------------------------------------------------- */
.bc-hero { position: relative; overflow: hidden; background: var(--bc-color-bg-sunken); }
.bc-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.05); }
.bc-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.38) 0%, rgba(10,10,10,.65) 55%, rgba(10,10,10,1) 100%); }
.bc-hero--home { min-height: 1080px; display: flex; align-items: flex-end; }
.bc-hero--home .bc-hero__content { position: relative; z-index: 1; width: 100%; padding: 270px 0 128px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bc-hero--home .bc-hero__lead { max-width: 786px; padding-bottom: 10px; }
.bc-hero--home h1 { max-width: 11.6em; }
.bc-social-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--bc-color-border-strong); border-radius: var(--bc-radius-full); background: rgba(17,17,17,.7); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--bc-color-text-secondary); margin-bottom: 8px; }
.bc-social-pill a { display: inline-flex; color: var(--bc-color-text-accent); }
.bc-social-pill svg { width: 12px; height: 12px; }
.bc-hero--page { min-height: 464px; display: flex; align-items: center; }
.bc-hero--page .bc-hero__content { position: relative; z-index: 1; width: 100%; padding: 168px 0 64px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.bc-hero--page .bc-hero__lead { max-width: 670px; color: var(--bc-color-text-secondary); font-size: 18px; line-height: 28px; }

/* Seções da Home ------------------------------------------------------------ */
.bc-section { padding: 96px 0; }
.bc-section__head { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 64px; }
.bc-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bc-feature { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; min-height: 290px; transition: border-color .2s, transform .2s; }
.bc-feature:hover { border-color: var(--bc-color-border-strong); transform: translateY(-2px); }
.bc-feature h3 { font-size: 24px; line-height: 32px; margin-bottom: 16px; }
.bc-feature p { color: var(--bc-color-text-muted); font-size: 14px; line-height: 20px; padding-bottom: 48px; }
.bc-feature__foot { display: flex; align-items: flex-end; justify-content: space-between; }
.bc-feature__num { font-size: 48px; line-height: 48px; color: var(--bc-color-text-accent); }
.bc-ornament { display: flex; justify-content: center; padding: 16px 0; }
.bc-ornament span { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--bc-color-border-default); background: var(--bc-color-bg-sunken); margin-left: -8px; }
.bc-ornament span:first-child { margin-left: 0; }

.bc-visagista { display: grid; grid-template-columns: 520px 1fr; gap: 64px; align-items: center; padding: 80px 0; }
.bc-visagista__photo { width: 100%; height: 507px; object-fit: cover; object-position: center 30%; border-radius: var(--bc-radius-lg); border: 1px solid var(--bc-color-border-default); }
.bc-visagista__text { display: flex; flex-direction: column; gap: 24px; max-width: 600px; }
.bc-visagista__titles { display: flex; flex-direction: column; gap: 12px; }
.bc-visagista__titles h2 { font-size: 36px; line-height: 44px; }
.bc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.bc-history { padding: 128px 0; background: linear-gradient(180deg, var(--bc-color-bg-sunken), var(--bc-color-bg-surface)); }
.bc-history__card { display: grid; grid-template-columns: 450px 1fr; border-radius: var(--bc-radius-xl); overflow: hidden; background: radial-gradient(120% 120% at 100% 0%, rgba(250,204,21,.08), transparent 45%), var(--bc-color-bg-surface); border: 1px solid var(--bc-color-border-default); box-shadow: var(--bc-shadow-elevated); }
.bc-history__img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.bc-history__body { padding: 72px 64px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.bc-history__body h2 { font-size: 36px; line-height: 44px; }
.bc-history__body p { color: var(--bc-color-text-muted); font-size: 14px; line-height: 23px; max-width: 470px; }

.bc-find { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; padding: 64px 0 96px; }
.bc-find__titles h2.bc-heading-l { font-size: 36px; line-height: 44px; }
.bc-find__img { width: 100%; height: 326px; object-fit: cover; border-radius: var(--bc-radius-lg); margin-top: 24px; filter: grayscale(1); }
.bc-unit { padding: 40px; display: flex; gap: 20px; align-items: flex-start; }
.bc-unit__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--bc-color-bg-surface-raised); display: grid; place-items: center; color: var(--bc-color-text-accent); }
.bc-unit__icon svg { width: 20px; height: 20px; }
.bc-unit h3 { font-size: 20px; line-height: 28px; font-weight: 700; margin-bottom: 8px; }
.bc-unit p { color: var(--bc-color-text-muted); font-size: 14px; line-height: 20px; margin-bottom: 20px; max-width: 280px; }

/* Contato --------------------------------------------------------------- */
.bc-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px 0 72px; align-items: start; }
.bc-contact__left { display: flex; flex-direction: column; gap: 24px; }
.bc-contact__img { width: 100%; height: 270px; object-fit: cover; border-radius: var(--bc-radius-lg); }
.bc-contact__note { display: flex; gap: 12px; padding: 0 8px; color: var(--bc-color-text-muted); font-size: 14px; line-height: 20px; }
.bc-contact__note svg { flex: none; width: 18px; height: 18px; color: var(--bc-color-text-accent); }
.bc-form { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.bc-form__intro { display: flex; flex-direction: column; gap: 10px; }
.bc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bc-form__notice { padding: 14px 16px; border-radius: var(--bc-radius-md); font-size: 14px; }
.bc-form__notice--ok { background: var(--bc-color-bg-success-subtle); color: var(--bc-color-text-success); }
.bc-form__notice--err { background: var(--bc-color-bg-danger-subtle); color: var(--bc-color-text-danger); }
.bc-hp { position: absolute; left: -9999px; }
.bc-direct { padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bc-direct h2 { font-size: 24px; line-height: 32px; margin-bottom: 10px; }
.bc-direct p { color: var(--bc-color-text-muted); }
.bc-socials { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 32px 0 72px; color: var(--bc-color-text-secondary); font-size: 12px; }
.bc-socials a { color: var(--bc-color-text-accent); display: inline-flex; }
.bc-socials svg { width: 16px; height: 16px; }

/* Página genérica ----------------------------------------------------------- */
.bc-page-body { padding: 48px 0 96px; }
.bc-prose { max-width: 820px; margin: 0 auto; color: var(--bc-color-text-secondary); font-size: 16px; line-height: 1.7; }
.bc-prose > * + * { margin-top: 1em; }
.bc-prose h2 { font-size: 28px; line-height: 1.3; margin-top: 1.6em; }
.bc-prose h3 { font-size: 21px; font-weight: 700; margin-top: 1.4em; }

/* Rodapé -------------------------------------------------------------------- */
.bc-footer { background: var(--bc-color-bg-page); border-top: 1px solid var(--bc-color-border-default); padding: 36px 0; text-align: center; font-size: 12px; color: var(--bc-color-text-subtle); }

/* Animação de entrada ---------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .bc-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .bc-reveal.is-visible { opacity: 1; transform: none; }
}

/* Responsivo ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .bc-visagista { grid-template-columns: 1fr 1fr; gap: 40px; }
  .bc-history__card { grid-template-columns: 1fr 1fr; }
  .bc-history__body { padding: 48px 40px; }
}
@media (max-width: 900px) {
  .bc-nav, .bc-header__login, .bc-header__cta { display: none; }
  .bc-header__inner { height: 72px; }
  .bc-logo { width: 72px; }
  .bc-menu-toggle { display: inline-flex; }
  .bc-header__mobile-cta { display: inline-flex !important; }
  .bc-mobile-nav { display: block; position: fixed; inset: 0; z-index: 50; background: var(--bc-color-bg-page); padding: 20px; transform: translateX(100%); transition: transform .3s; overflow-y: auto; }
  .bc-mobile-nav.is-open { transform: none; }
  .bc-mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
  .bc-mobile-nav ul { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .bc-mobile-nav ul a { display: block; padding: 14px 4px; font-size: 20px; color: var(--bc-color-text-primary); border-bottom: 1px solid var(--bc-color-border-default); }
  .bc-mobile-nav .bc-btn { width: 100%; margin-bottom: 12px; }
  .bc-hero--home { min-height: 760px; }
  .bc-hero--home .bc-hero__content { padding: 160px 0 56px; gap: 20px; }
  .bc-hero__bg { background-position: 35% center; }
  .bc-hero--page { min-height: 0; }
  .bc-hero--page .bc-hero__content { padding: 120px 0 40px; gap: 14px; }
  .bc-hero--page .bc-hero__lead, .bc-hero--home .bc-hero__lead { font-size: 16px; line-height: 24px; }
  .bc-section { padding: 72px 0 48px; }
  .bc-section__head { margin-bottom: 32px; }
  .bc-section__head .bc-heading-l { font-size: 28px; line-height: 34px; }
  .bc-features { grid-template-columns: 1fr; gap: 16px; }
  .bc-feature { padding: 28px; min-height: 0; }
  .bc-feature p { padding-bottom: 16px; }
  .bc-feature__num { font-size: 44px; line-height: 44px; }
  .bc-visagista { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 56px; }
  .bc-visagista__photo { height: 420px; }
  .bc-visagista__titles h2, .bc-history__body h2 { font-size: 28px; line-height: 34px; }
  .bc-visagista .bc-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .bc-visagista .bc-actions .bc-btn--ghost { align-self: center; }
  .bc-history { padding: 56px 0; }
  .bc-history__card { grid-template-columns: 1fr; }
  .bc-history__img { min-height: 0; height: 280px; }
  .bc-history__body { padding: 28px; gap: 16px; }
  .bc-find { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 64px; }
  .bc-find__titles h2.bc-heading-l { font-size: 28px; line-height: 34px; }
  .bc-find__img { height: 200px; }
  .bc-unit { padding: 28px; }
  .bc-contact { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 24px; }
  .bc-contact__img { height: 190px; }
  .bc-form { padding: 24px; gap: 20px; }
  .bc-form__row { grid-template-columns: 1fr; }
  .bc-direct { flex-direction: column; align-items: stretch; padding: 28px; }
  .bc-direct .bc-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .bc-direct .bc-btn { width: 100%; }
  .bc-footer { padding: 28px 0; }
}
