@charset "UTF-8";
/*!
Theme Name: Cityravintolat
Description: Cityravintolat teema 2026
Author: Jani Paasonen, Design On Demand
Text Domain: cityravintolat
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;
}

:root {
  --color-base: #151515;
  --color-primary: #C5A46D;
  --color-secondary: #234237;
  --font-size-pixels: 16;
  --font-size-base: 1rem;
  --base-line-height: 1.5;
  --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;
  --border-radius: 1.5rem;
}

/* BREAKPOINTS */
@media (max-width: 768px) {
  :root {
    --global-padding: 1rem;
  }
}
@media (max-width: 630px) {
  :root {
    --global-padding: 0.5rem;
  }
}
@font-face {
  font-family: "Cocogoose";
  src: url("fonts/Cocogoose-Pro-Regular.woff2") format("woff2"), url("fonts/Cocogoose-Pro-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
/*
    GLOBAL
*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: "Karla", 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-primary);
  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;
}

figure figcaption {
  color: black;
}

p {
  margin-bottom: 1.2em;
}

a {
  color: var(--color-primary);
}

b, strong {
  font-weight: 600;
}

ul, ol {
  margin-left: 1.5em;
  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;
  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;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, h6 {
  font-family: "Cocogoose", sans-serif;
}

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

h2, .h2 {
  font-size: clamp(2.2rem, 2.8vw, 3.3rem);
  line-height: 1.3;
  margin-bottom: 0.9rem;
  color: var(--color-primary);
  font-weight: normal;
}
@media (max-width: 768px) {
  h2, .h2 {
    font-size: 1.8rem;
  }
}

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

.large-font {
  font-size: 2.5rem;
  line-height: 1.1;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
}
@media (max-width: 630px) {
  .large-font {
    font-size: 1.3rem;
  }
}

.large-font2 {
  font-size: 1.4rem;
  line-height: 1.4;
}
@media (max-width: 630px) {
  .large-font2 {
    font-size: 1rem;
  }
}

.bg-primary {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}
.bg-primary h2, .bg-primary h3 {
  color: var(--color-secondary);
}

.bg-secondary, .bg-paper {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}
.bg-secondary h2, .bg-secondary h3, .bg-paper h2, .bg-paper h3 {
  color: var(--color-primary);
}

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

.tt {
  text-transform: uppercase;
}

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

.border-top {
  border-top: 2px solid var(--color-primary);
}

.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
}

.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: 6rem;
}

.section-container {
  width: 100%;
  max-width: 1350px;
  padding: 2rem 2rem;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.container-narrow {
  max-width: 1000px;
}

.container-large {
  max-width: 1400px;
}

section {
  scroll-margin-top: 80px;
}

.section-col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 630px) {
  .section-col-2 {
    grid-template-columns: 1fr;
    grid-gap: 3rem;
  }
}

.section-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-right img {
  width: 100%;
}

.section-container-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-container-header h2 {
  margin-bottom: 0;
  line-height: 1;
}
.section-container-header .subtitle {
  text-transform: uppercase;
}

.image-and-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-secondary);
  margin-top: 1rem;
}
.image-and-content img {
  margin-bottom: 0;
  vertical-align: bottom;
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
}
@media (max-width: 630px) {
  .image-and-content {
    grid-template-columns: 1fr;
  }
}

.iac-right {
  padding: 2rem 13%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 630px) {
  .iac-right {
    padding: 2rem;
  }
}

.front-page-highlights + .front-page-highlights .iac-left,
.front-page-highlights + .front-page-highlights + .front-page-highlights + .front-page-highlights .iac-left {
  order: 2;
}
@media (max-width: 630px) {
  .front-page-highlights + .front-page-highlights .iac-left,
  .front-page-highlights + .front-page-highlights + .front-page-highlights + .front-page-highlights .iac-left {
    order: 1;
  }
}
.front-page-highlights + .front-page-highlights .iac-right,
.front-page-highlights + .front-page-highlights + .front-page-highlights + .front-page-highlights .iac-right {
  order: 1;
}

.cols {
  display: grid;
}
.cols > * {
  display: flex;
  flex-direction: column;
  padding: 4rem;
}
@media (max-width: 630px) {
  .cols > * {
    padding: 2rem;
  }
}

.cols-1-1 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .cols-1-1 {
    grid-template-columns: 1fr;
  }
}

.cols-1-1-1 {
  grid-template-columns: repeat(3, 1fr);
}
.cols-1-1-1 > * {
  padding: 2rem;
}
@media (max-width: 768px) {
  .cols-1-1-1 {
    grid-template-columns: 1fr;
  }
}

.cols-1-1-1-1 {
  grid-template-columns: repeat(4, 1fr);
}
.cols-1-1-1-1 > * {
  padding: 2rem;
}
@media (max-width: 1100px) {
  .cols-1-1-1-1 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .cols-1-1-1-1 {
    grid-template-columns: 1fr;
  }
}

/*
  HEADER
*/
.site-header {
  position: relative;
  display: flex;
  flex-direction: column;
}

.site-nav-wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--color-secondary);
  display: flex;
  padding: 1.3rem 1rem;
  align-items: center;
  z-index: 3;
}
@media (max-width: 630px) {
  .site-nav-wrapper {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

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

.site-header-left {
  position: fixed;
  top: 0;
  left: 2rem;
  z-index: 10;
}
@media (max-width: 79rem) {
  .site-header-left {
    position: absolute;
  }
}
@media (max-width: 630px) {
  .site-header-left {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
  }
}

.site-header-center {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-left: auto;
}
@media (max-width: 630px) {
  .site-header-center {
    justify-content: center;
    text-align: left;
  }
}

.site-header-right {
  align-items: center;
  display: flex;
  margin-left: auto;
}

.site-logo {
  position: absolute;
  top: 1rem;
  left: calc(var(--global-padding) + var(--global-padding));
  margin-bottom: 0;
  vertical-align: bottom;
  z-index: 4;
  width: 6rem;
}
@media (max-width: 768px) {
  .site-logo {
    width: 4.5rem;
    position: fixed;
  }
}
@media (max-width: 630px) {
  .site-logo {
    width: 3.8rem;
    top: 0.5rem;
  }
}

/*
  Hero
*/
/*
  NAVIGATION
*/
.site-nav {
  font-family: "Cocogoose", "Arial Black", sans-serif;
  margin-top: 0rem;
}
@media (max-width: 630px) {
  .site-nav {
    position: fixed;
    background: var(--color-secondary);
    background-size: cover;
    transform: translateX(-20rem);
    transition: 1s all linear;
    right: 0;
    top: 0;
    left: 0;
    z-index: 100;
    display: none;
    border-left: 1px solid grey;
    max-width: none;
    width: 100%;
    transform: translateX(-100%);
    margin-top: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 0.5em;
    padding-right: 0.5rem;
    border-left: none;
  }
}
.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;
}
.site-nav a {
  display: block;
  margin: 0.1rem 1rem;
  padding: 0.2rem 0.3rem;
  line-height: 1;
  letter-spacing: 0.5px;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: normal;
}
@media (max-width: 630px) {
  .site-nav a {
    display: inline-block;
    font-size: 1.8rem;
  }
}
.site-nav .menu {
  display: flex;
  margin-left: 0;
  margin-bottom: 0;
  margin-top: 0;
  padding-left: 0;
}
@media (max-width: 630px) {
  .site-nav .menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 20%;
    padding-bottom: 20%;
  }
}
.site-nav .some-links {
  margin-top: 1rem;
}
.site-nav .some-icon {
  width: 1.5rem;
}
.site-nav .some-links a {
  margin-right: 0.5rem;
}
.site-nav .current-menu-item a {
  position: relative;
}
.site-nav .current-menu-item a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0.3rem;
  right: 0.3rem;
  height: 3px;
  background-color: var(--color-secondary);
}
@media (max-width: 630px) {
  .site-nav .current-menu-item a::after {
    bottom: 0px;
  }
}
.has_no_thumbnail .site-nav .current-menu-item a::after, .woocommerce .site-nav .current-menu-item a::after {
  background-color: var(--color-primary);
}

/*
  Footer
*/
.site-footer {
  color: var(--color-primary);
  margin: 0 var(--global-padding) 1.5rem var(--global-padding);
  padding: 0 var(--global-padding) 0.5rem var(--global-padding);
  text-align: center;
  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;
  text-align: left;
}
@media (max-width: 1100px) {
  .site-footer .site-footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2rem;
  }
}
@media (max-width: 768px) {
  .site-footer .site-footer-columns {
    grid-template-columns: 1fr;
    grid-gap: 0 1rem;
  }
}
.site-footer h2 {
  color: var(--color-primary);
  margin-top: 1rem;
}
.site-footer ul {
  padding-left: 0 !important;
}
.site-footer a {
  color: inherit;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
}
.site-footer a:hover, .site-footer a:focus {
  text-decoration: underline;
}
@media (max-width: 420px) {
  .site-footer {
    padding: 1rem 1rem 2.5rem;
    font-size: 1rem;
  }
}

.footer-container {
  background-color: var(--color-secondary);
  padding: 2rem 3rem;
  border-radius: var(--border-radius);
}

.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: 1.5rem;
  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, .wpcf7 input[type=submit] {
  display: inline-block;
  padding: 0.5rem 1.5rem 0.4rem;
  border-radius: 0;
  background-color: var(--color-primary);
  text-align: center;
  line-height: 1.2;
  font-weight: 400;
  font-size: 1rem;
  border: 2px solid var(--color-primary);
  transition: all 0.8s ease-out;
  position: relative;
  color: var(--color-secondary);
  text-decoration: none;
}
.btn::after, .wp-block-button__link::after, .wpcf7 input[type=submit]::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: transparent;
  border: 2px solid var(--color-primary);
  transform: translate(0.4rem, 0.4rem);
  z-index: 0;
}

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

.btn-secondary {
  color: var(--color-primary);
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn-secondary::after {
  border-color: var(--color-secondary);
}

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

/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */
.hamburger {
  z-index: 101;
  padding: 0;
  display: none;
  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;
  top: 1rem;
  right: 1rem;
}
@media (max-width: 630px) {
  .hamburger {
    display: inline-block;
  }
}

.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: 3rem;
  height: 2rem;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

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

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

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

/*
/*
   * 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: -26px;
  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);
}

/*
  Overlapping text + img
*/
.overlap-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  position: relative;
  margin-right: 10%;
  padding-left: 0;
  padding-right: 0;
}
.overlap-container .overlap-text {
  grid-column: 1/10;
  grid-row: 1;
  z-index: 1;
  background-color: var(--wp--preset--color--base, #ffffff);
  border-radius: 8px;
  padding-right: 38% !important;
}
.overlap-container .overlap-image {
  grid-column: 7/13;
  grid-row: 1;
  z-index: 2;
  margin-top: 0;
}
.overlap-container .overlap-image img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
@media (max-width: 1200px) {
  .overlap-container {
    margin-right: 0;
  }
}
@media (max-width: 768px) {
  .overlap-container {
    padding: var(--global-padding) !important;
  }
  .overlap-container .overlap-text {
    padding: 2rem !important;
  }
  .overlap-container .overlap-text,
  .overlap-container .overlap-image {
    grid-column: 1/-1;
    grid-row: auto;
  }
  .overlap-container .overlap-image {
    margin-top: -20px;
  }
}

/*
  Restaurant grid
*/
@media (max-width: 1100px) {
  .rest-group > .wp-block-columns {
    flex-wrap: wrap !important;
  }
}
@media (max-width: 1100px) {
  .rest-group > .wp-block-columns > :first-child {
    flex-basis: 100% !important;
    flex-grow: 1 !important;
  }
}
@media (max-width: 1100px) {
  .rest-group > .wp-block-columns > :last-child {
    flex-basis: 100% !important;
    flex-grow: 1 !important;
  }
}
@media (max-width: 1100px) {
  .rest-group h2 {
    margin-top: 1rem !important;
    text-align: center;
    padding-left: 7rem;
    padding-right: 7rem;
  }
}
@media (max-width: 768px) {
  .rest-group h2 {
    padding-left: 0rem;
    padding-right: 0rem;
  }
}
@media (max-width: 1100px) {
  .rest-group h2 br, .rest-group h2 span {
    display: none;
  }
}

.rest-grid .wp-block-cover .wp-block-cover__inner-container, .rest-grid .wp-block-group-is-layout-flex {
  height: 100%;
  padding: 0;
  display: flex;
}
.rest-grid .wp-block-cover .wp-block-cover__inner-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
  z-index: 1;
}
.rest-grid .wp-block-cover .wp-block-cover__inner-container figure {
  width: 50%;
  height: 40%;
}
.rest-grid .wp-block-cover .wp-block-cover__inner-container svg, .rest-grid .wp-block-cover .wp-block-cover__inner-container img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain !important;
     object-fit: contain !important;
}
.rest-grid .wp-block-group-is-layout-flex {
  width: 100%;
  gap: 1rem;
}

.wp-block-cover.is-clickable {
  position: relative;
  cursor: pointer;
}
.wp-block-cover.is-clickable a {
  position: static;
  font-size: 0;
  line-height: 0;
  color: transparent;
}
.wp-block-cover.is-clickable a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
}
.wp-block-cover.is-clickable .wp-block-cover__image-background {
  transition: transform 0.6s ease;
}
.wp-block-cover.is-clickable:hover .wp-block-cover__image-background {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/*
  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-primary);
  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-secondary);
  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;
}
.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%;
}
@media (max-width: 630px) {
  .mfp-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

.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;
}

/* 1. Nollataan pääcontainerin padding mobiilissa, jotta alignfull-lohkot pääsevät reunoihin asti */
.has-global-padding {
  padding-left: var(--global-padding);
  padding-right: var(--global-padding);
}

/* 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%;
}

/*
    FORMS
*/
label {
  display: inline-block;
  width: 100%;
  margin-bottom: 0.3em;
  color: var(--color-primary);
  line-height: 1.1;
  padding: 0;
}

input {
  display: inline-block;
  margin-bottom: 0.5rem;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  border: 2px solid white;
  border-radius: 0.5rem;
  padding: 0.8rem 0.8rem;
  background-color: white;
}

textarea {
  padding: 0.5rem;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  margin-bottom: 1rem;
  border: 2px solid white;
  border-radius: 0.5rem;
  background-color: white;
}

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

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

.wpcf7-spinner {
  position: absolute;
}

input[type=radio],
input[type=checkbox] {
  display: inline-block;
  font-size: 1rem;
  width: 1rem;
  height: 1rem;
  margin: 0;
  vertical-align: middle;
  padding: 0;
  border: auto;
  border-radius: auto;
}

input[type=file] {
  border: 0;
  padding-left: 0;
  padding-right: 0;
}

input[type=text], input[type=email], input[type=tel], textarea, input[type=search], input[type=url] {
  padding: 0.8em;
  -webkit-appearance: none;
}

input[type=file] {
  background-color: transparent;
}

input:disabled {
  opacity: 0.8;
}

.form-element {
  width: 100%;
}

::-webkit-input-placeholder {
  color: white;
}

:-moz-placeholder { /* Firefox 18- */
  color: white;
}

::-moz-placeholder { /* Firefox 19+ */
  color: white;
}

:-ms-input-placeholder {
  color: white;
}

select {
  width: auto;
  max-width: 100%;
  font-size: 1rem;
  padding: 0.5em;
  min-width: 3rem;
}
@media (max-width: 768px) {
  select {
    width: 100%;
    font-size: 1rem;
  }
}

.hide {
  display: none;
}

fieldset legend {
  line-height: 1.2;
  display: block;
  margin-bottom: 0;
  padding-bottom: 0 !important;
  margin-right: 0;
  padding-right: 0;
}
fieldset label {
  padding: 0 !important;
}

input[type=text], input[type=email], input[type=tel], input[type=date], textarea {
  padding: 0.8rem 1rem 0.8rem 1rem;
  width: 100%;
  color: black;
  font-size: 1rem;
  margin-top: 0.3rem;
}
input[type=text]:focus-visible, input[type=email]:focus-visible, input[type=tel]:focus-visible, input[type=date]:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-primary);
}

input[type=date] {
  width: 50%;
  padding-bottom: 0.2rem;
  padding-top: 0.6rem;
}

input[type=checkbox] {
  display: inline-block;
  border: 1px solid white;
  width: auto;
  margin-bottom: 0;
  width: 1rem;
  height: 1rem;
}
input[type=checkbox]:focus {
  outline: 1px solid white;
}
input[type=checkbox]:checked {
  background: url("images/icon-check-white.svg") no-repeat 10% 10%;
  background-size: contain;
}

fieldset {
  border: 0;
  padding: 0;
  margin-bottom: 1rem;
}
fieldset .wpcf7-list-item {
  display: block;
  margin-left: 0;
}
fieldset .wpcf7-list-item-label {
  font-weight: 400;
}

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.5rem;
  margin-top: 0.3rem;
  background: white url("images/icon-arrow-down.svg") no-repeat center right 1rem;
  background-size: auto 20%;
  color: black;
}

::-moz-placeholder {
  color: rgb(150, 150, 150);
}

::placeholder {
  color: rgb(150, 150, 150);
}

.wpcf7-list-item {
  margin: 0 1em 0 0 !important;
}

.block-elements .wpcf7-list-item {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 1rem;
}
.form-grid .width-100 {
  grid-column: 1/3;
}
@media (max-width: 768px) {
  .form-grid .width-100 {
    grid-column: auto;
  }
}
.form-grid .width-50 {
  grid-column: span 2;
}
@media (max-width: 768px) {
  .form-grid .width-50 {
    grid-column: auto;
  }
}
.form-grid .width-25 {
  grid-column: span 1;
}
@media (max-width: 768px) {
  .form-grid .width-25 {
    grid-column: auto;
  }
}
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
