/* Define some colours to use. */
:root {
  --ink: #183247;
  --accent: #258f88;
  --paper: #f6f9f8;
  --white: #ffffff;
}

/* Keep sizing predictable and remove the browser's default page margin. */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  /* A clean UI sans-serif, similar to the font in your Tally form. */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* The header uses flex so the logo and navigation stay on one line. */
.site-header {
  width: min(100% - 40px, 1080px);
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  width: 205px;
  height: auto;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  min-height: 420px;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
}

.eyebrow,
.section-label {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 14px 0 10px;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1;
}

.mission-statement {
  max-width: 560px;
  margin: 12px 0 0;
  color: #486071;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

/* Two-column section becomes one column on smaller screens. */
.about {
  width: min(100% - 40px, 900px);
  margin: 0 auto;
  padding: 90px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.about h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.about p {
  max-width: 620px;
  margin: 0;
  color: #486071;
}

footer {
  padding: 22px 20px;
  border-top: 1px solid #dce6e4;
  color: #607381;
  font-size: 0.9rem;
  text-align: center;
}

footer p {
  margin: 0;
}

/* Content and embedded form for separate page. */
.contact-page {
  width: min(100% - 40px, 800px);
  min-height: 560px;
  margin: 0 auto;
  padding: 76px 0 100px;
}

.contact-page h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.contact-intro {
  max-width: 600px;
  margin: 0;
  color: #486071;
}

.contact-form {
  display: block;
  width: 100%;
  min-height: 400px;
  margin-top: 32px;
  border: 0;
}

/* Stack sections on phones. */
@media (max-width: 600px) {
  .site-header {
    min-height: 84px;
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .brand img {
    width: 170px;
  }

  nav {
    gap: 16px;
  }

  .hero {
    min-height: 360px;
    padding: 76px 20px;
  }

  .about {
    padding: 64px 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-page {
    min-height: 480px;
    padding: 58px 0 76px;
  }
}
