/* ============================================================
   WEEZY AGENCY — global.css
   Reset · Variáveis · Tipografia · Utilitários
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Cores primárias */
  --weezy-lime:    #95F21C;
  --weezy-forest:  #12AD61;
  --weezy-black:   #000000;
  --weezy-white:   #FFFFFF;

  /* Extensões */
  --weezy-charcoal:  #111111;
  --weezy-dark-card: #1A1A1A;
  --weezy-gray-900:  #1F1F1F;
  --weezy-gray-700:  #3D3D3D;
  --weezy-gray-500:  #6B6B6B;
  --weezy-gray-300:  #B0B0B0;
  --weezy-gray-100:  #F0F0EC;
  --weezy-border-dark:  rgba(255,255,255,0.08);
  --weezy-border-light: rgba(0,0,0,0.08);

  /* Tipografia */
  --font-display: 'Urbanist', sans-serif;
  --font-body:    'Urbanist', sans-serif;

  /* Layout */
  --container-max:   1280px;
  --container-pad:   clamp(24px, 5vw, 80px);
  --section-pad-y:   clamp(80px, 10vw, 140px);

  /* Espaçamento */
  --gap-sm:  16px;
  --gap-md:  32px;
  --gap-lg:  64px;
  --gap-xl:  96px;

  /* Bordas */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 100px;
}

/* ── 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);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--weezy-white);
  background-color: var(--weezy-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ── Scrollbar Customizada ──────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--weezy-black);
}
::-webkit-scrollbar-thumb {
  background: var(--weezy-gray-700);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--weezy-lime);
}

/* ── Seleção de Texto ──────────────────────────────────────── */
::selection {
  background: rgba(149, 242, 28, 0.25);
  color: var(--weezy-white);
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Tipografia ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.text-display {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.text-h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.text-h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.text-h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.text-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
}

.text-caption {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-lime    { color: var(--weezy-lime); }
.text-forest  { color: var(--weezy-forest); }
.text-white   { color: var(--weezy-white); }
.text-gray300 { color: var(--weezy-gray-300); }
.text-gray500 { color: var(--weezy-gray-500); }

em.highlight {
  font-style: normal;
  color: var(--weezy-lime);
}

/* ── Section Layout ─────────────────────────────────────────── */
.section {
  padding: var(--section-pad-y) 0;
}

.section-dark  { background-color: var(--weezy-black); }
.section-card  { background-color: var(--weezy-charcoal); }
.section-light { background-color: var(--weezy-gray-100); }
.section-green { background-color: var(--weezy-forest); }

.section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-header.centered {
  text-align: center;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--weezy-lime);
  margin: 24px 0;
}

.section-divider.centered {
  margin: 24px auto;
}

/* ── Grid Utilitários ──────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Utilitários de Visibilidade ────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Custom Cursor ─────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, select, input, textarea, .faq-question, .portfolio-card, .pf-card, .sv-card, .dropdown-link, .nav-link, .slider-btn, .slider-dot, .hv-period {
    cursor: none !important;
  }
  
  .custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--weezy-lime);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease;
  }
  
  .custom-cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--weezy-lime);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99998;
    transition: width 0.22s cubic-bezier(0.1, 0.8, 0.25, 1), 
                height 0.22s cubic-bezier(0.1, 0.8, 0.25, 1), 
                border-color 0.22s ease, 
                background-color 0.22s ease;
  }
  
  /* Estados ativos */
  .custom-cursor.hover {
    width: 4px;
    height: 4px;
    background-color: var(--weezy-white);
  }
  
  .custom-cursor-ring.hover {
    width: 52px;
    height: 52px;
    border-color: var(--weezy-lime);
    background-color: rgba(149, 242, 28, 0.15);
  }

  .custom-cursor-ring.click {
    width: 24px;
    height: 24px;
    background-color: rgba(149, 242, 28, 0.3);
    border-color: var(--weezy-lime);
  }
}
