/* Ivexan institutional site, v3.
   Bolder direction: larger header logo, rotating hero banner carousel,
   stronger type scale and motion, using the brand material provided by the
   client (Logo IVEXAN.png, Plano de Fundos PC.png). */

:root {
  --navy: #10163a;
  --blue-deep: #0b1130;
  --blue: #2563c9;
  --cyan: #4dd0e1;
  --purple: #7b3ff2;
  --magenta: #c026d3;
  --ink: #1a1f2e;
  --paper: #ffffff;
  --paper-muted: #f4f6fb;
  --line: #e3e7f1;
  --text: #1c2133;
  --text-muted: #5b6272;
  --radius: 16px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav — floats transparently over the hero image, logo and nav
   visually separated (logo top-left, nav+lang top-right). Not sticky: it
   only exists over the hero; page sections below scroll normally beneath it. */
header.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(4,6,16,0.55) 0%, rgba(4,6,16,0.22) 60%, rgba(4,6,16,0) 100%);
  border-bottom: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-link img { height: 40px; width: auto; }

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  color: #f4f5fb;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  transition: color 0.15s ease;
}

nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-right { display: flex; align-items: center; gap: 22px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch a {
  color: #cfd2e6;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch a:hover { color: #fff; }

.lang-switch a.lang-active {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #0b0f22;
}

/* Hero carousel — fills the first screen the visitor sees; the header
   floats over it, so it no longer needs to subtract the header height. */
.hero-carousel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  padding: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.8s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,12,35,0.88) 20%, rgba(8,12,35,0.45) 65%, rgba(8,12,35,0.15) 100%);
}

.hero-slide.slide-gradient-a { background: radial-gradient(130% 160% at 10% 0%, #1c2b6e 0%, var(--blue-deep) 55%, #070a20 100%); }
.hero-slide.slide-gradient-b { background: radial-gradient(130% 160% at 90% 100%, #4a1d7a 0%, var(--blue-deep) 55%, #070a20 100%); }

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 90px 0;
  width: 100%;
}

.hero-slide h1,
.hero-slide h2 {
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 18px;
  background: linear-gradient(90deg, #7ee8f0, #b98af5 55%, #e07ae0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 780px;
}

.hero-slide p.lead {
  max-width: 620px;
  font-size: 1.18rem;
  color: #dde1f7;
  margin: 0 0 30px;
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #0b0f22;
  box-shadow: 0 10px 30px -10px rgba(123, 63, 242, 0.65);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}

/* Carousel controls — embedded as a floating bar at the bottom of the banner */
.hero-controls {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.18);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scale(1.3);
}

.hero-arrow {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-arrow:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.6); }

/* Trust strip — reputation badges, independent of the carousel */
.trust-strip {
  background: var(--paper-muted);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.trust-strip .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}

.trust-strip .badge {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.trust-strip .badge-caption {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Simple page hero (non-carousel pages). Some pages set an inline
   background-image (photo); .hero::before layers a dark gradient on top
   so the heading/lead stay legible either way. */
.hero {
  position: relative;
  background: radial-gradient(130% 160% at 10% 0%, #1c2b6e 0%, var(--blue-deep) 55%, #070a20 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 84px 0 70px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,12,35,0.88) 20%, rgba(8,12,35,0.55) 60%, rgba(8,12,35,0.3) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  margin: 0 0 14px;
  background: linear-gradient(90deg, #7ee8f0, #b98af5 55%, #e07ae0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 640px;
  font-size: 1.12rem;
  color: #d7dcf5;
  margin: 0;
}

.hero p.lead.lead-nowrap { max-width: none; }

/* Stats strip */
.stats-strip {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stats-grid .stat-num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  background: linear-gradient(90deg, #7ee8f0, #b98af5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-grid .stat-label {
  font-size: 0.85rem;
  color: #b9bfe0;
  margin-top: 4px;
}

/* Sections */
section { padding: 64px 0; }

section h2 {
  font-size: 1.9rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

section p.section-lead {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 36px;
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--paper-muted);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px rgba(20, 33, 80, 0.35);
}

.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

.section-alt { background: var(--paper-muted); }

.marketplace-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.marketplace-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

a.marketplace-pill.active:hover,
a.marketplace-pill.active:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 22, 58, 0.35);
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  cursor: pointer;
}

.marketplace-pill.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.marketplace-pill.upcoming { color: var(--text-muted); }

.institutional-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.institutional-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}

.institutional-list span:first-child { color: var(--text-muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-block h3 { margin: 0 0 6px; font-size: 1rem; }
.contact-block p { margin: 0 0 20px; color: var(--text-muted); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}

/* Callout box */
.callout-box {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
}

.callout-box h3 { margin: 0 0 8px; font-size: 1.25rem; }
.callout-box p { margin: 0; color: #cdd3ea; }
.callout-box .btn { margin-top: 18px; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.form-field label .req { color: var(--magenta); }

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--paper);
}

.form-field textarea { resize: vertical; min-height: 100px; }

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

.form-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 14px; }

.form-error {
  display: none;
  color: var(--magenta);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.form-error.is-visible { display: block; }
.form-submit { margin-top: 22px; }

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: #cdd3ea;
  padding: 34px 0;
  font-size: 0.85rem;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer a { color: #fff; }

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.whatsapp-link svg { flex-shrink: 0; color: #25D366; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Nav collapses to hamburger earlier than other mobile rules — 5 nav items
   (Home/Sobre/Produtos/Seja um Fornecedor/Contato) plus lang-switch no
   longer fit inline once the viewport drops below ~1100px. */
@media (max-width: 1100px) {
  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: none;
  }
  nav.primary-nav.open { display: block; }
  nav.primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  nav.primary-nav li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .menu-toggle { display: inline-block; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .logo-link img { height: 24px; }
  .hero-carousel { min-height: 100vh; }
  .hero-arrow { width: 36px; height: 36px; font-size: 1rem; }
  .hero { padding: 56px 0 44px; }
  footer.site-footer .wrap { flex-direction: column; }
}
