/* ══════════════════════════════════════════════════════════════
   UPGRADES.CSS — JFAGENCIA LUXURY EDITORIAL SYSTEM
   Cores alinhadas com a logo dourada JF (#c7a779)
   Showcase 3D com screenshots reais dos 10 sites
   Segmentos com SVGs minimalistas e tipografia refinada
   ══════════════════════════════════════════════════════════════ */

:root {
  --gold-jf: #c7a779;
  --gold-jf-light: #dfc59e;
  --gold-jf-dark: #9b7c52;
  --gold-glow: rgba(199, 167, 121, 0.15);
  --bg-dark: #0c0f14;
  --bg-surface: #121721;
  --bg-surface-elevated: #171d29;
  --border-gold: rgba(199, 167, 121, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-main: #f5f4ef;
  --text-muted: #9ea4ae;
}

/* ── Scroll Reveal Fluido ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header Sticky Harmonioso ── */
.header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(12, 15, 20, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold) !important;
  transition: background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(10, 13, 18, 0.98) !important;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}
.header nav a.active {
  color: var(--gold-jf) !important;
}

/* ══════════════════════════════════════════════════════════════
   PORTFÓLIO — SHOWCASE 3D COM SCREENSHOTS REAIS
   Animação automática suave que para na posição final perfeita
   ══════════════════════════════════════════════════════════════ */

.portfolio-showcase {
  background: var(--bg-dark);
  color: var(--text-main);
  padding: 85px 5% 75px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.portfolio-showcase::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(199, 167, 121, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.portfolio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.portfolio-title-wrap h2 {
  font: 600 clamp(32px, 4vw, 54px)/1.15 Manrope, sans-serif;
  letter-spacing: -2px;
  margin: 0 0 12px;
  color: #fff;
}
.portfolio-title-wrap h2 .serif {
  color: var(--gold-jf);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.portfolio-title-wrap p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.6;
  margin: 0;
}

/* Controles de Navegação */
.portfolio-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.portfolio-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  color: var(--gold-jf);
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}
.portfolio-nav-btn:hover {
  background: var(--gold-jf);
  color: #0c0f14;
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--gold-glow);
}
.portfolio-counter {
  font: 600 13px Manrope, sans-serif;
  letter-spacing: 2px;
  color: var(--gold-jf);
  padding: 0 8px;
}

/* Palco Viewport 3D */
.showcase-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  overflow: visible;
  z-index: 2;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}
.showcase-viewport:active {
  cursor: grabbing;
}

.showcase-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  touch-action: pan-y;
}

/* Cards do Showcase */
.showcase-card {
  position: absolute;
  width: clamp(300px, 42vw, 560px);
  aspect-ratio: 16 / 10.5;
  border-radius: 14px;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s ease;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
}

.showcase-card:not(.active):hover {
  filter: brightness(0.95) !important;
  box-shadow: 0 25px 50px rgba(199, 167, 121, 0.25);
}

/* Mockup de Navegador Realista */
.browser-mockup {
  width: 100%;
  height: 100%;
  background: #141821;
  border-radius: 14px;
  border: 1px solid var(--border-gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.browser-header {
  height: 34px;
  background: #181e2b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: block;
}
.showcase-card.active .browser-dots i:nth-child(1) { background: #ff5f56; }
.showcase-card.active .browser-dots i:nth-child(2) { background: #ffbd2e; }
.showcase-card.active .browser-dots i:nth-child(3) { background: #27c93f; }

.browser-address {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--gold-jf-light);
  font-family: 'DM Sans', sans-serif;
  opacity: 0.85;
}
.browser-action {
  font-size: 13px;
  color: var(--gold-jf);
}

/* Tela / Screenshot Real com Rolamento Suave (Website Preview Scroll) */
.browser-screen {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #090c10;
  height: 320px;
}

.browser-screen img {
  width: 100%;
  height: auto;
  min-height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(0);
  transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Quando o usuário passa o mouse sobre o site: ele ROLA suavemente até o final da página! */
.showcase-card:hover .browser-screen img,
.showcase-card.active:hover .browser-screen img {
  transform: translateY(calc(-100% + 320px));
  transition: transform 6.5s cubic-bezier(0.15, 0.85, 0.35, 1);
}

/* Overlay sutil na base para não tampar a visualização do site */
.screen-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 13, 18, 0.95) 0%, rgba(10, 13, 18, 0.75) 70%, transparent 100%);
  padding: 16px 20px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

.screen-overlay-info {
  flex: 1;
  min-width: 0;
}

.screen-tag {
  font: 700 8.5px Manrope, sans-serif;
  letter-spacing: 1.5px;
  color: var(--gold-jf);
  margin-bottom: 3px;
  text-transform: uppercase;
  display: block;
}

.screen-overlay h3 {
  font: 600 16px/1.2 Manrope, sans-serif;
  letter-spacing: -0.4px;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-overlay p {
  display: none; /* remove texto longo que cobria a tela */
}

.screen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--gold-jf);
  color: #0c0f14;
  border-radius: 20px;
  font: 600 11px Manrope, sans-serif;
  letter-spacing: 0.3px;
  pointer-events: auto;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.screen-btn:hover {
  background: var(--gold-jf-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--gold-glow);
}

/* Barra Inferior Discreta de Status */
.showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  padding: 12px 20px;
  background: rgba(18, 23, 33, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.showcase-dots {
  display: flex;
  gap: 6px;
}
.showcase-dot {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.showcase-dot.active {
  background: var(--gold-jf);
  width: 32px;
  box-shadow: 0 0 10px var(--gold-glow);
}

.showcase-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.info-cat {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--gold-jf);
  font-weight: 700;
}
.info-name {
  font: 600 13px Manrope, sans-serif;
  color: #fff;
  white-space: nowrap;
}
.info-link {
  font: 600 11px Manrope, sans-serif;
  color: var(--gold-jf);
  border-bottom: 1px solid var(--gold-jf);
  padding-bottom: 1px;
  transition: gap 0.2s;
  display: inline-flex;
  gap: 4px;
  white-space: nowrap;
}
.info-link:hover {
  color: var(--gold-jf-light);
  border-color: var(--gold-jf-light);
}

/* ══════════════════════════════════════════════════════════════
   SEGMENTOS — DESIGN EDITORIAL REFINADO
   Sem emojis infantis · Ícones vetoriais dourados · Linhas finas
   ══════════════════════════════════════════════════════════════ */

.segments {
  background: #f7f6f1;
  color: #1a1e24;
  padding: 85px 5%;
}

.segments .section-label {
  color: var(--gold-jf-dark);
  border-color: rgba(199, 167, 121, 0.35);
}
.segments .serif {
  color: var(--gold-jf-dark);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.segments .section-heading > p {
  color: #5c626c;
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 45px;
}

.segment-card {
  padding: 28px 24px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(199, 167, 121, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.segment-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-jf);
  box-shadow: 0 12px 32px rgba(199, 167, 121, 0.16);
}

.segment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.segment-num {
  font: 700 13px Manrope, sans-serif;
  letter-spacing: 1px;
  color: var(--gold-jf-dark);
}
.segment-svg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(199, 167, 121, 0.1);
  border: 1px solid rgba(199, 167, 121, 0.25);
  display: grid;
  place-items: center;
  color: var(--gold-jf-dark);
  transition: all 0.3s ease;
}
.segment-card:hover .segment-svg {
  background: var(--gold-jf);
  color: #ffffff;
  transform: rotate(5deg) scale(1.05);
}

.segment-card h3 {
  font: 600 17px Manrope, sans-serif;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
  color: #171b22;
}
.segment-card p {
  font-size: 13px;
  color: #636a75;
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

.segment-badge {
  font: 700 8.5px Manrope, sans-serif;
  letter-spacing: 1.5px;
  color: var(--gold-jf-dark);
  border-top: 1px solid rgba(199, 167, 121, 0.2);
  padding-top: 14px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   PROPOSTA & CONSULTORIA ESTRATÉGICA (DESIGN CORPORATIVO PREMIUM)
   Sem preços expostos · Posicionamento de alto padrão
   ══════════════════════════════════════════════════════════════ */

.strategic-consulting {
  background: var(--bg-dark);
  color: var(--text-main);
  padding: 85px 5%;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.strategic-consulting .section-label {
  color: var(--gold-jf);
  border-color: var(--border-gold);
}

.consulting-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.consulting-title h2 {
  font: 600 clamp(32px, 3.8vw, 54px)/1.15 Manrope, sans-serif;
  letter-spacing: -2px;
  margin: 0 0 14px;
  color: #fff;
}
.consulting-title h2 .serif {
  color: var(--gold-jf);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.consulting-title p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin: 0;
}

.consulting-badge {
  padding: 22px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  max-width: 340px;
  flex-shrink: 0;
}
.consulting-badge .badge-tag {
  font: 700 8.5px Manrope, sans-serif;
  letter-spacing: 2px;
  color: var(--gold-jf);
  margin-bottom: 6px;
  display: block;
}
.consulting-badge strong {
  font: 600 16px Manrope, sans-serif;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}
.consulting-badge p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 45px;
}

.consulting-card {
  padding: 32px 28px;
  background: var(--bg-surface);
  border-radius: 14px;
  border: 1px solid rgba(199, 167, 121, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.consulting-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-jf);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.consulting-card .card-num {
  font: 700 22px Manrope, sans-serif;
  color: var(--gold-jf);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.consulting-card h3 {
  font: 600 19px Manrope, sans-serif;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 12px;
}
.consulting-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 22px;
  flex: 1;
}

.consulting-features {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}
.consulting-features li {
  font-size: 12px;
  color: #c9ced6;
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  line-height: 1.45;
}
.consulting-features li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 8px;
  color: var(--gold-jf);
}
.consulting-features li:last-child {
  margin-bottom: 0;
}

/* Box de CTA Consultiva */
.consulting-cta-box {
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(20, 26, 36, 0.95), rgba(14, 18, 25, 0.95));
  border: 1px solid var(--gold-jf);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.cta-box-text h3 {
  font: 600 22px Manrope, sans-serif;
  color: #fff;
  letter-spacing: -0.6px;
  margin: 0 0 6px;
}
.cta-box-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 620px;
}
.cta-box-actions {
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   DIFERENCIAIS & FUNDADOR
   ══════════════════════════════════════════════════════════════ */

.differentials {
  background: #f0eee7;
  padding: 80px 5%;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.diff-card {
  padding: 28px 22px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(199, 167, 121, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}
.diff-number {
  font: 700 24px Manrope, sans-serif;
  color: var(--gold-jf);
  display: block;
  margin-bottom: 12px;
}
.diff-card h3 {
  font: 600 16px Manrope, sans-serif;
  color: #171b22;
  margin: 0 0 8px;
}
.diff-card p {
  font-size: 13px;
  color: #636a75;
  line-height: 1.6;
  margin: 0;
}

.founder-extras {
  display: flex;
  gap: 30px;
  margin: 28px 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.founder-stat strong {
  font: 700 24px Manrope, sans-serif;
  color: var(--gold-jf);
  display: block;
}
.founder-stat span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   WHATSAPP FLUTUANTE
   ══════════════════════════════════════════════════════════════ */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.65);
}
.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: whatsapp-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes whatsapp-ping {
  0% { transform: scale(1); opacity: 0.7; }
  75%, 100% { transform: scale(1.45); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVIDADE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .segments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .consulting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .consulting-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .consulting-badge {
    max-width: 100%;
    width: 100%;
  }
  .showcase-viewport {
    height: 460px;
  }
  .showcase-card {
    width: clamp(280px, 60vw, 480px);
  }
}

@media (max-width: 700px) {
  .portfolio-showcase {
    padding: 60px 6% 50px;
  }
  .portfolio-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .showcase-viewport {
    height: 380px;
  }
  .showcase-card {
    width: 86vw;
  }
  .browser-header {
    height: 28px;
    padding: 0 10px;
  }
  .browser-address {
    font-size: 9px;
  }
  .screen-overlay {
    padding: 14px 16px;
  }
  .screen-overlay h3 {
    font-size: 15px;
  }
  .showcase-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
  }
  
  .segments {
    padding: 55px 6%;
  }
  .segments-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .segment-card {
    padding: 22px 18px;
  }
  
  .strategic-consulting {
    padding: 55px 6%;
  }
  .consulting-cta-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px;
  }
  
  .differentials {
    padding: 55px 6%;
  }
  .diff-grid {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .showcase-card {
    transition: none !important;
  }
  .whatsapp-pulse {
    animation: none;
  }
}
