/*
 * EcoLead Controls Website Stylesheet
 *
 * This file defines the primary styling for the EcoLead Controls
 * brochure site. The design emphasizes a clean, modern aesthetic
 * with a blue and silver colour palette, ample white space and
 * responsive layouts. Sections are modular and can easily be
 * rearranged or expanded. Font sizes, margins and padding are
 * tuned for comfortable reading on desktop, tablet and mobile
 * devices.
 */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header and navigation */
header {
  background-color: #003E6D; /* dark navy blue */
  color: #ffffff;
  padding: 15px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #8DC6E8; /* light blue hover */
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 15px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  line-height: 1.4;
}

.hero .btn {
  display: inline-block;
  padding: 12px 30px;
  margin: 5px;
  border-radius: 25px;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero .btn.primary {
  background-color: #0078C9;
  border-color: #0078C9;
}

.hero .btn.primary:hover {
  background-color: #00588a;
}

.hero .btn.secondary:hover {
  background-color: #ffffff;
  color: #003E6D;
}

/* Section */
.section {
  padding: 60px 0;
}

.section.light {
  background-color: #f5f5f5;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #003E6D;
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.card {
  flex: 1 1 calc(33% - 20px);
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  flex: 1;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #003E6D;
}

.card-content p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.card-content a {
  color: #0078C9;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .card {
    flex: 1 1 calc(50% - 20px);
  }
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    gap: 10px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .card {
    flex: 1 1 100%;
  }
  .hero {
    height: 50vh;
  }
}

/* Footer */
footer {
  background-color: #003E6D;
  color: #ffffff;
  padding: 30px 0;
  text-align: center;
  margin-top: auto;
}

footer p {
  margin-bottom: 10px;
}
footer a {
  color: #8DC6E8;
}