/*
Theme Name: Impasto Street
Theme URI: https://impasto.local
Author: Impasto
Description: Editable restaurant theme for Impasto with logo, slogan, navigation menus, and full-width menu pages.
Version: 0.1.4
Text Domain: impasto-street
*/

@font-face {
  font-display: swap;
  font-family: "malohallo-webfont";
  font-style: normal;
  font-weight: 400;
  src:
    url("assets/webfonts/malohallo-webfont.woff") format("woff"),
    url("assets/webfonts/malohallo-webfont.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "back_to_black_demo-webfont";
  font-style: normal;
  font-weight: 400;
  src:
    url("assets/webfonts/back_to_black_demo-webfont.woff") format("woff"),
    url("assets/webfonts/back_to_black_demo-webfont.woff.ttf") format("truetype");
}

:root {
  --impasto-site-admin-bar-offset: 0px;
  --impasto-site-black: var(--impasto-site-custom-admin-defined-black, #1c1b1b);
  --impasto-site-green: var(--impasto-site-custom-admin-defined-green, #346832);
  --impasto-site-green-rgba: 52,104,50;
  --impasto-site-green-2: var(--impasto-site-green-custom-admin-defined-2, #154212);
  --impasto-site-green-2-rgba: 21,66,18;
  --impasto-site-paper: var(--impasto-site-custom-admin-defined-paper, #fcf9f8);
  --impasto-site-red: var(--impasto-site-custom-admin-defined-red, #a40021);
  --impasto-site-muted: var(--impasto-site-custom-admin-defined-muted, #5f625c);
  --impasto-site-content: var(--impasto-site-custom-admin-defined-content, 1200px);
  --impasto-site-pad: var(--impasto-site-custom-admin-defined-pad, clamp(24px, 4.6vw, 64px));
  --impasto-site-header-height: var(--impasto-site-header-custom-admin-defined-height, 79px);
}

.text-impasto-site-green{color: var(--impasto-site-green) !important;}
.text-impasto-site-green-2{color: var(--impasto-site-green-2) !important;}
.text-impasto-site-paper{color: var(--impasto-site-paper) !important;}
.text-impasto-site-red{color: var(--impasto-site-red) !important;}
.text-impasto-site-muted{color: var(--impasto-site-muted) !important;}

.bg-impasto-site-green{background-color: var(--impasto-site-green) !important;}
.bg-impasto-site-green-2{background-color: var(--impasto-site-green-2) !important;}
.bg-impasto-site-paper{background-color: var(--impasto-site-paper) !important;}
.bg-impasto-site-red{background-color: var(--impasto-site-red) !important;}
.bg-impasto-site-muted{background-color: var(--impasto-site-muted) !important;}


@media (min-width: 992px) and (max-width: 1400px) {
  :root {
    --impasto-site-content: 980px;
    --impasto-site-pad: clamp(24px, 3.2vw, 48px);
  }
}

@media (max-width: 991px) {
  :root {
    --impasto-site-content: 100%;
    --impasto-site-pad: clamp(16px, 4vw, 28px);
    --impasto-site-header-height: 115px;
  }
}

@media (max-width: 640px) {
  :root {
    --impasto-site-pad: 16px;
    --impasto-site-header-height: 115px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--impasto-site-paper);
  color: var(--impasto-site-black);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  overflow-x: hidden;
}

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

body.admin-bar .impasto-site-header {
  top: var(--impasto-site-admin-bar-offset);
}

body.admin-bar {
  --impasto-site-admin-bar-offset: var(--wp-admin--admin-bar--height, 32px);
  --impasto-site-header-height: calc(var(--impasto-site-header-custom-admin-defined-height, 79px) + var(--impasto-site-admin-bar-offset));
}

a {
  color: inherit;
}

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

.skip-link:focus {
  background: white;
  border: 2px solid var(--impasto-site-black);
  clip: auto;
  height: auto;
  left: 16px;
  padding: 10px 14px;
  top: 16px;
  width: auto;
  z-index: 1000;
}

.impasto-site-header {
  background: radial-gradient(circle at 85% 35%, var(--impasto-site-green-2), var(--impasto-site-green) 100%);
  border-bottom: 3px solid var(--impasto-site-green-2);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 80;
}

.impasto-site-header-inner {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0;
  max-width: none;
  min-height: 76px;
  padding: 10px clamp(54px, 10vw, 18px);
  width: 100%;
}

@media (max-width: 992px) {
  .impasto-site-header-inner {
    padding: 10px 5vw;
  }
}

.impasto-site-brand {
  align-items: center;
  color: var(--impasto-site-green);
  display: inline-flex;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.impasto-site-logo img {
  display: block;
  max-height: 48px;
  max-width: 170px;
}

.impasto-site-title {
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.impasto-site-tagline {
  color: white;
  background: var(--impasto-site-red);
  display: block;
  width: fit-content;
  font-size: 11px;
  padding: 3px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}

.impasto-site-nav {
  min-width: 0;
}

.impasto-site-menu {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.impasto-site-menu a {
  color: var(--impasto-site-paper);
  display: block;
  position: relative;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.impasto-site-menu a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}

.impasto-site-menu a:hover:after,
.impasto-site-menu a:focus-visible:after,
.impasto-site-menu a.current:after {
  width: 100%;
}

.impasto-site-cart-slot {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-height: 46px;
  min-width: 112px;
}

.impasto-main {
  min-height: 70vh;
}

.impasto-page-content {
  margin: 0 auto;
  max-width: var(--impasto-site-content);
  padding: clamp(40px, 6vw, 80px) var(--impasto-site-pad);
}

.impasto-page-content > *:first-child {
  margin-top: 0;
}

.impasto-page-content > *:last-child {
  margin-bottom: 0;
}

.impasto-menu-page .impasto-page-content {
  max-width: none;
  padding: 0;
}

.impasto-site-footer {
  background: var(--impasto-site-footer-bg, var(--impasto-site-black));
  color: white;
}

.impasto-site-footer-inner {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: calc(var(--impasto-site-content) + 1rem);
  padding: 2rem 1rem;
}

.impasto-site-footer p {
  margin: 0;
}

.impasto-footer-menu {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.impasto-footer-menu a {
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .impasto-site-header {
    transition: transform 220ms ease;
    will-change: transform;
  }

  body.impasto-mobile-header-hidden .impasto-site-header {
    transform: translateY(calc(-100% - var(--impasto-site-admin-bar-offset)));
  }

  body.impasto-mobile-header-visible .impasto-site-header {
    transform: translateY(0);
  }

  .impasto-site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 112px;
  }

  .impasto-site-nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    order: 3;
  }

  .impasto-site-menu {
    justify-content: center;
    min-width: max-content;
    padding-bottom: 2px;
  }
}

@media (max-width: 640px) {
  .impasto-site-header-inner {
    gap: 10px;
  }

  .impasto-site-title {
    font-size: 22px;
  }

  .impasto-site-tagline {
    font-size: 10px;
  }

  .impasto-site-footer-inner {
    display: grid;
  }
}

@media (max-width: 782px) {
  body.admin-bar {
    --impasto-site-admin-bar-offset: var(--wp-admin--admin-bar--height, 46px);
    --impasto-site-header-height: calc(115px + var(--impasto-site-admin-bar-offset));
  }
}

@media (max-width: 600px) {
  body.admin-bar {
    --impasto-site-admin-bar-offset: 0px;
    --impasto-site-header-height: 115px;
  }
}
