/* ========== Nort — tokens ========== */
:root {
  --green-dark: #051d05;
  --green: #35ac5f;
  --text: #051d05;
  --muted: #a2a2a2;
  --bg: #ffffff;
  --bg-tint: #fafafa;
  --line-light: rgba(255, 255, 255, 0.16);

  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --container: 1298px;
  --gutter: 40px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 2px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h2 { font-size: 28px; line-height: 1.36; font-weight: 400; letter-spacing: -0.01em; }
h3 { font-size: 19px; line-height: 1.4; font-weight: 400; }
p { font-size: 17px; line-height: 1.76; }
.small { font-size: 14px; line-height: 1.72; }
.muted { color: var(--muted); }
.tinted { background: var(--bg-tint); }

.link {
  display: inline-block;
  color: var(--green);
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }

.logo {
  font-size: 52px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
}

.section-head { max-width: 400px; }
.section-head h2 { margin-bottom: 18px; }

/* ========== Hero ========== */
.hero-media {
  height: 504px;
  background: #2b2217 url("img/hero.jpg") center / cover no-repeat;
}

.nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 32px;
}

.nav-links { display: flex; gap: 36px; padding-top: 18px; }
.nav-links a { color: #fff; font-size: 17px; }
.nav-links a:hover,
.nav-links a.is-underlined {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.hero-band {
  position: relative;
  background: var(--green-dark);
  color: #fff;
  min-height: 366px;
  padding-block: 44px 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 446px;
  gap: 40px;
}

.hero h1 {
  font-size: 54px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.015em;
  max-width: 470px;
}

.hero-copy { padding-top: 10px; }
.hero-copy p { margin-bottom: 26px; }

/* ========== About ========== */
.about { padding-block: 200px 160px; }

.about-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 128fr) minmax(0, 380fr) minmax(0, 99fr) minmax(0, 484fr) minmax(0, 207fr);
  align-items: center;
}

.about-text { grid-column: 2; }
.about-text h2 { margin-bottom: 52px; }
.about-img {
  grid-column: 4;
  width: 100%;
  aspect-ratio: 484 / 597;
  object-fit: cover;
}

/* ========== What we do ========== */
.services { padding-bottom: 164px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 112px;
}

.service {
  min-height: 222px;
  padding: 2px 32px 24px;
  border-left: 1px solid var(--green);
}
.service:last-child { border-right: 1px solid var(--green); }
.service h3 { margin-bottom: 34px; }
.service p { max-width: 240px; }

/* ========== What we did ========== */
.projects { padding-block: 92px 150px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px 33px;
  margin-top: 66px;
  margin-inline: -8px;
}

.project img {
  width: 100%;
  aspect-ratio: 416 / 252;
  object-fit: cover;
}

.project figcaption {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  font-size: 13px;
  line-height: 1.4;
}

/* ========== Testimonial ========== */
.testimonial { padding-block: 156px 146px; }

.quote {
  display: grid;
  grid-template-columns: 48px minmax(0, 588px);
  justify-content: center;
}

.quote-mark {
  width: 30px;
  height: 24px;
  fill: var(--green);
  margin-top: -8px;
}

.quote blockquote { grid-column: 2; }
.quote blockquote p { font-size: 18px; line-height: 1.68; color: var(--text); }

.quote figcaption {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 30px;
  font-size: 13px;
}
.quote-name { color: var(--green); }

/* ========== How we do it ========== */
.process { padding-block: 90px 124px; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: 40% 42.3% 1fr;
  margin-top: 96px;
}

/* line from first dot to last dot */
.steps::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 11px;
  right: calc(17.7% - 11px);
  height: 1px;
  background: var(--green);
}

.step { position: relative; padding-right: 24px; }

.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  margin-bottom: 50px;
}

.step h3 { margin-bottom: 34px; }
.step p { max-width: 240px; }

/* ========== Footer ========== */
.footer { background: var(--green-dark); color: #fff; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 382px;
  gap: 40px;
  padding-top: 92px;
  padding-bottom: 196px;
}

.logo-lg { align-self: start; }

.footer-cta h2 { margin-bottom: 22px; }
.footer-cta p { color: rgba(255, 255, 255, 0.72); margin-bottom: 16px; }

.footer-bottom { border-top: 1px solid var(--line-light); }

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 26px 30px;
  font-size: 13px;
}

.copyright { font-size: 13px; line-height: 1.5; }

.contacts { display: flex; gap: 60px; }
.contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ========== Tablet ========== */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .about-text, .about-img { grid-column: auto; }

  .services-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .service:nth-child(2) { border-right: 1px solid var(--green); }

  .projects-grid { grid-template-columns: repeat(2, 1fr); margin-inline: 0; }

  .hero h1 { font-size: 44px; }
  .hero-grid { grid-template-columns: 1fr 380px; }
}

/* ========== Mobile ========== */
@media (max-width: 720px) {
  :root { --gutter: 28px; }

  h2 { font-size: 24px; }
  p { font-size: 16px; }
  .link { font-size: 16px; }
  .logo { font-size: 46px; }

  /* Hero: headline sits on the photo, copy in the green band */
  .hero-media {
    height: 527px;
    background-image:
      linear-gradient(to bottom, rgba(5, 29, 5, 0) 55%, rgba(5, 29, 5, 0.45)),
      url("img/hero.jpg");
    background-position: center, 62% center;
  }
  .nav { padding-top: 28px; }
  .nav-links { display: none; }

  .hero-band { min-height: 0; padding-block: 40px 90px; }
  .hero-grid { display: block; }
  .hero h1 {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 0;
    transform: translateY(calc(-100% - 28px));
    font-size: 30px;
    line-height: 1.3;
    max-width: 300px;
  }
  .hero-copy { padding-top: 0; }
  .hero-copy p { margin-bottom: 30px; line-height: 1.8; }

  .about { padding-block: 90px 110px; }
  .about-grid { display: block; }
  .about-text h2 { margin-bottom: 28px; }
  .about-text p { margin-bottom: 64px; }

  .services { padding-bottom: 80px; }
  .services-grid { grid-template-columns: 1fr; row-gap: 0; margin-top: 64px; }
  .service,
  .service:last-child,
  .service:nth-child(2) {
    border: 0;
    border-top: 1px solid var(--green);
    min-height: 150px;
    padding: 24px 0 32px;
  }
  .service h3 { margin-bottom: 26px; }

  .projects { padding-block: 64px 80px; }
  .projects-grid { grid-template-columns: 1fr; gap: 56px; margin-top: 48px; }
  .project img { aspect-ratio: 335 / 247; }

  .testimonial { padding-block: 110px; }
  .quote { grid-template-columns: 1fr; padding-inline: 20px; }
  .quote-mark { margin: 0 0 4px -2px; }
  .quote blockquote,
  .quote figcaption { grid-column: 1; padding-left: 28px; }
  .quote blockquote p { font-size: 17px; }

  .process { padding-block: 64px 100px; }
  .steps { display: block; margin-top: 64px; }
  .steps::before {
    top: 11px;
    bottom: 40px;
    left: 11px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .step {
    display: grid;
    grid-template-columns: 22px 1fr;
    column-gap: 30px;
    padding: 0 0 110px;
  }
  .step:last-child { padding-bottom: 0; }
  .step-dot { margin-bottom: 0; grid-row: 1 / span 2; }
  .step h3 { grid-column: 2; margin-bottom: 26px; font-size: 17px; }
  .step p { grid-column: 2; }

  .footer-top { display: block; padding-top: 64px; padding-bottom: 72px; }
  .logo-lg { display: inline-block; margin-bottom: 72px; }

  .footer-bottom { border-top: 0; }
  .footer-bottom-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0;
    padding-block: 0;
  }
  .contacts {
    flex-direction: column;
    gap: 22px;
    padding-bottom: 64px;
  }
  .copyright {
    width: 100%;
    border-top: 1px solid var(--line-light);
    padding-block: 20px 28px;
  }
}
