/**
 * CONSTRUBÃO - Sistema de Design
 * Estilos base, variáveis CSS e tipografia
 */

/* ============================================
   Google Fonts
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
    /* Cores Principais */
    --color-primary: #FFBA00;
    --color-primary-dark: #E5A800;
    --color-primary-light: #FFD54F;

    --color-secondary: #0A2A3F;
    --color-secondary-dark: #061C2B;
    --color-secondary-light: #134567;

    --color-accent: #FF9933;
    --color-accent-dark: #E5852E;

    /* Cores de Estado */
    --color-success: #31A24C;
    --color-error: #E74C3C;
    --color-warning: #F39C12;
    --color-info: #3498DB;

    /* WhatsApp */
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #128C7E;

    /* Neutros */
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-gray-50: #FAFAFA;
    --color-gray-100: #F5F5F5;
    --color-gray-200: #EEEEEE;
    --color-gray-300: #E0E0E0;
    --color-gray-400: #BDBDBD;
    --color-gray-500: #9E9E9E;
    --color-gray-600: #757575;
    --color-gray-700: #616161;
    --color-gray-800: #424242;
    --color-gray-900: #212121;

    /* Background */
    --color-background: var(--color-primary);
    --color-background-muted: #FFF5E6;
    --color-background-card: var(--color-white);

    /* Texto */
    --color-text: var(--color-black);
    --color-text-muted: #666666;
    --color-text-light: var(--color-white);
    --color-text-on-primary: var(--color-black);
    --color-text-on-secondary: var(--color-white);

    /* Bordas */
    --color-border: #E0E0E0;
    --color-border-light: rgba(255, 255, 255, 0.2);

    /* Fontes */
    --font-display: 'Bebas Neue', sans-serif;
    --font-subtitle: 'Barlow Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Tamanhos de Fonte */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 4rem;        /* 64px */

    /* Títulos específicos */
    --text-hero: 4rem;
    --text-hero-sm: 2.5rem;
    --text-section: 3rem;
    --text-section-sm: 2rem;

    /* Espaçamentos */
    --spacing-1: 0.25rem;    /* 4px */
    --spacing-2: 0.5rem;     /* 8px */
    --spacing-3: 0.75rem;    /* 12px */
    --spacing-4: 1rem;       /* 16px */
    --spacing-5: 1.25rem;    /* 20px */
    --spacing-6: 1.5rem;     /* 24px */
    --spacing-8: 2rem;       /* 32px */
    --spacing-10: 2.5rem;    /* 40px */
    --spacing-12: 3rem;      /* 48px */
    --spacing-16: 4rem;      /* 64px */
    --spacing-20: 5rem;      /* 80px */
    --spacing-24: 6rem;      /* 96px */

    /* Border Radius */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px -4px rgba(0, 0, 0, 0.15);
    --shadow-button: 0 4px 14px -4px rgba(255, 186, 0, 0.4);
    --shadow-hover: 0 8px 30px -8px rgba(0, 0, 0, 0.2);

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #FFBA00, #FFB000);
    --gradient-accent: linear-gradient(135deg, #FF9933, #FF7F1F);
    --gradient-hero: linear-gradient(135deg, rgba(255, 186, 0, 0.95), rgba(255, 176, 0, 0.9));
    --gradient-dark: linear-gradient(135deg, #0A2A3F, #061C2B);

    /* Transições */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;

    /* Container */
    --container-max: 1400px;
    --container-padding: 1.5rem;
}

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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    list-style: none;
}

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

/* ============================================
   Tipografia
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

h1 {
    font-size: var(--text-hero-sm);
}

h2 {
    font-size: var(--text-section-sm);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

@media (min-width: 768px) {
    h1 {
        font-size: var(--text-hero);
    }

    h2 {
        font-size: var(--text-section);
    }
}

p {
    margin-bottom: var(--spacing-4);
}

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

.font-subtitle {
    font-family: var(--font-subtitle);
}

.font-body {
    font-family: var(--font-body);
}

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

/* ============================================
   Seções
   ============================================ */
section {
    padding: var(--spacing-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-12);
}

.section-title {
    margin-bottom: var(--spacing-4);
}

.section-subtitle {
    font-family: var(--font-subtitle);
    font-size: var(--text-lg);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* Backgrounds de seção */
.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.bg-muted {
    background-color: var(--color-background-muted);
}

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

/* ============================================
   Grid System
   ============================================ */
.grid {
    display: grid;
    gap: var(--spacing-6);
}

.grid-2 {
    grid-template-columns: repeat(1, 1fr);
}

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

.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ============================================
   Flexbox Utilities
   ============================================ */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-2 {
    gap: var(--spacing-2);
}

.gap-4 {
    gap: var(--spacing-4);
}

.gap-6 {
    gap: var(--spacing-6);
}

.gap-8 {
    gap: var(--spacing-8);
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-white {
    color: var(--color-white);
}

.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.hidden {
    display: none !important;
}

.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;
}

/* ============================================
   Aspect Ratios
   ============================================ */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-photo {
    aspect-ratio: 4 / 3;
}

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

::-webkit-scrollbar-track {
    background: var(--color-background-muted);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary-light);
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: var(--color-primary);
    color: var(--color-black);
}

/* ============================================
   Focus Visible
   ============================================ */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }

    .no-print {
        display: none !important;
    }
}
