/*
 * Maris Metrology Website Stylesheet
 *
 * This stylesheet defines the basic layout and colour scheme for the
 * Maris Metrology website. It uses a simple grid layout with a
 * responsive design that works on mobile and desktop. Colours are
 * inspired by professional calibration and laboratory websites – deep
 * blues and neutrals – to convey trust and technical expertise.
 */

/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f8f9fa;
}

a {
  color: #003e80;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container provides a max‑width to centre content on large screens */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation bar */
header {
  background-color: #013366;
  color: #fff;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.menu li a {
  color: #fff;
  font-weight: 500;
  transition: opacity 0.2s;
}

/* Active navigation link */
.menu li a.active {
  text-decoration: underline;
}

.menu li a:hover {
  opacity: 0.8;
}

/* Hero section */
/*
 * Hero section uses a high‑resolution abstract illustration that conveys
 * precision calibration and modern laboratory work. The image is stored
 * alongside this stylesheet as `hero.png` to ensure the website remains
 * self‑contained when deployed. The overlay ensures text remains legible
 * over the image.
 */
.hero {
  /*
   * Use a smooth gradient as the hero background instead of an image.
   * This avoids embedding large images and keeps the focus on the
   * headline and call‑to‑action. The gradient flows from deep
   * navy to a lighter blue to evoke trust and precision.
   */
  background: linear-gradient(135deg, #013366 0%, #004a8f 50%, #013366 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
  position: relative;
}

/* Dark overlay on hero image for improved contrast */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background-color: #f57c00;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #d66600;
}

.btn.secondary {
  background-color: #fff;
  color: #013366;
  border: 2px solid #013366;
}

.btn.secondary:hover {
  background-color: #e6eef6;
}

/* Welcome section */
.welcome {
  padding: 3rem 0;
  text-align: center;
}

.welcome h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #013366;
}

.welcome p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

/* Features section */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 3rem 0;
}

.feature {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feature h3 {
  margin-bottom: 0.75rem;
  color: #013366;
}

.feature p {
  font-size: 0.9rem;
  color: #555;
}

/* Sales preview section */
.sales-preview {
  padding: 3rem 0;
}

.sales-preview h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #013366;
}

.sales-preview p.ebay-link {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.sales-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  /* Provide a light background so that blank placeholder images are
     still visible in the card. */
  background-color: #e9ecef;
}

.card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body h3 {
  font-size: 1rem;
  color: #013366;
  margin-bottom: 0.5rem;
}

.card-body p.price {
  font-weight: bold;
  color: #d66600;
  margin-bottom: 0.5rem;
}

.card-body .buttons {
  display: flex;
  gap: 0.5rem;
}

/* Footer */
footer {
  background-color: #013366;
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

footer h4 {
  margin-bottom: 0.5rem;
}

footer ul {
  list-style: none;
  font-size: 0.9rem;
}

footer ul li {
  margin-bottom: 0.25rem;
}

footer ul li a {
  color: #fff;
}

footer ul li a:hover {
  text-decoration: underline;
}

footer .copyright {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #ccd9e8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    gap: 0.5rem;
  }
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    padding: 3rem 1rem;
  }
  .features {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
  }
  footer .container {
    flex-direction: column;
    gap: 1.5rem;
  }
}