:root {
  --black: #090705;
  --ink: #120d0a;
  --brown-900: #1d120c;
  --brown-800: #2a1a10;
  --brown-700: #3b2517;
  --copper: #a9642a;
  --gold: #c99a4a;
  --sand: #e7d0a6;
  --cream: #fff7e6;
  --muted: #bba98d;
  --line: rgba(231, 208, 166, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.section-pad {
  padding: 96px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--cream);
  font-family: "Oswald", Arial, sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.05rem, 8vw, 6.25rem);
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

p {
  color: var(--muted);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(9, 7, 5, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(201, 154, 74, 0.72);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 4px rgba(9, 7, 5, 0.42);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-family: "Rye", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.brand small {
  color: var(--gold);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 12px;
  color: rgba(255, 247, 230, 0.78);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--cream);
  background: rgba(201, 154, 74, 0.11);
}

.header-cta,
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: #120d0a;
  box-shadow: 0 16px 40px rgba(169, 100, 42, 0.24);
}

.btn-secondary {
  border-color: rgba(231, 208, 166, 0.38);
  background: rgba(255, 247, 230, 0.06);
  color: var(--cream);
}

.header-cta:hover,
.btn:hover,
.service-action:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 247, 230, 0.06);
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-height) + 56px) 0 54px;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("../img/hero-barbearia.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 7, 5, 0.94) 0%, rgba(9, 7, 5, 0.62) 48%, rgba(9, 7, 5, 0.34) 100%),
    linear-gradient(0deg, rgba(9, 7, 5, 0.98) 0%, rgba(9, 7, 5, 0.18) 44%, rgba(9, 7, 5, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(255, 247, 230, 0.86);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-proof {
  max-width: 760px;
  margin-top: 28px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sand);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.98rem;
  text-transform: uppercase;
}

.hero-proof span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 74, 0.16);
}

.pain-section {
  background:
    linear-gradient(180deg, var(--black), var(--brown-900));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pain-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.pain-content {
  padding-left: 36px;
  border-left: 2px solid var(--gold);
}

.pain-content p {
  margin-bottom: 18px;
  color: rgba(255, 247, 230, 0.82);
  font-size: 1.28rem;
}

.visual-band {
  position: relative;
  display: grid;
  min-height: 560px;
  align-items: end;
  overflow: hidden;
}

.visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 7, 5, 0.96), rgba(9, 7, 5, 0.16) 55%, rgba(9, 7, 5, 0.82));
}

.visual-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-copy {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 70px;
}

.visual-copy h2 {
  max-width: 760px;
  margin: 0;
}

.services,
.gallery,
.location {
  background:
    linear-gradient(180deg, var(--brown-900), var(--black));
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head p {
  max-width: 620px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.proof-card,
.booking-form,
.booking-panel,
.testimonials blockquote,
.map-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 247, 230, 0.065), rgba(255, 247, 230, 0.025)),
    var(--brown-800);
  box-shadow: var(--shadow);
}

.service-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
}

.service-card.featured {
  border-color: rgba(201, 154, 74, 0.58);
  background:
    linear-gradient(145deg, rgba(201, 154, 74, 0.18), rgba(42, 26, 16, 0.88)),
    var(--brown-800);
}

.service-card i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  border: 1px solid rgba(201, 154, 74, 0.38);
  color: var(--gold);
  background: rgba(9, 7, 5, 0.38);
}

.service-card p {
  flex: 1;
}

.service-action {
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid rgba(201, 154, 74, 0.45);
  border-radius: var(--radius);
  background: rgba(201, 154, 74, 0.12);
  color: var(--cream);
  cursor: pointer;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.service-action:hover {
  background: rgba(201, 154, 74, 0.22);
}

.booking {
  background:
    linear-gradient(rgba(9, 7, 5, 0.88), rgba(9, 7, 5, 0.92)),
    url("../img/detalhes-western.jpg") center / cover fixed;
}

.booking-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.booking-panel,
.booking-form {
  padding: 34px;
}

.booking-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.booking-contact {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.booking-contact a,
.site-footer a {
  color: var(--sand);
  transition: color 0.2s ease;
}

.booking-contact a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.booking-contact i,
.site-footer i {
  width: 22px;
  color: var(--gold);
}

.booking-form {
  display: grid;
  gap: 18px;
}

.form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  color: var(--sand);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(231, 208, 166, 0.22);
  border-radius: var(--radius);
  background: rgba(9, 7, 5, 0.58);
  color: var(--cream);
  outline: none;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(201, 154, 74, 0.72);
  box-shadow: 0 0 0 3px rgba(201, 154, 74, 0.14);
}

::placeholder {
  color: rgba(231, 208, 166, 0.46);
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-feedback {
  min-height: 24px;
  margin: 0;
  color: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--brown-800);
  cursor: zoom-in;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.055);
  filter: saturate(1.06) contrast(1.04);
}

.social-proof {
  background: var(--black);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.proof-card {
  min-height: 245px;
  padding: 26px;
}

.proof-card span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: "Rye", Georgia, serif;
  font-size: 1.15rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.testimonials blockquote {
  margin: 0;
  padding: 28px;
}

.testimonials p {
  color: rgba(255, 247, 230, 0.84);
  font-size: 1.12rem;
}

.testimonials cite {
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

.instagram-strip {
  padding: 70px 0;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(201, 154, 74, 0.18), rgba(169, 100, 42, 0.08)),
    var(--brown-900);
}

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

.instagram-content h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.location-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.location-copy {
  align-self: center;
}

.address {
  margin: 24px 0 26px;
  color: rgba(255, 247, 230, 0.82);
}

.address strong,
.address span {
  display: block;
}

.map-box {
  min-height: 390px;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 30px;
  background:
    linear-gradient(rgba(9, 7, 5, 0.72), rgba(9, 7, 5, 0.86)),
    url("../img/fachada.jpg") center / cover no-repeat;
  text-align: center;
}

.map-placeholder i {
  color: var(--gold);
  font-size: 2.7rem;
}

.map-placeholder strong {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.map-placeholder span {
  color: var(--sand);
}

.final-cta {
  position: relative;
  padding: 110px 0;
  background:
    linear-gradient(90deg, rgba(9, 7, 5, 0.94), rgba(9, 7, 5, 0.54)),
    url("../img/cadeiras-madeira.jpg") center / cover no-repeat;
}

.final-cta h2 {
  max-width: 720px;
}

.site-footer {
  background: #070504;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 42px;
  padding: 54px 0;
}

.footer-brand {
  margin-bottom: 18px;
}

.site-footer h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.site-footer nav,
.site-footer .footer-grid > div:last-child {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-bottom {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(231, 208, 166, 0.68);
  font-size: 0.95rem;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1120px, 94vw);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 247, 230, 0.34);
  border-radius: 50%;
  background: rgba(9, 7, 5, 0.72);
  color: var(--cream);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

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

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

@media (max-width: 980px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .main-nav.is-open {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 26px 22px;
    background: rgba(9, 7, 5, 0.98);
    border-top: 1px solid var(--line);
  }

  .main-nav.is-open a {
    padding: 18px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 1.16rem;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .pain-grid,
  .booking-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    position: static;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-height: 760px) and (min-width: 900px) {
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 34px);
    padding-bottom: 34px;
  }

  h1 {
    max-width: 690px;
    font-size: clamp(3rem, 7vw, 5.45rem);
  }

  .hero-subtitle {
    max-width: 620px;
    margin-bottom: 22px;
  }

  .hero-proof {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, 1140px);
  }

  .section-pad {
    padding: 72px 0;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .hero {
    min-height: 86svh;
    padding-bottom: 48px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .pain-content {
    padding-left: 20px;
  }

  .visual-band {
    min-height: 430px;
  }

  .services-grid,
  .proof-grid,
  .testimonials,
  .form-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .booking-panel,
  .booking-form {
    padding: 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .final-cta {
    padding: 82px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
