/*
===================================================================
  General Styles
=================================================================== 
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  text-align: center;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
}

main {
  min-height: 700px;
  padding-left: 8px;
  padding-right: 8px;
}

/* ===================================================================
  Header
=================================================================== */

header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 25px;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: start;
}

.logo-link {
  justify-self: center;
}

.logo-link img {
  max-height: 120px;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.nav-links a {
  color: #1f2a44;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  padding: 15px 0;
  width: 100%;
  text-align: center;
  transition: color 0.3s;
}

.nav-links a:hover {
    color: #4b1649;
}

.phone-icon {
    color: #1f2a44;
    font-size: 24px;
    padding-top: 5px;
}

/* ===================================================================
  Hamburger Menu & Dropdown
=================================================================== */

.mobile-menu-icon {
  display: flex; /* Always show hamburger */
  cursor: pointer;
  width: 24px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1100; /* Ensure it's on top */
  position: relative;
}

.mobile-menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #1f2a44;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.mobile-menu-icon.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-icon.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%; /* Position below header */
  left: 0;
  right: 0;
  background-color: #ffffff;
  z-index: 1000;
  padding: 20px 0;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.nav-links.active {
  display: flex; /* Show when active */
}

/* ===================================================================
  Top Section (Homepage)
=================================================================== */

.top_section {
  display: flex;
  flex-direction: row;
  background-color: #4b1649;
  padding-top: 10px;
}

.section_left {
  text-align: center;
  padding: 20px;
  width: 33%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section_left h2 {
  font-size: 36px;
  color: white;
  margin-bottom: 10px;
}

.section_left p {
  font-size: 18px;
  color: white;
}

.section_right {
  width: 67%;
  padding: 10px;
}

/* ===================================================================
  Swiper (in Top Section)
=================================================================== */

.autoSwiper {
  width: 100%;
  max-width: 825px;
  aspect-ratio: 3 / 2;
  margin: auto;
  border-radius: 0;
  overflow: hidden;
}

.autoSwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.autoSwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
  display: none;
}

/*===================================================================
  About Wrap (Homepage)
===================================================================
*/

.about-wrap {
  background: #e9ddaf;
  padding: 30px 40px 60px;
  font-family: Arial, sans-serif;
  margin-top: -5px;

  display: flex;
  align-items: center;
  gap: 20px;

  position: relative;
}

/* If any pseudo-elements exist, make sure they don't block clicks */
.about-wrap::before,
.about-wrap::after {
  pointer-events: none;
}

/* LEFT COLUMN */
.left-column {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;

  padding-left: 0;
  padding-right: 20px;              /* space around stack */
  box-sizing: border-box;

  position: relative;
  z-index: 2;                 /* keep stack above other layers */
}

/* RIGHT COLUMN */
.right-column {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
  z-index: 1;
}

/* TEXT */
.text {
  max-width: 100%;
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  text-align: center;
}

/* =========================
   PHOTO STACK
========================= */

/* photo stack box */
.photo-stack {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 4 / 3;
  margin: 0 auto;

  cursor: pointer;
  z-index: 5;                 /* important for click */
}

/* ensure clicks always reach the stack + images */
.photo-stack,
.photo-stack * {
  pointer-events: auto;
}

/* all images */
.photo-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  background: #fff;
  border: 10px solid #fff;
  border-radius: 14px;

  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  transform-origin: center;

  cursor: pointer;
  transition: transform .35s ease;

  user-select: none;
}

/* Desktop offsets (back -> front) */
.photo-stack img:nth-child(1) { transform: translate(26px,26px) rotate(6deg); }
.photo-stack img:nth-child(2) { transform: translate(16px,16px) rotate(3deg); }
.photo-stack img:nth-child(3) { transform: translate(8px,8px) rotate(-2deg); }
.photo-stack img:nth-child(4) { transform: translate(0,0) rotate(1deg); }

/* Optional: tiny hover polish on desktop */
.photo-stack:hover img:nth-child(4) {
  transform: translate(0,0) rotate(0deg) scale(1.01);
}

/* =========================
   RESPONSIVE FIXES
========================= */

/* Tablet + Mobile: stack the columns */
@media (max-width: 900px) {
  .about-wrap {
    flex-direction: column;
    padding: 20px 16px;
  }

  .left-column,
  .right-column {
    width: 100%;
  }

  .left-column {
    padding: 12px;
  }
}

/* Small Mobile: reduce offsets so it doesn't drift right */
@media (max-width: 600px) {
  .photo-stack {
    width: min(360px, 100%);
  }

  .photo-stack img:nth-child(1) { transform: translate(14px,14px) rotate(5deg); }
  .photo-stack img:nth-child(2) { transform: translate(9px,9px) rotate(2deg); }
  .photo-stack img:nth-child(3) { transform: translate(4px,4px) rotate(-2deg); }
  .photo-stack img:nth-child(4) { transform: translate(0,0) rotate(1deg); }
}

/* ===================================================================
  Menu Sections (Homepage & Menu Page)
=================================================================== */

.menu_one {
  background-color: #4b1649;
  color: white;
  text-align: center;
  padding: 30px;
}

.menu_two .cards-grid {
  grid-template-columns: repeat(3, 1fr);
}


/* --- Menu Title (Homepage) --- */

.menu-title {
  background: #e9ddaf;
  padding-top: 40px;
  text-align: center;
}

.menu-title img {
  width: 50%;
}

/*===================================================================
  Sections three (Menu-Grid & Menu Page)
=================================================================== */

/* --- Menu Grid (Homepage) --- */

.section_three {
  margin: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  background-image: url('images/carve_yellow_bottom.svg'), url('images/carve_yellow_top.svg');
  background-repeat: no-repeat, no-repeat;
  background-position: top, bottom;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: none;
  margin-top: 0px;
  margin-bottom: 0;
  padding: 10px;
}

.menu-grid .menu-card {
  position: relative;
  background: #ffffff;
  border: 5px solid #e0e3e4;
  padding: 25px;
  min-height: 200px;
  border-radius: 20px;
  overflow: hidden;
}

.menu-grid .menu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/QFC-logo-two.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 160px;
  opacity: 0.07;
  z-index: 0;
}

.menu-grid .menu-card > * {
  position: relative;
  z-index: 1;
}

.menu-grid .menu-card h3 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: #1f6b7a;
  text-align: left;
}

.menu-grid .menu-card ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  text-align: left;
}

.menu-grid .menu-card li {
  padding: 5px 0;
  font-size: 18px;
}

/* ===================================================================
  'View Full Menu' Link (Homepage)
=================================================================== */

#section_four {
  background-color: #e9ddaf;
  padding: 20px 40px;
  text-align: center;
}

#section_four p {
  font-size: 18px;
  color: #000;
  line-height: 1.6;
}

#section_four a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #4b1649;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}

#section_four a:hover {
  background-color: #3a1138;
}

/* ===================================================================
  Backgrounds & Dividers
=================================================================== */

.bg_one {
  background-image: url('images/purple_yellow.svg');
  height: 90px;
  margin: 0;
}

.bg_two {
  background-image: url('images/yellow_yellow.svg');
  height: 90px;
  margin: 0;
}

.bg_three {
  background-image: url('images/purple_bottom.svg');
  height: 65px;
  margin: 0;
}

.bg_four {
  background-image: url('images/yellow_bottom.svg');
  height: 65px;
  margin: 0;
}

.bg_five {
  background-image: url('images/angle_yellow.svg');
  height: 146px;
  margin: 0;
}

.col_top {
  background-image: url('images/purple_top.svg');
  height: 65px;
  margin: 0;
}

/* ===================================================================
  Footer
=================================================================== */

footer {
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.section_seven {
  background-color: #4b1649;
  color: white;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: center;
}

.section_seven iframe {
  width: 100%;
}

.col_bottom {
  background-color: #4b1649;
  max-height: 80px;
  margin: 0;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright {
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: white;
  margin: 0;
}

/* ===================================================================
  Responsive Styles
=================================================================== */

@media (max-width: 1024px) {

  .logo-link img {
    max-height: 32px;
  }
  
  .section_left .left-logo {
    max-width: 240px; 
  }

  .top_section {
    flex-direction: column;
  }

  .section_left,
  .section_right {
    width: 100%;
  }

  .section_seven,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .about-wrap {
    padding: 20px 20px;
    flex-direction: column;
  }

  .left-column,
  .right-column {
    width: 100%;
  }

  .text {
    max-width: 100%;
  }

  .menu-grid .menu-card {
    text-align: center;
  }

  .menu-text {
    font-size: 24px;
  }

}

@media (max-width: 768px) {
  .section_left h2 {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
  }
  
  .autoSwiper {
    max-width: 95%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .menu_two .cards-grid {
    grid-template-columns: 1fr;
  }

  .menu-title img {
    width: 70%;
  }
}

/* ===================================================================
  About Us Page
=================================================================== */

.about_us_one {
  background-color: #4b1649;
  color: white;
  text-align: center;
  padding: 30px;
}

.about_us_one p {
  font-size: 18px;
}

.about_us_two {
  background-color: #e9ddaf;
  min-height: 400px;
  padding: 20px;
}

.about-us-video {
  width: 100%;
  height: auto;
  border: 5px solid #e0e3e4;
}

.mini_logo-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border: 1px solid #e9ddaf;

}

/*===================================================================
  Our Menu Page
===================================================================*/

.menu_one{
  background-color: #4b1649;
}
.menu_two {
  margin: 0;
  background-image: url('images/carve_yellow_bottom.svg'), url('images/carve_yellow_top.svg');
  background-repeat: no-repeat, no-repeat;
  background-position: top, bottom;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 12px;
}

.cards-grid .menu-card {
  background: #ffffff;
  border: 1px solid #e0e3e4;
  border-radius: 14px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.menu-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.cards-grid .card-title {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 600;
}

.cards-grid .menu-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}