/* ============================================
   Arsenal Zhytloservis — Static CSS
   Generated from Tailwind utilities used in index.html
   Custom colors: primary=#29B6D8, secondary=#484370
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #29B6D8;
    --color-secondary: #484370;
    --color-bg-light: #F9FAFB;
    --color-bg-dark: #111827;
    --color-surface-light: #FFFFFF;
    --color-surface-dark: #1F2937;
    --color-text-light: #374151;
    --color-text-dark: #D1D5DB;
}

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

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

/* --- Typography --- */
.font-body {
    font-family: 'Inter', sans-serif;
}

.font-display {
    font-family: 'Montserrat', sans-serif;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

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

.leading-tight {
    line-height: 1.25;
}

/* --- Colors — text --- */
.text-white {
    color: #fff;
}

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

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

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

.text-gray-200 {
    color: #E5E7EB;
}

.text-gray-300 {
    color: #D1D5DB;
}

.text-gray-400 {
    color: #9CA3AF;
}

.text-gray-500 {
    color: #6B7280;
}

.text-gray-600 {
    color: #4B5563;
}

.text-gray-700 {
    color: #374151;
}

/* --- Colors — background --- */
.bg-white {
    background-color: #fff;
}

.bg-primary {
    background-color: var(--color-primary);
}

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

.bg-background-light {
    background-color: var(--color-bg-light);
}

.bg-surface-light {
    background-color: var(--color-surface-light);
}

.bg-gray-100 {
    background-color: #F3F4F6;
}

.bg-gray-200 {
    background-color: #E5E7EB;
}

.bg-white\/80 {
    background-color: rgba(255, 255, 255, 0.8);
}

.bg-white\/95 {
    background-color: rgba(255, 255, 255, 0.95);
}

.bg-primary\/10 {
    background-color: rgba(41, 182, 216, 0.1);
}

.bg-primary\/20 {
    background-color: rgba(41, 182, 216, 0.2);
}

.bg-secondary\/5 {
    background-color: rgba(72, 67, 112, 0.05);
}

/* --- Border --- */
.border {
    border-width: 1px;
    border-style: solid;
}

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

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

.border-l-4 {
    border-left-width: 4px;
    border-left-style: solid;
}

.border-gray-100 {
    border-color: #F3F4F6;
}

.border-gray-200 {
    border-color: #E5E7EB;
}

.border-primary {
    border-color: var(--color-primary);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Border Radius --- */
.rounded {
    border-radius: 0.5rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* --- Shadows --- */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* --- Layout — display --- */
.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.inline-flex {
    display: inline-flex;
}

/* --- Flexbox --- */
.flex-col {
    flex-direction: column;
}

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

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.shrink-0 {
    flex-shrink: 0;
}

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

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

/* --- Gap --- */
.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* --- Space utilities (> + children) --- */
.space-x-2> :not([hidden])~ :not([hidden]) {
    margin-left: 0.5rem;
}

.space-x-6> :not([hidden])~ :not([hidden]) {
    margin-left: 1.5rem;
}

.space-x-8> :not([hidden])~ :not([hidden]) {
    margin-left: 2rem;
}

.space-y-4> :not([hidden])~ :not([hidden]) {
    margin-top: 1rem;
}

.space-y-8> :not([hidden])~ :not([hidden]) {
    margin-top: 2rem;
}

/* --- Sizing — width --- */
.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-14 {
    width: 3.5rem;
}

.w-16 {
    width: 4rem;
}

.w-40 {
    width: 10rem;
}

.w-auto {
    width: auto;
}

.w-full {
    width: 100%;
}

/* --- Sizing — height --- */
.h-1 {
    height: 0.25rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-14 {
    height: 3.5rem;
}

.h-40 {
    height: 10rem;
}

.h-full {
    height: 100%;
}

/* --- Sizing — min-height --- */
.min-h-\[400px\] {
    min-height: 400px;
}

/* --- Sizing — max-width --- */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

/* --- Spacing — padding --- */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-10 {
    padding: 2.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.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-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pt-16 {
    padding-top: 4rem;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

/* --- Spacing — margin --- */
.mx-4 {
    margin-left: 1rem;
    margin-right: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-4 {
    margin-right: 1rem;
}

.ml-auto {
    margin-left: auto;
}

.-mt-8 {
    margin-top: -2rem;
}

.-mt-10 {
    margin-top: -2.5rem;
}

.-mr-10 {
    margin-right: -2.5rem;
}

/* --- Positioning --- */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-50 {
    z-index: 50;
}

/* --- Overflow --- */
.overflow-hidden {
    overflow: hidden;
}

/* --- Object fit --- */
.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

/* --- Container --- */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* --- Effects --- */
.backdrop-blur-sm {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.backdrop-grayscale-\[0\.5\] {
    -webkit-backdrop-filter: grayscale(0.5);
    backdrop-filter: grayscale(0.5);
}

.blur-3xl {
    filter: blur(64px);
}

.bg-opacity-90 {
    --tw-bg-opacity: 0.9;
}

/* --- Transform --- */
.transform {
    transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) scale(var(--tw-scale-x, 1), var(--tw-scale-y, 1));
}

/* --- Transitions --- */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: ease-in-out;
    transition-duration: 150ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: ease-in-out;
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: ease-in-out;
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* --- Group hover --- */
.group:hover .group-hover\:bg-primary {
    background-color: var(--color-primary);
}

.group:hover .group-hover\:text-white {
    color: #fff;
}

.group:hover .group-hover\:text-primary {
    color: var(--color-primary);
}

/* --- Hover --- */
.hover\:text-primary:hover {
    color: var(--color-primary);
}

.hover\:text-white:hover {
    color: #fff;
}

.hover\:bg-primary:hover {
    background-color: var(--color-primary);
}

.hover\:bg-gray-200:hover {
    background-color: #E5E7EB;
}

.hover\:bg-opacity-90:hover {
    opacity: 0.9;
}

.hover\:border-primary:hover {
    border-color: var(--color-primary);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-primary\/30:hover {
    box-shadow: 0 10px 15px -3px rgba(41, 182, 216, 0.3);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

/* ============================================
   Responsive: sm (640px)
   ============================================ */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

/* ============================================
   Responsive: md (768px)
   ============================================ */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:block {
        display: block;
    }

    .md\:hidden {
        display: none;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .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\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:max-w-6xl {
        max-width: 72rem;
    }

    .md\:mx-auto {
        margin-left: auto;
        margin-right: auto;
    }

    .md\:mb-0 {
        margin-bottom: 0;
    }

    .md\:mt-0 {
        margin-top: 0;
    }

    .md\:pt-40 {
        padding-top: 10rem;
    }

    .md\:pb-32 {
        padding-bottom: 8rem;
    }

    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

/* ============================================
   Responsive: lg (1024px)
   ============================================ */
@media (min-width: 1024px) {
    .lg\:flex-row {
        flex-direction: row;
    }

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

    .lg\:w-1\/3 {
        width: 33.333333%;
    }

    .lg\:w-2\/3 {
        width: 66.666667%;
    }

    .lg\:p-12 {
        padding: 3rem;
    }

    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

/* ============================================
   Dark Mode (.dark class on <html>)
   ============================================ */
.dark .dark\:bg-background-dark {
    background-color: var(--color-bg-dark);
}

.dark .dark\:bg-surface-dark {
    background-color: var(--color-surface-dark);
}

.dark .dark\:bg-gray-600 {
    background-color: #4B5563;
}

.dark .dark\:bg-gray-700 {
    background-color: #374151;
}

.dark .dark\:bg-gray-800 {
    background-color: #1F2937;
}

.dark .dark\:bg-gray-900 {
    background-color: #111827;
}

.dark .dark\:bg-gray-800\/50 {
    background-color: rgba(31, 41, 55, 0.5);
}

.dark .dark\:bg-gray-900\/80 {
    background-color: rgba(17, 24, 39, 0.8);
}

.dark .dark\:bg-gray-900\/95 {
    background-color: rgba(17, 24, 39, 0.95);
}

.dark .dark\:bg-primary {
    background-color: var(--color-primary);
}

.dark .dark\:text-white {
    color: #fff;
}

.dark .dark\:text-text-dark {
    color: var(--color-text-dark);
}

.dark .dark\:text-gray-200 {
    color: #E5E7EB;
}

.dark .dark\:text-gray-300 {
    color: #D1D5DB;
}

.dark .dark\:text-gray-400 {
    color: #9CA3AF;
}

.dark .dark\:text-gray-500 {
    color: #6B7280;
}

.dark .dark\:border-gray-700 {
    border-color: #374151;
}

.dark .dark\:border-gray-800 {
    border-color: #1F2937;
}

.dark .dark\:block {
    display: block;
}

.dark .dark\:hidden {
    display: none;
}

.dark .dark\:hover\:bg-gray-700:hover {
    background-color: #374151;
}

.dark .dark\:hover\:bg-primary:hover {
    background-color: var(--color-primary);
}

.dark .dark\:hover\:text-primary:hover {
    color: var(--color-primary);
}

.dark .dark\:hover\:text-white:hover {
    color: #fff;
}

.dark .dark\:hover\:border-primary:hover {
    border-color: var(--color-primary);
}

/* ============================================
   Custom styles (from inline <style>)
   ============================================ */
.hero-gradient {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.dark .hero-gradient {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.85) 100%);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 300px;
    opacity: 1;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Theme toggle animation */
#theme-toggle svg,
#theme-toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Button Reset */
button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}



/* --- Modal Styles --- */
.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 60;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 42rem;
    /* max-w-2xl */
    max-height: 90vh;
    background-color: white;
    border-radius: 1rem;
    /* rounded-2xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* shadow-2xl */
    z-index: 70;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.dark .modal-container {
    background-color: #1f2937;
    /* dark:bg-gray-800 */
}

.modal-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 20px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 20px;
}