* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --maincolor: #13194a;
  --bgcolor: #9a9fce;
  --accentcolor: #eaecff;
  --wfontcolor: #fff;
}

body {
  background-color: var(--bgcolor);
  padding-top: 90px;
  overflow-x: hidden;
}

img {
  width: 100%;
}

h1 {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 2.5em;
  text-align: right;
}

.container::after {
  content: "";
  clear: both;
  display: table;
}

/*NAV STYLING*/
header {
  height: 90px;
  background-color: var(--maincolor);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  overflow: visible;
}

header::after {
  position: absolute;
  content: "";
  bottom: -40px;
  left: 0;
  background-color: var(--maincolor);
  height: 40px;
  width: 100%;
  clip-path: polygon(0 0, 0 35%, 100% 0);
  z-index: 800;
}

header img {
  padding-top: 12px;
}

header .row a {
  padding-top: 22px;
}

header a {
  color: var(--accentcolor);
  text-decoration: none;
  font-family: "halyard-text", sans-serif;
  font-weight: 500;
  font-style: normal;

  transition: 200ms ease-in;
}

header a:hover {
  color: #d5ebff;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

#navmenu {
  text-align: center;
}

.hidden {
  display: none;
}

/*SIDEBAR STYLING*/
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 999;
  background-color: rgba(19, 25, 74, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: none;
  padding-left: 30px;
  margin: 0;
  overflow: hidden;

  transform: translateX(100%);
  animation: 200ms slideIn forwards ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.sidebar li {
  list-style-type: none;
  padding-bottom: 20px;
  font-size: 1.6em;
}

.sidebar a {
  font-family: "halyard-text", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.sidebar a:hover {
  color: #d5ebff;
}

.close {
  height: 40px;
  width: 40px;
  margin-block: 20px;
  cursor: pointer;
}

.sidebar img {
  height: 80px;
  width: 200px;
}
/*HERO STYLING*/
main {
  background-image: url(images/bghero.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  height: calc(100vh - 90px);
  text-align: right;
  position: relative;
}

.hero__content {
  max-width: 100rem;
  position: relative;
}

main::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  background-color: var(--accentcolor);
  height: 250px;
  width: 100%;
  clip-path: polygon(100% 85%, 100% 100%, 0% 100%);
}

main div.row {
  padding-top: 45px;
}

.ramen {
  height: 80vh;
  position: relative;
  isolation: isolate;
}

.ramen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(images/ramen.webp);
  background-repeat: no-repeat;
  background-size: 48vw;
  background-position: 0 0;
  animation: floatUp 1.2s ease forwards;
  z-index: -1;
  pointer-events: none;
}

.ramen::before {
  content: "";
  position: absolute;
  background: url(images/stroke.webp);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: clamp(400px, 55vw, 900px);
  right: 0px;
  top: -160px;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: strokeReveal 0.8s ease-out 1.2s forwards;
  animation-delay: 1.2s;
}

@keyframes strokeReveal {
  from {
    opacity: 1;
    clip-path: inset(0 0 0 100%);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0%);
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

main h1 {
  font-weight: 600;
  color: var(--accentcolor);
  font-size: 4.8em;
  margin-bottom: 12px;
  padding-top: 145px;
  line-height: 40px;
  z-index: 500;
  position: relative;
}

.tm {
  font-size: 0.7em;
  vertical-align: super;
  color: var(--accentcolor);
}

.italic {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-weight: 700;
  font-style: italic;
  color: var(--accentcolor);
  font-size: 1.3em;
}

main a {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1.1em;
  text-decoration: none;
  background-color: transparent;
  color: var(--accentcolor);
  text-align: center;
  padding: 1.5rem 4rem 1.5rem 4rem;
  display: inline-block;
  position: relative;
  z-index: 500;
  transition: 200ms ease-in-out;
}

main a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--maincolor);
  clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
  z-index: -1;

  transition: 200ms ease-in-out;
}

main a:hover {
  transform: translateY(-8%);
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

main a:focus {
  transform: translateY(0%);
  filter: none;
}

section,
main {
  scroll-margin-top: 90px;
}

/*MENU STYLING*/
#menu {
  height: auto;
  min-height: 100vh;
  background-color: var(--accentcolor);
  margin-top: 0;
  position: relative;
  padding-bottom: 70px;
}

#menu::after {
  position: absolute;
  content: "";
  bottom: -40px;
  left: 0;
  background-color: var(--accentcolor);
  height: 40px;
  width: 100%;
  clip-path: polygon(0 0, 0 85%, 100% 0);
  z-index: 800;
}

.shioramen {
  position: relative;
}

.shioramen::before {
  content: "";
  position: absolute;
  background: url(images/shioramen.webp);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 30vw;
  right: -370px;
  top: -80px;
  width: 50vw;
  height: 50vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.miyagisalad {
  position: relative;
  isolation: isolate;
}

.miyagisalad::before {
  content: "";
  position: absolute;
  background: url(images/takoyaki.webp);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 22vw;
  left: -800px;
  top: 400px;
  width: 50vw;
  height: 50vh;
  z-index: -1;
  pointer-events: none;
  transform: rotate(-12deg);
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.shioramen.slide--visible::before {
  opacity: 1;
  transform: translateX(0);
}

.miyagisalad.slide--visible::before {
  opacity: 1;
  transform: translateX(0);
}

#menu h1 {
  margin-top: 0;
  padding-top: 50px;
}

.menu__top {
  text-align: center;
  padding-bottom: 50px;
  color: var(--maincolor);
}

.ramen__header {
  text-align: right;
}

.menu__header,
.menu__top {
  position: relative;
  z-index: 2;
}

/* MENU ITEMS */
.menu__item {
  margin-bottom: 1.2rem;
  isolation: isolate;
  position: relative;
}

.menu__item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.menu__item-name {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-weight: 700;
  color: var(--maincolor);
}

.menu__item-price {
  font-family: "halyard-text", sans-serif;
  font-weight: 500;
  white-space: nowrap;
  color: var(--maincolor);
}

.menu__item-desc {
  font-size: 0.9rem;
  line-height: 1.4;
  font-style: italic;
}

#menu__header__span {
  font-style: italic;
}

/* Mobile ramen*/
.menu__mobile-header {
  display: block;
  margin-top: 1.5rem;
}

/*ABOUT STYLING*/
#about {
  background-image: url(images/texture.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  height: auto;
  padding-block: 100px;
  position: relative;
  isolation: isolate;
}

#about::after {
  position: absolute;
  content: "";
  bottom: -1px;
  left: 0;
  background-color: var(--accentcolor);
  height: 250px;
  width: 100%;
  clip-path: polygon(100% 85%, 100% 100%, 0% 100%);
}

.about__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__image-wrap img {
  height: 280px;
}

.about__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.about__intro::before {
  content: "";
  position: absolute;
  background: url(images/stroke.webp);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: clamp(400px, 55vw, 900px);
  right: 0px;
  top: -360px;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  transform: rotate(8deg);
}

.about__intro {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.5;
  position: relative;
}

.about__text p {
  color: var(--accentcolor);
}

/*CONTACT STLYING*/
#contact {
  height: auto;
  min-height: 55vh;
  padding-block: 80px;
  background-color: var(--accentcolor);
}

.contact__heading {
  color: var(--maincolor);
  text-align: left;
  padding-bottom: 8px;
}

.contact__sub {
  color: var(--maincolor);
  font-family: "halyard-text", sans-serif;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.contact__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
}

.contact__field label {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maincolor);
  margin-bottom: 6px;
}

.contact__field input,
.contact__field textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--maincolor);
  padding: 8px 0;
  font-family: "halyard-text", sans-serif;
  font-size: 1rem;
  color: var(--maincolor);
  outline: none;
  transition: border-color 200ms ease;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: rgba(19, 25, 74, 0.4);
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-bottom-color: var(--bgcolor);
}

.contact__field--tall textarea {
  height: 148px;
  resize: none;
}

.contact__submit {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--accentcolor);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1.5rem 4rem;
  position: relative;
  display: inline-block;
  transition: 200ms ease-in-out;
  z-index: 0;
  text-decoration: none;
}

.contact__submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--maincolor);
  clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
  z-index: -1;
  transition: 200ms ease-in-out;
}

.contact__submit:hover {
  transform: translateY(-8%);
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

.contact__submit:focus {
  transform: translateY(0%);
  filter: none;
}

/*FOOTER STYLING*/
footer {
  height: auto;
  background-color: var(--maincolor);
  padding-block: 30px 20px;
}

.footer__inner {
  display: flex;
  align-items: center;
}

.footer__logo {
  width: 120px;
}

.footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.footer__links a {
  color: var(--accentcolor);
  text-decoration: none;
  font-family: "halyard-text", sans-serif;
  font-size: 0.95rem;
  opacity: 0.7;
  transition: opacity 200ms ease;
}

.footer__links a:hover {
  opacity: 1;
}

.footer__bottom {
  margin-top: 20px;
  border-top: 1px solid rgba(234, 236, 255, 0.15);
  padding-top: 16px;
}

.footer__bottom p {
  color: var(--accentcolor);
  font-family: "halyard-text", sans-serif;
  font-size: 0.8rem;
  opacity: 0.4;
  text-align: center;
}
.footer__links,
.footer__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__links h4,
.footer__info h4 {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-weight: 700;
  color: var(--accentcolor);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.footer__info p {
  color: var(--accentcolor);
  font-family: "halyard-text", sans-serif;
  font-size: 0.95rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer__brand p {
  color: var(--accentcolor);
  font-family: "halyard-text", sans-serif;
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 8px;
}

.footer__brand svg {
  width: 40px;
  padding-right: 20px;
  fill: var(--accentcolor);
}

.footer-map {
  width: 80px;
}

footer::before {
  position: absolute;
  content: "";
  top: -39px;
  left: 0;
  background-color: var(--maincolor);
  height: 40px;
  width: 100%;
  clip-path: polygon(0 100%, 100% 100%, 100% 35%);
}

footer {
  position: relative;
}

/*REPSONSIVE*/
@media only screen and (max-width: 45em) {
  header img {
    padding-top: 13px;
  }
  .ramen::after {
    background-image: none;
  }
  main {
    background: url(images/mobileramen.webp), url(images/smallbg.png);
    background-size: contain, cover;
    background-repeat: no-repeat;
    background-position: left, center;
  }
  .hamburger {
    display: block;
    float: right !important;
    width: auto !important;
    margin-left: auto;
    padding-top: 25px !important;
    cursor: pointer;
  }
  .hamburger svg {
    width: 30px;
  }
  main h1 {
    font-size: 2.6em !important;
    padding-top: 150px;
  }
  .ramen::before {
    display: none;
  }
  .menu__mobile-header {
    display: none;
  }
  .hidden-lg {
    display: none;
  }
  .footer__links {
    justify-content: flex-start;
    margin-top: 16px;
  }
  .about__text {
    text-align: left;
  }
  .about__intro {
    text-align: center;
  }
}
@media only screen and (min-width: 45em) {
  .menu__mobile-header {
    display: none;
  }
  .hidden-lg {
    display: none;
  }
}

@media only screen and (max-width: 45em) {
  .hidden-lg {
    display: block;
  }
  .about__intro::before {
    background-size: 110vw;
    top: -160px;
    right: 0px;
  }
  #about {
    padding-top: 80px;
  }
  .about__image-wrap img {
    padding-bottom: 40px;
  }
}
@media only screen and (max-width: 45em) {
  .footer__inner {
    flex-wrap: wrap;
  }

  .footer-map {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }
  .footer-map iframe {
    width: 300px;
  }
}

@media only screen and (max-width: 45em) {
  .footer__inner > div:not(.footer-map) {
    flex: 1;
  }
}
