:root {
  --color-gray: #58595b;
  --color-gray-deep: #303133;
  --color-blue: #123256;
  --color-blue-2: #1a4270;
  --color-accent: #f9a61a;
  --color-accent-dark: #d48d16;
  --color-text: #2c3e50;
  --color-text-muted: #5a6b7d;
  --color-bg-alt: #f4f6f8;
  --color-border: #e1e6ea;
  --shadow: 0 2px 14px rgba(18,50,86,0.08);
  --shadow-hover: 0 12px 28px rgba(18,50,86,0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  background: #fff;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  flex-shrink: 0;
}

.logo-img {
  height: clamp(38px, 6vw, 56px);
  width: auto;
  max-width: none;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch a {
  color: var(--color-gray);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 9px;
  border: 1px solid var(--color-border);
  transition: background 0.2s, color 0.2s;
}

.lang-switch a[aria-current="true"] {
  background: var(--color-gray);
  color: #fff;
  border-color: var(--color-gray);
}

.lang-switch a:hover {
  background: var(--color-bg-alt);
}

.navbar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease;
}

.header.scrolled .navbar {
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.navbar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  height: clamp(56px, 8vw, 88px);
  gap: clamp(10px, 2vw, 24px);
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  gap: clamp(10px, 1.6vw, 26px);
}

.nav-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-accent-dark);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown > a::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 14px;
}

.nav-dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hover);
  min-width: 240px;
  padding: 8px 0;
  margin-top: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 0.85rem;
  color: var(--color-text);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--color-bg-alt);
  color: var(--color-accent-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
}

.nav-cta {
  background: var(--color-accent);
  color: var(--color-gray-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.78rem, 0.9vw, 0.88rem);
  padding: 9px clamp(12px, 1.6vw, 18px);
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-gray-deep);
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-2) 100%);
  padding: clamp(64px, 6vw, 110px) 0;
  min-height: clamp(440px, 42vw, 760px);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: inherit;
}

.hero-box {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hover);
  padding: clamp(24px, 3.4vw, 34px);
  transform: translateY(-20mm);
}

.eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--color-blue);
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--color-text);
  margin-bottom: 24px;
}

.hero-checklist {
  list-style: none;
  margin-bottom: 30px;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 10px;
}

.hero-checklist .icon {
  color: var(--color-accent);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero .hero-actions .btn {
  justify-content: center;
}

.about-cta {
  margin-top: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-gray-deep);
  padding: 13px 30px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-gray-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249,166,26,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-blue);
  color: #fff;
  box-shadow: none;
}

.btn-outline-gray {
  background: transparent;
  color: var(--color-gray);
  border: 2px solid var(--color-gray);
}

.btn-outline-gray:hover,
.btn-outline-gray:focus-visible {
  background: var(--color-gray);
  color: #fff;
  box-shadow: none;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: clamp(36px, 4.5vw, 56px) 0;
}

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

#about {
  padding-bottom: calc(clamp(36px, 4.5vw, 56px) / 2);
}

#mission {
  padding-top: calc(clamp(36px, 4.5vw, 56px) / 2);
}

.section-header {
  max-width: 680px;
  margin-bottom: 36px;
}

.section h2,
.section-header h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--color-gray);
  margin-bottom: 10px;
}

.section-lead {
  color: var(--color-text-muted);
}

.subsection-title {
  margin: 40px 0 20px;
  color: var(--color-gray);
  font-size: 1.15rem;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col.align-top {
  align-items: start;
}

.stat-row {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-gray);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.about-visual {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photo {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-photo-sm img {
  width: 70%;
  height: 70%;
}

.photo-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.photo-stack img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 8px;
}

.photo-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

/* Pool de fotos: mantém sempre as 4 primeiras do DOM visíveis; o JS embaralha a ordem a cada carregamento */
.photo-pool img {
  display: none;
}

.photo-pool img:nth-child(-n + 4) {
  display: block;
}

.trade-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.trade-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.trade-slide.active {
  opacity: 1;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Product / service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

#products .container {
  max-width: 1260px;
}

#mission .cards {
  gap: 26px 13px;
}

.card {
  background: #fff;
  padding: 30px 26px;
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.card-photo {
  aspect-ratio: 3 / 2;
  margin: -30px -26px 20px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b7c0c8;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-photo .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.2;
}

.card-icon-badge {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray);
  color: #fff;
  margin-bottom: 18px;
  overflow: hidden;
}

.card-icon-badge .icon {
  width: 26px;
  height: 26px;
}

.card-icon-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  margin-bottom: 12px;
  color: var(--color-gray);
  font-size: 1.15rem;
}

#products .card h3 {
  white-space: nowrap;
}

.type-block {
  padding: clamp(24px, 3.4vw, 38px) 0;
  border-bottom: 1px solid var(--color-border);
}

.type-block:last-of-type {
  border-bottom: none;
}

.type-block h2 {
  color: var(--color-gray);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: 10px;
}

.article-section {
  padding: clamp(30px, 4vw, 46px) 0;
}

.article-section .section-header {
  margin-bottom: 18px;
}

.prose p,
.type-intro {
  color: var(--color-text);
  margin-bottom: 10px;
  max-width: 760px;
  text-align: justify;
}

.prose p:last-child {
  margin-bottom: 0;
}

.type-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 32px;
  align-items: start;
}

.type-diagram {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-diagram svg {
  width: 100%;
  height: 100%;
  color: var(--color-blue);
}

.type-diagram img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.type-sub h3 {
  color: var(--color-gray);
  font-size: 1rem;
  margin: 14px 0 5px;
}

.type-sub p {
  color: var(--color-text-muted);
  text-align: justify;
}

.type-sub .check-list {
  margin: 8px 0 10px;
}

@media (max-width: 768px) {
  .type-grid {
    grid-template-columns: 1fr;
  }
  .type-diagram {
    max-width: 330px;
    margin: 0 auto;
  }
  .photo-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-list {
  list-style: none;
  margin: 14px 0 20px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.check-list .icon {
  color: var(--color-accent);
  margin-top: 3px;
}

.card-desc {
  margin: 14px 0 20px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gray);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

.card-link .icon {
  width: 0.85em;
  height: 0.85em;
  transition: transform 0.2s;
}

.card-link:hover {
  color: var(--color-accent-dark);
}

.card-link:hover .icon {
  transform: translateX(3px);
}

/* Application tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  aspect-ratio: 2.4 / 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
  background: var(--color-blue);
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tile:hover img {
  transform: scale(1.06);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,20,28,0.8) 0%, rgba(13,20,28,0.25) 60%, transparent 85%);
}

.tile span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--color-border);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.team-photo {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa7b4;
  margin-bottom: 16px;
}

.team-photo .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.3;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  margin-top: 20px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-info-list .icon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--color-accent);
  margin-top: 2px;
}

.contact-info-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.contact-info-list a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  padding: 28px;
  border: 1px solid var(--color-border);
}

.form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  display: block;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* Honeypot field - hidden from real users, visible to bots that ignore CSS */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.whatsapp-float svg {
  display: block;
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 14px;
    bottom: 80px;
  }

  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }
}

/* Footer */
.footer {
  background: var(--color-gray-deep);
  color: #c7c8ca;
  padding: 36px 0 22px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 18px;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: #c7c8ca;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* Tablet */
@media (max-width: 992px) {
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual,
  .trade-gallery,
  .product-photo {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-box {
    max-width: 100%;
  }
}

/* Navegação: vira menu hambúrguer em qualquer tela até 960px
   (cobre tablets estreitos e celulares na horizontal, que não cabem
   o menu completo sem quebrar/vazar da tela) */
@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .navbar-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 10px 20px rgba(18,50,86,0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 18px;
    display: none;
    z-index: 10;
  }

  .nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
  }

  .nav-cta {
    display: none;
  }

  .nav-dropdown > a::after {
    display: none;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 6px;
    background: var(--color-bg-alt);
  }

  .nav-dropdown-menu a {
    padding: 8px 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Hero: caixa mais compacta e translúcida para não cobrir o banner */
  .hero-box {
    background: rgba(18, 50, 86, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-color: rgba(255, 255, 255, 0.18);
    padding: 16px 16px;
    transform: none;
  }

  .hero-box .eyebrow {
    color: var(--color-accent);
    font-size: 0.76rem;
    margin-bottom: 6px;
  }

  .hero-box h1 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .hero-box p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .hero-box .hero-actions {
    gap: 10px;
  }

  .hero-box .hero-actions .btn {
    padding: 9px 16px;
    font-size: 0.85rem;
  }

  .hero-box .btn-outline-gray {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
  }

  .hero-box .btn-outline-gray:hover,
  .hero-box .btn-outline-gray:focus-visible {
    background: #fff;
    color: var(--color-blue);
  }
}

@media (max-width: 480px) {
  .card {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    align-self: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }
}
