/* ==========================================================================
   INSTITUTO GUADAGNIN — CSS OFICIAL REESTRUTURADO
   Diretrizes do Manual da Marca & Briefing Executivo:
   - Granito: #303030 (RGB: 48, 48, 48)
   - Inox:    #CFCFCF (RGB: 207, 207, 207)
   - Cinza:   #747070 (RGB: 116, 112, 112)
   - Fundo:   #1C1C1C / #242424 / #303030 (Granito Profundo)
   - Títulos: Vonca (com fallback nobre Cinzel / Serif)
   - Textos:  Poppins
   - ZERO dourado, ZERO efeitos artificiais, ZERO notificações falsas
   ========================================================================== */

@font-face {
  font-family: 'Vonca';
  src: local('Vonca'), local('Vonca-Regular');
  font-display: swap;
}

:root {
  --granito: #303030;
  --granito-deep: #1A1A1A;
  --granito-surface: #242424;
  --granito-card: #2C2C2C;
  --granito-card-hover: #333333;
  --granito-border: rgba(207, 207, 207, 0.14);
  --granito-border-hover: rgba(207, 207, 207, 0.38);

  --inox: #CFCFCF;
  --inox-light: #F2F2F2;
  --inox-soft: #A3A3A3;
  --inox-muted: #808080;

  --cinza-suporte: #747070;
  --cinza-dark: #4A4747;

  --white: #FFFFFF;
  --wa-green: #25D366;
  --wa-hover: #1EBE5D;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--inox);
  background-color: var(--granito-deep);
  scrollbar-color: var(--granito-card) var(--granito-deep);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--granito-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--cinza-suporte);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--inox);
}

::selection {
  background: var(--inox);
  color: #1A1A1A;
}

:focus-visible {
  outline: 2px solid var(--inox);
  outline-offset: 3px;
}

/* TIPOGRAFIA OFICIAL */
h1, h2, h3, h4, .font-heading {
  font-family: 'Vonca', 'Cinzel', Georgia, serif;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p, span, a, input, select, textarea, button, .font-body {
  font-family: 'Poppins', system-ui, sans-serif;
}

/* HEADER VIDRO GRANITO ARQUITETÔNICO */
.glass-header {
  background: rgba(22, 22, 22, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* CARDS EDITORIAIS */
.card-craft {
  background: var(--granito-card);
  border: 1px solid var(--granito-border);
  border-radius: 6px;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

.card-craft:hover {
  border-color: var(--granito-border-hover);
  background: var(--granito-card-hover);
  transform: translateY(-2px);
}

/* BOTÕES DE CONVERSÃO — PADRÃO ARQUITETÔNICO INOX */
.btn-inox {
  background: var(--inox);
  color: #1A1A1A;
  font-weight: 600;
  letter-spacing: 0.14em;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.btn-inox:hover {
  background: #FFFFFF;
  color: #111111;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
}

.btn-outline-inox {
  background: transparent;
  color: var(--inox);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 500;
  letter-spacing: 0.14em;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn-outline-inox:hover {
  border-color: var(--inox);
  color: #FFFFFF;
  background: rgba(207, 207, 207, 0.06);
  transform: translateY(-1px);
}

/* MOLDURA EDITORIAL — DR. MAURÍCIO (SEM GRADIENTE SOBRE ROSTO/CORPO, ESTILO GALERIA) */
.editorial-portrait-frame {
  position: relative;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7);
}

.editorial-portrait-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151515;
  border-radius: 2px;
}

.editorial-portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 4px 4px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* BOTÃO WHATSAPP DISCRETO */
.btn-wa-header {
  background: var(--wa-green);
  color: #FFFFFF;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn-wa-header:hover {
  background: var(--wa-hover);
  transform: translateY(-1px);
}

/* NAVEGAÇÃO */
header nav a {
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* FAQ ITEMS */
.faq-item {
  border: 1px solid var(--granito-border);
  border-radius: 14px;
  background: var(--granito-surface);
  color: #E2E2E2;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--granito-border-hover);
}

.faq-item[open] {
  border-color: var(--inox);
  background: var(--granito-card);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-size: 0.975rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon-svg {
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--inox);
}

.faq-item[open] .faq-icon-svg {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.35rem 1.5rem;
  color: var(--inox);
  line-height: 1.75;
  font-size: 0.915rem;
}

/* WIDGET WHATSAPP FLUTUANTE DISCRETO (SEM BADGE FALSO, SEM PUSH AGRESSIVO) */
.wa-floating-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
  text-decoration: none;
}

.wa-floating-btn:hover {
  transform: scale(1.08);
  background: var(--wa-hover);
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .wa-floating-btn {
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }
}

/* FILTROS DE CASOS REAIS */
.case-filter-btn {
  user-select: none;
  cursor: pointer;
  border: 1px solid var(--granito-border);
  transition: all 0.2s var(--ease-out);
}
.case-filter-btn.active {
  background-color: var(--inox) !important;
  color: #1A1A1A !important;
  border-color: transparent !important;
}
.case-filter-btn:not(.active):hover {
  border-color: var(--inox);
  color: #FFFFFF;
}

/* ETAPAS DA EXPERIÊNCIA GUADAGNIN */
.step-number {
  font-family: 'Vonca', 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--inox);
}

/* FORMULÁRIO DE AGENDAMENTO */
.form-input {
  background: #242424;
  border: 1px solid var(--granito-border);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.925rem;
  width: 100%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--inox);
  background: #2A2A2A;
}

.form-input::placeholder {
  color: var(--cinza-suporte);
}

/* ADAPTAÇÃO MOBILE */
@media (max-width: 768px) {
  h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  h2 {
    font-size: 1.55rem !important;
    line-height: 1.3 !important;
  }
  .mobile-tight {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card-craft,
  .btn-inox,
  .btn-outline-inox,
  .faq-icon-svg,
  .wa-floating-btn {
    transition: none !important;
  }
}
