:root {
  --bg: #07090d;
  --bg-soft: #0d1118;
  --panel: rgba(17, 22, 31, 0.76);
  --panel-solid: #111720;
  --ink: #f5f7fb;
  --muted: #a8b0bb;
  --muted-2: #697482;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #e42d35;
  --accent-strong: #ff3c45;
  --accent-dark: #9f141d;
  --steel: #9aa5b1;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(228, 45, 53, 0.2), transparent 28rem),
    radial-gradient(circle at 82% 28%, rgba(115, 128, 145, 0.16), transparent 24rem),
    linear-gradient(180deg, #080a0f 0%, #0b0f16 48%, #07090d 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 40;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.78);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  min-width: 250px;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 78px;
  height: 48px;
  object-fit: cover;
  object-position: left center;
  filter: drop-shadow(0 8px 18px rgba(228, 45, 53, 0.28));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #d7dce3;
  font-size: 0.9rem;
  scrollbar-width: none;
}

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

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

.header-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
}

.header-cta {
  padding: 0 16px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-dark));
  color: #fff;
  box-shadow: 0 14px 34px rgba(228, 45, 53, 0.32);
}

.floating-control {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 35;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 15, 22, 0.72);
  box-shadow: var(--shadow);
  transform: translateY(-50%);
  backdrop-filter: blur(18px);
}

.control-kicker {
  writing-mode: vertical-rl;
  color: var(--muted-2);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.floating-control a {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.page-progress {
  width: 3px;
  height: 86px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.page-progress-fill {
  display: block;
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: var(--accent);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 145px max(24px, calc((100vw - 1180px) / 2)) 150px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.56);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.94), rgba(7, 9, 13, 0.6) 46%, rgba(7, 9, 13, 0.28)),
    radial-gradient(circle at 66% 64%, rgba(228, 45, 53, 0.2), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

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

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

h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 5.8vw, 5.25rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(245, 247, 251, 0.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  padding: 0 20px;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-dark));
  color: #fff;
  box-shadow: 0 16px 44px rgba(228, 45, 53, 0.28);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-console,
.floating-carousel,
.metrics,
.service-card,
.about-panel,
.project-list article,
.contact-section,
.build-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-console {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  top: 142px;
  z-index: 3;
  display: grid;
  gap: 4px;
  width: min(330px, calc(100% - 48px));
  padding: 18px;
}

.hero-console span,
.hero-console small {
  color: var(--muted);
}

.hero-console strong {
  color: #fff;
  font-size: 1.35rem;
}

.floating-carousel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 92px;
  z-index: 3;
  width: min(620px, calc(100% - 48px));
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.float-card {
  min-width: 100%;
  padding: 24px;
  color: #fff;
}

.float-card span {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 900;
}

.float-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.28rem;
}

.float-card p {
  margin: 0;
  color: var(--muted);
}

.carousel-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #111720;
  cursor: pointer;
  font-size: 1.2rem;
}

.metrics {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 32px));
  margin: -64px auto 0;
  overflow: hidden;
}

.metrics div {
  min-height: 160px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

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

.metrics strong {
  display: block;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.metrics span {
  color: var(--muted);
}

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

.service-section {
  padding-bottom: 58px;
}

.section-heading {
  display: block;
  max-width: 920px;
  margin-bottom: 38px;
}

h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1;
}

.service-section .section-heading,
.projects-section .section-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.service-section h2,
.projects-section h2 {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.2rem, 4.4vw, 3.85rem);
}

h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.35rem;
}

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

.service-card {
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease;
}

.service-card:hover {
  border-color: rgba(228, 45, 53, 0.42);
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08) brightness(0.78);
}

.service-card div {
  padding: 24px;
}

.service-card p,
.about-copy p,
.contact-section p,
.build-copy p {
  margin: 0;
  color: var(--muted);
}

.service-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.46fr) 1fr;
  align-items: center;
  min-height: 176px;
}

.service-card.wide::before {
  content: "Reformas residenciais e comerciais";
  display: grid;
  min-height: 100%;
  place-items: center start;
  padding: 28px 34px;
  background:
    linear-gradient(135deg, rgba(228, 45, 53, 0.22), rgba(255, 255, 255, 0)),
    #151b25;
  color: #fff;
  font-size: clamp(1.45rem, 3.2vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
}

.build-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.42fr);
  gap: 36px;
  width: min(1180px, calc(100% - 32px));
  min-height: 230vh;
  margin: 0 auto;
  padding: 42px 0 80px;
}

.build-copy {
  position: sticky;
  top: 118px;
  align-self: start;
}

.build-copy h2 {
  max-width: 590px;
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 4vw, 3.65rem);
}

.build-steps {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.build-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: #e7ebf0;
}

.build-steps span {
  color: var(--accent-strong);
  font-weight: 900;
}

.build-stage {
  position: sticky;
  top: 106px;
  height: calc(100vh - 132px);
  min-height: 560px;
  overflow: hidden;
  align-self: start;
  background:
    radial-gradient(circle at 50% 30%, rgba(228, 45, 53, 0.2), transparent 32rem),
    linear-gradient(180deg, rgba(25, 32, 43, 0.94), rgba(9, 12, 18, 0.96));
}

#building-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 9, 13, 0.62);
  backdrop-filter: blur(14px);
}

.stage-badge span {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-badge strong {
  color: #fff;
}

.build-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(16px);
}

.build-progress span {
  color: var(--muted);
}

.build-progress strong {
  color: var(--accent-strong);
  font-size: 1.35rem;
}

.about-section {
  display: block;
  max-width: 960px;
}

.about-copy p + p {
  margin-top: 18px;
}

.about-copy h2 {
  max-width: 860px;
  margin-bottom: 28px;
  font-size: clamp(2.15rem, 4.2vw, 3.75rem);
}

.projects-section {
  padding-top: 20px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.project-list article {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.project-list article:hover {
  border-color: rgba(228, 45, 53, 0.42);
  transform: translateY(-5px);
}

.project-list span {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-list strong {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.12;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 36px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 80px;
  padding: 46px;
}

.contact-section p {
  color: var(--muted);
}

.contact-actions {
  display: grid;
  gap: 12px;
  align-content: center;
}

.contact-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 220ms ease, transform 220ms ease;
}

.contact-actions a:hover {
  border-color: rgba(228, 45, 53, 0.48);
  transform: translateX(4px);
}

.contact-actions span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  color: var(--muted-2);
}

@media (max-width: 1040px) {
  .hero-console {
    display: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
  }

  .top-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .floating-control {
    display: none;
  }

  .hero {
    padding-top: 190px;
    padding-bottom: 260px;
  }

  .floating-carousel {
    left: 24px;
    right: auto;
  }

  .metrics,
  .service-grid,
  .build-section,
  .about-section,
  .project-list,
  .contact-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

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

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

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

  .build-section {
    min-height: auto;
  }

  .build-copy,
  .build-stage {
    position: relative;
    top: auto;
  }

  .build-stage {
    height: 70vh;
    min-height: 440px;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand {
    min-width: auto;
  }

  .header-cta {
    padding: 0 12px;
  }

  .hero {
    min-height: 980px;
    padding: 184px 16px 300px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .floating-carousel {
    left: 16px;
    bottom: 22px;
    width: calc(100% - 32px);
  }

  .section,
  .build-section,
  .contact-section {
    width: calc(100% - 28px);
  }

  .section {
    padding: 78px 0;
  }

  .contact-section {
    padding: 28px;
  }

  .contact-actions a,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
