/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background-color: #0077b6;
  color: white;
  padding: 15px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.6rem;
}

nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 8px;
  border-radius: 4px;
}

/* Hero / Banner */
.hero {
  position: relative;
  text-align: center;
  color: white;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* the banner image */
.hero img.banner {
  width: 100%;
  max-width: 100%;
  height: 360px;       /* desktop default height */
  object-fit: cover;
  filter: none;        /* no dark filter */
  opacity: 1;
  display: block;
}

/* text overlay (commented out in your HTML, kept for future) */
.hero .banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
  padding: 0 12px;
  box-sizing: border-box;
  width: calc(100% - 40px);
}

/* Page sections */
section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Product card */
.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
}

.product-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.product-card h3 {
  margin: 10px 0 5px;
}

.product-card p {
  margin: 0 0 10px;
}

/* Buttons */
.btn {
  background-color: #0077b6;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background-color: #005f87;
}

/* Footer */
footer {
  text-align: center;
  background-color: #0077b6;
  color: white;
  padding: 15px 0;
  margin-top: 40px;
}

/* =========================
   Responsive: Tablets & Phones
   ========================= */
@media (max-width: 768px) {

  /* reduce banner height */
  .hero img.banner {
    height: 240px;
  }

  /* banner text sizes if used */
  .hero .banner-text h2 {
    font-size: 1.15rem;
  }
  .hero .banner-text p {
    font-size: 0.95rem;
  }

  /* spacing & nav */
  section {
    padding: 24px 14px;
  }

  nav a {
    padding: 8px 10px;
    font-size: 15px;
  }

  /* product grid: two columns */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {

  /* small phone banner height */
  .hero img.banner {
    height: 160px;
  }

  .hero .banner-text h2 {
    font-size: 1rem;
  }
  .hero .banner-text p {
    font-size: 0.9rem;
  }

  /* stack nav vertically */
  nav {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  nav a {
    display: block;
    width: 100%;
    max-width: 260px;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
  }

  /* product grid single column */
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 12px;
  }
}

