:root {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, .95694vw, 17px);
  color: #101010;
  background: #111;
  --paper: #f3f3f3;
  --ink: #111;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: .75rem; }
body, h1, h2, h3, p, figure, ol { margin: 0; }
body { background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #2d7fcc; outline-offset: 3px; }
[hidden], .icon-library { display: none !important; }
.icon { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.filled { fill: currentColor; stroke: none; }
.skip { position: absolute; z-index: 4; left: 1rem; top: -5rem; padding: .5rem 1rem; background: white; color: black; }
.skip:focus { top: .5rem; }
.shell { width: 79%; margin-inline: auto; }
.shell-wide { width: 85.4%; margin-inline: auto; }
h2 { font-size: 1.66rem; line-height: 1.02; letter-spacing: -.025em; font-weight: 750; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
  margin-bottom: .65rem;
}
.eyebrow::after { content: ''; width: 2.4rem; height: 1px; background: #999; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  min-height: 2.45rem;
  padding: .4rem 1.15rem;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.button-light { background: #f5f5f5; color: var(--ink); }
.button-light:hover { background: #dedede; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #333; }
.button-wide { min-width: 14.1rem; }
.arrow { width: .95rem; height: .95rem; }

.header {
  background: #121212;
  color: #f4f4f4;
  border-bottom: 1px solid #343434;
  position: relative;
  z-index: 2;
}
.header-layout {
  min-height: 3.45rem;
  display: grid;
  grid-template-columns: 1fr auto .8fr;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 1.8rem; width: fit-content; }
.brand img { width: 2.34rem; height: 2.48rem; object-fit: contain; }
.brand-text { padding-left: 1.8rem; border-left: 1px solid #6c6c6c; letter-spacing: .32em; line-height: 1; font-size: 1.38rem; text-align: center; }
.brand-text small { display: block; font-size: .54rem; margin-top: .24rem; letter-spacing: .38em; }
.navigation { display: flex; align-items: stretch; gap: 1.7rem; }
.navigation a { position: relative; display: flex; align-items: center; padding: 0 .58rem; height: 3.45rem; font-size: .86rem; }
.navigation a[aria-current]::after, .navigation a:hover::after { content: ''; position: absolute; inset: auto 0 .87rem; height: 2px; background: #f5f5f5; }
.header-book { justify-self: end; min-height: 2rem; min-width: 7.4rem; font-size: .83rem; gap: .55rem; }
.header-book .icon { width: .95rem; height: .95rem; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 18.8rem; color: #f5f5f5; background: linear-gradient(108deg, #111 7%, #222 39%, #2a2a2a 50%); }
.hero-image {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 34.39%;
  background: url('assets/hero.webp') right center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 7%);
}
.hero-content { padding-block: 2.85rem 2.25rem; }
.hero h1 { font-size: 2.69rem; letter-spacing: -.016em; line-height: .96; font-weight: 400; }
.hero h1 em { font-weight: 800; }
.hero h1::after { content: ''; display: block; width: 2.4rem; height: 1px; background: #ddd; margin: 1.16rem 0 .56rem; }
.hero p { font-size: .97rem; line-height: 1.19; margin-bottom: 1.05rem; }

.services { background: #f3f3f3; }
.services-layout { min-height: 12rem; display: grid; grid-template-columns: 25.8% 1fr; gap: 1.55rem; align-items: center; }
.service-intro { padding-left: .1rem; }
.service-intro .eyebrow { margin-bottom: .95rem; }
.service-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.7rem; }
.service-card { align-self: stretch; background: #e8e8e8; border-radius: .34rem; padding: .75rem .65rem .85rem 1.55rem; min-height: 7.65rem; }
.service-card .icon { display: block; width: 1.7rem; height: 1.7rem; margin-bottom: .18rem; stroke-width: 1.35; }
.service-card h3 { font-size: 1.03rem; line-height: 1.1; margin-bottom: .35rem; letter-spacing: -.022em; }
.service-card p { color: #222; font-size: .86rem; line-height: 1.33; }

.about { min-height: 11.6rem; display: grid; grid-template-columns: 52.4% 1fr; background: #f1f1f1; }
.about-photo { display: block; position: relative; border: 0; padding: 0; background: transparent; }
.about-image { display: block; position: relative; min-height: 100%; overflow: hidden; }
.about-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 93%, #f1f1f1); }
.about-text { align-self: center; padding: 1.15rem 1rem 1.15rem .4rem; }
.about-text h2 { margin-bottom: .43rem; }
.about-text > p:last-child, .team-intro > p:not(.eyebrow), .gallery-intro > p:not(.eyebrow) { font-size: .95rem; line-height: 1.35; }

.gallery { background: #f8f8f8; }
.gallery-layout { min-height: 11.2rem; display: grid; grid-template-columns: 22% 1fr; align-items: center; gap: 1rem; }
.gallery-intro { padding-left: .72rem; }
.gallery-intro h2 { margin-bottom: .3rem; }
.social { font-size: .87rem; font-weight: 700; display: inline-flex; gap: .75rem; align-items: center; padding-block: .62rem .12rem; }
.social:hover { text-decoration: underline; }
.social .icon:not(.arrow) { width: 1.35rem; height: 1.35rem; }
.social .arrow { margin-left: .25rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .52rem; }
.gallery-grid button { position: relative; display: block; aspect-ratio: 1.42; border: 0; padding: 0; background: #ddd; border-radius: .34rem; overflow: hidden; }
.gallery-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.gallery-grid img[src$="foto-1.webp"] { object-position: center 13%; }
.gallery-grid button:hover img { transform: scale(1.05); }

.team { background: #efefef; border-top: 1px solid #e1e1e1; }
.team-layout {
  width: 78.25%;
  display: grid;
  grid-template:
    "photo intro" auto
    "photo roster" auto
    / minmax(0, .8fr) minmax(0, 1fr);
  align-content: center;
  align-items: start;
  gap: .95rem clamp(1.6rem, 5vw, 5rem);
  padding-block: 1.65rem;
}
.team-image {
  grid-area: photo;
  align-self: center;
  justify-self: end;
  width: min(100%, 22rem);
  height: auto;
  border-radius: .55rem;
}
.team-intro { grid-area: intro; align-self: end; }
.team-intro h2 { margin-bottom: .5rem; }
.team-intro > p:not(.eyebrow) { max-width: 46ch; }
.team-roster { grid-area: roster; }
.barber-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  list-style: none;
  padding: 0;
  max-width: 32rem;
}
.barber-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  padding: .38rem .55rem .38rem .38rem;
  border: 1px solid #dedede;
  border-radius: .4rem;
  background: #f9f9f9;
  font-size: .92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.barber-portrait {
  flex: none;
  width: 2.85rem;
  aspect-ratio: 1;
  border-radius: .25rem;
  background-color: #ccc;
  background-repeat: no-repeat;
}
.barber-portrait--alfredo { background-image: url('assets/alfredo-junior.jpg'); background-size: 198% auto; background-position: 51% 16%; }
.barber-portrait--thiago { background-image: url('assets/thiago-alves.jpg'); background-size: 255% auto; background-position: 49% 1%; }
.barber-portrait--geideson { background-image: url('assets/geideson-menezes.jpg'); background-size: 125% auto; background-position: 51% 0; }
.barber-portrait--kelvin { background-image: url('assets/kelvin-atalaya.jpg'); background-size: 249% auto; background-position: 49% 8%; }
.team-button { min-height: 2.5rem; margin-top: .85rem; font-size: .88rem; }

.contact { min-height: 5.2rem; position: relative; isolation: isolate; overflow: hidden; background: #121212; color: #f5f5f5; }
.contact::before { content: ''; z-index: -1; position: absolute; inset: .35rem auto auto 3.9%; width: 5.8rem; height: 6.9rem; background: url('assets/simbolo.png') center top / contain no-repeat; opacity: .24; }
.contact-layout { min-height: 5.2rem; display: grid; grid-template-columns: 45% 1fr auto; align-items: center; padding-right: 2.8%; }
.contact h2 { font-size: 2.07rem; text-align: center; }
.contact address { border-left: 1px solid #888; font-size: .83rem; line-height: 1.3; font-style: normal; padding-left: 4.3rem; }
.contact address a { display: flex; align-items: center; width: fit-content; gap: 1rem; }
.contact address a:hover { text-decoration: underline; }
.contact address .icon { width: 1.42rem; height: 1.42rem; }

.viewer { color: white; background: #171717; border: 1px solid #454545; padding: 2.85rem 1rem 1rem; border-radius: .55rem; width: min(90vw, 43rem); text-align: center; }
.viewer::backdrop { background: rgb(0 0 0 / 80%); }
.viewer img { margin-inline: auto; width: auto; height: auto; max-width: 100%; max-height: min(61vh, 32rem); object-fit: contain; }
.viewer figcaption { margin-top: .7rem; }
.viewer button { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; color: white; background: #292929; border: 1px solid #505050; border-radius: .3rem; }
.viewer button:hover { background: #414141; }
.viewer-close { position: absolute; top: .45rem; right: .45rem; }
.viewer-controls { display: flex; justify-content: center; gap: .5rem; margin-top: .7rem; }
.viewer-prev .icon { transform: rotate(180deg); }

@media (max-width: 1100px) and (min-width: 761px) {
  .shell { width: 88%; }
  .shell-wide { width: 91%; }
  .navigation { gap: .65rem; }
  .service-list { gap: .7rem; }
  .service-card { padding-left: .75rem; }
  .hero-image { inset-inline-start: 28%; }
  .team-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); column-gap: 1.5rem; }
  .contact address { padding-left: 1.5rem; }
}
@media (max-width: 760px) {
  :root { font-size: 16px; }
  .shell, .shell-wide { width: min(90%, 34rem); }
  .desktop-break { display: none; }
  h2 { font-size: 1.65rem; }
  .eyebrow { font-size: .65rem; margin-bottom: .65rem; }
  .button { min-height: 2.75rem; }
  .header-layout { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; min-height: 4rem; }
  .brand { gap: .55rem; }
  .brand img { width: 1.65rem; height: 1.9rem; }
  .brand-text { padding-left: .55rem; font-size: .95rem; letter-spacing: .23em; }
  .brand-text small { font-size: .45rem; }
  .header-book { grid-column: 2; grid-row: 1; min-height: 2.45rem; min-width: 0; gap: .35rem; padding-inline: .62rem; }
  .menu-toggle { grid-column: 3; grid-row: 1; display: grid; place-items: center; padding: 0; width: 2.65rem; height: 2.65rem; border: 1px solid #666; border-radius: .35rem; background: transparent; }
  .navigation { display: none; position: absolute; top: 100%; inset-inline: 0; padding: .25rem 5% .6rem; background: #171717; box-shadow: 0 8px 20px #0005; }
  .navigation.is-open { display: grid; gap: 0; }
  .navigation a { height: 2.65rem; font-size: .95rem; padding-inline: .4rem; }
  .navigation a[aria-current]::after, .navigation a:hover::after { inset-inline: .4rem auto; bottom: .28rem; width: 1.8rem; }
  .hero { display: grid; align-items: end; min-height: 24rem; background: #171717; }
  .hero-image { inset: 0; mask-image: none; background-image: linear-gradient(0deg, #111 0%, #111e 19%, #1114 68%, #1111 100%), url('assets/cadeiras.webp'); background-size: cover; background-position: center; }
  .hero-content { padding-block: 4rem 1.55rem; }
  .hero h1 { font-size: clamp(1.9rem, 7.2vw, 2.65rem); }
  .hero p { max-width: 25rem; }
  .services-layout, .gallery-layout { display: block; padding-block: 1.5rem; }
  .service-intro .eyebrow { margin-bottom: .65rem; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62rem; margin-top: 1rem; }
  .service-card { min-height: 7rem; padding: .7rem; }
  .service-card h3 { font-size: .97rem; }
  .service-card p { font-size: .79rem; line-height: 1.26; }
  .about { display: flex; flex-direction: column-reverse; }
  .about-text { width: min(90%, 34rem); margin-inline: auto; padding: 1.5rem 0 1rem; }
  .about-photo { width: min(90%, 32rem); margin: 0 auto 1.4rem; text-align: left; }
  .about-image img { position: static; width: 100%; height: auto; border-radius: .35rem; }
  .about-image::after { display: none; }
  .about-text > p:last-child, .team-intro > p:not(.eyebrow), .gallery-intro > p:not(.eyebrow) { font-size: .95rem; line-height: 1.4; }
  .gallery-intro { padding-left: 0; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-top: .8rem; }
  .gallery-grid button:last-child { grid-column: 2; }

  .team-layout {
    grid-template: "intro" "photo" "roster" / minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.5rem;
  }
  .team-image { justify-self: start; width: min(100%, 32rem); }
  .barber-list li { gap: .45rem; font-size: .88rem; }
  .barber-portrait { width: 2.45rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
  .contact h2 { text-align: left; font-size: 1.8rem; }
  .contact address { font-size: .94rem; border: 0; padding: 0; }
  .contact .button { justify-self: start; }
  .contact::before { inset-inline: auto 7%; opacity: .12; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
