:root {
  /* Color Palette */
  --primary-color: #084734;
  --accent-color: #e1b12c;
  --light-accent: #fefdf6;
  --text-color: #1a1a1a;
  --bg-color: #ffffff;

  /* Font families */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Merriweather', serif;

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;

  /* Typography Sizes */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 2rem;
  --text-xxl: 3rem;
}

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

html {
  scroll-behavior: smooth;
}


/* Body Base */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.section-title {
  text-align: center;
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  font-family: var(--font-secondary);
  color: var(--primary-color);
}

/* Container *//* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
}

/* Navbar styles */
.navbar {
  background-color: var(--bg-color);
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar .container {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: var(--text-xl);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-family: var(--font-secondary);
  display: flex; /* 👈 make the contents line up horizontally */
  align-items: center; /* 👈 vertically center text and image */
}

.logo-img {
  max-height: 60px;
  display: block;
  border-radius: 4px;
}

.logo-text {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-left: 10px; /* 👈 spacing between text and image */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.nav-links li a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: var(--text-base);
  font-weight: bold;
  transition: color 0.3s;
}

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

.nav-links li a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
}

/* Hamburger styles */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease-in-out;
}

.burger.toggle .line1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle .line2 {
  opacity: 0;
}

.burger.toggle .line3 {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* Hero Section */
.hero {
  background-image: url('/assets/images/hero1.png'); /* Replace with actual image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background-color: rgba(8, 71, 52, 0.295); /* Optional dark overlay using your primary color */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  text-align: center;
  color: white;
  padding: var(--space-lg);
}

.hero h1 {
  font-size: var(--text-xxl);
  margin-bottom: var(--space-sm);
  font-family: var(--font-secondary);
}

.hero p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background-color: #0847343a;
  border-radius: 4px;
}

.btn {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border: none;
  font-size: var(--text-base);
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

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

/* why choose us   */
.why-choose-us {
  padding: var(--space-xl) 0;
}

.choose-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.choose-row.reverse {
  flex-direction: row-reverse;
}


.choose-image,
.choose-text {
  flex: 1 1 50%;
  padding: var(--space-sm);
}

.choose-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.choose-text h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
  font-family: var(--font-secondary);
}

.choose-text p {
  font-size: var(--text-base);
  color: var(--text-color);
  max-width: 600px;
}

/* what we offer */
.what-we-offer {
  padding: var(--space-xl) 0;
  text-align: center;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.offer-item img {
  width: 100%;
  height: 200px; /* 👈 fixed height */
  border-radius: 8px;
  object-fit: cover; /* ensures image fills the box without stretching */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}


.offer-item h3 {
  margin-top: var(--space-sm);
  font-size: var(--text-lg);
  color: var(--primary-color);
  font-family: var(--font-secondary);
}

.offer-item p {
  font-size: var(--text-base);
  color: var(--text-color);
  margin-top: 0.5rem;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.image-wrapper-link {
  display: block;
  text-decoration: none;
}

.image-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(8, 71, 52, 0.6); /* overlay using primary color */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.overlay-link {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.overlay-link:hover {
  background-color: var(--light-accent);
}



/* Recent Projects Section */
.recent-projects {
  padding: var(--space-xl) 0;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.project-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-btn {
  margin-top: var(--space-lg);
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

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


/* About Us Section */
.about-us {
  background-color: var(--light-accent);
  padding: var(--space-xl) 0;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: var(--text-lg);
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* FAQ Section */
.faq-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-color);
  text-align: left;
}

.faq-item {
  margin-bottom: var(--space-md);
  border-bottom: 1px solid #ccc;
  padding-bottom: var(--space-sm);
}

.faq-toggle {
  display: none;
}

.faq-question {
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--primary-color);
  display: block;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  top: 0;
}

.faq-toggle:checked + .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-color);
  font-size: var(--text-base);
  padding-top: var(--space-xs);
}

.faq-toggle:checked + .faq-question + .faq-answer {
  max-height: 500px; /* Large enough for most answers */
}


/* Contact Section */
.contact-section {
  padding: var(--space-xl) 0;
  background-color: var(--light-accent);
}

.contact-wrapper {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 40%;
  font-size: var(--text-base);
  color: var(--primary-color);
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;

}

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

.contact-form {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-form input,
.contact-form textarea {
  padding: var(--space-sm);
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

.social-links {
  margin-top: var(--space-md);
  display: flex;
  gap: 1rem;

}

.social-links a {
  color: var(--primary-color);
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

.fab {
  color: var(--primary-color);
  font-size: 1.2rem; /* Slightly larger for more weight */
  font-weight: bold;
  text-shadow: 
    0 0 1px var(--primary-color),
    0 0 1px var(--primary-color);
}

/* Footer */
.footer {
  text-align: center;
  font-size: var(--text-sm);
  background-color: var(--bg-dark);
  color: var(--primary-color);
  padding: var(--space-md) 0;
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer a[href*="webloom-tech"] {
  color: var(--primary-color);
  font-weight: medium;
}

.footer a[href*="webloom-tech"]:hover {
  color: var(--accent-color); /* Optional: adds hover effect */
}


@media (max-width: 1024px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }

  .overlay-link {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
  }
}


@media (max-width: 768px) {
  .logo-text {
    display: inline;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: var(--space-md);
    display: none;
  }

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

  .burger {
    display: flex;
  }

  .choose-row,
  .choose-row.reverse {
    flex-direction: column;
  }

}

@media (max-width: 600px) {
  .offer-grid {
    grid-template-columns: 1fr; /* Stack cards on small devices */
  }

  .offer-item h3 {
    font-size: var(--text-base);
  }

  .offer-item p {
    font-size: var(--text-sm);
  }

  .image-wrapper img {
    height: 180px; /* reduce height slightly for small screens */
    transition: none;

  }

  .image-wrapper:hover img {
    transform: none;
  }

  .overlay-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  
}