body {
  padding-bottom: calc(75px + env(safe-area-inset-bottom));
  
}

/* banner */
.hero {
  height: 150px;
  background: url("../images/head.jpeg") center/cover no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 254, 254, 0.9) 0%,   /* match this color to status bar */
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero-title {
  position: relative;
  z-index: 1;
}

/* bloczki */
.offer-link {
  text-decoration: none;
  color: #000;
}

.offer-link h5 {
  color: #000;
}

.offer-link:hover {
  color: #000;
}

.offer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.offer-item img {
  width: 64px;
}

.offer-item h5 {
  margin: 0;
  font-weight: 600;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 667px) {
  .custom-3col {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }

  main.container {
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

  .row {
    --bs-gutter-x: 12px;
  }
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(20px + env(safe-area-inset-top));
  background: transparent;
  padding-top: env(safe-area-inset-top);
  z-index: 9999;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(25px + env(safe-area-inset-bottom));
  background: rgba(126, 126, 126, 0.75);
display: flex;
  justify-content: space-around;
  align-items: flex-start;  /* align to top of bar, not center */
  padding-bottom: calc(55px + env(safe-area-inset-bottom));
  z-index: 9999;
}

.bottom-nav a {
  text-decoration: none;
  color: black;
  font-size: 12px;
  text-align: center;
  /* Remove the translateY — it's fighting the layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;  /* ⬅️ adjust this value */
}

.bottom-nav img {
  width: 26px;
  display: block;
  margin: 0 auto 4px;
}

/* glass effect only in browser, not PWA */
@media (display-mode: standalone) {
  .bottom-nav {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

.floating-island {
  animation: islandDrop 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: fixed;
  top: calc(env(safe-area-inset-top) + 10px); /* just below dynamic island + small gap */
  left: 50%;
  transform: translateX(-50%);
  
  /* pill shape */
  border-radius: 999px;
  padding: 4px 20px;
  
  /* glass effect */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  
  /* border for glass look */
  border: 1px solid rgba(255, 255, 255, 0.25);
  
  /* text */
  color: black;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  
  z-index: 9998;
  
  /* subtle shadow */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
@keyframes islandDrop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}