/* Baltic Clean — polish layer (2026-11-14): button states, tap targets, smooth scroll, iOS/safe-area fixes.
   Colours, fonts and layout stay as in bc-bundle.min.css; this file only refines interaction and adaptivity. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { scroll-padding-top: 6rem; }
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe, svg { max-width: 100%; }
table { max-width: 100%; }

/* Buttons and links: subtle hover / press, visible keyboard focus */
a.bcx-btn, .bcx-btn, .bc-btn-glow, .bc-footer-review-btn, .bc-legal-pill, .bc-district-chip,
a[class*="rounded-3xl"], a[class*="rounded-2xl"], button[type="submit"], .bc-lang-trigger {
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  a.bcx-btn:hover, .bc-btn-glow:hover, .bc-footer-review-btn:hover, button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px rgba(15, 118, 110, .45);
  }
  .bc-district-chip:hover, .bc-legal-pill:hover { transform: translateY(-1px); }
}
a.bcx-btn:active, .bcx-btn:active, .bc-btn-glow:active, .bc-footer-review-btn:active, button[type="submit"]:active,
.bc-district-chip:active, .bc-legal-pill:active, .bc-lang-trigger:active {
  transform: translateY(0) scale(.98);
  box-shadow: none;
}
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #14b8a6;
  outline-offset: 2px;
  border-radius: .5rem;
}

/* FAQ accordions: marker rotation without layout shift */
details > summary { cursor: pointer; }

/* Tap targets >= 44px on touch devices */
@media (pointer: coarse) {
  .bc-lang-menu a { display: flex; align-items: center; min-height: 44px; }
  .bc-mobile-nav a, nav.bc-mobile-nav > a { min-height: 44px; display: flex; align-items: center; }
  .bc-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .bc-footer-social a { min-width: 44px; min-height: 44px; }
  .bc-district-chip { min-height: 40px; display: inline-flex; align-items: center; }
  .bc-legal-pill { min-height: 44px; display: inline-flex; align-items: center; }
  .bc-lang-trigger { min-height: 44px; }
  .bcx-related a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Language menu: 11 languages — keep it inside the viewport and scrollable on short screens */
.bc-lang-menu { max-height: min(70vh, 34rem); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 480px) {
  .bc-lang-menu { right: 0; left: auto; max-width: calc(100vw - 2rem); }
}

/* iOS: inputs below 16px trigger zoom on focus */
@media (max-width: 1024px) {
  input, select, textarea { font-size: max(16px, 1em); }
}

/* Notches / home indicator */
@supports (padding: env(safe-area-inset-left)) {
  .bc-site-header .container { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .bc-footer-inner { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  #bc-callback-fab { margin-bottom: env(safe-area-inset-bottom); }
}

/* Long words (German compounds, Latvian, URLs) must not push the page wider */
h1, h2, h3, .bcx-lead, .bcx-p, .bcx-card p, .bc-footer-links a, .bcx-related a { overflow-wrap: anywhere; hyphens: auto; }
@media (min-width: 768px) { h1, h2, h3 { overflow-wrap: break-word; } }

/* Wide tables (price lists) scroll inside their box on phones instead of widening the page */
@media (max-width: 767px) {
  .bcx-section table, .price-table, table.w-full { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* a11y 2026-11-14 (PageSpeed): white text on teal needs 4.5:1, links must not rely on colour only */
.bg-teal-600{background-color:#0f766e!important}
.hover\:bg-teal-700:hover{background-color:#115e59!important}
a.text-teal-600{color:#0f766e;text-decoration:underline;text-underline-offset:2px}
