@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;700&family=Roboto:ital,wght@0,400;0,500;0,700;1,400&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

:root {
  --brand-green: #94ba65;
  --brand-green-dark: #749b46;
  --brand-charcoal: #353432;
  --brand-charcoal-light: #4e4d4a;
  --brand-text: #505050;
  --brand-muted: #6f7478;
  --brand-line: #e7e7e7;
  --brand-soft: #f6f8f4;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--brand-text);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  line-height: 1.7;
  background: var(--white);
}

a {
  color: var(--brand-green-dark);
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

a:hover {
  color: #5f7f39;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  color: var(--brand-charcoal-light);
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1000px, 92%);
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 5;
  color: #ecf0f1;
  font-size: 0.9rem;
  background: var(--brand-charcoal);
  border-bottom: 1px solid #666;
}

.topbar .container {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.topbar span:first-child::before {
  content: "\f0e0";
  margin-right: 0.45rem;
  font-family: FontAwesome;
  color: var(--brand-green);
}

.topbar span:last-child::before {
  content: "\f098";
  margin-right: 0.45rem;
  font-family: FontAwesome;
  color: var(--brand-green);
}

header {
  color: var(--white);
  background: var(--brand-charcoal-light);
}

.nav-wrap {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #ecf0f1;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.55rem;
  text-shadow: 1px 1px 2px #333;
}

.logo:hover {
  color: #fff;
}

.logo img {
  width: 46px;
  height: 46px;
}

.logo span::after {
  content: "GIS + Business Systems";
  display: block;
  margin-top: 0.1rem;
  color: #ccc;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  text-shadow: none;
}

nav ul {
  display: flex;
  gap: 0;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav a {
  display: block;
  padding: 1.65rem 0.85rem;
  color: #ecf0f1;
  font-weight: 500;
}

nav a:hover,
nav a:focus {
  color: #fff;
  background: var(--brand-green);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72) 48%, rgba(255, 255, 255, 0.28)),
    url("../img/slide-1.jpg") center bottom / cover no-repeat;
  filter: saturate(0.65);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(53, 52, 50, 0.04), rgba(53, 52, 50, 0.18));
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 4.3rem 0 3.7rem;
}

.hero h1 {
  max-width: 760px;
  color: var(--brand-text);
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.9);
}

.hero p {
  max-width: 710px;
  color: #505050;
  font-size: 1.08rem;
}

.hero-product .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-product-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-product-media img {
  width: min(100%, 470px);
  display: block;
  border-radius: 3px;
  box-shadow: 0 16px 34px rgba(53, 52, 50, 0.2);
}

.hero-slider {
  min-height: 470px;
}

.hero-slider::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.68) 47%, rgba(255, 255, 255, 0.22)),
    url("../img/slide-1.jpg") center bottom / cover no-repeat;
  animation: mapShift 18s infinite;
}

.hero-stage {
  position: relative;
  min-height: 470px;
  padding: 0;
}

.hero .hero-stage {
  padding: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2.5rem;
  align-items: center;
  opacity: 0;
  transform: translateX(18px);
  animation: heroSlide 18s infinite;
}

.hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-copy {
  padding: 4rem 0 3.5rem;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 330px;
}

.hero-media img {
  max-width: 100%;
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.25));
  transform: translateY(10px);
}

.hero-media .hero-work-order {
  transform: translateY(-22px);
}

.hero-collage {
  position: relative;
  min-height: 350px;
  align-items: stretch;
}

.hero-collage img {
  position: absolute;
  max-height: none;
  object-fit: contain;
}

.hero-collage .hero-collage-main {
  z-index: 1;
  width: 68%;
  left: 5%;
  top: 0;
  transform: none;
}

.hero-collage .hero-collage-inset {
  z-index: 2;
  width: 48%;
  right: 0;
  bottom: 4%;
  transform: none;
}

.hero-collage-cip .hero-collage-main {
  z-index: 1;
  width: 90%;
  left: -2%;
  top: 0;
}

.hero-collage-cip .hero-collage-inset {
  z-index: 4;
  width: 46%;
  right: -3%;
  bottom: 20%;
}

.hero-collage-cip .hero-collage-common {
  z-index: 2;
  width: 64%;
  right: 1%;
  top: 32%;
  transform: none;
}

.hero-collage-cip .hero-collage-openwo {
  z-index: 3;
  width: 38%;
  left: 8%;
  bottom: 22%;
  transform: none;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 1.35rem;
  display: flex;
  gap: 0.45rem;
}

.hero-dots span {
  width: 34px;
  height: 4px;
  display: block;
  background: rgba(53, 52, 50, 0.26);
  animation: dotPulse 18s infinite;
}

.hero-dots span:nth-child(2) {
  animation-delay: 6s;
}

.hero-dots span:nth-child(3) {
  animation-delay: 12s;
}

.eyebrow {
  color: var(--brand-green-dark);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero .eyebrow {
  color: var(--brand-green-dark);
  font-size: 0.82rem;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--brand-green-dark);
  border-radius: 3px;
  color: var(--brand-green-dark);
  background: #fff;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.btn:hover,
.btn:focus {
  color: #fff;
  background: var(--brand-green-dark);
}

.btn-primary {
  color: #fff;
  background: var(--brand-green);
  border-color: var(--brand-green-dark);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-green-dark);
}

.btn-secondary {
  color: var(--brand-charcoal-light);
  border-color: #cfcfcf;
}

.section {
  padding: 3.2rem 0;
}

.section.alt {
  background: var(--brand-soft);
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

.section > .container > h2 {
  position: relative;
  padding-bottom: 0.65rem;
  margin-bottom: 1.35rem;
}

.section > .container > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 2px;
  background: var(--brand-green);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

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

.card {
  position: relative;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--brand-line);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(53, 52, 50, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #d6d6d6;
  box-shadow: 0 10px 24px rgba(53, 52, 50, 0.12);
}

.card h3 {
  color: var(--brand-charcoal-light);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.icon-card {
  padding-left: 4.35rem;
}

.icon-card .fa {
  position: absolute;
  top: 1.45rem;
  left: 1.2rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--brand-green);
  font-size: 1.65rem;
  transition: transform 280ms ease, color 180ms ease;
}

.icon-card:hover .fa {
  color: var(--brand-green-dark);
  transform: rotate(90deg);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 2.2rem;
  align-items: center;
  padding: 2.1rem 0;
  border-top: 1px solid var(--brand-line);
}

.feature-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.feature-row:nth-child(even) .feature-image {
  order: -1;
}

.feature-image img {
  width: min(100%, 430px);
  display: block;
  margin: 0 auto;
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(53, 52, 50, 0.12);
}

.tight {
  margin-top: 0.45rem;
  padding-left: 1.15rem;
}

.tight li {
  margin-bottom: 0.35rem;
}

.notice {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.72rem;
  margin-bottom: 0.8rem;
  border: 1px solid #cbd5d1;
  border-radius: 3px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(148, 186, 101, 0.35);
  border-color: var(--brand-green-dark);
}

footer {
  padding: 2.2rem 0;
  margin-top: 2rem;
  color: #ecf0f1;
  background: var(--brand-charcoal);
}

footer p {
  margin: 0;
}

footer a {
  color: #cfe6b6;
}

@keyframes heroSlide {
  0%,
  28% {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
  }
  33%,
  100% {
    opacity: 0;
    transform: translateX(-18px);
    z-index: 0;
  }
}

@keyframes dotPulse {
  0%,
  28% {
    background: var(--brand-green);
  }
  33%,
  100% {
    background: rgba(53, 52, 50, 0.26);
  }
}

@keyframes mapShift {
  0%,
  30% {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.68) 47%, rgba(255, 255, 255, 0.22)),
      url("../img/slide-1.jpg") center bottom / cover no-repeat;
  }
  33%,
  63% {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.68) 47%, rgba(255, 255, 255, 0.22)),
      url("../img/slide-2.jpg") center center / cover no-repeat;
  }
  66%,
  100% {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.68) 47%, rgba(255, 255, 255, 0.22)),
      url("../img/slide-3.jpg") center center / cover no-repeat;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide:first-child {
    display: grid;
    opacity: 1;
  }
}

@media (max-width: 850px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  nav ul {
    width: 100%;
  }

  nav a {
    padding: 0.65rem 0.8rem;
  }

  .hero,
  .hero-slider,
  .hero-stage {
    min-height: auto;
  }

  .hero .container {
    padding: 3rem 0;
  }

  .hero .hero-stage {
    padding: 0;
  }

  .hero-slide {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
    gap: 1rem;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-slide:first-child {
    display: grid;
  }

  .hero-copy {
    padding: 3rem 0 1rem;
  }

  .hero-slider .hero-media,
  .hero-product-media {
    display: none;
  }

  .hero-product .container {
    display: block;
  }

  .hero-dots {
    display: none;
  }

  .grid-2,
  .grid-3,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .feature-image {
    order: 0;
  }
}

@media (max-width: 560px) {
  .topbar .container {
    display: block;
  }

  .topbar span {
    display: block;
  }

  .logo {
    font-size: 1.35rem;
  }

  .logo span::after {
    display: none;
  }

  .hero::before,
  .hero-slider::before {
    background:
      linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86)),
      url("../img/slide-1.jpg") center bottom / cover no-repeat;
  }

  .icon-card {
    padding-left: 1.25rem;
  }

  .icon-card .fa {
    position: static;
    margin-bottom: 0.5rem;
  }
}
