/*
Theme Name: QFC
Description: Custom theme navbar styles
*/

/* Apply box-sizing globally to avoid layout issues */

/* Aktiv Grotesk Font Faces */
@font-face {
  font-family: "Aktiv Grotesk";
  src: url("assets/fonts/aktiv-grotesk/TTF/AktivGrotesk-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aktiv Grotesk";
  src: url("assets/fonts/aktiv-grotesk/TTF/AktivGrotesk-Medium.ttf")
    format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aktiv Grotesk";
  src: url("assets/fonts/aktiv-grotesk/TTF/AktivGrotesk-Bold.ttf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Hide elements initially so they're not visible before scroll animation */
.bottom-top-motion,
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

a {
  color: inherit; /* Use the parent text color */
  text-decoration: none; /* Optional: removes underline */
}

a:visited {
  color: inherit;
}

a:hover,
a:active {
  color: inherit;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.homepage {
  overflow: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Aktiv Grotesk", sans-serif;
  background: #231f1f;
  color: #333;
  overflow-x: hidden;
}

/* Headings = Poppins */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  text-wrap: unset !important;
}

/* Header */
.site-header {
  background-color: #ffffff;
  transition: padding 140ms ease-in-out;
  position: sticky; /* make it stick */
  top: 0;
  z-index: 999; /* ensure it stays above content */
  width: 100%;
  box-sizing: border-box;
  padding: 0.7vw 10vw 0.7vw 10vw;
  pointer-events: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  width: auto;
  max-width: 100%;
  max-height: 85px;
  padding-top: 5px;
}

/* Nav Menu */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 50px;
}

.site-nav a {
  text-decoration: none;
  color: #222;
  font-size: 17px;
  letter-spacing: -0.05em;
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  will-change: transform, opacity; /* Optimizes for animations */
  position: relative; /* Ensures proper flow */
}

.menu .menu-item {
  opacity: 0;
  transform: translateY(10px);
}

.site-nav .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  transform: translateX(-50%);
}

/* Responsive / Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 36px;
  background: #231f1f;
  transition: all 0.3s ease;
}

/* Close icon */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.color-orange {
  color: #ff7a1b;
}

.homepage section {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.homepage #section1,
.homepage #section2 {
  height: 100%;
}

.homepage .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: -1;
  will-change: transform;
  transform: scale(1.2);
  filter: brightness(80%);
}

.homepage .content {
  padding: 1rem 1rem;
  color: white;
  z-index: 2;
  width: 100%;
}
.homepage .hero-logo {
  width: 110px;
  margin-top: 9rem;
}
.homepage .hero-title,
.homepage .hero_sub_title1,
.homepage .hero_sub_title2,
.homepage .hero_sub_title3,
.homepage .hero_sub_title5 {
  max-width: 800px;
  margin: auto;
}
.homepage .hero_sub_title4 {
  max-width: 100%;
  margin: auto;
}

.homepage .hero-title h3 {
  line-height: 52px;
  font-size: 47.72px;
  font-weight: 700;
  padding: 15px 100px;
  letter-spacing: -0.05em;
}
.homepage .hero_sub_title1 h3 {
  line-height: 36px;
  font-size: 32.36px;
  font-weight: 700;
  padding: 20px 80px;
}
.homepage .hero_sub_title2 {
  line-height: 28px;
  font-size: 23.98px;
  font-weight: 700;
  padding: 40px 120px 0 120px;
}
.homepage .hero_sub_title3 h3 {
  line-height: 26px;
  font-size: 44.92px;
  font-weight: 700;
  padding: 25px 0;
  letter-spacing: -0.05rem;
}
.homepage .hero_sub_title4 h3 {
  line-height: 26px;
  font-size: 32.36px;
  font-weight: 700;
  padding: 25px 0 0 0;
  letter-spacing: -0.1rem;
}
.homepage .hero_sub_title5 {
  line-height: 26px;
  font-size: 23.176px;
  font-weight: 500;
  letter-spacing: -0.05rem;
}

.homepage .hero-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 80px;
}
.homepage .hero-button {
  display: inline-block;
  background-color: #ff7300;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 8.5rem;
  border-radius: 50px;
  font-size: 21px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.content-gap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
}
.content-gap img {
  width: 90px;
  height: 94px;
}

/* Why Love It Section */
.homepage .why-love-it-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  color: #fff;
}
.homepage .why-love-it-section .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.homepage .text-column {
  flex: 1 1 50%;
  padding: 20px 20px 20px 90px;
  text-align: left;
}
.homepage .text-column h2 {
  font-size: 86px;
  font-weight: 700;
  line-height: 82px;
  margin-bottom: 10px;
  letter-spacing: -0.05em;
  width: 50%;
}
.homepage .text-column p {
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 40px;
  word-wrap: break-word;
  width: 47%;
  padding-top: 0;
}
.homepage .text-column .tagline {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.05rem;
}
.homepage .image-column {
  flex: 1 1 45%;
  text-align: center;
}
.homepage .image-column img {
  max-width: 100%;
  height: auto;
}

/**********************************************************************************/

/* Product Features Section */
.homepage .product-features {
  background-color: #231f1f;
  color: #ffffff;
  padding: 80px 8%;
  display: flex;
  flex-direction: column;
}

/* Header row with title and orange line */
.homepage .feature-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.homepage .feature-title {
  font-size: 47.72px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  color: #ffffff;
}

/* Correct horizontal orange bar */
.divider {
  height: 1.5px;
  background-color: #ff5c00;
  width: 1000px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Feature grid */
.homepage .features {
  display: flex;
  justify-content: center;
  gap: 70px 100px;
  padding: 60px 60px;
}

.homepage .feature-item img {
  width: 65px;
  /* height: 55px; */
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}

.homepage .feature-item p {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: pre-line;
  color: #ffffff;
}

/* ================================
   Food Storage Range Section
================================ */
.homepage .food-storage-range {
  text-align: center;
  padding: 80px 20px 40px 20px;
  background-color: #fff;
}

.homepage .food-range-header {
  font-size: 48px;
  font-weight: 700;
  line-height: 52px;
  letter-spacing: -0.12rem;
  margin-bottom: 40px;
  color: #000;
  padding: 10px 240px;
}

.homepage .food-range-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 20px;
  justify-items: center;
  margin-bottom: 40px;
}

.homepage .food-item img {
  width: 488px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.homepage .food-range-footer {
  font-size: 0.9rem;
  color: #555;
}

.homepage .food-range-details {
  color: #231f1f;
  font-size: 32.36px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: -0.08rem;
  margin-bottom: 8px;
}
.homepage .food-range-bottom {
  padding-top: 30px;
  font-size: 17px;
  color: #231f1f;
  line-height: 1.2rem;
}

/*********************************MasterChef******************************************/
.homepage .masterchef-wrapper {
  background-color: #231f1f;
  display: flex;
  flex-direction: column;
  color: #fffefe;
  align-items: center;
  padding-top: 80px;
}
.homepage .masterchef .title {
  width: 360px;
  text-align: center;
}
.homepage .masterchef .title h2 {
  font-size: 47.72px;
  font-weight: 700;
  line-height: 52px;
  letter-spacing: -0.11rem;
}
.homepage .masterchef .content_text {
  padding-top: 20px;
  width: 910px;
  font-size: 24.68px;
  font-weight: 500;
  line-height: 30px;
  text-align: center;
}
.homepage .masterchef .chef_picture {
  padding-top: 40px;
  width: 498.82px;
}
.homepage .masterchef .chef_picture img {
  width: 100%;
  height: 552px;
  object-fit: contain;
  object-position: 50% 50%;
}
.homepage .masterchef .chef_name h2 {
  padding-top: 36px;
  font-size: 86.12px;
  font-weight: 700;
  letter-spacing: -0.3rem;
}
.homepage .masterchef .quote {
  padding-top: 20px;
  width: 510px;
  font-size: 24.68px;
  font-weight: 500;
  line-height: 30px;
  text-align: center;
}
.homepage .masterchef .following_text {
  padding-top: 20px;
  line-height: 28px;
  font-size: 24.68px;
  font-weight: 700;
}
.homepage .masterchef .social_media {
  padding-top: 40px;
}
.homepage .masterchef .social_media img {
  width: 100%;
  height: 46px;
  object-fit: contain;
  object-position: 50% 50%;
}
.homepage .masterchef .bold_text {
  padding-top: 40px;
  width: 720px;
  text-align: center;
}
.homepage .masterchef .bold_text h2 {
  font-size: 47.72px;
  font-weight: 700;
  line-height: 52px;
  letter-spacing: -0.11rem;
}
.homepage .masterchef .slide_text {
  padding-top: 20px;
  line-height: 28px;
  font-size: 24.68px;
  font-weight: 700;
}
.homepage .slider {
  position: relative;
  top: 30px;
  width: 80%;
  max-width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.homepage .slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.homepage .after {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0% 100%);
}
.homepage .slider-divider {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background: #fff;
  cursor: ew-resize;
  z-index: 10;
}
.homepage .handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #d5cdcd;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

/* ================================
   Mobile Menu Overlay (Custom)
================================ */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-color: #63aa97;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  display: flex;
  opacity: 1;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px 0 10px;
}

.close-menu {
  background: none;
  border: none;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 9999;
  position: relative;
  padding: 3px;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 300px 0 0 32px;
}

.mobile-menu-links li {
  margin: 8px 0;
}

.mobile-menu-links a {
  color: #fff;
  font-weight: 700;
  font-size: 33.15px;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 16px;
}

.mobile-menu-links a:hover {
  text-decoration: underline;
}

/*******************************Responsive START*************************************/

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    gap: 9px;
  }
  .site-header {
    padding: 5vw 6vw 5vw 6vw;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: #63aa97; /* same green as your screenshot */
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
  }

  .site-nav ul.open {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul li {
    margin: 20px 0;
  }

  .site-nav ul li a {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
  }
  .homepage .hero-title h3 {
    line-height: 32px;
    font-size: 28px;
    padding: 24px 60px;
  }
  .homepage .hero_sub_title1 h3 {
    line-height: 24px;
    font-size: 20px;
    font-weight: 700;
    padding: 10px 10px;
    letter-spacing: -0.05em;
  }
  .homepage .hero_sub_title2 {
    line-height: 24px;
    font-size: 18px;
    font-weight: 700;
    padding: 30px 60px;
    letter-spacing: -0.05em;
  }
  .homepage .hero_sub_title3 h3 {
    line-height: 24px;
    font-size: 28px;
    font-weight: 700;
    padding: 36px 48px;
    letter-spacing: -0.05em;
  }
  .homepage .hero_sub_title4 h3 {
    line-height: 26px;
    font-size: 20px;
    font-weight: 700;
    padding: 32px 32px;
    letter-spacing: -0.1rem;
  }

  .homepage .hero_sub_title5 {
    line-height: 26px;
    font-size: 18px;
    font-weight: 500;
    padding: 32px 12px;
  }

  .homepage .hero-logo {
    width: 65px;
    margin-top: 1rem;
  }
  .homepage .why-love-it-section .container {
    flex-direction: column;
    text-align: center;
  }
  .text-column,
  .image-column {
    flex: 1 1 100%;
    text-align: center;
    padding: 20px;
  }
  .homepage #section1 {
    height: 100%;
  }
  .homepage #section2 {
    height: 100%;
  }
  .homepage .content {
    padding: 2rem 1rem 0 1rem;
  }
  .homepage .hero-button {
    padding: 0.9rem 5.5rem;
    font-size: 18.7px;
  }

  .homepage .text-column {
    flex: 1 1 50%;
    padding: 20px 20px 20px 10px;
    text-align: left;
  }
  .homepage .text-column h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    margin-bottom: 10px;
    letter-spacing: -0.05em;
    width: 100%;
  }
  .homepage .text-column p {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 40px;
    word-wrap: break-word;
    width: 52%;
    padding-top: 25px;
  }
  .homepage .text-column .tagline {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.05rem;
  }

  .homepage .feature-title {
    font-size: 28px;
  }
  .divider {
    width: 100%;
  }
  .homepage .product-features {
    padding: 40px 8% 20% 8%;
  }
  .homepage .features {
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px 50px;
    padding: 40px 0;
  }
  .homepage .feature-item p {
    font-size: 16px;
  }
  .homepage .food-range-header {
    font-size: 28px;
    padding: 10px 24px;
    line-height: 32px;
    margin-bottom: 10px;
  }
  .homepage .food-item {
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px 50px;
    padding: 16px 0;
    display: flex;
  }
  .homepage .food-item img {
    width: 165px;
  }
  .food-range-grid {
    gap: 0;
  }
  .homepage .food-storage-range {
    padding: 50px 20px 40px 20px;
  }
  .homepage .food-range-details {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.08rem;
    margin-bottom: 8px;
  }
  .homepage .masterchef .title h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.05rem;
  }
  .homepage .masterchef-wrapper {
    padding-top: 32px;
  }
  .homepage .masterchef .content_text {
    width: 100%;
    font-size: 18px;
    line-height: 20px;
    padding: 16px 24px;
  }
  .homepage .masterchef .chef_picture img {
    height: 400px;
  }
  .homepage .masterchef .chef_name h2 {
    padding-top: 5px;
    font-size: 28px;
    letter-spacing: -0.1rem;
  }
  .homepage .masterchef .quote {
    padding-top: 20px;
    width: 86%;
    font-size: 18px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: -0.05em;
  }
  .homepage .masterchef .following_text {
    padding-top: 12px;
    font-size: 18px;
  }
  .homepage .masterchef .social_media {
    padding-top: 12px;
  }
  .homepage .masterchef .social_media img {
    width: 100%;
    height: 60px;
  }
  .homepage .masterchef .bold_text {
    padding-top: 28px;
    width: 100%;
  }
  .homepage .masterchef .bold_text h2 {
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.05rem;
    padding: 0 40px;
  }
  .homepage .masterchef .slide_text {
    padding-top: 20px;
    line-height: 28px;
    font-size: 18px;
  }
  .homepage .slider {
    width: 100%;
    aspect-ratio: 3 / 4;
  }
  .homepage .slider img {
    transform: scale(1.5);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .homepage .hero-logo {
    width: 110px;
    margin-top: 5rem;
  }

  .homepage .content {
    padding: 1rem 1rem;
  }

  .homepage .hero-title,
  .homepage .hero_sub_title1,
  .homepage .hero_sub_title2,
  .homepage .hero_sub_title3,
  .homepage .hero_sub_title5 {
    max-width: 400px;
  }
  .homepage .hero-title h3 {
    padding: 6px 30px;
    font-size: 34px;
    line-height: 36px;
  }
  .homepage .hero_sub_title1 h3 {
    font-size: 25.216px;
    line-height: 30px;
    padding: 10px 36px;
  }
  .homepage .hero_sub_title2 {
    line-height: 24px;
    font-size: 20.6px;
    padding: 24px 12px;
  }
  .homepage .hero_sub_title3 h3 {
    line-height: 28px;
    font-size: 34.4px;
  }
  .content-gap {
    height: 5px;
  }
  .content-gap img {
    width: 60px;
    height: 60px;
  }
}
@media (min-width: 280px) and (max-width: 374px) {
  .mobile-menu-links {
    padding: 160px 0 0 32px;
  }
}

/*******************************Responsive END*************************************/
