:root {
  --sv-orange: #a84400;
  --sv-orange-hover: #823500;
  --sv-ink: #272727;
  --sv-soft: #f3f0eb;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
}

section[id],
#kontakt {
  scroll-margin-top: 88px;
}

.about .header .main-title::after,
.our-projects .header .main-title::after,
.our-services .header .main-title::after,
.testimonial .header .main-title::after,
.promotional-block2 .header .main-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.banner .text {
  text-align: center;
}

.banner .text h1 {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

.banner .hero-responsive-line {
  display: inline;
}

.banner .hero-service,
.banner .hero-subtitle {
  display: block;
  max-width: 860px;
  margin: 18px auto 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.55;
}

.banner .hero-service {
  font-weight: 600;
}

.banner .hero-subtitle {
  width: fit-content;
  max-width: calc(100% - 30px);
  margin-top: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 248, 241, .92);
  color: var(--sv-orange);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.banner .hero-subtitle-line {
  display: inline;
}

.banner .hero-actions {
  margin-top: 18px;
}

.banner .btn {
  display: inline-block;
  margin: 6px 8px;
  padding: 12px 26px;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.banner .hero-call,
.promotional-block .holder .btn {
  background: var(--sv-orange);
}

.promotional-block .holder .btn {
  text-transform: none;
}

.banner .hero-call {
  white-space: nowrap;
}

.banner .hero-call:hover,
.banner .hero-call:focus,
.promotional-block .holder .btn:hover,
.promotional-block .holder .btn:focus {
  background: var(--sv-orange-hover);
  color: #fff;
}

.banner .hero-message {
  border: 2px solid #fff;
  background: rgba(0, 0, 0, .45);
}

.banner .hero-message:hover,
.banner .hero-message:focus {
  background: #fff;
  color: var(--sv-ink);
}

.banner .hero-viber,
.banner .hero-viber:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: calc(100% - 30px);
  min-height: 44px;
  margin: 4px auto 0;
  padding: 8px 16px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.banner .hero-viber:hover,
.banner .hero-viber:focus {
  background: rgba(0, 0, 0, .75);
  color: #fff;
}

#metalni-stok {
  background: var(--sv-soft);
}

.promotional-block {
  background-image: url("../img/sv-obloge-bg.webp");
}

.promotional-block::before {
  background: rgba(0, 0, 0, .6);
}

.promotional-block .holder a:not(.btn),
.promotional-block .holder a:not(.btn):hover,
.promotional-block .holder a:not(.btn):focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.our-services {
  background-image: url("../img/sv-sobna-bg.webp");
}

#metalni-stok .header {
  max-width: 900px;
  margin: 0 auto 34px;
}

#metalni-stok .header p,
#metalni-stok .sv-comparison p {
  font-size: 18px;
  line-height: 1.65;
}

#metalni-stok .sv-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 28px;
  text-align: left;
}

#metalni-stok .sv-fit-card {
  padding: 30px 32px 24px;
  border: 1px solid #ded8d0;
  border-top: 4px solid var(--sv-orange);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(52, 43, 34, .06);
}

#metalni-stok .sv-fit-card--not-possible {
  border-top-color: #5f5b56;
}

#metalni-stok .sv-fit-card .title {
  margin: 0;
  color: var(--sv-ink);
  font-size: 22px;
  line-height: 1.35;
}

#metalni-stok .sv-fit-card ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

#metalni-stok .sv-fit-card li {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid #e8e2da;
  color: #49443f;
  font-size: 18px;
  line-height: 1.55;
}

#metalni-stok .sv-fit-card li:last-child {
  padding-bottom: 4px;
}

#metalni-stok .sv-comparison {
  padding: 26px 30px;
  border-left: 5px solid var(--sv-orange);
  background: #fff;
}

#okov,
#sarke,
#podrucje-rada {
  background: #fff;
}

#okov .row,
#izolacija .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#okov .row::after,
#izolacija .row::after {
  display: none;
}

#okov .col,
#izolacija .col {
  display: flex;
  float: none;
  flex-direction: column;
}

#okov .text-holder,
#izolacija .text-holder {
  flex: 1;
}

#okov .img-holder,
#izolacija .img-holder {
  display: flex;
  height: 276px;
  align-items: center;
  justify-content: center;
  background: #fff;
}

#okov .img-holder a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

#okov .img-holder img,
#izolacija .img-holder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#izolacija,
#faq {
  background: var(--sv-soft);
}

#sarke .row,
#sobna_vrata .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#sarke .row::after,
#sobna_vrata .row::after {
  display: none;
}

#sarke .col,
#sobna_vrata .col {
  display: flex;
  float: none;
  flex-direction: column;
}

#sobna_vrata .holder {
  width: 100%;
  flex: 1;
}

#podrucje-rada p,
#faq p,
#kontakt p {
  font-size: 18px;
  line-height: 1.6;
}

#podrucje-rada .container,
#faq .container {
  max-width: 950px;
}

#faq .title {
  margin-top: 30px;
  margin-bottom: 8px;
}

.sv-closing-note {
  padding: 54px 0;
  background: #fff;
  color: #49443f;
  text-align: center;
}

.sv-closing-note .container {
  max-width: 950px;
}

.sv-closing-note p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

.sv-closing-note p + p {
  margin-top: 14px;
}

.mobile-header .menu-opener {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 15px 12px;
  border: 0;
  background: transparent;
  appearance: none;
}

.mobile-header .menu-opener .screen-reader-text {
  display: block;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.mobile-header {
  background: rgba(39, 39, 39, .94);
}

.menu-opener:focus-visible,
.close-mobile-menu:focus-visible,
a:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 3px;
}

.mobile-header .mobile-menu .close-mobile-menu {
  width: 44px;
  height: 44px;
}

.site-footer,
.site-footer p {
  color: #c9c9c9;
}

.site-footer a,
.site-footer a:visited {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .widget-title {
  color: #fff;
}

.wp-call-button {
  display: none;
}

.wp-call-button:focus-visible {
  outline-color: #111;
}

@media screen and (max-width: 650px) {
  .wp-call-button {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #269041 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 459 459'%3E%3Cpath fill='white' d='M91.8 198.9c35.7 71.4 96.9 130.05 168.3 168.3l56.1-56.1c7.65-7.65 17.85-10.2 25.5-5.1 28.05 10.2 58.65 15.3 91.8 15.3 15.3 0 25.5 10.2 25.5 25.5v86.7c0 15.3-10.2 25.5-25.5 25.5C193.8 459 0 265.2 0 25.5 0 10.2 10.2 0 25.5 0h89.25c15.3 0 25.5 10.2 25.5 25.5 0 30.6 5.1 61.2 15.3 91.8 2.55 7.65 0 17.85-5.1 25.5L91.8 198.9z'/%3E%3C/svg%3E") center / 30px 30px no-repeat;
    text-decoration: none;
  }
}

@media screen and (max-width: 1199px) {
  .promotional-block,
  .promotional-block2,
  .our-services {
    background-attachment: scroll;
  }
}

@media screen and (max-width: 991px) {
  .mobile-header .mobile-menu {
    width: min(320px, 100vw);
    transform: translateX(-100%);
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  #okov .col,
  #izolacija .col {
    width: 50%;
  }
}

@media screen and (max-width: 767px) {
  body {
    font-size: 17px;
    line-height: 1.6;
  }

  .promotional-block {
    background-image: url("../img/sv-obloge-bg-mobile.webp");
  }

  .our-services {
    background-image: url("../img/sv-sobna-bg-mobile.webp");
  }

  .banner .text h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .banner .hero-service {
    font-size: 17px;
  }

  .banner .hero-subtitle {
    margin-top: 7px;
    font-size: 17px;
  }

  .banner .btn {
    display: block;
    width: 100%;
    max-width: 330px;
    margin: 10px auto;
  }

  .banner .hero-viber {
    width: 100%;
    max-width: 330px;
  }

  #metalni-stok .sv-fit-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #metalni-stok .sv-fit-card {
    padding: 24px 22px 20px;
  }

  #metalni-stok .header p,
  #metalni-stok .sv-comparison p,
  #metalni-stok .sv-fit-card li,
  #podrucje-rada p,
  #faq p,
  #kontakt p {
    font-size: 17px;
  }

  .sv-closing-note {
    padding: 36px 0;
    text-align: left;
  }

  .sv-closing-note p {
    font-size: 17px;
  }

  .wp-call-button {
    right: 14px !important;
    bottom: 14px !important;
    width: 54px !important;
    height: 54px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .35);
  }

  .site-footer .copyright {
    max-width: calc(100% - 70px);
  }

}

@media screen and (max-width: 520px) {
  .banner .text {
    padding-right: 15px;
    padding-left: 15px;
  }

  .banner .hero-responsive-line {
    display: block;
    white-space: nowrap;
  }

  .banner .text h1 {
    font-size: clamp(22px, 7.5vw, 30px);
  }

  .banner .hero-service {
    font-size: clamp(15px, 4.35vw, 17px);
  }

  .banner .hero-call {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 18px;
  }

  .banner .hero-subtitle {
    padding: 8px 10px;
    font-size: clamp(15px, 4.35vw, 17px);
  }

  .banner .hero-subtitle-line {
    display: block;
    white-space: nowrap;
  }
}

@media screen and (max-width: 359px) {
  .banner .hero-viber {
    font-size: 15px;
  }
}

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

  .mobile-header .mobile-menu {
    transition: none;
  }
}
