/* Color palette and shared settings */
:root {
  --navy: #171b3f;
  --purple: #553580;
  --violet: #74529b;
  --blue: #39769c;
  --teal: #78b8b0;
  --cream: #fcf9f6;
  --light: #f4f2f8;
  --text: #293044;
  --white: #fff;
  --shadow: 0 8px 24px rgba(23, 27, 63, .07);
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 1rem/1.65 Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.17);
}

.nav-wrap {
  max-width: 1160px;
  min-height: 76px;
  padding: .5rem 1.5rem;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 48px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.25rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: .94rem;
}

.nav-links a:hover {
  color: #a8d8d1;
}

/* Hero section */
.hero {
  color: var(--white);
  background: radial-gradient(circle at 78% 44%, rgba(115,82,155,.43), transparent 35%), linear-gradient(125deg, #171b3f 15%, #3a285d 65%, #265a80);
}

.hero-inner {
  max-width: 1160px;
  margin: auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  align-items: center;
  gap: 2rem;
}

.hero-logo {
  width: min(100%, 340px);
  height: auto;
  justify-self: center;
  transform: translateX(-1.5rem);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.12));
}

/* Headings and introductory labels */
.eyebrow {
  color: #a8d8d1;
  font-weight: 700;
  letter-spacing: .15em;
  font-size: .77rem;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  margin: .6rem 0 1.25rem;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin: 0 0 1rem;
}

h3 {
  color: var(--purple);
  font: 700 1.25rem/1.3 Georgia, "Times New Roman", serif;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  font-size: 1.16rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  margin-bottom: 1rem;
}

.hero-note {
  margin: 0;
  font-size: .95rem;
  color: rgba(255,255,255,.82);
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--teal);
  color: #171b3f;
  padding: .8rem 1.3rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: #98ccc5;
}

.button-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.45);
}

.button-secondary:hover {
  background: rgba(255,255,255,.08);
}

/* Shared section layout */
.section-wrap {
  max-width: 1160px;
  margin: auto;
  padding: 4.25rem 1.5rem;
  scroll-margin-top: 86px;
}

.intro {
  text-align: center;
  max-width: 790px;
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--light);
  border: 1px solid #e9e5f0;
  border-top: 4px solid var(--teal);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: background-color .2s ease;
}

.card:hover {
  background: var(--white);
}

.card h3 {
  color: var(--navy);
  margin: 0;
}

.card ul {
  margin: .75rem 0 0;
  padding-left: 1.25rem;
}

.card li {
  padding-left: .15rem;
}

.card li + li {
  margin-top: .55rem;
}

.card li::marker {
  color: var(--blue);
}

.card strong {
  color: var(--purple);
  font-weight: 700;
}

/* Current project */
.project {
  background: var(--cream);
  scroll-margin-top: 76px;
  border-top: 1px solid #efe6e0;
  border-bottom: 1px solid #efe6e0;
}

.project-inner {
  max-width: 920px;
}

.project-inner > p {
  max-width: 72ch;
}

.project .eyebrow {
  color: #326f69;
}

.text-link {
  color: #542c78;
  font-weight: 700;
  text-underline-offset: 4px;
}

/* About section */
.about {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 3rem;
  align-items: center;
}

.about-team {
  background: var(--light);
  border-radius: 16px;
}

.about-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
}

.mission {
  border-left: 4px solid var(--teal);
  padding-left: 1rem;
  font: italic 1.2rem/1.5 Georgia, "Times New Roman", serif;
}

.person-bio {
  border-top: 1px solid #ded8e9;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.person-bio h3 {
  color: var(--navy);
  margin: 0 0 .5rem;
}

.person-bio p:last-child {
  margin-bottom: 0;
}

/* Contact section */
.contact {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  scroll-margin-top: 76px;
}

.contact-inner {
  max-width: 720px;
}

.contact h2 {
  color: var(--white);
}

.contact-form-wrap {
  max-width: 640px;
  margin: 24px auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}

.contact-email {
  overflow-wrap: anywhere;
}

.contact-email a {
  color: #d8e8f7;
}

/* Footer */
footer {
  padding: 1.4rem;
  background: #0e112a;
  color: #d8dbe7;
  text-align: center;
  font-size: .88rem;
}

/* Mobile and tablet layout */
@media (max-width: 760px) {
  .nav-wrap {
    flex-direction: column;
    gap: .2rem;
    padding: .6rem 1rem 1rem;
  }

  .nav-links {
    justify-content: center;
    gap: .3rem .9rem;
  }

  .nav-links a {
    font-size: .88rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3.5rem 1.25rem;
  }

  .hero-logo {
    width: 160px;
    grid-row: 1;
    transform: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-logo {
    display: none;
  }

  .section-wrap {
    padding: 3.25rem 1.25rem;
    scroll-margin-top: 120px;
  }

  .project, .contact {
    scroll-margin-top: 120px;
  }

}

/* Reduced-motion accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

}

#services-title {
  text-align: center;
}

#hero-title span {
  display: block;
}

#intro-title {
  text-align: center;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.3;
}

#intro-title span {
  display: block;
}


/* Our approach: full-width band, image and educational philosophy. */
.approach-band {
  background: var(--light);
  border-top: 1px solid #e9e5f0;
  border-bottom: 1px solid #e9e5f0;
  scroll-margin-top: 86px;
}

.approach-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.approach-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.approach-copy {
  min-width: 0;
  text-align: left;
}

.approach-label {
  margin: 0 0 1rem;
  color: #326f69;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.approach-label::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--teal);
}

.approach-copy #intro-title {
  text-align: left;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
}

.approach-copy #intro-title span {
  display: block;
}

.approach-copy #intro-title span:last-child {
  color: var(--purple);
}

.approach-copy > p:not(.approach-label) {
  max-width: 58ch;
  margin: 1rem 0 0;
}

@media (max-width: 760px) {
  .approach-band {
    scroll-margin-top: 120px;
  }

  .approach-inner {
    grid-template-columns: 1fr;
  }
}
