/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-primary: #1a7a3c;
  --green-dark: #155c2d;
  --green-bright: #4caf50;
  --green-tag: #4a8c4a;
  --green-topbar: #187145;
  --white: #ffffff;
  --text-dark: #111111;
  --text-mid: #333333;
  --text-gray: #555555;
  --font-jost: "Jost", sans-serif;
  --font-rubik: "Rubik", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-rubik);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.top-bar {
  background-color: var(--green-topbar);
  width: 100%;
  padding: 5px 0;
}

.top-bar-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 18px;
}

.email-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.email-icon {
  color: var(--white);
  font-size: 11px;
}

.email-text {
  color: var(--white);
  font-family: var(--font-rubik);
  font-size: 11px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-icon {
  color: var(--white);
  font-size: 11px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.social-icon:hover {
  opacity: 0.75;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  font-family: var(--font-rubik);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-item:hover {
  color: var(--green-primary);
}
.nav-item.active {
  color: var(--green-bright);
}
.dropdown-icon {
  font-size: 10px;
}

.quote-btn {
  background: transparent;
  color: #0f4229;
  border: 2px solid #707070;
  border-radius: 10px;
  font-family: var(--font-rubik);
  font-size: 12px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
}
.quote-btn:hover {
  background: var(--green-primary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 390px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    to bottom,
    rgba(0, 30, 8, 0.62) 0%,
    rgba(0, 50, 12, 0.5) 100%
  ); */
}

.hero-content-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-subtitle {
  font-family: var(--font-rubik);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-jost);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 56px 0 48px;
  background: var(--white);
}

.about-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-start;
  gap: 52px;
}

.about-content {
  flex: 1;
  min-width: 0;
}

.section-tag {
  font-family: var(--font-rubik);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--green-tag);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-jost);
  font-size: 31px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.about-description {
  font-family: var(--font-rubik);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--text-gray);
}

.about-image-wrapper {
  flex-shrink: 0;
  width: 255px;
}

.about-image {
  width: 100%;
  height: 205px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ============================================================
   SERVICES SECTION  (image asset)
   ============================================================ */
.services-section {
  width: 100%;
  background: #0e2e14;
}

.services-container {
  width: 100%;
}

.services-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-section {
  position: relative;
  overflow: hidden;
  padding: 0;

  /* Background image */
  background: url("./images/project-bg.png") no-repeat center top;
  background-size: cover;

  padding-bottom: 50px;
  background-color: #f4fcf4;
}

/* Remove separate image layer */
.projects-section-bg {
  display: none;
}

/* ── Gradient overlay ── */
.projects-section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  /* background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 22%,
    rgba(244, 252, 244, 0.55) 34%,
    rgba(244, 252, 244, 0.88) 46%,
    rgba(244, 252, 244, 1) 56%,
    rgba(244, 252, 244, 1) 100%
  ); */

  pointer-events: none;
}

/* ── Heading strip ── */
.projects-heading-strip {
  position: relative;
  z-index: 2;
  padding: 38px 0 30px;
  text-align: center;
}

.projects-heading {
  font-family: var(--font-jost);
  font-size: 36px;
  font-weight: 700;
  color: #1b4d1b;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* ── Cards area ── */
.projects-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 52px;
}

/* ── 4-column grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* ── Card flip / reveal on click ── */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Text overlay — hidden by default */
.project-card-overlay {
  position: absolute;
  inset: 0; /* covers the whole card */
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;

  /* Hidden state */
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  pointer-events: none;
}

/* Visible state — toggled by JS */
.project-card.active .project-card-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dim the image when card is active */
.project-card.active .project-card-bg {
  filter: blur(2px) brightness(0.85);
  transition: filter 0.35s ease;
}

.project-card-bg {
  transition: filter 0.35s ease;
}

/* Overlay text styling */
.project-card-overlay p {
  font-size: 12px;
  line-height: 1.6;
  color: #000000; /* dark green to match your brand */
  font-weight: 400;
  letter-spacing: 0.25px;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 3px 8px 22px rgba(0, 80, 0, 0.2);
}

/* Project logo */
.project-card-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.project-card-logo img {
  max-width: 70%;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

/* Project name label below logo */
.project-card-name {
  font-family: var(--font-jost);
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.project-card-sub {
  font-family: var(--font-rubik);
  font-size: 8.5px;
  color: #666;
  text-align: center;
  line-height: 1.4;
}

/* ============================================================
   WHY CHOOSE US (image asset)
   ============================================================ */
.choose-us-section {
  width: 100%;
}
.choose-us-container {
  width: 100%;
}
.choose-us-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   CONTACT HEADER
   ============================================================ */
.contact-header {
  padding: 58px 20px 52px;
  background: #eef7ee;
  text-align: center;
}

.contact-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-subtitle {
  font-family: var(--font-rubik);
  font-size: 10.5px;
  font-weight: 500;
  color: #5a9a3a;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.contact-title {
  font-family: var(--font-jost);
  font-size: 34px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section {
  position: relative;
  background: #060f07;
  overflow: hidden;
  padding: 0;
}

/* Green radial glow + subtle bg image */
.footer-overlay {
  position: absolute;
  inset: 0;
  background-image: url("./images/contact.png");
  background-size: cover;
  background-position: center;
  opacity: 0.65;
  pointer-events: none;
}

.footer-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 100%,
    rgba(0, 130, 40, 0.25) 0%,
    transparent 70%
  );
}

.footer-container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 28px 0;
}

/* Description card */
.footer-card {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px 28px 20px;
  margin-bottom: 0;
}

.footer-card-content p {
  font-family: var(--font-rubik);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
  text-align: center;
  padding-bottom: 20px;
}

/* Contact bar — light green strip inside the dark card */
.contact-bar {
  background: #bce8bc;
  border-radius: 6px;
  padding: 20px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}
.contact-item:last-child {
  border-right: none;
}

.contact-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.contact-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.contact-text {
  font-family: var(--font-rubik);
  font-size: 11.5px;
  color: #111;
  line-height: 1.5;
  font-weight: 500;
}

/* Copyright strip */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 20px;
  position: relative;
}

.copyright {
  font-family: var(--font-rubik);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 30px;
  }
  .hero-section {
    height: 280px;
  }
  .about-container {
    flex-direction: column;
    gap: 28px;
  }
  .about-image-wrapper {
    width: 100%;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .projects-inner {
    padding: 0 16px 40px;
  }
  .contact-bar {
    flex-direction: column;
    gap: 18px;
  }
  .contact-item {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding-bottom: 14px;
  }
  .contact-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 540px) {
  .nav-links {
    display: none;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
