/* Global Styles */

/* Import Google Fonts for consistent typography */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
  /* Colour palette inspired by sustainable agriculture */
  --primary-color: #2e7d32;      /* deep green for headers and nav */
  --secondary-color: #004d40;    /* dark teal for buttons */
  --accent-color: #a5d6a7;       /* light green for highlights */
  --background-color: #f5f5f5;   /* light grey page background */
  --text-color: #333333;         /* dark grey body text */
  --white: #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Navigation Bar */
nav {
  width: 100%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

nav li a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  background-image: url('images/leaves.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10%;
  color: var(--white);
  text-align: left;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  margin: 0 0 0.5rem 0;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  line-height: 1.4;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Sections */
.section {
  padding: 4rem 10%;
  background-color: var(--background-color);
}

.section:nth-of-type(even) {
  background-color: var(--white);
}

.section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Cards Layout */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  flex: 1 1 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
}

.card p {
  margin: 0;
  line-height: 1.4;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Team page specific */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-member {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-member .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--secondary-color);
  font-weight: 700;
}

.team-member h4 {
  margin: 0;
  margin-bottom: 0.3rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-color);
}

.team-member span {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* Contact page form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form button {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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