:root {
  --navy: #071a2b;
  --navy-dark: #04111d;
  --navy-light: #103650;
  --blue: #148ab8;
  --cyan: #39c8d8;
  --cyan-light: #8ae8ef;
  --white: #ffffff;
  --off-white: #f4f8fa;
  --gray-100: #e5edf1;
  --gray-300: #bdc9d0;
  --gray-500: #65747d;
  --gray-700: #34444c;
  --max-width: 1180px;
  --radius: 16px;
  --shadow: 0 22px 60px rgba(7, 26, 43, 0.13);
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  overflow-x: hidden;
  color: var(--navy);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

body,
button,
input,
select,
textarea {
  font-family: "DM Sans", Arial, sans-serif;
}

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

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

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.section {
  padding: clamp(70px, 9vw, 120px) 0;
  scroll-margin-top: 90px;
}

.section-muted {
  background: var(--off-white);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 31px;
  height: 2px;
  content: "";
  background: currentColor;
}

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

.section-heading h2 {
  margin-bottom: 17px;
  color: var(--navy);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.section-heading p:not(.eyebrow) {
  color: var(--gray-500);
  font-size: clamp(0.94rem, 1.7vw, 1.06rem);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 10px;
  padding: 13px 22px;
  border: 0;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}

.button-primary {
  color: var(--navy);
  background: var(--cyan);
}

.button-primary:hover {
  background: var(--cyan-light);
  transform: translateY(-2px);
}

.button-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
}

.button-outline:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}

.text-link:hover {
  gap: 12px;
  color: var(--navy);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2000;
  width: 100%;
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(4, 17, 29, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 143px;
  height: 56px;
  padding: 5px 10px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--white);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}

.desktop-nav a::after {
  position: absolute;
  right: 100%;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  transition: var(--transition);
}

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

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  right: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  flex: 0 0 auto;
  gap: 8px;
  padding: 11px 17px;
  color: var(--navy);
  border-radius: 7px;
  background: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}

.header-cta:hover {
  background: var(--cyan-light);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.mobile-nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 16px;
  left: 16px;
  display: none;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(4, 17, 29, 0.98);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Hero */

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 570px;
  overflow: hidden;
  padding: 155px 0 78px;
  color: var(--white);
  background: var(--navy);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.07);
  transition:
    opacity 1.2s ease-in-out,
    transform 5s ease;
}

.carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(4, 17, 29, 0.96),
      rgba(4, 17, 29, 0.69),
      rgba(4, 17, 29, 0.4)
    ),
    linear-gradient(
      0deg,
      rgba(4, 17, 29, 0.8),
      transparent 70%
    );
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 820px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.back-link:hover {
  color: var(--cyan);
}

.page-hero .eyebrow {
  color: var(--cyan);
}

.page-hero h1 {
  margin-bottom: 22px;
  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.99;
  overflow-wrap: anywhere;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.77);
  font-size: clamp(0.96rem, 1.8vw, 1.08rem);
}

.carousel-ui {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.carousel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.carousel-button:hover {
  color: var(--navy);
  border-color: var(--cyan);
  background: var(--cyan);
}

.carousel-counter {
  min-width: 62px;
  color: rgba(255, 255, 255, 0.75);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  text-align: center;
}

.carousel-dots {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.carousel-dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.38);
  transition: var(--transition);
}

.carousel-dot.is-active {
  width: 48px;
  background: var(--cyan);
}

/* Carousel secundário */

.media-carousel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.media-carousel .carousel-ui {
  right: 16px;
  bottom: 15px;
  left: 16px;
}

.media-carousel .carousel-counter {
  display: none;
}

/* Layout de conteúdo */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(45px, 8vw, 100px);
}

.copy h2 {
  margin-bottom: 20px;
  color: var(--navy);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.copy h2 span {
  color: var(--blue);
}

.copy p {
  margin-bottom: 18px;
  color: var(--gray-700);
  font-size: clamp(0.96rem, 1.7vw, 1.08rem);
}

.copy .button {
  margin-top: 12px;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.info-card {
  min-height: 175px;
  padding: 25px;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  background: var(--white);
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.info-card-index {
  display: block;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.info-card h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
}

.info-card p {
  color: var(--gray-500);
  font-size: 0.86rem;
}

/* Services */

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

.service-card {
  display: flex;
  min-height: 400px;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 40px rgba(7, 26, 43, 0.08);
  transition: var(--transition);
}

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

.service-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.07);
}

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.service-card-index {
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.87rem;
}

.service-card .text-link {
  margin-top: auto;
  padding-top: 20px;
}

/* Gallery */

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

.gallery-item {
  overflow: hidden;
  border-radius: 11px;
  background: var(--navy);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item figcaption {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}

/* Company principles */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.principle-card {
  padding: 28px;
  border-radius: 12px;
  background: var(--off-white);
}

.principle-card small {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.principle-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.principle-card p {
  color: var(--gray-700);
  font-size: 0.9rem;
}

/* CTA */

.cta-section {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  color: var(--white);
  background:
    linear-gradient(
      100deg,
      rgba(7, 26, 43, 0.95),
      rgba(16, 54, 80, 0.88)
    ),
    url("home4.jpeg") center / cover;
}

.cta-section::after {
  position: absolute;
  top: -190px;
  right: -80px;
  width: 390px;
  height: 390px;
  content: "";
  border: 1px solid rgba(57, 200, 216, 0.35);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.cta-content h2 {
  max-width: 720px;
  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.cta-content h2 span {
  color: var(--cyan);
}

.cta-content p {
  max-width: 500px;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.66);
}

/* Formulários */

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-aside {
  padding: 38px;
  color: var(--white);
  background:
    linear-gradient(
      145deg,
      rgba(16, 54, 80, 0.95),
      rgba(4, 17, 29, 0.98)
    );
}

.form-aside .media-carousel {
  min-height: 250px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.form-aside h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.form-aside > p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.form-panel {
  padding: clamp(28px, 5vw, 50px);
  background: var(--off-white);
}

.form-panel h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.form-intro {
  margin-bottom: 26px;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.form-group {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin-bottom: 15px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  color: var(--gray-700);
  font-size: 0.75rem;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 45px;
  padding: 12px 13px;
  color: var(--navy);
  border: 1px solid var(--gray-100);
  border-radius: 7px;
  outline: none;
  background: var(--white);
  transition: var(--transition);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(57, 200, 216, 0.15);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  margin-top: 10px;
  color: var(--gray-500);
  font-size: 0.78rem;
}

.contact-details {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

.contact-detail {
  display: flex;
  gap: 12px;
}

.contact-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(57, 200, 216, 0.35);
  border-radius: 7px;
}

.contact-detail small {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-detail address,
.contact-detail a {
  color: var(--white);
  font-size: 0.87rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.contact-detail a:hover {
  color: var(--cyan);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Footer */

.site-footer {
  padding: 65px 0 25px;
  color: rgba(255, 255, 255, 0.62);
  background: var(--navy-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 42px;
  padding-bottom: 46px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 86px;
  margin-bottom: 18px;
  padding: 7px;
  border-radius: 9px;
  background: var(--white);
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-description {
  max-width: 290px;
  font-size: 0.85rem;
}

.footer-column h3 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.footer-column li,
.footer-column a {
  font-size: 0.83rem;
}

.footer-column a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
}

/* Responsividade */

@media (max-width: 1080px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

@media (max-width: 820px) {
  .mobile-nav:not([hidden]) {
    display: grid;
    gap: 3px;
  }

  .page-hero {
    min-height: 520px;
    padding-top: 130px;
  }

  .split,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .media-carousel {
    min-height: 380px;
  }

  .form-aside {
    padding: 28px;
  }

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

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

  .logo-frame {
    width: 121px;
    height: 49px;
  }

  .section {
    padding: 70px 0;
  }

  .page-hero {
    min-height: 540px;
    padding: 115px 0 60px;
  }

  .page-hero h1 {
    letter-spacing: -0.045em;
  }

  .carousel-ui {
    right: 17px;
    bottom: 17px;
    left: 17px;
  }

  .carousel-dots {
    display: none;
  }

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

  .service-card-body,
  .info-card {
    padding: 22px;
  }

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

  .form-group.full {
    grid-column: auto;
  }

  .form-panel {
    padding: 27px 20px;
  }

  .form-aside {
    padding: 25px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .logo-frame {
    width: 110px;
    height: 46px;
  }

  .page-hero h1 {
    font-size: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

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

  .carousel-slide {
    transform: none;
  }
}