/* ==========================================================
   site.css – westlog.fi (Kaikki CSS yhdessä tiedostossa, jotta sivu latautuu nopeasti)
     - Sisältää Bootstrap 4.6.1:n ja Open Sans -fontit
     - Mukautettu Westlogin tarpeisiin (suomenkieliset luokkien nimet)
   ========================================================== */

/* --- Fontit (Open Sans) --- */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/open-sans/open-sans-v44-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans/open-sans-v44-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/open-sans/open-sans-v44-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/open-sans/open-sans-v44-latin-800.woff2') format('woff2');
}

/* --- Bootstrap (stripped, v4.6.1) --- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol, ul {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 2rem;
}

a {
  text-decoration: none;
}

img {
  vertical-align: middle;
}

button {
  border-radius: 0;
}

button:focus {
  outline: 1px dotted;
  outline: 5px auto -webkit-focus-ring-color;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
[type="button"] {
  -webkit-appearance: button;
  appearance: button;
}

/* --- Container --- */

.container,
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}
@media (min-width: 768px) {
  .container { max-width: 720px; }
}
@media (min-width: 992px) {
  .container { max-width: 960px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

/* --- Grid --- */

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col,
.col-12,
.col-sm-6,
.col-md-6,
.col-lg-4 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* --- Navbar --- */

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.navbar > .container,
.navbar > .container-fluid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

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

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: "";
  background: no-repeat center center;
  background-size: 100% 100%;
}

.navbar-light .navbar-toggler {
  color: rgba(0,0,0,0.5);
  border-color: rgba(0,0,0,0.1);
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-expand-lg > .container,
  .navbar-expand-lg > .container-fluid {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-flow: row nowrap;
    justify-content: flex-start;
  }
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  .navbar-expand-lg > .container,
  .navbar-expand-lg > .container-fluid {
    flex-wrap: nowrap;
  }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

/* --- Nav --- */

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
}

.nav-link:hover,
.nav-link:focus {
  text-decoration: none;
}

/* --- Collapse --- */

.collapse:not(.show) {
  display: none;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

/* --- Carousel --- */

.carousel {
  position: relative;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
  position: relative;
  opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  color: #fff;
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  color: #fff;
  text-decoration: none;
  outline: 0;
  opacity: 0.9;
}

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

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

.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  padding-left: 0;
  margin-right: 15%;
  margin-left: 15%;
  list-style: none;
}

.carousel-indicators li {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px;
  height: 3px;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: #fff;
  background-clip: padding-box;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.carousel-indicators .active {
  opacity: 1;
}


/* --- Utilities --- */

.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase !important; }

.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}

.flex-column-reverse {
  flex-direction: column-reverse !important;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   Westlog – Kustomoitu CSS
   ========================================================== */

/* --- Perus (Base) --- */

a {
  color: #48484d;
  font-weight: bold;
}

a:hover {
  color: #6e7077;
}

/* --- Logo-osio --- */

.logo-osio {
  height: 113px;
  background: #ffffff;
  margin-top: 0;
  padding-top: 1px;
  margin-bottom: 10px;
}

.logo-kuva {
  width: 270px;
  height: auto;
  padding-top: 2px;
}

/* --- Navigaatio --- */

.navigaatio-osio {
  background-color: #ffffff;
  padding: 0;
}

.navigaatio {
  color: #ffffff;
  background: #040404;
  margin-top: 0;
  padding-top: 8px;
}

.navigaatio .navbar-toggler {
  color: #ffffff;
  background-color: #ffffff;
  margin-top: 8px;
  margin-bottom: 8px;
}

.navigaatio .navbar-toggler-icon {
  width: 50px;
  height: 50px;
  color: #ffffff;
}

.navigaatio .navbar-collapse {
  font-size: 16px;
  width: 100%;
}

.navbar-light .navbar-nav .nav-link {
  color: white;
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
  color: rgba(251,250,250,0.7);
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  text-decoration: none;
}

.nav-link.active {
  color: #ffd600!important;
}

.navi-linkki {
  font-family: 'Open Sans', sans-serif;
  font-weight: normal;
  font-size: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  color: #ffffff;
  padding-right: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navi-linkki:hover {
  font-weight: lighter;
  color: #ffd600;
}

/* --- Karuselli (Carousel) --- */

.karuselli-kuva {
  overflow: hidden;
}

.karuselli-kuva img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 700px;
  object-fit: cover;
}

/* --- Karuselli-nuoli (Carousel arrows) --- */

.karuselli-nuoli {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
}

.karuselli-nuoli--vasen {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.karuselli-nuoli--oikea {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* --- Ylakuva  --- */

.ylakuva {
  height: 40vw;
  max-height: 500px;
  min-height: 150px;
  overflow: hidden;
}

.ylakuva img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Sisalto  --- */

.sisalto {
  width: 100%;
}

.sisalto-otsikko {
  color: #000;
  font-family: 'Open Sans', sans-serif;
  font-weight: normal;
  font-size: 21px;
  text-transform: uppercase;
  margin-top: 25px;
  margin-bottom: 0;
}

.otsikko-pieni {
  font-weight: bold;
  font-size: 17px;
}

.leipateksti {
  width: 100%;
  margin-bottom: 16px;
  color: rgb(65,65,65);
  font-family: 'Open Sans', sans-serif;
}

.yhteystiedot-erotin {
  margin-top: 13px;
}

.sisalto-vali {
  margin-bottom: 40px;
  width: 100%;
}

/* --- Painike (CTA Button) --- */

.painike {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  color: #ffffff;
  font-family: Kanit, sans-serif;
  font-weight: normal;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  min-width: 292px;
  border-radius: 0;
  background: #000000;
}

.painike:hover {
  color: #000;
  background: #f8d000;
  text-decoration: none;
}

.painike:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* --- Palvelulaatikko  --- */

.palvelulaatikko {
  margin-top: 24px;
  padding: 15px;
  background: #f2f2f2;
}

/* --- Kuvagalleria  --- */

.kuvagalleria-osio {
  width: 100%;
  padding-bottom: 40px;
}

.kuvagalleria {
  margin-top: 50px;
}

.kuvagalleria-sarake {
  padding-bottom: 10px;
}

.kuvagalleria-kuva {
  width: 100%;
  height: auto;
}

.kuva-pieni {
  width: 100%;
  height: auto;
  max-width: 350px;
  margin-bottom: 25px;
}

/* --- Yhteystiedot-sivu  --- */

.yhteystiedot-raja {
  border-top-width: 16.4px;
  border-top-style: solid;
}

.yhteystiedot-sarake {
  width: 100%;
}

.yhteystiedot-lomake {
  min-height: 600px;
}

/* --- Alatunniste --- */

.alatunniste {
  padding: 40px 0;
  background: #000;
  color: #fff;
}

.alatunniste-teksti {
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
}

