/* Impact Right: development advisory, evidence and institutional performance. */
:root {
  --ink: #153548;
  --text: #344e5b;
  --teal: #146b64;
  --teal-hover: #10564f;
  --muted: #49606c;
  --paper: #ffffff;
  --surface: #f1f6f5;
  --line: #d8e5e2;
}
body { color: var(--text); font-family: "Open Sans", sans-serif; line-height: 1.7; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: "Open Sans", sans-serif; }
::selection { background: #c9e8e1; color: var(--ink); }
input, textarea { caret-color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
a { text-underline-offset: 4px; }
html { scrollbar-color: #73968f var(--surface); }
#header { box-shadow: 0 1px 0 var(--line); }
#header .logo h1 { font-size: 25px; font-weight: 700; letter-spacing: -0.7px; }
#header .logo h1 a { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.navbar .getstarted { border-radius: 4px; font-weight: 600; }
.home-page #hero {
  height: auto;
  min-height: 0;
  padding: 80px 0;
  margin: 72px 0 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.home-page #main { margin-top: 0; }
.home-page #hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(38px, 3.8vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 11.5em;
  text-wrap: balance;
}
.home-page #hero h2 {
  color: var(--muted);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.7;
  margin-top: 26px;
  max-width: 50ch;
}
.home-page #hero .btn-get-started {
  font-family: inherit;
  letter-spacing: 0;
  font-weight: 600;
  padding: 12px 24px;
  margin-top: 28px;
  border-radius: 4px;
}
.home-page #hero .hero-img { padding-left: 40px; align-self: center; }
.home-page #hero .hero-img img { width: 100%; max-width: 580px; }
.home-page section { padding: 88px 0; }
.home-page .about h3 { font-size: 32px; line-height: 1.25; letter-spacing: -0.025em; }
.home-page .about p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.home-page .about-img { padding-right: 24px; }
.home-page .about .about-img img { max-width: 100%; width: 100%; }
.home-page .about-principles { margin-top: 28px; }
.home-page .about-principles > div { display: grid; grid-template-rows: 44px minmax(3.2em, auto) 1fr; align-content: start; }
.home-page .about-principles i { font-size: 28px; color: var(--teal); margin: 0; }
.home-page .about-principles h4 { font-size: 19px; line-height: 1.4; margin: 0 0 12px; color: var(--ink); }
.home-page .about-principles p { margin: 0; font-size: 15px; }
.home-page .section-title { padding-bottom: 24px; }
.home-page .section-title h2 { color: var(--teal); font-size: 16px; font-weight: 600; }
.home-page .section-title p { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--ink); font-size: 36px; line-height: 1.25; letter-spacing: -0.025em; text-wrap: balance; }
.home-page .section-title p::after { display: none; }
.home-page .section-intro { max-width: 76ch; margin: 0 auto 40px; text-align: center; line-height: 1.8; color: var(--muted); }
.home-page .services .icon-box { background: transparent; border: 0; border-top: 1px solid #bdcfca; border-radius: 0; box-shadow: none; padding: 28px 8px 24px 0; margin-bottom: 24px; text-align: left; width: 100%; }
.home-page .services .icon-box:hover { transform: none; border-color: var(--teal); }
.home-page .services .icon i { font-size: 28px; margin-bottom: 18px; color: var(--teal); }
.home-page .services .title { font-size: 19px; line-height: 1.45; }
.home-page .services .title a { color: var(--ink); }
.home-page .services .title a:hover { color: var(--teal); text-decoration: underline; }
.home-page .services .description { color: var(--muted); line-height: 1.8; }
.home-page .services .icon-box { scroll-margin-top: 100px; }
.home-page .digital-heading { margin-top: 40px; }
.home-page #approach { background: var(--ink); }
.home-page #approach .section-title h2 { color: #9ed8cc; }
.home-page #approach .section-title p, .home-page #approach h3 { color: #fff; }
.home-page #approach .row { margin-top: 28px; }
.home-page #approach h3 { font-size: 23px; margin: 0 0 16px; letter-spacing: 0; }
.home-page #approach .row p { color: #c9dfdd; font-size: 16px; }
.home-page #contact .project-brief { padding: 30px; background: var(--surface); line-height: 1.8; height: 100%; }
.home-page .project-brief h3 { font-size: 25px; line-height: 1.35; margin-bottom: 18px; }
.home-page .project-brief h4 { font-size: 17px; margin-top: 28px; }
.home-page .project-brief ul { padding-left: 20px; }
.home-page .project-brief li { margin-bottom: 10px; }
.home-page .contact .php-email-form { box-shadow: none; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-bottom: 1px solid var(--line); padding: 30px; }
.home-page .contact .php-email-form label { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.home-page .contact .php-email-form input, .home-page .contact .php-email-form textarea { border-color: #a8bdb7; border-radius: 3px; font-size: 15px; color: var(--ink); }
.home-page .contact .php-email-form input::placeholder, .home-page .contact .php-email-form textarea::placeholder { color: #586d76; opacity: 1; }
.home-page .contact .php-email-form input:focus, .home-page .contact .php-email-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #d6ebe5; }
.home-page .contact .php-email-form button { border-radius: 4px; font-weight: 600; }
#footer { background: var(--surface); color: var(--text); }
#footer .footer-newsletter { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0; }
#footer .footer-newsletter h4 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 28px; }
#footer .footer-top { box-shadow: none; padding: 54px 0 28px; border-top: 1px solid var(--line); }
#footer .footer-top .footer-contact h3 { color: var(--ink); }
#footer .footer-top .footer-contact p, #footer .footer-top .footer-links ul a { color: var(--muted); }
#footer .footer-top .footer-links ul i { color: var(--teal); }
@supports (grid-template-rows: subgrid) {
  .home-page .about-principles { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 10px; margin-left: 0; margin-right: 0; }
  .home-page .about-principles > div { width: auto; padding: 0; grid-row: span 3; grid-template-rows: subgrid; }
  .home-page .about-principles h4 { margin-bottom: 0; }
}
@media (max-width: 991px) {
  .home-page #hero { padding: 48px 0; }
  .home-page #hero .hero-img { padding: 20px 12px 0; text-align: center; }
  .home-page #hero .hero-img img { width: 100%; max-width: 520px; }
  .home-page #hero h1 { max-width: 15em; }
  .home-page #hero h2 { max-width: 65ch; }
  .home-page .about-img { max-width: 500px; margin: 0 auto; padding-right: 12px; }
  .home-page section { padding: 64px 0; }
}
@media (max-width: 767px) {
  #header .logo h1 { font-size: 22px; }
  .home-page #hero h1 { font-size: 38px; }
  .home-page #hero h2 { font-size: 17px; }
  .home-page .section-title p { font-size: 30px; }
  .home-page .about h3 { font-size: 28px; }
  .home-page .about-principles { display: block; }
  .home-page .about-principles > div { display: block; margin-bottom: 24px; }
  .home-page .about-principles h4 { margin: 10px 0; }
  .home-page #contact .project-brief, .home-page .contact .php-email-form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Shared rows keep service descriptions aligned when their titles wrap. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 768px) {
    .home-page .services .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 16px; margin-left: 0; margin-right: 0; }
    .home-page .services .row > div { display: grid !important; grid-template-rows: subgrid; grid-row: span 3; width: auto; padding: 0; }
    .home-page .services .icon-box { display: grid; grid-template-rows: subgrid; grid-row: span 3; padding-top: 24px; }
    .home-page .services .icon i, .home-page .services .title { margin-bottom: 0; }
  }
  @media (min-width: 992px) {
    .home-page .services .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-page .services .digital-heading + .section-intro + .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
}

/* Spam trap stays outside the visual and keyboard flow. */
.home-page .contact .form-guard { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-page .contact button:disabled { opacity: 0.65; cursor: wait; }


/* Theme owns action colours even if an older base stylesheet is still cached. */
.navbar .getstarted,
#hero .btn-get-started,
.contact .php-email-form button[type="submit"],
.back-to-top,
#footer .footer-newsletter form input[type="submit"] {
  background: var(--teal);
  color: #fff;
}
.navbar .getstarted:hover,
#hero .btn-get-started:hover,
.contact .php-email-form button[type="submit"]:hover,
.back-to-top:hover,
#footer .footer-newsletter form input[type="submit"]:hover {
  background: var(--teal-hover);
  color: #fff;
}

/* Calm success feedback in the site's teal palette. */
.home-page .contact .php-email-form .sent-message {
  background: #e6f3ef;
  color: var(--teal-hover);
  border: 1px solid #b8d7cf;
  border-radius: 4px;
  padding: 18px 20px;
  font-weight: 500;
}
