/**
 * CSS Variables - Infinity Construtora
 *
 * Baseado na análise técnica da Grand Construtora
 * e Manual de Marca Infinity
 */

:root {
  /* ============================================
     CORES OFICIAIS - MANUAL DE MARCA
     ============================================ */

  /* Cores primárias */
  --infinity-black: #000000;
  --infinity-gold: #FFAB00;
  --infinity-white: #FFFFFF;

  /* Gradiente ouro metálico */
  --gold-gradient: linear-gradient(
    135deg,
    #C9A34A 0%,
    #F5D77C 25%,
    #FFEBB5 50%,
    #F5D77C 75%,
    #C9A34A 100%
  );

  /* Tons de cinza (da análise Grand) */
  --gray-dark: #333333;
  --gray-medium: #666666;
  --gray-light: #999999;
  --gray-lighter: #CCCCCC;
  --gray-lightest: #F5F5F5;

  /* ============================================
     TIPOGRAFIA - MONTSERRAT
     ============================================ */

  --font-family-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Pesos da fonte */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 800;

  /* Tamanhos - Mobile First */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.8;

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;
  --letter-spacing-widest: 0.2em;

  /* ============================================
     ESPAÇAMENTO (8px base)
     ============================================ */

  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 3rem;      /* 48px */
  --spacing-2xl: 4rem;     /* 64px */
  --spacing-3xl: 6rem;     /* 96px */
  --spacing-4xl: 8rem;     /* 128px */

  /* ============================================
     BORDAS E RAIOS
     ============================================ */

  --border-radius-none: 0;
  --border-radius-sm: 0.25rem;    /* 4px */
  --border-radius-md: 0.5rem;     /* 8px */
  --border-radius-lg: 1rem;       /* 16px */
  --border-radius-full: 9999px;

  --border-width: 1px;
  --border-width-thick: 2px;

  /* ============================================
     SOMBRAS (Da análise Grand)
     ============================================ */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.2);

  /* Sombra para cards em hover */
  --shadow-card-hover: 0 12px 24px rgba(0, 0, 0, 0.15);

  /* ============================================
     TRANSIÇÕES (Da análise Grand)
     ============================================ */

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Transições específicas */
  --transition-all: all 0.3s ease;
  --transition-transform: transform 0.3s ease;
  --transition-opacity: opacity 0.3s ease;
  --transition-color: color 0.3s ease;
  --transition-background: background 0.3s ease;
  --transition-shadow: box-shadow 0.3s ease;

  /* ============================================
     Z-INDEX HIERARCHY
     ============================================ */

  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;

  /* ============================================
     BREAKPOINTS (Mobile First)
     ============================================ */

  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;

  /* ============================================
     CONTAINER WIDTHS
     ============================================ */

  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-xxl: 1320px;

  /* ============================================
     HEADER (Da análise Grand)
     ============================================ */

  --header-height: 80px;
  --header-height-scrolled: 70px;
  --header-bg: transparent;
  --header-bg-scrolled: rgba(0, 0, 0, 0.95);
  --header-gradient: linear-gradient(
    109.46deg,
    rgba(0, 0, 0, 0.32) 1.57%,
    rgba(0, 0, 0, 0.04) 100%
  );

  /* ============================================
     CARDS (Da análise Grand)
     ============================================ */

  --card-width: 230px;
  --card-border-radius: 8px;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.15);
  --card-transition: all 0.3s ease;
  --card-hover-translate: -8px;

  /* ============================================
     BOTÕES
     ============================================ */

  --btn-padding-x: 2rem;
  --btn-padding-y: 0.75rem;
  --btn-border-radius: var(--border-radius-sm);
  --btn-transition: var(--transition-all);

  /* ============================================
     FORMULÁRIOS
     ============================================ */

  --input-padding-x: 1rem;
  --input-padding-y: 0.75rem;
  --input-border-radius: var(--border-radius-sm);
  --input-border-color: var(--gray-lighter);
  --input-focus-border-color: var(--infinity-gold);

  /* ============================================
     CAROUSEL (Da análise Grand)
     ============================================ */

  --carousel-height-mobile: 60vh;
  --carousel-height-desktop: 100vh;
  --carousel-overlay: rgba(0, 0, 0, 0.3);
  --carousel-transition: 0.5s ease;

  /* ============================================
     ANIMAÇÕES AOS (Da análise Grand)
     ============================================ */

  --aos-duration: 1000ms;
  --aos-easing: ease-in-out;
  --aos-offset: 100px;
}

/* ============================================
   MEDIA QUERIES - Ajustes Responsivos
   ============================================ */

@media (min-width: 768px) {
  :root {
    --font-size-3xl: 2.25rem;  /* 36px */
    --font-size-4xl: 3rem;     /* 48px */
    --font-size-5xl: 4rem;     /* 64px */
    --font-size-6xl: 5rem;     /* 80px */
  }
}

@media (min-width: 992px) {
  :root {
    --font-size-6xl: 6rem;     /* 96px */
  }
}

/* ============================================
   CLASSES UTILITÁRIAS RÁPIDAS
   ============================================ */

.infinity-gold { color: var(--infinity-gold); }
.infinity-black { color: var(--infinity-black); }
.infinity-white { color: var(--infinity-white); }

.bg-infinity-gold { background-color: var(--infinity-gold); }
.bg-infinity-black { background-color: var(--infinity-black); }
.bg-infinity-white { background-color: var(--infinity-white); }

.font-light { font-weight: var(--font-weight-light); }
.font-regular { font-weight: var(--font-weight-regular); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-black { font-weight: var(--font-weight-black); }

.letter-spacing-wide { letter-spacing: var(--letter-spacing-wide); }
.letter-spacing-wider { letter-spacing: var(--letter-spacing-wider); }
.letter-spacing-widest { letter-spacing: var(--letter-spacing-widest); }
