/* ==========================================================================
   BUDA INVESTMENT - ARCHITECTURAL PRECISION
   Główny arkusz stylów CSS (Style bazowe, siatka rigid-grid, animacje i ikony)
   ========================================================================== */

/* 1. Płynne przewijanie do kotwic */
html {
    scroll-behavior: smooth;
}

/* Margines górny dla sekcji z ID, aby stały pasek nawigacji (wysokość ok. 80px) ich nie zasłaniał */
[id] {
    scroll-margin-top: 84px;
}

/* 2. Tło bazowe i zapobieganie poziomemu paskowi przewijania */
body {
    background-color: #f9f9f9;
    color: #1a1c1c;
    overflow-x: hidden;
}

/* 3. Konfiguracja ikon Google Material Symbols Outlined */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* 4. Siatka sztywna (Rigid Grid) - Architectural Precision */
.rigid-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
@media (min-width: 768px) {
    .rigid-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.divider-deep-slate {
    border-bottom: 1px solid #747878;
}

.no-radius {
    border-radius: 0 !important;
}

/* Efekt zoomu dla kontenerów ze zdjęciami */
.img-container-hover {
    overflow: hidden;
}
.img-container-hover img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-container-hover:hover img {
    transform: scale(1.04);
}

/* 5. Subtelne animacje wejścia sekcji (Intersection Observer Fade-In) */
.fade-in-section {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 6. Obsługa preferencji użytkownika dotyczących ograniczenia ruchu */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in-section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* 7. Elegancki pasek przewijania strony */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1c1b1b;
}

::-webkit-scrollbar-thumb:hover {
    background: #735c00;
}

/* 8. Siatka tła (Grid Blueprint) dla sekcji technologicznych */
.grid-bg {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, #e2e2e2 1px, transparent 1px), linear-gradient(to bottom, #e2e2e2 1px, transparent 1px);
}
