:root {
  --color-primary: #1e6470;
  --color-primary-dark: #0b3f48;
  --color-primary-deep: #06272d;
  --color-accent: #0aa6b6;
  --color-accent-light: #dff7f9;
  --color-ink: #0f2830;
  --color-muted: #5e7178;
  --color-line: #d8e4e7;
  --color-surface: #ffffff;
  --color-soft: #f5f9fa;
  --shadow-card: 0 18px 48px rgba(15, 40, 48, 0.08);
  --shadow-button: 0 12px 28px rgba(10, 166, 182, 0.24);
  --radius-sm: 8px;
  --radius-xs: 6px;
  --container: 1180px;
  --section-y: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

body,
button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p,
li,
a,
button,
strong,
span {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

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

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

:focus-visible {
  outline: 3px solid rgba(10, 166, 182, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  color: #ffffff;
  background: var(--color-primary-dark);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(216, 228, 231, 0.85);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 148px;
  filter: brightness(0) saturate(100%) invert(32%) sepia(39%) saturate(847%) hue-rotate(142deg) brightness(88%)
    contrast(88%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.whatsapp-link,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease,
    box-shadow 180ms ease;
}

.whatsapp-link {
  color: #25d366;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(37, 211, 102, 0.18);
}

.whatsapp-link svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  filter: drop-shadow(0 2px 4px rgba(37, 211, 102, 0.22));
}

.button {
  padding: 0 24px;
  border: 1px solid transparent;
}

.button:hover,
.whatsapp-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 10px 24px rgba(30, 100, 112, 0.2);
}

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

.button-accent {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), #087f8c);
  box-shadow: var(--shadow-button);
}

.button-accent:hover {
  background: linear-gradient(135deg, #0ab8c9, var(--color-primary));
}

.button-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.button-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 34%, rgba(10, 166, 182, 0.24), transparent 28%),
    radial-gradient(circle at 18% 88%, rgba(30, 100, 112, 0.42), transparent 34%),
    linear-gradient(120deg, #021619 0%, #06272d 48%, #0b3f48 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 22, 25, 0.99) 0%, rgba(2, 22, 25, 0.96) 42%, rgba(2, 22, 25, 0.72) 58%, rgba(2, 22, 25, 0.42) 76%, rgba(2, 22, 25, 0.5) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.44) 100%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-block: 92px 78px;
}

.hero-content {
  width: min(100%, 980px);
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 5.3vw, 66px);
  font-weight: 800;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
  color: #0bb4c6;
}

.hero p {
  max-width: 720px;
  margin: 30px 0 0;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.58;
}

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

.hero-actions .button {
  min-width: 224px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 820px;
  margin: 52px auto 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-highlights li::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  content: "";
}

.section {
  padding-block: var(--section-y);
}

.section-soft {
  background:
    radial-gradient(circle at 50% 0%, rgba(30, 100, 112, 0.06), transparent 38%),
    var(--color-soft);
}

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

.section-heading-center {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
}

.landing-section {
  background: #ffffff;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 17px;
}

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

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

.info-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 142px;
  gap: 16px;
  padding: 26px 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(15, 40, 48, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 100, 112, 0.3);
  box-shadow: var(--shadow-card);
}

.info-card h3 {
  margin: 0;
  color: #102a31;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.info-card p {
  margin: 9px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.landing-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: 0 1px 0 rgba(15, 40, 48, 0.04);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.landing-card:hover {
  border-color: rgba(30, 100, 112, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.landing-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #d8e4e7;
}

.card-content {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.card-kicker {
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-title {
  display: block;
  min-height: 58px;
  color: var(--color-primary-deep);
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.25;
}

.card-text {
  display: block;
  min-height: 92px;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.card-button {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius-xs);
  color: #ffffff;
  background: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms ease;
}

.landing-card:hover .card-button {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.cta-section {
  padding-block: 68px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(2, 30, 34, 0.96), rgba(2, 30, 34, 0.82)),
    url("./ferramentas-diamantadas/img/ferramentas-diamantadas-pcd-cbn-map-tools.jpg") center / cover no-repeat;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
}

.cta-copy h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
}

.cta-copy p {
  max-width: 640px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #25d366;
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.34), 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  background: #1ebe5d;
  box-shadow: 0 22px 42px rgba(37, 211, 102, 0.4), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.floating-whatsapp svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.site-footer {
  color: rgba(255, 255, 255, 0.84);
  background: linear-gradient(135deg, #061f24, #031518);
}

.footer-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  justify-content: center;
  gap: 28px;
  align-items: center;
  padding-block: 42px 30px;
}

.footer-brand img {
  margin-inline: auto;
  width: 190px;
  height: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.social-links a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.social-links a:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-contact {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.05fr 1.25fr;
  justify-content: center;
  gap: 0;
  align-items: center;
  margin: 0;
  font-style: normal;
}

.footer-contact p {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding-inline: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.footer-contact a,
.footer-contact span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-contact svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: #ffffff;
}

.footer-contact a:hover {
  color: #ffffff;
}

.copyright {
  margin: 0;
  padding: 0 20px 26px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
  text-align: center;
}

html {
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.custom-scrollbar {
  position: fixed;
  top: 6px;
  right: 4px;
  z-index: 1000;
  width: 8px;
  height: calc(100dvh - 12px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
}

.custom-scrollbar.is-visible {
  opacity: 1;
}

.custom-scrollbar-thumb {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  min-height: 74px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 4px 14px rgba(6, 39, 45, 0.26);
  transform: translateY(0);
  will-change: transform, height;
}

@media (max-width: 1080px) {
  .landing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid,
  .footer-contact {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand img {
    margin-inline: auto;
  }

  .footer-contact p {
    min-height: 0;
    padding-block: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .floating-whatsapp {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }

  .floating-whatsapp svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 820px) {
  .custom-scrollbar {
    right: 3px;
    width: 7px;
  }

  .custom-scrollbar-thumb {
    width: 7px;
    min-height: 64px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-block: 14px;
  }

  .landing-grid,
  .three-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 580px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    background:
      radial-gradient(circle at 80% 18%, rgba(10, 166, 182, 0.22), transparent 34%),
      linear-gradient(180deg, #021619 0%, #06272d 58%, #0b3f48 100%);
  }

  .hero-grid {
    min-height: 500px;
    grid-template-columns: 1fr;
    padding-block: 56px;
  }

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

  .landing-grid,
  .three-cols,
  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .card-title,
  .card-text {
    min-height: 0;
  }
}
