/* ===================================================
   CORE.CSS — Variables, Reset, Base, Lenis Overrides
   Pellizzari Advocacia Estratégica v3.0
   =================================================== */

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

/* ============ Design Tokens ============ */
:root {
  /* Cores Principais */
  --azul-profundo: #001527;
  --dourado-fosco: #B6A281;
  --branco: #ffffff;
  --cinza-claro: #f8f9fa;
  --cinza-medio: #6c757d;
  --cinza-escuro: #343a40;

  /* Tipografia */
  --fonte-principal: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fonte-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fonte-secundaria: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Tamanhos de Fonte — Fluid Typography */
  --tamanho-base: 16px;
  --tamanho-h1: clamp(2.25rem, 1.5rem + 3.75vw, 3.5rem);
  --tamanho-h2: clamp(1.75rem, 1.25rem + 2.5vw, 2.5rem);
  --tamanho-h3: clamp(1.375rem, 1.1rem + 1.375vw, 1.8rem);
  --tamanho-xl: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --tamanho-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --tamanho-sm: 0.875rem;
  --tamanho-xs: 0.75rem;

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Espaçamento */
  --espacamento-xs: 8px;
  --espacamento-sm: 16px;
  --espacamento-md: 24px;
  --espacamento-lg: 32px;
  --espacamento-xl: 48px;
  --espacamento-xxl: 80px;

  /* Bordas */
  --border-radius-sm: 8px;
  --border-radius-md: 10px;
  --border-radius-lg: 15px;
  --border-radius-xl: 20px;
  --border-radius-pill: 30px;

  /* Sombras — Lighter */
  --sombra-leve: 0 1px 6px rgba(0, 21, 39, 0.06);
  --sombra-media: 0 4px 12px rgba(0, 21, 39, 0.05);
  --sombra-forte: 0 10px 24px rgba(0, 21, 39, 0.07);
  --sombra-hover: 0 12px 32px rgba(0, 21, 39, 0.06);
  --sombra-gold: 0 8px 20px rgba(182, 162, 129, 0.2);

  /* Transições */
  --transicao-rapida: all 0.3s ease;
  --transicao-suave: all 0.6s ease;

  /* Animação — easings & durations */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.3s;
  --duration-normal: 0.6s;
  --duration-slow: 1.2s;

  /* Layout */
  --header-height: 80px;
  --blur-glass: 20px;

  /* Fotos dos Sócios */
  --diametro-socio: 300px;
  --borda-socio: 4px;
  --cor-borda-socio: var(--dourado-fosco);
}

/* ============ Base Styles ============ */
html {
  font-size: var(--tamanho-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--fonte-principal);
  line-height: 1.6;
  color: var(--azul-profundo);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============ Lenis Smooth Scroll Overrides ============ */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ============ Grain Texture Overlay ============ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9998;
}

/* ============ Custom Scrollbar ============ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--azul-profundo);
}

::-webkit-scrollbar-thumb {
  background: var(--dourado-fosco);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a89274;
}

/* ============ Selection Color ============ */
::selection {
  background: var(--dourado-fosco);
  color: var(--azul-profundo);
}
