/* ============================================================
   Bravio Barber Club — Estilos partilhados (layout/tipografia)
   IDÊNTICO entre v1 e v2. Nenhuma cor literal aqui: tudo via
   var(--token) definido em theme.css. Mobile-first.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--body);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--faint); }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Utilitários de layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding-block: 56px; } /* padding-block preserva o padding horizontal do .wrap */
.serif { font-family: 'Playfair Display', Georgia, serif; }

.eyebrow {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 10px;
}
.display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.5px;
}
h1.display { font-size: clamp(30px, 8.5vw, 72px); line-height: 1.04; }
h2.display { font-size: clamp(26px, 6vw, 48px); }
.hero-copy, .display { overflow-wrap: break-word; }
.rule { width: 90px; height: 3px; background: var(--accent); border-radius: 2px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .rule { margin: 16px auto 0; }
.lead { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 600; padding: 14px 24px;
  border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  white-space: nowrap; transition: transform .2s ease, background .25s ease,
    color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); color: var(--on-accent);
  box-shadow: 0 12px 30px -14px var(--accent-glow); }
.btn-accent:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--panel); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 12px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: var(--overlay); backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; max-width: 1280px; margin: 0 auto;
}
.brand { display: flex; flex-direction: column; line-height: .92; color: var(--ink); }
.brand .mark {
  font-family: 'UnifrakturMaguntia', 'Playfair Display', serif;
  font-size: 28px; letter-spacing: .5px;
}
.brand .sub {
  font-size: 9px; font-weight: 600; letter-spacing: 5px;
  text-transform: uppercase; color: var(--muted); padding-left: 2px;
}
.nav { display: none; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex; gap: 3px; border: 1px solid var(--line);
  border-radius: 10px; padding: 3px; background: var(--panel);
}
.lang-switch button {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px;
  border-radius: 7px; border: none; cursor: pointer; font-size: 12px;
  background: transparent; color: var(--muted); font-weight: 600;
}
.lang-switch button.active {
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.lang-switch svg { width: 20px; height: 14px; border-radius: 2px; display: block; }
.header-book { display: none; } /* escondido só em ecrãs muito pequenos (CTA está no hero) */

/* ---------- Menu móvel (hamburguer) ---------- */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
}
.nav-toggle-bar {
  display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 0; right: 0; z-index: 70;
  height: 100vh; height: 100dvh; width: min(82vw, 320px);
  background: var(--panel); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; padding: 92px 24px 28px;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.7,.2,1);
}
.mobile-nav.open { transform: none; box-shadow: -24px 0 60px -30px rgba(0,0,0,.8); }
.mobile-nav a {
  font-size: 17px; font-weight: 600; color: var(--ink);
  padding: 15px 2px; border-bottom: 1px solid var(--line); transition: color .2s;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav-book { justify-content: center; border-bottom: none; margin-top: 18px; color: var(--on-accent); }
.mobile-nav-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-nav-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-block: 36px 32px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-copy .rule { margin: 20px 0 22px; width: 120px; }
.hero-sub { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 440px; }
.hero-title-accent { color: var(--accent); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.avatars { display: flex; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--bg); background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--accent);
  font-family: 'Playfair Display', serif;
}
.avatar + .avatar { margin-left: -12px; }
.rating-line { display: flex; align-items: center; gap: 8px; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 15px; }
.rating-num { font-weight: 700; font-size: 15px; }
.proof-text { font-size: 13px; color: var(--muted); margin-top: 2px; }

.hero-media {
  position: relative; aspect-ratio: 4/5; border-radius: 20px;
  overflow: hidden; border: 1px solid var(--line);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--overlay-soft), transparent 45%);
}
.media-badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 1;
  background: var(--overlay); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
}
.media-badge .label { font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.media-badge .year {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 24px; color: var(--accent);
}

/* ---------- Highlights ---------- */
.highlights {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  display: grid; grid-template-columns: 1fr 1fr;
}
.highlight {
  padding: 24px 18px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 10px;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.highlight svg { width: 26px; height: 26px; stroke: var(--accent); }
.highlight:nth-child(2n) { border-right: none; }
.highlight:nth-last-child(-n+2) { border-bottom: none; }
.highlight .h-t { font-weight: 700; font-size: 15px; }
.highlight .h-s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.svc-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.svc-media { position: relative; aspect-ratio: 4/3; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--scrim), transparent 55%);
}
.svc-icon {
  position: absolute; left: 16px; bottom: -22px; z-index: 1;
  width: 48px; height: 48px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line); display: flex; align-items: center;
  justify-content: center; color: var(--accent);
}
.svc-body { padding: 34px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; }
.svc-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 8px; flex: 1; }
.svc-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.svc-duration { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); }
.svc-duration svg { width: 14px; height: 14px; }
.svc-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.svc-price .prefix { font-size: 11px; color: var(--faint); }
.svc-price .amount { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 24px; color: var(--accent); }

.kids {
  margin-top: 36px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px;
}
.kids-icon {
  flex: none; width: 58px; height: 58px; border-radius: 15px; background: var(--bg);
  border: 1px solid var(--line); display: flex; align-items: center;
  justify-content: center; color: var(--accent);
}
.kids-copy { flex: 1; min-width: 240px; }
.kids-copy h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; }
.kids-copy p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-top: 7px; max-width: 600px; }

/* ---------- Team ---------- */
.team { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-head { margin-bottom: 32px; }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 960px; margin: 0 auto; }
.member { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.member-media { aspect-ratio: 3/4; position: relative; }
.member-media img { width: 100%; height: 100%; object-fit: cover; }
.member-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--scrim-strong), transparent 50%);
}
.member-body { padding: 18px 20px 22px; text-align: center; }
.member-body h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; }
.member-role { font-size: 13px; color: var(--accent); margin-top: 3px; letter-spacing: .3px; }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.socials a {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.socials svg { width: 15px; height: 15px; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
.rev-summary {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.rev-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.rev-brand .g { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 30px; letter-spacing: -.5px; color: var(--ink); }
.rev-badge { font-size: 12px; color: var(--faint); border: 1px solid var(--line); border-radius: 20px; padding: 4px 11px; }
.rev-score { display: flex; align-items: flex-end; gap: 16px; }
.rev-score .num { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 72px; line-height: .85; color: var(--accent); }
.rev-score .stars { font-size: 22px; letter-spacing: 2px; }
.rev-score .based { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.rev-score .based b { color: var(--ink); }
.rev-divider { height: 1px; background: var(--line); margin: 24px 0; }
.rev-body { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.rev-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.rev-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; position: relative; display: flex; flex-direction: column;
}
.rev-card .g-mark { position: absolute; top: 18px; right: 18px; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 15px; color: var(--faint); }
.rev-person { display: flex; align-items: center; gap: 12px; }
.rev-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--accent); font-family: 'Playfair Display', serif;
}
.rev-name { font-weight: 600; font-size: 14.5px; }
.rev-when { font-size: 11.5px; color: var(--faint); }
.rev-card .stars { color: var(--star); font-size: 14px; letter-spacing: 1px; margin: 14px 0 8px; }
.rev-text { font-size: 13.5px; color: var(--muted); line-height: 1.65; flex: 1; }
.rev-note { text-align: center; margin-top: 24px; font-size: 13px; color: var(--faint); display: flex; align-items: center; justify-content: center; gap: 8px; }
.rev-note svg { width: 15px; height: 15px; stroke: var(--accent); }

/* ---------- Gallery ---------- */
.gallery-placeholder {
  border: 2px dashed var(--line); border-radius: 18px; background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; padding: 72px 24px; min-height: 300px;
}
.gallery-placeholder svg { width: 54px; height: 54px; stroke: var(--accent); opacity: .9; }
.gp-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; color: var(--ink); }
.gp-sub { font-size: 14px; color: var(--muted); max-width: 380px; }

/* ---------- Contact ---------- */
.contact { background: var(--panel); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact-form {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px;
}
.contact-form h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.contact-form .form-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: 11px; padding: 14px 15px; color: var(--ink); font-size: 14px;
  margin-top: 14px; transition: border-color .2s;
}
.field-row input { margin-top: 0; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-privacy { font-size: 12px; color: var(--faint); margin-top: 14px; }

.info-stack { display: flex; flex-direction: column; gap: 20px; }
.info-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.info-card h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.info-row { display: flex; gap: 13px; align-items: flex-start; }
.info-row + .info-row { margin-top: 16px; }
.info-row .ic { color: var(--accent); flex: none; }
.info-row .ic svg { width: 18px; height: 18px; }
.info-row .r-main { font-size: 14.5px; font-weight: 600; }
.info-row .r-sub { font-size: 12.5px; color: var(--muted); }
.hours-card { background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.hours-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.open-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px;
  font-weight: 600; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
}
.open-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.open-badge.is-open .open-dot { background: var(--accent); }
.hours-list { display: flex; flex-direction: column; }
.hours-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.hours-row:last-child { border-bottom: none; }
.hours-day { font-size: 14px; color: var(--ink); font-weight: 500; }
.hours-time { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.5; font-size: 13px; color: var(--ink); font-weight: 500; }
.hours-row.closed .hours-time { color: var(--accent); font-weight: 600; }
.map-card { position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-height: 200px; }
.map-card iframe { width: 100%; height: 100%; min-height: 200px; border: 0; display: block; filter: invert(0.92) hue-rotate(180deg) grayscale(0.15) contrast(0.95); }
.map-tag {
  position: absolute; left: 18px; bottom: 18px; background: var(--overlay);
  backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; pointer-events: none;
}
.map-tag .m-mark { font-family: 'UnifrakturMaguntia', serif; font-size: 18px; color: var(--ink); }
.map-tag .m-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.footer .brand { margin-bottom: 16px; }
.foot-tagline { font-size: 13.5px; color: var(--muted); line-height: 1.7; max-width: 300px; }
.foot-socials { display: flex; gap: 10px; margin-top: 20px; }
.foot-socials a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.foot-socials a:hover { color: var(--accent); border-color: var(--accent); }
.foot-socials svg { width: 16px; height: 16px; }
.foot-col .col-title { font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.foot-links { display: flex; flex-direction: column; gap: 11px; }
.foot-links a, .foot-hours span { font-size: 13.5px; color: var(--muted); }
.foot-links a { transition: color .2s; }
.foot-links a:hover { color: var(--accent); }
.foot-hours { display: flex; flex-direction: column; gap: 11px; }
.foot-book { color: var(--accent); font-weight: 600; margin-top: 4px; }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line);
}
.foot-bottom p { font-size: 12.5px; color: var(--faint); }

/* ---------- Animação de scroll (subtil) ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVO (mobile-first → tablet → desktop)
   ============================================================ */
@media (min-width: 480px) {
  .header-book { display: inline-flex; }
}

@media (min-width: 560px) {
  .wrap { padding: 0 28px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .rev-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .section { padding-block: 68px; }
  .highlights { grid-template-columns: repeat(4, 1fr); }
  .highlight { border-bottom: none; }
  .highlight:nth-child(2n) { border-right: 1px solid var(--line); }
  .highlight:last-child { border-right: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .eyebrow { font-size: 20px; }
}

@media (min-width: 1000px) {
  .wrap { padding: 0 32px; }
  .hero { padding-block: 56px 40px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .nav { display: flex; }
  .header-book { display: inline-flex; }
  .nav-toggle, .mobile-nav, .mobile-nav-backdrop { display: none; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: .85fr 1.15fr; }
  .contact-grid { grid-template-columns: 1.15fr .85fr; }
}

/* Keep the menu close control above the drawer and its backdrop. */
body.nav-open .site-header { z-index: 80; }
