* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #faebeb;
  color: #333;
}

/* Smooth scrolling and touch/momentum support */
html {
  scroll-behavior: smooth; /* native smooth scrolling for anchor links and scrollIntoView */
}

/* Enable native momentum scrolling on iOS for any overflow container and body */
body, .some-scrollable {
  -webkit-overflow-scrolling: touch;
}

/* Highlight in-page targets briefly after navigating */
:target {
  outline: 6px solid rgba(133, 35, 35, 0.12);
  outline-offset: 6px;
}

header {
  background-color: #1B3A28;
  color: black;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img.logo {
  height: 64px; /* larger logo for desktop */
  size-adjust: 200%;
}

/* Ensure the clickable logo link doesn't introduce inline decoration and keeps image sizing */
.logo-link {
  display: inline-block;
  text-decoration: none;
}
.logo-link img,
header img.logo {
  height: 64px;
  width: auto;
  display: block;
}

/* Reduce logo size on very small screens so header doesn't crowd content */
@media (max-width: 640px) {
  .logo-link img,
  header img.logo {
    height: 44px;
  }
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

h4 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5em;
  color: #333;
}

.Logo {
  color: #CBBBA0;
}

.banner {
  /* fixed banner behind the page so content can scroll over it */
  /* larger initial banner: use viewport-relative height so it scales */
  height: 100vh; /* change this to 100vh for a full-screen hero */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2em;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none; /* decorative - don't block scrolling */
  z-index: 0; /* behind content (content will have higher z-index) */
}

.banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.banner h1 {
  position: relative;
  z-index: 1;
}

/* Banner video styles */
.banner-video {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  /* start transparent; JS will change opacity from 0 -> 1 to fade to a configured color
     default color is black but you can override with --banner-fade-color or
     set a data-fade-color on the .banner element (JS reads that and applies it). */
  background: var(--banner-fade-color, #faebeb);
  opacity: 0;
  transition: opacity 240ms linear;
  z-index: 1; /* sits above the video but below the heading */
}

.banner h1 {
  position: relative;
  z-index: 2;
}

/* Smooth heading fade/translate when scrolling (faster fade) */
.banner h1 {
  transition: opacity 120ms linear, transform 220ms ease-out;
}

/* Main content container placed above the fixed banner */
.site-content {
  position: relative;
  z-index: 10;
  /* add top padding equal to banner height so content doesn't sit under the banner */
  padding-top: 60vh; /* keep in sync with .banner height */
  /* keep transparent so the fixed banner shows behind content */
  background-color: transparent;
  min-height: 100vh;
}

/* Responsive: smaller banner on narrow screens to save vertical space */
@media (max-width: 640px) {
  /* Use the full viewport height on small devices so the video fills the screen.
     Prefer dynamic viewport units where supported (svh) and fall back to 100vh. */
  .banner {
    height: 100svh;
    height: 100vh;
  }
  .site-content {
    padding-top: 100svh; /* match the banner height */
    padding-top: 100vh;
  }
}

/* Opaque panel that starts below the banner and scrolls over it */
.content-panel {
  background-color: transparent; /* opaque panel color */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
  margin: 0 auto;
  padding: 28px 20px;
  min-height: 100vh;
  /* make sure the panel sits above the banner but below the header */
  position: relative;
  z-index: 20;
}

@media (max-width: 640px) {
  .content-panel {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 20px 12px;
  }
}

/* Reveal animation for boxes that start off-screen and slide/fade in */
.reveal {
  opacity: 0;
  /* start further down so boxes reveal from a lower position */
  transform: translateY(80px);
  transition: opacity 560ms cubic-bezier(.22,.9,.39,1), transform 560ms cubic-bezier(.22,.9,.39,1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* If you want an element to reveal immediately on page load, add .reveal to it.
   The script also applies reveal to .product-card automatically if none are present. */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
}

.product-card {
  background: #CBBBA0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  /* Start hidden and slightly translated; the reveal script will add .in-view to animate these to visible */
  opacity: 0;
  transform: translateY(80px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Only allow the hover lift when the card has been revealed */
.product-card.in-view:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 15px;
}

.product-info h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.product-info p {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 10px;
}

.price {
  font-weight: bold;
  color: #2e8b57;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.details-btn,
.add-to-cart {
  background-color: #A37E2C;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s ease;
}

.details-btn:hover,
.add-to-cart:hover {
  background-color: #7e191e;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #CBBBA0;
  color: white;
  font-size: 0.9em;
  margin-top: 30px;
}

/* Product details page */
.product-page {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 50px;
  justify-content: center;
  align-items: flex-start;
}

.product-image img {
  width: 400px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-details {
  max-width: 500px;
}

.product-details h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.product-details p {
  margin-bottom: 15px;
}

.back-link {
  display: inline-block;
  margin-top: 10px;
  color: #2e8b57;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.intro {
  text-align: center;
  padding: 30px;
}

.cart {
  padding: 50px;
}

.cart table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cart th, .cart td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.cart input[type="number"] {
  width: 60px;
  padding: 5px;
}

.cart-total {
  text-align: right;
  margin-top: 20px;
}

.contact {
  padding: 50px;
  max-width: 600px;
  margin: auto;
}

.contact h2 {
  text-align: center;
  margin-bottom: 20px;
}

.contact form {
  display: flex;
  flex-direction: column;
}

.contact label {
  margin-bottom: 5px;
  font-weight: 500;
}

.contact input,
.contact textarea {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.find-us {
  text-align: center;
  margin-top: 30px;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Ensure overlay/video don't block pointer/touch events (lets the page scroll) */
.banner-video,
.banner-overlay {
  pointer-events: none;
}

/* Make sticky header layout explicit and interactive */
.sticky-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* keep header above overlays */
  z-index: 1100;
}

ul {
  display: flex;
  justify-content: center; /* center items horizontally inside the parent */
  align-items: center;     /* center items vertically within the line */
  gap: 10px;              /* space between icons */
  padding: 0;
  margin: 20px 0;         /* spacing above/below the list */
}

ul li {
  list-style: none;
}

ul li a {
  width: 80px;
  height: 80px;
  background-color: #fff;
  text-align: center;
  line-height: 80px;
  font-size: 35px;
  margin: 0 10px;
  display: block;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 3px solid #fff;
  z-index: 1;
}

ul li a .icon {
  position: relative;
  color: #262626;
  transition: .5s;
  z-index: 3;
}

ul li a:hover .icon {
  color: #fff;
  transform: rotateY(360deg);
}

ul li a:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f00;
  transition: .5s;
  z-index: 2;
}

ul li a:hover:before {
  top: 0;
}

ul li:nth-child(1) a:before{
  background: #852323;
}

ul li:nth-child(2) a:before{
  background: #852323;
}

/* Ensure product cards that use the reveal animation keep the longer reveal timing
   (this is more specific than .product-card { transition: ... } so it will win) */
.product-card.reveal,
.product-card.reveal.in-view {
  transition: opacity 560ms cubic-bezier(.22,.9,.39,1),
              transform 560ms cubic-bezier(.22,.9,.39,1);
}

/* On larger screens start reveal items fully off-screen so they animate up into view.
   Use :not(.in-view) to avoid overriding the in-view state (which sets transform: 0). */
@media (min-width: 1024px) {
  .reveal:not(.in-view),
  .product-card:not(.in-view) {
    /* smaller offset reduces large jumps while keeping the off-screen reveal effect */
    transform: translateY(60vh);
    will-change: transform, opacity;
  }
}

.contact-info {
  text-align: center;
  margin-top: 20px;
}