@charset "UTF-8";
/*!
Theme Name: Santa Fé Lahti
Description: Santa Fe teema 2026
Author: Jani Paasonen, Design On Demand
Text Domain: santafe
Version: 0.1
*/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* COLORS */
:root {
  --color-base: #e7dfc4;
  --color-primary: #55727d;
  --color-secondary: #141414;
  --color-accent: #6c212d;
  --color-grey: #f5f5f3;
}

/* BREAKPOINTS */
:root {
  --font-size-pixels: 17;
  --font-size-base: 1.1rem;
  --base-line-height: 1.3;
  --line-height-s: 1.1;
  --font-size-xxl: 3.1rem;
  --font-size-xl: 1.9rem;
  --font-size-l: 1.2rem;
  --font-size-m: 0.863rem;
  --font-size-s: 0.772rem;
  --font-size-xs: 0.681rem;
  --margin: 1rem;
  --global-padding: 1.5rem;
}

/* TRANSITIONS */
@media (max-width: 768px) {
  :root {
    --global-padding: 1rem;
  }
}
@font-face {
  font-family: "intro-demo";
  src: url("fonts/introdemo-blackcaps-webfont.woff2") format("woff2"), url("fonts/introdemo-blackcaps-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "intro-demo-inline";
  src: url("fonts/introdemo-blackinlinecaps-webfont.woff2") format("woff2"), url("fonts/introdemo-blackinlinecaps-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
/*
    GLOBAL
*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  min-height: 100%;
  height: 100%;
}
@media (max-width: 630px) {
  html.overflow {
    overflow: hidden;
    -webkit-overflow-scrolling: auto; /* Stops scrolling immediately */
  }
}
html.overflow2 {
  overflow: hidden;
}

body {
  background: var(--color-base);
  color: var(--color-black);
  min-height: 100%;
  -webkit-text-size-adjust: none;
  font-size: var(--font-size-base);
  line-height: var(--base-line-height);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
img, figure, video {
  height: auto;
  max-width: 100%;
  margin-bottom: var(--margin);
}

figure img {
  margin-bottom: 0;
}

p {
  margin-bottom: 1.2em;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
}

b, strong {
  font-weight: 800;
}

ul, ol {
  padding-left: 2.5rem !important;
  margin-bottom: 1.5rem;
  list-style-position: outside;
}

ol li {
  list-style-type: decimal;
  margin-bottom: 0.5rem;
}

ul li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
}

hr {
  border: none;
  border-top: 2px solid white;
  max-width: 50px;
  display: block;
  margin: 0 0 var(--margin);
  text-align: left;
}

em, i {
  font-style: italic;
}

u {
  text-decoration: none;
  border-bottom: 3px solid currentColor;
  display: inline-block;
}

small {
  font-size: 0.85rem;
}

blockquote {
  font-style: italic;
  color: var(--color-grey);
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: var(--margin);
  border-left: 5px solid var(--color-primary);
  padding-left: 2rem;
}

h1, .h1, h2, .h2, h3, .h3, h4, h5, h6 {
  font-family: "intro-demo-inline";
  text-transform: uppercase;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: var(--margin);
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 4rem;
  }
}
@media (max-width: 630px) {
  h1, .h1 {
    font-size: 2.6rem;
  }
}

h2, .h2 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: var(--margin);
  color: var(--color-primary);
}
@media (max-width: 630px) {
  h2, .h2 {
    font-size: 2rem;
  }
}

h3, .h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: var(--margin);
  color: var(--color-primary);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.graphic-bg {
  background-image: url("images/round-graphic.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

/*
    HELPERS
*/
.tac {
  text-align: center;
}

.tt {
  text-transform: uppercase;
}

.icon-arrow-left {
  transform: rotate(90deg);
  margin-bottom: 0;
}

.hide {
  display: none !important;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/*
  GLOBAL LAYOUT
*/
.site-main {
  padding-top: 7rem;
}
.has-featured-image .site-main, .home .site-main {
  padding-top: 0;
}
.single-post .site-main {
  padding-top: 7rem;
}
@media (max-width: 420px) {
  .single-post .site-main {
    padding-top: 5rem;
  }
}
.home .site-main {
  padding-bottom: 3rem;
}
@media (max-width: 420px) {
  .site-main {
    padding-top: 5rem;
  }
}

/*
  HEADER
*/
.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  padding: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  align-items: center;
  background-color: transparent;
  font-family: "intro-demo";
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 630px) {
  .site-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.site-header-wrapper {
  display: flex;
  justify-content: center;
  transition: 0.5s all ease-in-out;
  padding: 0 1rem;
  z-index: 3;
  width: 100%;
}
@media (max-width: 630px) {
  .site-header-wrapper {
    padding: 0;
  }
}

.site-header-right {
  display: flex;
  margin-left: auto;
  align-items: center;
}
@media (max-width: 630px) {
  .site-header-right {
    justify-content: center;
    text-align: left;
  }
}
.site-header-right > .outbound {
  margin-right: 1rem;
}
.site-header-right > .outbound a {
  padding: 0.8rem 1rem 0.7rem;
  min-width: 0;
}

.site-logo {
  margin-bottom: 0;
  width: 10rem;
  vertical-align: bottom;
  transition: 0.2s all linear;
}
@media (max-width: 630px) {
  .site-logo {
    width: 9rem;
  }
}

/*
  Hero
*/
.featured-image-section.hero-image-section {
  height: 90vh;
  max-height: 50rem;
  margin-bottom: 3rem;
}
@media (max-width: 630px) {
  .featured-image-section.hero-image-section {
    height: 80vh;
  }
}

.hero-slogan {
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
  max-width: 50rem;
  text-align: center;
  color: var(--color-base);
}
.hero-slogan h1 {
  margin-top: 0;
  color: var(--color-base);
  font-size: 4.2rem;
  line-height: 0.9;
}
@media (max-width: 630px) {
  .hero-slogan h1 {
    font-size: 3.5rem;
  }
}
@media (max-width: 420px) {
  .hero-slogan h1 {
    font-size: 3.2rem;
  }
}
.hero-slogan span {
  display: block;
  font-size: 0.5em;
  line-height: 1;
  margin-top: 0.5rem;
}
.hero-slogan .btn {
  margin-top: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
  min-width: auto;
}

.figure {
  width: 3rem;
  height: auto;
  margin-bottom: 1rem;
}

/*
  NAVIGATION
*/
.site-nav {
  display: inline-flex;
  background-color: var(--color-base);
  margin-left: 2rem;
}
@media (max-width: 1250px) {
  .site-nav {
    position: fixed;
    background-color: var(--color-base);
    transform: translateX(-20rem);
    transition: 1s all linear;
    right: 0;
    top: 0;
    z-index: 1;
    display: none;
    border-left: 1px solid var(--color-grey);
    width: 100%;
    max-width: none;
    width: 100%;
    transform: translateX(-100%);
    padding-top: 0.8rem;
    padding-bottom: 2rem;
    padding-left: 1.1rem;
    padding-right: 0.5rem;
    border-left: none;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.4);
  }
}
@media (max-width: 630px) {
  .site-nav {
    padding-left: 0.7rem;
    padding-top: 0.4rem;
  }
}
.site-nav.open {
  transform: translateX(0);
  display: block;
  transition: 1s all linear;
}
.site-nav li {
  margin: 0;
  margin-left: 0;
  list-style-type: none;
}
.site-nav li:before {
  display: none;
}
@media (max-width: 1250px) {
  .site-nav li {
    display: inline-block;
  }
}
.site-nav a {
  display: block;
  margin: 0.3rem 0.6rem;
  padding: 0.4rem 0.7rem 0.3rem;
  line-height: 1.1;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-primary);
}
@media (max-width: 1250px) {
  .site-nav a {
    display: inline-block;
    font-size: 1rem;
  }
}
@media (max-width: 1400px) {
  .site-nav a {
    margin-left: 0.2rem;
    margin-right: 0.2rem;
  }
}
.site-nav a:hover {
  text-decoration: none;
  color: var(--color-primary);
}
.site-nav .menu {
  display: flex;
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 0.5rem !important;
  margin-top: 0;
}
@media (max-width: 1250px) {
  .site-nav .menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 0 !important;
  }
}
.site-nav .site-logo-link {
  display: none;
}
@media (max-width: 1250px) {
  .site-nav .site-logo-link {
    display: inline-block;
  }
}
@media (max-width: 630px) {
  .site-nav .site-logo-link {
    transform: translateX(-0.5rem);
  }
}
.site-nav .outbound {
  background-color: var(--color-accent);
  margin-left: 0.5rem;
}
.site-nav .outbound a {
  color: var(--color-base);
}
@media (max-width: 1250px) {
  .site-nav .outbound {
    align-self: flex-start;
    margin-top: 0.5rem;
  }
}
.site-nav .current-menu-item {
  position: relative;
}
.site-nav .current-menu-item a {
  color: var(--color-accent);
}

/*
  Article grid
*/
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .article-grid {
    overflow-x: auto;
    overflow-y: hidden;
    grid-template-columns: auto;
    grid-auto-flow: column;
    gap: 1rem;
    width: calc(100vw - 2rem);
  }
}

.article-grid-item {
  background-color: var(--color-secondary);
  min-height: 14rem;
}
.article-grid-item a {
  text-decoration: none;
}
.article-grid-item h3 {
  color: white;
}
@media (max-width: 768px) {
  .article-grid-item {
    width: 70vw;
  }
}
.article-grid-item img {
  margin-bottom: 0;
  vertical-align: bottom;
}

.article-grid-item-content {
  padding: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header-link {
  margin-left: auto;
}
.section-header-link a {
  color: white;
  text-decoration: none;
}
@media (max-width: 768px) {
  .section-header-link {
    display: none;
  }
}

/*
  Fetured image 
*/
.featured-image-section {
  display: grid;
  align-items: center;
  height: 30rem;
  overflow: hidden;
  position: relative;
  -webkit-clip-path: ellipse(140% 100% at 50% 0%);
          clip-path: ellipse(140% 100% at 50% 0%);
}
.featured-image-section > img {
  position: absolute;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  margin-bottom: 0;
}
.featured-image-section::after {
  content: "";
  display: block;
  background-color: black;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  opacity: 0.1;
}
@media (max-width: 630px) {
  .featured-image-section {
    height: 20rem;
    -webkit-clip-path: ellipse(180% 100% at 50% 0%);
            clip-path: ellipse(180% 100% at 50% 0%);
  }
}
@media (max-width: 420px) {
  .featured-image-section {
    height: 17rem;
  }
}

.featured-image-content {
  padding: 2rem;
  z-index: 1;
  text-align: center;
}
.featured-image-content h1 {
  color: white;
}

/*
  Articles page
*/
.article-list {
  display: flex;
  flex-wrap: wrap;
  /* TÄMÄ keskittää ne kaksi artikkelia keskelle sivua */
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.article-list-item {
  width: calc(25% - 15px);
}
.article-list-item h2 {
  color: var(--color-secondary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.article-list-item time {
  color: #bda267;
  font-size: 0.9rem;
}
.article-list-item a {
  text-decoration: none;
}
@media (max-width: 768px) {
  .article-list-item {
    width: calc(50% - 15px);
  }
}
@media (max-width: 420px) {
  .article-list-item {
    width: 100%;
  }
}

.article-list-item-image img {
  vertical-align: bottom;
  margin-bottom: 0;
}

/*
  Single article
*/
.article-meta {
  color: #bda267;
  font-size: 0.9rem;
}

.post-thumbnail-wrapper {
  text-align: center;
}
.post-thumbnail-wrapper img {
  max-height: 40rem;
  width: auto;
}

/*
  Food menu
*/
.food-menu strong, .food-menu b {
  color: var(--color-primary);
}
.food-menu h3 {
  margin-top: 3rem !important;
}
.food-menu .wp-block-column > :first-child {
  margin-top: 0 !important;
}
@media (max-width: 768px) {
  .food-menu .wp-block-column:first-child > h3:first-child {
    margin-top: 1rem !important;
  }
}
.food-menu .wp-block-column:first-child {
  position: relative;
  padding-right: 1rem;
}
@media (max-width: 768px) {
  .food-menu .wp-block-column:first-child {
    padding-right: 0;
  }
}
.food-menu .wp-block-column:first-child::after {
  content: "";
  position: absolute;
  display: inline-block;
  top: 0;
  bottom: 0;
  right: -0.5rem;
  width: 2px;
  background-color: var(--color-primary);
}
@media (max-width: 768px) {
  .food-menu .wp-block-column:first-child::after {
    display: none;
  }
}
.food-menu .wp-block-column:last-child {
  padding-left: 1rem;
}
@media (max-width: 768px) {
  .food-menu .wp-block-column:last-child {
    padding-left: 0;
  }
}

/*
  Footer
*/
.site-footer {
  background: var(--color-primary) url("images/maya-pattern.png") bottom center repeat-x;
  background-size: 120px auto;
  color: var(--color-base);
  padding: 4rem 2rem;
  grid-gap: 2rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.site-footer .site-footer-columns {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
}
@media (max-width: 900px) {
  .site-footer .site-footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 630px) {
  .site-footer .site-footer-columns {
    grid-template-columns: 1fr 1fr;
    grid-gap: 0 1rem;
  }
}
@media (max-width: 630px) {
  .site-footer .footer-5 {
    grid-column: span 2;
    text-align: center;
    margin-top: 2rem;
  }
}
.site-footer h3, .site-footer h4 {
  margin-bottom: 1rem;
}
.site-footer ul {
  padding-left: 0 !important;
}
.site-footer a {
  color: inherit;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
}
@media (max-width: 420px) {
  .site-footer {
    padding: 1rem 1rem 2.5rem;
    font-size: 1rem;
  }
}

.site-footer-logo {
  width: 100%;
  max-width: 15rem;
  margin-bottom: 0;
}

.some-links {
  display: flex;
  margin-bottom: 1rem;
  align-items: center;
  flex-shrink: 0;
  gap: 1.2rem;
}
.site-footer .some-links {
  margin-bottom: 0;
  justify-content: center;
}
.some-links img {
  height: 1.4rem;
  width: auto;
}

.site-sub-footer {
  margin-top: 3rem;
  text-align: center;
}
.site-sub-footer a {
  text-decoration: none;
}
@media (max-width: 420px) {
  .site-sub-footer {
    margin-top: 1rem;
  }
}

/*
  Buttons
*/
.btn, .wp-block-button__link, input[type=submit] {
  display: inline-block;
  padding: 0.9rem 1.7rem 0.8rem;
  min-width: 200px;
  background-color: transparent;
  text-transform: uppercase;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.1;
  font-weight: bold;
  border: 2px solid var(--color-primary);
  transition: all 0.8s ease-out;
  position: relative;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 0;
}

.btn-large, .is-style-btn-large a {
  font-size: 1rem;
  padding: 0.8rem 3rem;
}

.btn:hover, .wp-block-button__link:hover {
  background-color: var(--color-primary);
  color: var(--color-base);
  transition: all 0.1s ease-in;
}

.btn-light {
  border-color: var(--color-base);
  color: var(--color-base);
}
.btn-light:hover {
  background-color: var(--color-base);
  color: var(--color-primary);
}

.btn-grey {
  background-color: var(--color-grey);
}

.wp-block-buttons {
  margin-bottom: 1.4rem;
}

/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */
.hamburger {
  z-index: 2;
  padding: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
  right: 1.5rem;
  border-radius: 2.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.6rem;
  border: 1px solid var(--color-base);
}
@media (max-width: 1250px) {
  .hamburger {
    display: flex;
    position: fixed;
    /* TÄMÄ KORJAA HYPPIMISEN MOBIILISSA: */
    will-change: transform; /* Kertoo selaimelle, että elementti pysyy paikallaan */ /* Pakottaa rautakiihdytyksen (iOS Safari korjaus) */
    transform: translateZ(0);
  }
}
.hamburger.is-scrolled {
  background-color: var(--color-base);
}
.hamburger.is-scrolled .hamburger-inner,
.hamburger.is-scrolled .hamburger-inner::before,
.hamburger.is-scrolled .hamburger-inner::after {
  background-color: var(--color-primary);
}
.hamburger.is-scrolled .hamburger-title {
  color: var(--color-primary);
}
.hamburger.is-active {
  border-color: var(--color-base);
  background-color: var(--color-base);
}

.hamburger-title {
  margin-top: 0.2rem;
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 0.45rem;
  font-weight: 400;
}
.has-featured-image .hamburger-title {
  color: var(--color-base);
}
.is-active .hamburger-title {
  color: var(--color-primary);
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
  background-color: var(--color-primary);
}

.hamburger-box {
  width: 32px;
  height: 22px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 32px;
  height: 3px;
  background-color: var(--color-primary);
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}
.has-featured-image .hamburger-inner, .has-featured-image .hamburger-inner::before, .has-featured-image .hamburger-inner::after {
  background-color: var(--color-base);
}

.hamburger-inner::before, .hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -5px;
}

/*
/*
   * Collapse
   */
.hamburger--collapse .hamburger-inner {
  top: auto;
  bottom: 0;
  transition-duration: 0.13s;
  transition-delay: 0.13s;
  transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--collapse .hamburger-inner::after {
  top: -16px;
  transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), opacity 0.1s linear;
}

.hamburger--collapse .hamburger-inner::before {
  transition: top 0.12s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--collapse.is-active .hamburger-inner {
  transform: translate3d(0, -10px, 0) rotate(-45deg);
  transition-delay: 0.22s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger--collapse.is-active .hamburger-inner::after {
  top: 0;
  opacity: 0;
  transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), opacity 0.1s 0.22s linear;
}

.hamburger--collapse.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(-90deg);
  transition: top 0.1s 0.16s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.13s 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/*
  Pagination
*/
.pagination {
  display: flex;
  justify-content: center;
  margin: 0 0 2rem 0;
}

.page-numbers {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1.25rem;
  background-color: var(--color-grey);
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.3rem 0.7rem;
}
.page-numbers.current {
  background-color: var(--color-primary);
}
.page-numbers:hover {
  text-decoration: none;
  background-color: var(--color-primary) !important;
}

.page-numbers.next {
  background-color: var(--color-grey);
}
.page-numbers.next svg {
  width: 15px;
  transform: rotate(-90deg);
}

.page-numbers.prev {
  background-color: var(--color-grey);
}
.page-numbers.prev svg {
  width: 15px;
  transform: rotate(90deg);
}

/*
  Social share
*/
.social-share-links {
  display: inline-flex;
  gap: 1rem;
  padding: 0.3rem 0.5rem;
  border: 2px solid var(--color-primary);
  margin-top: 2rem;
}
.social-share-links a {
  display: inline-block;
  text-decoration: none;
}
.social-share-links svg {
  margin-bottom: 0;
  vertical-align: bottom;
  height: 1.4rem;
  width: auto;
}

/*
  Popup
*/
body.hidden {
  overflow: hidden;
}

.popup-wrap {
  display: grid;
  position: fixed;
  z-index: 1060;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(-webkit-min-content, auto) minmax(-webkit-min-content, auto) minmax(-webkit-min-content, auto);
  grid-template-rows: minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);
  height: 100%;
  padding: 1rem;
  overflow-x: hidden;
  transition: background-color 0.1s;
  -webkit-overflow-scrolling: touch;
  background-color: rgba(0, 0, 0, 0.7);
}

.popup-btn-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 1.5rem;
  background-color: var(--color-primary);
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup-btn-close svg {
  width: 40%;
}

.popup-content {
  position: relative;
  color: var(--color-secondary);
  font-size: 1rem;
  max-width: 1000px;
  margin: 2rem auto 2rem;
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  position: relative;
  width: 100%;
  max-width: 700px;
  background: var(--color-base);
  padding-left: 3rem;
  padding-right: 3rem;
  padding-bottom: 3rem;
  padding-top: 3rem;
}
@media (max-width: 630px) {
  .popup-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-top: 0;
    margin-bottom: 0;
  }
}
.popup-content h2 {
  margin-top: 0;
}
.popup-content label, .popup-content legend {
  color: var(--color-secondary);
  font-weight: 800;
  padding: 0.3rem 0;
  font-size: 1rem;
}
.popup-content input[type=text], .popup-content input[type=email], .popup-content input[type=tel], .popup-content input[type=date], .popup-content textarea {
  border-radius: 0;
  border: 2px solid var(--color-primary);
  background: transparent;
  padding: 0.8rem 1rem 0.8rem 1rem;
  width: 100%;
  color: black;
  font-size: 1rem;
  margin-top: 0.3rem;
}
@media (max-width: 630px) {
  .popup-content input[type=text], .popup-content input[type=email], .popup-content input[type=tel], .popup-content input[type=date], .popup-content textarea {
    font-size: 1rem;
  }
}
.popup-content input[type=text]:focus-visible, .popup-content input[type=email]:focus-visible, .popup-content input[type=tel]:focus-visible, .popup-content input[type=date]:focus-visible, .popup-content textarea:focus-visible {
  outline: 2px solid var(--color-primary);
}
.popup-content input[type=date] {
  width: 50%;
  padding-bottom: 0.2rem;
  padding-top: 0.6rem;
}
.popup-content input[type=checkbox] {
  display: inline-block;
  border: 1px solid white;
  width: auto;
  margin-bottom: 0;
  width: 1rem;
  height: 1rem;
}
.popup-content input[type=checkbox]:focus {
  outline: 1px solid white;
}
.popup-content input[type=checkbox]:checked {
  background: url("images/icon-check-white.svg") no-repeat 10% 10%;
  background-size: contain;
}
.popup-content fieldset {
  border: 0;
  padding: 0;
  margin-bottom: 1rem;
}
.popup-content fieldset .wpcf7-list-item {
  display: block;
  margin-left: 0;
}
.popup-content fieldset .wpcf7-list-item-label {
  font-weight: 400;
}
.popup-content input[type=submit] {
  background-color: var(--color-primary);
  color: var(--color-base);
  margin-top: var(--margin);
}
.popup-content input[type=submit]:hover {
  transform: translateY(-0.2rem);
}
.popup-content select {
  width: 100%;
  display: block;
  padding: 0.2rem 1rem;
  font-size: 1rem;
  height: 3rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border-radius: 0;
  margin-top: 0.3rem;
  background: white url("images/icon-arrow-down.svg") no-repeat center right 1rem;
  background-size: auto 20%;
  color: black;
}
.popup-content ::-moz-placeholder {
  color: rgb(150, 150, 150);
}
.popup-content ::placeholder {
  color: rgb(150, 150, 150);
}

.form-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
}
.form-inputs > *:last-child {
  grid-column: 1/-1;
}
@media (max-width: 768px) {
  .form-inputs {
    grid-template-columns: 1fr;
  }
}

.mfp-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  overflow: hidden auto;
  background-color: rgba(0, 0, 0, 0.5);
}
@media (max-width: 630px) {
  .mfp-wrap {
    top: 0;
  }
}

.mfp-container {
  position: absolute;
  text-align: center;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.mfp-container::before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  z-index: 1045;
  text-align: left;
  width: 100%;
}

.popup-close {
  position: absolute;
  right: 2rem;
  top: 2rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
  z-index: 2000;
  margin-bottom: 0;
}
.popup-close img {
  position: absolute;
  top: 0;
  margin-bottom: 0;
  vertical-align: bottom;
}
.popup-close:focus-visible {
  outline: 2px solid white;
}

/*
  MENU
*/
.menu-tabs-wrapper .custom-menu-pane {
  font-size: 1rem;
  margin-bottom: 4rem;
}
.menu-tabs-wrapper .custom-menu-pane h2 {
  margin-bottom: 2rem;
}
.menu-tabs-wrapper .custom-menu-pane h3 {
  margin-top: 3rem;
  font-size: 1.7rem;
}
.menu-tabs-wrapper .custom-menu-pane b, .menu-tabs-wrapper .custom-menu-pane strong {
  font-weight: 800;
  color: var(--color-primary);
}
.menu-tabs-wrapper .custom-menu-pane .wp-block-column :first-child {
  margin-top: 0;
}
@media (max-width: 768px) {
  .menu-tabs-wrapper .custom-menu-pane .wp-block-column :first-child {
    margin-top: 1rem;
  }
}
.menu-tabs-wrapper .custom-menu-pane .wp-block-column:first-child {
  border-right: 2px solid var(--color-primary);
  padding-right: 3rem;
}
@media (max-width: 768px) {
  .menu-tabs-wrapper .custom-menu-pane .wp-block-column:first-child {
    border: 0;
    padding-right: 0;
  }
}
.menu-tabs-wrapper .custom-menu-pane .wp-block-column:last-child {
  padding-left: 1rem;
}
@media (max-width: 768px) {
  .menu-tabs-wrapper .custom-menu-pane .wp-block-column:last-child {
    padding-left: 0;
  }
}
@media (max-width: 768px) {
  .menu-tabs-wrapper .custom-menu-pane {
    margin-bottom: 1rem;
  }
}

.menu-nav-buttons {
  border-bottom: 0;
}

.menu-tab-trigger {
  padding: 0.5rem 1rem;
  color: var(--color-primary);
  font-family: "intro-demo-inline";
  text-transform: uppercase;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.menu-tab-trigger.active {
  color: var(--color-primary);
}

.menu-tab-trigger.active::after {
  bottom: 0;
  left: 1rem;
  right: 1rem;
  width: auto;
  background-color: var(--color-primary);
}

/* 1. Nollataan pääcontainerin padding mobiilissa, jotta alignfull-lohkot pääsevät reunoihin asti */
.has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 4rem;
  padding-top: 3rem;
}

/* 2. Annetaan kaikille suorille lapsille (lohkoille) padding, JOTTA tekstit eivät osu reunaan */
.has-global-padding > * {
  padding-left: var(--global-padding); /* Voit säätää tätä mobiilipaddingia */
  padding-right: var(--global-padding);
  box-sizing: border-box;
}

/* 3. Poistetaan padding alignfull-lohkoilta, jotta ne täyttävät koko ruudun */
.has-global-padding > .alignfull {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: none;
}

/* 4. Jos alignfull-lohkon SISÄLLÄ on tekstiä (kuten Ryhmä-lohko), 
      varmistetaan, että sen sisältö ei osu reunaan mobiilissa */
.has-global-padding > .alignfull > *:not(.alignfull) {
  padding-left: var(--global-padding);
  padding-right: var(--global-padding);
}

@media (max-width: 768px) {
  .wp-block-media-text > .wp-block-media-text__content {
    padding: 0 0.5rem;
  }
}

.wp-block-image img, .wp-block-image {
  padding: 0 !important;
}

/* Korjataan WordPressin puuttuva sääntö */
.is-layout-constrained > .alignwide {
  max-width: var(--wp--style--global--wide-size) !important;
  width: 100%;
}

/*
    Slider
*/
.splide {
  margin-bottom: 2rem;
}

.splide__arrow--prev, .site .splide__arrow--prev {
  left: -2.3rem;
  transform: scaleX(-1) translateY(-50%);
}

.splide__arrow--next, .site .splide__arrow--next {
  right: -2.3rem;
  transform: translateY(-50%);
}

.splide__arrow, .site .splide__arrow {
  background: rgba(0, 0, 0, 0);
  border: 0;
  color: #e5eeee;
  cursor: pointer;
  position: absolute;
  top: 50%;
}

.splide__arrow svg {
  width: 30px;
}

.splide__arrow svg path {
  fill: white;
}

.logo-slider .splide__arrow svg path {
  fill: var(--color-grey);
}

/*
    FORMS
*/
label {
  display: block;
  width: 100%;
  margin-bottom: 0.3em;
  color: var(--color-primary);
}

input {
  display: block;
  margin-bottom: 1rem;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  border: 0;
  background-color: var(--color-grey);
  border-radius: 0;
  padding: 0.8rem 0.8rem;
}

textarea {
  padding: 0.8em;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  margin-bottom: 1rem;
  border: 0;
  background-color: var(--color-grey);
  border-radius: 0;
}

input[type=submit] {
  width: auto;
  margin-bottom: 0;
  -webkit-appearance: none;
}

input[type=submit]:hover {
  cursor: pointer;
}

.wpcf7-spinner {
  position: absolute;
}

.wpcf7 form .wpcf7-response-output {
  color: black;
  margin: 1rem 0;
  padding: 1rem;
}

.wp-block-separator {
  max-width: calc(var(--wp--style--global--content-size) - 3rem);
}
@media (max-width: 913px) {
  .wp-block-separator {
    max-width: calc(100% - 3rem);
  }
}
@media (max-width: 768px) {
  .wp-block-separator {
    max-width: calc(100% - 0.5rem);
  }
}

@media (max-width: 768px) {
  .page-id-22 .wp-block-columns .wp-block-column:first-child {
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .page-id-22 .wp-block-column {
    border: 0;
    padding-right: 0;
  }
}

.lounastaja--widget {
  padding: 0 !important;
  background-color: #e7dfc4 !important;
}
