/* ============================================================
   LEANKEEP BASE STYLES
   Tokens, resets e utilitários para páginas múltiplas.
   Carregado antes do main.css (efeitos e seções).
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-carbon);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Blinker', 'Roboto', sans-serif;
    font-weight: 700;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------ */
:root {
    --color-carbon: #1E1E1E;
    --color-orange: #F38A00;
    --color-orange-hover: #DC7D00;
    --color-orange-dark: #AE6300;
    --color-gray: #E5E5E5;
    --color-gray-medium: #CCCCCC;
    --color-gray-dark: #888888;
    --color-dark-gray: #666666;
    --color-darker-gray: #444444;
    --color-light-orange: #FCE3C2;
    --color-orange-light: #FFB555;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-success: #10B981;
    --color-teal: #00A3A3;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    --shadow-sm: 0 1px 2px 0 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-orange: 0 10px 30px -5px rgba(243, 138, 0, 0.3);
}

/* ------------------------------------------------------------
   LAYOUT & UTILITIES
   ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container--narrow {
    max-width: 960px;
}

@media (max-width: 767px) {
    .container,
    .container--narrow {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.section {
    padding: 4rem 0;
}

.section--tight {
    padding: 2.5rem 0;
}

.section--dark {
    background-color: var(--color-carbon);
    color: var(--color-white);
}

.section--muted {
    background-color: #F9FAFB;
}

.section--highlight {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

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

.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: inline;
    }
    .container {
        padding: 0 2rem;
    }
}

.skip-link {
    position: absolute;
    top: -100vh;
    left: 1rem;
    background: var(--color-carbon);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    box-shadow: var(--shadow-md);
    z-index: 120;
}

.skip-link:focus {
    top: 1rem;
}

/* ------------------------------------------------------------
   TYPOGRAPHY HELPERS
   ------------------------------------------------------------ */
.section-label {
    color: var(--color-orange);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-label--light {
    color: rgba(255, 255, 255, 0.8);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-carbon);
    line-height: 1.2;
    margin-bottom: 2rem;
}

@media (max-width: 1023px) {
    .section-title {
        font-size: 32px;
        line-height: 1.25;
    }
}

.section-title--light {
    color: var(--color-white);
}

.section-header {
    margin-bottom: 3rem;
}

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

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-orange);
    color: var(--color-white);
    box-shadow: var(--shadow-orange);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--color-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(243, 138, 0, 0.4);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-gray);
    border: 1px solid var(--color-dark-gray);
}

.btn--outline:hover,
.btn--outline:focus {
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn--large,
.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn--full {
    width: 100%;
}

.btn--nav {
    padding: 0.625rem 1.25rem;
}

/* ------------------------------------------------------------
   CARDS (REUSABLE)
   ------------------------------------------------------------ */
.card {
    background-color: var(--color-white);
    border-radius: 1rem;
    border: 1px solid var(--color-carbon);
    padding: 2rem;
}

.card--shadow {
    box-shadow: var(--shadow-xl);
}

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

.card--dark {
    background-color: #2a2a2a;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ------------------------------------------------------------
   ACCESSIBILITY & MISC
   ------------------------------------------------------------ */
*:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

::selection {
    background-color: var(--color-orange);
    color: var(--color-white);
}
