/* Approved homepage styling; other pages retain main.css. */
:root {
  --background: #2f2e41;
  --surface: #2f3a51;
  --accent: #00b499;
  --text: #fff;
  --muted: #d8dbe4;
  --line: rgba(255, 255, 255, 0.18);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Lexend, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 7px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.wrap {
  max-width: 1200px;
  margin: auto;
  padding-inline: 40px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
}
.logo {
  height: 78px;
  width: auto;
}
nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14px;
}
nav a {
  text-decoration: none;
}
nav a:last-child {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
}
nav a:hover {
  color: var(--accent);
}
h1,
h2 {
  font-family: Spectral, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(38px, 4.6vw, 64px);
  margin: 0;
}
h1 span {
  color: var(--accent);
}
h2 {
  font-size: clamp(32px, 3.3vw, 44px);
  margin: 0 0 40px;
}
h3 {
  font-weight: 500;
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 17px;
}
p {
  margin: 0 0 20px;
  color: var(--muted);
}
.hero {
  text-align: center;
  padding-block: 80px 94px;
}
.hero p {
  max-width: 800px;
  margin: 30px auto;
  font-size: 19px;
  line-height: 1.8;
}
.button {
  display: inline-flex;
  gap: 35px;
  align-items: center;
  background: var(--accent);
  color: #152b30;
  padding: 14px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
}
.button:hover {
  background: #34cbb3;
}
.band {
  background: var(--surface);
}
.about {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: center;
  padding-block: 65px;
}
.about h2 {
  margin-bottom: 23px;
}
.illustration {
  border-radius: 24px;
  width: 100%;
}
.lead {
  font-size: 22px;
  color: #fff;
  line-height: 1.6;
}
.section {
  padding-block: 80px;
}
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.services article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.number {
  display: block;
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 20px;
}
.services p,
.projects p {
  margin-bottom: 0;
}
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}
.projects article {
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.eyebrow {
  font-size: 14px;
  color: var(--muted);
}
.projects h3 {
  font:
    500 42px Spectral,
    serif;
  margin: 10px 0 16px;
}
.projects h3 span {
  float: right;
  color: var(--accent);
  font-size: 30px;
}
.needs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px 65px;
}
.needs article {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}
.needs p {
  margin-bottom: 0;
}
.method {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 95px;
  align-items: center;
}
.steps {
  display: grid;
  gap: 22px;
}
.steps h3 {
  margin-bottom: 9px;
}
.steps p {
  margin-bottom: 0;
}
.commitment {
  text-align: center;
  max-width: 920px;
}
.commitment h2 {
  margin-bottom: 25px;
}
.contact {
  background: var(--accent);
  color: #132c31;
  text-align: center;
  padding-block: 70px;
}
.contact h2 {
  margin-bottom: 24px;
}
.contact p {
  color: inherit;
  max-width: 670px;
  margin: 0 auto 28px;
  font-size: 18px;
}
.contact a {
  font-size: clamp(21px, 3.5vw, 36px);
  font-weight: 400;
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  padding-block: 28px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .wrap {
    padding-inline: 24px;
  }
  .header {
    padding-block: 20px;
  }
  .logo {
    height: 59px;
  }
  nav {
    gap: 0;
  }
  nav a:not(:last-child) {
    display: none;
  }
  nav a:last-child {
    font-size: 12px;
    max-width: 155px;
  }
  .hero {
    padding-block: 50px 65px;
  }
  .hero p {
    font-size: 17px;
  }
  .about,
  .method {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about .illustration {
    max-width: 220px;
    margin: auto;
  }
  .services,
  .projects,
  .needs {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .section {
    padding-block: 55px;
  }
  .about {
    padding-block: 45px;
  }
  .method .illustration {
    max-width: 260px;
    margin: auto;
  }
  .contact {
    padding-block: 50px;
  }
  h2 {
    margin-bottom: 30px;
  }
  .lead {
    font-size: 20px;
  }
  footer {
    gap: 20px;
    font-size: 12px;
  }
  .button {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
