/* common css vido 49:07 */
:root {
  --lgpink: #efc5cd;
  --bg: #fffdfa;
  --brown: #442222;
  --pink: #f296a5;
  --button-radius: 25px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Josefin Sans", sans-serif;
  background-color: var(--bg);
  line-height: 1.6; /*not sure if I need this*/
}
/* body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background-color: var(--brown);
  border-radius: 10px;
} */
.btn {
  padding: 12px 25px;
  border-radius: var(--button-radius);
  background: var(--pink);
  color: #fffdfa;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: "Josefin Sans", sans-serif;
  font-weight: bold;
  transition: 0.4s ease-in-out;
  line-height: 1;
}

.btn:hover {
  background: var(--brown);
  color: var(--bg);
}

.subheading {
  font-weight: 500;
  color: var(--pink);
}

.heading {
  font-size: 36px;
  color: var(--brown);
}
.heading span {
  color: var(--pink);
}

/* header/about section */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px;
  background-color: #fffdfa;
}

#mainHeader.fixed {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fffdfa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  z-index: 9999;
}

#mainHeader {
  transition: all 0.3s ease;
}
.logo {
  font-weight: 900;
  /* font-size: 24px; */
}

.logo img {
  width: 130px;
  vertical-align: text-bottom;
  margin-left: 25px;
}

.logo span {
  color: var(--pink);
}

nav {
  display: flex;
  align-items: center;
  gap: 50px;
  font-family: "Josefin Sans", sans-serif;
  font-weight: bold;
  font-size: 15px;
  margin-right: 25px;
}
nav a {
  text-decoration: none;
  color: var(--brown);
}

nav a:hover {
  color: var(--pink);
  transition: 0.4s ease-in-out;
}

.hero button {
  font-family: "Josefin Sans", sans-serif;
  font-weight: normal;
}
.hero {
  position: relative;
  min-height: 80vh;
  padding: 0 10%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15)),
    url("../img/hero.jpg") center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero-text {
  position: relative;
  max-width: 42rem;
  z-index: 1;
  padding: 5rem 0 6rem;
}

.hero-text h1 {
  font-size: 5rem;
  line-height: 1.05;
  font-family: "Titan One", sans-serif;
  text-transform: uppercase;
}

.hero-text p {
  margin: 1.5rem 0 2rem;
  font-size: 1rem;
  max-width: 32rem;
}

.hero-text,
.section-text {
  flex: 1;
}

.section-text h2 span {
  color: #ffffff;
  background: var(--pink);
  padding: 0px 25px;
  border-radius: 5px;
  font-family: "Titan One", sans-serif;
  text-transform: uppercase;
}
.section-text h2 {
  font-size: 2.5rem;
  font-family: "Titan One", sans-serif;
  color: var(--brown);
  text-transform: uppercase;
}
.section-text p {
  margin: 20px 0;
  color: var(--brown);
  font-size: 1rem;
}
.section button {
  font-family: "Josefin Sans", sans-serif;
  font-weight: normal;
}

.section-img {
  flex: 1;
  max-width: 500px;
  z-index: 2;
}

.section-img img {
  width: 100%;
  border-radius: 10px;
  /* filter: drop-shadow(2px 4px 6px #000); */
}
.section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 100px 10% 60px;
  gap: 100px;
  position: relative;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}
/* header/about section */

/* Ice cream variant section */

.icecream-variants-section {
  padding: 100px 0;
  text-align: center;
}
.icecream-variants-section h2 {
  font-family: "Titan One", sans-serif;
  color: var(--brown);
  text-transform: uppercase;
}
.icecream-variants-section span {
  font-family: "Titan One", sans-serif;
  color: var(--brown);
  text-transform: uppercase;
}

.icecream-variants {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}
.icecream-card {
  background-color: var(--lgpink);
  padding: 20px;
  border-radius: 12px;
  width: 250px;
  text-align: center;
  position: relative;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
  transition: transform 0.3s ease;
}

/* .active {
  background: var(--pink);
  color: var(--brown);
} */

.icecream-card:hover {
  background: var(--pink);
  transform: translateY(-10px);
  /* box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2); */
}

.icecream-card img {
  width: 100px;
  margin-bottom: 10px;
  background: var(--bg);
  border-radius: 50%;
}

.icecream-card h4 {
  margin: 10px 0 5px;
  color: var(--brown);
}

.icecream-card p {
  color: var(--brown);
  font-size: 1rem;
}
/* Ice cream variant section */

/* Why choose Section */
.why-choose-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 60px 10%;
  background: var(--bg);
}
.why-choose-section h2 {
  font-family: "Titan One", sans-serif;
  text-transform: uppercase;
}
.why-choose-text {
  flex: 1;
  min-width: 280px;
  color: var(--brown);
}

.why-choose-text p {
  margin: 15px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin: 15px 0;
}

.feature-item i {
  color: var(--pink);
  padding: 10px;
  margin-right: 15px;
}
.feature-item div h3 {
  margin: 0;
  color: var(--brown);
  font-family: "Josefin Sans", sans-serif;
  font-weight: bold;
}
.feature-item div p {
  margin: 5px 0 0;
  color: var(--brown);
  font-size: 1rem;
}

.why-choose-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.why-choose-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

.why-choose-section button {
  font-family: "Josefin Sans", sans-serif;
  font-weight: normal;
}

/* our best sellers/featured products */

.featured-products-section {
  text-align: center;
  padding: 60px 10%;
}
.featured-products-section h2 {
  font-family: "Titan One", sans-serif;
  text-transform: uppercase;
}

.featured-products {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.product-card {
  background: var(--lgpink);
  padding: 30px;
  border-radius: 12px;
  width: 340px;
  text-align: center;
  transition: all 0.3s ease-in-out;
}
.product-card .btn {
  background: var(--bg);
  color: var(--brown);
  font-family: "Josefin Sans", sans-serif;
  font-weight: normal;
}
.product-card:hover .btn {
  background: var(--brown);
  color: var(--bg);
}

.product-card:hover {
  transform: translateY(-10px);
  background: var(--pink);
}

.product-card img {
  border-radius: 50%;
  padding: 10px;
}

.product-card h3 {
  margin: 15px 0 5px;
  color: var(--brown);
}
.product-card p {
  margin: 0;
  margin-bottom: 10px;
  color: var(--brown);
}

/* testimonial section */
.testimonialSection {
  text-align: center;
  padding: 50px;
  margin: 50px auto;
}
.testimonialSection h2 {
  font-family: "Titan One", sans-serif;
  text-transform: uppercase;
}

.testimonial-container {
  max-width: 1200px;
  margin: auto;
  position: relative;
  overflow: hidden;
}
.testimonial-wrapper {
  display: flex;
  transition: transform 0.6s ease;
}

.testimonial {
  background: var(--lgpink);
  border-radius: 12px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); */
  padding: 20px;
  margin: 10px;
  flex: 0 0 calc(33.5% - 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-section {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.image {
  flex-shrink: 0;
}

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

.info {
  margin: 15px;
  text-align: left;
  flex-grow: 1;
  position: relative;
  color: var(--brown);
}

.info h4 {
  font-size: 1rem;
  color: var(--brown);
}

.info .position {
  font-size: 1rem;
  margin: 2px 0 8px;
}

.stars {
  color: var(--pink);
  font-size: 1rem;
}

.quote-icon1 {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 6rem;
  color: var(--pink);
  transform: rotate(180deg);
}

.bottom-text {
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  color: var(--brown);
}

.dots {
  text-align: center;
  margin-top: 20px;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--pink);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}
.dot.active {
  background-color: var(--brown);
}

/* location Section */
.location-section {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding-bottom: 100px;
}

.location-section h2 {
  font-family: "Titan One", sans-serif;
  text-transform: uppercase;
}

.location-card {
  background: var(--bg);
  padding: 50px;
  max-width: 600px;
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); */
}

.location-card i {
  color: var(--pink);
  margin-right: 10px;
}
.location-card p {
  font-size: 1rem;
  margin-bottom: 15px;
}
.location-card h3 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--brown);
}
.location-card .btn {
  font-family: "Josefin Sans", sans-serif;
  font-weight: normal;
}

.shop-image img {
  max-width: 600px;
  border-radius: 15px;
}

/* footer section */
footer {
  background: var(--lgpink);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  justify-content: space-between;
  padding: 60px 20px;
  gap: 20px;
}
.footer-col {
  flex: 1 1 200px;
}

.footer-col h4 {
  color: var(--brown);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
  color: var(--brown);
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--brown);
  transition: color 0.3s;
}

.footer-col img {
  margin-bottom: 5px;
  width: 130px;
}
.footer-col div a {
  color: var(--brown);
  margin-right: 10px;
  font-size: 1.2rem;
}

.footer-col i:hover {
  color: var(--pink);
}

/* responsive screen */
@media (min-width: 801px) and (max-width: 1280px) {
  /* .section-text h2 {
    text-align: center;
  }

  .section-text h2 span {
    display: inline-block;
    padding: 0px 25px;
    white-space: nowrap;
  } */
  .section {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 60px;
    padding: 100px 5% 60px;
  }

  .section-img,
  .section-text {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .section-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  .section-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .section-text h2 {
    display: inline-block;
    text-align: left;
    margin: 0 0 1rem 0;
  }

  .section-text h2 span {
    padding: 0 25px;
    white-space: nowrap;
  }

  .why-choose-section {
    flex-wrap: nowrap;
  }

  .why-choose-text,
  .why-choose-image {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .why-choose-image img {
    width: 100%;
    height: auto;
    display: block;
  }

  .location-section {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 60px 4% 80px;
    gap: 30px;
  }

  .location-card,
  .shop-image {
    flex: 1 1 0;
    max-width: 45%;
  }

  .shop-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
  }

  /* .location-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 10%;
    gap: 30px;
  }

  .location-card,
  .shop-image {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
  }

  .shop-image img {
    max-width: 100%;
    height: auto;
  } */
  .quote-icon1 {
    display: none;
  }
}

@media (max-width: 800px) {
  * {
    max-width: 100%;
  }
  header i {
    color: var(--pink);
    margin-right: 15px;
  }
  h2,
  .section-text h2,
  .testimonialSection h2,
  .icecream-variants-section h2,
  .featured-products-section h2,
  .why-choose-section h2,
  .location-section h2 {
    font-size: 2.1rem;
  }
  nav {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background: var(--pink);
    flex-direction: column;
    display: none;
    padding: 20px 0;
  }

  nav a {
    color: var(--brown);
  }

  nav a:hover {
    color: var(--bg);
  }

  nav.active {
    display: flex;
    z-index: 999;
  }

  nav .btn {
    color: var(--brown);
  }

  nav .btn:hover {
    background: var(--pink);
    color: var(--bg);
    transition: none;
  }

  .menu-toggle {
    display: block;
  }
  .hero {
    flex-direction: column;
  }
  .hero-text h1 {
    font-size: 4rem;
  }

  .section {
    flex-direction: column;
  }

  .section-text {
    text-align: center;
  }

  .section-text h2 {
    margin-left: auto;
    margin-right: auto;
  }

  .section-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .section button {
    margin-left: auto;
    margin-right: auto;
  }

  .icecream-variants {
    align-items: center;
  }

  .icecream-variants,
  .why-choose-section,
  .featured-products {
    flex-direction: column;
  }

  .featured-products {
    align-items: center;
  }

  .featured-products-section {
    padding: 40px 5%;
  }

  .product-card {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .testimonial {
    flex: 0 0 100%;
  }
  .testimonial-container {
    overflow: hidden;
  }

  .testimonial-wrapper {
    display: flex;
    transition: transform 0.6s ease;
  }

  .testimonial {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 25px;
    margin: 0 auto;
    border-radius: 20px;
  }

  .quote-icon1 {
    display: none;
  }

  .location-section {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .location-section h2 {
    white-space: nowrap;
  }
  .shop-image img {
    max-width: 100%;
  }
  .footer-content {
    flex-direction: column;
  }
  .footer-col {
    flex: none;
    width: 100%;
  }
}
