/* Brand palette */
:root {
  --brand: #2B6E78;
  --brand-dark: #245F68;
  --brand-deep: #1F555D;
  --brand-soft: rgba(43, 110, 120, 0.12);
}

/* About page */
.about-article {
  max-width: 920px;
  margin: 0 auto;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-article h3 {
  margin: 2.2rem 0 0.9rem;
  color: var(--brand);
  font-family: Oswald, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about-article p {
  margin: 0 0 1rem;
}

.about-highlight {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: #f4f7fa;
  border-left: 4px solid var(--brand);
}

.about-highlight h3 {
  margin-top: 0;
}

.about-slogan {
  margin-top: 1.25rem !important;
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--brand-deep);
  text-transform: uppercase;
}

.about-slogan--final {
  margin-top: 1.75rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid #dde3e9;
  text-align: center;
}

.about-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.about-list li {
  margin-bottom: 0.45rem;
}

.about-reason {
  height: 100%;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid #e4e8ec;
}

.about-reason strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brand-deep);
  font-family: Oswald, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.about-reason p {
  margin: 0;
  color: #555;
  font-size: 0.98rem;
}

.about-mission {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, #f4f7fa 0%, #eef5f6 100%);
}

/* Local overrides — keep original design, improve responsive behavior */

.lang-flag img {
  display: block;
  width: 28px;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.lang-flag.is-active img {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Recommended products for Bulgarian market */
.section-recommended {
  background: #f4f7fa;
}

.section-recommended .product-item__media img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
}

.section-recommended .recommended-note {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #4a5560;
}

.section-recommended .product-item__badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #fff;
  background: #245F68;
  text-transform: uppercase;
}

.section-gallery img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-card__media iframe,
.news-card__media video {
  width: 100%;
  min-height: 220px;
  background: #000;
}

.video-box a {
  cursor: pointer;
}

/* Catalog button: keep icon/text white on hover */
.page-header__right .search-btn:hover,
.page-header__right .search-btn:focus,
.page-header__right .search-btn:active,
.page-header__right .search-btn:hover center,
.page-header__right .search-btn:focus center,
.page-header__right .search-btn:active center,
.page-header__right .search-btn:hover i,
.page-header__right .search-btn:focus i,
.page-header__right .search-btn:active i {
  color: #fff;
}

/* Mobile header / nav refinements */
@media (max-width: 959px) {
  .page-header__center {
    display: none;
  }

  .page-header__right .search-btn center {
    font-size: 10px;
  }

  .page-header__right .search-btn i {
    font-size: 18px !important;
  }

  .slideshow-item__title .uk-h2 {
    font-size: clamp(1.6rem, 7vw, 2.6rem);
  }

  .section-about__img {
    width: 100%;
  }

  .section-recommended .product-item__media img {
    height: 180px;
  }
}

@media (max-width: 639px) {
  .page-header__right .uk-navbar-nav > li:first-child {
    display: none;
  }

  .section-gallery img {
    height: 180px;
  }
}

/* Contact / light backgrounds: info-list is white in footer */
.page-main .info-list-item__title {
  color: #2B6E78;
}

.page-main .info-list-item__value,
.page-main .info-list-item__value a {
  color: #222222;
}

.page-main .info-list-item__value a:hover {
  color: #2B6E78;
}

.page-contact .contact-card {
  max-width: 720px;
  padding: 1.5rem 1.75rem;
  background: #f4f7fa;
  border-left: 4px solid #2B6E78;
}

.contact-eik {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #66707a;
}

.contact-info-item__value {
  line-height: 1.45;
}

/* Default button: theme forces white text on all .uk-button */
.uk-button-default,
.uk-button.uk-button-default {
  color: #2B6E78;
  background: #fff;
  border: 1px solid #2B6E78;
}

.uk-button-default:hover,
.uk-button-default:focus,
.uk-button-default:active,
.uk-button.uk-button-default:hover,
.uk-button.uk-button-default:focus,
.uk-button.uk-button-default:active {
  color: #fff;
  background: #2B6E78;
  border-color: #2B6E78;
}

/* Product detail */
.product-detail-img {
  max-height: 420px;
  width: auto !important;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  background: #fff;
}

.product-detail-meta {
  margin-bottom: 1rem;
}

.product-detail-en {
  margin-top: 0.4rem;
  color: #66707a;
  font-size: 0.95rem;
}

.product-highlights {
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
}

.product-highlights li {
  margin-bottom: 0.35rem;
}

.product-specs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e4e8ec;
}

.product-specs {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}

.product-specs th,
.product-specs td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e4e8ec;
  text-align: left;
  white-space: nowrap;
}

.product-specs thead th {
  background: #245F68;
  color: #fff;
  font-weight: 600;
}

.product-specs tbody tr:nth-child(even) {
  background: #f7f9fb;
}

.product-sidebar {
  background: #f4f7fa;
  padding: 1.25rem;
}

.product-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-sidebar-list li + li {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dde3e9;
}

.product-sidebar-list a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.product-sidebar-list img {
  width: 72px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}

.product-sidebar-list strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.product-sidebar-list small {
  color: #66707a;
}

/* ========== Smooth modern motion ========== */
html.has-motion {
  scroll-behavior: smooth;
}

html.has-motion body {
  overflow-x: hidden;
}

/* Scroll reveal */
html.has-motion .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.has-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance on load */
html.has-motion .section-hero .slideshow-item__content,
html.has-motion .section-hero__title {
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.has-motion .section-hero__breadcrumb {
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Product / card hover lift */
html.has-motion .product-item,
html.has-motion .category-item,
html.has-motion .news-card,
html.has-motion .contact-info-item {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

html.has-motion .product-item:hover,
html.has-motion .category-item:hover {
  transform: translateY(-6px);
}

html.has-motion .product-item__media {
  overflow: hidden;
}

html.has-motion .product-item__media img,
html.has-motion .section-gallery img,
html.has-motion .section-about__img,
html.has-motion .section-info__img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

html.has-motion .product-item:hover .product-item__media img,
html.has-motion .section-gallery a:hover img {
  transform: scale(1.04);
}

html.has-motion .product-sidebar-list a {
  transition: background 0.25s ease, transform 0.25s ease;
  border-radius: 4px;
  padding: 0.25rem;
  margin: -0.25rem;
}

html.has-motion .product-sidebar-list a:hover {
  background: rgba(43, 110, 120, 0.06);
  transform: translateX(4px);
}

/* Buttons */
html.has-motion .uk-button {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.3s ease;
}

html.has-motion .uk-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 110, 120, 0.18);
}

/* Header soft transition */
html.has-motion .page-header {
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

html.has-motion .page-nav .uk-navbar-nav > li > a,
html.has-motion .lang-flag img {
  transition: opacity 0.25s ease, outline-color 0.25s ease, transform 0.25s ease;
}

html.has-motion .page-nav .uk-navbar-nav > li > a:hover {
  opacity: 0.85;
}

/* Form fields soft focus */
html.has-motion .uk-input,
html.has-motion .uk-textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

html.has-motion .uk-input:focus,
html.has-motion .uk-textarea:focus {
  box-shadow: 0 0 0 3px rgba(43, 110, 120, 0.12);
}

/* Specs rows */
html.has-motion .product-specs tbody tr {
  transition: background-color 0.2s ease;
}

html.has-motion .product-specs tbody tr:hover {
  background: #eef3f8;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(31, 85, 93, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus {
  background: var(--brand-dark);
  outline: none;
}

.scroll-top:focus-visible {
  box-shadow: 0 0 0 3px rgba(43, 110, 120, 0.28), 0 10px 24px rgba(31, 85, 93, 0.28);
}

/* Products side spy navigator */
.products-spy {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 16px;
  z-index: 90;
  width: 168px;
  height: fit-content;
  max-height: calc(100vh - 48px);
  margin: auto 0;
  padding: 10px 8px 10px 10px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(43, 110, 120, 0.14);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(31, 85, 93, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.products-spy.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.products-spy__list {
  --spy-rail: 8px;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.products-spy__list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: calc(var(--spy-rail) - 0.5px);
  width: 1px;
  background: linear-gradient(180deg, rgba(43, 110, 120, 0.08), rgba(43, 110, 120, 0.28), rgba(43, 110, 120, 0.08));
}

.products-spy__list li + li {
  margin-top: 1px;
}

.products-spy__link {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  min-height: 30px;
  padding: 5px 6px 5px 0;
  color: #66717a;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.products-spy__link:hover,
.products-spy__link:focus {
  color: var(--brand-deep);
  background: transparent;
  text-decoration: none;
}

.products-spy__link.is-active {
  color: var(--brand-deep);
}

.products-spy__dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b7c7cb;
  box-shadow: 0 0 0 3px #fff;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.products-spy__link.is-active .products-spy__dot,
.products-spy__link:hover .products-spy__dot {
  background: var(--brand);
  border-color: var(--brand);
}

.products-spy__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-spy__link.is-active .products-spy__text {
  font-weight: 650;
  font-weight: 600;
}

.products-spy-toggle {
  display: none;
}

@media (max-width: 1199px) {
  .products-spy-toggle {
    position: fixed;
    right: 16px;
    bottom: 78px;
    z-index: 96;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 10px 24px rgba(31, 85, 93, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
  }

  .products-spy-toggle.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .products-spy-toggle:hover,
  .products-spy-toggle:focus {
    background: var(--brand-dark);
    outline: none;
  }

  .products-spy-toggle__icon--close {
    display: none;
  }

  .products-spy-toggle.is-open .products-spy-toggle__icon--list {
    display: none;
  }

  .products-spy-toggle.is-open .products-spy-toggle__icon--close {
    display: block;
  }

  .products-spy {
    top: auto;
    bottom: 134px;
    right: 16px;
    width: min(220px, calc(100vw - 32px));
    height: auto;
    margin: 0;
    max-height: min(60vh, 420px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* On mobile show panel only when opened via icon */
  .products-spy.is-visible:not(.is-open) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .products-spy.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .scroll-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }

  .products-spy-toggle {
    right: 14px;
    bottom: 66px;
    width: 40px;
    height: 40px;
  }

  .products-spy {
    right: 14px;
    bottom: 118px;
  }
}

.inquiry-open {
  border: 0;
  cursor: pointer;
}

.product-inquiry {
  margin: 1.25rem 0 0.25rem;
  text-align: center;
}

.product-inquiry .uk-button {
  display: inline-block;
  min-width: 260px;
  height: 68px;
  padding: 0 2.4rem;
  font-size: 22px;
  line-height: 68px;
}

.inquiry-dialog {
  max-width: 480px;
}

.inquiry-model {
  margin-top: 0;
}

.inquiry-row {
  display: flex;
  gap: 12px;
}

.inquiry-row .inquiry-float {
  flex: 1;
  min-width: 0;
}

.inquiry-float {
  position: relative;
  display: block;
  margin: 0.7rem 0 1rem;
}

.inquiry-float .uk-input,
.inquiry-float .uk-textarea {
  height: 48px;
  padding: 14px 12px 0;
}

.inquiry-float .uk-textarea {
  height: auto;
  min-height: 96px;
  padding-top: 18px;
  resize: vertical;
}

.inquiry-float span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 4px;
  color: #7a868f;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  background: #fff;
  pointer-events: none;
  transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}

.inquiry-float--area span {
  top: 18px;
  transform: none;
}

.inquiry-float input:focus + span,
.inquiry-float input:not(:placeholder-shown) + span,
.inquiry-float textarea:focus + span,
.inquiry-float textarea:not(:placeholder-shown) + span {
  top: 0;
  transform: translateY(-50%);
  font-size: 12px;
  color: #2B6E78;
}

@media (max-width: 520px) {
  .inquiry-row {
    display: block;
  }
}

.inquiry-form {
  text-align: center;
}

.inquiry-float,
.inquiry-row,
.inquiry-consent,
.inquiry-status {
  text-align: left;
}

.inquiry-form button[type="submit"] {
  display: inline-block;
  min-width: 240px;
  height: 52px;
  margin-top: 0.35rem;
  padding: 0 2.4rem;
  font-size: 20px;
  line-height: 52px;
}

.inquiry-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.4rem 0 0.8rem;
  font-size: 14px;
}

.inquiry-consent input {
  margin-top: 0.2rem;
}

.inquiry-status {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
}

.inquiry-status.is-ok {
  color: #1f7a46;
}

.inquiry-done {
  display: none;
  margin: 0.75rem 0 0.25rem;
  font-size: 20px;
  line-height: 1.4;
  color: #1f7a46;
}

.inquiry-dialog.is-sent .inquiry-form,
.inquiry-dialog.is-sent .inquiry-model {
  display: none;
}

.inquiry-dialog.is-sent .inquiry-done {
  display: block;
}

.inquiry-status.is-err {
  color: #b42318;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .product-item,
  .uk-button,
  .product-item__media img,
  .products-spy,
  .products-spy-toggle,
  .scroll-top {
    transition: none !important;
    animation: none !important;
  }

  .scroll-top.is-visible,
  .products-spy-toggle.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}



