/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8fff9;
  height: 100%;
  color: #2d742d;
  padding-top: 90px; /* To account for fixed header */
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 60, 0, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 100px;
  margin-right: 10px;
  margin-top: -15px;
  width: 100px;
}

.firm-name {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
  margin-top: 12px;
  gap: 20px;
  align-items: center;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #00ff88;
  color: #004400;
}

main {
  
  padding-bottom: 60px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ABOUT HERO */
.about-hero {
  background: url('../images/about-hero.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px 80px;
  text-shadow: 2px 2px 8px #003300;
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ABOUT CONTENT */
.about-content {
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 0 60px;
  padding-bottom: 50px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-content article {
  background-color: #e6f2e6;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 60, 0, 0.1);
  flex: 1 1 280px;
  transition: box-shadow 0.3s ease;
}

.about-content article:hover {
  box-shadow: 0 6px 20px rgba(0, 60, 0, 0.3);
}

.about-content h2 {
  margin-bottom: 15px;
  color: #2d742d;
}

.about-content p {
  color: #445533;
  font-size: 1.1rem;
  line-height: 1.6;
  
}

/* FOOTER */
footer {
  text-align: center;
  padding: 15px 0;
  background-color: rgba(0, 60, 0, 0.9);
  color: white;
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 60, 0, 0.95);
    width: 100%;
  }
  nav ul.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .about-hero h1 {
    font-size: 2rem;
  }
  .about-hero p {
    font-size: 1rem;
  }
  .about-content {
    flex-direction: column;
    padding: 0 20px;
    margin-bottom: 10px;
  }
  .about-content article {
    flex: 1 1 100%;
    margin-bottom: 50px;
  }
}

/* ADDING PAGE CONTAINER FOR PROPER SPACING AND STYLE */
.page {
  max-width: 900px;
  margin: 120px auto 40px auto;  /* top margin for fixed header + spacing */
  padding-bottom: 100px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
