/* =========================================================
   DECOR GRAMAS — DESIGN SYSTEM v2 (Fase 2.2)
   Carregado DEPOIS de main/animations/responsive em todas as páginas.
   1. Tokens novos (não remove nenhum token antigo)
   2. Header + mega-menu
   3. Menu mobile
   4. Footer
   5. WhatsApp flutuante
   6. Componentes das páginas novas (prefixo .v2-)
   7. Responsivo
   ========================================================= */

/* 1. TOKENS ------------------------------------------------ */
:root {
  --stone-900: #1F2321;   /* grafite esverdeado */
  --stone-700: #3B403C;
  --stone-600: #5E625D;   /* cinza mineral */
  --stone-300: #C9C6BD;   /* concreto claro */
  --stone-100: #ECEAE4;   /* pedra clara */
  --sand:      #D8CBB3;   /* areia */
  --sand-700:  #8A6F45;
  --accent-construcao: var(--stone-700);
  --accent-reformas:   var(--sand-700);
  --accent-grama:      var(--green-700);
}

/* 2. HEADER + MEGA-MENU ------------------------------------ */
.header .nav-desktop { gap: 2px; }
.header .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.header-cta .btn-wa .wa-icon { width: 16px; height: 16px; }

.nav-mega { position: static; }
.header .container { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: var(--gutter); right: var(--gutter);
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px 40px;
  padding: 32px 36px 0;
  background: var(--paper); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
/* ponte invisível para o mouse não "cair" entre o link e o painel */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-mega:hover .mega,
.nav-mega:focus-within .mega,
.nav-mega.open .mega { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega-col { display: flex; flex-direction: column; }
.mega-label {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.mega-label-spaced { margin-top: 22px; }
.mega a {
  font-size: 14.5px; color: var(--ink-2); padding: 7px 0;
  border-radius: 6px; transition: color .25s var(--ease), transform .25s var(--ease);
}
.mega a:hover { color: var(--green-700); transform: translateX(3px); }
.mega .ext { font-size: 12px; opacity: .6; }
.mega-cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 18px; }
.mega-cities-grid a { font-size: 14px; }
.mega .mega-footer {
  grid-column: 1 / -1; margin: 22px -36px 0; padding: 18px 36px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); background: var(--bone);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-weight: 500; color: var(--green-800);
}
.mega .mega-footer:hover { transform: none; background: var(--green-50); }

/* 3. MENU MOBILE ------------------------------------------- */
.mobile-footer .mob-call { gap: 8px; }
.mob-group.open .mob-group-body { max-height: 640px; }

/* 4. FOOTER ------------------------------------------------ */
.site-footer .footer-top { grid-template-columns: 1.3fr 1fr 1fr 0.9fr 1.1fr; gap: 40px; }
.site-footer .footer-tagline {
  margin: 22px 0 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-300);
}
.site-footer .footer-tagline + p { margin-top: 12px; }
.site-footer .footer-social svg { width: 18px; height: 18px; }
/* títulos de coluna: h2 (ordem de títulos acessível) com a mesma aparência do antigo h5 */
.site-footer .footer-title {
  font-family: var(--font-display); font-style: italic;
  font-size: 15px; font-weight: 400; color: var(--bone);
  margin-bottom: 22px; letter-spacing: -0.01em; line-height: 1.4;
}
.site-footer .footer-contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.site-footer .footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .footer-contact svg { flex-shrink: 0; margin-top: 3px; width: 15px; height: 15px; opacity: .7; }

/* 5. WHATSAPP FLUTUANTE: animação mais discreta (doc 05 §3.6) */
.whatsapp-float { animation: none; }
.whatsapp-float::before { animation-duration: 3.6s; opacity: .25; }

/* 6. PÁGINAS NOVAS ----------------------------------------- */
.v2 .section { padding: clamp(80px, 10vw, 128px) 0; }
.v2-stone { background: var(--stone-100); }
.v2-num {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: .18em;
  color: var(--ink-3); text-transform: uppercase;
}
.v2-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.v2-head .section-title { margin-top: 14px; }
.v2-head .section-lead { margin-top: 0; }
.v2-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px;
  color: var(--green-800); border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.v2-link:hover { gap: 12px; color: var(--green-600); }
.v2-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(251,250,246,.92); color: var(--ink-2);
  padding: 6px 10px; border-radius: 100px; backdrop-filter: blur(6px);
}

/* Hero (home e hub) */
.v2-hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: flex-end;
  color: var(--bone); background: var(--green-900); overflow: hidden; isolation: isolate;
}
.v2-hero-media { position: absolute; inset: 0; z-index: -2; }
.v2-hero-media video, .v2-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.v2-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,42,32,.55) 0%, rgba(15,42,32,.15) 35%, rgba(15,42,32,.78) 100%),
    linear-gradient(90deg, rgba(15,42,32,.55), transparent 65%);
}
.v2-hero .container { width: 100%; padding-top: 140px; padding-bottom: clamp(48px, 7vw, 88px); }
.v2-hero .eyebrow { color: var(--green-300); }
.v2-hero .eyebrow::before { background: var(--green-300); }
.v2-hero h1 {
  font-family: var(--font-display); font-weight: 400; font-variation-settings: "opsz" 144;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -0.03em;
  margin: 22px 0 24px; max-width: 16ch;
}
.v2-hero h1 em { font-style: italic; color: var(--green-300); text-shadow: 0 2px 24px rgba(15,42,32,.45); }
.v2-hero h1, .v2-hero-lead { text-shadow: 0 2px 24px rgba(15,42,32,.35); }
.v2 .cta-final .availability { display: flex; justify-content: center; }
.v2-hero-lead { font-size: clamp(16px, 1.4vw, 19px); color: rgba(247,244,237,.85); max-width: 56ch; line-height: 1.6; }
.v2-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.v2-hero-facts {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 48px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(247,244,237,.18);
}
.v2-hero-facts strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); color: var(--bone); }
.v2-hero-facts span { font-size: 13px; color: rgba(247,244,237,.65); }
.v2-hero--page { min-height: 72vh; }
.v2-hero--page::after {
  background:
    linear-gradient(180deg, rgba(15,42,32,.6) 0%, rgba(15,42,32,.3) 40%, rgba(15,42,32,.82) 100%),
    linear-gradient(90deg, rgba(15,42,32,.75), rgba(15,42,32,.15) 70%);
}
.v2-hero .breadcrumb-v2 { font-size: 13px; color: rgba(247,244,237,.7); display: flex; gap: 8px; }
.v2-hero .breadcrumb-v2 a:hover { color: var(--bone); }

/* Especialidades */
.v2-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.v2-spec {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.v2-spec:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.v2-spec-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-100); }
.v2-spec-media img, .v2-spec-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.v2-spec:hover .v2-spec-media img { transform: scale(1.03); }
.v2-spec-body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.v2-spec-body .v2-num { color: var(--spec-accent, var(--green-700)); }
.v2-spec h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.05; }
.v2-spec p { color: var(--ink-3); font-size: 15px; }
.v2-spec ul { list-style: none; display: grid; gap: 6px; margin: 2px 0 8px; }
.v2-spec li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.v2-spec li svg { color: var(--spec-accent, var(--green-700)); flex-shrink: 0; }
.v2-spec .v2-link { margin-top: auto; align-self: flex-start; color: var(--spec-accent, var(--green-800)); }
.v2-spec[data-spec="construcao"] { --spec-accent: var(--accent-construcao); }
.v2-spec[data-spec="reformas"] { --spec-accent: var(--accent-reformas); }
.v2-spec[data-spec="grama"] { --spec-accent: var(--accent-grama); }

/* Ilustrações conceituais (SVG) */
.v2-illus { width: 100%; height: 100%; display: block; }
.v2-illus--construcao { background: linear-gradient(160deg, #E4E2DB, #D3D0C6); }
.v2-illus--reformas { background: linear-gradient(160deg, #EDE5D6, #DCCFB8); }

/* Blocos de especialidade (texto + ilustração) */
.v2-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.v2-split.reverse > :first-child { order: 2; }
.v2-split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.v2-split h2 { margin-top: 14px; }
.v2-split .section-lead { margin-top: 20px; }
.v2-checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 32px 0 36px; }
.v2-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.v2-checks svg { flex-shrink: 0; margin-top: 2px; color: var(--green-600); }
.v2-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.v2-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Grade de aplicações (fotos reais) */
.v2-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.v2-app {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--green-900); color: var(--bone); isolation: isolate;
}
.v2-app img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.v2-app::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(15,42,32,.85)); }
.v2-app:hover img { transform: scale(1.04); }
.v2-app-body { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.v2-app-body strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.v2-app-body span { font-size: 13px; color: rgba(247,244,237,.75); }
.v2-app--wide { grid-column: span 2; aspect-ratio: auto; }

/* Projetos reais */
.v2-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.v2-project { display: flex; flex-direction: column; gap: 14px; }
.v2-project figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone-100); }
.v2-project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.v2-project:hover img { transform: scale(1.03); }
.v2-project .pin { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.v2-project h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.2; }

/* Comparador antes/depois */
.v2-compare {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  user-select: none; touch-action: pan-y; box-shadow: var(--shadow); --pos: 50%;
}
.v2-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.v2-compare .after { clip-path: inset(0 0 0 var(--pos)); }
.v2-compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--bone);
  transform: translateX(-1px);
}
.v2-compare .handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--bone); color: var(--green-900);
  display: grid; place-items: center; font-size: 16px; letter-spacing: 2px; box-shadow: var(--shadow);
}
.v2-compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.v2-compare .tag {
  position: absolute; top: 14px; z-index: 2; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(15,42,32,.7); color: var(--bone); padding: 6px 10px; border-radius: 100px;
}
.v2-compare .tag.l { left: 14px; } .v2-compare .tag.r { right: 14px; }

/* Benefícios */
.v2-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.v2-benefit { background: var(--paper); padding: 34px 32px; display: flex; flex-direction: column; gap: 12px; }
.v2-benefit svg { color: var(--green-600); }
.v2-benefit h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.v2-benefit p { font-size: 14.5px; color: var(--ink-3); }

/* Processo */
.v2-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.v2-step { border-top: 1px solid rgba(247,244,237,.2); padding-top: 24px; counter-increment: step; }
.v2-step::before { content: "0" counter(step); font-family: var(--font-display); font-size: 40px; color: var(--green-300); display: block; margin-bottom: 14px; }
.v2-step h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--bone); margin-bottom: 8px; }
.v2-step p { font-size: 14.5px; color: rgba(247,244,237,.7); }

/* Avaliações */
.v2-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.v2-review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.v2-review .stars { color: var(--gold); display: flex; gap: 2px; }
.v2-review .stars svg { fill: currentColor; }
.v2-review blockquote { font-family: var(--font-display); font-size: 19px; line-height: 1.45; color: var(--ink); }
.v2-review cite { font-style: normal; font-size: 13.5px; color: var(--ink-3); margin-top: auto; }
.v2-review cite strong { display: block; color: var(--ink-2); font-weight: 600; }
.v2-score { display: flex; align-items: baseline; gap: 14px; }
.v2-score strong { font-family: var(--font-display); font-size: 56px; font-weight: 400; line-height: 1; }

/* Cidades */
.v2-cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.v2-cities a {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
  border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2);
  transition: color .3s var(--ease), padding .3s var(--ease);
}
.v2-cities a:hover { color: var(--green-700); padding-left: 6px; }
.v2-cities a svg { opacity: .4; }

/* Produtos (hub) */
.v2-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.v2-product { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.v2-product h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.v2-product p { font-size: 14.5px; color: var(--ink-3); }
.v2-product dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin-top: 4px; }
.v2-product dt { color: var(--ink-3); }
.v2-product dd { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* 7. RESPONSIVO -------------------------------------------- */
@media (max-width: 1240px) {
  .header .nav-link { padding: 9px 9px; font-size: 13.5px; }
}
@media (max-width: 1100px) {
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .v2-head, .v2-split { grid-template-columns: 1fr; gap: 32px; }
  .v2-split.reverse > :first-child { order: 0; }
  .v2-specs, .v2-reviews, .v2-products { grid-template-columns: 1fr 1fr; }
  .v2-apps { grid-template-columns: repeat(2, 1fr); }
  .v2-projects { grid-template-columns: 1fr 1fr; }
  .v2-benefits { grid-template-columns: 1fr 1fr; }
  .v2-steps { grid-template-columns: 1fr 1fr; }
  .v2-cities { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .site-footer .footer-top { grid-template-columns: 1fr; }
  .v2-hero h1 { max-width: none; }
  .v2-hero::after { background: linear-gradient(180deg, rgba(15,42,32,.6) 0%, rgba(15,42,32,.55) 45%, rgba(15,42,32,.85) 100%); }
  .v2-hero-facts { grid-template-columns: 1fr 1fr; gap: 20px; }
  .v2-specs, .v2-reviews, .v2-products, .v2-projects, .v2-benefits, .v2-steps { grid-template-columns: 1fr; }
  .v2-apps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .v2-app { aspect-ratio: 4 / 5; }
  .v2-app-body strong { font-size: 18px; }
  .v2-app--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
  .v2-checks { grid-template-columns: 1fr; }
  .v2-cities { grid-template-columns: 1fr 1fr; }
  .v2-hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-hero-media video { display: none; }
}
