:root {
  --bg: #F5F2EC;
  --text: #23252A;
  --link: #8A6A22;
  --dark-bg: #23252A;
  --dark-bg-2: #1A1B1E;
  --dark-panel: #26282E;
  --dark-border: #3A3D44;
  --dark-stripe-a: #2C2E34;
  --dark-stripe-b: #303238;
  --cream: #E8E2D6;
  --gold: #C9A24B;
  --gold-light: #D9B45F;
  --gold-dark: #A8802F;
  --muted-1: #CFC9BD;
  --muted-2: #9C968A;
  --muted-3: #8D8779;
  --muted-4: #7E786C;
  --card-bg: #FBF9F5;
  --border: #E2DCD1;
  --body-muted: #5C5A55;
  --nav-text: #3A3D44;
  --stripe-light-a: #EFEAE1;
  --stripe-light-b: #F7F4EE;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Karla, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--text); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

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

h1, h2, h3 {
  font-family: Archivo, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 242, 236, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { height: 58px; width: auto; }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-text);
}
.main-nav a {
  color: var(--nav-text);
  position: relative;
  padding-bottom: 4px;
  transition: color 200ms ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold-dark);
  transition: width 250ms ease;
}
.main-nav a:hover { color: var(--gold-dark); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--text); }
.btn-header {
  background: var(--dark-bg);
  color: var(--bg);
  font-family: Archivo, sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 2px;
  white-space: nowrap;
}
.btn-header:hover { background: var(--gold); color: var(--dark-bg-2); }
.main-nav .nav-cta-mobile { display: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 260ms ease, opacity 200ms ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #1A1B1E;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 2px;
}
.btn-gold:hover { background: var(--cream); color: #1A1B1E; }

.btn-outline-light {
  display: inline-block;
  border: 1px solid rgba(232, 226, 214, 0.35);
  color: var(--bg);
  font-family: Archivo, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 2px;
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark {
  display: inline-block;
  background: var(--dark-bg);
  color: var(--bg);
  font-family: Archivo, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 30px;
  border-radius: 2px;
}
.btn-dark:hover { background: var(--gold); color: #1A1B1E; }

.link-underline {
  font-family: Archivo, sans-serif;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  color: var(--text);
}

/* ---------- Hero / carousel ---------- */
.hero {
  background: var(--dark-bg);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero .wrap { max-width: none; overflow: hidden; padding: 0; }
.hero-track {
  display: flex;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
  min-width: 100%;
  padding: 40px 24px 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 40px;
  align-items: center;
}
.hero-slide.reverse .hero-copy { order: 2; }
.hero-slide.reverse .hero-media { order: 1; }
.hero-media { overflow: hidden; border: 1px solid var(--dark-border); width: 100%; max-height: 72vh; }

.hero-copy h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.03;
  font-weight: 800;
  margin-top: 18px;
  text-wrap: balance;
}
.hero-copy h2 {
  font-weight: 800;
  text-wrap: balance;
  margin-top: 18px;
}
.hero-copy p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted-1);
  max-width: 30em;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.hero-copy .fine-print {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin: 18px 0 0;
}
.hero-copy .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.media-placeholder {
  background: repeating-linear-gradient(135deg, var(--dark-stripe-a) 0 12px, var(--dark-stripe-b) 12px 24px);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.media-placeholder span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted-3);
  text-transform: uppercase;
}
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-5-4 { aspect-ratio: 5 / 4; }

.hero-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-height: 72vh;
}
.hero-grid-2x2 .media-placeholder { padding: 16px; }
.hero-grid-2x2 .media-placeholder span { font-size: 11px; }

.hero-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px 28px;
}
.hero-controls .wrap { padding: 0; }
.carousel-btn {
  background: transparent;
  border: 1px solid rgba(232, 226, 214, 0.3);
  color: var(--bg);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 220ms ease, border-color 220ms ease, color 220ms ease, background 220ms ease;
}
.carousel-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 75, 0.12);
  transform: scale(1.1);
}
.dots {
  display: flex;
  gap: 10px;
  margin-left: 10px;
}
.dot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted-4);
  padding: 4px 2px;
  cursor: pointer;
  min-width: 32px;
}
.dot.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Generic sections ---------- */
section { padding: 84px 24px; }
.section-tight { padding: 84px 24px 20px; }
.section-bordered {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.section-bordered .wrap { padding: 84px 24px; }
.section-bordered.tight .wrap { padding: 76px 24px; }

section h2 {
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.12;
  font-weight: 700;
}
section > p, .section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-muted);
  margin: 18px 0 0;
  text-wrap: pretty;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
}

/* Step grid (01-04) */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.step-cell {
  background: var(--card-bg);
  padding: 32px 26px;
  transition: transform 280ms ease, box-shadow 280ms ease;
  position: relative;
}
.step-cell:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(35, 37, 42, 0.14);
  z-index: 1;
}
.step-cell .num {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--gold-dark);
  margin-top: 16px;
}
.step-cell h3 { font-size: 21px; font-weight: 700; margin: 18px 0 8px; }
.step-cell p { margin: 0; color: var(--body-muted); line-height: 1.55; }

/* Reusable icon badge */
.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-badge svg { width: 22px; height: 22px; }

/* Publicos cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 920px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .card-grid { grid-template-columns: 1fr; }
}
.public-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.public-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms ease;
}
.public-card:hover::before { transform: scaleX(1); }
.public-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(35, 37, 42, 0.12);
}
.public-media {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--stripe-light-a) 0 10px, var(--stripe-light-b) 10px 20px);
  overflow: hidden;
}
.public-media img, .product-media img {
  transition: transform 450ms ease;
}
.public-card:hover .public-media img,
.product-card:hover .product-media img {
  transform: scale(1.08);
}
.public-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.public-card h3 { font-size: 20px; font-weight: 700; margin: 0; }
.public-card p { margin: 0; color: var(--body-muted); line-height: 1.55; font-size: 15px; }

/* Produtos */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(35, 37, 42, 0.14);
}
.product-media {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--stripe-light-a) 0 10px, var(--stripe-light-b) 10px 20px);
  overflow: hidden;
}
.product-media span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #8C8578;
  text-transform: uppercase;
}
.product-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-body h3 { font-size: 20px; font-weight: 700; }
.color-dots { display: flex; align-items: center; gap: 6px; margin: -2px 0 2px; }
.color-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(35, 37, 42, 0.18);
  display: inline-block;
}
.product-body p { margin: 0; color: var(--body-muted); line-height: 1.5; font-size: 15px; flex: 1; }
.product-body a {
  font-family: Archivo, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border-bottom: 2px solid var(--gold);
  align-self: flex-start;
  padding-bottom: 3px;
  margin-top: 4px;
}

/* Depoimentos */
.testimonials-section {
  background: var(--dark-bg);
  color: var(--bg);
  padding: 76px 0;
}
.testimonials-section > .wrap { padding-bottom: 40px; }
.testimonial-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.testimonial-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 24px;
  animation: testimonialScroll 46s linear infinite;
}
.testimonial-marquee:hover .testimonial-track {
  animation-play-state: paused;
}
.testimonial-card {
  flex: 0 0 300px;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background-color 260ms ease;
}
.testimonial-card:hover {
  position: relative;
  z-index: 1;
  transform: scale(1.05);
  border-color: var(--gold);
  background: var(--dark-stripe-b);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.testimonial-card:hover .testimonial-quote { color: var(--cream); }
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--dark-stripe-a);
  color: var(--muted-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-name {
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--bg);
}
.testimonial-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.testimonial-quote {
  margin: 0;
  color: var(--muted-1);
  line-height: 1.55;
  font-size: 15px;
  font-style: italic;
}
@keyframes testimonialScroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
}

/* Como funciona */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.process-step {
  border-top: 3px solid var(--border);
  background: var(--card-bg);
  padding: 22px 20px 26px;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(35, 37, 42, 0.14);
  border-top-color: var(--gold);
}
.process-step .label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gold-dark); }
.process-num {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--gold-dark);
  margin-top: 14px;
}
.process-step h3 { font-size: 20px; font-weight: 700; margin: 10px 0 8px; }
.process-step p { margin: 0; color: var(--body-muted); line-height: 1.55; }

/* Criacao (dark, 2-col) */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.split h2 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.1; font-weight: 700; margin-top: 14px; }
.split p { font-size: 18px; line-height: 1.6; margin: 18px 0 0; max-width: 34em; text-wrap: pretty; }
.criacao-section { background: var(--dark-bg); color: var(--bg); }
.criacao-section p { color: var(--muted-1); }
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted-1);
}
.bullet-list li { border-left: 2px solid var(--gold); padding-left: 14px; }
.bullet-list.dark-text { color: var(--nav-text); }

.criacao-media { display: grid; gap: 20px; }
.dark-panel {
  border: 1px solid var(--dark-border);
  padding: 28px 26px;
  background: var(--dark-panel);
}
.dark-panel h3 { font-size: 24px; font-weight: 700; margin: 0 0 10px; }
.dark-panel p { margin: 0 0 18px; color: var(--muted-1); line-height: 1.55; }
.dark-panel a {
  font-family: Archivo, sans-serif;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 2px solid rgba(201, 162, 75, 0.5);
  padding-bottom: 3px;
}

/* Tecnica DTF */
.tecnica-section .split { gap: 56px; }
.feature-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 28px;
}
.feature-grid-2 div { background: var(--card-bg); padding: 20px; }

/* Agilidade + condicoes */
.info-card {
  border: 1px solid var(--border);
  background: #FFFFFF;
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(35, 37, 42, 0.1);
  border-color: var(--gold);
}
.info-card .icon-badge { width: 38px; height: 38px; }
.info-card .icon-badge svg { width: 18px; height: 18px; }
.info-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.portfolio-item {
  aspect-ratio: 1;
  background: repeating-linear-gradient(135deg, var(--stripe-light-a) 0 10px, var(--stripe-light-b) 10px 20px);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(35, 37, 42, 0.14);
}
.portfolio-item span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #8C8578;
  text-transform: uppercase;
}

/* Sobre */
.sobre-section { background: var(--card-bg); border-top: 1px solid var(--border); }
.sobre-section p { line-height: 1.65; }

/* Final CTA */
.final-cta { background: var(--dark-bg); color: var(--bg); }
.final-cta .wrap { max-width: 900px; padding: 96px 24px; text-align: center; }
.final-cta h2 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.final-cta p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted-1);
  margin: 20px auto 0;
  max-width: 38em;
  text-wrap: pretty;
}
.final-cta .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}
.final-cta .fine-print {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin: 22px 0 0;
}

/* Footer */
.site-footer { background: var(--dark-bg-2); color: var(--muted-1); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding: 62px 24px 30px;
}
.footer-grid img { height: 64px; width: auto; filter: invert(1) brightness(1.6); }
.footer-grid p { margin: 18px 0 0; line-height: 1.6; max-width: 26em; }
.footer-heading {
  font-family: Archivo, sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.footer-col p { margin: 0 0 8px; }
.footer-col a { color: var(--cream); }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { color: var(--muted-1); }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  border-top: 1px solid var(--dark-stripe-a);
  font-size: 13px;
  color: var(--muted-4);
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  background: var(--dark-bg);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(26, 27, 30, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: waBounce 5s ease-in-out infinite;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--gold);
  z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}
.wa-float:hover { background: var(--gold); color: #1A1B1E; }
.wa-float:hover::before { animation-play-state: paused; opacity: 0; }
.wa-float .wa-icon { flex-shrink: 0; }

.wa-bubble {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 88px;
  z-index: 59;
  width: auto;
  max-width: 300px;
  margin-left: auto;
  background: rgba(245, 242, 236, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 30px 14px 16px;
  box-shadow: 0 14px 30px rgba(26, 27, 30, 0.2);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 320ms ease, transform 320ms ease;
}
.wa-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: rgba(245, 242, 236, 0.7);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.wa-bubble-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.wa-bubble-link:hover { color: var(--gold-dark); }
.wa-bubble-avatar {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
}
.wa-bubble-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wa-bubble-text {
  display: block;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
.wa-bubble-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--muted-4);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.wa-bubble-close:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .wa-bubble { transition: none; }
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.45; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
@keyframes waBounce {
  0%, 85%, 100% { transform: translateY(0); }
  90% { transform: translateY(-10px); }
  95% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float::before { animation: none; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Mobile (<=768px) — tablet/large phone
   ========================================================================== */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }

  /* Header / hamburger menu */
  .site-header .wrap { padding: 12px 20px; }
  .logo-link img { height: 46px; }
  .btn-header { display: none; }
  .menu-toggle { display: flex; }
  .main-nav .nav-cta-mobile {
    display: inline-block;
    margin-top: 24px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    padding: 90px 28px 40px;
    box-shadow: -12px 0 40px rgba(26, 27, 30, 0.18);
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 45;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.is-visible { display: flex; }
  .main-nav.is-visible.is-open { transform: translateX(0); }
  .main-nav a {
    width: 100%;
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--gold-dark); }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(26, 27, 30, 0.45);
    z-index: 44;
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease;
  }
  .nav-overlay.is-open { opacity: 1; pointer-events: auto; }

  /* Section rhythm */
  section { padding: 56px 20px; }
  .section-tight { padding: 56px 20px 12px; }
  .section-bordered .wrap { padding: 56px 20px; }
  section h2 { font-size: clamp(25px, 6vw, 32px); }

  /* Hero */
  .hero .wrap { padding: 0; }
  .hero-slide { padding: 28px 20px 24px; gap: 28px; }
  .hero-media { max-height: 38vh; }
  .hero-grid-2x2 { max-height: 34vh; }
  .hero-copy h1 { font-size: clamp(30px, 9vw, 42px); }
  .hero-copy p { font-size: 16px; }
  .hero-copy .cta-row a { flex: 1 1 auto; text-align: center; }

  .hero-controls { gap: 10px; padding: 0 20px 20px; flex-wrap: wrap; }
  .carousel-btn { width: 38px; height: 38px; font-size: 14px; }
  .dots { gap: 4px; margin-left: 4px; }
  .dot { min-width: 26px; padding: 10px 2px; font-size: 11px; }

  /* Grids that need to go single/adjusted on mobile */
  .step-grid { grid-template-columns: 1fr; }
  .card-grid { gap: 16px; }
  .produtos-grid { gap: 16px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .info-grid-2 { grid-template-columns: 1fr; gap: 10px; }
  .feature-grid-2 { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-grid { gap: 32px; }

  .split { gap: 32px; }

  /* Touch targets */
  .btn-gold, .btn-outline-light, .btn-dark, .btn-header {
    padding: 15px 24px;
    width: 100%;
    text-align: center;
  }
  .cta-row, .final-cta .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row a, .final-cta .cta-row a { width: 100%; text-align: center; }

  /* Floating WhatsApp */
  .wa-float { right: 16px; bottom: 16px; }
  .wa-bubble { left: 16px; right: 16px; bottom: 84px; }

  /* Testimonials */
  .testimonial-card { flex: 0 0 260px; }

  h1, h2, h3 { overflow-wrap: break-word; }
}

/* ==========================================================================
   Small phones (<=430px)
   ========================================================================== */
@media (max-width: 430px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { padding: 10px 16px; }
  .hero .wrap { padding: 0; }
  .hero-slide { padding: 24px 16px 20px; }
  .hero-controls { padding: 0 16px 16px; }
  section { padding: 48px 16px; }
  .section-tight { padding: 48px 16px 10px; }
  .section-bordered .wrap { padding: 48px 16px; }

  .logo-link img { height: 40px; }
  .hero-copy h1 { font-size: clamp(28px, 9vw, 36px); }
  .hero-media { max-height: 34vh; }
  .hero-grid-2x2 { max-height: 30vh; gap: 8px; }

  .process-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .testimonial-card { flex: 0 0 240px; padding: 20px 18px; }

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

@media (prefers-reduced-motion: reduce) {
  .main-nav, .nav-overlay, .menu-toggle span { transition: none; }
}
