/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Outfit:wght@100..900&family=Sacramento&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Forum&display=swap');
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #421a0f;
  --first-color-light: #e0be91;
  --text-color: #13131B;
  --white-color: #f8f9fa;
  --text-color-light: hsl(203, 8%, 80%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Outfit", serif;
  --header-font: "forum", serif;
  --biggest-font-size: 2.25rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  color: var(--black-color);
}

p,span {
  font-family: var(--body-font);
  font-size: 15px;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--white-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  font-family: var(--body-font);
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1224px;
  margin-inline: 1.5rem;
}

.main {
  overflow: hidden; /* For the animations */
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: background .3s;

}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo,
.nav__toggle,
.nav__link,
.nav__close {
  color: var(--text-color);
}

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

.nav__logo img {
  width: 50px;
  text-align: center;
}

.nav__text img {
    width: 50px;
  }

  

.nav__toggle {
  display: inline-flex;
  font-size: 1.25rem;
  cursor: pointer;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.toggle-background i {
  color: var(--text-color);
  font-size: 20px;
}

.change-theme {
  font-size: 1.25rem;
  color: var(--container-color);
  cursor: pointer;
  transition: color .3s;
}


body.dark-theme {
  --title-color: hsl(207, 4%, 95%);
  --text-color: hsl(207, 4%, 95%);
  --body-color: var(--first-color);
  --container-color: var(--first-color);
}

body.dark-theme {
  background-color: var(--container-color);
}


@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: var(--white-color);
    width: 100%;
    left: 0;
    top: -100%;
    box-shadow: 0 3px 8px hsla(203, 71%, 4%, .2);
    padding: 4rem 0 3.5rem;
    transition: top .4s;
    overflow: hidden;
    z-index: 11111111111;
  }  
}

.nav__list {
  display: flex;
  flex-direction: column;
  text-align: center;
  row-gap: 2rem;
}

.nav__link {
  transition: color .4s;
  font-family: var(--body-font);
  color: var(--text-color);
}

.nav__link::after {
  content: '';
  height: 2px;
  width: 0%;
  background: var(--first-color-light);
  display: block;
  transition: .5s;
  /* margin: auto; */
}

.nav-cart {
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.nav-cart i {
    color: var(--text-color);
    font-size: 30px;
}


.nav-cart-no {
  position: absolute;
  height: 25px;
  width: 25px;
  color: var(--white-color);
  background: var(--first-color);
  text-align: center;
  line-height: 40px;
  border-radius: 50px;
  scale: 0.8;
  top: -10px;
  left: 20px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}



.nav__link:hover::after {
  width: 100%;
}

.nav__close,
.nav__img {
  position: absolute;
}

.nav__close {
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  top: 0;
}


/* Change background header */
.header-bg {
  background-color: var(--white-color);
  box-shadow: 0 2px 4px hsla(0, 0%, 1%, 0.3);
}

.header-bg .nav__link,
.header-bg .toggle-background i {
  color: var(--text-color);
}

.header-bg .nav__text {
  background: linear-gradient(145deg, var(--text-color), #bc9c6c);
  background-clip: text;
  -webkit-background-clip: text;
}

.dark-theme .header-bg {
  background-color: var(--container-color);
}


/*=============== HOME ===============*/
.home {
    position: relative;
    width: 100%;
    height: 100vh;
    background-attachment: fixed;
    overflow: hidden;
}
  
.home-container {
    position: relative;
    height: 100vh;
    /* width: 100%; */
}

.home-mockup {
    position: absolute;
    bottom: 0;
    right: 0;
    filter: drop-shadow(5px 5px 5px #000000);
}

.home-mockup-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: rotateY(180deg);
    filter: drop-shadow(5px 5px 5px #000000);
}

 .home-mockup-3 {
    position: absolute;
    top: 280px;
    left: 23%;
    width: 30px;
    transform: rotate(90deg);
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.4));
    z-index: 1;
} 

.home-mockup-4 {
    position: absolute;
    top: 300px;
    z-index: 1;
    right: 25%;
    width: 30px;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.4));
}



.home-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    font-weight: bold;
    padding-top: 100px;
}

.home-titles h2 {
    font-size: 70px;
    font-family: var(--header-font);
    margin-bottom: -150px;
}

.home-title {
    font-size: 350px;
    font-weight: 900;
    font-family: var(--header-font);
    color: transparent;
    background-image: url(../img/home-bg-5.jpeg);
    background-position: center;
    background-size: contain;
    background-clip: text;
    -webkit-background-clip: text;
}

.dark-theme .home-title {
  font-size: 350px;
  font-weight: bolder;
  font-family: var(--header-font);
  color: transparent;
  background-image: url(../img/home-bg.jpeg);
  background-position: center;
  background-size: contain;
  background-clip: text;
  -webkit-background-clip: text;
}


.home-img {
    margin-top: -200px;
    transform: rotate(80deg);
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.4));
    z-index: 111111;
}


/* About */

.about {
  position: relative;
  background-attachment: fixed;
  padding: 100px 0;
  overflow: hidden;
}

.about-grid {
  padding-bottom: 30px;
}

.about-grid h1 {
  font-size: 100px;
  font-family: var(--header-font);
  font-weight: 900;
  background-image: url(../img/home-bg-5.jpeg);
  color: transparent;
  background-size: contain;
  background-clip: text;
  -webkit-background-clip: text;
}




/* Coffee */

.coffee {
  position: relative;
  overflow: hidden;
  padding: 100px 0 100px;
  background: rgb(153, 153, 153, 0.1);
}

.coffee-header h1 {
   font-size: 100px;
  font-family: var(--header-font);
  font-weight: 900;
  background-image: url(../img/home-bg-5.jpeg);
  color: transparent;
  background-size: contain;
  background-clip: text;
  -webkit-background-clip: text;
}

.coffee-grid {
  padding-top: 100px;
}

.coffee-grid-content {
  padding: 0 0 20px;
  background: var(--white-color);
  overflow: hidden;
}

.coffee-img {
  position: relative;
}

.coffee-details {
  text-align: center;
}

.coffee-details h3 {
  font-size: 20px;
  font-family: var(--header-font);
  padding: 10px;
  text-align: center;
}

.coffee-details p {
  font-size: 15px;
  margin-bottom: 20px;
}

.coffee-heart {
  position: absolute;
  right: 0;
  top: 0;
  padding: 20px 20px 0 0;
  margin-right: -50px;
  transition: .5s;
  z-index: 111111;
}

.coffee-heart i {
  font-size: 25px;
}

.coffee-cart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.coffee-cart button {
  background: var(--white-color);
  border: none;
  outline: none;
  font-family: var(--body-font);
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 10px 15px;
  font-size: 13px;
  opacity: 0;
  transition: .5s;
}

.coffee-sale {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 10px;
  background: var(--text-color);
  color: var(--white-color);
  transition: .5s;
  z-index: 11111;
}

.coffee-sale span {
  font-size: 12px;
}

.coffee-layer {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.1);
  height: 0;
  width: 100%;
  transition: .5s;
}

.coffee-grid-content:hover .coffee-heart {
  margin-right: 0;
}

.coffee-grid-content:hover .coffee-sale {
  margin-top: -50px;
}

.coffee-grid-content:hover .coffee-cart button {
  opacity: 1;
}

.coffee-grid-content:hover .coffee-layer {
  height: 100%;
}



.coffee-cta {
  margin: 100px 0 0;
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background-image: url(../img/cta-img.jpg);
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.7);
  background-blend-mode: overlay;
  background-attachment: fixed;
}

.coffee-cta-bg {
  padding: 100px 0;
  text-align: center;
}

.coffee-cta-bg h1 {
   font-size: 100px;
  font-family: var(--header-font);
  font-weight: 900;
  background-image: url(../img/home-bg.jpeg);
  color: transparent;
  background-size: contain;
  background-clip: text;
  -webkit-background-clip: text;
  padding-bottom: 20px;
  text-align: center;
}

.coffee-cta-btn a {
  background: var(--first-color-light);
  color: var(--white-color);
  padding: 10px 24px;
}



/* Best */

.best {
  position: relative;
  background-attachment: fixed;
  padding: 100px 0;
  overflow: hidden;
}

.best-grid {
  padding-bottom: 30px;
}

.best-grid h1 {
  font-size: 100px;
  font-family: var(--header-font);
  font-weight: 900;
  background-image: url(../img/home-bg-5.jpeg);
  color: transparent;
  background-size: contain;
  background-clip: text;
  -webkit-background-clip: text;
}




/* Testimonial */

.testimonial {
  position: relative;
  overflow: hidden;
  padding-bottom: 100px;
}

.testimonial-grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
  gap: 30px;
}

.testimonial-icon {
  display: flex;
  gap: 5px;
  color: var(--first-color-light);
  font-size: 20px;
}

.testimonial-grid-content p {
  font-size: 20px;
  padding: 10px 0;
}

.testimonial-pic {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonial-name h3 {
  font-family: var(--header-font);
  font-size: 25px;
}

.testimonial-name span {
  font-size: 13px;
}

.testimonial-img img {
  border-radius: 10px;
}





/* Feedback */

.feedback {
  position: relative;
}

.feedback-container {
  position: relative;
  padding: 0 0 100px;
}

.feedback-header {
  padding-bottom: 50px;
}

.feedback-header h1 {
  font-size: 100px;
  font-family: var(--header-font);
  font-weight: 900;
  background-image: url(../img/home-bg-5.jpeg);
  color: transparent;
  background-size: contain;
  background-clip: text;
  -webkit-background-clip: text;
}

.feedback-grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feedback-grid {
  padding: 20px 20px;
  transition: .5s;
}

.f-grid-flex {
  display: flex;
  align-items: center;
}

.feedback-img {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.feedback-img img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}


.feedback-grid-header {
  padding-bottom: 20px;
  font-size: 22px;
}

.feedback-user {
  color: var(--text-color);
}

.feedback-user h3 {
  color: var(--text-color);
  font-family: var(--header-font);
  font-size: 20px;
}

.feedback-user span {
  font-weight: 200;
}

.feedback-grid-text {
  color: var(--text-color);
}

.feedback-grid-text i {
  font-size: 40px;
}

.feedback-rating {
  margin-top: 20px;
}

.feedback-rating i {
  color: var(--first-color-light);
}

.feedback-grid:hover {
  transform: translateY(-5px);
}











/* Contact */
.contact {
  padding: 100px 0;
  background-image: url(../img/contact-bg.jpg);
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.7);
  background-blend-mode: overlay;
  background-attachment: fixed;
}

.contact-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-header h1 {
   font-size: 100px;
  font-family: var(--header-font);
  font-weight: 900;
  background-image: url(../img/home-bg.jpeg);
  color: transparent;
  background-size: contain;
  background-clip: text;
  -webkit-background-clip: text;
  padding-bottom: 20px;
}

.contact-btn a {
  background: var(--first-color-light);
  color: var(--white-color);
  padding: 10px 24px;
}

.contact-2 {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.contact-2-header {
  text-align: center;
}

.contact-2-header h2 {
  font-family: var(--header-font);
  font-size: 40px;
  margin-bottom: -40px;
}

.contact-2-header h1 {
  font-size: 100px;
  font-family: var(--header-font);
  font-weight: 900;
  background-image: url(../img/home-bg-5.jpeg);
  color: transparent;
  background-size: contain;
  background-clip: text;
  -webkit-background-clip: text;
}

.contact-grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
  gap: 30px;
  padding-top: 100px;
}

.contact-grid {
  text-align: center;
}

.contact-grid span {
  color: var(--first-color-light);
  font-size: 20px;
  font-family: var(--header-font);
}



/* Cart container */

.cart-container {
  position: fixed;
  top: 0;
  right: -40vw;
  background: var(--white-color);
  height: 100vh;
  width: 30vw;
  overflow-y: scroll;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.3);
  transition: 0.2s ease;
  z-index: 1111111111111;
}

.active .cart-container {
  right: 0vw;
}

.cart-container h1 {
  width: 100%;
  text-align: center;
  margin: 1em 0;
  font-size: 2.5em;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--text-color);
}

.cart-container ul {
  list-style: none;
}

.cart-container .bottom-side {
  display: flex;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  width: 30vw;
  padding: 0 20px 20px;
}

.bottom-side .total {
  width: 50%;
  background: var(--first-color);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bottom-side .close-btn {
  width: 50%;
  background: var(--first-color-light);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px; 
}

.cart-container ul {
  list-style: none;
}

.cart-container ul li {
  position: relative;
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  margin: 5px;
  padding: 1em;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}

.cart-container ul li img {
  height: inherit;
}

.cart-container ul li .coffee-name {
  font-family: var(--header-font);
}

.cart-container ul li .coffee-name,
.cart-container ul li .coffee-price {
  font-size: 1em;
  text-transform: capitalize;
}

.cart-container ul li .bakery-name {
  font-family: var(--header-font);
}

.cart-container ul li .bakery-name,
.cart-container ul li .bakery-price {
  font-size: 1em;
  text-transform: capitalize;
}


.changequantity span {
  padding: 0.5em;
}

.changequantity button {
  font-size: 1.5em;
  padding: 5px 16px;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 50px;
  text-align: center;
  font-size: 1em;
  font-weight: 600;
  color: var(--text-color);
  &:hover {
    background: var(--text-color);
    color: var(--white-color);
  }
}





.footer {
  position: relative;
  padding: 0 0 20px;
  overflow: hidden;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: var(--text-color);
}

.footer-grids {
  display: flex;
  justify-content: space-between;
  padding: 100px 0;
}

.footer-grid {
  flex: 5;
}

.footer-logo {
  width: 100px;
  margin-bottom: 10px;
}

.footer-grid p {
  color: var(--text-color);
  padding-bottom: 10px;
}

.footer-grid a {
  color: var(--text-color);
  font-weight: 300;
}

.footer-grid-links {
  flex: 2;
}

.footer-grid-links h3 {
  font-size: 20px;
  color: var(--text-color);
  font-family: var(--header-font);
  padding-bottom: 20px;
}

.footer-links {
  padding-bottom: 10px;
}

.footer-links a {
  color: var(--text-color);
  font-weight: 300;
}

.footer-grid-2 {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-grid-2 p {
  color: var(--text-color);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background: var(--first-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a {
  color: var(--text-color);
  font-size: 20px;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }  
}

/* For medium devices */
@media screen and (min-width: 767px) {
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__toggle,
  .nav__close,
  .nav__img {
    display: none;
  }

  .nav__link {
    font-size: 12px;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 1.5rem;
  }
}


/* For large devices */

@media screen and (min-width: 1048px) {
  .container {
    margin-inline: auto;
  }
}

@media screen and  (max-width: 1025px) {
  .cart-container {
    width: 100vw;
    right: -120vw;
  }
}

@media screen and (max-width: 767px) {

  .home {
    overflow: hidden;
  }

  .home-titles h2  {
    font-size: 50px;
    margin-bottom: -60px;
  }
  .home-title {
    font-size: 160px;
    text-align: center;
  }
  .home-img {
    margin-top: -100px;
    width: 170px;
  }
  .home-mockup {
    right: -60px;
    bottom: -150px;
  }
  .home-mockup-2 {
    left: -60px;
    bottom: -150px;
  }
  .home-mockup-3,
  .home-mockup-4 {
    display: none;
  }
  .home-header{
    padding-top: 0;
  }

  .about-grids {
    flex-direction: column;
  }
  .about-grid h1 {
    font-size: 40px;
    padding-bottom: 10px;
  }

  .coffee-header h1 {
    font-size: 40px;
    width: 100%;
  }

  .coffee-grid {
  padding-top: 50px;
}

  .coffee-cta-bg h1 {
    font-size: 40px;
  }

 .best-grid h1 {
   font-size: 40px;
 }

 .feedback-header h1 {
  font-size: 40px;
 }

  .contact-header h1 {
    font-size: 40px;
  }

  .contact-2-header h2 {
    font-size: 40px;
    margin-bottom: -10px;
  }
  
  .contact-2-header h1 {
    font-size: 40px;
  }

  .contact-grids {
    padding-top: 50px;
  }

  .cart-container {
    width: 100vw;
    right: -120vw;
  }

.cart-container .bottom-side {
  display: flex;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  width: 100vw;
  padding: 0 20px 20px;
}

  .footer-grids {
    flex-direction: column;
    gap: 30px;
    padding: 50px 0;
  }

  .footer-grid-2 {
    flex-direction: column;
    gap: 30px;
  }
  
  
}

@media screen and (max-width: 344px) {
  .home-title {
    font-size: 100px;
    text-align: center;
  }
  .home-mockup {
    right: -100px;
    bottom: -200px;
  }
  .home-mockup-2 {
    left: -100px;
    bottom: -200px;
  }
}





