/* laptop 1536px */
@media (max-width: 96em) {
  .hero-section {
    padding-top: 4rem;
  }

  .hero-section-container {
    max-width: 130rem;
  }

  .whyus-section-container {
    max-width: 130rem;
    margin: 0 auto;
  }

  .footer-container {
    max-width: 130rem;
  }

  .hero-heading {
    font-size: 6.4rem;
  }

  .story-container {
    gap: 0;
  }

  .storyimg {
    width: 80%;
  }

  .gallery-container {
    max-width: 130rem;
    margin: 0 auto;
  }

  .pies-container {
    max-width: 130rem;
  }
}

/* laptop 1344px */
@media (max-width: 84em) {
  .hero-section-container {
    gap: 0;
  }

  .hero-heading {
    font-size: 4.8rem;
  }

  .hero-para {
    font-size: 1.8rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    font-size: 1.6rem;
    padding: 1.2rem 2.4rem;
  }

  .hero-section-image-box {
    width: 44rem;
    height: 44rem;
  }

  .whyus-section-container {
    max-width: 110rem;
  }

  .box-heading {
    font-size: 2.2rem;
  }

  .box-para {
    font-size: 1.4rem;
    text-align: center;
  }

  .footer-container {
    max-width: 110rem;
  }

  .story-para {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .history-container {
    max-width: 90rem;
  }

  .values-container {
    max-width: 130rem;
  }

  .banner-title,
  .tradition-title {
    font-size: 4.2rem;
  }

  .banner-para,
  .tradition-para {
    font-size: 1.8rem;
  }

  .gallery-container {
    max-width: 120rem;
  }

  .banner-container,
  .tradition-container {
    min-height: 0;
  }

  .info-container {
    max-width: 110rem;
  }

  .location-grid {
    gap: 1.6rem;
  }

  .pies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* below 1200px */
@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }

  .whyus-box {
    justify-content: stretch;
  }

  .footer-container {
    max-width: 100rem;
  }

  .box-para {
    font-size: 1.7rem;
  }

  .pies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* below 944px tablet*/
@media (max-width: 59em) {
  html {
    font-size: 50%;
  }

  .whyus-box {
    padding: 1.6rem;
  }
  .whyus-section-container {
    max-width: 90rem;
  }

  .box-heading {
    font-size: 2rem;
    text-align: center;
  }

  /* Products section */
  .products-section {
    padding: 4rem 2.4rem;
  }

  .products-container {
    max-width: 70rem;
  }

  .products-heading {
    font-size: 3.6rem;
    margin-bottom: 1.6rem;
  }

  .products-para {
    font-size: 1.8rem;
    margin-bottom: 4.8rem;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem;
    margin-top: 5.6rem;
  }

  .products-img-box {
    margin-bottom: 1.6rem;
  }

  .products-img {
    width: 85%;
    height: 22rem;
  }

  .products-textbox-heading {
    font-size: 2rem;
  }

  .last {
    grid-column: 1/3;
  }

  .last .products-img-box {
    max-width: 45%;
    margin: 0 auto 1.6rem auto;
  }

  .last .products-img {
    width: 100%;
  }

  .process-container {
    max-width: 70rem;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 4.6rem;
  }

  .process-img-box {
    margin-bottom: 2rem;
  }

  .process-title {
    font-size: 2.4rem;
  }

  .process-description {
    font-size: 1.6rem;
  }

  .footer-container {
    max-width: 80rem;
  }

  .story-container {
    gap: 3.2rem;
  }

  .story-imgbox {
    align-self: center;
  }

  .storyimg {
    width: 100%;
  }

  .history-container {
    max-width: 80rem;
  }

  .craft-container {
    grid-template-columns: 1fr;
    max-width: 90rem;
  }

  .craft-heading {
    text-align: center;
  }

  .craft-para {
    font-size: 1.8rem;
    text-align: center;
  }

  .craftimg {
    width: 100%;
  }

  .craft-imgbox {
    gap: 2.4rem;
  }

  .values-box {
    flex-direction: column;
  }

  .values-iconbox {
    margin-bottom: 1.6rem;
  }

  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .pies-section {
    padding: 6.4rem 2.4rem;
  }

  .pies-heading {
    font-size: 3.2rem;
  }

  .pies-para {
    font-size: 1.6rem;
    margin-bottom: 4.8rem;
  }

  .pies-grid {
    gap: 2.4rem;
  }

  .pie-card-inner {
    height: 28rem;
  }

  .hero-section-text {
    max-width: 40rem;
  }
}

/* small  tablet 720px mobile nav*/
@media (max-width: 45em) {
  .btn-mobile-nav {
    display: block;
    z-index: 10;
  }

  .main-nav {
    background-color: hsl(33, 100%, 96%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3.2rem;
  }

  .banner-para {
    max-width: 50rem;
    text-align: center;
  }

  .section-story {
    padding-top: 0;
  }

  .story-container {
    grid-template-columns: 1fr;
    max-width: 65rem;
    margin: 0 auto;
    padding: 6rem 2.4rem;
    gap: 4rem;
  }

  .story-textbox {
    order: 1;
  }

  .story-imgbox {
    order: 2;
  }

  .story-heading {
    font-size: 3rem;
    margin-bottom: 2.4rem;
  }

  .story-text {
    gap: 2rem;
  }

  .story-para {
    font-size: 1.6rem;
    line-height: 1.7;
  }

  .para-highlight {
    padding: 2rem 1.6rem;
    border-right: 4px solid #c89b3c;
  }

  .storyimg {
    max-width: 50rem;
    margin: 0 auto;
  }

  .contact-container {
    max-width: 70rem;
  }

  .location-container {
    max-width: 50rem;
  }

  .location-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .visit-box {
    border-left: none;
    border-top: 2px solid #e0e0e0;
    padding-left: 0;
    padding-top: 2.4rem;
  }

  .form-box {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    justify-items: center;
  }

  .footer-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .pies-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-section-text {
    max-width: 35rem;
  }
}

/* mobile phones 544px */
@media (max-width: 34em) {
  .header-container {
    padding: 0 4.2rem;
  }

  .hero-section-container {
    flex-direction: column;
    gap: 5.4rem;
  }

  .hero-section-text {
    text-align: center;
  }

  .hero-section-image-box {
    max-width: 40rem;
    max-height: 40rem;
  }

  .banner-text {
    max-width: 30rem;
    text-align: center;
  }

  .whyus-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .last {
    grid-column: auto;
  }

  .last .products-img-box {
    max-width: 100%;
  }

  .products-grid {
    margin-top: 4rem;
    grid-template-columns: 1fr;
    row-gap: 3.6rem;
    padding: 0 1rem;
  }

  .products-box {
    background-color: #fff;
    border-radius: 1.6rem;
    padding: 2rem 1.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .products-img {
    width: 100%;
    max-width: 32rem;
    height: 24rem;
    border-radius: 1.2rem;
    border: 3px solid #d6b676;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .footer-para {
    padding: 0 1.6rem;
    text-align: center;
  }

  .values-grid,
  .info-container {
    grid-template-columns: 1fr;
  }

  .gallery-container {
    grid-template-columns: 1fr 1fr;
  }

  .form-box {
    padding: 0;
  }

  .footer-links-box {
    border-bottom: 2px solid #c89b3c;
    padding-bottom: 1.2rem;
  }

  .cta-container {
    padding: 2rem;
  }

  .pies-grid {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin: 0 auto;
    margin-top: 4rem;
  }

  .pie-card {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }

  .pie-card:hover {
    transform: none;
  }

  .pie-card:hover .pie-card-inner {
    transform: none;
  }

  .pie-card-inner {
    height: 32rem;
  }

  .pie-card-front {
    z-index: 1;
  }

  .pie-card.flipped .pie-card-front {
    z-index: 0;
  }

  .pie-card-back {
    transform: none;
    z-index: 0;
  }

  .pie-card.flipped .pie-card-back {
    z-index: 1;
  }

  .pie-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pie-overlay {
    display: none;
  }

  .pie-info {
    padding: 1.6rem;
  }

  .pie-name {
    font-size: 2rem;
  }
}
