/* =========================================================
   DON BARBEARIA - Landing Page
   1. Tokens        4. Header       7. Trabalhos   10. Footer
   2. Base/reset    5. Hero         8. Ambiente    11. Responsivo
   3. Botoes        6. Servicos     9. CTA
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --dark:        #0d0d0f;
  --dark-2:      #111114;
  --dark-3:      #0a0a0c;
  --cream:       #f4f1ea;
  --cream-2:     #faf8f3;
  --gold:        #c9a15a;
  --gold-soft:   #e2c396;
  --gold-deep:   #a8813f;
  --text-light:  #f3efe8;
  --text-muted:  #a9a49b;
  --text-dark:   #17161a;
  --text-dark-2: #55514c;
  --line-light:  rgba(255, 255, 255, .12);
  --line-dark:   rgba(23, 22, 26, .14);

  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:  "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script:"Dancing Script", "Segoe Script", cursive;

  --container: 1180px;
  --radius: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
ul  { list-style: none; margin: 0; padding: 0; }
a   { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 500; margin: 0; line-height: 1.14; }
p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #17161a;
  padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

.ico { width: 18px; height: 18px; flex: none; }
.ico--flip { transform: rotate(180deg); }
.ico--gold { color: var(--gold); }

.gold { color: var(--gold-soft); }

.eyebrow {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 400;
}
.eyebrow--dark { color: var(--gold-deep); }

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--text-light);
  letter-spacing: -.01em;
}
.section-title--dark { color: var(--text-dark); }

.section--dark  { background: var(--dark); }
.section--light { background: var(--cream); color: var(--text-dark); }

/* Animacao de entrada */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ---------- 3. Botoes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1b160e;
  font-weight: 400;
}
.btn--gold:hover { background: linear-gradient(135deg, #eed3ac, var(--gold-soft)); }

.btn--light { background: var(--cream); color: var(--text-dark); }
.btn--light:hover { background: #fff; }

.btn--ghost {
  border-color: rgba(255, 255, 255, .38);
  color: var(--text-light);
  background: rgba(255, 255, 255, .04);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--outline {
  border-color: rgba(23, 22, 26, .3);
  color: var(--text-dark);
}
.btn--outline:hover { background: var(--text-dark); color: var(--cream); border-color: var(--text-dark); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--gold-soft); }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease),
              box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 12, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo__crown { width: 34px; height: 22px; color: var(--gold); flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: .22em;
  color: var(--text-light);
}
.logo__text small {
  font-size: 8.5px;
  letter-spacing: .42em;
  color: var(--text-muted);
  margin-top: 4px;
}
.logo--lg .logo__crown { width: 42px; height: 27px; }
.logo--lg .logo__text strong { font-size: 25px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__link {
  position: relative;
  font-size: 14px;
  color: rgba(243, 239, 232, .82);
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }
.nav__cta { display: none; }

.burger {
  display: none;
  width: 44px; height: 40px;
  background: none;
  border: 0;
  padding: 9px 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--text-light);
  margin: 5px 0;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 70px;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(9, 9, 11, .96) 0%, rgba(9, 9, 11, .9) 28%, rgba(9, 9, 11, .45) 55%, rgba(9, 9, 11, .25) 100%),
    url("https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1900&q=80") center 30% / cover no-repeat,
    #0b0b0d;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 560px; }

.hero__title {
  font-size: clamp(40px, 5.4vw, 62px);
  letter-spacing: -.015em;
  margin-bottom: 26px;
}
.hero__text {
  color: rgba(243, 239, 232, .78);
  font-size: 15.5px;
  max-width: 430px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.features {
  display: flex;
  flex-wrap: wrap;
  margin-top: 52px;
  border-top: 1px solid var(--line-light);
  padding-top: 26px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 26px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(243, 239, 232, .8);
  border-left: 1px solid var(--line-light);
}
.feature:first-child { padding-left: 0; border-left: 0; }
.feature__ico { width: 21px; height: 21px; color: var(--gold); flex: none; }

/* ---------- 6. Servicos ---------- */
.services { padding: 96px 0 104px; }

.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 66px;
}
.services__lead {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 340px;
  justify-self: start;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.service {
  text-align: center;
  padding: 8px 28px;
  border-left: 1px solid var(--line-light);
}
.service:first-child { border-left: 0; }
.service__ico { width: 44px; height: 44px; color: var(--gold); margin: 0 auto 26px; }
.service h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--text-light);
}
.service p { color: var(--text-muted); font-size: 14px; }

/* ---------- 7. Trabalhos ---------- */
.works { padding: 92px 0 96px; overflow: hidden; }
.works__inner {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 56px;
  align-items: center;
}
.works__text {
  color: var(--text-dark-2);
  font-size: 15px;
  margin: 22px 0 30px;
}

.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 6px; }

.carousel__item {
  flex: 0 0 calc((100% - 54px) / 4);
  scroll-snap-align: start;
}
.carousel__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  background: #ddd7cc;
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.carousel__item:hover img { transform: translateY(-4px); filter: brightness(1.06); }

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(23, 22, 26, .22);
  background: var(--cream-2);
  color: var(--text-dark);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
}
.carousel__nav:hover { background: var(--text-dark); color: var(--cream); }
.carousel__nav:disabled { opacity: .3; cursor: default; }
.carousel__nav--prev { left: -21px; }
.carousel__nav--next { right: -21px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}
.carousel__dots button {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 22, 26, .22);
  cursor: pointer;
  transition: background .3s var(--ease), width .3s var(--ease);
}
.carousel__dots button.is-active { background: var(--text-dark); width: 18px; border-radius: 4px; }


/* ---------- 8. Ambiente ---------- */
.ambience { padding: 26px 0 96px; }
.ambience__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr .58fr;
  gap: 34px;
  align-items: center;
}
.ambience__main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  background: #ddd7cc;
}
.ambience__main, .ambience__side figure { margin: 0; }

.ambience__content { padding: 0 12px; }
.ambience__text {
  color: var(--text-dark-2);
  font-size: 15px;
  margin: 22px 0 30px;
  max-width: 380px;
}

.ambience__side { display: grid; gap: 18px; }
.ambience__side img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  background: #ddd7cc;
}

/* ---------- 9. CTA ---------- */
.cta {
  position: relative;
  padding: 92px 0 96px;
  overflow: hidden;
  background: var(--dark);
}
.cta__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(9, 9, 11, .97) 0%, rgba(9, 9, 11, .9) 35%, rgba(9, 9, 11, .55) 70%, rgba(9, 9, 11, .4) 100%),
    url("https://images.unsplash.com/photo-1622286342621-4bd786c2447c?auto=format&fit=crop&w=1900&q=80") center 45% / cover no-repeat;
}
.cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta__content { max-width: 600px; }
.cta__text {
  color: rgba(243, 239, 232, .76);
  font-size: 15px;
  margin: 20px 0 30px;
}
.cta__script {
  font-family: var(--font-script);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  color: var(--gold-soft);
  transform: rotate(-6deg);
  text-align: center;
  flex: none;
  opacity: .95;
}

/* ---------- 10. Footer ---------- */
.footer { background: var(--dark-3); padding-top: 62px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr .9fr .95fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer__col { border-left: 1px solid var(--line-light); padding-left: 34px; }
.footer__tags { color: var(--text-muted); font-size: 13px; margin-top: 22px; }
.footer__title { font-size: 21px; margin-bottom: 18px; color: var(--text-light); }

.footer__line {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer__line strong { color: var(--text-light); font-weight: 400; }
.footer__line .ico { margin-top: 3px; }

.footer__map {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #17171b;
  border: 1px solid var(--line-light);
  min-height: 132px;
  transition: border-color .3s var(--ease);
}
.footer__map:hover { border-color: var(--gold); }
.footer__map-lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, .13);
  stroke-width: 1.4;
}
.footer__pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  color: var(--gold);
}

.footer__bottom { border-top: 1px solid var(--line-light); }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.footer__social { display: flex; align-items: center; gap: 16px; }
.footer__social > a {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: var(--text-muted);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer__social > a:hover { color: var(--gold); border-color: var(--gold); }
.footer__legal { display: flex; gap: 10px; }
.footer__legal a:hover { color: var(--gold-soft); }
.footer__legal i { opacity: .5; font-style: normal; }

/* Botao flutuante WhatsApp */
.whats-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #08301a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.whats-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.whats-float:hover { transform: scale(1.06); }
.whats-float svg { width: 28px; height: 28px; }

/* ---------- 11. Responsivo ---------- */
@media (max-width: 1080px) {
  .works__inner { grid-template-columns: 300px 1fr; gap: 40px; }
  .carousel__item { flex-basis: calc((100% - 36px) / 3); }
  .carousel__nav--prev { left: -14px; }
  .carousel__nav--next { right: -14px; }
  .ambience__grid { grid-template-columns: 1fr 1fr; }
  .ambience__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col { border-left: 0; padding-left: 0; }
  .footer__map { grid-column: 1 / -1; min-height: 160px; }
}

@media (max-width: 900px) {
  .header__cta { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 96px 28px 32px;
    background: rgba(10, 10, 12, .98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-light);
    transform: translateY(-102%);
    transition: transform .45s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav__link {
    padding: 15px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line-light);
  }
  .nav__link::after { display: none; }
  .nav__cta { display: inline-flex; justify-content: center; margin-top: 22px; }

  .services__head { grid-template-columns: 1fr; gap: 20px; }
  .services__grid { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .service:nth-child(3) { border-left: 0; }

  .works__inner { grid-template-columns: 1fr; gap: 34px; }
  .carousel__item { flex-basis: calc((100% - 18px) / 2); }

  .cta__inner { flex-direction: column; align-items: flex-start; }
  .cta__script { align-self: flex-end; }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .hero { padding: 130px 0 60px; min-height: auto; }
  .hero__media {
    background:
      linear-gradient(180deg, rgba(9, 9, 11, .82) 0%, rgba(9, 9, 11, .9) 60%, rgba(9, 9, 11, .96) 100%),
      url("https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1200&q=80") center 25% / cover no-repeat;
  }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .features { gap: 18px 0; margin-top: 40px; }
  .feature { flex: 1 1 100%; padding: 0; border-left: 0; }

  .services { padding: 72px 0 78px; }
  .services__grid { grid-template-columns: 1fr; gap: 42px; }
  .service { border-left: 0; padding: 0; }

  .works { padding: 68px 0 74px; }
  .carousel__item { flex-basis: calc((100% - 9px) / 1.35); }
  .carousel__nav { display: none; }

  .ambience { padding: 12px 0 72px; }
  .ambience__grid { grid-template-columns: 1fr; }
  .ambience__content { padding: 0; }
  .ambience__side { grid-template-columns: 1fr 1fr; gap: 14px; }

  .cta { padding: 72px 0 78px; }
  .cta__script { align-self: center; margin-top: 34px; }

  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__social { flex-wrap: wrap; }
  .whats-float { right: 16px; bottom: 16px; }
}
