/* =========================================================
   styles.css — ruční CSS pro web Alpis / Reusch
   Nahrazuje Tailwind CDN. Žádný build, žádný Node.js.
   Pouze třídy skutečně použité v index.html.
   ========================================================= */

/* ---------- 1. Základní reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }

html {
    font-family: 'Inter', sans-serif;
    -webkit-text-size-adjust: 100%;
}
.scroll-smooth { scroll-behavior: smooth; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ---------- 2. Barvy (Tailwind zinc paleta + brand) ---------- */
:root {
    --brand: #E60000;
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --zinc-950: #09090b;
}

body.bg-white { background-color: #ffffff; }
html.dark body.dark\:bg-black { background-color: #000000; }
.text-zinc-900 { color: var(--zinc-900); }
html.dark .dark\:text-zinc-100 { color: var(--zinc-100); }
.selection\:bg-brand::selection { background-color: var(--brand); }
.selection\:text-white::selection { color: #ffffff; }

/* Pozadí */
.bg-black { background-color: #000000; }
.bg-white { background-color: #ffffff; }
.bg-brand { background-color: var(--brand); }
.bg-current { background-color: currentColor; }
.bg-zinc-50 { background-color: var(--zinc-50); }
.bg-zinc-100 { background-color: var(--zinc-100); }
.bg-zinc-900 { background-color: var(--zinc-900); }
.bg-black\/40 { background-color: rgba(0,0,0,0.4); }
.bg-black\/80 { background-color: rgba(0,0,0,0.8); }
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.bg-white\/80 { background-color: rgba(255,255,255,0.8); }

html.dark .dark\:bg-black { background-color: #000000; }
html.dark .dark\:bg-black\/80 { background-color: rgba(0,0,0,0.8); }
html.dark .dark\:bg-zinc-800 { background-color: var(--zinc-800); }
html.dark .dark\:bg-zinc-900 { background-color: var(--zinc-900); }
html.dark .dark\:bg-zinc-950 { background-color: var(--zinc-950); }
html.dark .dark\:bg-zinc-950\/50 { background-color: rgba(9,9,11,0.5); }

/* Text barvy */
.text-white { color: #ffffff; }
.text-brand { color: var(--brand); }
.text-zinc-300 { color: var(--zinc-300); }
.text-zinc-400 { color: var(--zinc-400); }
.text-zinc-500 { color: var(--zinc-500); }
.text-zinc-600 { color: var(--zinc-600); }
.text-zinc-700 { color: var(--zinc-700); }
.text-zinc-900 { color: var(--zinc-900); }

html.dark .dark\:text-white { color: #ffffff; }
html.dark .dark\:text-zinc-100 { color: var(--zinc-100); }
html.dark .dark\:text-zinc-400 { color: var(--zinc-400); }

/* Ohraničení - barvy */
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.border-zinc-50 { border-color: var(--zinc-50); }
.border-zinc-100 { border-color: var(--zinc-100); }
.border-zinc-200 { border-color: var(--zinc-200); }

html.dark .dark\:border-zinc-800 { border-color: var(--zinc-800); }
html.dark .dark\:border-zinc-900 { border-color: var(--zinc-900); }

/* Hover barvy */
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:bg-zinc-50:hover { background-color: var(--zinc-50); }
.hover\:bg-zinc-100:hover { background-color: var(--zinc-100); }
.hover\:bg-zinc-200:hover { background-color: var(--zinc-200); }
.hover\:bg-zinc-800:hover { background-color: var(--zinc-800); }
.hover\:text-black:hover { color: #000000; }
.hover\:text-brand:hover { color: var(--brand); }
.hover\:text-zinc-900:hover { color: var(--zinc-900); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-brand\/5:hover { box-shadow: 0 25px 50px -12px rgba(230,0,0,0.05); }

html.dark .dark\:hover\:bg-zinc-700:hover { background-color: var(--zinc-700); }
html.dark .dark\:hover\:bg-zinc-900:hover { background-color: var(--zinc-900); }
html.dark .dark\:hover\:text-white:hover { color: #ffffff; }

/* group-hover barvy */
.group:hover .group-hover\:bg-brand { background-color: var(--brand); }
.group:hover .group-hover\:text-white { color: #ffffff; }

/* ---------- 3. Pozicování ---------- */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-6 { top: 1.5rem; }
.left-0 { left: 0; }
.right-6 { right: 1.5rem; }
.bottom-0 { bottom: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-\[100\] { z-index: 100; }
.z-\[105\] { z-index: 105; }
.z-\[110\] { z-index: 110; }
.z-\[200\] { z-index: 200; }
.z-\[300\] { z-index: 300; }

/* ---------- 4. Display / Flexbox / Grid ---------- */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

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

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* ---------- 5. Mezery mezi prvky (gap) ---------- */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* ---------- 6. space-y (mezera mezi potomky) ---------- */
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* ---------- 7. Rozměry (width / height) ---------- */
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.min-w-\[100px\] { min-width: 100px; }

.h-1 { height: 0.25rem; }
.h-5 { height: 1.25rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-20 { height: 5rem; }
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-\[2px\] { height: 2px; }
.h-\[400px\] { height: 400px; }
.min-h-screen { min-height: 100vh; }

.max-w-xs { max-width: 20rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-h-\[80vh\] { max-height: 80vh; }

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

/* ---------- 8. Okraje / vnitřní odsazení ---------- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pb-12 { padding-bottom: 3rem; }

/* ---------- 9. Zaoblení a stíny ---------- */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-\[2rem\] { border-radius: 2rem; }

.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }

.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* ---------- 10. Typografie ---------- */
.font-display { font-family: 'Outfit', sans-serif; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.text-center { text-align: center; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }

.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }
.leading-\[1\.1\] { line-height: 1.1; }

.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.08em\] { letter-spacing: 0.08em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-\[0\.4em\] { letter-spacing: 0.4em; }

/* ---------- 11. Efekty a přechody ---------- */
.opacity-30 { opacity: 0.3; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.grayscale { filter: grayscale(100%); }
.hover\:grayscale-0:hover { filter: grayscale(0%); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.transition-all { transition-property: all; }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; }
.transition-transform { transition-property: transform; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

.transform { /* aktivuje translate/scale/rotate níže */ }
.origin-center { transform-origin: center; }
.-translate-y-1\.5 { transform: translateY(-0.375rem); }
.translate-y-1\.5 { transform: translateY(0.375rem); }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }
.group-hover\:translate-x-2:hover,
.group:hover .group-hover\:translate-x-2 { transform: translateX(0.5rem); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.focus\:outline-none:focus { outline: none; }

/* ---------- 12. Vlastní (custom) třídy z původního webu ---------- */
html, body { touch-action: manipulation; overflow-x: hidden; width: 100%; }
body { transition: background-color 0.5s ease, color 0.5s ease; }
.glass-nav { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.section-title { letter-spacing: -0.02em; }

.reveal { opacity: 0; transform: translateY(20px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.line-draw { width: 0; transition: width 1s ease-out; }
.active .line-draw { width: 100%; }

#theme-toggle svg { display: none; }
html.dark #sun-icon { display: block; }
html:not(.dark) #moon-icon { display: block; }

@keyframes shine {
    from { transform: translateX(-100%) skewX(-15deg); }
    to { transform: translateX(200%) skewX(-15deg); }
}
.badge-shine::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

.division-card { transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); }
.division-card:hover { transform: translateY(-12px) scale(1.02); }

.hero-video-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; overflow: hidden; background: black;
}
.video-background {
    position: absolute; top: 50%; left: 50%;
    width: 100vw; height: 56.25vw;
    min-height: 100vh; min-width: 177.77vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 1;
}

.logo-light { display: block; }
.logo-dark { display: none; }
html.dark .logo-light { display: none; }
html.dark .logo-dark { display: block; }

#mobile-menu { transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
#mobile-menu.open { transform: translateY(0); }

#cookie-bar { transform: translateY(100%); transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
#cookie-bar.visible { transform: translateY(0); }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: #E60000; }
input:checked + .slider:before { transform: translateX(20px); }

.modal { opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal.open { opacity: 1; visibility: visible; }

.designer-link {
    position: relative;
    background: linear-gradient(90deg, #E60000, #ff4d4d, #E60000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease;
}
.designer-link:hover { background-position: right center; letter-spacing: 0.05em; }

/* =========================================================
   13. RESPONZIVNÍ PRAVIDLA (musí být na konci souboru,
   aby při stejné specifičnosti přebily základní pravidla)
   ========================================================= */

/* --- sm: min-width 640px --- */
@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* --- md: min-width 768px --- */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:gap-12 { gap: 3rem; }
    .md\:gap-16 { gap: 4rem; }
    .md\:h-10 { height: 2.5rem; }
    .md\:pt-20 { padding-top: 5rem; }
    .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .md\:py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .md\:text-\[11px\] { font-size: 11px; }
}

/* --- lg: min-width 1024px --- */
@media (min-width: 1024px) {
    .lg\:col-span-4 { grid-column: span 4 / span 4; }
    .lg\:col-span-8 { grid-column: span 8 / span 8; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:items-center { align-items: center; }
    .lg\:text-8xl { font-size: 6rem; line-height: 1; }
    .lg\:text-left { text-align: left; }
}
