/*
 * Styling for the redesigned American Technology Labs website.
 *
 * This stylesheet defines a modern, responsive layout with a
 * contemporary colour palette. Sections are clearly delineated
 * using generous whitespace and subtle shadows. The navigation
 * bar sticks to the top of the viewport and features a simple
 * dropdown menu for the About pages. All typography uses the
 * Poppins family for a clean and professional look.
 */

:root {
  /* Brand colours */
  --primary-colour: #0a5ea8;    /* deep blue for headings and accents */
  --secondary-colour: #007acc;  /* lighter blue for gradients */
  --dark-colour: #0a2a43;       /* dark background for header/footer */
  --light-colour: #f4f9ff;      /* page background */
  --text-colour: #333333;       /* standard body text */
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-colour);
  background-color: var(--light-colour);
}

header {
  background-color: var(--dark-colour);
  color: #ffffff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar a.logo {
  /* The logo is now an image; retain basic link styles for fallback */
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Logo image within the navigation bar */
.navbar .logo img {
  height: 50px;
  width: auto;
  display: block;
}

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

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Dropdown menu for About section */
.nav-menu .dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: var(--dark-colour);
  padding: 0.5rem 0;
  min-width: 220px;
  border-radius: 0 0 0.25rem 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu li:hover > .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary-colour), var(--secondary-colour));
  color: #ffffff;
  padding: 5rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: #ffffff;
  color: var(--primary-colour);
  padding: 0.75rem 1.5rem;
  border-radius: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  margin-bottom: 4rem;
}

section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-colour);
  font-size: 2rem;
  font-weight: 600;
}

section p.lead {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: var(--text-colour);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Services section */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--light-colour);
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card i {
  color: var(--primary-colour);
  margin-bottom: 1rem;
  font-size: 2.4rem;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-colour);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-colour);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* About and other content sections */
.content-section {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--text-colour);
}

.content-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--primary-colour);
  font-weight: 600;
}

.content-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style-type: disc;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* Client logos placeholders */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Client logos: ensure images fit nicely into the grid */
.client-grid img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  border-radius: 0.35rem;
  background-color: #e9eef6;
  padding: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.client-box {
  background-color: #e9eef6;
  height: 60px;
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-colour);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Product images layout */
.product-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Service images inserted before service descriptions */
.service-img {
  width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-images img {
  width: 30%;
  min-width: 200px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background-color: var(--primary-colour);
  color: #ffffff;
  border: none;
  padding: 0.75rem;
  border-radius: 0.35rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--secondary-colour);
}

/* Footer */
footer {
  background-color: var(--dark-colour);
  color: #ffffff;
  padding: 2rem;
  font-size: 0.85rem;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .nav-menu {
    flex-direction: column;
    gap: 0;
  }
  .nav-menu li {
    margin-bottom: 0.5rem;
  }
}