/**
 * PRO-POINT ROV Inspections - Arkusz stylów CSS
 * Czysty CSS bez preprocesorów - gotowy do użycia
 */

/* ==========================================================================
   1. ZMIENNE CSS & MOTYW PRZEMYSŁOWY
   ========================================================================== */
:root {
  --color-primary: #001026;
  --color-primary-container: #0b2545;
  --color-secondary: #a93800;
  --color-secondary-container: #ff5e14;
  --color-background: #f8f9ff;
  --color-surface: #f8f9ff;
  --color-on-surface: #0b1c30;
  --color-outline: #74777f;
  --header-height: 116px;
}

/* ==========================================================================
   2. RESET & BAZA
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  color: var(--color-on-surface);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Stylizowany pasek przewijania */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #0b2545;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5e14;
}

/* ==========================================================================
   3. TYPOGRAFIA & IKONY
   ========================================================================== */
.font-space {
  font-family: 'Space Grotesk', sans-serif;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* ==========================================================================
   4. ANIMACJE REVEAL (INTERSECTION OBSERVER)
   ========================================================================== */
.reveal-on-scroll {
  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;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Drobne opóźnienia dla sekwencji kart */
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   5. NAWIGACJA STICKY & MOBILNA
   ========================================================================== */
header.is-scrolled {
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.12);
}

header.is-scrolled .nav-container {
  background-color: rgba(248, 249, 255, 0.98);
}

/* Hamburger ikona animacja */
.hamburger-line {
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.hamburger-btn.is-active .line-1 {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.is-active .line-2 {
  opacity: 0;
}

.hamburger-btn.is-active .line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Menu mobilne drawer */
#mobile-menu {
  transition: max-height 0.35s ease-in-out, opacity 0.3s ease-in-out;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

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

/* ==========================================================================
   6. INTERAKCJE I MIKROEFEKTY
   ========================================================================== */
/* Karty w sekcjach */
.inspection-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.inspection-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(11, 37, 69, 0.08), 0 8px 10px -6px rgba(11, 37, 69, 0.04);
  border-color: rgba(255, 94, 20, 0.4);
}

/* Formularz focus states */
input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 94, 20, 0.25);
  border-color: #ff5e14 !important;
}

/* Przycisk CTA */
.btn-cta {
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 94, 20, 0.35);
}

.btn-cta:active {
  transform: translateY(1px);
}

/* Dostępność: widoczny focus przy nawigacji klawiaturą */
a:focus-visible, button:focus-visible {
  outline: 2px solid #ff5e14;
  outline-offset: 2px;
}

/* ==========================================================================
   7. GALERIA ZDJĘĆ & LIGHTBOX
   ========================================================================== */
.gallery-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(11, 37, 69, 0.15);
  border-color: rgba(255, 94, 20, 0.5);
}

.gallery-card .gallery-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

/* Lightbox Modal */
#image-lightbox {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

#image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

#lightbox-content {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#image-lightbox.is-open #lightbox-content {
  transform: scale(1);
}
