:root {
  --dark: #102015;
  --green: #1f7a3a;
  --light-green: #eaf7ee;
  --cream: #fbfaf5;
  --gray: #667085;
  --border: #d9e3dc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--dark);
}

.hero {
  min-height: 520px;
  background:
    linear-gradient(rgba(16, 32, 21, 0.72), rgba(16, 32, 21, 0.72)),
    url("https://images.unsplash.com/photo-1558904541-efa843a96f01?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: white;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 7%;
}

.logo {
  font-size: 28px;
  font-weight: 800;
}

.nav-btn,
.primary-btn {
  background: var(--green);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}

.hero-content {
  max-width: 720px;
  padding: 85px 7%;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  margin: 0 0 20px;
}

.hero p {
  font-size: 22px;
  max-width: 580px;
  color: #e8f5ea;
}

main {
  padding: 55px 7%;
}

section {
  margin-bottom: 70px;
}

h2 {
  font-size: 36px;
  margin-bottom: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.job-form,
.job-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(16, 32, 21, 0.06);
}

.card h3,
.job-card h3 {
  margin-top: 0;
}

.section-title p {
  color: var(--gray);
}

.job-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
}

textarea {
  min-height: 90px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.map-header h3 {
  margin-bottom: 4px;
}

.map-header p {
  margin-top: 0;
  color: var(--gray);
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-actions button {
  border: 1px solid var(--border);
  background: var(--light-green);
  color: var(--dark);
  border-radius: 10px;
  padding: 10px 13px;
  cursor: pointer;
  font-weight: 700;
}

#map {
  width: 100%;
  height: 430px;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.estimate {
  background: var(--light-green);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.jobs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.job-meta {
  color: var(--gray);
  line-height: 1.6;
}

.bid-input {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.bid-input input {
  flex: 1;
}

.bid-input button {
  border: none;
  background: var(--green);
  color: white;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 30px;
  color: var(--gray);
}

@media (max-width: 800px) {
  .cards,
  .jobs-list {
    grid-template-columns: 1fr;
  }

  .map-header {
    display: grid;
  }

  main {
    padding: 35px 5%;
  }

  nav {
    padding: 20px 5%;
  }
}
