:root {
  --ink: #0c1424;
  --navy: #16243b;
  --blue: #263b5f;
  --cyan: #45c2e6;
  --cyan-dark: #12739d;
  --steel: #6f7d92;
  --line: #dce4ec;
  --paper: #f7fafc;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(12, 20, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::selection {
  background: rgba(69, 194, 230, 0.32);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
  padding: 0 clamp(20px, 5vw, 70px);
  color: var(--white);
  background: rgba(12, 20, 36, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(12, 20, 36, 0.92);
  box-shadow: 0 12px 35px rgba(12, 20, 36, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 180ms ease;
}

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

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 84svh;
  padding: 128px clamp(20px, 5vw, 70px) 76px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("assets/cardoso-layout.jpeg");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(12, 20, 36, 0.94) 0%, rgba(12, 20, 36, 0.74) 46%, rgba(12, 20, 36, 0.2) 100%),
    linear-gradient(180deg, rgba(12, 20, 36, 0.18), rgba(12, 20, 36, 0.72));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

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

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

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(3.25rem, 9vw, 7.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 13px;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.hero__text {
  max-width: 680px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.68;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

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

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

.button--primary {
  color: var(--ink);
  background: var(--cyan);
  box-shadow: 0 14px 34px rgba(69, 194, 230, 0.24);
}

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

.hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__signals span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
}

.section,
.partners,
.contact {
  padding: clamp(70px, 10vw, 130px) 0;
}

.section__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section--intro {
  padding: clamp(52px, 7vw, 88px) 0;
  background: var(--white);
}

.intro-grid,
.process-grid,
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.intro-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
}

.intro-text {
  margin: 32px 0 0;
  color: #42506a;
  font-size: 1.08rem;
  line-height: 1.8;
}

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

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

.service-card {
  min-height: 278px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(32, 47, 71, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(69, 194, 230, 0.5);
  box-shadow: var(--shadow);
}

.service-card__mark {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--cyan-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card p,
.timeline__item p,
.contact__copy p {
  margin-bottom: 0;
  color: #526078;
  line-height: 1.7;
}

.partners {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(22, 36, 59, 0.94), rgba(38, 59, 95, 0.96)),
    var(--navy);
}

.partners__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.partners h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.6rem);
}

.partner-carousel {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.partner-carousel::before,
.partner-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 86px;
  height: 100%;
  pointer-events: none;
}

.partner-carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(26, 41, 67, 0.98), rgba(26, 41, 67, 0));
}

.partner-carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(26, 41, 67, 0.98), rgba(26, 41, 67, 0));
}

.partner-track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding: 0 16px;
  animation: partnerScroll 22s linear infinite;
}

.partner-carousel:hover .partner-track {
  animation-play-state: paused;
}

.partner-logo {
  display: grid;
  place-items: center;
  flex: 0 0 240px;
  height: 116px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.12rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.partner-logo:hover {
  transform: translateY(-3px);
  border-color: rgba(69, 194, 230, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.partner-logo img {
  width: 100%;
  max-height: 58px;
  object-fit: contain;
}

@keyframes partnerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% / 3));
  }
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline__item {
  position: relative;
  padding: 24px 24px 24px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 15px;
  width: 6px;
  height: calc(100% - 52px);
  border-radius: 99px;
  background: linear-gradient(var(--cyan), var(--cyan-dark));
}

.timeline__item span {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.contact {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(12, 20, 36, 0.92), rgba(12, 20, 36, 0.98)),
    url("assets/cardoso-layout.jpeg") center / cover;
}

.contact__copy img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  margin-bottom: 28px;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.contact__copy h2 {
  margin-bottom: 22px;
}

.contact__copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(7, 12, 21, 0.42);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input {
  height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
  padding: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(69, 194, 230, 0.14);
}

.footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #080d17;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.footer__inner span:first-child {
  color: var(--white);
  font-weight: 800;
}

.footer-social,
.whatsapp-float {
  display: inline-grid;
  place-items: center;
  color: var(--white);
}

.footer-social {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-social:hover {
  transform: translateY(-2px);
  border-color: rgba(69, 194, 230, 0.48);
  background: rgba(69, 194, 230, 0.16);
}

.footer-social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.whatsapp-float {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 45px rgba(37, 211, 102, 0.36);
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(18px, -10px, 0);
  }
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .partners__inner,
  .process-grid,
  .contact__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    min-height: 70px;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .brand span {
    max-width: 120px;
    white-space: normal;
    line-height: 1.05;
  }

  .nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 14px;
    max-width: 188px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 88svh;
    padding-top: 142px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(12, 20, 36, 0.92), rgba(12, 20, 36, 0.64)),
      linear-gradient(90deg, rgba(12, 20, 36, 0.68), rgba(12, 20, 36, 0.3));
  }

  .hero__media {
    background-position: center top;
  }

  .button {
    width: 100%;
  }

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

  .partner-carousel::before,
  .partner-carousel::after {
    width: 42px;
  }

  .partner-logo {
    flex-basis: 210px;
    height: 102px;
  }

  .service-card {
    min-height: auto;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
