/* ==========================================================================
   1. RESET
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

/* ==========================================================================
   2. TOKENS DE DESIGN
   Extraídos de rottler.de (estrutura/espaçamento/raio) + cor de marca definida
   pelo cliente (#004aab).
   ========================================================================== */

:root {
  /* Cores */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-text: #1a1a1a;
  --color-text-muted: #55585c;
  --color-primary: #004aab;
  --color-primary-hover: #003b89;
  --color-primary-light: #e6edf7;
  --color-border: #d7d7d7;
  --color-black: #000000;

  /* Tipografia */
  --font-family-base: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-h1: clamp(1.75rem, 3.2vw + 1rem, 2.75rem);
  --font-size-h2: clamp(1.5rem, 2vw + 1rem, 2.125rem);
  --font-size-h3: clamp(1.15rem, 1vw + 1rem, 1.375rem);
  --font-size-h4: 1.125rem;
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Espaçamento */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  /* Superfícies */
  --radius: 10px;
  --radius-pill: 50px;
  --shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 4px 10px rgba(0, 0, 0, 0.15);

  /* Layout */
  --container-max: 1200px;

  /* Espaço entre título de seção e parágrafo de introdução logo abaixo */
  --intro-gap-offset: calc(var(--space-4) * -1 + var(--space-2));
}

/* ==========================================================================
   3. BASE (mobile-first)
   ========================================================================== */

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  text-align: center;
}

.section-title--invert {
  color: #ffffff;
}

.button {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-body);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button--primary {
  background: var(--color-primary);
  color: #ffffff;
}

.button--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-strong);
}

.button--secondary {
  background: #ffffff;
  color: var(--color-primary);
}

.button--secondary:hover {
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-strong);
}

/* Header */
.header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 100;
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
}

.header__logo {
  display: inline-flex;
  align-items: center;
}

.header__logo-img {
  height: 48px;
  width: auto;
}

.nav {
  order: 3;
  width: 100%;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.nav__link {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
}

.nav__link:hover {
  color: var(--color-primary);
}

.header__cta {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-small);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 480px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 45, 0.78) 0%, rgba(0, 20, 45, 0.55) 55%, rgba(0, 20, 45, 0.78) 100%);
  z-index: -1;
}

/* Parallax da imagem de fundo do hero via CSS scroll-driven animations,
   sem JavaScript. Navegadores sem suporte simplesmente ignoram o bloco
   e mantêm a imagem estática (fallback automático). */
@supports (animation-timeline: view()) {
  .hero__bg {
    animation: hero-parallax linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  @keyframes hero-parallax {
    from {
      transform: scale(1.25) translateY(-8%);
    }
    to {
      transform: scale(1.25) translateY(8%);
    }
  }
}

.hero__inner {
  padding-block: var(--space-7);
}

.hero__card {
  max-width: 620px;
  background: rgba(5, 24, 60, 0.5);
  border: 2px solid rgba(128, 128, 128, 0.7);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}

.hero__title {
  color: #ffffff;
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
}

/* About */
.about {
  padding-block: var(--space-7);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.about__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.about__content .section-title {
  text-align: left;
}

.about__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.about__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.pillar {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.pillar__title {
  font-size: 1.6875rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.pillar__text {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.6;
}

/* Differentials & Services (cards) */
.differentials,
.services {
  padding-block: var(--space-7);
}

.services {
  background: var(--color-bg-alt);
}

.differentials__grid,
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.card {
  background: #ffffff;
  padding: var(--space-4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.card__icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin-bottom: var(--space-3);
  margin-inline: auto;
}

.card__title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.card__text {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.6;
}

/* Sectors */
.sectors {
  padding-block: var(--space-7);
  background: #05183c;
  color: #ffffff;
}

.sectors__intro {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-top: var(--intro-gap-offset);
}

/* Sectors gallery — carrossel por clique, sem JavaScript.
   Radios ocultos (um por "página") controlam a posição do trilho via
   seletor de irmão geral (~); cada página tem seu próprio par de setas,
   revelado apenas quando o radio correspondente está marcado. As fotos
   aparecem duplicadas no trilho para a sequência continuar sem quebra
   visual ao avançar. */
.sectors__gallery {
  --gallery-item-w: 260px;
  --gallery-step: calc(var(--gallery-item-w) + var(--space-4));
  position: relative;
  width: 100%;
  margin-top: var(--space-6);
}

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

.sectors__gallery-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.sectors__gallery-track {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  transform: translateX(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .sectors__gallery-track {
    transition: none;
  }
}

.sectors__gallery-item {
  flex: 0 0 var(--gallery-item-w);
}

.sectors__gallery-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.sectors__gallery-caption {
  display: flex;
  margin-top: var(--space-2);
}

.sectors__gallery-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-small);
}

#sector-page-1:checked ~ .sectors__gallery-viewport .sectors__gallery-track {
  transform: translateX(calc(-1 * var(--gallery-step)));
}
#sector-page-2:checked ~ .sectors__gallery-viewport .sectors__gallery-track {
  transform: translateX(calc(-2 * var(--gallery-step)));
}
#sector-page-3:checked ~ .sectors__gallery-viewport .sectors__gallery-track {
  transform: translateX(calc(-3 * var(--gallery-step)));
}
#sector-page-4:checked ~ .sectors__gallery-viewport .sectors__gallery-track {
  transform: translateX(calc(-4 * var(--gallery-step)));
}
#sector-page-5:checked ~ .sectors__gallery-viewport .sectors__gallery-track {
  transform: translateX(calc(-5 * var(--gallery-step)));
}
#sector-page-6:checked ~ .sectors__gallery-viewport .sectors__gallery-track {
  transform: translateX(calc(-6 * var(--gallery-step)));
}

.sectors__gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}

.sectors__gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.sectors__gallery-nav--prev {
  left: var(--space-3);
}

.sectors__gallery-nav--next {
  right: var(--space-3);
}

#sector-page-0:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p0-next,
#sector-page-1:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p1-prev,
#sector-page-1:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p1-next,
#sector-page-2:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p2-prev,
#sector-page-2:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p2-next,
#sector-page-3:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p3-prev,
#sector-page-3:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p3-next,
#sector-page-4:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p4-prev,
#sector-page-4:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p4-next,
#sector-page-5:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p5-prev,
#sector-page-5:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p5-next,
#sector-page-6:checked ~ .sectors__gallery-arrows .sectors__gallery-nav--p6-prev {
  display: flex;
}

@media (min-width: 480px) {
  .sectors__gallery {
    --gallery-item-w: 220px;
  }
}

@media (min-width: 768px) {
  .sectors__gallery {
    --gallery-item-w: 230px;
  }
}

@media (min-width: 1024px) {
  .sectors__gallery {
    --gallery-item-w: 250px;
  }
}

@media (min-width: 1280px) {
  .sectors__gallery {
    --gallery-item-w: 270px;
  }
}

/* Clients marquee */
.clients {
  background: var(--color-black);
  color: #ffffff;
  padding-block: var(--space-7) var(--space-6);
  overflow: hidden;
}

.clients__intro {
  color: #cccccc;
  text-align: center;
  margin-top: var(--intro-gap-offset);
  margin-bottom: var(--space-5);
}

.clients__marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.clients__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.clients__marquee:hover .clients__track {
  animation-play-state: paused;
}

.clients__logo {
  flex-shrink: 0;
  opacity: 0.9;
  margin-right: var(--space-7);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients__track {
    animation: none;
  }
}

/* CTA final */
.cta {
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
  padding-block: var(--space-7);
}

.cta__title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.cta__text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
}

/* Contact */
.contact {
  padding-block: var(--space-7);
  background: var(--color-bg-alt);
}

.contact__intro {
  color: var(--color-text-muted);
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-top: var(--intro-gap-offset);
  margin-bottom: var(--space-5);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.contact__block {
  background: #ffffff;
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}

.contact__heading {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact__link {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.contact__link:hover {
  text-decoration: underline;
}

.contact__static {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

/* Footer */
.footer {
  padding-block: var(--space-6);
  background: #000000;
  color: #b3b3b3;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer__logo-img {
  height: 39px;
  width: auto;
  margin-bottom: var(--space-2);
}

.footer__text {
  color: #b3b3b3;
  font-size: var(--font-size-small);
  margin-top: var(--space-2);
}

.footer__heading {
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  color: #b3b3b3;
  font-size: var(--font-size-small);
}

.footer__link:hover {
  color: #6b9fe8;
}

.footer__quote {
  text-align: center;
  font-style: italic;
  color: #b3b3b3;
  font-size: var(--font-size-small);
  margin-top: var(--space-6);
}

.footer__copyright {
  margin-top: var(--space-3);
  text-align: center;
  font-size: var(--font-size-small);
  color: #b3b3b3;
}

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  background: #1ebe5b;
  transform: scale(1.05);
}

.whatsapp-float__icon {
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   4. MEDIA QUERIES — mobile-first
   ========================================================================== */

@media (min-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }

  .whatsapp-float {
    right: var(--space-5);
    bottom: var(--space-5);
  }
}

@media (min-width: 768px) {
  .header__inner {
    flex-wrap: nowrap;
  }

  .nav {
    order: 2;
    width: auto;
  }

  .nav__list {
    gap: var(--space-4);
  }

  .header__cta {
    order: 3;
  }

  .differentials__grid,
  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about__pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .footer__column {
    flex: 1 1 220px;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 560px;
  }

  .about__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-7);
  }

  .about__content,
  .about__media {
    flex: 1;
    min-width: 0;
  }

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

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }

  .contact__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .hero__card {
    padding: var(--space-6);
  }
}
