/* ============================================================
   CHEIRO VERDE PIZZARIA — Design System Global
   Paleta extraída da logo oficial: Verde escuro + Creme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Dancing+Script:wght@600;700&display=swap');

/* ─── VARIÁVEIS ─────────────────────────────────────────── */
:root {
  /* Cores da identidade visual (extraídas da logo real) */
  --verde-escuro:    #1f4a2e;
  --verde-logo:      #2B5735;
  --verde-medio:     #3a7a4a;
  --verde-claro:     #4fa05a;
  --verde-neon:      #3dd68c;
  --creme:           #EDE0C4;
  --creme-claro:     #f7f2e8;

  /* Dark mode */
  --bg-primary:      #0d1f14;
  --bg-secondary:    #132118;
  --bg-card:         #1a2e1f;
  --bg-card-hover:   #1f3526;
  --bg-glass:        rgba(27, 46, 32, 0.7);
  --bg-overlay:      rgba(13, 31, 20, 0.85);

  /* Dourado / Destaque */
  --dourado:         #f5a623;
  --dourado-claro:   #ffc85a;
  --amarelo:         #ffdd57;

  /* Texto */
  --text-primary:    #f0ead8;
  --text-secondary:  #b8c4b0;
  --text-muted:      #7a9080;
  --text-dark:       #1a2e1f;

  /* Status */
  --success:         #3dd68c;
  --warning:         #f5a623;
  --error:           #e05454;
  --info:            #5ba3f5;

  /* Bordas */
  --border-color:    rgba(237, 224, 196, 0.12);
  --border-hover:    rgba(237, 224, 196, 0.3);

  /* Sombras */
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:       0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:       0 8px 40px rgba(0,0,0,0.5);
  --shadow-green:    0 4px 20px rgba(43, 87, 53, 0.4);
  --shadow-gold:     0 4px 20px rgba(245, 166, 35, 0.3);

  /* Raios de borda */
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       32px;
  --radius-full:     9999px;

  /* Espaçamentos */
  --space-xs:        4px;
  --space-sm:        8px;
  --space-md:        16px;
  --space-lg:        24px;
  --space-xl:        40px;
  --space-2xl:       64px;
  --space-3xl:       96px;

  /* Tipografia */
  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', system-ui, sans-serif;
  --font-script:     'Dancing Script', cursive;

  /* Transições */
  --transition-fast: 150ms ease;
  --transition-mid:  250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index */
  --z-base:          1;
  --z-dropdown:      100;
  --z-sticky:        200;
  --z-modal:         300;
  --z-toast:         400;
  --z-tooltip:       500;
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* ─── TIPOGRAFIA ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p { line-height: 1.7; }

.text-script {
  font-family: var(--font-script);
}

.text-display {
  font-family: var(--font-display);
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

/* ─── GRID ───────────────────────────────────────────────── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-lg); }

/* ─── FLEX ───────────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ─── CORES UTILITÁRIAS ─────────────────────────────────── */
.text-creme    { color: var(--creme); }
.text-verde    { color: var(--verde-neon); }
.text-dourado  { color: var(--dourado); }
.text-muted    { color: var(--text-muted); }
.text-success  { color: var(--success); }
.text-error    { color: var(--error); }

.bg-dark       { background: var(--bg-primary); }
.bg-card       { background: var(--bg-card); }
.bg-glass      { background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ─── SEÇÃO TITLE ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--dourado);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-title span {
  color: var(--verde-neon);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--verde-logo), var(--dourado));
  border-radius: var(--radius-full);
  margin: var(--space-md) auto;
}

/* ─── GLASS CARD ─────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

/* ─── BADGE ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-verde   { background: rgba(61, 214, 140, 0.15); color: var(--verde-neon); border: 1px solid rgba(61, 214, 140, 0.3); }
.badge-dourado { background: rgba(245, 166, 35, 0.15); color: var(--dourado); border: 1px solid rgba(245, 166, 35, 0.3); }
.badge-red     { background: rgba(224, 84, 84, 0.15); color: var(--error); border: 1px solid rgba(224, 84, 84, 0.3); }

/* ─── SEPARADOR DECORATIVO ───────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color));
}

.ornament::after {
  background: linear-gradient(90deg, var(--border-color), transparent);
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--verde-logo); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--verde-medio); }

/* ─── SELEÇÃO DE TEXTO ───────────────────────────────────── */
::selection {
  background: var(--verde-logo);
  color: var(--creme);
}

/* ─── RESPONSIVIDADE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
  .section { padding: var(--space-2xl) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  :root { font-size: 15px; }
  .container { padding: 0 var(--space-md); }
}
