/* Root variables for colours and fonts */
:root {
  --color-primary: #054f3d;
  --color-secondary: #f5f8f7;
  --color-accent: #0b8c6a;
  --color-dark: #222;
  --color-light: #fff;
  --font-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Global styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-dark);
  line-height: 1.6;
  background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
  color: var(--color-primary);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-light);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--color-dark);
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
}

/* Mobile navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark);
}

/* Hero section */
.hero {
  position: relative;
  background: url('../assets/images/hero.png') center/cover no-repeat;
  color: var(--color-light);
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  margin-top: 60px; /* offset for fixed header */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  /* dark overlay for readability */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-light);
}

.hero .tagline {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--color-light);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-light);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary);
}

/* Features */
.features {
  padding: 4rem 0;
  background: var(--color-secondary);
}

.features h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.feature-item {
  background: var(--color-light);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.feature-item svg {
  margin-bottom: 1rem;
}

.feature-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  color: var(--color-primary);
}

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

/* Products section */
.products {
  padding: 4rem 0;
}

.products h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.product-card {
  background: var(--color-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card img.product-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.product-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  color: var(--color-primary);
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Manufacturer section */
.manufacturer {
  padding: 4rem 0;
  background: var(--color-secondary);
}

.manufacturer h2 {
  margin-bottom: 1.5rem;
}

.manufacturer p {
  max-width: 900px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Contact section */
.contact {
  padding: 4rem 0;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--color-dark);
}

.contact-image {
  flex: 1 1 300px;
  background: url('../assets/images/pattern.png') center/cover no-repeat;
  border-radius: 8px;
  min-height: 200px;
}

/* Footer */
.site-footer {
  background: var(--color-secondary);
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #555;
  text-align: left;
}

.site-footer small p {
  margin: 0;
  line-height: 1.4;
}

/* Responsive behaviour */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--color-light);
    width: 200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: none;
    flex-direction: column;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li {
    border-bottom: 1px solid #eee;
  }
  .main-nav li:last-child {
    border-bottom: none;
  }
  .main-nav a {
    padding: 0.75rem 1rem;
    display: block;
  }
  .nav-toggle {
    display: block;
  }
}