/* ================================================= */
/* THEME INFO */
/* ================================================= */
/*
Theme Name: Tuuri Child Theme
Description: Tuuri Child Theme
Author: MagnificSoft
Author URI: https://magnificsoft.com
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v3 or later
*/

/* ================================================= */
/* RESET */
/* ================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: none;
}

img {
	width: 100%;
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

/* ================================================= */
/* VARIABLES */
/* ================================================= */

:root {
  --color-primary: #000000;
  --color-secondary: #fff;
  --color-third: #91404b;
  --color-text: #292929;
  --color-text-2: #3b3b3b;
  --color-bg-1: #f3f3f3;
  --color-gray: #b8b8b8;
  --color-link: #787878;
  --menu-bg-1: #af8388;
  --menu-bg-2: #d7c1c3;
  --menu-bg-3: #dbc7c9;
  --menu-border: #bc6772;
  --color-border: #c7c7c7;

  --container-bg: #fff;
}

/* ================================================= */
/* BASE */
/* ================================================= */

body {
  font-family: Verdana, Geneva, Arial, Helvetica, Sans-Serif;
  background:
    linear-gradient(
        to bottom,
        rgba(83, 83, 83, 0.06) 0,
        rgba(91, 91, 91, 0.06) 22px,
        rgba(255, 255, 255, 0.16) 500px
      )
      no-repeat,
    url(/wp-content/uploads/2026/03/page.webp) top center / cover no-repeat,
    linear-gradient(to bottom, #7a7a7a 0, #808080 22px, #ededed 500px) no-repeat;
  background-attachment: fixed;
}

/* ================================================= */
/* LAYOUT */
/* ================================================= */

#main_container {
  max-width: 1100px;
  margin: 0 auto;
  background-color: var(--container-bg);
}

#main_wrap {
  @media (max-width: 1100px) {
    padding: 1%;
  }
}
main {
  display: flex;
  padding: 7px 5px 8px 5px;
  gap: 3px;
  .content {
    width: 1%;
    flex-grow: 1;
  }
  @media (max-width: 1100px) {
    flex-direction: column;
    .content {
      margin-top: 22px;
      width: 100%;
    }
  }
}

/* ================================================= */
/* HEADER */
/* ================================================= */

.header {
  position: relative;
  margin-top: 20px;

  @media (max-width: 1100px) {
    margin-top: 0;
  }
}

.header__wrapper {
  background: url(/wp-content/uploads/2026/03/header.jpg) center / cover
    no-repeat;
  min-height: 250px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-bottom: 42px;
  align-items: center;

  @media (max-width: 1100px) {
    padding-bottom: 0;
    min-height: 100px;
  }
}

.header__logo {
  position: absolute;
  top: 100px;
  left: 25px;

  @media (max-width: 1100px) {
    display: none;
  }
}

.header__titles {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "Trebuchet MS", Arial, Helvetica, Sans-Serif;
  color: var(--color-secondary);
  font-weight: bold;
  text-shadow:
    1px 0 2px rgb(23, 23, 23),
    -1px 0 2px rgb(23, 23, 23),
    0 -1px 2px rgb(23, 23, 23),
    0 1px 2px rgb(23, 23, 23),
    0 0 12px rgba(0, 0, 0, 0.99);
}

.header__title {
  a:hover {
    color: var(--menu-border);
  }
  font-size: 36px;
}

.header__slogan {
  font-size: 24px;
  text-align: right;
}

/* ================================================= */
/* NAVIGATION */
/* ================================================= */

.header__nav {
  width: 100%;
  position: absolute;
  bottom: 2px;
  left: 1px;
  background: linear-gradient(
      to bottom,
      rgba(102, 102, 102, 0.45) 0,
      rgba(128, 128, 128, 0.45) 17%,
      rgba(255, 255, 255, 0.45) 100%
    )
    no-repeat;

  @media (max-width: 1100px) {
    margin-top: 2%;
    padding: 3px 3px 0px 3px;
    position: static;
  }
}

/* Menu with native nesting */

.header__menu {
  display: flex;
  gap: 1px;

  @media (max-width: 1100px) {
    flex-direction: column;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    margin-top: 2px;
    &.open {
      max-height: auto;
    }
  }

  .menu-item {
    @media (max-width: 1100px) {
      width: 100%;
    }

    a {
      font-size: 18px;
      background: linear-gradient(
        to bottom,
        var(--menu-bg-1) 0,
        var(--menu-bg-2) 40%,
        var(--menu-bg-3) 50%,
        var(--menu-bg-3) 100%
      );
      border-radius: 7px 0;
      border: 1px solid var(--menu-border);
      padding: 0 8px;
      display: block;
      height: 26px;
      line-height: 26px;
      text-align: center;
      color: var(--color-primary);

      @media (max-width: 1100px) {
        text-align: left;
      }

      &:hover {
        color: #fff;
        background: linear-gradient(
          to bottom,
          #141414 0,
          #4d4d4d 40%,
          #525252 50%,
          #525252 100%
        );
      }
    }

    &.current-menu-item a {
      color: #fff;
      background: linear-gradient(
        to bottom,
        #666666 0,
        #808080 21%,
        #969696 40%,
        #9c9c9c 50%,
        #9c9c9c 100%
      );
    }

    &.open > .sub-menu {
      @media (max-width: 1100px) {
        max-height: 500px;
      }
    }
  }

  .sub-menu {
    @media (max-width: 1100px) {
      display: flex;
      flex-direction: column;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
  }
}

/* ================================================= */
/* HAMBURGER BUTTON */
/* ================================================= */

.header__menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid #404040;
  border-radius: 3px;
  background: linear-gradient(to bottom, #707070 0, #000 100%);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;

  @media (max-width: 1100px) {
    display: flex;
    /* margin: 3px; */
  }

  span {
    height: 3px;
    background: #e0e0e0;
    border-radius: 5px;
    transition: 0.3s;
  }

  &.active {
    span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }

    span:nth-child(2) {
      opacity: 0;
    }

    span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
    }
  }
}

/* Left sidebar */
.contact-block {
  width: 200px;
  padding-top: 7px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5em;
  margin: 0;

  .contact-block__group {
    display: flex;
    flex-direction: column;
  }
  .contact-block__group:not(:first-child) {
    margin-top: 21px;
  }
  a {
    color: -webkit-link;
  }
}

/* right sidebar */
.logo_block {
  padding-left: 10px;
  width: 200px;
  padding-top: 7px;
}

/* Page content HOME */
.home-content {
  padding-bottom: 20px;
}
.home-content .content_inner {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  .content__section {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 13px 17px;
    border-radius: 6px;
    background-color: var(--color-bg-1);
    border: 1px solid var(--color-border);
    .heading-arrow {
      display: flex;
      align-items: start;
      gap: 8px;
      &::before {
        margin-top: 4px;
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        background-image: url("/wp-content/uploads/2026/03/blockheadericon.png");
        background-size: contain;
        background-repeat: no-repeat;
      }
      h2 {
        color: var(--color-primary);
        font-weight: 400;
        font-size: 20px;
        text-transform: uppercase;
        font-family:
          "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
      }
      h3 {
        color: var(--color-primary);
        font-family:
          "Palatino Linotype", Georgia, "Times New Roman", Times, Serif;
        font-size: 20px;
      }
    }
    .content__text {
      padding: 0 5px;
      h4 {
        /* font-family: "Open Sans"; */
        font-size: 20px;
        color: var(--color-third);
        margin-top: 12px;
        margin-bottom: 20px;
      }
      p {
        color: var(--color-text-2);
        /* font-family: "Open Sans"; */
        font-size: 13px;
        margin-bottom: 9px;
        line-height: 1.5em;
      }
    }
  }
  @media (max-width: 1100px) {
    margin-top: 0;
    padding-bottom: 30px;
    flex-direction: row;
    gap: 20px;
    .content__section {
      width: 50%;
    }
  }
  @media (max-width: 500px) {
    gap: 15px;
    flex-direction: column;
    .content__section {
      width: 100%;
    }
  }
}

/* footer */
footer {
  background: linear-gradient(
      to bottom,
      rgba(171, 171, 171, 0.5) 0,
      rgba(255, 255, 255, 0.5) 100%
    )
    no-repeat;
  border-top: 1px solid #c7c7c7;
  padding: 15px;
  margin: 0 auto;
  position: relative;

  p {
    margin: 0;
    text-align: center;
    color: #2c1c1e;
    font-size: 13px;
  }
  a {
    color: var(--color-link);
  }
}

/* breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  a {
    color: var(--color-gray);
  }
}

/* konekanta */
.konekanta-content {
  h2 {
    margin-top: 26px;
    margin-bottom: 20px;
    padding-left: 5px;
    color: #9c636a;
    font-size: 26px;
  }
  /* equipment item */
  .equipment__item {
    background-color: #eee;
    display: flex;
    .equipment_image {
      border: solid 1px #b5b5b5;
      width: 29%;
      padding: 11px;
    }
    .divider {
      border: 1px solid gray;
      height: 2px;
      width: 100%;
      margin: 6px 0;
      display: block;
    }
    .equipment_info {
      padding: 2px;
      border: solid 1px #b5b5b5;
      width: 71%;
      line-height: 1.5em;
      font-size: 13px;
      color: var(--color-text);
      .equipment__title {
        color: var(--color-gray);
        &:hover {
          text-decoration: underline;
          color: #808080;
        }
      }
    }
    @media (max-width: 500px) {
      flex-direction: column;
      .equipment_image,
      .equipment_info {
        width: 100%;
      }
    }
  }
}

/* single */
.gallery-single,
.equipment-single {
  padding-bottom: 12px;
  .gallery-item__title,
  .equipment-item__title {
    margin-top: 26px;
    border-radius: 4px;
    padding: 6px 0 6px 10px;
    color: #737373;
    font-size: 20px;
    line-height: 1.25em;
    background-color: #e7e7e7;
  }
  p {
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.5em;
    margin: 12px 0;
  }
  .gallery-item__content a {
    color: #9c636a;
  }
  .gallery-item__image img,
  .equipment-item__image img {
    /* height: 100%;
    width: 100%; */
    max-width: 480px;
    object-fit: cover;
    padding: 10px 8px;
  }
}

/* pagination */
.tspager {
  margin-top: 2px;
  padding: 7px 9px;
  box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  background-color: #ebebeb;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  line-height: 1.5em;
  span,
  a {
    border-radius: 6px;
    padding: 10px;
  }
  a {
    &:active,
    &:hover {
      background: #d5bec0;
      color: #336;
    }
  }
}

/* Yhteydenotto page */
.yhteydenotto-content {
  padding-bottom: 15px;
  .contact {
    a {
      color: -webkit-link;
    }
    address {
      font-style: normal !important;
    }

    margin-top: 26px;
    border-top: 1px solid #ccc;
    padding-top: 1px;
    .contact__container {
      display: flex;
    }
    .contact__info {
      width: 71.4%;
    }
    .contact__links {
      display: flex;
      flex-direction: column;
    }
  }
  font-size: 14px;
  line-height: 1.5em;
  color: var(--color-text);
  p {
    margin: 0;
  }
  .boxed-heading {
    margin-top: 42px;
    h2 {
      border-radius: 4px;
      padding: 6px 0 6px 10px;
      color: #737373;
      font-size: 20px;
      line-height: 1.25em;
      background-color: #e7e7e7;
      margin: 8px;
    }
  }
  .contact__form-text {
    color: #737373;
    padding: 15px 18px;
    font-size: 20px;
    line-height: 1.25em;
  }
	textarea {
		padding: 5px 10px !important;
	}
  input {
    padding: 5px 10px !important;
  }
  input,
  textarea,
  select {
    width: 100%;
    padding: 4px 0;
    color: #000000 !important;
    font-size: 14px;
  }
  .jet-form-builder__required {
    color: #f00;
  }
  .jet-form-builder__action-button {
    background:
      linear-gradient(
          to bottom,
          rgba(135, 220, 219, 0.09) 0,
          rgba(230, 248, 248, 0.15) 40%,
          rgba(236, 250, 249, 0.16) 50%,
          rgba(236, 250, 249, 0.16) 100%
        )
        no-repeat,
      url(/sites/all/themes/TuuriSteel/images/button.png),
      linear-gradient(
          to bottom,
          rgba(152, 225, 224, 0.8) 0,
          rgba(215, 244, 243, 0.8) 40%,
          rgba(219, 245, 244, 0.8) 50%,
          rgba(219, 245, 244, 0.8) 100%
        )
        no-repeat;
    color: #6b6b6b;
    border: 1px solid rgba(0, 0, 0, 0.8);
    padding: 3px 15px;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease !important;

  &.active {
    opacity: 1;
    visibility: visible;

    .lightbox__content {
      transform: scale(1);
    }
  }

  &.closing {
    opacity: 0;
    visibility: hidden;

    .lightbox__content {
      transform: scale(0.6);
    }
  }

  .lightbox__overlay {
    position: absolute;
    inset: 0;
    opacity: 0.85;
    background-image: url(/wp-content/uploads/2026/03/overlay.png);
    cursor: pointer;
  }

  .lightbox__content {
    position: relative;
    transform: scale(0.6);
    transition: transform 0.3s ease !important;

    background: #111111b3;
    padding: 12px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;

    .lightbox__close {
      position: absolute;
      bottom: 16px;
      padding: 0;
      right: 19px;
      border: 1px solid #111 !important;
      width: 20px;
      height: 20px;
      background: #fff;

      border-radius: 50%;
      cursor: pointer;
      font-size: 10px;
      line-height: 2em;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #111;

      &:hover {
        background: #ddd;
      }
    }
    .lightbox__content-inner {
      background-color: #fff;
      border-radius: 8px;
      padding: 8px 8px 5px 8px;
    }
    .lightbox__caption {
      text-align: center;
      color: #949494;
      font-size: 16px;
      font-family: "Times New Roman", Times, serif;
    }
    img {
      max-width: 100%;
      max-height: 70vh;
      display: block;
    }
  }
}
