/* ===================================================
   MAIN.CSS - Variables, Reset, Typography, Layout
   Cihan Garage Motosiklet - cihanmotor.com
   =================================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Brand Colors */
    --color-brand-red: #C62828;
    --color-brand-red-light: #E53935;
    --color-brand-red-dark: #8E0000;

    /* Matte Black Theme */
    --color-bg-primary: #0A0A0A;
    --color-bg-secondary: #121212;
    --color-bg-tertiary: #1A1A1A;
    --color-bg-nav: rgba(10, 10, 10, 0.85);

    /* Text */
    --color-text-primary: #F5F5F5;
    --color-text-secondary: #B0B0B0;
    --color-text-accent: var(--color-brand-red);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-blur: 16px;
    --glass-blur-heavy: 24px;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-hero: 3.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-section: 5rem;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 72px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

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

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
}

p {
    overflow-wrap: break-word;
}

/* --- Typography Scale --- */
h1 {
    font-size: var(--font-size-3xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-2xl);
    letter-spacing: -0.01em;
}

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

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section--dark {
    background-color: var(--color-bg-secondary);
}

/* --- Text Utilities --- */
.text-accent {
    color: var(--color-text-accent);
}

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

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

/* --- Selection --- */
::selection {
    background-color: var(--color-brand-red);
    color: #fff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand-red);
}

/* --- Skip Navigation --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: fixed;
    top: -100%;
    left: var(--space-md);
    z-index: 9999;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-brand-red);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

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

/* --- Body Lock (for modals) --- */
body.no-scroll {
    overflow: hidden;
}
