/* =========================================================
   EFRAIN — Site Institucional
   Paleta: azul escuro, cinza, branco e detalhes metálicos
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --navy-900: #0a1523;
  --navy-800: #0f1c2e;
  --navy-700: #16283f;
  --navy-600: #1e3a5c;
  --steel-500: #3b5a7d;
  --steel-300: #8aa2ba;
  --metal: #c7d2dd;
  --metal-accent: #b8c4d1;
  --gray-100: #f4f6f8;
  --gray-200: #e6eaef;
  --gray-500: #64748b;
  --gray-700: #334155;
  --white: #ffffff;
  --accent: #2f80ed;
  --accent-dark: #1e63c4;

  --shadow-sm: 0 2px 8px rgba(10, 21, 35, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 21, 35, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 21, 35, 0.28);

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 112px;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy-800);
  font-weight: 700;
}

.ico {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(47, 128, 237, 0.28);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.4);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 15px 30px;
  font-size: 1rem;
  margin-bottom: 70px;
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: box-shadow 0.3s var(--ease);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.topbar {
  background: var(--navy-900);
  color: var(--steel-300);
  font-size: 0.82rem;
  transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease);
  overflow: hidden;
}

.topbar__inner {
  display: flex;
  gap: 28px;
  justify-content: flex-end;
  align-items: center;
  height: 40px;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--steel-300);
  transition: color 0.25s;
}

.topbar__link:hover {
  color: var(--white);
}

.navbar {
  background: rgba(15, 28, 46, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo__img {
  margin-bottom: 22px;
  margin-right: -15px;
  width: 72px;
  height: auto;
  display: block;
  object-fit: contain;
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__text small {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--steel-300);
  text-transform: uppercase;
  margin-top: 4px;
}

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

.nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s;
}

.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav a:not(.nav__cta):hover {
  color: var(--white);
}

.nav a:not(.nav__cta):hover::after {
  width: 100%;
}

.nav__cta {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* ---------- Sections base ---------- */
.section {
  padding: 96px 0;
}

.section--dark {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--metal);
}

.section--accent {
  color: var(--steel-500);
  padding: 64px 0;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin: 14px 0 12px;
}

.section__title--light {
  color: var(--white);
}

.section__lead {
  color: var(--gray-500);
  font-size: 1.05rem;
}

.section__lead--dark {
  color: var(--gray-500);
}

.section--dark .section__lead {
  color: var(--steel-300);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--dark {
  color: var(--accent-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  to {
    transform: scale(1.14);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 21, 35, 0.9) 0%, rgba(15, 28, 46, 0.78) 50%, rgba(10, 21, 35, 0.9) 100%);
}

.hero__content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  color: var(--white);
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  color: var(--white);
  margin: 20px 0 22px;
  letter-spacing: -1px;
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin: 0 auto 34px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero .eyebrow {
  color: var(--metal-accent);
}

/* ---------- Sobre ---------- */
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sobre__text p {
  margin: 14px 0;
  color: var(--gray-500);
}

.sobre__text .section__title {
  margin-top: 12px;
}

.sobre__list {
  margin: 24px 0 30px;
  display: grid;
  gap: 12px;
}

.sobre__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--gray-700);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.15);
}

.sobre__media {
  position: relative;
}

.sobre__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.sobre__badge {
  position: absolute;
  bottom: -26px;
  left: -26px;
  background: var(--navy-800);
  color: var(--white);
  padding: 20px 26px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.sobre__badge strong {
  font-family: var(--font-display);
  font-size: 2rem;
  display: block;
  color: var(--accent);
}

.sobre__badge span {
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--steel-300);
  text-transform: uppercase;
}

/* ---------- Cards (Segmentos) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  background: rgba(47, 128, 237, 0.08);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), var(--navy-600));
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease);
}

.card:hover .card__icon {
  transform: rotate(-6deg) scale(1.05);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.card p {
  color: var(--steel-300);
  font-size: 0.95rem;
}



/* ---------- Produtos em destaque ---------- */
.featured-products {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  overflow: hidden;
}

.featured-products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.featured-products__title {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.045em;
}

.featured-products__controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.featured-products__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--navy-800);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.featured-products__arrow:hover,
.featured-products__arrow:focus-visible {
  transform: translateY(-2px);
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
  outline: none;
}

.featured-products__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin-inline: -4px;
  padding: 4px;
}

.featured-products__viewport::-webkit-scrollbar {
  display: none;
}

.featured-products__track {
  display: flex;
  gap: 22px;
  width: 100%;
}

.featured-product {
  position: relative;
  display: block;
  flex: 0 0 calc(100% - 8px);
  width: calc(100% - 8px);
  min-width: 0;
  height: 500px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.featured-product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.featured-product__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .65s var(--ease);
}

.featured-product:hover .featured-product__image {
  transform: scale(1.055);
}

.featured-product__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 21, 35, .12) 8%, rgba(10, 21, 35, .62) 48%, rgba(10, 21, 35, .96) 100%);
}

.featured-product__content {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 30px 28px;
  color: var(--white);
}

.featured-product__tag {
  width: fit-content;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #dcecff;
}

.featured-product__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.25;
}

.featured-product__description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255,255,255,.82);
  font-size: .92rem;
  line-height: 1.55;
}

.featured-product__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
}

.featured-product__more span {
  transition: transform .25s var(--ease);
}

.featured-product:hover .featured-product__more span {
  transform: translateX(5px);
}

.featured-products__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.featured-products__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: width .25s var(--ease), background .25s var(--ease);
}

.featured-products__dot.is-active {
  width: 28px;
  background: var(--accent);
}

.gallery__item[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.gallery__item:target {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .featured-product { flex-basis: calc(100% - 8px); width: calc(100% - 8px); }
}

@media (max-width: 680px) {
  .featured-products__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .featured-products__controls {
    align-self: flex-end;
  }

  .featured-product {
    flex-basis: calc(100% - 8px);
    width: calc(100% - 8px);
    min-width: 0;
    height: 440px;
  }

  .featured-product__content {
    padding: 26px 22px;
  }
}

/* ---------- Galeria de produtos ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 72px 22px 20px;
  color: var(--white);
  background: linear-gradient(to top, rgba(10, 21, 35, 0.92), transparent);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}

.gallery__item:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}

.gallery__item figcaption h3 {
  color: var(--white);
  font-size: 1.1rem;
}

.gallery__item figcaption p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--metal-accent);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Serviços ---------- */
.servicos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.servico {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}

.servico:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.servico span {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(47, 128, 237, 0.35);
  display: block;
  margin-bottom: 8px;
}

.servico h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.servico p {
  color: var(--steel-300);
  font-size: 0.94rem;
}

/* ---------- Diretoria ---------- */
.diretoria__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 40px;
  justify-content: center;
}

.director {
  text-align: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 30px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.director:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.director__photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--accent);
}

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

.director h3 {
  font-size: 1.3rem;
}

.director__role {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 6px 0 14px;
}

.director p {
  color: var(--gray-500);
  font-size: 0.96rem;
}

/* ---------- Diferenciais ---------- */
.diferenciais__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.diferencial__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--steel-500);
  ;
  margin-bottom: 16px;
  border: 1px solid var(--steel-500);
}

.diferencial__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diferencial strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: block;
}

.diferencial p {
  color: var(--steel-500);
  font-size: 0.95rem;
}

.card-diferencial {
  border: 1px solid var(--steel-500);
  border-radius: var(--radius);
  padding: 10px;
}

/* ---------- Contato ---------- */
.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contato__list {
  margin: 26px 0 30px;
  display: grid;
  gap: 18px;
}

.contato__list li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contato__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-800);
  flex: 0 0 auto;
}

.contato__ico svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.contato__list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy-800);
  font-size: 0.95rem;
}

.contato__list a {
  color: var(--gray-500);
  transition: color 0.25s;
}

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

.contato__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 220px;
  border: 1px solid var(--gray-200);
}

.contato__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contato__form {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-800);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--gray-700);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.15);
}

.field textarea {
  resize: vertical;
}

.field input.invalid,
.field textarea.invalid {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.12);
}

.form__feedback {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 1.2em;
}

.form__feedback.success {
  color: #1a8a4d;
}

.form__feedback.error {
  color: #e05252;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: var(--steel-300);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.95rem;
}

.logo__text--footer {
  color: var(--white);
}

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

.footer__cols h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer__cols a {
  display: block;
  color: var(--steel-300);
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color 0.25s, padding-left 0.25s;
}

.footer__cols a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease);
  animation: floatPulse 2.6s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

@keyframes floatPulse {

  0%,
  100% {
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  }

  50% {
    box-shadow: 0 10px 34px rgba(37, 211, 102, 0.75);
  }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {

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

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

@media (max-width: 1020px) {
  :root {
    --header-h: 64px;
  }

  .topbar {
    max-height: 0;
    opacity: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-900);
    padding: 12px 24px 24px;
    align-items: stretch;
    transform: translateY(-140%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav a:not(.nav__cta)::after {
    display: none;
  }

  .nav__cta {
    margin-top: 14px;
    text-align: center;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .sobre__grid,
  .contato__grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .sobre__media {
    order: -1;
  }

  .sobre__badge {
    left: 16px;
    bottom: -18px;
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 560px) {

  .cards,
  .servicos__grid,
  .diferenciais__grid,
  .gallery,
  .diretoria__grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .container {
    padding: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =========================================
   SOBRE
========================================= */

.sobre {
  padding: 110px 0 0;
  background: #fff;
}

.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 90px;
  align-items: center;
}


/* TEXTO */

.sobre__content {
  max-width: 620px;
}

.sobre .section__title {
  margin-top: 18px;
  margin-bottom: 25px;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.sobre .section__title span {
  color: #287be5;
}

.sobre__intro {
  font-size: 19px;
  line-height: 1.7;
  color: #344b67;
  margin-bottom: 20px;
}

.sobre__content p {
  font-size: 16px;
  line-height: 1.75;
  color: #61738c;
}

.sobre__content strong {
  color: #173555;
}


/* BOTÃO */

.sobre__content .btn {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.sobre__content .btn span {
  font-size: 20px;
  transition: transform .25s ease;
}

.sobre__content .btn:hover span {
  transform: translateX(5px);
}

.diferenciais__header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.diferenciais__header .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
}

.diferenciais__header .section__title {
  margin-bottom: 15px;
}

.diferenciais__header p {
  max-width: 650px;
  margin: 0 auto;
}


/* =========================================
   IMAGEM
========================================= */

.sobre__visual {
  position: relative;
}

.sobre__image {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(18, 48, 80, .18);
}

.sobre__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.sobre__image:hover img {
  transform: scale(1.04);
}

.sobre__image-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(to top,
      rgba(9, 30, 54, .75),
      rgba(9, 30, 54, 0) 55%);
}


/* BADGE 1993 */

.sobre__badge {
  position: absolute;
  left: 30px;
  bottom: 30px;

  display: flex;
  align-items: center;
  gap: 18px;

  color: #fff;
}

.sobre__badge strong {
  font-size: 46px;
  line-height: 1;
  font-weight: 700;
}

.sobre__badge span {
  font-size: 13px;
  line-height: 1.5;
  opacity: .9;
}


/* TITULO */

.diferencial h3 {
  margin: 0 0 12px;

  font-size: 21px;
  font-weight: 700;
}

.diferencial p {
  margin: 0;

  color: var(--steel-500);

  font-size: 14px;
  line-height: 1.65;
}

.btnDiferencial {
  margin-bottom: 70px;
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================
   RESPONSIVO
========================================= */

@media (max-width: 1020px) {

  .sobre {
    padding-top: 80px;
  }

  .sobre__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .sobre__content {
    max-width: none;
  }

  .sobre__image {
    height: 420px;
  }

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

}


@media (max-width: 600px) {

  .sobre {
    padding-top: 65px;
  }

  .sobre__image {
    height: 340px;
  }

  .sobre__stats {
    grid-template-columns: 1fr 1fr;
  }

  .sobre__stat {
    padding: 25px 15px;
  }

  .sobre__stat strong {
    font-size: 32px;
  }


}

/* =========================================
   MODAL
========================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity .3s ease,
    visibility .3s ease;
}

body.modal-open {
  overflow: hidden;
}

/* MODAL ABERTO */

.modal.active {
  visibility: visible;
  opacity: 1;
}


/* OVERLAY */

.modal__overlay {
  position: absolute;
  inset: 0;

  background: rgba(10, 28, 48, .72);

  backdrop-filter: blur(5px);
}


/* =========================================
   CONTEÚDO
========================================= */

.modal__content {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 820px;
  max-height: 90vh;

  display: flex;
  flex-direction: column;

  background: #fff;

  border-radius: 8px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, .25);

  transform: translateY(25px) scale(.97);

  transition:
    transform .3s ease;

  overflow: hidden;
}

.modal.active .modal__content {
  transform: translateY(0) scale(1);
}


/* =========================================
   BOTÃO FECHAR
========================================= */

.modal__close {
  position: absolute;

  top: 20px;
  right: 20px;

  z-index: 2;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: #f1f4f8;

  color: #203c5d;

  font-size: 28px;
  font-weight: 300;

  line-height: 1;

  cursor: pointer;

  transition:
    background .2s ease,
    transform .2s ease;
}

.modal__close:hover {
  background: #e2e8ef;
  transform: rotate(90deg);
}


/* =========================================
   HEADER
========================================= */

.modal__header {
  display: flex;
  align-items: center;

  gap: 22px;

  padding: 40px 70px 30px 45px;

  border-bottom: 1px solid #e7edf3;
}

.modal__header h2 {
  margin: 6px 0 0;

  font-size: 32px;
  line-height: 1.15;

  color: #183652;
}

.modal__icon {
  flex-shrink: 0;

  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #edf5ff;

  color: #287be5;
}

.modal__icon svg {
  width: 29px;
  height: 29px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}


/* =========================================
   BODY
========================================= */

.modal__body {
  padding: 35px 45px;

  overflow-y: auto;
}

.modal__body p {
  margin: 0 0 18px;

  color: #5f7186;

  font-size: 16px;
  line-height: 1.75;
}

.modal__body strong {
  color: #1d3c5b;
}


/* SUBTÍTULO */

.modal__subtitle {
  margin-top: 30px;
  margin-bottom: 18px;

  font-size: 18px;
  font-weight: 700;

  color: #183652;
}


/* =========================================
   LISTA
========================================= */

.modal__list {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 14px;

  padding: 0;
  margin: 0;

  list-style: none;
}

.modal__list li {
  position: relative;

  padding: 18px 20px 18px 42px;

  background: #f7f9fb;

  border: 1px solid #e8edf2;

  border-radius: 5px;

  transition:
    border-color .2s ease,
    transform .2s ease;
}

.modal__list li:hover {
  border-color: #b9d5f4;
  transform: translateY(-2px);
}

.modal__list li::before {
  content: "✓";

  position: absolute;

  left: 17px;
  top: 18px;

  color: #287be5;

  font-weight: 700;
}

.modal__list strong {
  display: block;

  margin-bottom: 5px;

  font-size: 14px;
}

.modal__list span {
  display: block;

  color: #718196;

  font-size: 13px;
  line-height: 1.5;
}


/* =========================================
   FOOTER
========================================= */

.modal__footer {
  display: flex;
  justify-content: flex-end;

  padding: 25px 45px;

  border-top: 1px solid #e7edf3;

  background: #fafbfd;
}

.modal__footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.modal__footer .btn span {
  font-size: 19px;

  transition: transform .2s ease;
}

.modal__footer .btn:hover span {
  transform: translateX(4px);
}


/* =========================================
   RESPONSIVO
========================================= */

@media (max-width: 700px) {

  .modal {
    padding: 15px;
  }

  .modal__content {
    max-height: 94vh;
  }

  .modal__header {
    padding: 30px 55px 25px 25px;

    gap: 15px;
  }

  .modal__header h2 {
    font-size: 24px;
  }

  .modal__icon {
    width: 50px;
    height: 50px;
  }

  .modal__body {
    padding: 25px;
  }

  .modal__list {
    grid-template-columns: 1fr;
  }

  .modal__footer {
    padding: 20px 25px;
  }

  .modal__footer .btn {
    width: 100%;
    justify-content: center;
  }

}

/* =========================================
   CATEGORIAS DO MODAL
========================================= */

.modal__category {
  margin-top: 35px;
}

.modal__category + .modal__category {
  padding-top: 35px;
  border-top: 1px solid #e5ebf1;
}


/* CABEÇALHO DA CATEGORIA */

.modal__category-header {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-bottom: 20px;
}

.modal__category-icon {
  flex-shrink: 0;

  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #edf5ff;

  border-radius: 6px;

  color: #287be5;
}

.modal__category-icon svg {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.modal__category-header h3 {
  margin: 0 0 3px;

  font-size: 19px;
  color: #183652;
}

.modal__category-header p {
  margin: 0;

  font-size: 13px;

  color: #78899c;
}


/* =========================================
   AJUSTE DA LISTA
========================================= */

.modal__category .modal__list {
  margin-top: 0;
}


/* =========================================
   RESPONSIVO
========================================= */

@media (max-width: 700px) {

  .modal__category-header {
    align-items: flex-start;
  }

  .modal__category-icon {
    width: 40px;
    height: 40px;
  }

}

/* ---------- Páginas internas de produtos ---------- */
.product-detail { padding: calc(var(--header-h) + 54px) 0 80px; background: #f7f9fc; min-height: 70vh; }
.product-detail__back { display: inline-flex; gap: 9px; align-items: center; color: var(--accent); font-weight: 700; margin-bottom: 24px; }
.product-detail__heading { max-width: 900px; margin-bottom: 36px; }
.product-detail__heading .eyebrow { color: var(--accent); }
.product-detail__heading h1 { color: var(--navy-900); font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.12; margin: 12px 0 18px; }
.product-detail__heading p { color: var(--gray-600); font-size: 1.08rem; line-height: 1.8; max-width: 820px; }
.product-detail__feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 42px; align-items: center; background: #fff; padding: 26px; border-radius: 22px; box-shadow: var(--shadow-md); margin-bottom: 28px; }
.product-detail__feature img { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; background: #eef1f5; }
.product-detail__feature h2, .product-detail__item h2 { color: var(--navy-900); font-family: var(--font-display); font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.25; margin: 0 0 14px; }
.product-detail__feature p, .product-detail__item p { color: var(--gray-600); line-height: 1.8; }
.product-detail__item { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); gap: 34px; align-items: center; padding: 30px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); margin: 22px 0; scroll-margin-top: 120px; }
.product-detail__item:nth-of-type(even) { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); }
.product-detail__item:nth-of-type(even) img { order: 2; }
.product-detail__item img { width: 100%; max-height: 380px; object-fit: contain; border-radius: 12px; background: #f0f2f5; }
.product-detail__cta { margin-top: 42px; padding: 34px; border-radius: 20px; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.product-detail__cta h2 { color: #fff; margin: 0 0 8px; font-family: var(--font-display); }
.product-detail__cta p { color: var(--steel-300); margin: 0; }
@media (max-width: 760px) {
 .product-detail { padding-top: calc(var(--header-h) + 34px); }
 .product-detail__feature, .product-detail__item, .product-detail__item:nth-of-type(even) { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
 .product-detail__item:nth-of-type(even) img { order: 0; }
 .product-detail__cta { align-items: flex-start; flex-direction: column; padding: 26px; }
 .featured-products__header { align-items: center; flex-direction: row; }
 .featured-products__title { font-size: clamp(2rem, 8vw, 2.8rem); }
}


/* ---------- Galeria de imagens dos produtos ---------- */
.product-gallery__heading {
  margin: 46px 0 18px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}
.product-gallery__subheading {
  margin: 26px 0 14px;
  color: var(--navy-700);
  font-size: 1.05rem;
}
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 0 0 38px;
}
.product-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0;
  background: #f4f6f8;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.product-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s var(--ease);
}
.product-gallery__item:hover img { transform: scale(1.06); }
.product-gallery__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  background: rgba(10,21,35,.78);
  font-size: 1.5rem;
}
.product-detail__feature--text { grid-template-columns: 1fr; }
.product-detail__feature--text > div { max-width: 900px; }

/* Lightbox: imagem ampliada */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 28px;
  background: rgba(3, 9, 17, .94);
}
.image-lightbox.is-open { display: flex; }
.image-lightbox__image {
  max-width: min(92vw, 1500px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .2s ease;
  transform-origin: center center;
}
.image-lightbox__image.is-zoomed {
  max-width: none;
  max-height: none;
  transform: scale(1.8);
  cursor: zoom-out;
}
.image-lightbox__close,
.image-lightbox__zoom {
  position: absolute;
  top: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 1.5rem;
  cursor: pointer;
}
.image-lightbox__close { right: 22px; }
.image-lightbox__zoom { right: 78px; }
.image-lightbox__caption {
  position: absolute;
  left: 20px;
  right: 150px;
  top: 28px;
  color: #fff;
  text-align: center;
  font-weight: 600;
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-gallery__item { aspect-ratio: 1 / 1; }
  .image-lightbox { padding: 72px 10px 20px; }
  .image-lightbox__image { max-width: 96vw; max-height: 82vh; }
}

.product-detail__item { grid-template-columns: 1fr !important; }
.product-detail__item:nth-of-type(even) { grid-template-columns: 1fr !important; }
.product-detail__item .product-gallery { margin-bottom: 0; }


/* ---------- Serviços adicionais ---------- */
.servicos__recuperacao {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.servicos__recuperacao h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.25rem;
}

.servicos__recuperacao p {
  color: var(--steel-300);
  font-size: 0.95rem;
}

.servicos__lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.servicos__lista li {
  position: relative;
  padding-left: 20px;
  color: var(--steel-300);
  font-size: 0.94rem;
}

.servicos__lista li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.servicos__recuperacao .servicos__instalacao {
  margin: 22px 0 0;
  color: var(--white);
}

.modal__list--materials {
  margin-top: 8px;
}

.modal__list--materials li {
  padding-top: 14px;
  padding-bottom: 14px;
}

@media (max-width: 640px) {
  .servicos__lista {
    grid-template-columns: 1fr;
  }

  .servicos__recuperacao {
    padding: 22px;
  }
}


/* Filtros da galeria de produtos */
.product-filters { display:flex; flex-wrap:wrap; align-items:end; gap:14px; margin: 0 0 30px; padding:20px; border:1px solid var(--gray-200); border-radius:var(--radius); background:#f7f9fb; }
.product-filters label { display:flex; flex-direction:column; gap:8px; min-width:220px; flex:1; color:var(--navy-700); font-weight:600; font-size:.9rem; }
.product-filters select { width:100%; min-height:46px; padding:10px 14px; border:1px solid var(--gray-200); border-radius:8px; background:white; color:var(--navy-900); font:inherit; }
.product-filters__clear { border:0; background:transparent; color:var(--navy-700); font:inherit; font-weight:600; padding:12px; cursor:pointer; }
.gallery__item[hidden] { display:none !important; }
.modal__list--product-links a { color:var(--navy-700); font-weight:700; text-decoration:none; }
.modal__list--product-links a:hover { color:var(--accent); text-decoration:underline; }
.bosch-model-links { display:block; margin-top:12px; font-weight:700; }
.bosch-model-links a { color:var(--navy-700); text-decoration:underline; margin-right:5px; }
@media(max-width:640px){.product-filters{align-items:stretch}.product-filters label{min-width:100%}.product-filters .btn{width:100%}}
