/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header styles */
header {
  background-color: #d9c4a1;
  padding: 20px 0;
  border-bottom: 1px solid #ccc;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-links a:hover {
  color: #007B5E; /* Choose any color you prefer */
  border-bottom: 2px solid #007B5E;
}

.nav-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
}

/* About Us section */

.about-us {
  padding: 60px 0;
  background-color: #fff;
  color: #333;
  border: 2px solid #ddd; /* Light gray border */
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

.about-us h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  color: #2c3e50; /* Slightly darker text color for the title */
}

.about-us p {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 18px;
  line-height: 1.8;
  text-align: justify; /* Justify text for better alignment */
  color: #555; /* Slightly lighter text color for paragraphs */
}

.about-us p strong {
  font-weight: bold;
  color: #333; /* Darker color for the bold text */
}

/* home section */
.home {
  position: relative;
  background: url('https://housing.com/news/wp-content/uploads/2023/04/What-is-timber-wood-and-which-are-the-best-types-f.jpg') no-repeat center center/cover;
  color: #fff;
  padding: 100px 0;
  text-align: center;
  margin-top: 110px;
}

.home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Adjust the opacity for a darker effect */
  z-index: 1; /* Makes sure the overlay stays above the background but behind the text */
}

.home > .container {
  position: relative;
  z-index: 2; /* Makes sure the text inside the container stays above the overlay */
}


.home .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 30px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

/* Products section */
.products {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.products h2 {
  text-align: center;
  margin-bottom: 40px;
}

.product-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.product-card {
  background-color: #fff;
  padding: 20px;
  width: 300px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* Contact Section */

.contact {
  padding: 60px 0;
  background-color: #fff;
  color: #333;
  text-align: center;
}

.contact h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.contact-info {
  font-size: 18px;
  line-height: 1.8;
  max-width: 700px;
  margin: auto;
}

.contact-info .flag {
  display: block;
  margin: 0 auto 20px;
  width: 40px;
  height: auto;
}


/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}
/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;       /* ✅ Center horizontally */
    justify-content: center;   /* ✅ Center vertically */
    text-align: center;

    position: absolute;
    top: 80px;
    right: 50%;
    transform: translateX(50%);  /* ✅ Center the menu box itself */

    width: 200px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links li a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: border-bottom 0.3s ease;
  }

  .nav-links li a:hover {
    border-bottom: 2px solid #007B5E;  /* green underline */
  }

  .nav-toggle {
    display: block;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
  }

  .product-grid {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .about-us p {
    font-size: 16px;
    padding: 0 15px;
  }

  .about-us h2 {
    font-size: 26px;
  }
}
@media (max-width: 768px) {
  .contact h2 {
    font-size: 26px;
  }

  .contact-info {
    font-size: 16px;
    padding: 0 15px;
  }

  .contact-info .flag {
    width: 30px;
    margin-bottom: 15px;
  }
}