:root {
  --preto: #111111;
  --grafite: #1b1b1b;
  --dourado: #c7922f;
  --dourado-claro: #e1b55f;
  --branco: #ffffff;
  --cinza-claro: #f5f5f3;
  --cinza-texto: #666666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 58px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--branco);
  color: var(--preto);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* HEADER */

.site-header {
  background: var(--preto);
  color: var(--branco);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 12px;
  background: #ffffff;
}

.logo img {
  display: block;
  width: 145px;
  max-height: 58px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 700;
  color: #f3f3f3;
  transition: 0.2s;
}

.nav-menu a:hover {
  color: var(--dourado-claro);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s;
}

.btn-primary {
  background: var(--dourado);
  color: var(--preto);
}

.btn-primary:hover {
  background: var(--dourado-claro);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--branco);
}

.btn-outline:hover {
  border-color: var(--dourado-claro);
  color: var(--dourado-claro);
}

/* HERO */

.hero {
  min-height: 640px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.48) 42%,
      rgba(0, 0, 0, 0.08) 100%
    ),
    url("../img/hero.webp") center / cover no-repeat;
  color: var(--branco);
}

.hero-content {
  max-width: 620px;
  padding: 80px 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--dourado-claro);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  font-weight: 900;
}

.hero p {
  max-width: 560px;
  margin-bottom: 30px;
  color: #eeeeee;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-features {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hero-feature {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8e8e8;
  font-size: 13px;
  font-weight: 700;
}

/* SEÇÕES */

.section {
  padding: 82px 0;
}

.section-light {
  background: var(--cinza-claro);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--dourado);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--cinza-texto);
}

/* PRODUTOS */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--branco);
  border: 1px solid #e7e7e7;
}

.card-image {
  aspect-ratio: 4 / 3;
  background: #ececec;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.card-body p {
  color: var(--cinza-texto);
  font-size: 14px;
}

/* SERVIÇOS */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 28px;
  border-radius: 18px;
  background: var(--branco);
  border: 1px solid #e5e5e5;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.service-card p {
  color: var(--cinza-texto);
  font-size: 14px;
}

/* SOBRE */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  height: 470px;
  border-radius: 22px;
  overflow: hidden;
  background: #ddd;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-content span {
  color: var(--dourado);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.about-content h2 {
  margin: 10px 0 18px;
  font-size: clamp(32px, 4vw, 46px);
}

.about-content p {
  margin-bottom: 18px;
  color: var(--cinza-texto);
}

.about-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
}

.about-list div {
  font-weight: 700;
}

/* CONTATO */

.contact-section {
  background: #292722;
  color: var(--branco);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-box {
  padding: 32px;
  border-radius: 18px;
  background: #34312b;
  border: 1px solid #4a463d;
}

.contact-box h3 {
  margin-bottom: 18px;
  font-size: 24px;
}

.contact-box p {
  margin-bottom: 10px;
  color: #d8d8d8;
}

/* FOOTER */

.site-footer {
  padding: 28px 0;
  background: #080808;
  color: #bdbdbd;
  text-align: center;
  font-size: 13px;
}

/* BOTÃO DO MENU MOBILE */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--branco);
  transition: 0.2s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* GALERIA */

.gallery-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 55px;
}

.gallery-viewport {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  background: var(--grafite);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.gallery-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 42px 28px 22px;
  background: linear-gradient(
    transparent,
    rgba(0, 0, 0, 0.82)
  );
  color: var(--branco);
  font-size: 18px;
  font-weight: 700;
}

.gallery-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--preto);
  color: var(--branco);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s;
}

.gallery-button:hover {
  background: var(--dourado);
  color: var(--preto);
}

.gallery-prev {
  left: 0;
}

.gallery-next {
  right: 0;
}

.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c7c7c7;
  cursor: pointer;
  transition: 0.2s;
}

.gallery-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--dourado);
}

/* RESPONSIVO */

@media (max-width: 980px) {
  .header-inner {
    position: relative;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 0 0 14px 14px;
    background: var(--preto);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu a:last-child {
    border-bottom: 0;
  }

  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 70px;
  }

  .gallery-carousel {
    padding: 0;
  }

  .gallery-slide img {
    height: 100%;
  }

  .gallery-slide figcaption {
    padding: 38px 20px 18px;
    font-size: 16px;
  }

  .gallery-button {
    width: 42px;
    height: 42px;
    background: rgba(17, 17, 17, 0.82);
  }

  .gallery-prev {
    left: 12px;
  }

  .gallery-next {
    right: 12px;
  }

  .contact-box {
    padding: 24px;
  }

  .contact-box a {
    overflow-wrap: anywhere;
  }

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn-primary {
    min-height: 42px;
    padding: 0 15px;
    font-size: 14px;
  }

  .logo {
    padding: 5px 9px;
    border-radius: 9px;
  }

  .logo img {
    width: 105px;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-features,
  .cards-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }
}

/* ACABAMENTO VISUAL FINAL */

:root {
  --dourado-escuro: #a9741f;
  --borda-suave: rgba(17, 17, 17, 0.09);
  --sombra-suave: 0 12px 32px rgba(17, 17, 17, 0.08);
  --sombra-forte: 0 20px 50px rgba(17, 17, 17, 0.16);
}

body {
  overflow-x: hidden;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

section[id] {
  scroll-margin-top: 0;
}

::selection {
  background: var(--dourado);
  color: var(--preto);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--dourado-claro);
  outline-offset: 3px;
}

.site-header {
  background: rgba(17, 17, 17, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.logo {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.nav-menu a {
  position: relative;
  padding: 8px 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--dourado);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--dourado-claro), var(--dourado));
}

.btn-primary:hover {
  background: linear-gradient(135deg, #efc978, var(--dourado));
}

.btn-outline {
  background: rgba(255, 255, 255, 0.035);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(720px, calc(100vh - 78px));
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 76% 45%, rgba(199, 146, 47, 0.13), transparent 32%),
    linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.hero-content {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.hero-kicker,
.section-heading span,
.about-content > span {
  letter-spacing: 1.6px;
}

.hero h1 {
  letter-spacing: -2px;
  text-wrap: balance;
}

.hero p {
  line-height: 1.7;
}

.hero-feature {
  transition: border-color 0.25s ease, color 0.25s ease;
}

.hero-feature:hover {
  border-color: var(--dourado-claro);
  color: var(--branco);
}

.section-heading h2,
.about-content h2 {
  line-height: 1.1;
  letter-spacing: -1px;
  text-wrap: balance;
}

.section-heading p {
  font-size: 17px;
  line-height: 1.7;
}

.card,
.service-card,
.contact-box {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.card {
  border-color: var(--borda-suave);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.055);
}

.card:hover {
  transform: translateY(-7px);
  border-color: rgba(199, 146, 47, 0.42);
  box-shadow: var(--sombra-forte);
}

.card-image img {
  transition: transform 0.55s ease;
}

.card:hover .card-image img {
  transform: scale(1.045);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 20px;
}

.card-body p,
.service-card p {
  line-height: 1.65;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-color: var(--borda-suave);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.045);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--dourado), var(--dourado-claro));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(199, 146, 47, 0.35);
  box-shadow: var(--sombra-suave);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.about-image {
  position: relative;
  box-shadow: var(--sombra-forte);
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: inherit;
  pointer-events: none;
}

.about-list div {
  padding: 11px 14px;
  border-left: 3px solid var(--dourado);
  border-radius: 0 10px 10px 0;
  background: #faf9f6;
}

.gallery-viewport {
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #eceae5;
  box-shadow: var(--sombra-forte);
  height: min(520px, calc(100vh - 420px));
  min-height: 360px;
  aspect-ratio: auto;
}

.gallery-slide img {
  height: 100%;
}

.gallery-button {
  display: grid;
  place-items: center;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.2);
}

.gallery-button:hover {
  transform: translateY(-50%) scale(1.07);
}

.contact-section {
  background:
    radial-gradient(circle at 50% 0, rgba(199, 146, 47, 0.12), transparent 34%),
    var(--preto);
}

.contact-section .section-heading p {
  color: #d2d2d2;
}

.contact-box:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 181, 95, 0.4);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.contact-box a:not(.btn) {
  transition: color 0.2s ease;
}

.contact-box a:not(.btn):hover {
  color: var(--dourado-claro);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .nav-menu a {
    padding: 15px 18px;
  }

  .nav-menu a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  section[id] {
    scroll-margin-top: 0;
  }

  html {
    scroll-padding-top: 22px;
  }

  .container {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    min-height: 620px;
    background-position: 62% center;
  }

  .hero-content {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 50px);
    letter-spacing: -1.3px;
  }

  .hero-features {
    gap: 12px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading p {
    font-size: 16px;
  }

  .card-body {
    padding: 22px;
  }

  .about-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .gallery-viewport {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-slide figcaption {
    padding: 54px 58px 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
