/* Keep all images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Header icon */
.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img {
  display: block;
  width: 64px;
  height: auto;
}

/* Footer horizontal logo */
.footer-logo img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --primary: #2f5bea;
  --primary-dark: #2146c7;
  --line: #e6e9f0;
  --soft: #eef3ff;
  --dark: #111827;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  padding: 18px max(24px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

header p {
  margin: 0;
  font-size: 22px;
  color: var(--dark);
}

header nav {
  font-size: 14px;
  color: var(--muted);
}

main, footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

body > hr {
  display: none;
}

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

section:first-child {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 0;
}

section:first-child > p:first-child {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

h1 {
  max-width: 800px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 1.02;
  margin: 12px 0 24px;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 28px;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

section > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

section:first-child > p {
  font-size: 19px;
}

section:first-child > p:last-child {
  margin-top: 24px;
}

section:first-child > p:last-child a:first-child,
#contact a[href^="mailto"] {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
}

section:first-child > p:last-child a:first-child:hover,
#contact a[href^="mailto"]:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

#services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

#services > h2 {
  grid-column: 1 / -1;
}

#services article,
#learn article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

#services article p,
#learn article p {
  color: var(--muted);
  margin-bottom: 0;
}

#approach h3 {
  margin-top: 30px;
  color: var(--primary);
}

#who-we-help ul,
section ul {
  padding-left: 22px;
}

#who-we-help li,
section li {
  margin: 9px 0;
}

#learn {
  background: var(--soft);
  margin-left: calc((100vw - min(1120px, calc(100vw - 40px))) / -2);
  margin-right: calc((100vw - min(1120px, calc(100vw - 40px))) / -2);
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
}

#learn article {
  margin: 14px 0;
}

#learn article h3 {
  margin-top: 0;
}

#contact {
  text-align: left;
}

footer {
  padding: 48px 0;
  color: var(--muted);
  font-size: 14px;
}

footer > p:first-child {
  color: var(--dark);
  font-size: 20px;
}

@media (max-width: 760px) {
  header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  header nav {
    line-height: 2;
  }

  section {
    padding: 52px 0;
  }

  #services {
    grid-template-columns: 1fr;
  }

  #services > h2 {
    grid-column: auto;
  }

  h1 {
    font-size: 48px;
  }
}
