/* ==========================================================================
   SJ Marketing & Consultoria — estilos compartilhados por todas as páginas
   Pensado primeiro para celular (mobile-first).
   ========================================================================== */

/* ---------- Cores, fontes e medidas da marca ---------- */
:root {
  --dourado-champagne: #D4B06F; /* detalhes, ícones, bordas e destaques (nunca texto em fundo claro) */
  --dourado-profundo: #7F6128;  /* textos dourados em fundo claro e links */
  --preto-onix: #0A0A0A;        /* textos principais, botões e rodapé */
  --perola: #F7F3EC;            /* fundo de seções alternadas e cartões */
  --branco: #FFFFFF;            /* fundo principal */
  --gradiente-dourado: linear-gradient(90deg, #B8904F 0%, #EBCB85 35%, #CFAA6D 68%, #B5946A 100%);

  --texto-suave: #4A453E;       /* textos de apoio (contraste alto sobre branco e pérola) */
  --linha: #E6DCC9;             /* bordas finas decorativas */
  --borda-campo: #8E877B;       /* borda dos campos do formulário */
  --cinza-reserva: #ECECEC;     /* cartão de reserva das imagens de clientes */
  --verde-whatsapp: #25D366;

  --fonte-titulo: "Cinzel", Georgia, "Times New Roman", serif;
  --fonte-texto: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --altura-cabecalho: 72px;
  --raio: 12px;
  --raio-pequeno: 8px;
  --sombra: 0 10px 30px rgba(10, 10, 10, 0.06);
}

@media (min-width: 768px) {
  :root { --altura-cabecalho: 84px; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--altura-cabecalho) + 16px);
}

body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--preto-onix);
  background: var(--branco);
}

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

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 7vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 5vw, 2.35rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--dourado-profundo); text-underline-offset: 3px; }
a:hover { color: var(--preto-onix); }

:focus-visible {
  outline: 3px solid var(--dourado-profundo);
  outline-offset: 3px;
}

ul { margin: 0; padding: 0; }
.list-reset { list-style: none; margin: 0; padding: 0; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--preto-onix);
  color: var(--branco);
  padding: 12px 18px;
  border-radius: var(--raio-pequeno);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--branco); }

@media (prefers-reduced-motion: reduce) {
  html, .carousel__track { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Estrutura ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

main { padding-top: var(--altura-cabecalho); }

.section { padding: 64px 0; }
.section--perola { background: var(--perola); }
.section.section--flush-top { padding-top: 0; }
@media (min-width: 768px) {
  .section { padding: 96px 0; }
}

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dourado-profundo);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradiente-dourado);
}
.section-head--center .eyebrow::after {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradiente-dourado);
}

.lead { font-size: 1.125rem; color: var(--texto-suave); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--raio-pequeno);
  font-family: var(--fonte-texto);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }

.btn--primary { background: var(--preto-onix); color: var(--branco); }
.btn--primary:hover { color: var(--branco); background: #262626; border-color: var(--dourado-champagne); }

.btn--outline { background: transparent; color: var(--preto-onix); border-color: var(--preto-onix); }
.btn--outline:hover { color: var(--preto-onix); background: var(--perola); }

.btn--light { background: var(--branco); color: var(--preto-onix); }
.btn--light:hover { color: var(--preto-onix); background: var(--perola); border-color: var(--dourado-champagne); }

.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1.0625rem; }

.icon-whatsapp { fill: var(--verde-whatsapp); }

@media (max-width: 479px) {
  .btn--block-mobile { width: 100%; }
  .btn--lg { padding-inline: 18px; }
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--branco);
  border-bottom: 1px solid var(--linha);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--altura-cabecalho);
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: none;
}
.logo img { width: auto; height: 44px; }
@media (min-width: 768px) {
  .logo img { height: 54px; }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio-pequeno);
  cursor: pointer;
}
.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--preto-onix);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute;
  top: var(--altura-cabecalho);
  left: 0;
  right: 0;
  background: var(--branco);
  border-bottom: 1px solid var(--linha);
  box-shadow: var(--sombra);
}
.nav.is-open { display: block; }
.nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 16px;
}
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 4px;
  border-bottom: 1px solid var(--perola);
  color: var(--preto-onix);
  font-weight: 500;
  text-decoration: none;
}
.nav li:last-child a { border-bottom: 0; }
.nav a:hover { color: var(--dourado-profundo); }
.nav a[aria-current="page"] { color: var(--dourado-profundo); font-weight: 700; }
.nav a[aria-current="page"]::before {
  content: "";
  width: 4px;
  height: 22px;
  margin-right: 12px;
  border-radius: 2px;
  background: var(--gradiente-dourado);
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav ul { flex-direction: row; gap: 8px; padding: 0; }
  .nav a { min-height: 44px; padding: 0 14px; border: 0; }
  .nav a[aria-current="page"]::before {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    width: auto;
    height: 2px;
    margin: 0;
  }
}

/* ---------- Ícones em círculo ---------- */
.icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--preto-onix);
}
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--dourado-champagne);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 44px; height: 44px; }
.icon--sm svg { width: 22px; height: 22px; }

/* ---------- Destaque inicial (Home) ---------- */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 20px; font-size: 0.9rem; color: var(--texto-suave); }

@media (min-width: 960px) {
  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
}

.journey {
  position: relative;
  padding: 32px 24px;
  background: var(--perola);
  border: 1px solid var(--linha);
  border-radius: 18px;
  overflow: hidden;
}
.journey::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradiente-dourado);
}
.journey__title {
  margin: 0 0 20px;
  font-family: var(--fonte-titulo);
  font-size: 1.05rem;
  font-weight: 600;
}
.journey ol { list-style: none; margin: 0; padding: 0; }
.journey li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.journey li + li::before {
  content: "";
  position: absolute;
  left: 21px;
  top: -14px;
  height: 28px;
  border-left: 2px dotted var(--dourado-champagne);
}
.journey strong { display: block; font-size: 1rem; }
.journey li div span { display: block; font-size: 0.9rem; color: var(--texto-suave); }
@media (min-width: 768px) {
  .journey { padding: 40px 36px; }
}

/* ---------- O problema ---------- */
.problem-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .problem-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}
.compare { display: grid; gap: 16px; }
.compare__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
}
.compare__item h3 { margin-bottom: 4px; font-size: 1.05rem; }
.compare__item p { color: var(--texto-suave); font-size: 0.95rem; }
.compare__item--muted { background: transparent; border-style: dashed; }
.compare__item--muted .icon { background: transparent; border: 1.5px solid var(--borda-campo); }
.compare__item--muted .icon svg { stroke: var(--texto-suave); }
.highlight {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 3px solid var(--dourado-champagne);
  font-weight: 600;
}

/* ---------- Cartões (passos, serviços) ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.grid--steps { gap: 20px; }
@media (min-width: 900px) {
  .grid--steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 28px 24px;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
}
.card h3 { margin: 0; }
.card p { color: var(--texto-suave); }
.card--perola { background: var(--perola); }

.step__number {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--fonte-titulo);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dourado-profundo);
  line-height: 1;
}

.card--feature { padding: 36px 28px; overflow: hidden; }
.card--feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradiente-dourado);
}
.card--feature h3 { font-size: 1.45rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  font-weight: 600;
  color: var(--dourado-profundo);
}
.card-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.2s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Nossos clientes ---------- */
/* Carrossel: 2 por vez no celular, 3 no tablet, 4 no computador */
.carousel { --por-vez: 2; --espaco: 16px; }
@media (min-width: 768px) { .carousel { --por-vez: 3; --espaco: 20px; } }
@media (min-width: 1000px) { .carousel { --por-vez: 4; } }

.carousel__track {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--por-vez) - 1) * var(--espaco)) / var(--por-vez));
  gap: var(--espaco);
  margin: 0;
  padding: 4px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 4px; }
.carousel__track > li { scroll-snap-align: start; }

.carousel__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.carousel__controls[hidden] { display: none; }
.carousel__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--preto-onix);
  background: var(--branco);
  border: 1.5px solid var(--preto-onix);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.carousel__btn:hover { background: var(--perola); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; background: var(--branco); }
.carousel__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.client {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cinza-reserva); /* cartão de reserva enquanto a imagem não existir */
  border: 1px solid #E0E0E0;
  border-radius: var(--raio);
}
.client img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Aviso (fotos e vídeos) ---------- */
.notice {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  padding: 24px;
  background: var(--branco);
  border: 1px solid var(--dourado-champagne);
  border-radius: var(--raio);
}
.notice h2 { margin-bottom: 6px; font-size: 1.2rem; }
.notice p { color: var(--texto-suave); }
@media (min-width: 640px) {
  .notice { flex-direction: row; align-items: center; gap: 24px; padding: 28px 32px; }
}

/* ---------- Topo das páginas internas ---------- */
.page-hero {
  position: relative;
  padding: 56px 0 56px;
  background: var(--perola);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gradiente-dourado);
}
.page-hero h1 { max-width: 760px; }
.page-hero .lead { max-width: 640px; }
@media (min-width: 768px) {
  .page-hero { padding: 88px 0; }
}

/* ---------- Chamada final ---------- */
.cta-box {
  position: relative;
  padding: 48px 24px;
  text-align: center;
  color: #E9E4DB;
  background: var(--preto-onix);
  border-radius: 20px;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradiente-dourado);
}
.cta-box h2 { color: var(--branco); }
.cta-box p { max-width: 560px; margin-inline: auto; }
.cta-box .btn { margin-top: 28px; }
.cta-box :focus-visible { outline-color: var(--dourado-champagne); }
@media (min-width: 768px) {
  .cta-box { padding: 72px 48px; }
}

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
}
.contact-options { display: grid; gap: 16px; }
.contact-options .btn { width: 100%; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 18px;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  color: var(--preto-onix);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.contact-link:hover { color: var(--preto-onix); border-color: var(--dourado-champagne); }
.contact-link small { display: block; font-size: 0.8rem; color: var(--texto-suave); }
.contact-link strong { display: block; overflow-wrap: anywhere; color: var(--dourado-profundo); }

.form {
  padding: 28px 20px;
  background: var(--perola);
  border: 1px solid var(--linha);
  border-radius: 18px;
}
@media (min-width: 768px) {
  .form { padding: 40px 36px; }
}
.form h2 { font-size: 1.5rem; }
.form-intro { color: var(--texto-suave); }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.form-row .field { margin-top: 0; }
.form-row { margin-top: 20px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .optional { font-weight: 400; color: var(--texto-suave); }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--fonte-texto);
  font-size: 1rem;
  color: var(--preto-onix);
  background: var(--branco);
  border: 1.5px solid var(--borda-campo);
  border-radius: var(--raio-pequeno);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--preto-onix); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { margin: 0; font-size: 0.875rem; font-weight: 600; color: #B3261E; }
.field-error:empty { display: none; }
.form .btn { width: 100%; margin-top: 28px; }
.form-hint { margin-top: 14px; font-size: 0.875rem; color: var(--texto-suave); text-align: center; }
.form-status { margin-top: 14px; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
@media (min-width: 640px) {
  .form .btn { width: auto; }
  .form-hint, .form-status { text-align: left; }
}

/* ---------- Rodapé ---------- */
.site-footer {
  /* espaço extra embaixo para o botão flutuante nunca cobrir o conteúdo */
  padding: 56px 0 96px;
  color: #CFC9BF;
  background: var(--preto-onix);
}
.site-footer :focus-visible { outline-color: var(--dourado-champagne); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; }
  .footer-grid > :first-child { grid-column: auto; }
}
.footer-logo { display: inline-block; }
.footer-logo img { width: 180px; height: auto; }
.footer-about { margin-top: 16px; max-width: 320px; font-size: 0.95rem; }
.site-footer h2 {
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--dourado-champagne);
}
.footer-list { list-style: none; }
.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--branco);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-list a:hover { color: var(--dourado-champagne); text-decoration: underline; }
.footer-list svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--dourado-champagne); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-list svg.icon-whatsapp { stroke: none; fill: var(--verde-whatsapp); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .site-footer { padding-bottom: 40px; }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--verde-whatsapp);
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.25);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--branco); }
.whatsapp-float:focus-visible { outline-color: var(--preto-onix); }
@media (min-width: 768px) {
  .whatsapp-float { right: 20px; bottom: 20px; }
}
