/* Smartass – tilpasninger oppå Youth-malen */

/* Logo øverst til venstre (samme logo på mørk og lys bakgrunn) */
.logo-img:before,
.logo-img-dark:before,
.logo-light .logo-img:before,
.logo-dark .logo-img-dark:before {
  width: 150px;
  height: 53px;
  background: url(../img/logo-smartass.png) no-repeat left center / contain !important;
}
@media only screen and (max-width: 880px) {
  .logo-img:before,
  .logo-img-dark:before,
  .logo-light .logo-img:before,
  .logo-dark .logo-img-dark:before { width: 113px; height: 40px; }
}

/* Logo i bunnen */
.footer-logo,
.footer-logo:before {
  width: 170px;
  height: 60px;
  background: url(../img/logo-smartass.png) no-repeat center / contain !important;
}

/* Stor logo på forsiden */
.home-page-title.hero-logo { line-height: 0; margin-bottom: 10px; }
.hero-logo img {
  display: inline-block;
  width: 70vw;
  max-width: 820px;
  height: auto;
}
@media only screen and (max-width: 880px) {
  .hero-logo img { width: 88vw; }
}

/* Portrett på «Om meg» */
.about-portrait {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 0 30px 0;
}
@media only screen and (max-width: 991px) {
  .about-portrait { margin: 0 auto 30px auto; }
}

/* Videoprosjekt i «Arbeider» */
.image-works.work-video { position: relative; cursor: pointer; }
.work-play {
  position: absolute;
  right: 30px; bottom: 30px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  border: 2px solid #fff;
  color: #fff;
  font-size: 22px;
  line-height: 60px;
  text-align: center;
  padding-left: 5px;
  pointer-events: none;
  z-index: 5;
  transition: opacity .3s;
}
.image-works.work-video:hover .work-play { opacity: 0; }

.video-modal {
  position: fixed; inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.video-modal.open { display: flex; }
.video-modal video { width: 100%; max-width: 1280px; max-height: 100%; background: #000; }
.video-modal-close {
  position: absolute; top: 15px; right: 25px;
  background: none; border: 0;
  color: #fff; font-size: 44px; line-height: 1;
  cursor: pointer;
}

/* Egen video i bakgrunnen på forsiden (erstatter YouTube) */
.hero-fullscreen { overflow: hidden; background: #0a0a0a url(../img/background/YT-bg.jpg) center / cover no-repeat; }
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
}

/* Sikkerhetsnett: skjul lasteanimasjonen etter 4 sekunder selv om noe henger */
@keyframes smartass-hide-preloader { to { opacity: 0; visibility: hidden; } }
#preloader { animation: smartass-hide-preloader .4s ease 4s forwards; }

/* Tallstripen med ord i stedet for tall */
.facts-word {
  font-family: 'Raleway', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
}
.facts-counter-wrapper .col-sm-4 { margin-bottom: 30px; text-align: center; }
@media only screen and (max-width: 767px) { .facts-word { font-size: 34px; } }

/* Kundesitater uten bilde */
.section-testimonials .testimonials-quote p { font-size: 24px !important; line-height: 1.5 !important; }
.section-testimonials .testimonials-signature { font-size: 13px !important; margin-top: 14px; }

/* Rødfarge fra logoen */
:root { --smartass-red: #b8423f; --smartass-red-light: #d4534f; }
.section-title:before,
.section-links:after,
.section-title:after,
.footer-contact-block .email:after,
.section-links:hover:after,
.footer-contact-block .email:hover:after { background-color: var(--smartass-red) !important; }
.section-links,
.section a.section-links,
.footer-contact-block .email:hover,
.section-links:hover { color: var(--smartass-red) !important; }
.submit-button { background: #111 !important; }
.submit-button::before { background: var(--smartass-red) !important; }
.services-img span,
.facts-counter-description i,
.quote-mark-l, .quote-mark-r { color: var(--smartass-red-light) !important; }
.menu-link:hover, .menu-link.active { color: var(--smartass-red-light) !important; }
.facts-word { color: var(--smartass-red-light); }
.section-all-subtitle-first { color: #111; }

/* Luft under «Om meg»-overskriften når ingressen er fjernet */
#about .container > .row.alt + .row { margin-top: 110px; }
@media only screen and (max-width: 1200px) { #about .container > .row.alt + .row { margin-top: 80px; } }
