/* ==========================================================
   Camerino Alta Barbearia
   Cores provisórias: trocar pelas cores da marca aqui em :root
   ========================================================== */
:root {
  /* Cores da marca (logo): bordô #3F0708 e dourado #FFC36D */
  --bg: #3f0708;
  --bg-alt: #330506;
  --surface: #4c0d0f;
  --line: #62201f;
  --text: #fbefe2;
  --muted: #d6b49a;
  --accent: #ffc36d;
  --accent-hover: #ffd596;
  --on-accent: #3f0708;
  --wa: #25d366;

  --font-title: "Gloock", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Avenir Next", system-ui, sans-serif;

  --radius: 10px;
  --header-h: 76px;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.accent { color: var(--accent); }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline { border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Placeholder de imagem ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, #460a0c 0 12px, #4e0f11 12px 24px);
  border: 1px dashed #6e2a28;
  border-radius: var(--radius);
  color: #b98d78;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(51, 5, 6, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: block; line-height: 0; }
.logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--text);
  margin: 5px 0; transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 64px;
  background:
    linear-gradient(90deg, rgba(51, 5, 6, .96) 0%, rgba(63, 7, 8, .85) 45%, rgba(63, 7, 8, .35) 100%),
    url("../img/hero.jpg") center / cover no-repeat,
    var(--bg);
}
.hero > .container { width: 100%; }
.hero__content { max-width: 680px; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 0 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__info {
  list-style: none; margin: 0; padding: 1.5rem 0 0;
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.hero__info strong { display: block; color: var(--text); font-weight: 600; }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__lead { color: var(--muted); margin: 0; }

/* ---------- Planos ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  padding: 40px 32px 32px;
}
.plan--featured {
  border-color: var(--accent);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5);
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-size: 1rem; color: var(--muted); }
.plan__name span { display: block; font-size: 1.7rem; color: var(--text); margin-top: .2rem; }
.plan__price {
  font-family: var(--font-title);
  font-size: 3.4rem; font-weight: 400; line-height: 1;
  margin: .5rem 0 1.5rem;
}
.plan__price small { font-size: 1.2rem; }
.plan__price span {
  font-family: var(--font-body); font-size: .9rem; font-weight: 400;
  color: var(--muted); margin-left: .2rem;
}
.plan__list { list-style: none; margin: 0 0 2rem; padding: 0; flex: 1; }
.plan__list li {
  position: relative; padding: .55rem 0 .55rem 1.75rem;
  border-bottom: 1px solid var(--line);
}
.plan__list li::before {
  content: ""; position: absolute; left: 2px; top: 1.05rem;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.steps {
  list-style: none; counter-reset: step;
  margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.steps li { counter-increment: step; color: var(--muted); padding-top: 1rem; border-top: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-title); font-size: 1.6rem; color: var(--accent);
  margin-bottom: .25rem;
}
.steps strong { color: var(--text); }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: calc(var(--radius) * 1.5); }
.about__text { min-width: 0; }
.about__text > p:not(.eyebrow) { color: var(--muted); margin: 0 0 1rem; max-width: 60ch; }
.about__list { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: .6rem; }
.about__list li { position: relative; padding-left: 1.75rem; }
.about__list li::before {
  content: ""; position: absolute; left: 2px; top: .55rem;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}
.gallery__item { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }

/* ---------- Equipe ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.barber {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  padding: 12px 12px 20px;
  text-align: center;
}
.barber__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.1rem; }
.barber__body { display: flex; flex-direction: column; flex: 1; padding: 0 4px; }
.barber h3 { margin-bottom: .2rem; }
.barber p { color: var(--muted); font-size: .9rem; margin: 0 0 1.1rem; }
.barber .btn { margin-top: auto; padding: .8rem 1rem; font-size: .88rem; }


/* ---------- Localização ---------- */
.location { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.location__list { margin: 0 0 2rem; display: grid; gap: 1.25rem; }
.location__list dt {
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
}
.location__list dd { margin: .2rem 0 0; font-size: 1.05rem; }
.location__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.location__map {
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.location__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- CTA final ---------- */
.cta-final {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(255, 195, 109, .14), transparent 65%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.cta-final p { color: var(--muted); margin: 0 0 2rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 110px; font-size: .88rem; color: var(--muted); }
.footer__inner { display: grid; gap: .5rem; justify-items: center; text-align: center; }
.footer__logo { width: 180px; margin-bottom: .75rem; }
.footer p { margin: 0; }
.footer a { text-decoration: none; color: var(--text); }
.footer a:hover { color: var(--accent); }
.footer__copy { margin-top: .75rem !important; font-size: .8rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: .8; }
  to { transform: scale(1.6); opacity: 0; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .plan--featured { order: -1; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .location { grid-template-columns: 1fr; gap: 40px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 24px;
    transform: translateY(-120%);
    transition: transform .3s ease;
    z-index: -1;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 1rem; padding: .9rem; }
}

@media (max-width: 640px) {
  .hero {
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(63, 7, 8, .2) 0%, rgba(63, 7, 8, .45) 30%, rgba(51, 5, 6, .95) 58%, rgba(51, 5, 6, .98) 100%),
      url("../img/hero-mobile.jpg") center 45% / cover no-repeat,
      var(--bg);
  }
  .section, .cta-final { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; margin-top: 48px; }
  .team { gap: 14px; }
  .barber { padding: 10px 10px 16px; }
  .barber h3 { font-size: 1.05rem; }
  .barber .btn { font-size: .78rem; padding: .7rem .5rem; min-height: 3.6em; }
  .gallery__item--big { grid-column: span 2; grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float::after { animation: none; }
  .btn:hover { transform: none; }
}
