/* -------------------------------------------------------------------
   Fontit
------------------------------------------------------------------- */

@font-face { 
  font-family: 'FontAwesome'; 
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');
}

/* -------------------------------------------------------------------
   Yleiset
------------------------------------------------------------------- */
body {
  font-family: avenir-lt-pro, sans-serif;
  background-color: white;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'the-seasons', sans-serif;
	font-weight:700;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
}

/* Napit */
.service_button {
	color: inherit;
	text-decoration: none;
}
.service_button:hover,
.service_button:focus,
.service_button:active {
	color: inherit;
	text-decoration: none;
}

.btn-md {
  font-family: avenir-lt-pro, sans-serif;
  text-transform: uppercase;           
  width: fit-content;
  border-radius: 0;   
  background-color: hsla(0, 0%, 0%, 0.75);
  color: white;
}

.btn-md:hover {
  background-color: hsl(0, 0%, 0%);
  color: white;
}

.btn-md span {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.btn-with-icon {

  gap: 12px;
  width: 180px;
}

.btn-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 0;
  margin-bottom: 3px;
}

/* Vaalea versio */
.btn-ghost-light {
  background: hsla(0, 0%, 100%, 0.75);
  color: #000;
  border: 0;
}
.btn-ghost-light:hover,
.btn-ghost-light:focus {
  background: hsla(0, 0%, 100%, 0.9);
  color: #000;
}

.btn-ghost-light .btn-icon {
  -webkit-filter: invert(1);
  filter: invert(1);
}

/* Käytä normaalia pidemmille napeille */

.long-btn {
  width: fit-content;
  padding: 6px 12px !important;
}


.text-box h3 {
  font-family: 'the-seasons', sans-serif;
  font-size: 36px;
  margin-bottom: 0;
}

.text-box ul {
  padding-left: 1em;
}

/* Remove number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.section-title {
  display: flex;
  align-items: center;
  text-align: center;
  width: 100%;       /* fills container */
  font-size: 1.75rem;
  margin: 2rem 0;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;                          /* stretches to fill remaining space */
  border-bottom: 2px solid #000;    /* line */
}

.section-title:before {
  margin-right: 1rem; /* gap on left side of text */
}
.section-title:after {
  margin-left: 1rem;  /* gap on right side of text */
}

.section-title span {
  white-space: nowrap;  /* keeps text together */
}

[role="doc-subtitle"] {
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  margin-bottom: 16px;
  margin-top: 0;
 }

/* -------------------------------------------------------------------
 Navigaatio
------------------------------------------------------------------- */

.navbar {
  background-color: hsla(70, 21%, 95%, 1);
}

.navbar .collapse {
  margin-bottom: 0 !important;
}

/* Tasoitetaan reunoille */

.navbar-brand {
  padding-left: 0;
}
.navbar-nav {
  padding-right: 0;
}

.navbar-nav li a {
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: hsla(0, 0%, 16%, 1);
  margin: 0 1vw;
  transition: 0.1s ease;
}

.navbar-nav ul li a:hover {
  background-color: rgb(226, 227, 220);
}

.navbar li a:last-of-type {
  margin-right: 0;
}


.navbar-toggler {
  margin-right: 24px;
}

.navbar .nav-logo {
  max-height: 60px;
  min-height: 30px;
  width: auto;
  height: 10vw;
}

.dropdown-menu {
overflow: hidden;
}

  @media (max-width: 991.8px){
      .navbar-brand {
    margin-left: .5rem;
        margin-right: 0;
    }
    
      .navbar-nav .nav-item {
    margin-left: .5rem;
  }
  }



/* -------------------------------------------------------------------
  Pääosio "Hero"
------------------------------------------------------------------- */
.hero {
  padding-top: 0;
  padding-bottom: 0;
  height: auto;
}

.hero .bg-image {
  height: 270px;
  background-size: cover;
  background-position: center;
  max-width: 100% !important;
  padding: 0 !important;
}
@media only screen and (orientation: landscape) {
	.hero .bg-image {
		height: 357px;
	}
}
@media only screen and (min-width: 768px) AND (max-width: 991px) {
	.hero .bg-image {
		height: 360px;
	}
}

.hero .overlay {
  background: rgba(117, 64, 36, 0.88);
  color: #fff;
  min-height: 300px;
  padding: 8rem 4rem;
  height: 100%;
}
.hero .overlay-content {
  width: fit-content;
  margin: 0 auto !important;
}

@media (min-width: 920px) and (max-height: 992px) {
  .overlay {
    height: fit-content;
    box-sizing: border-box;
    max-height: 600px;
  }
  
  .hero {
    height: auto;
  }
}

@media (min-width: 992px) {
  .hero .bg-image {
    display: none; /* Hide mobile background on desktop */
  }

  .hero {
    background-image: url('politec/sivuelementit/34d53ea0e6084879c61785151d10697bd5237533.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-items: flex-end;
    padding-right: 0;
  }
}

@media (max-width: 991.98px) {
  .hero .overlay {
    min-width: 100% !important;
    margin-left: 0 !important;
    height: fit-content !important;
    position: relative;
    background-color: hsla(27, 100%, 24%, 1) !important;
  }

  .hero {
    padding-right: 0 !important;
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }
}

@media (max-width: 576px) {
   .hero .overlay {
    padding: 1rem 2rem !important;
  }
}


/* -------------------------------------------------------------------
   Pää-container
------------------------------------------------------------------- */
.main-container {
  width: 100%;
  margin: 0 auto;
  padding: 0;

}

@media (min-width:  576px) {
  .main-container {
    width: 80%;
    max-width: 980px;
  }

}

/* -------------------------------------------------------------------
   Palvelut
------------------------------------------------------------------- */

#palvelut {
  height: fit-content;   
  background-color: hsla(70, 21%, 95%, 1);
  width: auto;
}
.start_loader_img {
  position: absolute;
  left: 50%;
  bottom: -200px;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  display: block;
}

/* Logo-kuvan koko */
.start_loader_img img {
  width: 100%;
  max-width: 240px;
  height: auto;
}

/* Bounce-animaatio */
@keyframes bounceUp {
  0% {
    bottom: -200px;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
  }
  60% {
    bottom: 55%;
    transform: translate(-50%, 55%) scale(1.05);
    opacity: 1;
  }
  80% {
    bottom: 48%;
    transform: translate(-50%, 48%) scale(0.98);
  }
  100% {
    bottom: 50%;
    transform: translate(-50%, 50%) scale(1);
    opacity: 1;
  }
}

.start_loader_img.show {
  animation: bounceUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Fadeout-animaatio */
#start_loader.fadeout {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.service-card {
  width: auto;
  border-radius: 8px;
  text-align: center;
  overflow: visible;
}

.service-card img {
  max-height: 72px;
  width: auto;
  object-fit: cover;
}

.cta {
  padding-top: 24px;
  padding-left: 0;
  padding-right: 0;
  width: 50%;
  display: block;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  text-align: center;
}

.cta .btn {
    margin: 0 auto;
  margin-top: 16px;
  margin-bottom: 24px;
  display: block;
}

/* -------------------------------------------------------------------
   Vaihtelevat osiot (Desktop + mobiili)
------------------------------------------------------------------- */
.alt-section {
  //min-height: 500px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;   
  background-attachment: scroll;
}
@media (min-width: 1200px) {
	.h1 {
		font-size:3.25rem;
	}

}
@media (min-width: 992px) {
  .alt-section {
    background-size: 100% auto;
  }
	.col-lg-6 {
		margin-top:3rem;
		margin-bottom:3rem;
	}
}

@media (max-width: 576px) {
  .alt-section div.text-box {
    padding: 1rem 2rem !important;
  }
}

/* Tekstiboxi desktopilla */
.alt-section .text-box {
  padding: 2rem 4rem;
  background-color: rgba(243, 244, 238, 0.8);
  border-radius: 0;
  width: 100%;
}

.alt-section:nth-child(2n) .text-box {
    background-color: hsla(27, 100%, 24%, 0.8);
    color: white;
}

/* Vaihtoehtoinen kuva-wrappi */
.alt-section .img-wrap {
  overflow: hidden;
  border-radius: 6px;
  min-height: 216px;
}
.alt-section .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.alt-section img.btn-icon {
  object-fit: contain;
  display: inline-block;
}

/* Napit */

.collapse-toggle {
  display: inline-block;
  align-items: center; 
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  border-bottom: 1px solid black;
  padding: 0 !important;
}

.collapse-toggle .btn-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
  transition-delay: 0.1s;
  margin-bottom: 2px;
}

.collapse-toggle.collapsed .btn-icon {
  -webkit-transform: rotate(0deg) !important;
  transform: rotate(0deg) !important;
}

.collapse-toggle:not(.collapsed) .btn-icon {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}


.collapse {
  margin-bottom: 24px; 
}



/* Käännä ikonia 90*, esim. chevron-right alaspäin */
.icon-rotate-90 {
  transform: rotate(90deg);
}
/* Muuta valkoinen ikoni mustaksi tai toisinpäin */
img.icon-invert {
  -webkit-filter: invert(1);
  filter: invert(1);
}

/* -------------------------------------------------------------------
   Mobiilissa:
   - Poista itse osion taustakuva
   - Näytä .bg-image div sen sijaan
   - Tee tekstilaatikosta kokon näytön levyinen
------------------------------------------------------------------- */
@media (max-width: 991.8px) {
  .alt-section { /* Kuva ja teksti päällekäin, taustakuva pois */
    display: block;              
    background: none !important; 
    padding: 0;
  }

  .alt-section .bg-image {
    width: 100%;
    height: 270px;
    background-size: cover;
    background-position: center;
  }

  .alt-section .text-box {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
    background: hsla(70, 21%, 95%, 0.8);
    border-radius: 0;
  }

.alt-section .text-box .btn-with-icon {
  margin:0;
}

 .alt-section .col-12,
.alt-section .col-md-6 {
    padding-left: 0;
    padding-right: 0;
  }
  
  .alt-section .btn-with-icon {
    margin: 0 auto;
  }

  .navbar-nav .nav-item {
    margin-left: 12px;
	margin-right:12px;
  }
}
@media (max-width: 991.8px) and (orientation: landscape) {
	.alt-section .bg-image {
		height: 360px;
	}
}

/* -------------------------------------------------------------------
   Yritys-esittely
------------------------------------------------------------------- */


div.yritys-esittely {
  position: relative;
  background-image: url('politec/sivuelementit/dba7500176860e10d75476b1207610c0dfeac05c.jpg'); 
  background-size: auto 1440px;
  background-repeat: no-repeat;
  background-position: center;
  padding-top: 48px;
  padding-bottom: 48px;
  color: black;
  height: fit-content;
}
.yritys-esittely h3 {
  font-family: 'the-seasons', sans-serif;
}

.yritys-esittely .yritys-esittely-box {
  background: hsla(70, 21%, 95%, 0.8);
  border-radius: 0;
  padding: 2rem 4rem;
}
.yritys-esittely .yritys-esittely-logo {
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: 16px;
  margin-top: 16px;
}

@media (max-width: 991.8px) {
  div.yritys-esittely {
    background: none !important;
    padding: 0 !important;
  }

  .yritys-esittely .bg-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
  }
  .yritys-esittely .yritys-esittely-box {
    border-radius: 0;
  }
}

@media (max-width: 576px) {
  .yritys-esittely .yritys-esittely-box {
    padding: 1rem 2rem !important;
  }
}


/* -------------------------------------------------------------------
   Karuselli
------------------------------------------------------------------- */
.carousel-control-next, .carousel-control-prev {
  color: black;
  position: absolute !important;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.carousel-indicators {
  top: 102%;
}

.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }

.refs-section {
  padding: 24px 0 24px;
  background: hsla(27, 100%, 24%, 1);
  height: fit-content;
  padding-bottom: 48px !important;
}

.refs-card img.img-fluid {
  max-width: 100%;
  height: auto; 
  object-fit: cover;
}

@media (max-width: 992px) {
  .carousel-control-prev { left: -24px; }
  .carousel-control-next { right: -24px; }
}

@media (max-width: 768px) {
  .carousel-control-next, .carousel-control-prev {
    display: none
  }
}

/* Mobiilityylit */

@media (max-width: 576px) {
  .refs-section {
    height: fit-content;
    width: 100%;
    margin-bottom: 0;

  }

  .refs-card {
    width: 100% !important;
    height: fit-content !important;
    padding: 0 !important;
    padding-bottom: 5% !important;
  }

  .refs-card h3 {
    font-size: 36px;
  }

  .carousel-control-next, .carousel-control-prev {
    display: none;                      
  }
  
}

/* /// Mobiilityylit */

.refs-header {
  color: white;
}

.refs-header img.refs-icon {
  margin-bottom: 8px;
  width: 50px;
  height: 50px;
}

.refs-card {
  background: hsla(70, 21%, 95%, 0.8);
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 24px;
  padding-bottom: 24px;
  border-radius: 0;
  width: 80%;
  margin: 0 auto;
  height: fit-content;
  display: flex;
  align-items: center;
}
.refs-content {
  background: transparent;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.refs-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  color: black;
}
.refs-link .btn-icon {
  margin-bottom: 0;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
  filter: invert(1);                  
  background-color: transparent;     
  width: 20px;
  height: 20px;
  z-index: 2;                        
}

.carousel-control-next::after, .carousel-control-prev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;                 
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1;
}

@media only screen and (max-device-width : 1024px) {
  .carousel-control-next::after, .carousel-control-prev::after {
    display: none;
  }
  }

/* -------------------------------------------------------------------
   Yhteyslomake
------------------------------------------------------------------- */
.contact-section {
  background: #7a4a2f;
  color: #fff;
  height: fit-content;
  padding-top: 48px;
  padding-bottom: 48px;
}
.contact-card {
  background: hsla(70, 21%, 95%, 0.8);
  color: #000;
  padding: 24px;
  border-radius: 8px;
}

/* -------------------------------------------------------------------
   Footeri
------------------------------------------------------------------- */

footer.site-footer {
  background: hsla(27, 100%, 24%, 0.8); 
  color: #fff;
  padding: 48px 0;
}

.site-footer img.footer-logo.icon-invert {
  max-width: 160px !important;
  height: auto !important;
  max-height: 160px;
  margin-bottom: 1rem;
}

.site-footer .footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.site-footer a:hover {
  color: #f3f3f3;
}

#alatunniste a {
  color: rgb(63,62,44);
}

/* -------------------------------------------------------------------
------------------------------------------------------------------- */
#page {
  padding: 0px;
  border: 0px;
  background-color: #F3F4EE !important;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#sisalto {
  background-color: #F3F4EE;
  border: 0px !important;
}

#logo {
  width: 100%;
  background-color: inherit;
  float: left;  
  border-bottom: 0px;
  border-right: 0px solid #F5F5F5;
}

#logo img {
  height: auto;
  max-height: 100%;
  max-width: 100%;
  width: auto;
}

#alatunniste {
  vertical-align: sub;
  text-align: center;
  width: 100%;
  min-height: 30px;
  clear: both;
  border: 0px !important;
  padding-bottom: 5px;
}

#oikeapalkki {
  border: 0px !important;
  display: inline-block !important;
  width: 10% !important;
  float: none !important;
}

#kuvatausta img {
  max-width: 100%;
  height: auto;
  max-height: 122px;
  margin-top: 2px;
}

#isokuva_div span.glyphicon {
  cursor: pointer;
}

#sisalto .main-content {
  width: 55%;
}
.content {
  margin-left: 5%;
  text-align: left;
}
.minitext {
  font-size: 8px;
}

#isotumma {
  z-index: 10;
  background-image: url("http://politec.hegesoft.fi/sivuelementit/x.png");
}

.owl-carousel .owl-wrapper-outer,
.owl-carousel .owl-wrapper,
.owl-carousel .owl-item,
.owl-carousel .item {
  max-height: inherit;
}
.owl-carousel img {
  width: 95%;
}

#menu {
  width: 100%;             
  min-height: 50px;
  padding-bottom: 0px;
  border: 0px;
  border-top: 1px solid #F5F5F5;
}
.linkkispan {
  width: 19%;
  display: inline-block;
  float: left;
  text-align: center;
}
.linkkispan a {
  width: 100%;
  display: inline-block;
}
.alalinkit {
  width: 13%;
  float: left;
  position: absolute;
  text-align: left;
  background-color: #FFF;
  z-index: 10;
  display: block;
  max-height: 0px;
  overflow: hidden;
}
.alalinkit .alalinkki {
  padding: 5px;
  margin-left: 0px;
  padding-left: 10px;
  padding-right: 10px;
}
.linkkispan:hover .alalinkit {           
  max-height: 299px;
  transition: max-height 1s;
  -webkit-transition: max-height 1s;
}

#user-login-info {
  display: none;
}
#sisalto .main-content {
  width: 85%;
}