@import url('https://fonts.googleapis.com/css2?family=Allura&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  /* colors */
  --color-primary: rgb(28, 26, 26);
  --color-accent: rgb(172, 132, 0);
  --color-secondary: rgb(77, 26, 26);
  --color-secondary-darker: rgb(19, 7, 7);
  --color-tertiary: rgb(251, 251, 251);

  /* fonts */
  --font-base: "Poppins", sans-serif;
  --font-accent: "Allura", cursive;

  /* biome-ignore lint/correctness/noUnknownProperty: <explanation> */
  interpolate-size: allow-keywords;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-secondary-darker) url("/img/pattern.svg");
  background-size: 450%;
  background-repeat: repeat;
  font-family: var(--font-base);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Overlay section */
.overlay-wrapper {
  z-index: 2;
}

.overlay-wrapper::before {
  content: "";
  position: fixed;
  background: url("/img/coffee_grain.webp") no-repeat top center/contain;
  transform: translateX(150%);
  scale: 0.5;
  height: 100%;
  width: 100%;
  z-index: 2;
  animation: autoShowAnimationCoffee both;
  animation-timeline: view(0% 99%);
}

.overlay-wrapper::after {
  content: "";
  position: fixed;
  background: url("/img/macaroons.webp") no-repeat top center/contain;
  transform: translate(-150%, 200%);
  scale: 0.5;
  height: 100%;
  width: 100%;
  z-index: 2;
  animation: autoShowAnimationMacarons both;
  animation-timeline: view(0% 99%);
}


/* Hero Section */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 83svh;
}

.hero-wrapper::before {
  content: "";
  position: absolute;
  background: url("/img/hero_background_mobile.webp") no-repeat top center/cover;
  background-position: 100%;
  height: 100%;
  width: 100%;
  z-index: -1;
}

#hero-top_bar {
  position: absolute;
  display: flex;
  gap: 0.5rem;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
  color: var(--color-tertiary);
  width: 100%;
  padding: 1rem 0 1rem 0;
  z-index: 2;
  max-height: 10rem;

  background: rgba(19, 7, 7, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#hero-top_bar p:nth-child(1) {
  width: 100%;
}

#hero-top_bar>span>a {
  font-size: 1.1rem;
}

#hero-logo {
  aspect-ratio: 1/1;
  width: clamp(200px, 25svw, 500px);
  margin-top: 9rem;
  filter: brightness(0) invert(1);
}

#hero-slogan {
  aspect-ratio: 2/1;
  width: clamp(15rem, 25svw, 50rem);
}

#hero-slogan-wrapper {
  background: linear-gradient(0deg, rgba(251, 251, 251, 1) 35%, rgba(251, 251, 251, 0) 100%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: end;
  height: 100%;
}

/* Call to Action Section */
.call_to_action-wrapper {
  height: 18svh;
  display: flex;
  place-items: center;
  justify-content: center;
  background-color: var(--color-secondary-darker);
  text-align: center;
  color: var(--color-tertiary);
}

#menu-buttons-wrapper div {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Brunch and Coffee Section */

.promo-wrapper {
  display: flex;
  flex-direction: column;
}

.brunch-wrapper,
.coffee-wrapper {
  display: flex;
  padding: 0 1rem;
  flex-direction: column;
  align-items: center;
  background: url("/img/brunch_background.webp") no-repeat center center/cover;
  height: 50svh;
}

.brunch-wrapper article,
.coffee-wrapper article {
  position: relative;
  margin-top: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-tertiary);
}

.brunch-wrapper h2,
.coffee-wrapper h2 {
  position: absolute;
  top: -1.2rem;
  color: var(--color-tertiary);
}

.brunch-wrapper article p,
.coffee-wrapper article p {
  word-wrap: break-word;
  width: 25ch;
  text-align: center;
}

.brunch-wrapper a {
  position: absolute;
  bottom: -1rem;
}

/* Coffee Section */
.coffee-wrapper {
  padding: 0 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  color: var(--color-tertiary);
  height: 50svh;
  background: url("/img/special_coffee_background.webp")no-repeat center center/cover;
}

.coffee-wrapper article {
  margin-top: 10rem;
}

/* Menu sections */
.seasonal_menu-wrapper {
  position: relative;
  padding: 2rem 0rem;
}

.slider {
  width: 100%;
  height: 320px;
  overflow: scroll hidden;
  margin-bottom: 1rem;
  mask-image: linear-gradient(to right,
      transparent,
      #000 10% 90%,
      transparent);
}

.slider .list {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-width: calc(320px * 6);
  position: relative;
}

.slider .list .item {
  width: 320px;
  height: 320px;
  position: absolute;
  left: 100%;
  animation: autoRun 40s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc((40s / 6) * (var(--position) - 1) - 40s) !important;
}

.slider .list .item img {
  width: 320px;
}


.slider:hover .item {
  animation-play-state: paused !important;
  filter: sepia(1);
}

.slider .item:hover {
  filter: sepia(0);
}


details {
  overflow: hidden;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0 1rem;
  z-index: 2;
}

details>div {
  overflow: hidden;
  padding: 1rem;
  border-radius: 1rem 1rem 1rem 1rem;
  color: inherit;
  transition: border-radius 0.3s ease;

  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

details::details-content {
  block-size: 0;
  border-radius: 1rem;
  transition:
    block-size 0.8s,
    content-visibility 0.8s;

  transition-behavior: allow-discrete;
}

details[open]::details-content {
  block-size: auto;
}

details[open]>div {
  border-radius: 0 0 1rem 1rem;
}

details summary {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 1rem 1rem 1rem 1rem;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--color-tertiary);
  cursor: pointer;
  transition: border-radius 0.3s ease;

  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

details[open] summary {
  border-radius: 1rem 1rem 0 0;
}

/* location section */
.location-wrapper {
  display: flex;
  padding-top: 2rem;
  flex-direction: column;
  justify-items: center;
  text-align: center;
  color: var(--color-tertiary);
}

.location-wrapper p {
  margin-bottom: 1rem;
}


.location-wrapper div {
  position: relative;
  overflow: hidden;
}

.location-wrapper div img {
  max-height: 400px;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.location-wrapper div a {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* form section */
.form-wrapper {
  display: flex;
  padding: 2rem 1rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-tertiary);
}

.form-wrapper p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.form-wrapper form {
  display: flex;
  flex-direction: column;
  width: 85svw;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;

  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.form-wrapper form label {
  font-size: 1rem;
  font-weight: 500;
}

.form-wrapper form input,
.form-wrapper form textarea {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  margin-top: 0.3rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* footer */
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-tertiary);
  gap: 2rem;
}

#footer-social-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
}

#footer-social-wrapper img {
  aspect-ratio: 1/1;
  width: 3rem;
  transition: all 0.3s ease-in;
}

#footer-social-wrapper img:hover {
  filter: drop-shadow(0 0 1em var(--color-accent));
  transform: translateY(-0.5rem);
}


/* Back button */
#back-button {
  position: fixed;
  bottom: 2rem;
  left: 1rem;
  height: 1rem;
  width: 1rem;
  padding: 1rem;

  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#back-button:hover {
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--color-accent);
  color: var(--color-tertiary);
}

/* Utility classes */

.text-xs {
  font-size: clamp(0.5rem, 0.8rem, 0.9rem);
}

.text-sm {
  font-size: 0.8rem;
}

.text-md {
  font-size: 1.2 rem;
}

.text-fancy {
  text-align: center;
  font-family: var(--font-accent);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.text-heading {
  font-family: var(--font-accent);
  color: var(--color-accent);
  font-size: clamp(2.5rem, 5svw, 5rem);
}

.button {
  background-color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 3rem;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-rounded {
  aspect-ratio: 1/1;
  width: 3rem;
  height: 3rem;
  padding: 5;
}

.button:hover {
  background-color: var(--color-accent);
  color: var(--color-tertiary);
}

.btn-small {
  font-size: 1rem;
}

.btn-medium {
  font-size: 1.1rem;
}

.btn-glass {
  color: inherit;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass-dark {
  color: inherit;
  background: rgba(77, 26, 26, 0.45);
  border-radius: 5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass-accent {
  color: inherit;
  background: rgba(172, 132, 0, 0.45);
  border-radius: 5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}


/* media queries */

@media screen and (min-width: 980px) {
  body {
    font-size: 24px;
  }

  #hero-top_bar {
    top: 0;
    justify-content: center;
    align-items: center;
    gap: 50px;
    font-size: 1rem;
  }

  #hero-top_bar p:nth-child(1) {
    width: fit-content;
  }

  .hero-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
  }

  .hero-wrapper::before {
    background: url("/img/hero_background_desktop.webp") no-repeat top center/cover;
  }

  #hero-slogan-wrapper {
    background: none;
    width: fit-content;
  }

  #hero-slogan {
    margin-top: 15rem;
    align-self: flex-start;
  }

  .promo-wrapper {
    flex-direction: row;
  }

  .brunch-wrapper,
  .coffee-wrapper {
    width: 50%;
    height: 65svh;
  }

  .location-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .location-wrapper p {
    width: 100%;
  }

  .location-wrapper div img {
    object-position: center;
    object-fit: cover;
    width: 100%;
  }

  #location-tijuana {
    width: 50%;
  }

  #location-tecate {
    width: 50%;
  }

}


/* animations */

@keyframes autoRun {
  from {
    left: 100%;
  }

  to {
    left: calc(320px * -1);
  }
}


@keyframes autoShowAnimationCoffee {
  0% {
    opacity: 0;
  }

  70% {
    transform: translateX(110%);
  }

  100% {
    opacity: 1;
    transform: translateX(120%);
  }
}

@keyframes autoShowAnimationMacarons {
  0% {
    opacity: 0;
  }

  70% {
    transform: translate(-85%, 90%);
  }

  100% {
    opacity: 1;
    transform: translate(-100%, 90%);
  }
}