/* ==========================================================================
   SITE DO FORBARBER — identidade própria do produto.
   Barbearia clássica de alto padrão: azul-marinho, marfim e o vermelho
   do poste num tom fechado. Títulos em Cormorant Garamond, texto em
   Archivo. Filetes finos, muito respiro e pouco movimento.
   Os componentes vêm de base.css; aqui trocamos os tokens e montamos a página.
   ========================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../vendor/cormorant/cormorant-garamond-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../vendor/cormorant/cormorant-garamond-italic-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../vendor/archivo/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

.p-body {
  --navy: #0b1220;
  --navy-2: #121b2d;
  --navy-3: #080d18;
  --ivory: #f4efe6;
  --ivory-2: #ebe4d7;
  --ink: #0b1220;
  --oxblood: #9b2730;
  --oxblood-dark: #82202a;
  --red-soft: #d0646b;
  --pole-blue: #2f4a8a;

  /* tokens de base.css (valem para o fundo marinho) */
  --bg: var(--navy);
  --bg-raised: var(--navy-2);
  --surface: var(--navy-2);
  --surface-2: #19243a;
  --surface-3: #22304b;
  --line: rgba(244, 239, 230, 0.12);
  --line-strong: rgba(244, 239, 230, 0.24);
  --text: var(--ivory);
  --text-2: rgba(244, 239, 230, 0.74);
  --text-3: rgba(244, 239, 230, 0.56);
  --primary: var(--oxblood);
  --primary-ink: var(--ivory);
  --primary-hover: var(--oxblood-dark);
  --primary-soft: rgba(155, 39, 48, 0.14);
  --primary-line: rgba(208, 100, 107, 0.45);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-brand: var(--serif);
  --font-heading: var(--serif);
  --font-display: var(--sans);
  --font-body: var(--sans);

  --container: 1180px;
  --header-h: 76px;
  --section-y: clamp(5rem, 10vw, 8.5rem);
  --overlap: clamp(70px, 13vw, 200px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
  font-size: 1.0625rem;
  line-height: 1.7;
}
@media (min-width: 1100px) { .p-body { --header-h: 84px; } }
.p-body ::selection { background: var(--oxblood); color: var(--ivory); }
.p-body :focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; }

/* Seções claras (marfim): trocam os tokens de texto */
.p-pillars,
.p-features,
.p-catalog,
.p-steps-wrap,
.p-faq-wrap {
  --text: var(--ink);
  --text-2: #4a5161;
  --text-3: #767b86;
  --line: rgba(11, 18, 32, 0.12);
  --line-strong: rgba(11, 18, 32, 0.24);
  background: var(--ivory);
  color: var(--text);
  color-scheme: light;
}
.p-steps-wrap { background: var(--ivory-2); }

/* ---------- Botões: retos, discretos, caixa-alta espaçada ---------- */
.p-body .btn {
  min-height: 52px;
  padding: 0.9rem 1.7rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.p-body .btn-sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.72rem; }
.p-body .btn-lg { min-height: 56px; padding: 1rem 2rem; }
.p-body .btn:active { transform: none; }
.p-body .btn-primary { --btn-bg: var(--oxblood); --btn-bd: var(--oxblood); --btn-fg: var(--ivory); }
.p-body .btn-primary:hover { --btn-bg: var(--oxblood-dark); --btn-bd: var(--oxblood-dark); --btn-fg: var(--ivory); }
.btn-quiet { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong); }
.btn-quiet:hover { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--text); }
.btn-light { --btn-bg: var(--ivory); --btn-fg: var(--ink); --btn-bd: var(--ivory); }
.btn-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }

/* ---------- Marca ---------- */
.p-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); }
.p-brand:hover { color: var(--text); }
.p-brand-mark {
  flex: 0 0 auto;
  width: 10px;
  height: 26px;
  border-radius: 5px;
  box-shadow: 0 0 0 1.5px currentColor;
  background: repeating-linear-gradient(-45deg, var(--oxblood) 0 3px, var(--ivory) 3px 6px, var(--pole-blue) 6px 9px, var(--ivory) 9px 12px);
}
.p-brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1; letter-spacing: 0.01em; }

/* ---------- Textos comuns ---------- */
.p-label {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
}
.p-label::before,
.p-label::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.p-head:not(.is-center) .p-label::after { display: none; }

.p-h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.p-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; max-width: 760px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.p-head.is-center { align-items: center; text-align: center; margin-inline: auto; }
.p-head-sub { max-width: 52ch; color: var(--text-2); }
.p-section { padding-block: var(--section-y); }
.p-narrow { max-width: 820px; }

/* Revelar ao rolar: só um fade curto */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Cabeçalho ---------- */
.p-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.p-header.is-scrolled,
.p-header.is-open { background: var(--navy); border-bottom-color: var(--line); }
.p-header-inner { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }
.p-nav { display: none; gap: 2.2rem; margin-inline: auto; }
.p-nav a, .p-login { font-size: 0.86rem; color: var(--text-2); letter-spacing: 0.02em; transition: color 0.2s; }
.p-nav a:hover, .p-login:hover { color: var(--text); }
.p-header-actions { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
@media (min-width: 960px) { .p-nav { display: flex; } .p-header-actions { margin-left: 0; } }
@media (max-width: 479px) { .p-login { display: none; } }

.p-menu-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; }
.p-menu-icon, .p-menu-icon::before, .p-menu-icon::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.p-menu-icon { position: relative; background: transparent; }
.p-menu-icon::before, .p-menu-icon::after { content: ''; position: absolute; left: 0; }
.p-menu-icon::before { top: -4px; }
.p-menu-icon::after { top: 4px; }
.is-open .p-menu-icon::before { transform: translateY(4px) rotate(45deg); }
.is-open .p-menu-icon::after { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 960px) { .p-menu-btn { display: none; } }

.p-sheet {
  display: flex;
  flex-direction: column;
  height: calc(100svh - var(--header-h));
  overflow-y: auto;
  padding: var(--sp-5) var(--gutter) var(--sp-7);
  background: var(--navy);
}
.p-sheet a {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.2;
}
@media (min-width: 960px) { .p-sheet { display: none !important; } }

/* ---------- Topo ---------- */
.p-hero {
  position: relative;
  overflow-x: clip;
  padding-top: calc(var(--header-h) + min(clamp(3.5rem, 9vw, 7rem), 9vh));
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #1a2540 0%, var(--navy) 70%);
}
.p-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.p-hero .p-label { margin-bottom: 1.8rem; }
.p-display {
  max-width: 15ch;
  font-family: var(--serif);
  font-size: min(clamp(3rem, 1.6rem + 5.6vw, 6.4rem), max(2.6rem, 11vh));
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.p-display em,
.p-final-title em { font-style: italic; font-weight: 500; color: var(--red-soft); }
.p-hero-lead { max-width: 54ch; margin-top: 1.8rem; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem); color: var(--text-2); }
.p-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2.4rem; }
.p-fine { margin-top: 1.4rem; font-size: 0.84rem; letter-spacing: 0.04em; color: var(--text-3); }
.p-fine span { margin-inline: 0.5rem; }
@media (max-width: 479px) { .p-hero .p-ctas .btn { width: 100%; } }
@media (min-width: 700px) and (max-height: 860px) {
  .p-body { --section-y: clamp(4rem, 8vw, 6.5rem); }
  .p-hero .p-label { margin-bottom: 1.2rem; }
  .p-hero-lead { max-width: 62ch; margin-top: 1.2rem; }
  .p-hero .p-ctas { margin-top: 1.8rem; }
  .p-hero .p-fine { margin-top: 1rem; }
  .p-hero .btn-lg { min-height: 50px; padding-block: 0.8rem; }
}
@media (min-width: 1100px) and (max-height: 800px) { .p-body { --header-h: 72px; } }

.p-showcase {
  position: relative;
  max-width: 1040px;
  margin: min(clamp(3.5rem, 7vw, 5.5rem), 7vh) auto calc(-1 * var(--overlap));
}
.p-browser {
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, 0.5);
  border-radius: 10px;
  background: #15120f;
  box-shadow: 0 50px 90px -40px rgba(8, 13, 24, 0.75), 0 0 0 1px rgba(244, 239, 230, 0.06);
}
.p-browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: #1d1915; }
.p-browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 239, 230, 0.16); }
.p-browser img { width: 100%; }
.p-phone {
  padding: 6px;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 40px 70px -30px rgba(8, 13, 24, 0.8), 0 0 0 1px rgba(244, 239, 230, 0.1);
}
.p-phone img { width: 100%; border-radius: 22px; }
.p-showcase-phone { position: absolute; right: -3%; bottom: -9%; width: 22%; }
@media (max-width: 1139px) { .p-showcase-phone { right: -1%; } }
@media (max-width: 699px) {
  .p-showcase-phone { width: 32%; right: -1%; bottom: -14%; }
  .p-phone { padding: 4px; border-radius: 18px; }
  .p-phone img { border-radius: 14px; }
}

/* ---------- Pilares ---------- */
.p-pillars { padding: calc(var(--overlap) + clamp(4rem, 8vw, 6rem)) 0 clamp(3.5rem, 7vw, 5.5rem); }
.p-pillars-list { list-style: none; display: grid; gap: 2.5rem; }
.p-pillars-list li { display: grid; gap: 0.6rem; justify-items: center; text-align: center; }
.p-roman { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--oxblood); }
.p-pillars h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.15; }
.p-pillars p { max-width: 34ch; color: var(--text-2); }
@media (min-width: 860px) {
  .p-pillars-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .p-pillars-list li { padding: 0.5rem clamp(1.25rem, 2.5vw, 2.5rem); }
  .p-pillars-list li + li { border-left: 1px solid var(--line); }
}

/* ---------- Recursos ---------- */
.p-features { padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.p-feature { display: grid; gap: 3rem; align-items: center; }
.p-feature + .p-feature { margin-top: clamp(5rem, 10vw, 8rem); }
@media (min-width: 960px) {
  .p-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
  .p-feature.is-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .p-feature.is-reverse .p-feature-media { order: -1; }
}
.p-feature-copy { display: flex; flex-direction: column; gap: 1.1rem; }
.p-kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--oxblood); }
.p-feature h3 { font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); font-weight: 500; line-height: 1.1; text-wrap: balance; }
.p-list { list-style: none; margin-top: 0.6rem; border-top: 1px solid var(--line); }
.p-list li { position: relative; padding: 0.9rem 0 0.9rem 1.6rem; border-bottom: 1px solid var(--line); color: var(--text-2); line-height: 1.6; }
.p-list li::before { content: ''; position: absolute; left: 0; top: 1.72rem; width: 10px; height: 1px; background: var(--oxblood); }
.p-list strong { color: var(--text); font-weight: 600; }
.p-feature-media.is-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; width: min(520px, 100%); margin-inline: auto; padding-bottom: 8%; }
.p-feature-media.is-phones .p-phone:last-child { transform: translateY(14%); }

/* ---------- Além da agenda (fundo marinho) ---------- */
.p-extras { background: var(--navy); }
.p-extras-grid { display: grid; max-width: 1040px; margin-inline: auto; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 760px) { .p-extras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p-extra { display: grid; align-content: start; gap: 0.8rem; padding: clamp(1.8rem, 3.5vw, 2.8rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-extra > i { font-size: 1.4rem; line-height: 1; color: var(--red-soft); }
.p-extra h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.p-extra p { color: var(--text-2); }

/* ---------- Funcionalidades: tabela de serviços ---------- */
.p-catalog { border-bottom: 1px solid var(--line); }
.p-catalog-grid { display: grid; gap: 2.8rem clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 640px) { .p-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .p-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p-group h3 { padding-bottom: 0.7rem; border-bottom: 1px solid var(--line-strong); font-family: var(--serif); font-size: 1.65rem; font-weight: 600; line-height: 1.15; }
.p-group ul { list-style: none; }
.p-group li { position: relative; padding: 0.65rem 0 0.65rem 1.4rem; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 0.95rem; line-height: 1.5; }
.p-group li::before { content: ''; position: absolute; left: 0; top: 1.35rem; width: 8px; height: 1px; background: var(--oxblood); }
.p-trust { display: flex; align-items: flex-start; justify-content: center; gap: 0.7rem; max-width: 70ch; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; color: var(--text-2); font-size: 0.92rem; text-align: left; }
.p-trust i { flex: 0 0 auto; font-size: 1.15rem; line-height: 1.3; color: var(--oxblood); }

/* ---------- Como funciona ---------- */
.p-steps { list-style: none; display: grid; gap: 3rem; }
.p-steps li { display: grid; justify-items: center; gap: 0.7rem; text-align: center; }
.p-step-n {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-style: italic;
  line-height: 1;
  color: var(--oxblood);
}
.p-steps h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.15; }
.p-steps p { max-width: 32ch; color: var(--text-2); }
.p-steps p b { color: var(--text); font-weight: 600; overflow-wrap: break-word; }
@media (min-width: 860px) {
  .p-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
  .p-steps li { position: relative; }
  .p-steps li + li::before { content: ''; position: absolute; top: 32px; right: calc(50% + 56px); width: calc(100% - 112px + 3rem); height: 1px; background: var(--line-strong); }
}

/* ---------- Planos (fundo marinho) ---------- */
.p-plans { background: var(--navy); }
.p-plans .plans { gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); max-width: 1040px; margin-inline: auto; }
.p-body .plan-card {
  align-items: center;
  gap: 1rem;
  padding: 2.6rem 2rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  text-align: center;
}
.p-body .plan-name { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1; }
.p-body .plan-team { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.p-body .plan-team i { display: none; }
.p-body .plan-price { justify-content: center; align-items: baseline; gap: 0.35rem; margin: 0.8rem 0 0; }
.p-body .plan-price strong { font-family: var(--serif); font-size: 3.4rem; font-weight: 500; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.p-body .plan-price span { color: var(--text-3); font-size: 0.9rem; }
.p-plan-per { min-height: 1.6em; color: var(--text-3); font-size: 0.86rem; }
.p-body .plan-card .btn { margin-top: 1rem; }
.p-body .plan-card.is-featured {
  --text: var(--ink);
  --text-2: #4a5161;
  --text-3: #6f7480;
  --line-strong: rgba(11, 18, 32, 0.25);
  border-color: var(--ivory);
  background: var(--ivory);
  color: var(--ink);
}
.p-included { max-width: 62ch; margin: 2.5rem auto 0; color: var(--text-3); font-size: 0.88rem; text-align: center; line-height: 1.8; }

/* ---------- Perguntas ---------- */
.p-faq { border-top: 1px solid var(--line-strong); }
.p-faq details { border-bottom: 1px solid var(--line-strong); }
.p-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
  color: var(--oxblood);
  transition: transform 0.3s var(--ease-out);
}
.p-faq details[open] summary::after { transform: rotate(45deg); }
.p-faq details p { padding: 0 2.5rem 1.6rem 0; color: var(--text-2); }
.p-faq-more { margin-top: 2rem; text-align: center; color: var(--text-2); }
.p-faq-more a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--oxblood); text-underline-offset: 4px; cursor: pointer; }
.p-faq-more a:hover { color: var(--oxblood); }

/* ---------- Chamada final ---------- */
.p-final { padding-block: clamp(5rem, 10vw, 8rem); background: var(--oxblood); color: var(--ivory); }
.p-final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.p-final .p-label { color: rgba(244, 239, 230, 0.7); }
.p-final-title { margin-top: 1.4rem; font-family: var(--serif); font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); font-weight: 500; line-height: 1.05; text-wrap: balance; }
.p-final-title em { color: var(--ivory); opacity: 0.85; }
.p-final p:not(.p-label) { max-width: 46ch; margin-top: 1.2rem; color: rgba(244, 239, 230, 0.82); }
.p-final .btn-quiet { --btn-fg: var(--ivory); --btn-bd: rgba(244, 239, 230, 0.45); }
.p-final .btn-quiet:hover { --btn-bd: var(--ivory); }
.p-final .btn-light:hover { --btn-bg: var(--navy); --btn-fg: var(--ivory); --btn-bd: var(--navy); }

/* ---------- Rodapé ---------- */
.p-footer { padding-block: 2.5rem; background: var(--navy-3); color: var(--text-3); font-size: 0.86rem; }
.p-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.p-footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; }
.p-footer nav a { color: var(--text-2); cursor: pointer; }
.p-footer a:hover { color: var(--text); }
.p-footer-legal { margin: 0; }
.p-footer-legal a { color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}
