@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@400;500;600&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #faf9f5;
  color: #333;
  margin: 0;
  padding: 0;
}

h1, h2, h3, .hero-logo {
  font-family: 'Great Vibes', cursive;
  padding: 20px;
  color: #5d4b3c;
}

p {
  padding: 20px
}

.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: #fffdf9;
  border: 1px solid #e0d6c3;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cta > div {
  width: 100%;
  max-width: 1080px; /* same as navbar container width */
  text-align: left;
}

.cta  li {
  list-style: none;
}

header {
  background-color: #f5eee6;
  padding: 15px 25px;
  border-bottom: 2px solid #e0d6c3;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #5d4b3c;
  font-weight: 600;
  width: 180px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: 12px;
  transition: background-color 0.3s;
  font-family: 'Great Vibes', cursive;
  font-size: 1.2rem;
  background-image: url('board.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}

nav a:hover {
  background-color: #e0d6c3;
}

#hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1280px) {
  nav {
    display: none;
    flex-direction: column;
    background-color: #f5eee6;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 999;
  }

  nav.open {
    display: flex;
  }

  nav a {
    width: 140px;
    height: 50px;
    line-height: 50px;
    font-size: 1.2rem;
    margin: 6px 0;
  }

  #hamburger {
    display: block;
    order: -1; /* move to first position in flex container */
    margin-right: auto; /* push to the far left */
  }
}

.hero-split {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.hero-text {
  text-align: center;
  max-width: 600px;
}

.hero-logo {
  font-size: 3rem;
  margin: 0.5rem 0;
}

.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.5;
  margin: 1.5rem 0;
}

.hero-button {
  display: inline-block;
  padding: 14px 28px;
  border: 2px dashed #5d4b3c;
  color: #5d4b3c;
  text-decoration: none;
  background-color: #fff;
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  border-radius: 30px;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  box-shadow: 2px 2px 0 #5d4b3c;
  position: relative;
}

.hero-button:hover {
  background-color: #5d4b3c;
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #5d4b3c;
}

.hero-carousel-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(frame-image.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 90px;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  margin-top: 40px;
}

.hero-carousel-frame .swiper-container {
  width: 80%;
  height: 80%;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-carousel-frame .swiper-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

footer {
  text-align: center;
  padding: 25px;
  font-size: 0.9rem;
  background-color: #f5eee6;
  border-top: 2px solid #e0d6c3;
}

@media (max-width: 1280px) {
  .hero-split {
    flex-direction: column;
    padding: 40px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }

  .hero-carousel-frame {
    max-width: 300px;
    padding: 40px;
  }

  .hero-carousel-frame .swiper-container {
    width: 85%;
    height: 85%;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.product-grid img {
  width: 50%;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .product-grid img {
    border-radius: 8px;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fffdf9;
  border-radius: 12px;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  color: #5d4b3c;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #333;
}

.modal-body-scroll {
  overflow-y: auto;
  max-height: 70vh;
}

/* Optional: product card inside modal */
.product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 30px;
}

.product-card-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-card-info {
  text-align: center;
}

.product-card-info h2 {
  margin: 0.5rem 0;
}

.product-card-info p {
  margin: 0.3rem 0;
}

@media (max-width: 1280px) {
  .product-card {
    display: flex;
    flex-direction: column;
    align-items: center;

  }


  .product-card img {
    border-radius: 8px;

  }

  .product-item img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

    .product-item p {
    text-align: center;
  }
}



/* Default: hide mobile version */
.nav-mobile {
  display: none;
}

/* Default: show desktop version */
.nav-desktop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Mobile view only */
@media (max-width: 1280px) {
  /* Override for ALL mobile nav links, including Home */
    .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: flex;
    flex-direction: column;
  }
 
  .nav-mobile a {
    width: 140px;
    height: 40px;
    line-height: 40px;
    font-size: 1.2rem;
    margin: 6px 0;
    background-image: none; /* ✅ Remove background image */
    background-color: transparent; /* optional: ensures no background */
    display: inline-block;
  }
  

  .nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav-row a {
    flex: none; /* make sure they don’t stretch weirdly */
  }

  .mobile-close {
    display: block;
    width: auto;
    height: auto;
    line-height: normal;
    font-size: 2rem;
    background: none;
    border: none;
    color: #5d4b3c;
    cursor: pointer;
    padding-right: 10px;
    font-family: initial;
  }
}