/* =========================
   BASE STYLES
   ========================= */

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.center {
  text-align: center;
}

h1, h2, h3 {
  margin-top: 0;
}

/* =========================
   HEADER
   ========================= */

.site-header {
  background: #ffffff;
/*  border-bottom: 1px solid #e5e7eb; */
  margin-bottom: .5rem;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.logo img {
  height: 52px;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  color: #222;
}

nav a.active,
nav a:hover {
  color: #8b1e2d;
}

/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-color: #2b2b2b; /* fallback if image fails */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* ensures text contrast */
}

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

.hero h1,
.hero p {
  color: #ffffff;
}


.hero-home {
  background: url("images/hero-home.jpg") center / cover no-repeat;
}

.hero-industries {
  background: url("images/hero-industries.jpg") center / cover no-repeat;
}

.hero-products {
  background: url("images/hero-products.jpg") center / cover no-repeat;
}

.hero-downloads {
  background: url("images/hero-downloads.jpg") center / cover no-repeat;
}

.hero-contact {
  background: url("images/hero-contact.jpg") center / cover no-repeat;
}


/* =========================
   TWO COLUMN GRID INDEX PAGE
   ========================= */



.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.info-box {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.info-box h3 {
  margin-bottom: 1rem;
  color: #9b1c1f; /* PQ red accent */
}

.info-box ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.info-box li {
  margin-bottom: 0.6rem;
}

@media (max-width: 900px) {
  .two-column-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================
   SECTIONS
   ========================= */

.section {
  padding: 3rem 0;
}

.section.light {
  background: #f9fafb;
}

.intro {
  max-width: 1200px;
}

/* =========================
   INDUSTRIES
   ========================= */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.industry {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}


.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Fixed-size image container */
.industry-image {
  width: 100%;
  aspect-ratio: 16 / 9;   /* keeps all images identical */
  overflow: hidden;
  border-radius: 10px;
  background: #f2f2f2;
}

/* Image fills the container */
.industry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* prevents stretching */
  display: block;
}




/* =========================
   PRODUCTS – UNIFIED LAYOUT
   ========================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Individual product card */
.product {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.5rem;
  background: #ffffff;

  display: flex;
  flex-direction: column;
  min-height: 430px;
}

/* Image container */
.product img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* Vendor name */
.product h3 {
  margin-bottom: 0.5rem;
}

/* Description */
.product p {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Vendor link */
.product a {
  color: #8b1e2d; /* PQ crimson */
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}

.product a:hover {
  text-decoration: underline;
}

/* =========================
   CONTACT PAGE
   ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 1rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.3rem;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  margin-top: 1rem;
  padding: 0.7rem;
  background: #8b1e2d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.9;
}


/* =========================
   HEADER BLOCK
   ========================= */

.header-block {
  margin-top: 20px;    /* Space above the block */
  margin-bottom: 5px; /* Space below the block */
  padding-left: 40px;  /* Indentation (approx. 2-3 tabs) */
}

.header-block h2 {
  margin: 0;           /* Removes default extra spacing */
  color: #333;
}

.sub-heading {
  margin: 5px 0 0 0;   /* Small gap between the H2 and the sub-text */
  font-size: 1.1rem;
  color: #666;         /* Slightly lighter color for professional contrast */
  font-style: italic;  /* Optional: makes it look like a tagline */
}



/* =========================
   COVERAGE MAP
   ========================= */

.contact-map img {
  width: 100%;
  max-width: 420px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin: 1rem 0;
}

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


/* =========================
   THICK LINE
   ========================= */


.thick-line {
  border: none;          /* Remove the default thin grey border */
  height: 4px;           /* Set the thickness of your line */
  background-color: #333; /* Set the color of the line */
  margin: 5px 0;        /* Adds space above and below the line */
  border-radius: 4px;    /* Optional: rounds the ends of the line */
}

/* =========================
   CENTER TEXT 
   ========================= */



.text-center {
  text-align: center;
}


/* =========================
   BUTTONS
   ========================= */

.btn {
  display: inline-block;
  background: #8b1e2d;
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  opacity: 0.9;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  background: #111827;
  color: #ffffff;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.3rem 0;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}

/* =========================
   DOWNLOAD CARD
   ========================= */

.download-card {
  background: #ffffff;
  padding: 2rem;
  margin-bottom: 3rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.download-image {
  max-width: 320px;
  margin: 1rem 0 1.5rem;
}

.download-list {
  list-style: none;
  padding-left: 0;
}

.download-list li {
  margin-bottom: 0.75rem;
}

.download-list a {
  text-decoration: none;
  color: #9b1c1f;
  font-weight: 600;
}

.download-list a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse; /* Prevents double borders */
  margin: 20px 0;
  font-family: sans-serif;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f4f4f4;
  color: #333;
}

tr:hover {
  background-color: #f9f9f9; /* Highlights row on hover */
}