/* Kontejnery Ústecko – Custom Styles
   Industrial / Earth palette · 2026 */

/* ── Base ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* Body warm background instead of pure white */
body {
  background-color: #f9fafb;
}

/* Prevent iOS font size zoom on input focus */
input, select, textarea {
  font-size: 16px !important;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #ea580c; border-radius: 3px; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.45);
}/* Smooth hide/show transition – set on the element via CSS so it’s always active */
#navbar {
  transition: transform 0.28s ease, box-shadow 0.2s ease;
}
.navbar-hidden {
  transform: translateY(-100%);
}
/* ── Hero ─────────────────────────────────────────────────── */
.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.78) 0%,
    rgba(17,24,39,0.60) 55%,
    rgba(31,41,55,0.42) 100%
  );
}

/* ── Parallax ─────────────────────────────────────────────── */
.parallax-bg {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}

/* ── Form ─────────────────────────────────────────────────── */
.form-group { position: relative; }
.form-input {
  transition: border-color 0.15s, box-shadow 0.15s;
  background-color: #ffffff !important;
}
.form-input:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234,88,12,0.12);
  background-color: #ffffff !important;
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-item {
  overflow: hidden;
}
.gallery-item img {
  transition: transform 0.35s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}

/* ── Service card ─────────────────────────────────────────── */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.10);
}

/* Collapsible card body text – hidden on mobile, always visible on desktop */
.card-desc {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}
@media (max-width: 767px) {
  .card-desc {
    max-height: 0;
    opacity: 0;
  }
  .card-desc.open {
    max-height: 200px;
    opacity: 1;
  }
  /* Toggle chevron */
  .card-toggle-icon {
    transition: transform 0.25s ease;
  }
  .card-toggle-icon.open {
    transform: rotate(180deg);
  }
}
@media (min-width: 768px) {
  .card-desc {
    max-height: none !important;
    opacity: 1 !important;
  }
  .service-card .card-toggle-btn {
    display: none;
  }
}

/* ── About section collapsible extras ──────────────────────── */
.about-extras {
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.28s ease;
}
@media (max-width: 767px) {
  .about-extras {
    max-height: 0;
    opacity: 0;
  }
  .about-extras.open {
    max-height: 600px;
    opacity: 1;
  }
}
@media (min-width: 768px) {
  .about-extras {
    max-height: none !important;
    opacity: 1 !important;
  }
  .about-toggle-btn { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  transition: background-color 0.18s, transform 0.14s, box-shadow 0.18s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234,88,12,0.32);
}

/* ── Stats bar ────────────────────────────────────────────── */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Subtle industrial grid texture on dark sections */
.industrial-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Pricing ──────────────────────────────────────────────── */
.price-row:hover td {
  background-color: #f3f4f6;
}

/* ── Mobile menu animation ────────────────────────────────── */
#mobile-menu {
  transition: max-height 0.28s ease, opacity 0.28s ease;
}
#mobile-menu.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ── AOS ──────────────────────────────────────────────────── */
[data-aos] {
  transition-property: transform, opacity;
}

/* ── Accessibility focus ──────────────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 3px;
}

/* ── Mobile-first: tighter vertical rhythm ───────────────── */
@media (max-width: 767px) {
  /* Reduce section padding – bottom only; keep top to clear the fixed navbar */
  section.py-20 { padding-bottom: 3rem !important; }
  section.py-12 { padding-bottom: 2rem !important; }

  /* Tighter heading sizes */
  #hero h1 { line-height: 1.08; }

  /* Stats bar – compact */
  .stat-number {
    font-size: 2.25rem !important;
    line-height: 1;
  }

  /* Service card padding */
  .service-card {
    padding: 1.25rem !important;
  }

  /* Section anchor offset – matches JS smooth-scroll offset (80px) */
  section { scroll-margin-top: 5rem; }
}

/* ── Sticky bottom CTA bar (mobile only) ─────────────────── */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 1023px) {
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
    background: rgba(17,24,39,0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(234,88,12,0.20);
    gap: 0.625rem;
    align-items: center;
  }

  body {
    padding-bottom: 4.5rem;
  }
}


