/* ==========================================================================
   IT Galaxy — Design Tokens & Base Styles
   ========================================================================== */

:root {
    --primary: #0B1F3D;
    --primary-dark: #061326;
    --accent: #2563EB;
    --accent-dark: #1D4ED8;
    --text: #0F172A;
    --muted: #64748B;
    --background: #F6F7FB;
    --surface: #FFFFFF;
    --border: #E2E5EC;
    --success: #16A34A;
    --success-bg: #ECFDF3;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --warning: #D97706;
    --warning-bg: #FFFBEB;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

    --container-width: 1240px;
    --header-height: 72px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--background);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text); }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

button { cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 0.6em 1em;
    z-index: 1000;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 56px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.section-head p {
    color: var(--muted);
    margin: 4px 0 0;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.grid {
    display: grid;
    gap: 24px;
}

.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Buttons --------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7em 1.4em;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    min-height: 44px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-dark {
    background: var(--primary);
    color: #fff;
}
.btn-dark:hover { background: var(--primary-dark); color: #fff; }

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-whatsapp {
    background: var(--success);
    color: #fff;
}
.btn-whatsapp:hover { background: #128C3B; color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 0.5em 1em; font-size: 0.875rem; min-height: 36px; }

/* Badges ------------------------------------------------------------------ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.3em 0.7em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.badge-new { background: var(--success-bg); color: var(--success); }
.badge-used { background: var(--warning-bg); color: var(--warning); }
.badge-refurbished { background: #EEF2FF; color: #4338CA; }
.badge-sale { background: var(--danger-bg); color: var(--danger); }
.badge-sample { background: #F1F5F9; color: var(--muted); }

.stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}
.stock::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.stock.in { color: var(--success); }
.stock.low { color: var(--warning); }
.stock.out { color: var(--danger); }

/* Forms -------------------------------------------------------------------- */

.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.field .required { color: var(--danger); }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.75em 1em;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    min-height: 44px;
}
.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: var(--danger);
}
.field-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

.field-hint {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 6px;
    display: block;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Alerts -------------------------------------------------------------------- */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
    border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: #15803D; border-color: #BBF7D0; }
.alert-danger { background: var(--danger-bg); color: #B91C1C; border-color: #FECACA; }
.alert-info { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.sample-notice { border-style: dashed; font-weight: 500; }
