/* ═══════════════════════════════════════════════
   TechPro SA — Base Styles
   ═══════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--tp-font-body);
    font-size: var(--tp-text-base);
    line-height: 1.65;
    color: var(--tp-gray-900);
    background: var(--tp-white);
    overflow-x: hidden;
}

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

a {
    color: var(--tp-primary);
    text-decoration: none;
    transition: color var(--tp-duration) var(--tp-ease);
}
a:hover { color: var(--tp-primary-dark); }
a:focus-visible {
    outline: 2px solid var(--tp-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tp-font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tp-gray-900);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--tp-text-5xl); margin-bottom: var(--tp-space-lg); }
h2 { font-size: var(--tp-text-4xl); margin-bottom: var(--tp-space-md); }
h3 { font-size: var(--tp-text-3xl); margin-bottom: var(--tp-space-md); }
h4 { font-size: var(--tp-text-2xl); margin-bottom: var(--tp-space-sm); }
h5 { font-size: var(--tp-text-xl);  margin-bottom: var(--tp-space-sm); }
h6 { font-size: var(--tp-text-lg);  margin-bottom: var(--tp-space-sm); }

p { margin-bottom: var(--tp-space-md); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

ul, ol {
    padding-left: var(--tp-space-lg);
    margin-bottom: var(--tp-space-md);
}

blockquote {
    border-left: 3px solid var(--tp-primary);
    padding-left: var(--tp-space-lg);
    font-style: italic;
    color: var(--tp-gray-700);
    margin: var(--tp-space-xl) 0;
}

/* ─── Selection ─── */
::selection {
    background: var(--tp-primary);
    color: var(--tp-white);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--tp-gray-200); }
::-webkit-scrollbar-thumb {
    background: var(--tp-gray-400);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--tp-gray-500); }

/* ─── Screen Reader Only ─── */
.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;
}

/* ─── Skip Link ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--tp-space-md);
    padding: var(--tp-space-sm) var(--tp-space-md);
    background: var(--tp-primary);
    color: var(--tp-white);
    font-weight: 600;
    z-index: 9999;
    border-radius: var(--tp-radius);
}
.skip-link:focus {
    top: var(--tp-space-sm);
}
