/* ============================================================
   CASA & ART — Grupo Casa & Art / Rudnick Planejados
   Stylesheet institucional — construído a partir do Design System
   (tokens/colors.css, typography.css, spacing.css, effects.css)
   ============================================================ */

/* ---------- Fontes (Poppins local) ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 200; font-display: swap; src: url('../fonts/poppins-200.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  /* cor — paleta da identidade visual */
  --preto: #000000;
  --branco: #ffffff;
  --laranja: #f28920;
  --laranja-escuro: #d9770f;
  --cinza-volume: #606060;
  --areia: #d9d2cc;
  --papel: #eae7e3;
  --preto-suave: #0a0a0a;
  --branco-70: rgba(255, 255, 255, 0.7);
  --branco-40: rgba(255, 255, 255, 0.4);
  --branco-14: rgba(255, 255, 255, 0.14);
  --preto-60: rgba(0, 0, 0, 0.6);
  --preto-08: rgba(0, 0, 0, 0.08);

  --surface-dark: var(--preto);
  --surface-light: var(--papel);
  --surface-sand: var(--areia);
  --accent: var(--laranja);
  --text-on-dark: var(--branco);
  --text-on-dark-muted: var(--branco-70);
  --text-on-light: #171310;
  --text-on-light-muted: #55504b;
  --divider-on-dark: rgba(255, 255, 255, 0.18);
  --divider-on-light: rgba(0, 0, 0, 0.12);

  /* tipografia */
  --font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tracking-display: -0.03em;
  --tracking-eyebrow: 0.28em;
  --tracking-wordmark: 0.4em;

  --fs-display-xl: clamp(2.75rem, 1.4rem + 4.2vw, 6.25rem);
  --fs-display-l: clamp(2.25rem, 1.35rem + 3vw, 4.5rem);
  --fs-display-m: clamp(1.75rem, 1.25rem + 1.8vw, 3.125rem);
  --fs-display-s: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.375rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* espaçamento (base 8) */
  --esp-4: 4px; --esp-8: 8px; --esp-12: 12px; --esp-16: 16px; --esp-24: 24px;
  --esp-32: 32px; --esp-40: 40px; --esp-48: 48px; --esp-64: 64px; --esp-80: 80px;
  --esp-96: 96px; --esp-128: 128px;

  --raio-pill: 999px;
  --raio-card: 20px;
  --raio-card-lg: 32px;

  --sombra-card: 0 18px 48px rgba(20, 16, 12, 0.10);
  --sombra-card-hover: 0 24px 64px rgba(20, 16, 12, 0.16);
  --transicao: 220ms cubic-bezier(.4,0,.2,1);

  --gradiente-protecao-baixo: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0.86) 100%);
  --gradiente-protecao-alto: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  --volume-fundo-preto: radial-gradient(120% 90% at 75% 20%, rgba(96,96,96,0.30) 0%, rgba(96,96,96,0.08) 45%, rgba(0,0,0,0) 72%);
  --vinheta-foto: radial-gradient(140% 110% at 50% 40%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.32) 100%);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-family);
  color: var(--text-on-light);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}
img, picture, video { max-width: 100%; display: block; }
img { height: auto; }
/* Containers que usam object-fit:cover precisam que o <picture> também tenha altura definida,
   senão a % de altura do <img> não resolve e a foto encolhe para a proporção natural. */
.hero-media picture, .page-hero-media picture, .gallery-item picture, .post-card .pc-media picture, .cta-final-media picture, .split-media picture { display: block; width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4, h5 { font-weight: 400; }
::selection { background: var(--laranja); color: var(--branco); }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; }
.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; }
svg.icon { display: block; flex: none; width: 20px; height: 20px; }

/* ---------- Layout utilitário ---------- */
.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 720px) { .container { padding-inline: 40px; } }
@media (min-width: 1180px) { .container { padding-inline: 64px; } }

.section { padding-block: var(--esp-64); }
@media (min-width: 900px) { .section { padding-block: var(--esp-96); } }
.section-tight { padding-block: var(--esp-48); }

.bg-dark { background: var(--preto); color: var(--text-on-dark); }
.bg-sand { background: var(--areia); color: var(--text-on-light); }
.bg-paper { background: var(--papel); color: var(--text-on-light); }
.bg-white { background: var(--branco); color: var(--text-on-light); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: var(--fs-micro);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--accent);
}
.bg-dark .eyebrow, .on-dark .eyebrow { color: var(--laranja); }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .8; }

.section-head { max-width: 760px; margin-bottom: var(--esp-40); display: flex; flex-direction: column; gap: var(--esp-16); }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }

h1, .h1, h2, .h2, h3, .h3 {
  font-weight: 200; letter-spacing: var(--tracking-display); line-height: 1.06;
}
.h1, h1 { font-size: var(--fs-display-xl); }
.h2, h2 { font-size: var(--fs-display-l); }
.h3, h3 { font-size: var(--fs-display-m); }
.h4, h4 { font-size: var(--fs-display-s); font-weight: 300; letter-spacing: -0.01em; line-height: 1.2; }
.h5, h5 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.005em; }
.display-accent { font-weight: 500; }

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-on-light-muted); font-weight: 300; }
.bg-dark .lead, .on-dark .lead { color: var(--text-on-dark-muted); }
p { color: var(--text-on-light-muted); }
.bg-dark p, .on-dark p { color: var(--text-on-dark-muted); }
.text-white { color: var(--branco) !important; }

.wordmark {
  font-weight: 300; letter-spacing: var(--tracking-wordmark); text-transform: uppercase;
  font-size: var(--fs-small);
}
.wordmark em { font-style: normal; color: var(--accent); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--raio-pill); padding: 1em 1.9em; font-weight: 600; font-size: 0.9375rem;
  letter-spacing: 0.01em; white-space: nowrap; transition: background var(--transicao), color var(--transicao), border-color var(--transicao), transform var(--transicao);
  border: 1.5px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--preto); color: var(--branco); border-color: var(--preto); }
.btn-primary:hover { background: #262626; border-color: #262626; }
.btn-primary .accent-ic { color: var(--laranja); }

.btn-outline-light { border-color: rgba(255,255,255,0.85); color: var(--branco); }
.btn-outline-light:hover { background: var(--branco); color: var(--preto); }

.btn-outline-dark { border-color: rgba(0,0,0,0.7); color: var(--preto); }
.btn-outline-dark:hover { background: var(--preto); color: var(--branco); border-color: var(--preto); }

.btn-accent { background: var(--laranja); color: var(--branco); border-color: var(--laranja); }
.btn-accent:hover { background: var(--laranja-escuro); border-color: var(--laranja-escuro); }

.btn-ghost { color: inherit; padding: 0.4em 0; gap: 8px; font-weight: 600; }
.btn-ghost svg { transition: transform var(--transicao); }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-block { width: 100%; }
.btn-lg { padding: 1.1em 2.2em; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--transicao), box-shadow var(--transicao), border-color var(--transicao);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.site-header.is-transparent { background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%); }
.site-header.is-solid { background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-color: var(--divider-on-light); }
.site-header.is-solid .logo-dark-mode { display: block; }
.site-header.is-solid .logo-light-mode { display: none; }
.logo-light-mode { display: block; }
.logo-dark-mode { display: none; }
.brand-logo { height: 48px; width: auto; }
.brand-logo img { height: 100%; width: auto; }

.nav-desktop { display: none; }
@media (min-width: 980px) {
  .nav-desktop { display: flex; align-items: center; gap: var(--esp-40); }
  .nav-desktop a { font-size: 0.9375rem; font-weight: 500; padding-block: 6px; position: relative; color: var(--branco); }
  .site-header.is-solid .nav-desktop a { color: var(--text-on-light); }
  .nav-desktop a::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--laranja);
    transition: right var(--transicao);
  }
  .nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { right: 0; }
  .nav-desktop a[aria-current="page"] { color: var(--laranja); }
  .site-header.is-solid .nav-desktop a[aria-current="page"] { color: var(--laranja); }
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn { display: none; }
@media (min-width: 640px) { .header-actions .btn { display: inline-flex; } }
.site-header.is-transparent .header-actions .btn.btn-primary { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.65); backdrop-filter: blur(6px); }
.site-header.is-transparent .header-actions .btn.btn-primary:hover { background: var(--branco); color: var(--preto); }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 50%;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--branco); transition: transform var(--transicao), opacity var(--transicao), background var(--transicao); }
.site-header.is-solid .nav-toggle span { background: var(--text-on-light); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-open .nav-toggle span { background: var(--branco); }

.nav-mobile {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 190; background: var(--preto);
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transicao), transform var(--transicao), visibility var(--transicao);
  overflow-y: auto;
}
.nav-open .nav-mobile { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
@media (min-width: 980px) { .nav-mobile { display: none; } }
.nav-mobile .container { padding-block: var(--esp-40); display: flex; flex-direction: column; gap: var(--esp-32); min-height: 100%; }
.nav-mobile-links { display: flex; flex-direction: column; gap: var(--esp-8); }
.nav-mobile-links a { font-size: 2rem; font-weight: 200; letter-spacing: var(--tracking-display); color: var(--branco); padding-block: 10px; border-bottom: 1px solid var(--divider-on-dark); }
.nav-mobile-links a[aria-current="page"] { color: var(--laranja); }
.nav-mobile-foot { display: flex; flex-direction: column; gap: var(--esp-16); margin-top: auto; }
.nav-mobile-foot .btn { width: 100%; }
.nav-mobile-social { display: flex; gap: 16px; }
.nav-mobile-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--divider-on-dark); display: flex; align-items: center; justify-content: center; color: var(--branco); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--branco); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: var(--gradiente-protecao-baixo); z-index: 1; }
.hero-media::before { content: ''; position: absolute; inset: 0; background: var(--vinheta-foto); z-index: 1; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: calc(var(--header-h) + var(--esp-48)) var(--esp-96); }
.hero-content { max-width: 820px; display: flex; flex-direction: column; gap: var(--esp-24); }
.hero-title { font-size: var(--fs-display-xl); }
.hero-sub { font-size: var(--fs-lead); color: var(--branco-70); max-width: 640px; font-weight: 300; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--esp-8); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: var(--esp-16); }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--branco-70); }
.hero-badge svg { color: var(--laranja); width: 16px; height: 16px; }
.hero-badge strong { color: var(--branco); font-weight: 600; }

.page-hero { position: relative; color: var(--branco); background: var(--preto); overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 100%); }
.page-hero-inner { position: relative; z-index: 2; padding-block: calc(var(--header-h) + var(--esp-64)) var(--esp-64); }
.page-hero-inner .eyebrow { color: var(--laranja); margin-bottom: var(--esp-16); }
.page-hero h1 { max-width: 780px; }
.page-hero .lead { color: var(--branco-70); max-width: 640px; margin-top: var(--esp-16); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--branco-40); margin-bottom: var(--esp-24); }
.breadcrumb a:hover { color: var(--branco); }

/* ---------- Grids & cards genéricos ---------- */
.grid { display: grid; gap: var(--esp-24); }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--branco); border-radius: var(--raio-card); padding: var(--esp-32);
  box-shadow: var(--sombra-card); transition: transform var(--transicao), box-shadow var(--transicao);
  display: flex; flex-direction: column; gap: var(--esp-16); height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra-card-hover); }
.card-icon { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--preto-08); display: flex; align-items: center; justify-content: center; color: var(--laranja); background: var(--papel); }
.card-icon svg { width: 26px; height: 26px; }
.card h3, .card h4 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.card p { font-size: 0.9375rem; }

.faq-list { display: flex; flex-direction: column; gap: var(--esp-16); max-width: 840px; margin-inline: auto; }
.faq-item { background: var(--papel); border-radius: var(--raio-card); padding: var(--esp-24) var(--esp-32); }
.faq-item h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; }
.faq-item p { font-size: 0.9375rem; color: var(--text-on-light-muted); margin: 0; }
.faq-item p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.icon-circle { width: 2.4em; height: 2.4em; border-radius: 50%; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; flex: none; }
.icon-circle svg { width: 1.1em; height: 1.1em; }
.feature-item { display: flex; align-items: center; gap: 16px; font-size: 1rem; }
.feature-item .icon-circle { color: var(--laranja); }
.feature-item strong { display: block; font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; font-size: 0.8125rem; }

/* ---------- Números / estatísticas ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--esp-32) var(--esp-24); }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .n { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); font-weight: 200; letter-spacing: var(--tracking-display); line-height: 1; }
.stat .n .accent { color: var(--laranja); }
.stat .k { font-size: 0.875rem; color: var(--branco-70); max-width: 20ch; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-pill { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: var(--raio-pill); border: 1px solid var(--divider-on-dark); font-size: 0.875rem; }
.trust-pill svg { color: var(--laranja); width: 16px; height: 16px; }
.bg-white .trust-pill, .bg-paper .trust-pill, .bg-sand .trust-pill { border-color: var(--divider-on-light); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 18px; border-radius: var(--raio-pill); border: 1px solid var(--divider-on-dark); font-size: 0.8125rem; color: var(--branco-70); }
.bg-white .chip, .bg-paper .chip, .bg-sand .chip { border-color: var(--divider-on-light); color: var(--text-on-light-muted); }

/* ---------- Fábricas ---------- */
.fabricas-grid { display: grid; gap: var(--esp-24); grid-template-columns: 1fr; }
@media (min-width: 820px) { .fabricas-grid { grid-template-columns: 1fr 1fr; } }
.fabrica-card { border: 1px solid var(--divider-on-dark); border-radius: var(--raio-card-lg); padding: var(--esp-40); display: flex; flex-direction: column; gap: var(--esp-16); }
.fabrica-card .tag { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--laranja); }

/* ---------- Galeria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--esp-16); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; border-radius: var(--raio-card); overflow: hidden; aspect-ratio: 4/5; cursor: zoom-in; background: var(--areia); }
.gallery-item.tall { aspect-ratio: 4/5.6; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16/10; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gi-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0)); color: var(--branco); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: var(--transicao); }
.gallery-item:hover .gi-label { opacity: 1; transform: translateY(0); }
.gallery-item.placeholder { display: flex; align-items: center; justify-content: center; background: var(--preto); color: var(--branco-40); cursor: default; }
.gallery-item.placeholder:hover img { transform: none; }
.gallery-placeholder-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 24px; }
.gallery-placeholder-inner svg { color: var(--laranja); width: 32px; height: 32px; }
.gallery-placeholder-inner span { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--branco-70); }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(4,4,4,0.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity var(--transicao), visibility var(--transicao); padding: 24px; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: min(1100px, 92vw); max-height: 84vh; margin: 0; }
.lightbox img { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: var(--branco-70); text-align: center; margin-top: 14px; font-size: 0.875rem; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; color: var(--branco); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--divider-on-dark); transition: background var(--transicao); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.12); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { width: 40px; height: 40px; } }

/* ---------- Depoimentos / avaliação ---------- */
.rating-badge { display: flex; align-items: center; gap: var(--esp-16); }
.rating-badge .stars { display: flex; gap: 3px; color: var(--laranja); }
.rating-badge .stars svg { width: 20px; height: 20px; }
.rating-badge .num { font-size: 2rem; font-weight: 300; }
.testimonial-card { background: var(--branco); border-radius: var(--raio-card); padding: var(--esp-32); box-shadow: var(--sombra-card); display: flex; flex-direction: column; gap: var(--esp-16); }
.testimonial-card .stars { display: flex; gap: 3px; color: var(--laranja); }
.testimonial-card .stars svg { width: 16px; height: 16px; }
.testimonial-card p { color: var(--text-on-light); font-size: 0.9375rem; font-style: italic; }
.testimonial-card footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; color: var(--text-on-light-muted); border-top: 1px solid var(--divider-on-light); padding-top: var(--esp-16); }
.testimonial-note { font-size: 0.75rem; color: var(--text-on-light-muted); text-align: center; margin-top: var(--esp-24); }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--divider-on-light); margin-left: 6px; }
.bg-dark .timeline { border-color: var(--divider-on-dark); }
.timeline-item { position: relative; padding: 0 0 var(--esp-40) var(--esp-32); }
.timeline-item::before { content: ''; position: absolute; left: -6.5px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--laranja); border: 3px solid var(--branco); }
.bg-dark .timeline-item::before { border-color: var(--preto); }
.timeline-item .yr { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--laranja); font-weight: 600; margin-bottom: 6px; display: block; }
.timeline-item h4 { font-size: 1.125rem; margin-bottom: 6px; font-weight: 500; }
.timeline-item p { max-width: 60ch; font-size: 0.9375rem; }

/* ---------- Equipe / sócios ---------- */
.team-grid { display: grid; gap: var(--esp-24); grid-template-columns: 1fr; }
@media (min-width: 760px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { border-radius: var(--raio-card-lg); overflow: hidden; background: var(--preto); color: var(--branco); position: relative; }
.team-card .tc-media { aspect-ratio: 4/5; background: linear-gradient(160deg, #1c1c1c, #000); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.team-card .tc-media::before { content: ''; position: absolute; inset: 0; background: var(--volume-fundo-preto); }
.team-card .tc-media .initials { font-size: 3.5rem; font-weight: 200; color: var(--branco-40); position: relative; z-index: 1; }
.team-card .tc-body { padding: var(--esp-24) var(--esp-24) var(--esp-32); display: flex; flex-direction: column; gap: 8px; }
.team-card .role { color: var(--laranja); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.team-card h3 { font-size: 1.375rem; font-weight: 400; }
.team-card p { font-size: 0.875rem; color: var(--branco-70); }

/* ---------- Etapas / flow ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 6px; }
.flow .pill { padding: 12px 22px; border-radius: var(--raio-pill); border: 1px solid var(--divider-on-dark); font-size: 0.875rem; }
.flow .pill.solid { background: var(--laranja); border-color: var(--laranja); color: var(--branco); font-weight: 600; }
.flow .sep { color: var(--branco-40); }
.bg-white .flow .pill, .bg-paper .flow .pill, .bg-sand .flow .pill { border-color: var(--divider-on-light); }

.steps-grid { display: grid; gap: var(--esp-24); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 700px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps-grid { grid-template-columns: repeat(5, 1fr); } }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .step-n { font-size: 0.75rem; font-weight: 600; color: var(--laranja); letter-spacing: 0.1em; }
.step h4 { font-size: 1rem; font-weight: 500; }
.step p { font-size: 0.875rem; }

/* ---------- Lojas ---------- */
.loja-card { border-radius: var(--raio-card-lg); background: var(--preto); color: var(--branco); padding: var(--esp-32); display: flex; flex-direction: column; gap: var(--esp-16); position: relative; overflow: hidden; }
.loja-card::before { content: ''; position: absolute; inset: 0; background: var(--volume-fundo-preto); pointer-events: none; }
.loja-card > * { position: relative; z-index: 1; }
.loja-card .tag { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--laranja); }
.loja-card h3 { font-size: 1.375rem; font-weight: 400; }
.loja-card .addr { font-size: 0.9375rem; color: var(--branco-70); }
.loja-card .row { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--branco-70); }
.loja-card .row svg { color: var(--laranja); flex: none; width: 16px; height: 16px; }
.loja-card .actions { display: flex; gap: 10px; margin-top: auto; padding-top: var(--esp-8); flex-wrap: wrap; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; gap: var(--esp-16); background: var(--branco); border-radius: var(--raio-card); overflow: hidden; box-shadow: var(--sombra-card); transition: transform var(--transicao), box-shadow var(--transicao); height: 100%; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-card-hover); }
.post-card .pc-media { aspect-ratio: 16/10; background: linear-gradient(160deg, var(--areia), var(--papel)); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-card .pc-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 0 var(--esp-24) var(--esp-24); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .cat { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--laranja); font-weight: 600; }
.post-card h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }
.post-card p { font-size: 0.875rem; flex: 1; }
.post-card .pc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; color: var(--text-on-light-muted); margin-top: 6px; }
.badge-soon { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--preto); color: var(--branco); padding: 5px 12px; border-radius: var(--raio-pill); }
.post-card.is-soon { opacity: 0.72; }
.post-card.is-soon .pc-media { filter: grayscale(0.3); }

.blog-section-title { display: flex; align-items: baseline; gap: 16px; margin-bottom: var(--esp-24); }
.blog-section-title h2 { font-size: var(--fs-display-s); font-weight: 500; letter-spacing: -0.01em; }
.blog-section-title span { color: var(--text-on-light-muted); font-size: 0.875rem; }

/* ---------- Produtos: subnav de categorias ---------- */
.cat-nav-wrap { position: sticky; top: var(--header-h); z-index: 90; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--divider-on-light); }
.cat-nav { display: flex; gap: 8px; overflow-x: auto; padding-block: 16px; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; padding: 10px 20px; border-radius: var(--raio-pill); font-size: 0.875rem; font-weight: 500; color: var(--text-on-light-muted); border: 1px solid var(--divider-on-light); transition: var(--transicao); }
.cat-nav a:hover { border-color: var(--preto); color: var(--text-on-light); }
.cat-nav a.is-active { background: var(--preto); color: var(--branco); border-color: var(--preto); }

.product-section { scroll-margin-top: calc(var(--header-h) + 64px); padding-block: var(--esp-64); border-bottom: 1px solid var(--divider-on-light); }
.product-section:last-child { border-bottom: none; }
.product-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--esp-24); margin-bottom: var(--esp-32); }
.product-head .ph-text { max-width: 620px; display: flex; flex-direction: column; gap: 12px; }
.product-head .idx { font-size: 0.8125rem; color: var(--text-on-light-muted); }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final-media { position: absolute; inset: 0; }
.cta-final-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-final-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.86) 100%); }
.cta-final-inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--esp-24); padding-block: var(--esp-96); }
.cta-final-inner h2 { max-width: 720px; }
.cta-final-inner .ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Formulário de contato ---------- */
.form-grid { display: grid; gap: var(--esp-20, 20px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--divider-on-light); border-radius: 12px; padding: 14px 16px; font-size: 0.9375rem;
  background: var(--branco); transition: border-color var(--transicao);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--laranja); outline: none; }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8125rem; color: var(--text-on-light-muted); }
.form-success { display: none; align-items: center; gap: 14px; padding: 20px 24px; border-radius: 14px; background: var(--papel); border: 1px solid var(--divider-on-light); margin-top: var(--esp-24); }
.form-success.is-visible { display: flex; }
.form-success svg { color: var(--laranja); flex: none; width: 28px; height: 28px; }
.contact-info-card { background: var(--preto); color: var(--branco); border-radius: var(--raio-card-lg); padding: var(--esp-40); display: flex; flex-direction: column; gap: var(--esp-24); position: relative; overflow: hidden; }
.contact-info-card::before { content: ''; position: absolute; inset: 0; background: var(--volume-fundo-preto); }
.contact-info-card > * { position: relative; z-index: 1; }
.contact-info-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-row .icon-circle { color: var(--laranja); width: 44px; height: 44px; }
.contact-info-row h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.contact-info-row p, .contact-info-row a { font-size: 0.875rem; color: var(--branco-70); }
.contact-info-row a:hover { color: var(--branco); }
.map-embed { border-radius: var(--raio-card-lg); overflow: hidden; border: 1px solid var(--divider-on-light); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }
.hours-table { display: flex; flex-direction: column; gap: 10px; font-size: 0.875rem; }
.hours-table .row { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--divider-on-dark); color: var(--branco-70); }
.hours-table .row strong { color: var(--branco); font-weight: 500; }

/* ---------- FAQ / acordeão ---------- */
.faq-item { border-bottom: 1px solid var(--divider-on-light); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; text-align: left; font-size: 1.0625rem; font-weight: 500; }
.faq-q svg { flex: none; transition: transform var(--transicao); color: var(--laranja); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--transicao); }
.faq-a p { padding-bottom: 22px; max-width: 68ch; }
.faq-item.is-open .faq-a { max-height: 320px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--preto); color: var(--branco-70); }
.footer-top { padding-block: var(--esp-64); display: grid; gap: var(--esp-48); grid-template-columns: 1fr; }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.2fr repeat(3, 1fr); gap: var(--esp-32); } }
.footer-brand { display: flex; flex-direction: column; gap: var(--esp-20, 20px); }
.footer-brand .brand-logo { height: 52px; }
.footer-brand p { font-size: 0.875rem; max-width: 32ch; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--divider-on-dark); display: flex; align-items: center; justify-content: center; transition: var(--transicao); }
.footer-social a:hover { background: var(--laranja); border-color: var(--laranja); color: var(--branco); }
.footer-col h5 { color: var(--branco); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--esp-20, 20px); font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--branco); }
.footer-col address { font-style: normal; }
.footer-badges { display: flex; flex-direction: column; gap: 14px; }
.footer-bottom { border-top: 1px solid var(--divider-on-dark); padding-block: var(--esp-24); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 0.8125rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--branco); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 300; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--branco); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28); transition: transform var(--transicao);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }
@media (min-width: 720px) { .whatsapp-float { right: 32px; bottom: 32px; } }

/* ---------- Reveal on scroll ----------
   Conteúdo é visível por padrão (funciona sem JS). A classe .reveal-enabled
   só é adicionada pelo main.js, então a ocultação inicial é progressive
   enhancement, nunca uma dependência de exibição. */
.reveal-enabled [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.reveal-enabled [data-reveal-group] > * { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
[data-reveal-group].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-group].is-visible > *:nth-child(n+6) { transition-delay: 380ms; }

/* ---------- Split media (texto + foto) ---------- */
.split { display: grid; gap: var(--esp-48); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--esp-64); } }
.split.reverse .split-media { order: -1; }
@media (min-width: 900px) { .split.reverse .split-media { order: 2; } }
.split-media { position: relative; border-radius: var(--raio-card-lg); overflow: hidden; aspect-ratio: 4/3.4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text { display: flex; flex-direction: column; gap: var(--esp-20, 20px); }
.split-text .bullets { display: flex; flex-direction: column; gap: 12px; }
.split-text .bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--text-on-light-muted); }
.bg-dark .split-text .bullets li { color: var(--branco-70); }
.split-text .bullets svg { color: var(--laranja); flex: none; margin-top: 3px; width: 18px; height: 18px; }

.roof-deco { position: absolute; pointer-events: none; opacity: 0.28; z-index: 0; }
