/* ==========================================================================
   Thomas Gabriel — Barbeiro | Landing page
   Design: barbearia autoral premium — preto profundo + grafite + bronze discreto
   ========================================================================== */

:root {
  --black: #080808;
  --graphite: #151515;
  --graphite-2: #1c1c1c;
  --warm-white: #f4f1ea;
  --grey: #a7a7a7;
  --grey-soft: #7d7a74;
  --bronze: #b08d57;
  --bronze-light: #c9a876;
  --line: rgba(244, 241, 234, 0.1);
  --line-soft: rgba(244, 241, 234, 0.06);

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --radius: 2px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-graphite {
  background: var(--graphite);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--bronze);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--warm-white);
  max-width: 42rem;
}

.section-lede {
  margin-top: 1.1rem;
  color: var(--grey);
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--bronze);
  color: var(--black);
  padding: 0.7rem 1.2rem;
  z-index: 1000;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--bronze-light);
  outline-offset: 3px;
}

/* ---------- botoes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--bronze);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--bronze-light);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--line);
  color: var(--warm-white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--bronze);
  color: var(--bronze-light);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.1rem 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

.site-header.is-solid {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
  padding: 0.7rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 34px;
  width: auto;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.main-nav a {
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--warm-white);
  position: relative;
  padding: 0.3rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--bronze);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--warm-white);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(8, 8, 8, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.mobile-nav .btn {
  margin-top: 0.8rem;
}

.mobile-nav-close {
  position: absolute;
  top: 1.3rem;
  right: clamp(1.25rem, 4vw, 2.5rem);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--warm-white);
}

.mobile-nav-close svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 6rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0.35) 32%, rgba(8, 8, 8, 0.88) 92%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.75) 0%, rgba(8, 8, 8, 0.15) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  max-width: 46rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-light);
  border: 1px solid rgba(176, 141, 87, 0.4);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
  background: rgba(8, 8, 8, 0.35);
}

.hero-tag svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  color: var(--warm-white);
}

.hero p.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--warm-white);
  opacity: 0.88;
  max-width: 34rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* ==========================================================================
   Faixa de confianca
   ========================================================================== */

.trust-strip {
  background: var(--graphite);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 1.8rem 0;
}

.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1rem;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--grey);
  letter-spacing: 0.01em;
}

.trust-strip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--bronze);
}

@media (min-width: 760px) {
  .trust-strip ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Sobre
   ========================================================================== */

.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media .frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-media::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -14px;
  width: 92px;
  height: 92px;
  border-top: 1px solid var(--bronze);
  border-left: 1px solid var(--bronze);
  z-index: 1;
}

.about-media::after {
  content: "";
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 92px;
  height: 92px;
  border-bottom: 1px solid var(--bronze);
  border-right: 1px solid var(--bronze);
  z-index: 1;
}

.about-body p {
  color: var(--grey);
  font-size: 1.03rem;
  line-height: 1.75;
  margin-top: 1.3rem;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bronze-light);
  border-bottom: 1px solid rgba(176, 141, 87, 0.4);
  padding-bottom: 0.2rem;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* ==========================================================================
   Servicos
   ========================================================================== */

.services-grid {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--black);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: background 0.3s ease;
}

.service-card:hover {
  background: var(--graphite-2);
}

.service-card .icon {
  width: 40px;
  height: 40px;
  color: var(--bronze);
}

.service-card h3 {
  font-size: 1.18rem;
  color: var(--warm-white);
}

.service-card .avail {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--grey-soft);
  letter-spacing: 0.02em;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-soft);
}

.services-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

@media (min-width: 620px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.portfolio-tab {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--grey);
  background: transparent;
  border-radius: 999px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.portfolio-tab.is-active,
.portfolio-tab:hover {
  border-color: var(--bronze);
  color: var(--bronze-light);
}

.portfolio-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--graphite);
  border: 1px solid var(--line-soft);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

.portfolio-item button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
}

.portfolio-item .tag {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: rgba(8, 8, 8, 0.55);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 8, 8, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  width: auto;
  height: auto;
  border: 1px solid var(--line);
}

.lightbox-close {
  position: absolute;
  top: 1.3rem;
  right: clamp(1.25rem, 4vw, 2.5rem);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--warm-white);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Atendimento infantil
   ========================================================================== */

.kids {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.kids-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}

.kids-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.kids-body p {
  color: var(--grey);
  margin-top: 1.2rem;
  font-size: 1.03rem;
  line-height: 1.75;
}

@media (min-width: 900px) {
  .kids {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .kids-media {
    order: 2;
  }
}

/* ==========================================================================
   Localizacao
   ========================================================================== */

.location {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.location-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
}

.location-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-info dl {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--grey);
}

.location-info dl div {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.location-info dl svg {
  width: 18px;
  height: 18px;
  color: var(--bronze);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.location-note {
  margin-top: 1.3rem;
  font-size: 0.86rem;
  color: var(--grey-soft);
  border-left: 2px solid var(--bronze);
  padding-left: 0.9rem;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .location {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  margin-top: 2.5rem;
  max-width: 44rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--warm-white);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--bronze);
  transition: transform 0.25s ease;
}

.faq-item summary .plus::before {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.faq-item summary .plus::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item[open] summary .plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-item p {
  color: var(--grey);
  padding-bottom: 1.4rem;
  max-width: 40rem;
  line-height: 1.7;
}

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta-final {
  text-align: center;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(176, 141, 87, 0.1), transparent 70%),
    var(--graphite);
}

.cta-final h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  max-width: 38rem;
  margin: 0 auto;
}

.cta-final p {
  margin: 1.2rem auto 0;
  max-width: 32rem;
  color: var(--grey);
  font-size: 1.05rem;
}

.cta-final .btn {
  margin-top: 2.4rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--line-soft);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.footer-brand img {
  height: 30px;
}

.footer-brand p {
  margin-top: 0.9rem;
  color: var(--grey);
  font-size: 0.92rem;
  max-width: 22rem;
}

.footer-cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-light);
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-col ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a,
.footer-col span {
  color: var(--grey);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--bronze-light);
}

.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--grey-soft);
}

.footer-bottom a {
  color: var(--grey-soft);
}

.footer-bottom a:hover {
  color: var(--bronze-light);
}

.footer-legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 720px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
    max-width: 32rem;
  }
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   WhatsApp flutuante
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 480;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  background: var(--bronze);
  color: var(--black);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, background 0.25s ease;
}

.whatsapp-float:hover {
  background: var(--bronze-light);
  transform: translateY(-2px);
}

.whatsapp-float svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.whatsapp-float .wf-text {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .whatsapp-float .wf-text {
    display: none;
  }
  .whatsapp-float {
    padding: 0.85rem;
  }
}

/* ==========================================================================
   Utilidades de scroll / animacao discreta
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* garante nenhuma rolagem horizontal */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
