/* ═══════════════════════════════════════════
   DELTA – Mobile Menu + Floating Call Button
   ═══════════════════════════════════════════ */

/* ── HAMBURGER BUTTON ─────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #1a2e4a;
  border-radius: 2px;
  transition: all .3s cubic-bezier(.77,0,.18,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(10.75px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-10.75px) rotate(-45deg); }

/* ── OVERLAY ──────────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 300;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s;
}
.mobile-overlay.open {
  display: block;
  opacity: 1;
}

/* ── MOBILE NAV DRAWER ────────────────────── */
/* UWAGA: szuflada też jest elementem <nav>, a część podstron ma w swoim
   arkuszu regułę `nav { display:flex; align-items:center; flex-wrap:wrap }`
   przeznaczoną dla poziomego menu. Bez jawnego nadpisania poniżej sekcje
   szuflady kurczyły się do szerokości tekstu i uciekały poza panel. */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.77,0,.18,1);
  box-shadow: -4px 0 32px rgba(0,0,0,.18);
  overflow-y: auto;
  overflow-x: hidden;
}
.mobile-nav > * {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}
.mobile-nav.open {
  transform: translateX(0);
}

.mn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #d8dfe8;
  background: #1a2e4a;
}
.mn-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.mn-logo-text {
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .6px;
  line-height: 1.3;
}
.mn-close {
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
  flex-shrink: 0;
}
.mn-close:hover { background: rgba(255,255,255,.25); }

.mn-links {
  flex: 1;
  padding: .75rem 0;
}
.mn-links a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.5rem;
  font-size: .95rem;
  font-weight: 500;
  color: #2c3e50;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .2s;
}
.mn-links a:hover {
  background: #f4f6f9;
  color: #1a2e4a;
  border-left-color: #d8dfe8;
}
.mn-links a.active {
  color: #2d5a8e;
  font-weight: 700;
  background: rgba(45,90,142,.06);
  border-left-color: #2d5a8e;
}
/* Wskaźnik aktywnej pozycji przyjmuje kolor działu, w którym jesteśmy —
   zieleń wypożyczalni. Pozostałe działy bez zmian. */
.mn-links a.active[href="wypozyczalnia.html"] {
  color: #2e7d32;
  background: rgba(46,125,50,.07);
  border-left-color: #2e7d32;
}
.mn-links a.mn-cta {
  margin: .75rem 1.25rem;
  background: #e8a020;
  color: #fff !important;
  border-radius: 8px;
  border-left: none !important;
  font-weight: 700;
  justify-content: center;
  padding: .85rem 1.5rem;
}
.mn-links a.mn-cta:hover { background: #d4901a; }
.mn-divider {
  height: 1px;
  background: #d8dfe8;
  margin: .5rem 1.25rem;
}

.mn-footer {
  padding: 1.25rem;
  border-top: 1px solid #d8dfe8;
  background: #f4f6f9;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.mn-footer a {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: #1a2e4a;
  font-weight: 600;
  text-decoration: none;
}
.mn-footer a:hover { color: #2d5a8e; }
.mn-footer .mn-hours {
  font-size: .75rem;
  color: #6b7a8d;
  padding-top: .4rem;
  border-top: 1px solid #d8dfe8;
  line-height: 1.5;
}

/* ── FLOATING CALL BUTTON ─────────────────── */
.float-call {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #2e7d32;
  color: #fff;
  border-radius: 50px;
  padding: .85rem 1.4rem;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(46,125,50,.4);
  display: none;
  align-items: center;
  gap: .5rem;
  transition: all .25s;
  white-space: nowrap;
}
.float-call:hover {
  background: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(46,125,50,.5);
}
.float-call .fc-icon { font-size: 1.1rem; }
.float-call .fc-text { font-size: .85rem; }

/* ── RESPONSIVE BREAKPOINT ────────────────── */
/* Próg 1199px: przy 9 pozycjach menu poziome mieści się w jednym wierszu
   dopiero przy kontenerze 1200px. Poniżej — menu w szufladzie. */
@media (max-width: 1199px) {

  /* Pokaż hamburger, ukryj poziomą listę linków.
     UWAGA: ukrywamy samą listę, nie cały pasek — w części podstron
     pasek menu JEST elementem <nav class="navbar"> i schowanie go
     zabrałoby również logo i przycisk hamburgera. */
  .hamburger { display: flex; }
  .nav-links,
  nav:not(.navbar):not(.mobile-nav) { display: none !important; }
}

@media (max-width: 960px) {
  /* Show floating call button */
  .float-call { display: flex; }

  /* Topbar simplify on small screens */
  .topbar-left span:nth-child(2),
  .topbar-left span:nth-child(3) { display: none; }
}

@media (max-width: 700px) {
  /* Przycisk wyceny obok logo rozpycha pasek na telefonie.
     Ten sam odnośnik jest w szufladzie menu, więc nic nie ginie. */
  .btn-quote { display: none; }
}

/* ── SIATKI NA WĄSKICH EKRANACH ─────────────
   Wspólne reguły dla wszystkich podstron. Ten plik wczytuje się PO stylach
   każdej strony, więc nadpisuje ich układy bez użycia !important.
   Bez tego siatki dwu- i trzykolumnowe rozpychają stronę na telefonie. */
@media (max-width: 900px) {
  .about-grid, .two-col, .story-grid, .contact-grid,
  .catalog-layout, .avail, .fleet, .people { grid-template-columns: 1fr; }

  .services-grid, .why-grid, .usp-inner, .values-grid, .team-grid,
  .products-grid, .cleaning-grid, .rules-grid, .steps,
  .branch-info-strip, .footer-grid, .footer-main { grid-template-columns: 1fr 1fr; }
  .reviews-grid, .docs-grid { grid-template-columns: 1fr 1fr !important; }

  /* pola formularzy nie mogą wymuszać własnej szerokości minimalnej */
  .form-group, .form-row, .cb-field, .cb-row { min-width: 0; }
  .form-group input, .form-group select, .form-group textarea,
  .cb-field input, .cb-field select { min-width: 0; }
}

@media (max-width: 600px) {
  .services-grid, .why-grid, .usp-inner, .values-grid, .team-grid,
  .products-grid, .cleaning-grid, .rules-grid, .steps,
  .branch-info-strip, .footer-grid, .footer-main,
  .about-features, .form-row, .cb-row, .bc-body,
  .calc-grid, .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; }

  /* siatki ze stylem wpisanym w kod strony — potrzebują !important,
     bo styl przy elemencie ma wyższy priorytet niż arkusz */
  .reviews-grid, .docs-grid { grid-template-columns: 1fr !important; }

  /* szerokie tabele przewijają się w swoim kontenerze, nie rozpychają strony */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  /* On very small screens, show only icon in float button */
  .float-call .fc-text { display: none; }
  .float-call { padding: 1rem; border-radius: 50%; }
}
