:root {
  --contact-max: 1420px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f5f2ed;
  font-family: "IBM Plex Sans Hebrew", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
}

.topbar-inner {
  width: min(calc(100% - 96px), var(--contact-max));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.brand {
  justify-self: start;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 44px;
}

nav a {
  position: relative;
  font-size: 17px;
  white-space: nowrap;
}

nav a.active {
  font-weight: 700;
}

nav a.active::after {
  content: "";
  width: 100%;
  height: 2px;
  position: absolute;
  right: 0;
  bottom: -15px;
  background: var(--forest);
}

.header-contact {
  justify-self: end;
  font-size: 14px;
  font-weight: 700;
  direction: ltr;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  color: #fffdfa;
  background:
    linear-gradient(90deg, rgba(6, 36, 61, .22) 0%, rgba(6, 36, 61, .48) 52%, rgba(6, 36, 61, .9) 100%),
    linear-gradient(180deg, rgba(6, 36, 61, .12) 0%, rgba(6, 36, 61, .42) 100%),
    url("project-road.jpeg") center 48% / cover no-repeat;
  border-bottom: 3px solid rgba(181, 132, 78, .9);
}

.contact-hero::after {
  content: "";
  width: 420px;
  height: 420px;
  position: absolute;
  left: -180px;
  top: -270px;
  border: 1px solid rgba(201, 161, 111, .25);
  border-radius: 50%;
}

.contact-hero-inner {
  width: min(calc(100% - 96px), var(--contact-max));
  min-height: 410px;
  margin: auto;
  padding: 86px 0 76px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: "Heebo", Arial, sans-serif;
  font-size: clamp(52px, 5.4vw, 78px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .42);
}

.contact-hero p {
  max-width: 850px;
  margin: 22px 0 0;
  color: rgba(255, 253, 250, .92);
  font-family: "Heebo", Arial, sans-serif;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.2px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .48);
}

.contact-main {
  background:
    radial-gradient(circle at 8% 12%, rgba(181, 132, 78, .08), transparent 24%),
    #f5f2ed;
}

.contact-shell {
  width: min(calc(100% - 96px), var(--contact-max));
  margin: auto;
  padding: 82px 0 96px;
}

.contact-intro {
  max-width: 840px;
  margin-bottom: 38px;
}

.contact-intro h2 {
  margin: 0;
  color: var(--forest-deep);
  font-family: "Heebo", Arial, sans-serif;
  font-size: clamp(36px, 3.3vw, 52px);
  font-weight: 700;
  line-height: 1.1;
}

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

.contact-action {
  min-height: 292px;
  padding: 31px 30px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--forest-deep);
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e8ddcf;
  box-shadow: 0 18px 44px rgba(6, 36, 61, .08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.contact-action::before {
  content: "";
  width: 78px;
  height: 3px;
  position: absolute;
  top: 0;
  right: 30px;
  background: var(--leaf);
  transition: width .3s ease;
}

.contact-action:hover,
.contact-action:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(181, 132, 78, .78);
  box-shadow: 0 26px 58px rgba(6, 36, 61, .14);
}

.contact-action:hover::before,
.contact-action:focus-visible::before {
  width: calc(100% - 60px);
}

.contact-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 26px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--forest-deep);
  background: #fbf7f1;
  border: 1px solid rgba(181, 132, 78, .72);
  border-radius: 50%;
  font-family: "Heebo", Arial, sans-serif;
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
  transition: color .3s ease, background .3s ease, transform .3s ease;
}

.contact-icon--phone::before {
  content: "☎";
  transform: translateY(-1px);
}

.contact-icon--mail::before {
  content: "✉";
  font-size: 29px;
  transform: translateY(-1px);
}

.contact-icon--whatsapp {
  color: var(--forest-deep);
  background: #fbf7f1;
  border-color: rgba(181, 132, 78, .72);
}

.contact-icon--whatsapp img {
  display: block;
  width: 38px;
  height: 38px;
  filter: none;
  transition: filter .3s ease;
}

.contact-action:hover .contact-icon,
.contact-action:focus-visible .contact-icon {
  color: #fff;
  background: var(--leaf);
  transform: scale(1.04);
}

.contact-action--whatsapp:hover .contact-icon,
.contact-action--whatsapp:focus-visible .contact-icon {
  background: var(--leaf);
}

.contact-action--whatsapp:hover .contact-icon img,
.contact-action--whatsapp:focus-visible .contact-icon img {
  filter: none;
}

.contact-action-label {
  margin-bottom: 9px;
  color: #7d684e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
}

.contact-action strong {
  display: block;
  color: var(--forest-deep);
  font-family: "Heebo", Arial, sans-serif;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-action small {
  margin-top: auto;
  padding-top: 24px;
  color: #65736b;
  font-size: 14px;
  font-weight: 600;
}

.contact-action small::after {
  content: " ←";
  color: var(--leaf);
  font-size: 17px;
}

.office-panel {
  margin-top: 28px;
  padding: 34px 38px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  color: #fffdfa;
  background: var(--forest-deep);
  border-right: 4px solid var(--leaf);
}

.office-panel::after {
  content: "";
  width: 220px;
  height: 220px;
  position: absolute;
  left: -105px;
  top: -112px;
  border: 1px solid rgba(181, 132, 78, .25);
  border-radius: 50%;
}

.office-number {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: var(--leaf);
  border: 1px solid rgba(181, 132, 78, .55);
  border-radius: 50%;
  font-family: "Heebo", Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
}

.office-copy strong {
  display: block;
  margin-bottom: 7px;
  font-family: "Heebo", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.office-copy span {
  color: #d7dfe4;
  font-size: 16px;
  line-height: 1.75;
}

.office-link {
  min-height: 48px;
  padding: 12px 19px;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fffdfa;
  border: 1px solid rgba(255, 255, 255, .42);
  font-weight: 700;
  white-space: nowrap;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}

.office-link:hover,
.office-link:focus-visible {
  color: var(--forest-deep);
  background: #f2e6d7;
  border-color: #f2e6d7;
}

.footer {
  color: #eef2ef;
  background: var(--forest-deep);
}

.footer-main {
  width: min(calc(100% - 96px), var(--contact-max));
  margin: auto;
  padding: 52px 0 44px;
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 80px;
}

.footer-brand p {
  max-width: 420px;
  margin: 12px 0 0;
  color: #c8d1d8;
  font-size: 14px;
  line-height: 1.75;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-item {
  padding-right: 18px;
  border-right: 2px solid rgba(181, 132, 78, .7);
}

.contact-label {
  display: block;
  margin-bottom: 10px;
  color: #d1b28c;
  font-size: 11px;
}

.contact-value {
  color: #fffdfa;
  font-size: 15px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.footer-bottom-inner {
  width: min(calc(100% - 96px), var(--contact-max));
  min-height: 62px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #9eabb3;
  font-size: 11px;
}

.footer-bottom a {
  color: #dbe2e8;
}

@media (max-width: 980px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .header-contact {
    display: none;
  }

  .contact-actions {
    grid-template-columns: 1fr 1fr;
  }

  .contact-action:last-child {
    grid-column: 1 / -1;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-contact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .topbar-inner,
  .contact-hero-inner,
  .contact-shell,
  .footer-main,
  .footer-bottom-inner {
    width: min(calc(100% - 40px), var(--contact-max));
  }

  .topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .contact-hero-inner {
    min-height: 300px;
    padding: 62px 0 54px;
  }

  .contact-hero {
    background:
      linear-gradient(90deg, rgba(6, 36, 61, .52) 0%, rgba(6, 36, 61, .74) 52%, rgba(6, 36, 61, .92) 100%),
      linear-gradient(180deg, rgba(6, 36, 61, .18) 0%, rgba(6, 36, 61, .46) 100%),
      url("project-road.jpeg") center 48% / cover no-repeat;
  }

  .contact-shell {
    padding: 58px 0 68px;
  }

  .contact-intro {
    margin-bottom: 34px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .contact-action,
  .contact-action:last-child {
    min-height: 258px;
    grid-column: auto;
  }

  .office-panel {
    padding: 28px 24px;
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .office-link {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-action,
  .contact-icon,
  .contact-action::before,
  .office-link {
    transition: none;
  }
}
