/* Tokens. --brand e --accent são trocados pelo painel (content.cores). */
:root {
  --brand: #17302A;
  --accent: #C9A24A;
  --night: color-mix(in srgb, var(--brand) 32%, #0A0C0B);
  --felt: #151716;
  --felt-line: #1E211F;
  --letter: #F4F2EC;
  --letter-soft: rgb(244 242 236 / .72);
  --letter-faint: rgb(244 242 236 / .5);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --wide: max(var(--gutter), (100% - 1180px) / 2);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--night); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--letter);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
main section { scroll-margin-top: 64px; }
main:focus { outline: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: .95; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h3 { font-size: 1.6rem; font-weight: 800; margin-top: 2rem; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--accent); color: var(--felt);
  font: 600 1.05rem/1 var(--body); text-decoration: none;
  padding: 1rem 1.4rem; border-radius: 999px;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.btn-small { padding: .6rem 1rem; font-size: .95rem; }
.link { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }

.pular {
  position: absolute; left: 16px; top: -100px; z-index: 30;
  background: var(--accent); color: var(--felt); padding: .7rem 1rem; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.pular:focus { top: 12px; }

/* Topo */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem var(--gutter);
  background: color-mix(in srgb, var(--brand) 88%, transparent);
  backdrop-filter: blur(10px);
  color: var(--letter);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.topbar-name { display: flex; align-items: center; gap: .6rem; font: 800 1.5rem/1 var(--display); text-decoration: none; letter-spacing: .01em; }

/* Marca: logo do cliente ou a inicial num círculo de latão */
.marca {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  font: 800 1.15rem/1 var(--display);
}
.marca.com-logo { border: 0; background: #fff; overflow: hidden; }
.marca img { width: 100%; height: 100%; object-fit: contain; }

.menu { display: flex; gap: clamp(1rem, 2.5vw, 2rem); margin-left: auto; margin-right: 1.5rem; }
.menu a { text-decoration: none; font-weight: 500; color: var(--letter-soft); padding: .4rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--letter); border-bottom-color: var(--accent); }
.menu-botao {
  display: none; margin-left: auto;
  background: transparent; color: var(--letter); font: 600 .95rem/1 var(--body);
  border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; padding: .6rem 1rem; min-height: 40px; cursor: pointer;
}

/* Hero: foto do cliente no fundo, escurecida. Sem foto, luz difusa sobre o verde. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end;
  min-height: min(90vh, 860px);
  background:
    radial-gradient(ellipse 55% 60% at 78% 35%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    repeating-linear-gradient(135deg, rgb(255 255 255 / .022) 0 30px, transparent 30px 60px),
    linear-gradient(165deg, var(--brand), color-mix(in srgb, var(--brand) 45%, #000));
}
.hero-bg { position: absolute; inset: 0; margin: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero.com-foto .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(8 11 10 / .9) 0%, rgb(8 11 10 / .6) 50%, rgb(8 11 10 / .2) 100%),
    linear-gradient(0deg, rgb(8 11 10 / .75), transparent 55%);
}
.hero-copy {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 5rem var(--gutter) 4.5rem;
}
.hero-title {
  font-weight: 900; font-size: clamp(4.2rem, 12vw, 10rem);
  line-height: .82; letter-spacing: -.01em;
  text-shadow: 0 4px 30px rgb(0 0 0 / .35);
}
.hero-rating { margin: 0; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.hero-rating .stars { letter-spacing: .1em; }
.hero-text { margin: 0; max-width: 34ch; font-size: 1.2rem; color: rgb(244 242 236 / .85); }
.hero .btn { align-self: flex-start; margin-top: .5rem; }

/* Selo de latão com nome e nota */
.hero-selo {
  align-self: center; justify-self: center;
  width: min(380px, 28vw); margin: 4rem var(--gutter) 0 0;
  color: var(--accent);
  filter: drop-shadow(0 12px 30px rgb(0 0 0 / .45));
  animation: selo-entra .9s cubic-bezier(.2, .7, .2, 1) both .15s;
}
.hero-selo svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-selo text { font-family: var(--display); fill: currentColor; }
.hero-selo .selo-nota { fill: var(--letter); }
.hero-selo .selo-sub { fill: var(--letter-soft); }
@keyframes selo-entra {
  from { opacity: 0; transform: rotate(-24deg) scale(.92); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-selo { animation: none; } }

/* Parallax: --rolagem e --desvio vêm do site.js (sem eles, tudo fica parado).
   A foto do topo desce mais devagar que a página; o selo sobe um pouco mais rápido. */
.hero-bg { translate: 0 calc(min(var(--rolagem, 0), 1500) * .45px); }
.hero-selo { translate: 0 calc(min(var(--rolagem, 0), 1500) * -.15px); }
.hero { background-position: 0 0, 0 calc(var(--rolagem, 0) * .35px), 0 0; }

/* Placeholder sem foto: listras de poste de barbeiro, discretas */
.ph {
  width: 100%; height: 100%; min-height: 220px;
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / .05) 0 22px, transparent 22px 44px),
    color-mix(in srgb, var(--brand) 70%, #000);
  color: var(--letter-faint); font-size: .95rem;
}
.ph svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.5; margin: 0 auto .5rem; display: block; }

/* Preços: quadro de feltro pendurado numa parede de azulejos, com luz de cima */
.prices {
  padding: clamp(4.5rem, 10vw, 8rem) var(--gutter);
  background-color: color-mix(in srgb, var(--brand) 80%, #000);
  background-image:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgb(255 228 172 / .2), transparent 72%),
    linear-gradient(180deg, rgb(0 0 0 / .25), transparent 25%, transparent 70%, rgb(0 0 0 / .45)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Cpath d='M0 1H96M0 25H96M1 0V24M49 0V24M25 24V48M73 24V48' stroke='%23000' stroke-opacity='.42' stroke-width='2' fill='none'/%3E%3Cpath d='M3 3.5H47M51 3.5H95M0 27.5H23M27 27.5H71M75 27.5H96' stroke='%23fff' stroke-opacity='.07' fill='none'/%3E%3C/svg%3E");
  background-size: auto, auto, 96px 48px;
  background-position: 0 0, 0 0, 0 calc(var(--rolagem, 0) * .3px); /* azulejos andam mais devagar */
}
.board {
  position: relative;
  max-width: 880px; margin: 0 auto;
  background:
    repeating-linear-gradient(180deg, var(--felt) 0 9px, var(--felt-line) 9px 11px);
  color: var(--letter);
  border: 14px solid #3A2A1C;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px #2A1E14,
    0 1px 0 14px rgb(255 255 255 / .04),
    0 50px 70px -30px rgb(0 0 0 / .8);
  padding: clamp(1.75rem, 5vw, 3.5rem);
}
/* parafusos de latão nos quatro cantos da moldura */
.board::before {
  content: ""; position: absolute; inset: -14px; pointer-events: none;
  --screw: radial-gradient(circle at 40% 35%, #E9D08A 0 1.5px, #A9873C 2.5px, #5A4418 3.5px, transparent 4px);
  background:
    var(--screw) left 3px top 3px / 8px 8px no-repeat,
    var(--screw) right 3px top 3px / 8px 8px no-repeat,
    var(--screw) left 3px bottom 3px / 8px 8px no-repeat,
    var(--screw) right 3px bottom 3px / 8px 8px no-repeat;
}
.board-title {
  font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem);
  text-transform: uppercase; letter-spacing: .08em; text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 -1px 0 rgb(255 255 255 / .18), 0 2px 2px rgb(0 0 0 / .6);
}
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.board-row { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline; }
.board-name, .board-price {
  font: 600 clamp(1.35rem, 3.6vw, 2rem)/1.1 var(--display);
  text-transform: uppercase; letter-spacing: .09em;
  text-shadow: 0 -1px 0 rgb(255 255 255 / .18), 0 2px 2px rgb(0 0 0 / .6);
}
.board-name { display: flex; align-items: baseline; gap: .8rem; min-width: 0; overflow-wrap: anywhere; }
.board-name::after { content: ""; flex: 1; min-width: 1.5rem; border-bottom: 3px dotted rgb(244 242 236 / .4); transform: translateY(-.25em); }
.board-price { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-cur { font-size: .58em; margin-right: .2em; vertical-align: .55em; letter-spacing: .04em; }
.board-detail { grid-column: 1 / -1; font-size: .95rem; color: rgb(244 242 236 / .6); margin-top: .2rem; }

/* Sobre: texto e uma foto inclinada sobre um cartão listrado */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
  padding: clamp(5rem, 10vw, 8rem) var(--wide);
}
.about h2 { color: var(--letter); }
.about-text p { max-width: 54ch; color: var(--letter-soft); font-size: 1.1rem; }
.about-text p:first-child { color: var(--letter); font-size: 1.35rem; line-height: 1.5; }
.mais { color: var(--accent); font-weight: 600; }

/* Página Quem somos */
.pagina-topo {
  padding: clamp(5rem, 12vw, 9rem) var(--wide) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 50% 80% at 85% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    repeating-linear-gradient(135deg, rgb(255 255 255 / .022) 0 30px, transparent 30px 60px),
    linear-gradient(165deg, var(--brand), color-mix(in srgb, var(--brand) 45%, #000));
  background-position: 0 0, 0 calc(var(--rolagem, 0) * .35px), 0 0; /* listras em parallax */
}
.pagina-topo h1 { font-weight: 900; font-size: clamp(3.6rem, 10vw, 8rem); line-height: .85; }
.historia {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start; padding: clamp(3.5rem, 8vw, 6rem) var(--wide) clamp(5rem, 10vw, 8rem);
}
.historia-texto p { max-width: 60ch; color: var(--letter-soft); font-size: 1.15rem; margin: 0 0 1.2em; }
.historia-texto p:first-child { color: var(--letter); font-size: 1.45rem; line-height: 1.45; }
.historia-foto { position: sticky; top: 110px; }
.faixa-agendar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) var(--wide); background: var(--brand);
}
.about-photo {
  position: relative; isolation: isolate; margin: 0 clamp(1rem, 4vw, 3rem);
  aspect-ratio: 4 / 5; rotate: 2.5deg;
}
.about-photo > * { height: 100%; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 50px -20px rgb(0 0 0 / .7); }
.about-photo img { width: 100%; object-fit: cover; }
.about-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgb(0 0 0 / .14) 0 18px, transparent 18px 36px),
    var(--accent);
  rotate: -9deg; translate: -7% calc(3% + var(--desvio, 0) * .12px); /* cartão passa mais rápido que a foto */
}

/* Galeria */
.gallery { padding: 0 var(--wide) clamp(5rem, 10vw, 8rem); }
.gallery h2 { margin-bottom: 2rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.gallery-item { margin: 0; }
.gallery-item .frame { aspect-ratio: 1; overflow: hidden; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption { font-size: .92rem; color: var(--letter-faint); padding-top: .55rem; }

/* Onde estamos */
.visit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  background: var(--brand); color: var(--letter);
}
.visit-info { padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.visit-address { font-size: 1.25rem; max-width: 30ch; margin: 1.2rem 0 .4rem; }
.hours { border-collapse: collapse; margin-top: 1rem; width: 100%; max-width: 380px; }
.hours td { padding: .45rem 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
.hours td:last-child { text-align: right; }
.hours tr.today td { color: var(--accent); font-weight: 600; }
.visit-map { min-height: 360px; position: relative; }
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

.footer { padding: 2.5rem var(--gutter) 6rem; color: var(--letter-faint); font-size: .95rem; }
.footer p { margin: .2rem 0; }
.footer-name { font: 800 1.8rem/1 var(--display); color: var(--letter); margin-bottom: .6rem !important; }

.wa-float {
  position: fixed; z-index: 20;
  right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--accent); color: var(--felt);
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / .6);
  transition: opacity .2s ease, transform .2s ease;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float.escondido { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

@media (min-width: 821px) {
  /* no computador a nota aparece no selo; a linha continua para leitores de tela */
  .hero.tem-nota .hero-rating {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: min(78vh, 680px); }
  .hero-copy { padding-top: 6rem; padding-bottom: 3rem; }
  .hero-selo { display: none; }
  .hero.com-foto .hero-bg::after {
    background: linear-gradient(0deg, rgb(8 11 10 / .92) 25%, rgb(8 11 10 / .45) 70%, rgb(8 11 10 / .3));
  }
  .about, .historia { grid-template-columns: 1fr; }
  .historia-foto { position: relative; top: 0; }
  .about-photo { max-width: 420px; justify-self: center; width: 80%; }
  .visit { grid-template-columns: 1fr; }
  .wa-float { display: grid; }
  .topbar .btn-small { display: none; }
  .topbar { flex-wrap: wrap; }
  .menu-botao { display: inline-flex; align-items: center; }
  .menu {
    display: none; width: 100%; flex-direction: column; gap: 0; margin: .6rem 0 0;
    border-top: 1px solid rgb(255 255 255 / .1);
  }
  .menu a { padding: .9rem 0; border-bottom: 1px solid rgb(255 255 255 / .08); font-size: 1.1rem; }
  .menu a[aria-current="page"] { border-bottom-color: rgb(255 255 255 / .08); color: var(--accent); }
  .topbar.menu-aberto .menu { display: flex; }
}
