/**
 * TERRIBILE FOGÕES - BASE STYLES
 * Variables, Reset & Typography
 */

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
  /* Colors */
  --color-primary: #E8603C;
  --color-primary-dark: #D14B28;
  --color-primary-light: #F47A5A;
  --color-black: #1A1A1A;
  --color-gray-dark: #2D2D2D;
  --color-gray: #6B6B6B;
  --color-gray-light: #E5E5E5;
  --color-white: #FFFFFF;
  --color-off-white: #F8F8F8;
  --color-gray-transparent: rgba(71, 62, 62, 0.568);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(26, 26, 26, 0.1);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.15);
  --shadow-lg: 0 8px 24px rgba(26, 26, 26, 0.2);
  --shadow-xl: 0 16px 48px rgba(26, 26, 26, 0.25);
  
  /* Typography */
  --font-primary: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x: clip nao cria scroll container, entao nao quebra position: sticky */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-dark);
  background-color: var(--color-white);
  overflow-x: clip;
}

/* Prevent text overflow on mobile */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure headings also wrap */
h1, h2, h3, h4, h5, h6, p, span {
  word-break: break-word;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-primary-dark);
}

/* ============================================
   MEDIA
   ============================================ */

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

/* ============================================
   LISTS
   ============================================ */

ul, ol {
  list-style: none;
}

/* ============================================
   FORMS
   ============================================ */

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}