@import "color_palette.css";

/*Home Banner 1 */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 0.5rem;
  padding: 2rem;
}

.banner-grid .item {
  position: relative;
  overflow: hidden; 
   opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;

}

.banner-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.banner-grid .item:hover img {
  transform: scale(1.02);
}

.banner-grid .item:nth-child(1) { animation-delay: 0.2s; }
.banner-grid .item:nth-child(2) { animation-delay: 0.4s; }
.banner-grid .item:nth-child(3) { animation-delay: 0.6s; }
.banner-grid .item:nth-child(4) { animation-delay: 0.8s; }
.banner-grid .item:nth-child(5) { animation-delay: 1s; }
.banner-grid .item:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Layout Positioning */
/* Big images */
.img1 {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.img4 {
  grid-column: 3 / span 2;
  grid-row: 2 / span 2;
}

/* Medium images */
.img2 {
  grid-column: 3 /span 1;
  grid-row: 1 /span 1;
}

.img3 {
  grid-column: 1/span 1;
  grid-row: 3/span 1;
}

/* Text blocks */
.text1 {
  grid-column: 4/span 1;
  grid-row: 1/span 1;
}

.text2 {
  grid-column: 2/span 1;
  grid-row: 3/span 1;
}

/* Shared styles */
.img2,
.img3,
.text1,
.text2 {
  grid-row: span 1;
  grid-column: span 1;
}

.text1,
.text2 {
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  font-style: italic;
}

/* Menu section */
.section {
  min-height: 100vh;
  padding: 4em 2em;
}

.menu-wrapper {
  width: 100%;
  gap: 2em;
  padding: 1em;
}

.menu-header {
  text-align: center;
}


/* Grid Layout */
.menu-category {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2em;
  width: 100%;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5em;
  gap: 1em;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.category-card.show {
  opacity: 1;
  transform: translateY(0);
}

.category-title p {
  color: var(--brightAccent);
  font-size: 16px;
  font-family: 'Caprasimo', serif;
}


/* Icons */
.icon-wrapper {
  position: relative;
  padding-bottom: 10px;
}

.icon-img {
  width: 100px;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.hover-line {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background-color: var(--secondaryAccent);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.category-card:hover .icon-img {
  transform: translateY(-10px);
}

.category-card:hover .hover-line {
  transform: translateX(-50%) scaleX(1);
}

/* Button */
.secondary-btn {
  width: 10em;
  padding: 10px 20px;
  border-radius: 3px;
  border: 1px solid var(--secondary);
  font-size: 20px;
  background: var(--whiteContrast);
  color: var(--secondary);
  transition: background 0.3s, color 0.3s;
  margin-top: 2em;
}

.secondary-btn:hover {
  background-color: var(--secondary);
  color: var(--white);
  cursor: pointer;
}


/* Base Section Layout */
.section {
  padding: 4em 2em;
  width: 100%;
}

/* About Section */
.about-wrapper {
  display: flex;
  gap: 4em;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 460px;
  height: 570px;
  border: 5px solid var(--headerBackground);
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-content {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  align-items: center;
  text-align: center;
}


.about-text p {
  font-size: 17px;
  color: var(--secondaryAccent);
  line-height: 1.6;
}

.about-text span {
  font-weight: 600;
}

.about-icon {
  width: 30px;
  height: auto;
}

.sub-text {
  padding-top: 1em;
  font-style: italic;
  color: var(--brightAccent);
}



/* Service Section */
.service-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3em;
  padding: 2em;
  margin-bottom: 2em;
}
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5em;
  padding: 1em 0;
    animation: fadeSlideUp 1s ease forwards;
  opacity: 0; /* in case JS doesn't load */
}

.services-card {
  background-color: var(--whiteContrast);
  border: 2px var(--brightAccent) solid;
  padding: 1.5em;
  border-radius: 3px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: justify;
  gap: 1em;
  height: 100%;
  
}

.services-card .description-p {
  font-size: 16px;
}

.services-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px var(--primeryAlpha);
  border-color: var(--secondaryAccent);
}

.services-card img {
  width: 58px;
  height: auto;
  margin-bottom: 1em;
  transition: transform 0.3s ease;
}

.services-card:hover img {
  transform: scale(1.15) rotate(-2deg);
}

/* Gallery Section */
.gallery-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  gap: 2em;
  padding: 3em 2em;
}

.gallery-image img {
  width: 100%;
  height: 500px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--secondaryAccent);
  padding: 1em;
}

.gallery-info {
  gap: 1em;
  max-width: 500px;
}


.gallery-info p {
  text-align: center;
}

.gallery-info .secondary-btn {
  width: fit-content;
  padding: 10px 25px;
}



/* Testimonials Section */
.testimonial-section {
  position: relative;
  background-color: var(--sectionBackground);
  padding: 0;
  overflow: hidden;
}

.testimonial-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  padding: 3em 2em;
  text-align: center;
}

.quote-icon {
  width: 32px;
  height: auto;
  opacity: 0.6;
}

.testimonial-carousel-container {
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  position: relative;
}

.testimonial-carousel {
  display: flex;
  gap: 2em;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1.5em 0;
  scrollbar-width: none;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 80%;
  max-width: 500px;
  background: white;
  padding: 2.5em 2em;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(169, 113, 66, 0.15);
  transition: transform 0.3s ease;
  user-select: none;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--secondary);
  font-style: italic;
  margin-bottom: 1em;
}

.testimonial-author {
  color: var(--secondaryAccent);
  font-size: 1rem;
  font-style: italic;
}

.wave-top,
.wave-bottom {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-top {
  margin-bottom: -5px;
}

.wave-bottom {
  margin-top: -5px;
}

/* Contact Section */
.contact-section {
  padding: 4em 2em;
}

.contact-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3em;
  align-items: flex-start;
}

.contact-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.opening-time-wrapper {
  position: relative;
  width: 220px;
  height: auto;
  aspect-ratio: 2.2 / 1;
  /* maintains ratio while scaling */
  max-width: 100%;
}

.background-brush {
  position: absolute;
  inset: 0;
  /* shorthand for top: 0; right: 0; bottom: 0; left: 0; */
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.opening-time {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  font-size: clamp(14px, 2vw, 18px);
  /* responsive font size */
  width: 100%;
  padding: 0 10px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1.5em;
}

.contact-box {
  background: white;
  border-radius: 10px;
  padding: 2em 1.5em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1em;
  text-align: center;
}

.contact-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  align-items: center;
}

.contact-label {
  font-size: 1.2rem;
  color: var(--secondaryAccent);
}

.contact-box li,
.contact-box a {
  font-size: 15px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
}

#whatsapp {
  cursor: pointer;
}

.contact-icon {
  width: 18px;
  height: auto;
  transition: transform 0.3s ease;
}


.delivery-icons {
  gap: 1em;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.delivery-icons img {
  width: 60px;
  transition: transform 0.2s ease;
}

.delivery-icons img:hover {
  transform: scale(1.1);
}

.icon-img {
  width: 80px;
}

/* Responsive */
@media (max-width: 1024px) {
  .h2-style {
    font-size: 2.3em;
  }

  .about-wrapper {
    gap: 3em;
  }

  .about-image img {
    width: 430px;
    height: 560px;
    border-width: 4px;
  }

  .about-content {
    max-width: 450px;
    gap: 1.4em;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 3em 0.5em;
  }

  /* Home Banner */
  .text1,
  .text2 {
    font-size: 1.6rem;
    padding: 0.5rem;
  }

  /* Menu Section */
  .welcome {
    font-size: 2em;
    font-weight: 400;
  }

  .cafe-name {
    font-size: 3.5em;
    font-weight: 400;
  }

  .slogan {
    font-size: 17px;
  }

  /* Icons in menu Section */
  .icon-img {
    width: 90px;
  }

  .description-p {
    font-size: 16px;
  }

  .secondary-btn {
    padding: 8px 18px;
    border-width: 1px;
    font-size: 18px;
    margin-top: 2em;
  }

  /* About Section */
  .about-wrapper {
    flex-direction: column;
  }

  .about-image img {
    width: 100%;
    height: auto;
  }

  .about-content {
    max-width: 450px;
  }

  .about-text p {
    font-size: 16px;
  }

  /* Gallery Section */
  .gallery-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 2em;
    padding: 1em;
  }

  .gallery-info,
  .gallery-image {
    max-width: 100%;
    width: 100%;
  }

  .gallery-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 768px) {

  /* Home Banner */
  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 0.2rem;
    padding: 1rem;
  }

  .banner-grid .item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .banner-grid .img1 {
    order: 0;
  }

  .banner-grid .text1 {
    order: 1;
  }

  .banner-grid .text2 {
    order: 2;
  }

  .banner-grid .img2 {
    order: 3;
  }

  .banner-grid .img3 {
    order: 4;
  }

  .banner-grid .img4 {
    order: 5;
  }

  .text1,
  .text2 {
    font-size: 1.2rem;
    padding: 0.5rem;
  }

  /* Menu Section */
  .welcome {
    font-size: 2em;
    font-weight: 400;
  }

  .cafe-name {
    font-size: 3em;
    font-weight: 400;
  }

  .slogan {
    font-size: 16px;
  }

  /* Gallery Section */
  .section {
    padding: 4em 1em;
    width: 100%;
  }

  .gallery-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
  }

  /* Icons in menu Section */
  .icon-img {
    width: 80px;
  }

  .secondary-btn {
    font-size: 17px;
    margin-top: 1.5em;
  }


  .contact-grid-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-header-left,
  .contact-info-grid {
    text-align: center;
  }

  .opening-time-wrapper {
    margin: 0 auto;
  }

  .contact-grid-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-header-left {
    text-align: center;
    padding: 0;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  /* testimonial section */
  .testimonial-wrapper {
    gap: 1em;

  }

  .testimonial-carousel {
    gap: 1em;
    padding: 1.3em 0;

  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  /* Customers Section*/
  .testimonial-carousel-container {
    width: 300px;
  }

  .testimonial-text {
    font-size: 16px;
    margin-bottom: 1em;
  }

  .testimonial-author {
    font-size: 14px;
  }

  /* About Page */
  .about-wrapper {
    gap: 2em;
    padding: 0 1.5rem;
  }

  .about-content {
    text-align: center;
    align-items: center;
  }

  .about-image img {
    width: 100%;

    height: auto;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.5;
  }
  /* Constact Section */
  .delivery-icons img {
  width: 45px;
}
}