/* ============================================================
   Barbearia Supra — Barata Studio
   Vintage cream / kraft-paper barbershop landing
   ============================================================ */

/* ---------- Fonts (self-hosted, Fontshare) ---------- */
@font-face {
  font-family: 'Tanker';
  src: url('assets/fonts/Tanker-Regular.woff2') format('woff2'),
       url('assets/fonts/Tanker-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Erode';
  src: url('assets/fonts/Erode-Regular.woff2') format('woff2'),
       url('assets/fonts/Erode-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --display: 'Tanker', 'Georgia', serif;
  --body: 'Erode', 'Georgia', serif;
  --paper:   #e9dec5;   /* kraft base */
  --paper-2: #e2d5b8;   /* slightly deeper panel */
  --surface: #f2e9d4;   /* card / raised paper */
  --ink:     #211a11;   /* near-black ink */
  --ink-2:   #3a2f21;   /* soft ink */
  --sepia:   #8a5a2b;   /* deep sepia accent */
  --gold:    #a9762f;   /* aged gold */
  --gold-soft:#c1913f;
  --muted:   #7b6a4f;   /* faded brown */
  --line:    #cbb894;   /* hairline on paper */
  --espresso:#1c150d;   /* dark footer */
  --cream:   #f6efdd;
  --radius: 12px;
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 16px 40px rgba(50,35,15,.18);
  --grain:
    radial-gradient(circle at 20% 15%, rgba(120,90,45,.05) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(120,90,45,.045) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 85%, rgba(80,55,25,.04) 0 1.5px, transparent 3px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nav-open { overflow: hidden; }   /* lock page scroll while full-page menu is open */

body {
  font-family: var(--body);
  background: var(--paper);
  background-image: var(--grain);
  background-size: 140px 140px, 190px 190px, 160px 160px;
  color: var(--ink-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }

.section__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  letter-spacing: .01em;
  max-width: 20ch;
}
.section__eyebrow {
  font-family: var(--display);
  letter-spacing: .28em;
  font-size: 1rem;
  color: var(--sepia);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section__head { max-width: var(--max); margin: 0 auto 3rem; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }

/* decorative rule under eyebrow */
.section__eyebrow::after {
  content: ""; display: block; width: 46px; height: 2px;
  background: var(--sepia); margin-top: .5rem; opacity: .5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ink); color: var(--cream);
  font-weight: 700; padding: .85rem 1.7rem;
  border-radius: 4px; text-decoration: none;
  letter-spacing: .02em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 6px 18px rgba(33,26,17,.22);
}
.btn:hover { background: var(--sepia); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(138,90,43,.35); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--sm { padding: .55rem 1.2rem; font-size: .9rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(233,222,197,.9);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  padding: .8rem clamp(1.2rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { text-decoration: none; display: flex; align-items: center; gap: .7rem; line-height: 1; }
.nav__logo-img { height: 52px; width: auto; }  /* original black art on paper — no filter */
.nav__logo-sub {
  font-family: var(--display); font-size: .95rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  border-left: 1px solid var(--line); padding-left: .7rem;
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--sepia); }
.nav__links a.btn { color: var(--cream); }  /* keep button label visible over dark fill */
.nav__extra { display: none; }   /* mobile menu only */
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem clamp(1.2rem, 4vw, 2.5rem) 4rem; overflow: hidden;
  text-align: center;
}
.hero__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  /* Drop assets/img/hero.jpg to fill. Falls back to aged-paper gradient if absent. */
  background-image:
    url('assets/img/hero.jpg'),
    radial-gradient(120% 100% at 50% 0%, rgba(180,140,80,.22), transparent 60%),
    radial-gradient(80% 80% at 50% 120%, rgba(60,40,20,.25), transparent 60%),
    linear-gradient(180deg, #ece1c8, #ddceac);
}
.hero__overlay {
  position: absolute; inset: 0;
  background-image: var(--grain);
  background-size: 150px 150px, 200px 200px, 170px 170px;
  /* vignette */
  box-shadow: inset 0 0 180px rgba(60,40,20,.35);
}
.hero__content { position: relative; max-width: 820px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero__emblem {
  width: clamp(180px, 26vw, 300px); height: auto;
  margin-bottom: .4rem;
  filter: drop-shadow(0 8px 22px rgba(60,40,20,.3));
  animation: emblemIn 1s var(--ease) both;
}
@keyframes emblemIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.hero__eyebrow {
  font-family: var(--display); letter-spacing: .3em;
  color: var(--sepia); text-transform: uppercase; margin-bottom: .8rem; font-size: 1.05rem;
}
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 10vw, 6.5rem); color: var(--ink); letter-spacing: .01em; }
.hero__lede { max-width: 48ch; color: var(--ink-2); margin: 1.2rem auto 2rem; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; justify-content: center; }
.hero__rating { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .95rem; }
.hero__rating strong { color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 2px; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: var(--muted); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0); } 50%{ transform: translate(-50%,8px); } }

/* ---------- Sections base ---------- */
section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.about { background: var(--paper-2); border-block: 1px solid var(--line); }
.reviews { background: var(--paper-2); border-block: 1px solid var(--line); }

/* ---------- About ---------- */
.about__grid {
  max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center;
}
.about__text p { color: var(--ink-2); margin-top: 1rem; max-width: 52ch; }
.about__signature { color: var(--sepia); font-style: italic; font-weight: 700; font-size: 1.2rem; }
.about__badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.about__badges li { font-size: .82rem; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); background: var(--surface); }
.about__stats { display: grid; gap: 1rem; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; display: flex; align-items: baseline; gap: 1rem; box-shadow: var(--shadow);
}
.stat strong { font-family: var(--display); font-size: 2.6rem; color: var(--sepia); line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Services ---------- */
.services__grid {
  max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services__grid { grid-template-columns: 1fr; } }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; position: relative; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-4px); border-color: var(--sepia); box-shadow: var(--shadow); }
.service__num {
  display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1;
  color: var(--sepia); opacity: .55; margin-bottom: .9rem; letter-spacing: .02em;
}
.service--feat .service__num { opacity: .85; }
.service h3 { font-size: 1.35rem; }
.service p { color: var(--muted); margin: .6rem 0 0; font-size: .95rem; }
.service--feat { border-color: var(--sepia); border-width: 1.5px; background: linear-gradient(160deg, #f6ecd3, var(--surface)); }
.service__tag {
  position: absolute; top: -.7rem; right: 1.4rem;
  background: var(--ink); color: var(--cream); font-size: .72rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 3px; letter-spacing: .04em;
}
.services__note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 2rem; }

/* ---------- Team ---------- */
.team { background: var(--paper-2); border-block: 1px solid var(--line); }
.team__grid {
  max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.member { text-align: center; }
.member__photo {
  aspect-ratio: 1; border-radius: 50%; margin: 0 auto 1.1rem; max-width: 190px; width: 100%;
  border: 3px solid var(--sepia); position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(138,90,43,.18), rgba(60,40,20,.3)),
    repeating-linear-gradient(45deg, #d8c9a6 0 14px, #d0bf98 14px 28px);
  background-size: cover; background-position: center; box-shadow: var(--shadow);
}
.member__photo::after {
  content: attr(data-ph); position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  font-family: var(--display); letter-spacing: .18em; color: rgba(60,40,20,.5); font-size: 1.1rem;
}
.member__photo img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.25) contrast(1.02);
}
.member h3 { font-family: var(--display); font-size: 1.6rem; letter-spacing: .04em; }
.member__role { color: var(--sepia); font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: .5rem; }
.member__bio { color: var(--muted); font-size: .92rem; max-width: 30ch; margin: 0 auto; }

/* ---------- Gallery ---------- */
.carousel {
  max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  position: relative;
}
.carousel__track {
  display: flex; gap: 1rem; overflow-x: auto;
  justify-content: center;   /* conteúdo sempre centrado */
  scroll-padding-inline: 50%;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .3rem .2rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.gcard {
  flex: 0 0 auto; width: clamp(250px, 32vw, 340px); aspect-ratio: 1 / 1;
  scroll-snap-align: center; margin: 0; position: relative;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gcard img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.28) contrast(1.02); transition: transform .5s var(--ease);
}
.gcard:hover img { transform: scale(1.05); }
.carousel__btn {
  position: absolute; top: calc(50% - .4rem); transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--cream); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow);
  transition: background .2s var(--ease), transform .2s var(--ease); font-family: var(--display);
}
.carousel__btn:hover { background: var(--sepia); }
.carousel__btn--prev { left: -.4rem; }
.carousel__btn--next { right: -.4rem; }
.carousel__btn[disabled] { opacity: .3; cursor: default; }
@media (max-width: 640px) { .carousel__btn { display: none; } }
.gallery__note { text-align: center; color: var(--muted); margin-top: 1.8rem; }
.gallery__note a { color: var(--sepia); text-decoration: none; font-weight: 600; }
.gallery__note a:hover { text-decoration: underline; }

/* ---------- Reviews ---------- */
.reviews__grid {
  max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem;
}
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; box-shadow: var(--shadow);
}
.review p { color: var(--ink-2); font-size: 1rem; }
.review__head { display: flex; align-items: center; gap: .7rem; }
.review__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--display); font-size: 1.2rem;
  background: var(--sepia); color: var(--cream);
}
.review__who { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.review__who strong { color: var(--ink); font-size: .95rem; }
.review__who span { color: var(--muted); font-size: .78rem; }
.review__g { width: 20px; height: 20px; flex-shrink: 0; }

/* Google summary badge */
.gsummary {
  max-width: var(--max); margin: 0 auto 2.2rem; padding: 1rem 1.6rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  width: fit-content; background: var(--surface); border: 1px solid var(--line);
  border-radius: 100px; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s;
}
.gsummary:hover { transform: translateY(-2px); border-color: var(--sepia); }
.gsummary__g { width: 30px; height: 30px; }
.gsummary__score { display: flex; align-items: center; gap: .5rem; }
.gsummary__score strong { font-family: var(--display); font-size: 1.8rem; color: var(--ink); }
.gsummary__meta { color: var(--muted); font-size: .9rem; }
.gsummary__link { color: var(--sepia); font-weight: 600; }
.reviews__cta { text-align: center; margin-top: 2.4rem; }
.reviews .section__head { text-align: center; }
.reviews .section__title { max-width: none; }
.reviews .section__eyebrow::after { margin-left: auto; margin-right: auto; }

/* ---------- Visit ---------- */
.visit__grid {
  max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: stretch;
}
.visit__addr { color: var(--muted); margin-top: .6rem; }
.hours { width: 100%; margin: 1.8rem 0; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hours th { color: var(--ink-2); font-weight: 600; }
.hours td { color: var(--sepia); text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hours--closed td { color: var(--muted); }
.visit__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.visit__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; box-shadow: var(--shadow); }
.visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: sepia(.5) contrast(1.02) brightness(.98); }

/* ---------- Footer (dark espresso for contrast) ---------- */
.footer { background: var(--espresso); border-top: 3px solid var(--sepia); padding: 3.5rem clamp(1.2rem, 4vw, 2.5rem) 2rem; color: var(--cream); }
.footer__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer__logo { height: 96px; width: auto; filter: invert(1) brightness(1.5); }  /* white on dark footer */
.footer__brand p { color: #b8a888; margin-top: .6rem; font-size: .9rem; }
.footer__col h4 { color: var(--cream); margin-bottom: .8rem; font-size: 1rem; }
.footer__col a, .footer__col address {
  display: block; color: #b8a888; text-decoration: none; font-style: normal;
  margin-bottom: .4rem; font-size: .92rem; transition: color .2s;
}
.footer__col a:hover { color: var(--gold-soft); }
.footer__legal { max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid #3a2f1e; color: #9a8a68; font-size: .82rem; text-align: center; }
.footer__legal a { color: var(--gold-soft); text-decoration: none; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 40;
  width: 60px; height: 60px;
  display: block; transition: transform .25s var(--ease);
  filter: drop-shadow(0 8px 22px rgba(37,211,102,.4));
}
.fab img { width: 100%; height: 100%; display: block; }
.fab:hover { transform: scale(1.08); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about__grid, .visit__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__logo-sub { display: none; }
  .nav__links {
    position: fixed; inset: 0; width: 100vw; height: 100dvh;
    background: var(--paper); background-image: var(--grain); background-size: 150px 150px, 200px 200px, 170px 170px;
    flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 2rem; gap: 2rem; transform: translateX(100%); transition: transform .35s var(--ease);
  }
  .nav__links a:not(.btn) { font-size: 1.4rem; font-family: var(--display); letter-spacing: .04em; }
  .nav__links a.btn { margin-top: .6rem; padding: .8rem 2.2rem; font-size: 1.05rem; }

  /* extra block fills the empty menu */
  .nav__extra { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1.4rem; }
  .nav__extra-line { width: 60px; height: 2px; background: var(--sepia); opacity: .5; }
  .nav__socials { display: flex; gap: 1.5rem; }
  .nav__socials a { color: var(--ink); transition: color .2s var(--ease), transform .2s var(--ease); display: grid; place-items: center; }
  .nav__socials a:hover { color: var(--sepia); transform: translateY(-2px); }
  .nav__socials svg { width: 28px; height: 28px; }
  .nav__phone { font-family: var(--display); font-size: 1.5rem; color: var(--ink); letter-spacing: .06em; text-decoration: none; }
  .nav__addr { color: var(--muted); font-size: .85rem; }
  .nav__links.is-open { transform: translateX(0); }
  .nav__burger { display: flex; z-index: 60; }
  .nav.is-menu .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-menu .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-menu .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
  .footer__col { display: flex; flex-direction: column; align-items: center; }
  .footer__legal { text-align: center; }

  /* only 2 reviews on mobile — rest via the Google link */
  .review:nth-child(n+3) { display: none; }

  /* center the buttons after the schedule */
  .visit__cta { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
