@import url("https://fonts.googleapis.com/css2?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");
@import url("https://fonts.googleapis.com/css2?family=Kanit: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&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");
@import url("https://fonts.googleapis.com/css2?family=Notable&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/*Website colours*/
:root {
  --soft-peach: #fbede2;
  --dark-greenish: hsl(330, 77%, 64%); /* deep cute pinkk*/
  --light-greenish: #e78bb9; /* soft pinkk */
  --orangey-yellow: #f1b819;
  --wooden-brown: #693f04;
  --white-rock: #ebe7d0;
  --white-clr: #fff;
}

html {
  scroll-behavior: smooth;
}
/*basic styling*/
li {
  list-style: none;
}
a {
  text-decoration: none;
}

.green-clr {
  color: var(--light-greenish);
}
.peach-clr {
  color: var(--soft-peach);
}
.bg-green {
  background: var(--light-greenish);
}
.bg-peach {
  background: var(--soft-peach);
}

img {
  max-width: 100%;
  height: auto;
}

.side-spacing {
  padding-inline: 6rem;
}
/*Header section*/
header {
  background: var(--light-greenish);
  height: 13vh;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navlist,
.action-list,
.social-list {
  display: flex;
  align-items: center;
}

.navlist,
.action-list {
  gap: 2.5rem;
}

.links {
  font-size: 1rem;
}

.nav-btn {
  background-color: var(--soft-peach);
  color: var(--light-greenish);
  padding: 0.7rem 1.5rem;
  border-radius: 5rem;
  font-size: 1rem;
  font-weight: 600;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.fa-burger {
  color: var(--soft-peach);
  font-size: 2rem;
}

/*other sections*/
/*hero section*/
.hero-section {
  min-height: 100vh;
  position: relative;
}
h1 {
  font-size: 12rem;
  text-transform: uppercase;
  text-align: center;
  line-height: 9rem;
  font-family: "Kanit", sans-serif;
}

.hero-img {
  position: absolute; /*absolute so we can move acccording to our preference */
  width: 26rem;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-img::before {
  content: "";
  position: absolute;
  width: 40rem;
  aspect-ratio: 1;
  background: linear-gradient(var(--dark-greenish) 50%, var(--white-rock) 50%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -15%);
  z-index: -1; /*pushes the circle behind other elements*/
}

.hero-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9rem;
}

p {
  max-width: 450px;
  text-align: right;
}

.icons-link {
  width: 2.7rem;
  aspect-ratio: 1;
  text-align: center;
  line-height: 2.7rem;
  border-radius: 50%;
  color: var(--light-greenish);
  transition: transform 0.3s ease-in-out;
}

.icons-link:hover {
  transform: translateY(-20%);
}

.fa-brands {
  font-size: 1.3rem;
}

.social-list {
  gap: 1rem;
}

.headline {
  background: var(--orangey-yellow);
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  padding-block: 1rem;
}

.headline-content {
  display: inline-block;
}

h4 {
  display: inline-block;
  font-size: 2.2rem;
  color: var(--wooden-brown);
  text-transform: uppercase;
  margin-inline: 2rem;
}

.working-section {
  padding-block: 3rem;
}
.img-part {
  width: 25rem;
}

h2 {
  font-size: 4.2rem;
  text-transform: uppercase;
  text-align: right;
  font-family: "Notable", sans-serif;
  font-weight: 400;
}

.card-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /*to make card responsive even on phone*/
  gap: 2rem;
  margin-top: 4rem;
}

.card {
  width: 23rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: gold;
  background-position: center;
  background-size: cover;
  position: relative;
}

#first .card:nth-child(1) {
  background-image: url(assests/latte.jpg);
}

#first .card:nth-child(2) {
  background-image: url(assests/mocha.jpeg);
}

#first .card:nth-child(3) {
  background-image: url(assests/affogato.jpg);
}

#second .card:nth-child(1) {
  background-image: url(assests/capuccino.jpg);
}

#second .card:nth-child(2) {
  background-image: url(assests/americano.jpg);
}

#second .card:nth-child(3) {
  background-image: url(assests/frappe.jpeg);
}

#third .card:nth-child(1) {
  background-image: url(assests/frappe.jpeg);
}

#third .card:nth-child(2) {
  background-image: url(assests/cartedo.jpg);
}

#third .card:nth-child(3) {
  background-image: url(assests/espresso.jpeg);
}

.card::before {
  content: attr(data-type); /*to print individually data type*/
  position: absolute;
}

/* .action-btn {
  background: var(--orangey-yellow);
  width: 5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 3rem;
  color: var(--light-greenish);
  display: block;
  text-align: center;
} */

.action-btn {
  position: absolute; /* 👈 place relative to the card */
  bottom: 10px; /* distance from top */
  right: 10px; /* distance from right (opposite side) */

  background: var(--orangey-yellow);
  width: 5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 3rem;
  color: var(--light-greenish);
  display: flex; /* better centering */
  align-items: center;
  justify-content: center;
}

.placement {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
}

.card:hover .placement {
  opacity: 1;
  visibility: visible;
}

/* Best coffee section */

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px; /* smaller gap */
  margin: 0; /* remove extra space */
  padding: 0; /* reset padding */
  flex-wrap: nowrap; /*  prevent text from breaking into next line */
  white-space: nowrap; /* force text to stay in one line */
}

.hero-content h2 {
  font-size: 3rem; /* slightly smaller so it fits */
  font-family: "Notable", sans-serif;
  font-weight: 400;
  color: var(--soft-peach);
  text-transform: uppercase;
  margin: 0; /* remove unwanted margins */
}

.img-con {
  width: 10rem;
  height: 6rem;
  border-radius: 5rem;
  overflow: hidden;
  flex-shrink: 0; /* prevents image from shrinking */
}

.img-con img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video {
  border-radius: 2rem;
  width: 100%;
  margin-top: 3rem;
}

/* our roasting section */

.start {
  text-align: left;
}

.listing {
  display: flex;
  justify-content: space-between; /* pushes title left & image right */
  align-items: center; /* keeps them vertically centered */
  background: var(--dark-greenish);
  padding: 1.5rem 2rem;
  border-radius: 5rem;
  transition: 0.3s ease;
}

h3 {
  font-size: 3.5rem;
  text-transform: uppercase;
  font-family: "Kanit", sans-serif;
}

.listing:hover {
  background: var(--orangey-yellow);
}

.listing:hover h3 {
  color: var(--light-greenish);
}

.listing:hover .action-btn {
  background-color: var(--light-greenish);
}

.roasting-img {
  width: 10rem;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden; /* keeps the image circular */
  flex-shrink: 0;
  opacity: 0;
  visibility: hidden;
  transition: all ease-in-out;
}

.roasting-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing:hover .roasting-img {
  top: 50%;
  opacity: 1;
  visibility: visible;
}

footer {
  padding-block: 2rem;
}

h5 {
  color: var(--light-greenish);
  font-size: 1.2rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-col {
  flex-basis: 10rem;
  margin-top: 2rem;
}

.footer-list {
  margin-top: 1rem;
}
.footer-list li {
  margin-bottom: 0.6rem;
}

form {
  height: 3.5rem;
  width: 23rem;
  background: var(--white-clr);
  border-radius: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

input[type="email"] {
  background: transparent;
  border: none;
  font-size: 1rem;
  height: 100%;
  border-radius: inherit;
  padding-inline: 1rem;
}

input:focus {
  outline: none;
}

input[type="submit"] {
  background: var(--light-greenish);
  border: none;
  color: var(--soft-peach);
  font-size: 1rem;
  border-radius: 5rem;
  padding: 0.6rem 1rem;
}

/* Media queries */
@media screen and (max-width: 680px) {
  .navlist {
    flex-direction: column;
    justify-content: center;
    background: var(--orangey-yellow);
    position: absolute;
    top: 0;
    left: 0;
    height: 80vh;
    width: 20rem;
    z-index: 5;
    border-bottom-right-radius: 50%;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;
  }

  .navlist-active {
    transform: translateX(0);
  }

  .navlist .links {
    color: var(--light-greenish);
  }
  .hamburger {
    display: block;
  }

  .side-spacing {
    padding-inline: 1rem;
  }
  h1 {
    font-size: 5.5rem;
    line-height: 4.7rem;
  }

  .hero-img {
    width: 20rem;
    top: 40%;
  }

  .hero-img::before {
    width: 30rem;
  }

  .hero-content {
    flex-direction: column;
    padding-top: 2rem;
    gap: 1rem;
  }

  h2 {
    font-size: 2.9rem;
  }

  .img-con,
  .action-list {
    display: none;
  }

  [data-type="min-padding"] {
    padding-top: 0.3rem;
  }

  h3 {
    font-size: 2.2rem;
  }

  .roasting-img {
    width: 7rem;
    left: 50%;
  }
}
