@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

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

:root {
  --dark: #120c12;
  --dark-shade: hsl(306, 19%, 11%);
  --light: #9b9489;
  --light-shade: #857f75;
  --accent: #dc944c;
  --primary-font: "Roboto", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--primary-font);
}

section {
  display: grid;
  place-content: center;
  min-height: 100vh;
  padding: 5rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
}

.dark-bg {
  background-image: linear-gradient(
    45deg,
    hsl(300deg 20% 6%) 0%,
    hsl(301deg 19% 6%) 4%,
    hsl(301deg 19% 7%) 7%,
    hsl(302deg 18% 7%) 12%,
    hsl(303deg 18% 8%) 17%,
    hsl(304deg 18% 8%) 22%,
    hsl(304deg 17% 9%) 28%,
    hsl(304deg 17% 9%) 35%,
    hsl(304deg 17% 9%) 43%,
    hsl(305deg 18% 10%) 53%,
    hsl(305deg 18% 10%) 66%,
    hsl(306deg 19% 11%) 99%
  );
}

/* FIRST PAGE TO SEE*/
header {
  min-height: 100vh;
  color: var(--light);
}

#desktop-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 80%;
  margin-inline: auto;
  padding-block: 20px;
  animation: nav 800ms ease-out;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
}

.logo i {
  color: var(--accent);
  margin-left: 15px;
}

.menu-list {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 1.2rem;
  color: var(--light-shade);
  list-style: none;
}

.menu-links a {
  position: relative;
}

.menu-links a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: transform 500ms ease;
  transform-origin: bottom right;
}

.menu-links a:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.menu-links a.active:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* HAMBURGER MENU */
#hamburger-nav {
  display: none;
  transition: all 500ms ease-in-out;
  animation: nav 800ms ease-out;
}

.ham-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 80%;
  margin-inline: auto;
  padding-block: 20px;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 3px;
  border-radius: 1.5px;
  background-color: var(--accent);
  transition: transform 500ms ease;
}

/* transform spans to X */
.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 9px);
}
.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -9px);
}

.menu-ham-links {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  transform: translate(0px, 25px);
  width: 100%;
  font-size: 1.2rem;
  list-style: none;
  line-height: 35px;
  padding-block: 10px;
  text-align: center;
}

/* STICKY NAVBAR */
nav.sticky {
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 100%;
  background: var(--dark-shade);
  padding-inline: 70px;
  z-index: 999;
  opacity: 0.99;
}

/* Header text section */
.text-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 75%;
  margin-inline: auto;
  padding-block: 150px;
  animation: textSection 2000ms ease-out;
}

.text-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.text-desc {
  font-size: 1.125rem;
  line-height: 1.5rem;
  text-align: inherit;
  color: var(--light-shade);
  margin-bottom: 0.5rem;
}

.text-img-container {
  opacity: 0.7;
  border-radius: 50% 20% / 10% 40%;
}

.text-img-container:hover {
  opacity: 1;
}

.text-img-container img {
  max-width: 100%;
  border-radius: 50% 20% / 10% 40%;
}

/* Dialog section for order */
dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--dark-shade);
  color: var(--light);
  border: 0.5px solid var(--light);
  border-radius: 20px;
}

.fa-xmark {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

.fa-xmark:hover {
  color: var(--accent);
}

.order-pop-out::backdrop {
  background: linear-gradient(
    40deg,
    rgba(220, 148, 76, 1) 0%,
    rgba(15, 31, 29, 1) 30%
  );
  opacity: 0.6;
}

.form {
  max-width: 400px;
  min-height: 500px;
  margin: 20px;
  text-align: center;
}

.form h2 {
  font-size: 1.5rem;
  margin: 20px auto;
  color: var(--accent);
}

.form h3 {
  margin: 20px auto;
  color: var(--accent);
}

.person-info label {
  display: inline-block;
  width: 100px;
  font-weight: 400;
}

.person-info input {
  width: 200px;
  height: 30px;
  padding: 12px 15px;
  margin: 5px auto;
  border: none;
  border-radius: 5px;
}

.product-item {
  margin: 20px;
  text-align: left;
  padding-block: 10px;
}

.product-item label {
  font-weight: bold;
  padding-left: 10px;
  color: var(--accent);
}

.amount {
  margin-left: 1rem;
  margin-top: 7px;
}

.amount select {
  height: 25px;
  width: 50px;
  border-radius: 10px;
  border: 0.5px solid var(--dark);
  color: var(--dark);
}

/* dialog order after sumbiting the form */
.thank-order {
  margin-top: 60px;
}

.thank-text {
  padding: 20px;
}

.coffee-gif {
  width: 100%;
  margin-top: 30px;
  border-radius: 20px;
}

/* scroll up btn */
.up-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 90%;
  left: 90%;
  width: 40px;
  height: 40px;
  border: 1px solid var(--dark-shade);
  border-radius: 50%;
  background-color: var(--accent);
  cursor: pointer;
  transition: all 300ms ease;
  transform: scale(0);
}
/* show class for up btn */
.up-btn.show {
  transform: scale(1);
}

.up-btn i {
  color: var(--dark);
  font-size: 1.125rem;
}

.up-btn:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 30px -5px var(--dark);
}

/* ABOUT SECTION */
#about {
  background-color: var(--light);
}

#about h2 {
  padding-bottom: 2rem;
}

.products-container {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  max-width: 100%;
  margin-inline: auto;
}

.card {
  max-width: 200px;
}

.img-container img {
  width: 200px;
  height: 200px;
  border: 0.5rem solid var(--accent);
  border-radius: 20px 20px 20px 20px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.img-container:hover img {
  transform: scale(0.9);
}

figcaption {
  text-align: center;
  color: var(--dark-shade);
  margin-top: 1rem;
  line-height: 1.5rem;
}

/* SECTION 3 RECOMEND */
#rating {
  background: var(--light-shade);
}

.quote-section {
  max-width: 80%;
  margin-inline: auto;
}

.quote {
  font-size: 2.25rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 1em;
  width: fit-content;
  margin-left: auto;
  margin-top: 1rem;
}

.author-img-container {
  max-width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 0.25em solid var(--accent);
  object-fit: cover;
}

.author-img-container img {
  max-width: 100%;
  min-height: 100%;
}

.quote-author {
  font-weight: 600;
  font-style: italic;
}

.btn {
  min-width: 50%;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 10px 15px;
  background: var(--accent);
  color: var(--dark-shade);
  cursor: pointer;
  transition: all 300s ease;
}

/* Contact section */
#contact {
  min-height: 100vh;
  background: var(--light);
}

#contact h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-info {
  text-align: center;
  line-height: 35px;
  color: var(--dark-shade);
}

.google-map {
  min-height: 300px;
  margin-top: 20px;
}

.contact-info i {
  color: var(--accent);
}

/* FOOTER */
footer {
  min-height: 20vh;
  background: var(--dark-shade);
  color: var(--light-shade);
  display: grid;
  place-content: center;
}

.footer-text {
  text-align: center;
  line-height: 30px;
}

footer a {
  color: var(--accent);
}
