/* layout */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy: #1b1e49;
  --logo-blue: #1b3a8c;
  --green: #8cbc3a;
  --purple: #4e308a;
  --orange: #f47f20;
  --gray-text: #666;
  --gray-bg: #e8e8e8;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}

img { max-width: 100%; height: auto; display: block; }

.value-icon img,
.card-icon,
.footer-email svg {
  max-width: none;
}
a { color: inherit; }

.wrap {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.narrow { max-width: 800px; }

h2, h3 { color: #333; }

/* Section titles — one size (matches We Value) */
.values h2,
.services h2,
.about > .wrap > h2,
.contact h2 {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 2rem;
}

.services h2.pill-heading {
  margin: 0 auto 2rem;
}

/* header */
.site-header {
  position: relative;
  z-index: 200;
}

.site-header .header-inner {
  position: sticky;
  top: 0;
  z-index: 202;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

@media (min-width: 769px) {
  .site-header {
    display: flex;
    justify-content: center;
  }

  .site-header .nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1080px, 92%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    pointer-events: none;
    z-index: 203;
  }

  .site-header .nav a {
    pointer-events: auto;
  }
}

.nav-backdrop {
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  position: relative;
}

.logo-link { flex-shrink: 0; }

.logo { width: 240px; }

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  color: var(--gray-text);
}

.nav a:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  min-width: 48px;
  min-height: 48px;
  padding: 10px 12px;
  margin: -6px -8px -6px 0;
  flex-shrink: 0;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
}

.nav-toggle-bars span {
  display: block;
  height: 3px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
}

/* hero */
.hero {
  background: var(--navy) url('../images/hero.jpg') center / cover no-repeat;
  padding: 10vh 0;
}

.hero-box {
  background: rgba(27, 58, 140, 0.88);
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-box p {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
}

/* intro */
.intro {
  padding: 3rem 0;
  background: #fff;
}

.intro > .wrap > p {
  margin-top: 0;
  color: var(--navy);
  font-size: 1.1rem;
}

.intro ul {
  padding-left: 1.35rem;
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
}

.intro li {
  margin-bottom: 0.75rem;
}

/* values */
.values {
  background: var(--green);
  padding: 3rem 0;
  color: #fff;
}

.values h2 {
  color: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.value {
  text-align: center;
  padding: 1rem 1.5rem;
  border-right: 1px dashed rgba(255,255,255,.55);
}

.value:last-child { border-right: none; }

.value-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto .85rem;
}

.value-icon img {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.value h3 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 .75rem;
}

.value p {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.6;
}

/* services */
.services {
  padding: 3rem 0;
  background-color: var(--gray-bg);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,.45) 2px,
    rgba(255,255,255,.45) 4px
  );
}

.pill-heading {
  background: #fff;
  border-radius: 999px;
  padding: .45rem 0;
  color: #444;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  max-width: 280px;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.card-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(64%) sepia(32%) saturate(707%) hue-rotate(47deg) brightness(95%) contrast(89%);
}

.card h3 {
  margin: 0;
  color: var(--green);
  font-size: 1.5rem;
}

.card p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.card p:last-child { margin-bottom: 0; }

.card strong { color: var(--green); }

/* about */
.about {
  padding: 3rem 0;
  background: #fff;
}

.about > .wrap > h2 {
  color: #444;
}

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.person {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
}

.person img {
  border-radius: 16px;
  margin-bottom: 1rem;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.person h3 {
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.person .title {
  font-style: italic;
  margin: 0 0 1rem;
  color: #555;
}

.person > p:not(.title) {
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
  flex: 1;
  line-height: 1.65;
}

.creds {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 1rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.creds li {
  margin-bottom: .65rem;
}

.creds .degree {
  display: block;
  font-weight: 600;
  color: #444;
}

.creds .school {
  display: block;
  color: #777;
}

.email-icon {
  display: flex;
  justify-content: center;
  color: var(--navy);
  margin-top: auto;
  padding-top: .5rem;
}

.email-icon:hover { color: var(--orange); }

/* contact */
.contact {
  background: var(--purple);
  padding: 3rem 0 4rem;
  color: #fff;
}

.contact h2 {
  color: #fff;
}

form label,
form fieldset {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #fff;
}

form input,
form textarea {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .85rem 1rem;
  border: none;
  border-radius: 16px;
  font: inherit;
  font-size: 1.05rem;
  color: #333;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

fieldset {
  border: none;
  padding: 0;
}

fieldset legend {
  margin-bottom: .75rem;
  color: #fff;
}

.role-options label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .85rem;
  font-size: 1.05rem;
}

.role-options input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.form-actions {
  clear: both;
  text-align: right;
  padding-top: .5rem;
}

.recaptcha-wrap {
  margin: 1rem 0;
}

button[type="submit"] {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: .85rem 2.25rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #e06f10;
}

.form-notice {
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
}

.form-notice.error { background: rgba(255,100,100,.2); }

.hp { display: none; }

/* footer */
footer {
  background: #2a2a2a;
  color: #bbb;
  padding: 2.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  align-items: start;
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: .45rem;
  font-size: 1.0625rem;
}

.footer-nav a:hover { color: var(--green); }

.footer-grid h4 {
  color: #bababa;
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: .1em;
  border-bottom: 1px dotted #666;
  padding-bottom: .5rem;
  margin: 0 0 .75rem;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.0625rem;
}

.footer-email:hover { color: var(--green); }

.footer-logo img {
  margin: 0 auto;
  width: 200px;
}

.footer-copy {
  border-top: 1px dotted #444;
  padding: 1rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy p { margin: 0; }

.footer-mark {
  flex-shrink: 0;
  opacity: .9;
}

/* back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: opacity .2s, transform .2s;
}

.back-to-top:hover {
  background: #e06f10;
  transform: translateY(-2px);
}

.back-to-top[hidden] {
  display: none;
}

/* mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(27, 30, 73, 0.55);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
  }

  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header {
    isolation: isolate;
  }

  .site-header .header-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem 4%;
    z-index: 202;
    background: #fff;
  }

  .site-header.menu-open {
    box-shadow: none;
  }

  .site-header.menu-open .header-inner {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  }

  .nav {
    position: fixed;
    top: var(--header-height, 72px);
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0.25rem 4% 1.25rem;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    z-index: 201;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
    display: flex;
    border-top: 1px solid #eee;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  .values-grid,
  .team,
  .row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .value {
    border-right: none;
    border-bottom: 1px dashed rgba(255,255,255,.55);
  }

  .value:last-child { border-bottom: none; }
}

/* scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition:
      opacity 0.65s ease,
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
