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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

/* Remove theme width restrictions */
.site,
.site-content,
.site-main,
.container,
.wrap {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Sticky footer layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

/* ================================================== Loader ================================================== */
body.loader-active {
  overflow: hidden;
}

/* ================================================== HEADER ================================================== */
.bx-topbar {
  background: #f7dcbe;
  color: #000;
  font-size: 14px;
  padding: 8px 0;
  text-align: center;
}

.bx-topbar .dot {
  margin: 0 10px;
  opacity: .6;
}

.bx-nav {
  background: #271f17;
  position: sticky;
  top: 0;
  z-index: 999;
  height: 70px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.bx-nav-inner {
  max-width: 1400px;
  height: 80px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bx-nav-left {
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
}

.bx-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.bx-logo img,
.bx-logo .custom-logo {
  width: 250px;
  height: auto;
  display: block;
  transform: translateY(24px);
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.35))
          drop-shadow(0 4px 6px rgba(0,0,0,.25));
}

/* ================================================== HAMBURGER ================================================== */
.bx-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}

.bx-menu-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  display: block;
  border-radius: 3px;
}

/* ================================================== MENU ================================================== */
.bx-menu-list {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bx-menu-list a {
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: .25s ease;
  position: relative;
}

.bx-menu-list a:hover {
  color: #c89b2c;
}

.bx-menu-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #c89b2c;
  transition: .25s;
}

.bx-menu-list a:hover::after {
  width: 100%;
}

/* CTA */
.bx-cta {
  background: linear-gradient(145deg,#d4a537,#b88920);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: .2s ease;
  white-space: nowrap;
}

.bx-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25),
              0 0 12px rgba(200,155,44,.35);
}

@media (max-width: 900px) {
  .bx-nav-inner {
    padding: 0 24px;
  }

  .bx-nav-left {
    gap: 18px;
  }

  .bx-logo img,
  .bx-logo .custom-logo {
    width: 200px;
    transform: translateY(22px);
  }

  .bx-menu-list {
    gap: 18px;
  }
}

/* ================================================== HERO ================================================== */
.bx-hero {
  min-height: 700px;
  background-color: #f4efe7;
  background-image: url('/wp-content/themes/bannock-express/assets/img/hero-flour-bg.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
  overflow: hidden;
  justify-content: center;
}

/* spotlight */
.bx-hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  top: 50%;
  left: 60%;
  transform: translate(-50%,-50%);
  background: radial-gradient(
    rgba(200,155,44,.22),
    rgba(200,155,44,0)
  );
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
}

.bx-hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background-image: url('/wp-content/themes/bannock-express/assets/img/pattern-border.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  z-index: 3;
}

.bx-hero__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  position: relative;
  z-index: 4;
}

.bx-hero__content {
  max-width: 680px;
}

.bx-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 54px;
  line-height: 1.1;
  margin: 0 0 20px;
}

.bx-hero h1 span {
  color: #c9962c;
}

.bx-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #5f4a39;
  margin-bottom: 28px;
}

.bx-hero__buttons {
  display: flex;
  gap: 20px;
}

.bx-btn--primary {
  background: #c89b2c;
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.bx-btn--secondary {
  border: 2px solid #c89b2c;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  color: #c89b2c;
}

/* HERO IMAGE */
.bx-hero__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

.bx-hero__image img {
  width: clamp(280px,32vw,480px);
  height: auto;
  display: block;
  filter: drop-shadow(0 45px 55px rgba(0,0,0,.35));
  animation: heroFloat 7s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 220ms ease;
  margin-top: 60px;
}

/* float animation */
@keyframes heroFloat {
  0%   { transform: translateY(0px) rotateZ(0deg); }
  50%  { transform: translateY(-14px) rotateZ(.4deg); }
  100% { transform: translateY(0px) rotateZ(0deg); }
}

@media (prefers-reduced-motion: reduce){
  .bx-hero__image img{
    animation: none !important;
    transition: none !important;
  }
}

/* ========================= ROLLING PIN SECTION ========================= */
.bx-roll-section {
  position: relative;
  margin: 0 auto;
  padding-bottom: 600px; /* gives scroll space to reveal */
}

.bx-rolling-pin {
  position: sticky;
  top: 120px;

  left: 0;
  right: 0;
  margin: 0 auto;

  width: 260px;
  z-index: 9999;
}

.bx-story-reveal {
  overflow: hidden;
  position: relative;
  height: 0;
}

/* ===================================== FLOUR DUST EFFECT ===================================== */
.bx-flour {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.bx-flour span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,.65);
  border-radius: 50%;
  opacity: 0;
  animation: flourDust 1.6s ease forwards;
}

@keyframes flourDust {
  0% {
    transform: translateY(0) scale(.5);
    opacity: 0;
  }
  20% {
    opacity: .8;
  }
  100% {
    transform: translateY(-60px) scale(1.2);
    opacity: 0;
  }
}

/* ===================================== Bannock STORY SECTION ===================================== */
.bx-story {
  background: #f4efe7;
  
  padding: 100px 0;
  position: relative;
  
  
  will-change: transform;
  
  margin-top: -150px;
  z-index: 1;
}

.bx-story__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 80px;
  transform: translateY(-100%);
  will-change: transform;
}

.bx-story__image img {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,.2);
}

.bx-story__content {
  max-width: 520px;
}

.bx-story h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 18px;
}

.bx-story p {
  font-size: 17px;
  line-height: 1.6;
  color: #5f4a39;
  margin-bottom: 18px;
}

/* ================================================== FEATURED PRODUCT ================================================== */
.bx-featured {
  padding: 100px 20px;
  background: #f7f1e7;
}

.bx-featured__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.bx-featured__image img {
  width: clamp(260px,28vw,420px);
  height: auto;
  filter: drop-shadow(0 40px 50px rgba(0,0,0,.25));
}

.bx-featured__content {
  max-width: 520px;
}

.bx-featured h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 18px;
}

.bx-featured p {
  font-size: 17px;
  line-height: 1.6;
  color: #5f4a39;
  margin-bottom: 26px;
}

.bx-featured__buttons {
  display: flex;
  gap: 16px;
}

/* mobile */
@media (max-width: 900px) {
  .bx-featured__inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .bx-featured__buttons {
    justify-content: center;
  }
}

/* ================================================== PARALLAX SECTION ================================================== */
.bx-parallax {
  position: relative;
  background-image: url('/wp-content/themes/bannock-express/assets/img/parallax-bg.png');
  background-size: cover;
  background-attachment: fixed;
  padding: 120px 20px;
}

.bx-parallax__overlay {
  background: rgba(39,31,23,.85);
  padding: 80px 20px;
}

.bx-parallax__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.bx-parallax h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 18px;
}

.bx-parallax p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f5e7cc;
}

/* mobile fix */
@media (max-width: 768px) {
  .bx-parallax {
    background-attachment: scroll;
  }
}

/* ================================================== WHY OUR BANNOCK ================================================== */
.bx-why {
  padding: 100px 20px;
  background: #fff;
}

.bx-why__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.bx-why h2 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  margin-bottom: 60px;
}

.bx-why__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 40px;
}

.bx-why__item {
  padding: 30px 20px;
}

.bx-why__item i {
  font-size: 34px;
  color: #c89b2c;
  margin-bottom: 16px;
}

.bx-why__item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.bx-why__item p {
  font-size: 15px;
  color: #6a5746;
}

/* mobile */
@media (max-width: 900px) {
  .bx-why__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .bx-why__grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================== TESTIMONIALS ================================================== */
.bx-testimonials {
  padding: 100px 20px;
  background: #f7f1e7;
}

.bx-testimonials__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.bx-testimonials h2 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  margin-bottom: 60px;
}

.bx-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
}

.bx-testimonial {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

.bx-stars {
  color: #c89b2c;
  font-size: 18px;
  margin-bottom: 12px;
}

.bx-testimonial p {
  font-size: 16px;
  line-height: 1.6;
  color: #5f4a39;
  margin-bottom: 14px;
}

.bx-testimonial span {
  font-size: 14px;
  color: #7a6a5c;
}

/* mobile */
@media (max-width: 900px) {
  .bx-testimonials__grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================== MOBILE HEADER + HERO ================================================== */

@media (max-width: 768px) {

  .bx-menu-toggle {
    display: flex;
  }

  .bx-menu {
    display: none;
    width: 100%;
  }

  .bx-menu.active {
    display: block;
  }

  .bx-menu-list {
    flex-direction: column;
    gap: 14px;
    padding-top: 10px;
  }

  .bx-nav-inner {
    height: auto;
    padding: 10px 16px 16px;
    flex-direction: column;
    gap: 12px;
  }

  .bx-logo img,
  .bx-logo .custom-logo {
    width: 180px;
    transform: none;
  }

  .bx-hero {
    min-height: auto;
    padding: 34px 18px 50px;
  }

  .bx-hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
    padding: 0 20px;
  }

  .bx-hero__image {
    order: -1;
  }

  .bx-hero__image img {
    width: min(78vw, 320px);
  }

  .bx-hero h1 {
    font-size: clamp(34px, 10vw, 54px);
    line-height: 1.05;
  }

  .bx-hero p {
    font-size: 16px;
    line-height: 1.5;
  }

  .bx-hero__buttons {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .bx-btn--primary,
  .bx-btn--secondary {
    width: 100%;
    max-width: 260px;
  }
}

/* ================================================== SHOP ================================================== */

.bx-shop-wrap {
  width: 100%;
  margin-left: 0;
  padding: 40px 0 80px;
}

.bx-shop {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
}

.bx-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.bx-product-card {
  padding: 16px;
  background: rgba(255,255,255,.55);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,.1);
  text-align: center;
}

.bx-product-card img {
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ================================================== FOOTER ================================================== */

.bx-footer__top {
  background: #271f17;
  color: #fff;
  padding: 60px 0;
}

.bx-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.bx-footer__brand {
  margin-top: 6px;
}

.bx-footer__brand img,
.bx-footer__brand .custom-logo {
  width: 140px !important;
  max-width: 140px;
  height: auto;
  transform: none !important;
  display: block;
  margin: 0;
}

.bx-footer__brand p {
  margin-top: 14px;
  line-height: 1.5;
  font-size: 14px;
  color: #f5e7cc;
  max-width: 240px;
}

/* Footer menu */
.bx-footer__col {
  display: flex;
  flex-direction: column;
}

.bx-footer__col h4 {
  font-size: 18px;
  margin: 0 0 18px;
  color: #c89b2c;
  font-weight: 700;
}

.bx-footer-menu {
  margin: 0;
  padding: 0;
}

/* Remove footer menu bullets completely */
.bx-footer-menu,
.bx-footer-menu ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.bx-footer-menu li {
  list-style: none !important;
  margin-bottom: 8px;
}

.bx-footer-menu a {
  color: #f5e7cc;
  text-decoration: none;
  font-size: 15px;
  transition: .2s;
}

.bx-footer-menu a:hover {
  color: #c89b2c;
}

.bx-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bx-footer-links li {
  margin-bottom: 8px;
  font-size: 15px;
}

.bx-footer-social {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.bx-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3a1f11;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5e7cc;
  transition: .25s ease;
}

.bx-footer-social a:hover {
  background: #c89b2c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 
    0 4px 10px rgba(0,0,0,.35),
    0 0 10px rgba(200,155,44,.55);
}

.bx-footer__bottom {
  background: linear-gradient(90deg,#5a331d,#3a1f11);
  color: #f5e7cc;
  text-align: center;
  padding: 18px 22px;
  font-size: 13px;
  letter-spacing: .08em;
}

/* Responsive adjustments */

@media (max-width: 900px) {
  .bx-story__inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .bx-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .bx-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bx-footer-social {
    justify-content: center;
  }
}

