/* ============================================================
   OTIMIZARE — style.css
   ============================================================ */

/* ---------- RESET & BASE ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cyan:   #00d4c8;
  --dark:   #0a0a0a;
  --dark2:  #111111;
  --white:  #ffffff;
  --off:    #f4f4f4;
  --grey:   #888888;
  --text:   #1a1a1a;
  --ease:   cubic-bezier(.4,0,.2,1);
  --font:   'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

.label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: .85rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  padding: 1.1rem 2.5rem;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease);
}

.header.scrolled {
  background: rgba(8,8,8,.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.logo { height: 42px; width: auto; object-fit: contain; }
.logo-mobile { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Seletor de Idiomas */
.lang-selector {
  position: relative;
  font-family: var(--font);
}

.lang-trigger {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  border-radius: 20px; /* Rounded pill style */
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lang-trigger:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
}

.flag-icon {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 1px;
}

.chevron-icon {
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.2s;
}


.lang-dropdown {
  position: absolute;
  top: 115%;
  right: 0;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  width: 100px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 1001;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.lang-selector:hover .lang-dropdown,
.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-selector:hover .chevron-icon,
.lang-selector.open .chevron-icon {
  transform: rotate(180deg);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.lang-item:hover {
  background: #1a1a1a;
  color: var(--white);
}
.lang-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--cyan);
}

.btn-contato {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--white);
  padding: .55rem 1.7rem;
  border-radius: 30px; /* Fully rounded pill shape */
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s, color .2s, opacity .2s;
}
.btn-contato:hover {
  opacity: 0.9;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/img_4.jpg');
  background-size: cover;
  background-position: center right;
  opacity: .45;
  transform: scale(1.04);
  transition: transform 10s linear;
}
.hero:hover .hero-bg { transform: scale(1.07); }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 3rem 2rem;
  max-width: 860px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -.02em;
}
.hero-title .accent { color: var(--cyan); }

.hero-sub {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

.hero-features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.1);
}

.hero-feature {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background .25s var(--ease);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-feature:last-child { border-right: none; }
.hero-feature:hover { background: rgba(0,212,200,.07); }

.hero-feature img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(153deg);
}

.hero-feature h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.hero-feature p {
  font-size: 0.92rem;
  color: rgba(255,255,255,.68);
  line-height: 1.6;
}

/* ============================================================
   VISÃO
   ============================================================ */
.visao { 
  position: relative;
  background-image: url('images/videos_loop/oqueeescanemante3d.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

.visao::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
  z-index: 1;
}

.visao-header,
.visao-body,
.visao-footer {
  position: relative;
  z-index: 2;
}

.visao-header {
  padding: 6rem 3rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  max-width: 1300px;
  margin: 0 auto;
}
.visao-header .label { color: rgba(255,255,255,.5); }
.visao-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}

.visao-body {
  min-height: 400px;
  max-width: 1300px;
  margin: 0 auto;
}

.visao-text {
  padding: 6rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.8rem;
  max-width: 900px;
}
.visao-text p {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 300;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.visao-text p strong { color: var(--white); font-weight: 600; }

.visao-footer {
  padding: 3rem 3rem 6rem;
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 1300px;
  margin: 0 auto;
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.85);
  padding: .75rem 2.2rem;
  border-radius: 2px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: border-color .22s, color .22s, background .22s;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ============================================================
   APLICAÇÕES
   ============================================================ */
.aplicacoes {
  padding: 5rem 3rem;
  max-width: 1300px;
  margin: 0 auto;
  border-bottom: 1px solid #e0e0e0;
}

.aplicacoes h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
}

/* ============================================================
   CASE
   ============================================================ */
.case { background: var(--white); }

/* Case intro row: text left, gear right */
.case-intro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e0e0e0;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 3rem;
  gap: 3rem;
  align-items: center;
}

.case-intro-text { display: flex; gap: 2rem; align-items: flex-start; }

.case-intro-border {
  width: 3px;
  min-height: 70px;
  background: var(--text);
  flex-shrink: 0;
  align-self: stretch;
}

.label-dark {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: .8rem;
}

.case-intro-body p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
}

.case-intro-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #ffffff;
}
.case-intro-img img,
.case-intro-img video {
  max-width: 340px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  mix-blend-mode: multiply;
}
.case-intro-img img:hover { transform: rotate(6deg) scale(1.05); transition: transform .5s var(--ease); }

/* Case items */
.case-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  border-bottom: 1px solid #e0e0e0;
  max-width: 1300px;
  margin: 0 auto;
}

/* alt: text left, image right */
.case-item-alt .case-item-content { order: 1; }
.case-item-alt .case-item-img     { order: 2; }

.case-item-img {
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  overflow: hidden;
}
.case-item-img img {
  max-height: 360px;
  max-width: 100%;
  object-fit: contain;
  transition: transform .55s var(--ease);
}
.case-item-img:hover img { transform: scale(1.05); }

/* Variante sem fundo aparente para vídeos com BG branco */
.case-item-img--blend {
  background: #ffffff;
}
.case-item-img--blend video,
.case-item-img--blend img {
  max-height: 310px;
  max-width: 380px;
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}

.case-item-content {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-item-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.case-item-content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin-bottom: 1.5rem;
}
.case-item-content p {
  font-size: .97rem;
  line-height: 1.8;
  color: #444;
}

/* ============================================================
   POR QUE OTIMIZARE
   ============================================================ */
.porque { background: var(--dark); color: var(--white); }

.porque-header {
  padding: 5rem 3rem 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  max-width: 1300px;
  margin: 0 auto;
}
.porque-header .label { color: rgba(255,255,255,.4); }
.porque-header h2 {
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.18;
  max-width: 900px;
}

.porque-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1300px;
  margin: 0 auto;
  padding: 3.5rem 3rem 5rem;
  gap: 4rem;
  align-items: start;
}

.porque-mapa iframe,
#mapaOtimizare {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: 4px;
}

.porque-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: .5rem;
}
.porque-text p {
  font-size: .97rem;
  line-height: 1.78;
  color: rgba(255,255,255,.72);
}
.porque-text p strong { color: var(--white); font-weight: 700; }
.porque-text p em     { font-style: normal; color: var(--cyan); }

/* ============================================================
   NÚMEROS
   ============================================================ */
.numeros {
  position: relative;
  background: var(--dark2);
  color: var(--white);
  overflow: hidden;
}

.numeros-bg-wrap {
  position: absolute; inset: 0; z-index: 0;
}
.numeros-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: .12;
}

.numeros-top {
  position: relative; z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4.5rem 3rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.numeros-top .label { color: rgba(255,255,255,.4); }
.numeros-top h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
}

.numeros-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1300px;
  margin: 0 auto;
  padding: 3.5rem 3rem 5rem;
}

.numero-item {
  padding: 0 3rem 0 0;
  border-right: 1px solid rgba(255,255,255,.1);
}
.numero-item:not(:first-child) { padding-left: 3rem; }
.numero-item:last-child { border-right: none; }

.numero-val {
  display: block;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1;
}
.numero-text { font-size: clamp(1.6rem, 3vw, 2.5rem) !important; }

.numero-item hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-bottom: 1rem;
}
.numero-item p { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.5; }

/* Scan video */
.numeros-scan { position: relative; height: 520px; overflow: hidden; }

.numeros-scan video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

@media (max-width: 600px) {
  .numeros-scan { height: 240px; }
}

/* ============================================================
   CLIENTES
   ============================================================ */
.clientes { background: var(--white); padding: 5rem 0 4rem; overflow: hidden; }

.clientes-heading {
  border-top: 1px solid #e0e0e0;
  padding: 4rem 3rem 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}
.clientes h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text);
}

.clientes-track-wrapper {
  overflow: hidden;
  position: relative;
}
.clientes-track-wrapper::before,
.clientes-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px; z-index: 2;
  pointer-events: none;
}
.clientes-track-wrapper::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.clientes-track-wrapper::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }

.clientes-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 1.5rem 2rem;
  animation: scroll-logos 32s linear infinite;
  width: max-content;
}
.clientes-track:hover { animation-play-state: paused; }

.clientes-track img {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1) opacity(.6);
  transition: filter .25s;
}
.clientes-track img:hover { filter: none; }

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

/* ============================================================
   CONTATO
   ============================================================ */
.contato {
  background: var(--white);
  border-top: 1px solid #e0e0e0;
  padding: 5rem 3rem;
}

.contato-inner { max-width: 700px; margin: 0 auto; }

.contato-inner .label { color: var(--grey); }

.contato-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 2rem;
}
.contato-head h2 strong { font-weight: 700; }

.social-links { display: flex; gap: .9rem; margin-bottom: 2rem; justify-content: center; }

.social-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color .2s, background .2s, color .2s;
}
.social-btn:hover { border-color: var(--text); background: var(--text); color: var(--white); }
.social-btn-dark { background: var(--text); border-color: var(--text); color: var(--white); }
.social-btn-dark:hover { background: #333; border-color: #333; }

.contato-sub {
  font-size: .97rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text);
}

/* Form */
.contato-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group label { font-size: .78rem; font-weight: 500; color: #555; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid #ccc;
  border-radius: 2px;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: transparent;
  outline: none;
  resize: vertical;
  transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--text); }

.form-submit { margin-top: .5rem; }

.btn-enviar {
  background: #555;
  color: var(--white);
  border: none;
  padding: .9rem 3rem;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  border-radius: 2px;
  cursor: pointer;
  transition: background .22s;
}
.btn-enviar:hover { background: var(--dark); }
.btn-enviar:disabled { opacity: .6; cursor: not-allowed; }

.form-success {
  margin-top: 1rem;
  font-size: .9rem;
  color: #1a9e5a;
  font-weight: 500;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  padding: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.footer-logo { height: 80px; width: auto; object-fit: contain; }
.footer p { font-size: .78rem; color: rgba(255,255,255,.35); letter-spacing: .05em; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  box-shadow: 0 4px 20px rgba(0,0,0,.14);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-features       { grid-template-columns: repeat(2, 1fr); }
  .numeros-grid        { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
  .numero-item:nth-child(2) { border-right: none; }
  .numero-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.1); padding-left: 0; }
  .numero-item:nth-child(4) { padding-left: 3rem; }
}

@media (max-width: 768px) {
  .visao-body          { grid-template-columns: 1fr; }
  .visao-img           { height: 300px; }
  .case-intro-row      { grid-template-columns: 1fr; }
  .case-intro-img img  { max-width: 220px; }
  .case-item           { grid-template-columns: 1fr; }
  .case-item .case-item-content { order: 1; }
  .case-item .case-item-img     { order: 2; }
  .porque-grid         { grid-template-columns: 1fr; gap: 2.5rem; }
  .numeros-grid        { grid-template-columns: 1fr 1fr; }
  .form-row            { grid-template-columns: 1fr; }
  .clientes-track-wrapper::before,
  .clientes-track-wrapper::after {
    width: 40px;
  }
  .whatsapp-float {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 48px;
    height: 48px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 540px) {
  .header              { padding: .8rem 1rem; }
  .logo-desktop        { display: none; }
  .logo-mobile         { display: block; height: 32px; width: auto; }
  .nav                 { gap: 0.5rem; }
  .btn-contato         { padding: 0.45rem 1rem; font-size: 0.7rem; }
  .lang-trigger        { padding: 0.45rem 0.6rem; font-size: 0.72rem; }
  .lang-trigger .flag-icon { width: 14px; height: 9px; }
  .lang-dropdown       { width: 90px; }
  .hero-content        { padding: 120px 1.5rem 1.5rem; }
  .hero-features       { grid-template-columns: 1fr 1fr; }
  .hero-feature        { padding: 1.4rem 1rem; }
  .visao-header,
  .visao-footer,
  .porque-header,
  .numeros-top,
  .aplicacoes          { padding-left: 1.5rem; padding-right: 1.5rem; }
  .porque-grid,
  .numeros-grid        { padding-left: 1.5rem; padding-right: 1.5rem; }
  .case-intro-row,
  .case-item-content   { padding: 2.5rem 1.5rem; }
  .contato             { padding: 4rem 1.5rem; }
  .clientes-heading    { padding-left: 1.5rem; padding-right: 1.5rem; }
  .numeros-grid        { grid-template-columns: 1fr 1fr; padding: 2rem 1.5rem 3rem; }
  .numero-item         { padding: 0 1.2rem 0 0; }
  .numero-item:not(:first-child) { padding-left: 1.2rem; }
}
