/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

.container {
  width: 100%;
  max-width: 1200;
  margin: auto;
  padding: 20px;
}



/* Header */
header {
  background: #fff;
  color: #004080;
  padding: 15px 0;
}
header h1 { margin: 0; }
header nav a {
  color: #004080;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}
header nav a:hover { text-decoration: underline; }

/* Hero */
/* --- Hero Section & Image Styles --- */

/* 1. Make the .hero section the positioning context for the overlay */
.hero {
  position: relative; /* CRITICAL for absolute positioning */
  padding: 0; /* Remove default padding so image can fill */
  background: #f9f9f9;
  text-align: center;
  width: 100%;
}

/* 2. Style the image to stretch full width and maintain aspect ratio */
.hero-image-bg {
    display: block;
    width: 100%; /* Stretches to the full width of its parent (.hero) */
    height: auto; /* CRITICAL: Maintains the original aspect ratio */
}

/* --- Text Overlay Styles --- */

/* 3. Position the text content absolutely on top of the image */
.hero-text-overlay {
    /* Use the .container's width (max-width: 800px) but give it absolute position */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers element based on its own size */
    z-index: 10; /* Ensures the text is above the image */
    
    /* Text readability improvements */
    width: 90%; 
    max-width: 700px;
    background-color: rgba(255, 255, 255, 0.0); /* Semi-transparent white background */
    padding: 20px;
    border-radius: 20px;
    color: #fff;
}

/* Clean up the h2/p alignment inside the overlay */
.hero-text-overlay h2 {
    margin-bottom: 15px;
    font-size: 2.5em;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 1.0);
    }
.hero-text-overlay p {
    margin-bottom: 10px;
    font-size: 1.1em; /* Make the paragraph text larger */
    font-weight: bold; /* Optional: adds more contrast */
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 1.0);
}

@media (max-width: 800px) {
    /* When the screen width is 600px or less, these sizes apply: */
    
    .hero-text-overlay h2 {
        font-size: 1.2em; /* Significantly smaller heading */
    }
    
    .hero-text-overlay p {
        font-size: 0.75em; /* Standard readable size for paragraphs */
    }
    
    /* Optional: reduce the text-shadow size on mobile for a cleaner look */
    .hero-text-overlay h2 {
        text-shadow: 2px 2px 3px rgba(0, 0, 0, 1.0); 
    }
    
    .hero-text-overlay p {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 1.0); 
    }
}

.hero h2 { font-size: 1.5em; margin-bottom: 10px; }

/* About Section */
.about { margin: 40px 0; }

/* Product Catalogue */
.catalogue h2 { margin-bottom: 20px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.product-card img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}
.product-card h3 {
  margin: 10px 0;
  color: #004080;
}

/* Footer */
footer {
  background: #fff;
  color: #004080;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}
