/*
  Tsavo Nuts Limited Website Stylesheet
  This stylesheet defines the layout and colour palette for the new site.
*/

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');

/* CSS Variables for easy colour management */
:root {
  --primary-color: #0a5936; /* dark green */
  --secondary-color: #4b8a4d; /* mid green */
  --accent-color: #b5844b; /* warm accent */
  --light-bg: #f9f9f9;
  --text-color: #333333;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  background-color: #fff;
  line-height: 1.6;
}

/* Container utility to centre content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and navigation */
header {
  background-color: var(--primary-color);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

header .logo {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  position: relative;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

/* Hamburger icon for mobile */
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
}

/* Hero section */
.hero {
  background-image: url('../images/hero.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 6rem 1rem;
  margin-top: 60px; /* offset for fixed header */
}

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

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

.cta-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
  margin: 0.25rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #ffffff;
}

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

.btn-secondary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #9c6f3a;
}

/* Generic section styles */
section {
  padding: 4rem 1rem;
}

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

/* About section */
.about p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  text-align: center;
}

.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.value {
  flex: 1 1 30%;
  background-color: var(--light-bg);
  margin: 0.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.value h3 {
  margin-top: 0;
  color: var(--secondary-color);
}

.value p {
  margin-bottom: 0;
}

/* Products section */
.products p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2rem;
}

.product {
  flex: 1 1 45%;
  background-color: var(--light-bg);
  margin: 0.5rem;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.product img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product h3 {
  margin-top: 0;
  color: var(--secondary-color);
}

/* Process section */
.process p {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.process-img {
  max-width: 1000px;
  width: 100%;
  display: block;
  margin: 0 auto 2rem;
  border-radius: 8px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.step {
  flex: 1 1 30%;
  background-color: var(--light-bg);
  margin: 0.5rem;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step h3 {
  margin-top: 0;
  color: var(--secondary-color);
}

.step p {
  margin-bottom: 0;
}

/* Contact section */
.contact-text {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  max-width: 600px;
  color: var(--text-color);
}

.contact-details li {
  margin-bottom: 0.5rem;
}

.contact-details a {
  color: var(--secondary-color);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  padding: 0.75rem 2rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: #064425;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 992px) {
  .value,
  .product,
  .step {
    flex: 1 1 45%;
  }
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--primary-color);
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 1rem 0;
    text-align: center;
  }

  .hamburger {
    display: block;
  }

  .value,
  .product,
  .step {
    flex: 1 1 100%;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}