/* ==========================================================================
   BYVISION — Institutional website
   Paleta: branco, verde Byvision, cinzas
   Tipografia: Fraunces (títulos, italic display) + Inter (corpo)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --byvision-green: #17b978;
  --byvision-green-dark: #0f9b62;
  --byvision-green-soft: #e8f8f0;

  --ink-900: #0e1414;
  --ink-700: #2a3230;
  --ink-500: #5a6461;
  --ink-400: #7d8683;
  --ink-300: #b7bebc;
  --ink-200: #dde1df;
  --ink-100: #eef1ef;
  --ink-50:  #f6f8f7;

  --white: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-xs: 0 1px 2px rgba(15, 30, 25, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 30, 25, 0.05);
  --shadow-md: 0 8px 30px rgba(15, 30, 25, 0.06);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .35s;

  --container: 1200px;

  --ff-display: 'Montserrat', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body:    'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Compensação para header fixo em âncoras (hero fica atrás do header) */
section[id] { scroll-margin-top: 74px; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--byvision-green); color: #fff; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--byvision-green);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--byvision-green-dark);
  font-weight: 600;
  margin: 0 0 18px;
}
.eyebrow-light { color: rgba(255,255,255,.85); }

.display,
.display-2 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}
.display {
  font-size: clamp(1.9rem, 3.6vw + 1rem, 3.4rem);
}
.display-2 {
  font-size: clamp(1.9rem, 2.8vw + 1rem, 3rem);
  line-height: 1.15;
}
.display em, .display-2 em, .brand-mark em {
  font-style: normal;
  color: var(--byvision-green-dark);
  font-weight: 600;
}
.display-2.light { color: #fff; }
.display-2.light em { color: #fff; }

.lead {
  font-size: 1.05rem;
  color: var(--ink-500);
  max-width: 560px;
  margin: 20px 0 0;
}
.lead-center { margin-left: auto; margin-right: auto; text-align: center; }
.lead-light { color: rgba(255,255,255,.88); }

h3 { font-family: var(--ff-body); font-weight: 600; font-size: 1.15rem; margin: 14px 0 8px; letter-spacing: -0.01em; }
h4 { font-family: var(--ff-body); font-weight: 600; font-size: 1rem; margin: 12px 0 6px; }
h5 { font-family: var(--ff-body); font-weight: 600; font-size: .95rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-400); }

p { margin: 0 0 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--byvision-green);
  color: #fff;
  box-shadow: 0 6px 20px rgba(23, 185, 120, 0.25);
}
.btn-primary:hover { background: var(--byvision-green-dark); box-shadow: 0 10px 26px rgba(23,185,120,.32); }

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-outline:hover { border-color: var(--byvision-green); color: var(--byvision-green-dark); }

.btn-white {
  background: #fff;
  color: var(--ink-900);
}
.btn-white:hover { background: var(--ink-50); }

.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-header { padding: 11px 18px; font-size: .88rem; }

.link-ghost {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding-bottom: 2px;
  font-weight: 500;
  transition: border-color var(--dur) var(--ease);
}
.link-ghost:hover { border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.brand-mark em {
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(90deg, var(--ink-900), var(--ink-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.brand-mark em::after {
  content: '';
  position: absolute;
  top: -2px; right: -8px;
  width: 6px; height: 6px;
  background: var(--byvision-green);
  border-radius: 50%;
}
.brand-mark.light { color: #fff; }
.brand-mark.light em { background: none; -webkit-text-fill-color: #fff; color: #fff; }

/* Logo image */
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-logo-light {
  filter: invert(1) brightness(2);
}

/* Desktop nav */
.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-desktop a {
  font-size: 0.92rem;
  color: var(--ink-700);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--byvision-green);
  transition: width var(--dur) var(--ease);
}
.nav-desktop a:hover { color: var(--ink-900); }
.nav-desktop a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
  background: var(--ink-50);
}
.hamburger span {
  width: 20px; height: 2px;
  background: var(--ink-900);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 24px;
  border-top: 1px solid var(--ink-100);
  background: #fff;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.mobile-menu a {
  display: block;
  padding: 14px 8px;
  font-weight: 500;
  color: var(--ink-700);
  border-bottom: 1px solid var(--ink-100);
}
.mobile-menu a:hover { color: var(--byvision-green-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 60px 0 60px;
  overflow: hidden;
}

/* Hero full-bleed: banner ocupa 100% da largura da tela */
.hero-fullbleed {
  padding: 0;
  background: #fff;
  min-height: clamp(520px, 62vw, 900px);
  display: flex;
  align-items: center;
}
.hero-fullbleed .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.hero-fullbleed .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 60px 0;
}
.hero-fullbleed .hero-copy {
  max-width: 520px;
  padding: 0;
}

.hero-decor { position: absolute; inset: 0; pointer-events: none; display: none; }
.ring {
  position: absolute;
  border: 12px solid var(--byvision-green);
  border-radius: 50%;
  opacity: .55;
}
.ring-1 { width: 260px; height: 260px; top: -80px; left: -110px; }
.ring-2 { width: 180px; height: 180px; bottom: 60px; right: -70px; opacity: .35; display: none; }
.blob {
  position: absolute;
  width: 90px; height: 90px;
  background: var(--byvision-green);
  border-radius: 50%;
  filter: blur(1px);
  opacity: .55;
}
.blob-1 { bottom: 120px; left: 40%; width: 40px; height: 40px; }
.blob-2 { top: 30%; right: 42%; width: 55px; height: 55px; opacity: .4; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.15fr;
  gap: 40px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.hero-copy { max-width: 560px; padding-bottom: 40px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 28px;
  margin-top: 46px;
}
.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--ink-500);
}
.trust-badges .dot {
  width: 6px; height: 6px;
  background: var(--byvision-green);
  border-radius: 50%;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  /* Sangrar até a borda direita do viewport */
  margin-right: calc(50% - 50vw);
  align-self: end;
}
.hero-visual-img {
  width: 100%;
  max-width: 780px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(15%) contrast(1.05);
  transition: transform 1.2s var(--ease), filter var(--dur) var(--ease);
}
.hero-visual:hover .hero-visual-img { transform: scale(1.02); filter: grayscale(0%); }
.hero-visual-ring {
  position: absolute;
  left: -30px; top: 40px;
  width: 170px; height: 170px;
  border: 10px solid var(--byvision-green);
  border-radius: 50%;
  opacity: .35;
  z-index: 0;
  display: none;
}

/* ---------- Section ---------- */
.section {
  padding: 110px 0;
  position: relative;
}
.section-alt {
  background: var(--ink-50);
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

/* ---------- Surfaçagem digital multimarcas ---------- */
.section-brands {
  padding: 40px 0 50px;
  background: #fff;
}
.section-brands .section-head {
  margin-bottom: 48px;
}
.brands-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.brand-logo-wrap {
  width: 100%;
  max-width: 220px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--dur) var(--ease);
}
.brand-logo-wrap:hover .brand-logo-img {
  transform: scale(1.04);
}

@media (max-width: 820px) {
  .brands-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
  .brand-logo-wrap { height: 80px; }
  .section-brands { padding: 32px 0 40px; }
  .section-brands .section-head { margin-bottom: 36px; }
}
@media (max-width: 380px) {
  .brands-row { gap: 32px 20px; }
  .brand-logo-wrap { height: 68px; }
}

/* ---------- Cards grid (about) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--byvision-green-soft);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--byvision-green-soft);
  color: var(--byvision-green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card p { color: var(--ink-500); font-size: .93rem; margin: 0; }

/* ---------- Tech grid ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.tech-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tech-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--byvision-green-soft);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.tech-card:hover::before { opacity: 1; }
.tech-card > * { position: relative; z-index: 1; }
.tech-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--byvision-green-dark);
  background: var(--byvision-green-soft);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.tech-card h3 {
  font-family: var(--ff-display);
  font-style: normal;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink-900);
}
.tech-card h3 sup { font-size: 0.55em; color: var(--byvision-green-dark); top: -.8em; }
.tech-card p { color: var(--ink-500); font-size: .93rem; margin: 0; }

/* Logos padronizadas para os cards de tecnologia */
.tech-logo {
  margin: 4px 0 6px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.tech-logo img {
  max-height: 100%;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---------- Laboratório: video ---------- */
.video-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-100);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.video-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.video-media {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.video-wrapper.is-playing .video-play { display: none; }
.video-wrapper:hover .video-cover { transform: scale(1.03); }
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--byvision-green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.video-play::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.video-play:hover { background: #fff; transform: translate(-50%, -50%) scale(1.06); }

.steps-intro {
  margin: 64px auto 40px;
  max-width: 780px;
  text-align: center;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-700);
  letter-spacing: -0.005em;
}

.steps {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.steps li:hover { transform: translateY(-3px); background: #fff; }
.step-num {
  font-family: var(--ff-display);
  font-style: normal;
  font-size: 1.4rem;
  color: var(--byvision-green-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.steps h4 { margin: 0 0 8px; }
.steps p { margin: 0; color: var(--ink-500); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink-900);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  background-image: url('assets/icon-verde.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}
.cta-band::before {
  width: 360px; height: 400px;
  left: -110px; top: -120px;
  transform: rotate(-15deg);
  opacity: .18;
}
.cta-band::after {
  width: 260px; height: 290px;
  right: -80px; bottom: -90px;
  transform: rotate(170deg);
  opacity: .14;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-note { color: rgba(255,255,255,.6); font-size: .85rem; margin: 0; }
.cta-alt {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  width: 100%;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.info-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.info-block h4 { margin: 4px 0 4px; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-400); font-weight: 600; }
.info-block p { margin: 0; color: var(--ink-900); font-size: 1rem; line-height: 1.5; }
.info-block a { color: var(--ink-900); border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.info-block a:hover { color: var(--byvision-green-dark); border-bottom-color: var(--byvision-green); }

.socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink-50);
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.socials a svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--byvision-green); color: #fff; transform: translateY(-2px); }
.socials-footer a { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.socials-footer a:hover { background: var(--byvision-green); color: #fff; }
.socials-footer { margin-top: 16px; }

/* Contact form */
.contact-form {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; }
.form-field-small { max-width: 110px; }
.form-field label {
  font-size: .82rem;
  color: var(--ink-500);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-field label span { color: var(--byvision-green-dark); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink-900);
  background: var(--ink-50);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%235a6461' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #fff;
  border-color: var(--byvision-green);
  box-shadow: 0 0 0 4px rgba(23,185,120,.12);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #d64545;
  background: #fff4f4;
}
.form-error {
  display: none;
  font-size: .78rem;
  color: #b83232;
  margin-top: 6px;
}
.form-field.has-error .form-error { display: block; }

.btn-form { align-self: flex-start; margin-top: 8px; }

.form-feedback {
  margin: 6px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .9rem;
  display: none;
}
.form-feedback.show { display: block; }
.form-feedback.success { background: var(--byvision-green-soft); color: var(--byvision-green-dark); }
.form-feedback.info { background: var(--ink-50); color: var(--ink-700); }
.form-feedback.error { background: #fff4f4; color: #b83232; }

/* ---------- Produtos / Carrossel ---------- */
.carousel {
  position: relative;
  margin: 0 -8px;
}
.carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 8px 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-behavior: auto; }
.carousel-track:focus-visible { outline: 2px solid var(--byvision-green); outline-offset: 4px; border-radius: 12px; }

.product-card {
  flex: 0 0 calc((100% - 22px * 2) / 3);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--byvision-green-soft);
}
.product-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-100);
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-body h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.product-body p {
  color: var(--ink-500);
  font-size: .92rem;
  margin: 0;
  flex: 1;
}
.btn-link {
  align-self: flex-start;
  padding: 8px 0;
  color: var(--byvision-green-dark);
  font-weight: 600;
  font-size: .92rem;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  margin-top: 6px;
}
.btn-link:hover { color: var(--byvision-green); border-bottom-color: var(--byvision-green); transform: translateX(3px); }

/* Product footer: Ler mais + stars */
.product-footer {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.product-footer .btn-link {
  align-self: auto;
  margin-top: 0;
}
.stars {
  --rating: 5;
  position: relative;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 2px;
  font-family: Arial, sans-serif;
  color: var(--byvision-green-dark);
  white-space: nowrap;
}
.stars::before {
  content: "★★★★★";
  color: rgba(0, 141, 76, 0.22);
}
.stars::after {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: calc(var(--rating) / 5 * 100%);
  color: var(--byvision-green-dark);
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-900);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.carousel-arrow:hover { background: var(--byvision-green); color: #fff; border-color: var(--byvision-green); box-shadow: 0 8px 24px rgba(23,185,120,.32); }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-200);
  border: 0;
  padding: 0;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.carousel-dots button.active { background: var(--byvision-green); width: 22px; border-radius: 4px; }
.carousel-dots button:hover { background: var(--byvision-green-dark); }

@media (max-width: 960px) {
  .product-card { flex: 0 0 calc((100% - 22px) / 2); }
  .carousel-prev { left: -6px; }
  .carousel-next { right: -6px; }
}
@media (max-width: 640px) {
  .product-card { flex: 0 0 88%; }
  .carousel-arrow { display: none; }
  .carousel { margin: 0; }
  .carousel-track { padding-left: 4px; padding-right: 30%; }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 20, 20, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .25s var(--ease);
}
.modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: min(80vw, 900px);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: modalIn .3s var(--ease);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  overflow: hidden;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-image {
  background: var(--ink-100);
  aspect-ratio: 1 / 1;
}
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.modal-body h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 4px 0 6px;
}
.modal-body p { color: var(--ink-500); font-size: .95rem; margin: 0; }
.modal-body .btn { margin-top: 16px; align-self: flex-start; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal-close:hover { background: var(--ink-900); color: #fff; }

@media (max-width: 640px) {
  .modal-content { grid-template-columns: 1fr; max-width: 95vw; }
  .modal-image { aspect-ratio: 16 / 9; }
  .modal-body { padding: 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.75);
  padding-top: 70px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand p { color: rgba(255,255,255,.6); max-width: 320px; font-size: .92rem; margin-top: 16px; }
.footer-col h5 { color: rgba(255,255,255,.55); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .92rem; color: rgba(255,255,255,.75); }
.footer-col a:hover { color: var(--byvision-green); }
.footer-col li { font-size: .92rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: #fff; }

/* ---------- Floating elements ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.4);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.whatsapp-float svg { display: block; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  color: var(--ink-900);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  padding: 20px 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner__inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 260px;
}
.cookie-banner__text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--ink-900);
}
.cookie-banner__text p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-500);
}
.cookie-banner__text a {
  color: var(--byvision-green-dark);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px 18px; }
  .cookie-banner__inner { gap: 14px; }
  .cookie-banner__actions { width: 100%; justify-content: flex-end; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(37,211,102,.5); }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--byvision-green-dark); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
  .hero-copy { padding-bottom: 0; max-width: none; }
  .hero-visual { margin-right: 0; justify-content: center; max-width: 500px; margin-left: auto; }
  .hero-visual-img { max-width: 100%; }

  /* Hero full-bleed em mobile: imagem removida, mantém apenas o texto */
  .hero-fullbleed {
    min-height: auto;
    padding: 0;
    display: block;
    background: linear-gradient(180deg, #f5f8f6 0%, #ffffff 100%);
  }
  .hero-fullbleed .hero-bg-img {
    display: none;
  }
  .hero-fullbleed .hero-inner {
    padding: 120px 0 60px;
  }
  .hero-fullbleed .hero-copy { max-width: none; color: var(--ink-900); }

  /* Banner em mobile: imagem fica em fluxo normal e texto abaixo */
  .hero-banner .hero-inner {
    position: static;
    padding: 24px 0 0;
  }
  .hero-banner .hero-copy { padding: 0; max-width: none; }
  .cta-inner { grid-template-columns: 1fr; gap: 34px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .btn-header { display: none; }
  .hamburger { display: inline-flex; }

  .hero { padding: 60px 0 70px; }
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
  .cta-band { padding: 70px 0; }

  .ring-1 { width: 180px; height: 180px; top: -60px; left: -70px; border-width: 8px; }
  .ring-2 { width: 130px; height: 130px; border-width: 8px; }

  .hero-visual-ring { width: 120px; height: 120px; border-width: 8px; right: -30px; bottom: -30px; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding-bottom: 40px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }

  .trust-badges { gap: 12px 20px; margin-top: 32px; }

  .video-play { width: 64px; height: 64px; }
  .video-play svg { width: 22px; height: 22px; }

  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .back-to-top { right: 16px; bottom: 78px; }

  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .form-field-small { max-width: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
