:root {
  --ink: #15191c;
  --muted: #657077;
  --line: #d8dedf;
  --paper: #f4f6f5;
  --white: #ffffff;
  --steel: #2b343a;
  --steel-dark: #11181c;
  --red: #b63528;
  --amber: #e09b2d;
  --green: #178348;
  --shadow: 0 18px 50px rgba(15, 22, 25, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 5vw, 64px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(20, 25, 28, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(182, 53, 40, 0.34);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-weight: 800;
  font-size: 0.94rem;
}

.site-nav a {
  opacity: 0.94;
}

.site-nav a:hover {
  color: var(--amber);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 18, 21, 0.94) 0%, rgba(13, 18, 21, 0.8) 42%, rgba(13, 18, 21, 0.2) 100%),
    linear-gradient(180deg, rgba(13, 18, 21, 0.34) 0%, rgba(13, 18, 21, 0.04) 58%, rgba(244, 246, 245, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 88px);
  padding-top: 56px;
  color: var(--white);
}

.experience-badge {
  display: inline-grid;
  gap: 0;
  margin-bottom: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.experience-badge strong {
  color: var(--amber);
  font-size: 1.5rem;
  line-height: 1;
}

.experience-badge span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.2rem, 8.5vw, 8.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-content > p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

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

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

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

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: -54px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}

.intro div {
  background: var(--white);
  padding: 26px;
}

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

.intro strong {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

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

.section,
.gallery-section,
.method-band,
.quote-section,
.contact {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section,
.gallery-section {
  padding: 92px 0;
}

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

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.3rem;
}

.section-heading > p:last-child,
.body-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

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

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

.service-feature {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 24, 28, 0.82), rgba(17, 24, 28, 0.5)),
    url("assets/calinus-industria-hero.png") center / cover;
  color: var(--white);
  box-shadow: var(--shadow);
}

.service-feature-dark {
  background:
    linear-gradient(135deg, rgba(182, 53, 40, 0.9), rgba(17, 24, 28, 0.72)),
    url("assets/trabalhos/21.png") center / contain no-repeat,
    var(--steel-dark);
}

.service-feature .service-icon {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-feature h3 {
  max-width: 520px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.06;
}

.service-feature p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
}

.service-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.service-list article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 178px;
  padding: 24px;
  background: var(--white);
}

.service-list strong {
  font-size: 1.06rem;
}

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

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

.capability-grid article {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.capability-grid strong {
  font-size: 1.08rem;
}

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

.gallery-section {
  border-top: 1px solid var(--line);
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 22, 25, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 32px;
  border: 1px dashed #aeb8bc;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.gallery-empty strong {
  font-size: 1.25rem;
}

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

.work-card img {
  width: 100%;
  height: 320px;
  padding: 14px;
  object-fit: contain;
  background: #f9faf9;
}

.work-content {
  display: grid;
  gap: 5px;
  padding: 18px;
}

.work-content strong {
  font-size: 1.08rem;
}

.work-content small {
  color: var(--green);
  font-weight: 800;
}

.method-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding: 64px;
  border-radius: 8px;
  background: var(--steel-dark);
  color: var(--white);
}

.method-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.method-list strong,
.method-list span {
  display: block;
}

.method-list strong {
  margin-bottom: 6px;
  color: var(--amber);
  font-size: 1.12rem;
}

.method-list span {
  color: rgba(255, 255, 255, 0.78);
}

.quote-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
  padding: 82px 0;
}

.quote-copy p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

.quote-form-wide {
  grid-column: 1 / -1;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfc;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 3px solid rgba(23, 131, 72, 0.16);
  border-color: var(--green);
}

.quote-form .button {
  justify-self: start;
  border: 0;
}

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

.body-copy p:first-child {
  margin-top: 0;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
  padding: 64px;
  margin-bottom: 72px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.contact-panel strong {
  font-size: 1.4rem;
}

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

.contact-panel .button {
  justify-self: start;
  margin-top: 10px;
}

.contact-panel small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer span:first-child {
  color: var(--white);
  font-weight: 900;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  align-items: center;
  min-height: 68px;
  padding: 14px 22px;
  border-radius: 18px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(23, 131, 72, 0.34);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.floating-whatsapp::before {
  content: "";
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
}

.floating-whatsapp span,
.floating-whatsapp strong {
  display: block;
  line-height: 1.05;
}

.floating-whatsapp span {
  font-size: 0.82rem;
  opacity: 0.88;
}

.floating-whatsapp strong {
  font-size: 1.18rem;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(23, 131, 72, 0.42);
}

@media (max-width: 860px) {
  .brand span:last-child {
    max-width: 210px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 18px;
    display: none;
    width: min(280px, calc(100vw - 36px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(13, 18, 21, 0.92) 0%, rgba(13, 18, 21, 0.66) 100%),
      linear-gradient(180deg, rgba(13, 18, 21, 0.14) 0%, rgba(244, 246, 245, 0.9) 100%);
  }

  .hero-content {
    margin: 0 auto;
  }

  .intro,
  .service-showcase,
  .gallery-grid,
  .capability-grid,
  .method-band,
  .quote-section,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .method-band,
  .quote-form,
  .contact {
    padding: 32px 22px;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand span:last-child {
    max-width: 170px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero-actions,
  .button,
  .quote-form .button,
  .contact-panel .button {
    width: 100%;
  }

  .intro {
    margin-top: -34px;
  }

  .intro div,
  .service-feature,
  .service-list article {
    padding: 22px;
  }

  .section,
  .gallery-section {
    padding: 70px 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 62px;
    padding: 12px 16px;
    border-radius: 16px;
  }

  .floating-whatsapp strong {
    font-size: 1.02rem;
  }
}
