/* ========================================================================
   SLIDEMESTRE — folha de estilo
   Estrutura: Fonts -> Bases -> Padrões -> Responsivo
   ===================================================================== */

/* -------------------------------------------------------------------------- */
/* Fontes (variáveis, locais) */
/* -------------------------------------------------------------------------- */
/* === FONTS ============================================================ */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/Bricolage.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Italic.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* Base / Reset */
/* -------------------------------------------------------------------------- */

/* === BASES =========================================================== */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Instrument Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1.125rem; /* 18px, escalável conforme preferência do usuário */
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

.cb {
  clear: both;
}

/* -------------------------------------------------------------------------- */
/* Header */
/* -------------------------------------------------------------------------- */

/* === PADRÕES ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

/* Sombra adicionada via JS ao rolar a página */
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.header-logo .custom-logo {
  width: 207px;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}
.header-logo .custom-logo:hover {
  transform: scale(0.95);
}

/* Navegação (menu + CTA agrupados à direita) */
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  position: relative;
  color: #0e0e0e;
  font-size: 1.0625rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.primary-menu a:hover {
  color: #6C28F0;
}

/* Underline animado (cresce do centro) */
.primary-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #6C28F0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.primary-menu a:hover::after {
  transform: scaleX(1);
}

/* Botão CTA */
.header-cta {
  display: inline-block;
  background: #6C28F0;
  color: #fff;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.header-cta:hover {
  background: #5a1fd1;
  transform: scale(0.96);
}
.header-cta:active {
  transform: scale(0.93);
}

/* Botão hambúrguer — escondido no desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #0e0e0e;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Skip link (acessibilidade — aparece só ao receber foco via Tab) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: #6C28F0;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* -------------------------------------------------------------------------- */
/* Header — Tablet/Mobile (≤1023px): menu vira hambúrguer                     */
/* -------------------------------------------------------------------------- */



/* -------------------------------------------------------------------------- */
/* Header — Celular (≤480px): encolhe logo e CTA pra caber o hambúrguer       */
/* -------------------------------------------------------------------------- */





/* -------------------------------------------------------------------------- */
/* Header — Celular muito pequeno (≤400px): CTA quebra para segunda linha     */
/* Logo à esquerda, hambúrguer à direita, CTA centralizado embaixo            */
/* -------------------------------------------------------------------------- */



/* -------------------------------------------------------------------------- */
/* Ajuste do submenu e do menu mobile                                         */
/* -------------------------------------------------------------------------- */

.primary-menu li {
  position: relative;
}

.primary-menu .sub-menu,
.primary-menu .children {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  display: block;
  padding: 10px;
  margin: 0;
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1005;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li:hover > .children,
.primary-menu li:focus-within > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu li,
.primary-menu .children li {
  width: 100%;
}

.primary-menu .sub-menu a,
.primary-menu .children a {
  display: block;
  padding: 10px 12px;
  font-size: 0.95rem;
  border-radius: 10px;
  white-space: nowrap;
}

.primary-menu .sub-menu a:hover,
.primary-menu .children a:hover {
  background: #f6f1ff;
}





/* -------------------------------------------------------------------------- */
/* Menu mobile em slide lateral / off-canvas                                  */
/* -------------------------------------------------------------------------- */

body.slidemestre-menu-open {
  overflow: hidden;
}





/* -------------------------------------------------------------------------- */
/* Ajuste: menu off-canvas escuro e acima de todos os elementos               */
/* -------------------------------------------------------------------------- */





/* -------------------------------------------------------------------------- */
/* Ajuste final: painel mobile tela cheia, vindo da esquerda + CTA no painel   */
/* -------------------------------------------------------------------------- */

.header-cta-panel {
  display: none;
}





/* Ajuste: manter o CTA do header visível no mobile, como antes */


/* -------------------------------------------------------------------------- */
/* Ajuste: logo branco dentro do painel mobile e sem efeito de encolher        */
/* -------------------------------------------------------------------------- */

.mobile-panel-logo {
  display: none;
}

html {
  scrollbar-gutter: stable;
}





/* ========================================================================== */
/* HERO                                                                       */
/* ========================================================================== */
.hero {
  background: #f4f3f8;
  overflow: hidden;
}

.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 24px 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

/* ---- Coluna de texto ---- */
.hero-eyebrow {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6C28F0;
  margin-bottom: 20px;
}

.hero-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.12;
  color: #14121a;
  margin-bottom: 24px;
}
.hero-title .hl {
  color: #6C28F0;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #555;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.hero-btn-primary {
  background: #6C28F0;
  color: #fff;
}
.hero-btn-primary:hover {
  background: #5a1fd1;
  transform: translateY(-2px);
}
.hero-btn-ghost {
  background: #fff;
  color: #14121a;
  border: 1px solid #ddd;
}
.hero-btn-ghost:hover {
  border-color: #6C28F0;
  color: #6C28F0;
  transform: translateY(-2px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #555;
}
.hero-badges li {
  position: relative;
  padding-left: 18px;
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF7A5C;
}
.hero-badges strong {
  color: #14121a;
}

/* ---- Coliagem de imagens ---- */
.hero-collage {
  position: relative;
  aspect-ratio: 612 / 520;
  height: auto;
  width: 100%;
}
.hero-collage .hc {
  position: absolute;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 18px 40px rgba(20, 18, 26, 0.14);
}
.hero-collage .hc img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Posições do arranjo (proporções forçadas via width/height dos slots) */
.hc-pessoa {
  width: 54%;
  aspect-ratio: 295 / 260;
  top: 0;
  left: 0;
  z-index: 1;
}
.hc-setup {
  width: 52%;
  aspect-ratio: 315 / 200;
  top: 5%;
  right: 0;
  z-index: 2;
}
.hc-mouse {
  width: 30%;
  aspect-ratio: 195 / 250;
  bottom: 9.6%;
  left: 8%;
  z-index: 3;
}
.hc-mockup {
  width: 46%;
  aspect-ratio: 245 / 160;
  bottom: 15%;
  right: 6%;
  z-index: 3;
}

/* Rodapé */
.site-footer {
  background: #fff;
  border-top: 1px solid #ececec;
}
.site-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo .custom-logo {
  height: 30px;
  width: auto;
  display: block;
}
.footer-copyright {
  flex: 1 1 auto;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-social a {
  display: inline-flex;
  color: #6C28F0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}
.footer-social svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Faixa preta — promessa */
.promise-band {
  background: #14121a;
}
.promise-band-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 64px) 24px;
}
.promise-band p {
  margin: 0;
  text-align: center;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  font-weight: 500;
  color: #f4f3f8;
}
.promise-band .hl-light {
  color: #A78BFA;
  font-weight: 700;
}

/* Cabeçalho de seção (reutilizável) */
.section-eyebrow {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6C28F0;
  margin: 0 0 16px;
}
.section-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  color: #14121a;
  margin: 0 0 20px;
}
.section-title .hl { color: #6C28F0; }
.section-lead {
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  line-height: 1.6;
  color: #666;
  max-width: 620px;
  margin: 0 0 44px;
}

/* Seção "O que eu faço" */
.services { background: #fff; padding: clamp(56px, 8vw, 100px) 0; }
.services-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.svc-tag {
  display: inline-block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.svc-tag-light { background: rgba(255, 255, 255, 0.18); color: #fff; }
.svc-tag-soft  { background: #f0ebfe; color: #6C28F0; }

.svc-featured {
  background: #6C28F0;
  border-radius: 24px;
  padding: clamp(28px, 3.5vw, 44px);
  margin-bottom: 24px;
transition: box-shadow 0.2s ease;
}
.svc-featured:hover {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}
.svc-featured h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  color: #fff;
  margin: 14px 0 12px;
}
.svc-featured p {
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 760px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.svc-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: clamp(24px, 2.5vw, 32px);
}
.svc-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: #14121a;
  margin: 14px 0 12px;
}
.svc-card p { font-size: 1rem; line-height: 1.6; color: #666; margin: 0; }

.svc-addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: #f6f5fa;
  border: 1px dashed #d8d3e6;
  border-radius: 16px;
  padding: clamp(20px, 2vw, 24px) clamp(20px, 2.5vw, 28px);
transition: border-color 0.2s ease;
}
.svc-addon:hover {
  border-color: #b9a3ee;
}
.svc-addon-label { font-weight: 700; color: #14121a; font-size: 1rem; }
.svc-addon-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-addon-pills span {
  display: inline-block;
  background: #fff;
  border: 1px solid #e3dcf3;
  color: #6C28F0;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 999px;
}

.svc-card {
  /* ...mantém o que já tem... */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.svc-card:hover {
  border-color: #cdbcf3;
  box-shadow: 0 6px 20px rgba(108, 40, 240, 0.08);
}

/* ---- Bloco 04 · Como funciona ---- */
.howto { background: #f4f3f8; padding: clamp(56px, 8vw, 100px) 0; }
.howto-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
 
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: clamp(36px, 3.2vw, 48px) clamp(24px, 2.4vw, 32px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
  border-color: #cdbcf3;
  box-shadow: 0 6px 20px rgba(108, 40, 240, 0.08);
}
.step-num {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #6C28F0;
  margin-bottom: 12px;
}
.step-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: #14121a;
  margin: 0 0 12px;
}
.step-card p { font-size: 1rem; line-height: 1.6; color: #666; margin: 0; }

/* Bloco 05 · Trabalhos */
.works { padding: clamp(56px, 8vw, 100px) 0 clamp(36px, 4vw, 56px); }
.works-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.work-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.work-card {
  flex: 0 1 calc((100% - 48px) / 3);
  min-width: 280px;
  background: #f6f5fa;
  border-radius: 20px;
  padding: clamp(14px, 1.4vw, 18px) clamp(14px, 1.4vw, 18px) clamp(20px, 2vw, 26px);
  transition: box-shadow 0.2s ease;
}
.work-card:hover { box-shadow: 0 10px 30px rgba(20, 18, 26, 0.10); }
.work-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #e9e6f2;
  margin-bottom: 16px;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}
.work-card:hover .work-thumb img { transform: scale(1.03); }
.work-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: #14121a;
  margin: 0 0 4px;
}
.work-card p { font-size: 1rem; color: #666; margin: 0; }

/* Bloco 06 · O que dizem */
.quotes { background: #fff; padding: clamp(56px, 8vw, 100px) 0; }
.quotes-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.quote-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.quote-card {
  flex: 0 1 calc((100% - 48px) / 3);
  min-width: 280px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: clamp(28px, 2.6vw, 36px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quote-card:hover {
  border-color: #cdbcf3;
  box-shadow: 0 6px 20px rgba(108, 40, 240, 0.08);
}
.quote-text { color: #555; font-size: 1.0625rem; line-height: 1.6; margin: 0 0 24px; }
.quote-author {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #14121a;
  margin: 0 0 2px;
}
.quote-role { color: #6C28F0; font-size: 0.95rem; margin: 0; }

/* Bloco 07 · Quem faz (card escuro) */
.founder { background: #fff; padding: clamp(40px, 5vw, 64px) 0; }
.founder-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.founder-card {
  background: #14121a;
  border-radius: 24px;
  padding: clamp(36px, 5vw, 72px);
}
.founder-card .section-eyebrow { color: #A78BFA; }
.founder-card .section-title  { color: #fff; }
.founder-text {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
  margin: 0 0 32px;
}
.founder-btn {
  display: inline-block;
  background: #fff;
  color: #14121a;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.founder-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Bloco 08 · Contato */
.contact { background: #f4f3f8; padding: clamp(56px, 8vw, 100px) 0; }
.contact-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.contact-info .section-lead { max-width: 420px; margin-bottom: 28px; }

.btn-whats {
  display: inline-block;
  background: #6C28F0;
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-whats:hover { background: #5a1fd6; transform: translateY(-1px); }

/* Form CF7 */
.contact-form .cf-field { display: block; margin-bottom: 20px; }
.contact-form .cf-label { display: block; font-weight: 700; color: #14121a; font-size: 0.95rem; margin-bottom: 8px; }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #e3dcf3;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: #14121a;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9a96a8; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #6C28F0;
  box-shadow: 0 0 0 3px rgba(108, 40, 240, 0.12);
}
.contact-form .wpcf7-submit {
  width: 100%;
  background: #6C28F0;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 16px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s ease;
}
.contact-form .wpcf7-submit:hover { background: #5a1fd6; }

/* Mensagens de retorno do CF7 */
.contact-form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.contact-form .wpcf7-not-valid-tip { color: #d33; font-size: 0.85rem; margin-top: 6px; }

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

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

/* <= 1023px — navegação mobile / hambúrguer */
@media (max-width: 1023px) {
  .header-inner {
    position: relative;
  }
  .nav-toggle {
    display: flex;
    order: 3;
    flex-shrink: 0;
  }
  /* CTA sempre visível, ao lado do hambúrguer */
  .header-cta {
    order: 2;
    margin-left: auto;
    margin-right: 12px;
    padding: 10px 18px;
    font-size: 0.9375rem;
  }
  /* No mobile, o próprio nav vira o painel suspenso */
  .header-nav {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-left: 0;
    display: block;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    z-index: 1001;
    transition: max-height 0.25s ease;
  }
  .site-header.nav-open .header-nav {
    max-height: 80vh;
    overflow-y: auto;
  }
  .primary-menu {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: none;
    padding: 8px 24px 16px;
    max-height: none;
    overflow: visible;
  }
  .primary-menu li {
    width: 100%;
  }
  .primary-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  /* Desliga o underline animado no mobile */
  .primary-menu a::after {
    display: none;
  }
  /* Hambúrguer vira X quando aberto */
  .site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .header-logo {
    order: 1;
  }
  .header-cta {
    order: 2;
    margin-left: auto;
  }
  .nav-toggle {
    order: 3;
  }
  .header-nav {
    position: static;
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    display: block;
    margin: 0;
    background: #fff;
    box-shadow: none;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
  }
  .site-header.nav-open .header-nav {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    padding-top: 8px;
  }
  .primary-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 14px;
    margin: 0;
    background: #fff;
  }
  .primary-menu a {
    display: block;
    padding: 13px 0;
    color: #0e0e0e;
    border-bottom: 1px solid #f0f0f0;
  }
  .primary-menu a::after {
    display: none;
  }
  .primary-menu .sub-menu,
  .primary-menu .children {
    position: static;
    min-width: 0;
    padding: 0 0 0 16px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
  }
  .primary-menu .sub-menu a,
  .primary-menu .children a {
    padding: 11px 0;
    font-size: 0.95rem;
    color: #4a4a4a;
    white-space: normal;
  }
  .site-header {
    z-index: 3000;
  }
  .site-header.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
    z-index: 1;
  }
  .header-inner {
    position: relative;
    z-index: 3;
  }
  .header-logo,
  .header-cta,
  .nav-toggle {
    position: relative;
    z-index: 4;
  }
  .nav-toggle {
    border: 2px solid #0e0e0e;
    border-radius: 8px;
    background: #fff;
  }
  .header-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(86vw, 390px) !important;
    height: 100svh;
    max-height: none !important;
    margin: 0 !important;
    padding: 104px 26px 32px !important;
    display: block !important;
    background: #fff;
    box-shadow: -22px 0 60px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    opacity: 1 !important;
    visibility: hidden;
    transform: translateX(105%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.38s ease;
    z-index: 2;
  }
  .site-header.nav-open .header-nav {
    visibility: visible;
    transform: translateX(0);
  }
  .primary-menu {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: transparent;
  }
  .primary-menu a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 1.08rem;
    font-weight: 600;
    color: #0e0e0e;
    white-space: normal;
  }
  .primary-menu .sub-menu,
  .primary-menu .children {
    position: static;
    min-width: 0;
    padding: 0 0 8px 18px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .primary-menu .sub-menu a,
  .primary-menu .children a {
    padding: 11px 0;
    border-bottom: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
  }
  body.slidemestre-menu-open .site-header {
    z-index: 999990 !important;
  }
  .site-header.nav-open::before {
    background: rgba(0, 0, 0, 0.68) !important;
    z-index: 999991 !important;
  }
  .site-header.nav-open .header-inner {
    z-index: auto !important;
  }
  .site-header.nav-open .header-logo,
  .site-header.nav-open .header-cta {
    z-index: 1 !important;
  }
  .site-header.nav-open .header-nav {
    background: #18141F !important;
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.45) !important;
    z-index: 999992 !important;
  }
  .site-header.nav-open .primary-menu {
    background: transparent !important;
  }
  .site-header.nav-open .primary-menu a {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  }
  .site-header.nav-open .primary-menu a:hover,
  .site-header.nav-open .primary-menu a:focus {
    color: #B987FF !important;
  }
  .site-header.nav-open .primary-menu .sub-menu,
  .site-header.nav-open .primary-menu .children {
    background: transparent !important;
  }
  .site-header.nav-open .primary-menu .sub-menu a,
  .site-header.nav-open .primary-menu .children a {
    color: rgba(255, 255, 255, 0.72) !important;
    border-bottom: 0 !important;
  }
  .site-header.nav-open .nav-toggle {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 999993 !important;
    background: #18141F !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
  }
  .site-header.nav-open .nav-toggle-bar {
    background: #ffffff !important;
  }
  /* Mantém o CTA externo visível no header mobile e também exibe outro dentro do painel */
  .header-cta-main {
    display: inline-block !important;
  }
  .site-header.nav-open::before {
    display: none !important;
  }
  .site-header .header-nav {
    position: fixed !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100svh !important;
    max-height: none !important;
    padding: 96px 28px 40px !important;
    background: #18141F !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    visibility: hidden !important;
    transform: translateX(-105%) !important;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.42s ease !important;
    z-index: 999992 !important;
  }
  .site-header.nav-open .header-nav {
    visibility: visible !important;
    transform: translateX(0) !important;
  }
  .site-header.nav-open .primary-menu,
  .site-header .header-nav .primary-menu {
    background: transparent !important;
  }
  .site-header .header-nav .primary-menu a {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  }
  .site-header .header-nav .primary-menu a:hover,
  .site-header .header-nav .primary-menu a:focus {
    color: #B987FF !important;
  }
  .site-header .header-nav .primary-menu .sub-menu,
  .site-header .header-nav .primary-menu .children {
    background: transparent !important;
  }
  .site-header .header-nav .primary-menu .sub-menu a,
  .site-header .header-nav .primary-menu .children a {
    color: rgba(255, 255, 255, 0.72) !important;
    border-bottom: 0 !important;
  }
  .header-cta-panel {
    display: block !important;
    width: 100%;
    margin: 30px 0 0;
    padding: 14px 24px;
    text-align: center;
    background: #6C28F0;
    color: #ffffff !important;
    border-radius: 999px;
    font-weight: 700;
  }
  .header-cta-panel:hover,
  .header-cta-panel:focus {
    background: #7D3CFF;
    color: #ffffff !important;
  }
  /* Desativa o efeito de hover do logo no mobile para ele não parecer diminuir */
  .header-logo .custom-logo,
  .header-logo .custom-logo:hover,
  .site-header.nav-open .header-logo .custom-logo {
    transform: none !important;
  }
  /* Quando o painel abre, o logo/CTA do header ficam escondidos atrás do painel.
  Assim só aparece o logo branco do painel e não dá a sensação de encolher. */
  .site-header.nav-open .header-logo,
  .site-header.nav-open .header-cta-main {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .site-header .header-nav {
    padding: 28px 28px 40px !important;
  }
  .mobile-panel-logo {
    display: block;
    width: fit-content;
    max-width: calc(100% - 86px);
    margin: 0 86px 42px 0;
  }
  .mobile-panel-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
  }
  .mobile-panel-logo .custom-logo {
    width: 207px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    transform: none !important;
    transition: none !important;
  }
  .mobile-panel-site-title {
    display: inline-block;
    color: #ffffff !important;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .site-header .header-nav .primary-menu {
    width: 100%;
  }
  .header-cta-panel {
    margin-top: 34px !important;
  }
}

/* <= 980px — hero em 1 coluna */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 20px 64px;
  }
  .hero-collage {
    order: 2;
    max-width: 560px;
    margin-inline: auto;
  }
  .hero-content {
    order: 1;
  }

  .step-grid {
    grid-template-columns: 1fr 1fr;
  }
  .step-grid .step-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .work-card {
    flex-basis: 100%;
    min-width: 0;
  }

  .quote-card {
    flex-basis: 100%;
    min-width: 0;
  }

}

@media (max-width: 767px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

/* <= 560px */
@media (max-width: 560px) {
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-actions .hero-btn {
    flex: 1;
    text-align: center;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

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

/* <= 480px */
@media (max-width: 480px) {
  .header-inner {
    padding: 12px 16px;
    gap: 8px;
  }
  .header-logo .custom-logo {
    width: 150px;
  }
  .header-cta {
    padding: 9px 14px;
    font-size: 0.875rem;
    margin-right: 8px;
  }
}

/* <= 400px */
@media (max-width: 400px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  /* Linha 1: logo (esquerda) + hambúrguer (direita) */
  .header-logo {
    order: 1;
  }
  .nav-toggle {
    order: 2;
    margin-left: auto;
  }
  /* Linha 2: CTA ocupando a largura toda, centralizado */
  .header-cta {
    order: 3;
    width: 100%;
    margin: 0;
    text-align: center;
  }
  /* Menu suspenso continua abrindo a partir do fim do header (abaixo do CTA) */
  .header-nav {
    top: 100%;
  }
  .header-logo {
    order: 1;
  }
  .header-cta {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    text-align: center;
  }
  .header-nav {
    order: 4;
    flex: 0 0 100%;
  }
  .header-nav {
    width: min(88vw, 360px) !important;
    padding-top: 126px !important;
  }
  .site-header .header-nav {
    width: 100vw !important;
    padding: 92px 22px 36px !important;
  }
  .header-cta-main {
    display: block !important;
    order: 3;
    width: 100%;
    margin: 0;
    text-align: center;
  }
  .site-header .header-nav {
    padding: 24px 22px 36px !important;
  }
  .mobile-panel-logo {
    max-width: calc(100% - 78px);
    margin-right: 78px;
    margin-bottom: 38px;
  }
  .mobile-panel-logo .custom-logo {
    width: 165px;
  }
}

/* <= 380px */
@media (max-width: 380px) {
  .header-logo .custom-logo {
    width: 130px;
  }
  .header-cta {
    padding: 8px 12px;
    font-size: 0.8125rem;
  }
}