/*
Vekka Capital – static site styles.

Rebuilt from the original WordPress theme (vekkacapital) stylesheet,
keeping only the rules these pages use. Sizes are in rem/em with
unitless line-heights; hairline borders and shadows stay in px.
*/
@import url(https://fonts.googleapis.com/css?family=PT+Sans:400,700&display=swap);

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: #fff;
}

body,
p,
table {
  font-size: 1rem;
  font-family: "PT Sans", "Open Sans", calibri, sans-serif;
  line-height: 1.5625;
}

p {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
  font-weight: 400;
  word-wrap: break-word;
}

a {
  color: #733d3d;
  text-decoration: none;
  transition: all 300ms ease;
}

a:hover {
  color: #ccc;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  margin-bottom: 0.625rem;
}

h1 {
  font-size: 3rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

img {
  border: 0;
  height: auto;
  max-width: 100%;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #fff;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #000;
  display: block;
  font-weight: bold;
  height: auto;
  left: 0.3125rem;
  top: 0.3125rem;
  width: auto;
  padding: 0.9375rem 1.4375rem 0.875rem;
  z-index: 100000;
}

@media (min-width: 1200px) {
  .container {
    width: 75rem;
  }
}

/*--------------------------------------------------------------
# Layout helpers
--------------------------------------------------------------*/
.section {
  padding: 1.8rem;
}

.max-width {
  max-width: 32rem;
}

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

/*--------------------------------------------------------------
# Header & navigation
--------------------------------------------------------------*/
#header {
  width: 100%;
  background-color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
}

#header .logo {
  padding: 1rem;
}

#header .logo img {
  width: 100%;
  max-width: 16.9375rem;
}

#header .menu {
  background-color: #000;
}

#site-navigation {
  line-height: 1.25;
  min-height: 2.1875rem;
}

#site-navigation ul {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  list-style-type: none;
}

#site-navigation ul li {
  margin: 0;
  padding: 0;
  display: inline-block;
}

#site-navigation ul a {
  display: inline-block;
  color: #fff;
  padding: 0.4375rem 0.9375rem;
  text-transform: uppercase;
  font-weight: bold;
}

#site-navigation ul a:hover,
#site-navigation ul a[aria-current="page"] {
  color: #ccc;
}

/*--------------------------------------------------------------
# Page header image
--------------------------------------------------------------*/
.page-image img {
  display: block;
  width: 100%;
}

/*--------------------------------------------------------------
# Home page hero (cover)
--------------------------------------------------------------*/
.cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26.875rem;
  padding: 1em;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.cover-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.cover-dim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #000;
  opacity: 0.6;
}

.cover-content {
  position: relative;
  width: 100%;
}

.cover h1 {
  margin-top: 0;
  color: #fff;
}

/*--------------------------------------------------------------
# Content blocks
--------------------------------------------------------------*/
.section-light {
  background-color: #e9eef1;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2em;
}

.columns > .column {
  flex: 1 1 100%;
  min-width: 0;
}

@media (min-width: 782px) {
  .columns {
    flex-wrap: nowrap;
  }

  .columns > .column {
    flex-basis: 0;
  }
}

.button {
  display: inline-block;
  margin-top: 0.9375rem;
  padding: 0.625rem 0.9375rem;
  border: 0;
  background-color: #000;
  color: #fff;
  font-size: 1.125em;
  font-weight: bold;
}

.button:hover,
.button:focus {
  background-color: #222;
  color: #fff;
  text-decoration: none;
}

/*--------------------------------------------------------------
# Toimitilamme (premises table)
--------------------------------------------------------------*/
#toimitilamme table {
  width: 100%;
}

#toimitilamme table td,
#toimitilamme table th {
  padding: 0.9375rem;
  vertical-align: middle;
}

#toimitilamme table img {
  display: block;
  width: 18.75rem;
}

@media (max-width: 575px) {
  #toimitilamme table td,
  #toimitilamme table th {
    padding: 0.625rem 0.5rem;
  }

  #toimitilamme table img {
    width: 7.5rem;
  }

  /* Tilatyyppi is the same for every row; drop it to fit narrow screens */
  #toimitilamme table th:nth-child(3),
  #toimitilamme table td:nth-child(3) {
    display: none;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background-color: #000;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.4286;
  padding: 1.8rem;
}

#footer p {
  font-size: 0.875rem;
  line-height: 1.4286;
}

#footer a {
  color: #fff;
}

#footer a:hover {
  color: #ccc;
}

#footer .footer-content {
  display: flex;
  gap: 2.4rem;
}

#footer .footer-content .logo {
  flex: 1 1 50%;
  margin-top: 1rem;
  text-align: right;
}

#footer .footer-content .logo img {
  width: 100%;
  max-width: 16.9375rem;
}

#footer .footer-content .contact-text {
  flex: 1 1 50%;
  text-align: left;
}

/*--------------------------------------------------------------
# Small screens
--------------------------------------------------------------*/
@media (max-width: 961px) {
  .section {
    padding: 1.875rem 0.9375rem;
  }

  #footer .footer-content {
    flex-direction: column;
  }

  #footer .footer-content .logo {
    text-align: left;
  }
}

@media (max-width: 575px) {
  h1 {
    font-size: 2rem;
  }

  .cover {
    min-height: 18.75rem;
  }
}
