/* Bayrich homepage overrides */
.header-logo img {
  width: 220px;
  height: auto;
}

.offcanvas__logo a img {
  width: 220px;
  height: auto;
}

.footer-widget-wrapper .footer-widget-items .widget-head img {
  width: 240px;
  height: auto;
}

.brand-section .brand-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 8px;
}

.brand-section .brand-image img {
  max-height: 30px;
  max-width: 150px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.hero-ratting img {
  max-width: 190px;
  height: auto;
}

.hero-1 {
  padding-right: 30px;
}

.hero-1 .hero-content-items {
  margin-left: 0;
  padding-top: 70px;
  max-width: 760px;
}

.hero-1 .hero-content-items .hero-content h1 {
  max-width: 13ch;
  line-height: 1.05;
}

.hero-1 .hero-content-items .counter-items-area {
  margin-top: 70px;
  gap: 48px;
}

.hero-1 .hero-image {
  top: 70px;
  right: 25px;
  bottom: 80px;
  max-width: 640px;
}

.hero-1 .hero-image img {
  border-radius: 18px;
  object-fit: cover;
}

.hero-1 .hero-ratting {
  right: 24px;
  bottom: 24px;
}

.hero-1 .hero-ratting img {
  max-width: 130px;
}

.cta-wrapper .cta-image img {
  max-width: 230px;
  height: auto;
}

.testimonial-box-items-style-1 .client-info .client-img img {
  width: 64px;
  height: auto;
}

/* Decorative animated logos: smaller + cleaner balance */
.float-bob-y > img[src*="assets/img/bayrich/bayrich-logo.png"],
.float-bob-x > img[src*="assets/img/bayrich/bayrich-logo.png"],
[class*="shape"] > img[src*="assets/img/bayrich/bayrich-logo.png"] {
  width: clamp(38px, 3.6vw, 76px) !important;
  max-width: 76px !important;
  height: auto;
  opacity: 0.82;
  filter: drop-shadow(0 6px 14px rgba(36, 69, 155, 0.16));
}

[class*="shape"] > img[src*="assets/img/bayrich/devuli-logo.png"] {
  width: clamp(62px, 6.2vw, 108px) !important;
  max-width: 108px !important;
  height: auto;
  opacity: 0.86;
  filter: drop-shadow(0 6px 14px rgba(36, 69, 155, 0.16));
}

:is(.text-image, .text-circle, .circle-image, .hero-circle) img[src*="assets/img/bayrich/devuli-logo.png"] {
  width: clamp(84px, 8vw, 128px) !important;
  max-width: 128px !important;
  height: auto;
  animation-duration: 18s !important;
  opacity: 0.92;
}

:is(.text-image, .text-circle, .circle-image, .hero-circle) img[src*="assets/img/bayrich/bayrich-logo.png"] {
  width: clamp(42px, 4vw, 78px) !important;
  max-width: 78px !important;
  height: auto;
  animation-duration: 18s !important;
  opacity: 0.9;
}

.hero-6 .circle-icon .text-circle img[src*="assets/img/bayrich/devuli-logo.png"] {
  width: clamp(84px, 8vw, 128px) !important;
  max-width: 128px !important;
  animation-duration: 18s !important;
}

.hero-6 .circle-icon .icon img[src*="assets/img/bayrich/devuli-logo.png"] {
  width: 34px !important;
  height: auto;
}

.hero-6 .icon-item .icon img[src*="assets/img/bayrich/devuli-logo.png"] {
  width: 34px;
  height: auto;
}

.service-box-items-style-7 .box-shape img {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 64px !important;
  max-width: 64px !important;
  height: auto;
  opacity: 0.18;
}

.team-box-items-style-7 .team-thumb .icon-shape img,
.team-box-items-style-7 .team-thumb .icon-shape2 img {
  width: 44px !important;
  height: auto;
  opacity: 0.86;
}

.pricing-box-items-style-5 .pricing-icon img {
  width: 48px;
  height: auto;
  opacity: 0.9;
}

/* Preloader branding */
.preloader {
  background-color: #ffffff;
}

.preloader .animation-preloader .spinner {
  width: 6.4em;
  height: 6.4em;
  margin: 0 auto 1.4em auto;
  border-width: 2px;
  border-color: rgba(36, 69, 155, 0.18);
  border-top-color: #25b14c;
}

.preloader .animation-preloader .txt-loading {
  width: min(340px, 76vw);
  height: 84px;
  margin: 0 auto;
  background: url("../img/bayrich/bayrich-logo.png") center center/contain no-repeat;
  font-size: 0;
  line-height: 0;
}

.preloader .animation-preloader .txt-loading .letters-loading {
  display: none;
}

.preloader p {
  margin-top: 14px;
  letter-spacing: 4px;
  color: #24459b;
}

.footer-widget-wrapper .footer-contact-form .footer-shape {
  top: 8px;
  left: 10px;
}

.footer-widget-wrapper .footer-contact-form .footer-shape-2 {
  top: 8px;
  right: 10px;
}

.footer-widget-wrapper .footer-contact-form .footer-shape img,
.footer-widget-wrapper .footer-contact-form .footer-shape-2 img {
  width: 56px !important;
  height: auto;
  opacity: 0.95;
}

@media (max-width: 991px) {
  .header-logo img {
    width: 190px;
  }

  .offcanvas__logo a img {
    width: 190px;
  }

  .hero-1 .hero-content-items .counter-items-area {
    margin-top: 34px;
    gap: 30px;
  }

  [class*="shape"] > img[src*="assets/img/bayrich/bayrich-logo.png"] {
    max-width: 62px !important;
  }

  [class*="shape"] > img[src*="assets/img/bayrich/devuli-logo.png"] {
    max-width: 92px !important;
  }

  :is(.text-image, .text-circle, .circle-image, .hero-circle) img[src*="assets/img/bayrich/devuli-logo.png"] {
    max-width: 104px !important;
  }
}

@media (max-width: 575px) {
  .footer-widget-wrapper .footer-widget-items .widget-head img {
    width: 200px;
  }

  .brand-section .brand-image {
    height: 48px;
  }

  .brand-section .brand-image img {
    max-height: 24px;
    max-width: 120px;
  }

  .hero-ratting {
    display: none;
  }

  .preloader .animation-preloader .txt-loading {
    width: min(260px, 76vw);
    height: 66px;
  }

  .preloader .animation-preloader .spinner {
    width: 5.2em;
    height: 5.2em;
    margin-bottom: 1em;
  }
}

@media (max-width: 1600px) {
  .hero-1 .hero-image {
    max-width: 560px;
  }
}

@media (max-width: 1399px) {
  .hero-1 {
    padding-right: 0;
  }

  .hero-1 .hero-content-items {
    max-width: 100%;
    padding-top: 40px;
  }

  .hero-1 .hero-image {
    position: static;
    max-width: 100%;
    margin-top: 30px;
  }
}
