:root {
  --ink: #171513;
  --muted: #6b625b;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #e7e1d9;
  --leaf: #376347;
  --copper: #b96f35;
  --gold: #d8a44b;
  --shadow: 0 22px 70px rgba(23, 21, 19, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

main {
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.86);
  padding: 10px 18px;
  box-shadow: 0 18px 50px rgba(23, 21, 19, 0.11);
  backdrop-filter: blur(18px);
}

.brand {
  display: block;
  width: 138px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand-logo,
.footer-logo {
  filter: brightness(0) saturate(100%);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

nav a {
  padding: 8px 0;
  white-space: nowrap;
}

nav a:hover {
  color: var(--leaf);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  isolation: isolate;
  padding: 126px 24px 72px;
  color: var(--white);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(11, 11, 10, 0.82), rgba(11, 11, 10, 0.45)),
    linear-gradient(0deg, rgba(11, 11, 10, 0.25), rgba(11, 11, 10, 0.2));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  animation: heroFade 12s ease-in-out infinite;
}

.hero-bg-one {
  background-image: url("assets/images/banner/1.webp");
}

.hero-bg-two {
  background-image: url("assets/images/banner/2.webp");
  opacity: 0;
  animation-delay: 6s;
}

@keyframes heroFade {
  0%,
  43% {
    opacity: 1;
  }

  50%,
  93% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-content {
  width: min(820px, 100%);
  min-width: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.center {
  text-align: center;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
  font-weight: 800;
  line-height: 0.92;
  text-wrap: balance;
  text-transform: uppercase;
}

.hero p:not(.eyebrow) {
  width: min(650px, 100%);
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.button,
.portfolio-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 13px 20px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.button.primary,
.portfolio-link {
  background: var(--copper);
  color: var(--white);
}

.button.primary:hover,
.portfolio-link:hover {
  background: #9e5a27;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--white);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-section,
.logo-section,
.services-section,
.portfolio-section,
.videos-section {
  padding: clamp(70px, 10vw, 120px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

.split h2,
.section-heading h2,
.logo-section h2,
.contact-shell h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.split p:not(.eyebrow),
.section-heading p,
.contact-shell p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-image {
  margin: 0;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.logo-section {
  background: var(--white);
}

.logo-section h2 {
  margin: 0 0 34px;
  text-align: center;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.logo-card {
  display: grid;
  min-height: 112px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
}

.logo-card img {
  width: min(150px, 100%);
  height: auto;
  filter: saturate(0.92);
}

.services-section {
  background:
    linear-gradient(90deg, rgba(55, 99, 71, 0.12), transparent 42%),
    var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.section-heading.compact {
  display: block;
  width: min(820px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.compact .eyebrow {
  margin-bottom: 18px;
}

.section-heading.compact p:not(.eyebrow) {
  margin-inline: auto;
}

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

.service-card {
  min-height: 255px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 26px;
  box-shadow: 0 16px 40px rgba(23, 21, 19, 0.06);
}

.service-card span {
  color: var(--copper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  font-weight: 800;
}

.service-card h3 {
  margin: 20px 0 12px;
  font-size: 1.02rem;
  line-height: 1.16;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.portfolio-section {
  background: var(--white);
}

.portfolio-subtitle {
  margin: 46px 0 18px;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  gap: 6px;
}

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

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.15;
  border-radius: 4px;
  background: #d7d2cc;
}

.branding-grid .portfolio-item {
  aspect-ratio: 1.5;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

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

.portfolio-link {
  width: fit-content;
  margin: 36px auto 0;
}

.videos-section {
  background: var(--paper);
}

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

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 12px 34px rgba(23, 21, 19, 0.1);
}

.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: clamp(78px, 12vw, 140px) 0;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/images/rodape.webp");
  background-position: center;
  background-size: cover;
  opacity: 0.52;
}

.contact-section::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(16, 15, 14, 0.92), rgba(16, 15, 14, 0.54));
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 40px;
  align-items: center;
}

.contact-shell p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.48);
  padding: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.contact-card strong {
  color: var(--gold);
  text-transform: uppercase;
}

.contact-card a:hover {
  color: var(--gold);
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 96px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.site-footer img {
  width: 132px;
  height: auto;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-links a:hover {
  color: var(--leaf);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  background: rgba(10, 10, 10, 0.92);
  padding: 72px 18px 24px;
}

.lightbox:target {
  display: grid;
}

.lightbox img {
  width: min(1180px, 96vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 6px;
  background: var(--white);
  padding: 11px 14px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    width: 118px;
  }

  nav {
    font-size: 0.72rem;
    gap: 4px 12px;
  }

  .split,
  .section-heading,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

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

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

  .sites-grid,
  .branding-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: fixed;
    top: 12px;
    flex-direction: column;
    gap: 4px;
    width: calc(100% - 20px);
    min-height: 0;
    padding: 8px 12px 9px;
  }

  .brand {
    width: 108px;
  }

  nav {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding: 0 2px;
    font-size: 0.66rem;
    line-height: 1.1;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  .hero {
    min-height: 92svh;
    padding: 148px 16px 56px;
  }

  h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.2rem);
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
  }

  .button,
  .portfolio-link {
    width: 100%;
    max-width: 330px;
  }

  .logo-grid,
  .service-grid,
  .video-grid,
  .sites-grid,
  .branding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-card {
    min-height: 92px;
    padding: 12px;
  }

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

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

  .split h2,
  .section-heading h2,
  .logo-section h2,
  .contact-shell h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }
}

@media (max-width: 380px) {
  .section-shell {
    width: calc(100% - 24px);
  }

  .logo-grid,
  .sites-grid,
  .branding-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .contact-card {
    padding: 20px;
  }
}

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

  .hero-bg {
    animation: none;
  }

  .hero-bg-two {
    display: none;
  }
}
