/* EnxovalMed — direção "Linho clínico".
   A página é tratada como tecido: base de linho, azul da marca e uma linha de
   costura como único recurso decorativo. O estado base é estático (sem JS ou se
   o GSAP não carregar); a classe html.motion-ok liga a versão cinematográfica. */

:root {
  --linen: #f7f9fb;
  --white: #ffffff;
  --mist: #eef2f7;
  --blue: #0b63ce;
  --blue-bright: #1e90ff;
  --navy: #0a1f3c;
  --slate: #5b6b7f;
  --thread: #c9d6e6;
  --line: rgba(10, 31, 60, 0.12);
  --whatsapp: #1faf5a;

  --display: "Outfit", "Segoe UI", sans-serif;
  --sans: "Figtree", "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3.8rem);
  --step-hero: clamp(2.9rem, 1.2rem + 6.6vw, 7rem);

  --space-section: clamp(88px, 7vw + 48px, 152px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html:not(.motion-ok) {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--linen);
  color: var(--navy);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.15;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.section-pad {
  padding-block: var(--space-section);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Botões ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.button:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.button:active {
  transform: scale(0.98);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: var(--step--1);
}

.button-quiet {
  background: transparent;
  color: var(--blue);
}

.button-quiet:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.button-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.button-light:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: var(--white);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon .icon-dot {
  fill: currentColor;
  stroke: none;
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-h);
  background: rgba(247, 249, 251, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  position: relative;
  display: block;
  width: 132px;
  flex: none;
}

.brand-mark {
  width: 100%;
  transition: opacity 0.4s var(--ease-out);
}

.brand-mark-white {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav > a {
  white-space: nowrap;
}

.main-nav > a:not(.button) {
  position: relative;
  padding-block: 6px;
}

.main-nav > a:not(.button)::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.main-nav > a:not(.button):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

.site-header.on-dark {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  color: var(--white);
}

.site-header.on-dark .brand-mark-color {
  opacity: 0;
}

.site-header.on-dark .brand-mark-white {
  opacity: 1;
}

.site-header.on-dark .button-small {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* ---------- Hero: versão estática (base) ---------- */

.hero {
  padding: calc(var(--header-h) + 56px) 0 72px;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.hero-photo {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% center;
}

.hero-content {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  margin: 0;
}

.hero-shade,
.hero-intro,
.hero-sheet,
.hero-canvas,
.hero-frame {
  display: none;
}

.hero-wordmark {
  width: clamp(170px, 18vw, 260px);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-line {
  display: block;
  perspective: 700px;
}

.hero-line > span {
  display: inline-block;
  transform-origin: 50% 0;
}

.hero-line + .hero-line {
  color: var(--blue);
}

.hero-lead {
  max-width: 44ch;
  margin-top: 24px;
  color: var(--slate);
  font-size: var(--step-1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Linha premium Tesselant ---------- */

.tesselant-home {
  background: #101112;
  color: #f2efe8;
}

.tesselant-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
}

.tesselant-home-image {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.tesselant-home-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.tesselant-home-image:hover img {
  transform: scale(1.025);
}

.tesselant-home-brand {
  display: flex;
  width: fit-content;
  max-width: min(300px, 100%);
  margin-bottom: 26px;
  padding: 16px 20px;
  border: 1px solid rgba(212, 174, 88, 0.5);
  border-radius: 4px;
  background: #101112;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.tesselant-home-brand img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

.tesselant-home-copy h2 {
  max-width: 11ch;
  color: #f2efe8;
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.03;
}

.tesselant-home-copy p {
  max-width: 43ch;
  margin: 20px 0 28px;
  color: rgba(242, 239, 232, 0.76);
  font-size: var(--step-1);
}

.tesselant-home-cta {
  border-color: #d4ae58;
  border-radius: 8px;
  background: #d4ae58;
  color: #171410;
}

.tesselant-home-cta:hover {
  border-color: #f0d89c;
  background: #f0d89c;
  color: #171410;
}

/* ---------- Hero: versão cinematográfica (pin + scrub) ---------- */

.motion-ok .hero {
  padding: 0;
}

.motion-ok .hero-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--navy);
}

.motion-ok .hero-photo {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.motion-ok .hero-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transform-origin: 60% 70%;
}

.motion-ok .hero-shade {
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(180deg, rgba(10, 31, 60, 0.6) 0%, rgba(10, 31, 60, 0) 24%),
    linear-gradient(0deg, rgba(10, 31, 60, 0.72) 0%, rgba(10, 31, 60, 0) 46%);
}

.motion-ok .hero-intro {
  position: absolute;
  left: max(24px, calc((100% - 1240px) / 2));
  right: 24px;
  bottom: clamp(40px, 9vh, 96px);
  display: block;
  color: var(--white);
}

.hero-intro p {
  max-width: 15ch;
  font-family: var(--display);
  font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: var(--step--1);
  font-weight: 500;
  opacity: 0.9;
}

.scroll-cue::before {
  width: 1.5px;
  height: 34px;
  background: linear-gradient(var(--white) 50%, rgba(255, 255, 255, 0.25) 50%);
  background-size: 100% 200%;
  content: "";
  animation: cue 1.8s var(--ease-out) infinite;
}

@keyframes cue {
  from { background-position: 0 100%; }
  to { background-position: 0 -100%; }
}

.motion-ok .hero-sheet {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--linen);
  border-radius: calc(var(--calm, 1) * 48%) calc(var(--calm, 1) * 48%) 0 0 / calc(var(--calm, 1) * 14vh) calc(var(--calm, 1) * 14vh) 0 0;
  transform: translateY(calc((1 - var(--rise, 0)) * 104%));
  will-change: transform;
}

.motion-ok .hero-sheet::after {
  position: absolute;
  inset: 0;
  background-size: 52px auto;
  content: "";
  opacity: calc(var(--pattern, 0) * 0.09);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 95%);
}

.motion-ok .hero.has-webgl .hero-sheet {
  display: none;
}

.motion-ok .hero-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.motion-ok .hero-frame {
  position: absolute;
  z-index: 1;
  top: calc(50% + var(--header-h) / 2);
  right: max(24px, calc((100% - 1240px) / 2));
  display: block;
  width: min(44vw, 640px);
  aspect-ratio: 4 / 3.3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  visibility: hidden;
  transform: translateY(-50%);
  box-shadow: 0 40px 80px -40px rgba(10, 31, 60, 0.45);
}

.motion-ok .hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.motion-ok .hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  padding-top: var(--header-h);
  pointer-events: none;
}

.motion-ok .hero-content > * {
  visibility: hidden;
}

.motion-ok .hero-actions {
  pointer-events: auto;
}

.motion-ok .hero h1 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 1.3rem + 3.6vw, 4.4rem);
}

.motion-ok .hero-lead {
  max-width: 40ch;
}

/* O logotipo aparece centralizado sobre o lençol e dá lugar ao título. */
.motion-ok .hero-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(220px, 30vw, 440px);
  margin: 0;
}

/* ---------- Cuidado ---------- */

.care {
  position: relative;
}

.care-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
}

.care-statement p {
  max-width: 58ch;
  margin-top: 28px;
  color: var(--slate);
  font-size: var(--step-1);
}

.care-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.care-facts div {
  padding: 22px 0 22px;
  border-top: 1.5px dashed var(--thread);
}

.care-facts div:nth-child(odd) {
  padding-right: 24px;
}

.care-facts dt {
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.care-facts dd {
  margin: 10px 0 0;
  color: var(--slate);
  font-size: var(--step--1);
}

/* ---------- Parceria ---------- */

.partner-heading {
  max-width: 62ch;
}

.partner-heading h2 {
  max-width: 18ch;
}

.partner-heading p {
  margin-top: 24px;
  color: var(--slate);
  font-size: var(--step-1);
}

.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
}

.partner-years {
  display: grid;
  gap: 8px;
}

.partner-years strong {
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(4.5rem, 2.5rem + 6vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.partner-years span {
  max-width: 18ch;
  color: var(--slate);
  font-size: var(--step-1);
  line-height: 1.4;
}

.partner-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-pillars li {
  padding-top: 24px;
  border-top: 1.5px dashed var(--thread);
}

.pillar-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partner-pillars h3 {
  margin-top: 18px;
  font-size: var(--step-1);
}

.partner-pillars p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 0.97rem;
}

/* ---------- Produtos ---------- */

.products {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
}

.section-heading > p {
  max-width: 42ch;
  color: var(--slate);
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.filter {
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.filter:hover {
  border-color: var(--navy);
}

.filter.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.product-showcase {
  --product-card-width: clamp(226px, 18.4vw, 282px);
  position: relative;
  margin-top: 32px;
  padding: 42px 0 20px;
  overflow: hidden;
  border: 1px solid rgba(10, 31, 60, 0.08);
  border-radius: 8px;
  background: #f3f5f7;
}

.product-viewport {
  width: 100%;
  overflow: hidden;
  padding: 12px 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.product-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.product-set {
  display: flex;
  flex: none;
  align-items: flex-start;
  gap: 18px;
  width: max-content;
  padding-inline: 9px;
}

.product {
  display: flex;
  width: var(--product-card-width);
  flex: none;
  flex-direction: column;
  scroll-snap-align: start;
}

.product[hidden],
.product-set[hidden] {
  display: none;
}

.product figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
  box-shadow: 0 20px 38px -26px rgba(10, 31, 60, 0.7);
  transform: rotate(-2deg);
  transform-origin: center;
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.product:nth-child(even) figure {
  transform: rotate(2deg);
}

.product figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s var(--ease-out);
}

.product:first-child figure img {
  object-position: center 70%;
}

.product:nth-child(2) figure img {
  object-position: center top;
}

.product:nth-child(3) figure img {
  object-position: 48% center;
}

.product:hover figure img {
  transform: scale(1.035);
}

.product:hover figure {
  box-shadow: 0 24px 44px -25px rgba(10, 31, 60, 0.78);
}

.product-copy {
  display: grid;
  gap: 6px;
  padding: 18px 5px 0;
}

.product-index {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-copy p {
  display: -webkit-box;
  min-height: 4.35em;
  overflow: hidden;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.marquee-toggle {
  position: absolute;
  z-index: 3;
  right: 16px;
  top: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 10px 30px -20px rgba(10, 31, 60, 0.55);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.marquee-toggle:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  transform: scale(1.05);
}

.marquee-toggle[hidden] {
  display: none;
}

.marquee-icon {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.product-showcase.is-static .product-viewport {
  -webkit-mask-image: none;
  mask-image: none;
}

.product-showcase.is-static .product-track {
  width: 100%;
  justify-content: center;
}

/* ---------- Cenas da marca (pin) ---------- */

.brand-scenes {
  background: var(--navy);
  color: var(--white);
}

.scenes-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: var(--space-section);
}

.scenes-media {
  display: grid;
  gap: 16px;
}

.scene {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.scene img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

.hotspot {
  position: absolute;
  z-index: 1;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22);
}

.scenes-copy {
  align-self: center;
}

.scenes-copy h2 {
  max-width: 12ch;
}

.scenes-list {
  display: grid;
  gap: 4px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.scenes-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.2);
  transition: opacity 0.5s var(--ease-out);
}

.scenes-list span {
  color: var(--blue-bright);
  font-family: var(--display);
  font-weight: 700;
}

.scenes-list h3 {
  font-size: var(--step-1);
}

.scenes-list p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.97rem;
}

.motion-ok .scenes-stage {
  height: 100vh;
  height: 100svh;
  align-items: center;
  padding-block: calc(var(--header-h) + 24px) 40px;
}

.motion-ok .scenes-media {
  position: relative;
  display: block;
  height: min(72svh, 640px);
}

/* As cenas ficam empilhadas; a rolagem revela a seguinte de baixo para cima. */
.motion-ok .scene {
  position: absolute;
  inset: 0;
}

.motion-ok .scene img {
  height: 100%;
  aspect-ratio: auto;
  will-change: transform;
}

.motion-ok .scene .hotspot {
  transform: scale(0);
  transition: transform 0.6s 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.motion-ok .scene.is-active .hotspot {
  transform: scale(1);
  animation: pulse 2.4s 1s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.motion-ok .scenes-list li {
  opacity: 0.38;
}

.motion-ok .scenes-list li.is-active {
  opacity: 1;
}

/* ---------- Configurador ---------- */

.configurator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.configurator-intro {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--slate);
  font-size: var(--step-1);
}

.config-name {
  margin-top: 36px;
}

.config-group {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.config-group legend {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0;
  font-weight: 600;
}

.config-group legend span {
  color: var(--slate);
  font-weight: 500;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented label,
.chips label {
  position: relative;
  cursor: pointer;
}

.segmented input,
.chips input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented span,
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: var(--step--1);
  font-weight: 600;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), opacity 0.3s;
}

.segmented label:hover span,
.chips label:hover span {
  border-color: var(--navy);
}

.segmented input:checked + span,
.chips input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.segmented input:focus-visible + span,
.chips input:focus-visible + span {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

.segmented label:has(input:disabled) {
  display: none;
}

.config-hint {
  margin: -4px 0 12px;
  color: var(--slate);
  font-size: var(--step--1);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
}

.swatch:hover {
  transform: scale(1.08);
}

.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--linen), 0 0 0 5px var(--navy);
}

.configurator-controls > .button {
  margin-top: 40px;
}

.config-preview {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
}

.preview-photo,
.preview-fabric {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mist);
  aspect-ratio: 900 / 1150;
}

.preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: opacity 0.35s var(--ease-out);
}

.preview-photo img.is-swapping {
  opacity: 0;
}

.preview-fabric {
  position: relative;
  display: none;
  background: radial-gradient(120% 90% at 30% 10%, #ffffff 0%, var(--mist) 70%);
  perspective: 1200px;
}

.config-preview:not([data-piece="privativo"]) .preview-photo {
  display: none;
}

.config-preview:not([data-piece="privativo"]) .preview-fabric {
  display: block;
}

/* Tecidos claros precisam de um fundo mais fechado para não sumir. */
.config-preview[data-light="true"] .preview-fabric {
  background: radial-gradient(120% 90% at 30% 10%, #e9eef4 0%, #cfd9e5 75%);
}

.preview-fabric::before {
  position: absolute;
  inset: var(--inset, 14% 10%);
  border-radius: var(--shape-radius, 14px);
  background-color: var(--fabric, #1f2a5a);
  background-image: var(--texture, linear-gradient(115deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0.08) 100%));
  box-shadow: 0 30px 60px -30px rgba(10, 31, 60, 0.45), inset 0 0 0 1px rgba(10, 31, 60, 0.06);
  content: "";
  transform: var(--shape-transform, none);
  transition: background-color 0.5s var(--ease-out), inset 0.6s var(--ease-out), border-radius 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fabric-pattern,
.fabric-mark,
.fabric-embroidery {
  position: absolute;
  inset: var(--inset, 14% 10%);
  z-index: 1;
  border-radius: var(--shape-radius, 14px);
  opacity: 0;
  pointer-events: none;
  transform: var(--shape-transform, none);
  transition: opacity 0.45s var(--ease-out), inset 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fabric-pattern {
  background-image: var(--pattern-url, none);
  background-size: 148px auto;
}

.mark-symbol {
  display: block;
  aspect-ratio: 501 / 512;
  background: var(--fabric-ink, #fff);
}

.fabric-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--fabric-ink, #fff);
  font-family: var(--display);
  font-size: clamp(1.1rem, 0.8rem + 1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.fabric-mark .mark-symbol {
  width: 26%;
}

.fabric-embroidery {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--embroidery-pad, 9% 8%);
  color: var(--fabric-ink, #fff);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  align-content: var(--embroidery-align, start);
  justify-content: var(--embroidery-justify, flex-start);
}

.fabric-embroidery .mark-symbol {
  width: 24px;
}

.config-preview[data-finish="estampa"] .fabric-pattern,
.config-preview[data-finish="destaque"] .fabric-mark,
.config-preview[data-finish="bordado"] .fabric-embroidery {
  opacity: 1;
}

.config-preview[data-piece="lencol"] .preview-fabric {
  --inset: 20% 6% 16%;
  --shape-radius: 10px;
  --shape-transform: rotateX(28deg);
}

.config-preview[data-piece="fronha"] .preview-fabric {
  --inset: 30% 12%;
  --shape-radius: 26% / 34%;
}

.config-preview[data-piece="toalha"] .preview-fabric {
  --inset: 24% 16%;
  --shape-radius: 12px;
  --texture:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0.1) 72%, rgba(0, 0, 0, 0.1) 82%, rgba(0, 0, 0, 0) 82%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.6px);
  --embroidery-pad: 0 0 8% 0;
  --embroidery-justify: center;
}

.config-preview[data-piece="toalha"] .fabric-embroidery {
  align-items: flex-end;
}

.preview-fabric::before {
  background-size: auto, 6px 6px;
}

.config-preview figcaption {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.config-preview figcaption span {
  color: var(--slate);
  font-size: var(--step--1);
}

/* ---------- Por que ---------- */

.why {
  background: var(--white);
}

.why-title {
  max-width: 14ch;
}

.why-rows {
  display: grid;
  gap: clamp(56px, 7vw, 112px);
  margin-top: clamp(48px, 6vw, 88px);
}

.why-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.why-row:nth-child(even) .why-media {
  order: 2;
}

.why-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10.5;
  background: var(--mist);
}

.why-media img {
  position: absolute;
  top: -18%;
  left: 0;
  width: 100%;
  height: 136%;
  object-fit: cover;
}

/* Mantém a profissional e o detalhe da costura dentro do enquadramento. */
.why-media-fabricacao img {
  object-position: 62% center;
}

.why-copy p {
  max-width: 42ch;
  margin-top: 16px;
  color: var(--slate);
  font-size: var(--step-1);
}

/* ---------- Processo ---------- */

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.process-heading {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.process-heading p {
  max-width: 34ch;
  margin-top: 20px;
  color: var(--slate);
  font-size: var(--step-1);
}

.process-track {
  position: relative;
  padding-left: 72px;
}

.stitch,
.stitch-thread {
  position: absolute;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--thread) 0 9px, transparent 9px 16px);
}

.stitch {
  top: 20px;
  bottom: 20px;
  left: 21px;
}

.stitch-thread {
  inset: 0;
  background: repeating-linear-gradient(180deg, var(--blue) 0 9px, transparent 9px 16px);
  clip-path: inset(0 0 calc((1 - var(--p, 1)) * 100%) 0);
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  padding: 0 0 clamp(40px, 5vw, 64px);
}

.process-list li > span {
  position: absolute;
  top: 0;
  left: -72px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--thread);
  border-radius: 50%;
  background: var(--linen);
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 700;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.process-list li.is-active > span {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.process-list h3 {
  padding-top: 6px;
}

.process-list p {
  max-width: 46ch;
  margin-top: 10px;
  color: var(--slate);
}

/* ---------- Gestão ---------- */

.management {
  background: var(--navy);
  color: var(--white);
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.management-copy > p {
  max-width: 50ch;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--step-1);
}

.management-points {
  display: grid;
  gap: 0;
  margin: 32px 0 36px;
  padding: 0;
  list-style: none;
}

.management-points li {
  padding: 14px 0;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.dashboard {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.dashboard-top,
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-top > div {
  display: grid;
}

.dashboard-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--step--1);
}

.dashboard-top strong {
  font-family: var(--display);
  font-size: var(--step-2);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.live-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  content: "";
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.dashboard-metrics article {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-metrics span,
.dashboard-metrics small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.dashboard-metrics strong {
  font-size: 1.05rem;
}

.dashboard-chart {
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  font-size: var(--step--1);
}

.chart-head small {
  color: rgba(255, 255, 255, 0.55);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  margin-top: 18px;
}

.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: rgba(30, 144, 255, 0.45);
  transform-origin: bottom;
}

.bars i:nth-child(4),
.bars i:nth-child(6) {
  background: var(--blue-bright);
}

/* ---------- Região ---------- */

.region-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.region-copy p {
  max-width: 46ch;
  margin-top: 24px;
  color: var(--slate);
  font-size: var(--step-1);
}

.region-map {
  justify-self: center;
  width: min(100%, 540px);
}

.region-map svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.region-map .uf {
  fill: #dce5f0;
  stroke: var(--linen);
  stroke-width: 0.8;
  transition: fill 0.3s;
}

.region-map .uf-ne {
  fill: #a9c7ee;
}

.region-map .uf-served {
  fill: var(--blue);
}

.region-map .uf-served:hover {
  fill: var(--navy);
}

.region-map .recife-dot {
  fill: var(--white);
  stroke: var(--navy);
  stroke-width: 2;
}

.region-map .recife-pulse {
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: recife 2.4s ease-out infinite;
}

.region-map .recife-label {
  fill: var(--navy);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
}

.region-map {
  padding-right: 110px;
}

@media (max-width: 600px) {
  .region-map {
    padding-right: 96px;
  }
}

@keyframes recife {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(3.2); }
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq-heading p {
  max-width: 40ch;
  margin-top: 20px;
  color: var(--slate);
}

.faq-list details {
  border-top: 1.5px dashed var(--thread);
}

.faq-list details:last-child {
  border-bottom: 1.5px dashed var(--thread);
}

.faq-list summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat;
  content: "";
  transition: transform 0.35s var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 60ch;
  padding: 0 0 24px;
  color: var(--slate);
}

/* ---------- Contato ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.contact-intro > p {
  max-width: 44ch;
  margin-top: 20px;
  color: var(--slate);
  font-size: var(--step-1);
}

.contact-channels {
  display: grid;
  margin-top: 36px;
}

.contact-channels a {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-top: 1.5px dashed var(--thread);
  transition: color 0.3s var(--ease-out);
}

.contact-channels a:hover {
  color: var(--blue);
}

.contact-channels span {
  color: var(--slate);
  font-size: var(--step--1);
}

.contact-channels strong {
  font-family: var(--display);
  font-size: var(--step-1);
  overflow-wrap: anywhere;
}

.lead-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 40px 80px -48px rgba(10, 31, 60, 0.35);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--linen);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}

.field [aria-invalid="true"] {
  border-color: #c2261d;
}

.field-error {
  min-height: 0;
  color: #c2261d;
  font-size: 0.82rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.chips legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: var(--step--1);
  font-weight: 600;
}

.chips span {
  min-height: 40px;
  background: var(--linen);
}

.form-submit {
  width: 100%;
}

.form-status {
  color: var(--slate);
  font-size: var(--step--1);
}

.form-status a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Instagram + WhatsApp ---------- */

.social {
  background: var(--white);
}

.social-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.social-copy p,
.social-whatsapp p {
  margin: 14px 0 24px;
  color: var(--slate);
}

.social-copy h2 {
  font-size: var(--step-3);
}

.social-feed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-feed a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

.social-feed img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.social-feed a:hover img {
  transform: scale(1.06);
}

.social-whatsapp {
  padding-left: clamp(0px, 3vw, 40px);
  border-left: 1.5px dashed var(--thread);
}

/* ---------- Rodapé ---------- */

.site-footer {
  padding: 80px 0 32px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--step--1);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
}

.footer-main > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-brand img {
  width: 160px;
}

.footer-brand p {
  margin-top: 12px;
}

.footer-label {
  margin-bottom: 4px;
  color: var(--white);
  font-weight: 600;
}

.footer-main a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
}

/* ---------- WhatsApp flutuante ---------- */

.floating-whatsapp {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 16px 36px -16px rgba(10, 31, 60, 0.6);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.floating-whatsapp svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.floating-whatsapp .icon-handset {
  fill: currentColor;
  stroke: none;
}

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

.floating-whatsapp.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* ---------- Títulos que se desdobram linha a linha ---------- */

.motion-ok main section:not(.hero) h2 {
  perspective: 900px;
}

.split-line {
  transform-origin: 50% 0;
}

/* ---------- Responsivo ---------- */

@media (max-width: 1180px) {
  .main-nav {
    gap: 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 1080px) {
  .product {
    grid-column: span 6;
  }

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

  .social-feed {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: calc(100% - 40px);
  }

  .product-viewport {
    overflow-x: auto;
    padding-bottom: 22px;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .product-track,
  .product-showcase.is-static .product-track {
    width: max-content;
    justify-content: flex-start;
    transform: none !important;
  }

  .product-set {
    gap: 14px;
    padding-inline: 16px;
  }

  [data-marquee-clone],
  .marquee-toggle {
    display: none !important;
  }

  .product {
    width: min(72vw, 280px);
  }

  .menu-toggle {
    position: relative;
    z-index: 60;
    display: grid;
    align-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 12px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.35s var(--ease-out), opacity 0.2s;
  }

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

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

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

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 96px 28px 40px;
    background: var(--linen);
    color: var(--navy);
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  }

  body.menu-open .main-nav {
    opacity: 1;
    visibility: visible;
  }

  body.menu-open .site-header {
    color: var(--navy);
  }

  body.menu-open .site-header .brand-mark-color {
    opacity: 1;
  }

  body.menu-open .site-header .brand-mark-white {
    opacity: 0;
  }

  .main-nav .button-small {
    margin-top: 12px;
    font-family: var(--sans);
    font-size: 1rem;
  }

  .hero-stage,
  .tesselant-home-grid,
  .care-grid,
  .partner-grid,
  .section-heading,
  .configurator-grid,
  .why-row,
  .process-grid,
  .management-grid,
  .region-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .hero-content {
    grid-column: 1;
  }

  .tesselant-home-grid {
    gap: 32px;
  }

  .tesselant-home-brand {
    width: 100%;
    max-width: none;
    margin-bottom: 22px;
    padding: 14px 16px;
  }

  .tesselant-home-brand img {
    width: min(255px, 82%);
  }

  .hero-photo {
    grid-row: 2;
  }

  .why-row:nth-child(even) .why-media {
    order: 0;
  }

  .process-heading,
  .contact-intro {
    position: static;
  }

  .configurator-grid {
    display: flex;
    flex-direction: column;
  }

  .configurator-controls {
    display: contents;
  }

  .configurator-controls > h2 {
    order: 1;
  }

  .configurator-controls > .configurator-intro {
    order: 2;
    margin-top: 10px;
  }

  .configurator-controls > .config-group-piece,
  .configurator-controls > .config-group:nth-of-type(1) {
    order: 3;
    margin-top: 24px;
  }

  .configurator-controls > .config-group-color,
  .configurator-controls > .config-group:nth-of-type(2) {
    order: 4;
    margin-top: 20px;
    margin-bottom: 6px;
  }

  /* Preview do Conjunto/Peça posicionado IMEDIATAMENTE abaixo do seletor de cor no celular */
  .config-preview {
    order: 5;
    position: static;
    grid-row: auto;
    width: min(84%, 320px);
    margin: 14px auto 20px;
    justify-self: center;
    box-shadow: 0 14px 32px -10px rgba(10, 31, 60, 0.15);
  }

  .configurator-controls > .config-group-finish,
  .configurator-controls > .config-group:nth-of-type(3) {
    order: 6;
    margin-top: 16px;
  }

  .configurator-controls > .config-name {
    order: 7;
    margin-top: 20px;
  }

  .configurator-controls > [data-config-cta],
  .configurator-controls > .button {
    order: 8;
    margin-top: 28px;
    width: 100%;
    text-align: center;
  }

  .scenes-stage {
    grid-template-columns: 1fr;
  }

  .motion-ok .scenes-stage {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 20px;
    padding-block: calc(var(--header-h) + 12px) 24px;
  }

  .motion-ok .scenes-media {
    height: 100%;
    min-height: 0;
  }

  .motion-ok .scenes-copy h2 {
    font-size: var(--step-3);
  }

  .motion-ok .scenes-list {
    margin-top: 12px;
  }

  .motion-ok .scenes-list li {
    display: none;
  }

  .motion-ok .scenes-list li.is-active {
    display: grid;
  }

  .social-whatsapp {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .partner-pillars,
  .field-row,
  .care-facts {
    grid-template-columns: 1fr;
  }

  .care-facts div:nth-child(odd) {
    padding-right: 0;
  }

  .product {
    grid-column: span 12;
  }

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

  .social-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .motion-ok .hero-wordmark {
    width: 220px;
  }

  .motion-ok .hero-actions .button {
    flex: 1 1 100%;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    padding: 0 15px;
  }

  .floating-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .process-track {
    padding-left: 60px;
  }

  .process-list li > span {
    left: -60px;
  }

  .stitch {
    left: 21px;
  }
}

/* ==========================================================================
   Página de Cotação Interativa B2B (dist/cotacao.html)
   ========================================================================== */

.page-quote {
  background-color: var(--linen, #f7f9fb);
  color: var(--ink, #0a1f3c);
}

.quote-hero {
  padding-top: calc(var(--header-height, 76px) + 40px);
  padding-bottom: 24px;
  background: linear-gradient(180deg, rgba(11, 99, 206, 0.05) 0%, rgba(247, 249, 251, 0) 100%);
}

.quote-hero h1 {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink, #0a1f3c);
  margin: 12px 0 16px;
}

.quote-hero .lead-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted, #4a5d78);
  max-width: 820px;
}

/* Galeria de Acabamentos */
.finishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.finish-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(11, 99, 206, 0.12);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10, 31, 60, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.finish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10, 31, 60, 0.08);
}

.finish-media {
  height: 160px;
  background: linear-gradient(135deg, #0a1f3c 0%, #0b63ce 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 16px;
}

.finish-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.finish-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  opacity: 0.9;
}

.finish-visual span {
  font-size: 0.8125rem;
  font-weight: 500;
  max-width: 200px;
}

.finish-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.finish-body h3 {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink, #0a1f3c);
}

.finish-body p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted, #4a5d78);
  flex-grow: 1;
}

.finish-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary, #0b63ce);
  background: rgba(11, 99, 206, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  margin-top: 8px;
}

/* Layout do Montador */
.builder-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 992px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }
}

.builder-header h2 {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.filter-chip {
  background: #ffffff;
  border: 1px solid rgba(10, 31, 60, 0.15);
  color: var(--ink, #0a1f3c);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--primary, #0b63ce);
  color: var(--primary, #0b63ce);
}

.filter-chip.is-active {
  background: var(--primary, #0b63ce);
  color: #ffffff;
  border-color: var(--primary, #0b63ce);
  box-shadow: 0 4px 12px rgba(11, 99, 206, 0.25);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.catalog-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(10, 31, 60, 0.1);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card:hover {
  border-color: var(--primary, #0b63ce);
  box-shadow: 0 6px 18px rgba(10, 31, 60, 0.06);
}

.catalog-card-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary, #0b63ce);
  background: rgba(11, 99, 206, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
}

.catalog-card-header h4 {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.catalog-card-header p {
  font-size: 0.8125rem;
  color: var(--text-muted, #4a5d78);
  line-height: 1.45;
}

.catalog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(10, 31, 60, 0.06);
  padding-top: 12px;
}

.catalog-card-meta span {
  font-size: 0.75rem;
  color: var(--text-muted, #4a5d78);
  font-weight: 500;
}

/* Configurador Inline do Item */
.item-config-box {
  background: #ffffff;
  border: 2px solid var(--primary, #0b63ce);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 12px 32px rgba(11, 99, 206, 0.12);
}

.config-box-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(10, 31, 60, 0.08);
  padding-bottom: 12px;
}

.config-box-title h3 {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 4px;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted, #4a5d78);
  cursor: pointer;
  line-height: 1;
}

.config-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.field-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink, #0a1f3c);
}

.color-swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.swatch-btn:hover {
  transform: scale(1.15);
}

.swatch-btn.is-active {
  box-shadow: 0 0 0 3px var(--primary, #0b63ce);
  transform: scale(1.1);
}

.radio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-chip {
  cursor: pointer;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-chip span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(10, 31, 60, 0.15);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #ffffff;
  transition: all 0.15s ease;
}

.radio-chip input:checked + span {
  background: rgba(11, 99, 206, 0.1);
  border-color: var(--primary, #0b63ce);
  color: var(--primary, #0b63ce);
}

.quantity-controller {
  display: flex;
  align-items: center;
  max-width: 160px;
  border: 1px solid rgba(10, 31, 60, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.btn-qty {
  background: rgba(10, 31, 60, 0.05);
  border: none;
  width: 44px;
  height: 40px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-qty:hover {
  background: rgba(10, 31, 60, 0.1);
}

.qty-input {
  width: 72px;
  height: 40px;
  text-align: center;
  border: none;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink, #0a1f3c);
}

.qty-shortcuts {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.75rem;
}

.btn-shortcut {
  background: rgba(11, 99, 206, 0.08);
  border: none;
  color: var(--primary, #0b63ce);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-shortcut:hover {
  background: rgba(11, 99, 206, 0.18);
}

.config-box-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-success {
  background-color: #2e9a4e !important;
  border-color: #2e9a4e !important;
}

.config-box-hint {
  font-size: 0.8125rem;
  color: var(--text-muted, #4a5d78);
}

/* Painel de Carrinho Fixo */
.cart-sticky-panel {
  position: sticky;
  top: 96px;
  background: #ffffff;
  border: 1px solid rgba(10, 31, 60, 0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(10, 31, 60, 0.05);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(10, 31, 60, 0.06);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.cart-head h2 {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.cart-total-badge {
  background: rgba(11, 99, 206, 0.1);
  color: var(--primary, #0b63ce);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.cart-empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted, #4a5d78);
}

.cart-empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.cart-empty-state p {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink, #0a1f3c);
}

.cart-empty-state span {
  font-size: 0.8125rem;
}

.cart-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(10, 31, 60, 0.02);
  border: 1px solid rgba(10, 31, 60, 0.06);
  border-radius: 10px;
}

.item-swatch-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.item-details {
  flex-grow: 1;
}

.item-details strong {
  font-size: 0.875rem;
  display: block;
}

.item-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #4a5d78);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.item-sub em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink, #0a1f3c);
}

.item-qty-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.qty-pill {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary, #0b63ce);
  background: rgba(11, 99, 206, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
}

.btn-group-mini {
  display: flex;
  gap: 4px;
}

.btn-mini {
  background: none;
  border: 1px solid rgba(10, 31, 60, 0.15);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-mini:hover {
  background: rgba(10, 31, 60, 0.05);
}

.btn-remove:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Formulário de Instituição */
.institution-form-box {
  margin-top: 24px;
  border-top: 2px solid rgba(10, 31, 60, 0.06);
  padding-top: 18px;
}

.institution-form-box h3 {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-desc {
  font-size: 0.8125rem;
  color: var(--text-muted, #4a5d78);
  margin-bottom: 16px;
}

.cnpj-input-group {
  display: flex;
  gap: 8px;
}

.cnpj-input-group input {
  flex-grow: 1;
}

.field-feedback {
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
}

.field-feedback.is-loading {
  color: var(--primary, #0b63ce);
}

.field-feedback.is-success {
  color: #2e9a4e;
  font-weight: 600;
}

.field-feedback.is-error {
  color: #dc2626;
  font-weight: 600;
}

.field-feedback.is-warning {
  color: #d97706;
}

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

.required {
  color: #dc2626;
}

.submit-action {
  margin-top: 20px;
}

.button-send-quote {
  font-size: 1rem;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-help {
  font-size: 0.75rem;
  color: var(--text-muted, #4a5d78);
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

.quote-success-banner {
  margin-top: 16px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  color: #166534;
}

.quote-success-banner h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.quote-success-banner p {
  font-size: 0.8125rem;
  margin-bottom: 12px;
}

.backup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button-outline {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}


