/* V44 final targeted polish: contact/enquiry professionalism + 8px project-card rhythm */

/* ---------- Contact / enquiry section ---------- */
.contact-layout {
  display: grid !important;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr) !important;
  gap: 36px !important;
  align-items: start !important;
}

.contact-layout > div:first-child {
  position: relative;
  padding: 34px !important;
  border: 1px solid rgba(8, 76, 105, .12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(39, 176, 112, .12), transparent 36%),
    linear-gradient(145deg, #ffffff 0%, #f6fbfa 100%);
  box-shadow: 0 18px 55px rgba(4, 55, 78, .09);
  overflow: hidden;
}

.contact-layout > div:first-child::after {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 170, 115, .16), rgba(1, 143, 177, .09));
  pointer-events: none;
}

.contact-layout > div:first-child h2 {
  margin: 12px 0 24px !important;
  max-width: 520px;
  font-size: clamp(2rem, 3vw, 3.15rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em;
}

.contact-cards {
  display: grid !important;
  gap: 12px !important;
}

.contact-cards > a,
.contact-cards > div {
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 18px 20px 18px 64px !important;
  border: 1px solid rgba(8, 76, 105, .12) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 8px 24px rgba(3, 56, 78, .055);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.contact-cards > a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 163, 132, .34) !important;
  box-shadow: 0 14px 32px rgba(3, 56, 78, .10);
}

.contact-cards > a::before,
.contact-cards > div::before {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #2eaa68, #009eb0);
  box-shadow: 0 8px 18px rgba(0, 153, 154, .22);
}

.contact-cards > a[href^="tel"]::before { content: "☎"; }
.contact-cards > a[href*="wa.me"]::before { content: "W"; }
.contact-cards > div::before { content: "⌖"; }

.contact-cards b {
  color: #063c58;
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 5px;
}

.contact-cards span {
  color: #638096;
  font-size: 14px;
  line-height: 1.55;
}

.contact-layout > div:last-child {
  min-width: 0;
}

.contact-layout .lead-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px 16px !important;
  padding: 30px !important;
  border: 1px solid rgba(8, 76, 105, .13) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 20px 60px rgba(4, 55, 78, .10) !important;
}

.contact-layout .lead-form > div,
.contact-layout .lead-form > label,
.contact-layout .lead-form > button {
  min-width: 0;
}

.contact-layout .lead-form label:not(.consent) {
  display: block;
  margin: 0 0 7px !important;
  color: #476b82;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.contact-layout .lead-form input:not([type="checkbox"]),
.contact-layout .lead-form select,
.contact-layout .lead-form textarea {
  width: 100% !important;
  min-width: 0 !important;
  border: 1px solid #c9dce6 !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: #073c57 !important;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(8, 61, 85, .025);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-layout .lead-form input:not([type="checkbox"]),
.contact-layout .lead-form select {
  height: 52px !important;
  padding: 0 15px !important;
}

.contact-layout .lead-form textarea {
  min-height: 118px !important;
  padding: 14px 15px !important;
  resize: vertical;
}

.contact-layout .lead-form input:focus,
.contact-layout .lead-form select:focus,
.contact-layout .lead-form textarea:focus {
  outline: none;
  border-color: #12a893 !important;
  box-shadow: 0 0 0 4px rgba(18, 168, 147, .11) !important;
  background: #fff !important;
}

.contact-layout .lead-form .full {
  grid-column: 1 / -1 !important;
}

.contact-layout .lead-form .consent {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: -2px 0 0 !important;
  color: #587589 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.45;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}

.contact-layout .lead-form .consent input[type="checkbox"] {
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: #0aa48e;
}

.contact-layout .lead-form button.full {
  grid-column: 1 / -1 !important;
  min-height: 52px;
  margin-top: 0 !important;
  border-radius: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  box-shadow: 0 12px 28px rgba(0, 154, 153, .20);
}

/* ---------- Project-card 8px vertical rhythm ---------- */
.home-project-body,
.project-card .card-body,
.projects-grid .project-card > div:last-child {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.home-project-body > *,
.project-card .card-body > *,
.projects-grid .project-card > div:last-child > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.home-project-body {
  padding: 20px 22px 22px !important;
}

.home-project-body h3 {
  min-height: 0 !important;
  line-height: 1.3 !important;
}

.home-project-body .project-location,
.home-project-body .project-price,
.home-project-body .project-config {
  min-height: 0 !important;
}

.home-project-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 48px !important;
  gap: 8px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.home-project-actions > a {
  min-height: 48px;
}

/* Keep grid row gap intentional, but tighter */
.home3-project-grid,
.projects-eight-grid,
.projects-grid {
  row-gap: 20px !important;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
}

@media (max-width: 640px) {
  .contact-layout > div:first-child,
  .contact-layout .lead-form {
    padding: 22px !important;
    border-radius: 19px !important;
  }

  .contact-layout .lead-form {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .contact-layout .lead-form .full,
  .contact-layout .lead-form .consent,
  .contact-layout .lead-form button.full {
    grid-column: auto !important;
  }

  .home-project-body {
    padding: 17px 18px 19px !important;
  }
}
