:root {
  --black: #090909;
  --graphite: #171717;
  --charcoal: #242424;
  --metal: #9d9587;
  --silver: #d8d4cc;
  --off-white: #f5f3ef;
  --white: #ffffff;
  --muted: #6e6a63;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--graphite);
  background: var(--off-white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px max(20px, calc((100vw - 1120px) / 2));
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--silver);
  font-family: var(--serif);
  font-size: 20px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav a:hover,
.header-cta:hover {
  color: var(--white);
}

.header-cta {
  display: none;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.4) 52%, rgba(0, 0, 0, 0.14)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.68));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 130px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--metal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 10vw, 6.9rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 6vw, 4.7rem);
}

h3 {
  margin-bottom: 12px;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-content > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2.4vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--black);
  background: var(--silver);
}

.button-primary:hover {
  background: var(--white);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.intro-strip {
  padding: 24px 0;
  color: var(--white);
  background: var(--black);
}

.metrics-grid {
  display: grid;
  gap: 18px;
}

.metrics-grid div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.metrics-grid strong,
.metrics-grid span {
  display: block;
}

.metrics-grid strong {
  margin-bottom: 6px;
  color: var(--silver);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.metrics-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

.split-section,
.section-shell.testimonials {
  padding: 88px 0;
}

.split-section {
  display: grid;
  gap: 32px;
}

.rich-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.dark-section {
  padding: 88px 0;
  color: var(--white);
  background: var(--graphite);
}

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

.section-heading.compact {
  max-width: 700px;
}

.service-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-grid article {
  min-height: 230px;
  padding: 28px;
  background: var(--graphite);
}

.service-grid span {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--metal);
  font-family: var(--serif);
  font-size: 2rem;
}

.service-grid p,
.testimonial-grid p,
.final-cta p,
.site-footer p {
  color: rgba(255, 255, 255, 0.68);
}

#diferenciais {
  padding: 88px 0;
}

.feature-list {
  display: grid;
  margin-top: 38px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.feature-list div {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.feature-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.portfolio-section {
  padding: 88px 0;
  color: var(--white);
  background: var(--black);
}

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

.project {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  background: var(--charcoal);
}

.project img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 400ms ease;
}

.project:hover img {
  transform: scale(1.04);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.68));
}

.project figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: var(--white);
  font-weight: 700;
}

.testimonial-grid {
  display: grid;
  gap: 18px;
}

.testimonial-grid blockquote {
  margin: 0;
  padding: 28px;
  color: var(--white);
  background: var(--graphite);
  box-shadow: var(--shadow);
}

.testimonial-grid p {
  margin-bottom: 22px;
}

.testimonial-grid cite {
  color: var(--silver);
  font-style: normal;
  font-weight: 700;
}

.final-cta {
  padding: 76px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.96), rgba(9, 9, 9, 0.74)),
    url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.final-cta-inner {
  justify-content: space-between;
}

.final-cta-inner div {
  max-width: 700px;
}

.final-cta h2 {
  margin-bottom: 18px;
}

.site-footer {
  padding: 58px 0 28px;
  color: var(--white);
  background: var(--black);
}

.footer-grid {
  display: grid;
  gap: 34px;
}

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

address,
.social-links {
  display: grid;
  gap: 8px;
  font-style: normal;
}

address strong,
.social-links strong {
  margin-bottom: 6px;
  color: var(--silver);
}

address a,
.social-links a,
address span {
  color: rgba(255, 255, 255, 0.68);
}

address a:hover,
.social-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.88rem;
}

.floating-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 18px;
  color: var(--black);
  background: #d8d4cc;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  font-weight: 800;
}

.floating-whatsapp:hover {
  background: var(--white);
}

@media (min-width: 720px) {
  .section-shell {
    width: min(1120px, calc(100% - 64px));
  }

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

  .metrics-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metrics-grid div {
    padding: 12px 24px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .metrics-grid div:first-child {
    padding-left: 0;
  }

  .metrics-grid div:last-child {
    border-right: 0;
  }

  .split-section {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }

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

  .feature-list div {
    display: grid;
    grid-template-columns: 0.42fr 1fr;
    gap: 28px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
  }

  .project,
  .project img {
    min-height: 100%;
  }

  .project-large {
    grid-column: span 2;
    grid-row: span 2;
  }

.project-wide {
  grid-column: span 2;
}

.project-tall {
  grid-row: span 2;
}
}

@media (min-width: 1024px) {
  .hero {
    min-height: 90vh;
  }

  .hero-content {
    padding-bottom: 92px;
  }

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

  .portfolio-grid {
    grid-auto-flow: dense;
  }
}

@media (max-width: 719px) {
  body {
    padding-bottom: 76px;
  }

  .section-shell {
    width: min(100% - 32px, 480px);
  }

  .site-header {
    padding: 12px 16px;
    background: rgba(9, 9, 9, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-cta {
    display: inline-flex;
    min-height: 38px;
    padding: 9px 12px;
    font-size: 0.78rem;
    line-height: 1;
  }

  .hero {
    min-height: auto;
    align-items: end;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.92)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.3));
  }

  .hero-content {
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 112px 0 40px;
  }

  h1 {
    max-width: 10ch;
    margin-bottom: 18px;
    font-size: 2.85rem;
    line-height: 0.98;
  }

  h2 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  .hero-content > p:not(.eyebrow) {
    max-width: 33ch;
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .button {
    min-height: 48px;
    padding: 13px 16px;
    text-align: center;
    white-space: normal;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button-secondary {
    display: none;
  }

  .intro-strip {
    padding: 6px 0;
  }

  .metrics-grid {
    gap: 0;
  }

  .metrics-grid div {
    padding: 15px 0;
  }

  .metrics-grid strong,
  .metrics-grid span {
    font-size: 0.88rem;
  }

  .split-section,
  .dark-section,
  #diferenciais,
  .portfolio-section,
  .section-shell.testimonials {
    padding: 58px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .rich-copy {
    font-size: 1rem;
  }

  .service-grid article {
    min-height: auto;
    padding: 22px;
  }

  .service-grid span {
    margin-bottom: 24px;
    font-size: 1.45rem;
  }

  .feature-list {
    margin-top: 28px;
  }

  .feature-list div {
    padding: 20px 0;
  }

  .portfolio-grid {
    gap: 12px;
  }

  .project,
  .project img {
    min-height: 240px;
  }

  .project-large,
  .project-wide,
  .project-tall {
    min-height: 300px;
  }

  .project figcaption {
    left: 18px;
    right: 18px;
    bottom: 16px;
    font-size: 0.95rem;
  }

  .testimonial-grid {
    gap: 12px;
  }

  .testimonial-grid blockquote {
    padding: 22px;
    box-shadow: none;
  }

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

  .final-cta-inner {
    align-items: stretch;
  }

  .site-footer {
    padding: 46px 0 28px;
  }

  .footer-grid {
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 0.72rem;
  }

  .brand-mark {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .header-cta {
    flex: 0 0 auto;
    display: none;
  }

  h1 {
    max-width: 11ch;
    font-size: 2.35rem;
  }

  .button {
    width: 100%;
  }

  .floating-whatsapp {
    right: auto;
    bottom: 14px;
    left: 14px;
    width: auto;
    min-height: 48px;
    padding: 13px 18px;
  }
}
