/* Main Stylesheet for Moshoeshoe: Legend of the Mountains */

/* Color Palette 
   Primary: #8B4513 (Saddle Brown - earth tone reflecting Lesotho landscape)
   Secondary: #1E3F66 (Dark Blue - representing royalty)
   Accent: #DAA520 (Goldenrod - representing leadership)
   Background: #F5F5F5 (White Smoke - for readability)
   Text: #333333 (Dark Gray - for readability)
*/

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lora', serif;
  line-height: 1.6;
  color: #333333;
  background-color: #F5F5F5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  color: #352213;
}

h1 {
  font-size: 2.5rem;
  color: #8B4513;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid #DAA520;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #1E3F66;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #DAA520;
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header Styles */
header {
  background-color: #C2B280;
  color: #1E3F66;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.logo a {
  color: #352213;
  text-decoration: none;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: #352213;
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #DAA520;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 5rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #DAA520;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.btn:hover {
  background-color: #8B4513;
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Project Highlights */
.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 2rem 0;
}

.highlight-card {
  flex-basis: calc(33.333% - 2rem);
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
}

.highlight-card h3 {
  color: #8B4513;
}

/* Progress Bar */
.progress-container {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.progress-bar {
  height: 30px;
  background-color: #e0e0e0;
  border-radius: 15px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #c15c24;
  width: 0%; /* Will be updated with JavaScript */
  transition: width 1s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #352213;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #DAA520;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: white;
  border: 4px solid #352213;
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::after {
  right: -12px;
}

.right::after {
  left: -12px;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Budget Breakdown */
.budget-chart {
  max-width: 600px;
  margin: 2rem auto;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.budget-table th, .budget-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.budget-table th {
  background-color: #352213;
  color: white;
}

.budget-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Contribution Tiers */
.tiers {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 2rem 0;
}

.tier-card {
  flex-basis: calc(33.333% - 2rem);
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.tier-card:hover {
  transform: translateY(-5px);
}

.tier-title {
  color: #1E3F66;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tier-price {
  color: #8B4513;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.tier-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.tier-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.tier-features li::before {
  content: "✓";
  color: #DAA520;
  position: absolute;
  left: 0;
}

/* Team Section */
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 2rem 0;
}

.team-member {
  flex-basis: calc(33.333% - 2rem);
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member p.role {
  color: #8B4513;
  font-style: italic;
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button[type="submit"] {
  background-color: #c15c24;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #DAA520;
}

/* Footer */
footer {
  background-color: #352213;
  color: white;
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex-basis: calc(25% - 2rem);
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  border-bottom: 2px solid #DAA520;
  padding-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #e0e0e0;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #DAA520;
}

.social-links {
  display: flex;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: white;
  font-size: 1.5rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  .highlight-card, .tier-card, .team-member {
    flex-basis: calc(50% - 2rem);
  }
  
  .footer-section {
    flex-basis: calc(50% - 2rem);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #1E3F66;
    padding: 1rem;
    z-index: 100;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 0.5rem 0;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 18px;
  }
  
  .left::after, .right::after {
    left: 18px;
  }
  
  .right {
    left: 0%;
  }
}

@media (max-width: 576px) {
  .highlight-card, .tier-card, .team-member {
    flex-basis: 100%;
  }
  
  .footer-section {
    flex-basis: 100%;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}
