/* IRM Water — shared styles. Built from the chosen Continuity homepage. */
:root {
  --periwinkle: #7ba9e5;
  --periwinkle-deep: #6a95d6;
  --ice: #e5f8fe;
  --ice-line: #c6e3f3;
  --tab: #3557c9;
  --tab-deep: #2a46b0;
  --navy: #0b1872;
  --ink-blue: #2b3a8c;
  --text: #26303e;
  --muted: #4c5a70;
  --link: #1f45b8;
  --notice: #b42318;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--periwinkle) linear-gradient(180deg, #86b1e8 0, var(--periwinkle) 320px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* The framed page, like the original */
.page {
  max-width: 1040px;
  margin: 22px auto 34px;
  background: var(--ice);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(18, 42, 110, .25);
}
.page::before { content: ""; display: block; height: 12px; background: var(--periwinkle-deep); }

/* Masthead */
.mast { display: flex; align-items: center; gap: 18px; padding: 18px 34px 16px; }
.mast img { width: 104px; height: auto; flex: none; }
.mast-home { display: flex; align-items: center; gap: 18px; flex: 1 1 auto; text-decoration: none; }
.mast-home:hover strong { color: var(--navy); }
.mast-name { flex: 1 1 auto; }
.mast-name strong {
  display: block;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink-blue);
  text-shadow: 0 2px 0 #fff, 0 3px 6px rgba(43, 58, 140, .2);
}
.mast-name span { display: block; font-size: 16px; font-style: italic; color: #3e5287; margin-top: 2px; }
.mast-contact { text-align: right; font-size: 15px; line-height: 1.5; color: #3e5287; }
.mast-contact a { display: block; font-size: 20px; font-weight: bold; color: var(--navy); text-decoration: none; }

/* Menu bar: sits between the name and the photo */
.menu-toggle { display: none; }
.menu { margin: 0 34px 14px; background: #fff; border: 1px solid var(--ice-line); border-radius: 12px; padding: 6px; box-shadow: 0 4px 12px rgba(43, 58, 140, .07); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 4px; }
.menu a {
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-blue);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
}
.menu a:hover { background: var(--ice); color: var(--navy); }
.menu a[aria-current] { background: var(--tab-deep); color: #fff; font-weight: bold; }

/* Droplet photo in its white frame */
.banner { margin: 0 34px; background: #fff; padding: 8px; border-radius: 12px; }
.banner img { width: 100%; height: 290px; object-fit: cover; object-position: center top; border-radius: 6px; }

/* Guidance notice */
.notice {
  display: flex; gap: 14px; align-items: center;
  margin: 26px 34px 0; padding: 14px 20px;
  background: #fff; border: 1px solid #efc9c4; border-left: 5px solid var(--notice); border-radius: 8px;
  text-decoration: none; color: var(--text);
}
.notice:hover { border-color: var(--notice); color: var(--text); }
.notice-tag { flex: none; font-size: 12px; font-weight: bold; letter-spacing: .5px; color: #fff; background: var(--notice); border-radius: 4px; padding: 3px 7px; }
.notice strong { display: block; color: var(--notice); font-size: 17px; line-height: 1.4; }
.notice span span { display: block; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* Main white panel */
.panel { margin: 22px 34px 0; background: #fff; border-radius: 12px; padding: 38px 40px 40px; }
.welcome { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; align-items: start; }
h1 { font-size: 30px; line-height: 1.25; color: var(--navy); margin: 0 0 16px; }
.welcome p { margin: 0 0 16px; }
.welcome p:last-child { margin-bottom: 0; }

.help { background: var(--ice); border: 1px solid var(--ice-line); border-radius: 12px; padding: 22px 22px 20px; }
.help h2 { font-size: 19px; color: var(--navy); margin: 0 0 12px; }
.help-link { display: block; padding: 14px 0; border-top: 1px solid var(--ice-line); text-decoration: none; color: var(--text); }
.help-link strong { display: block; color: var(--link); font-size: 17px; }
.help-link:hover strong { color: var(--navy); text-decoration: underline; }
.help-link span { display: block; font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 3px; }
.help-mail { border-top: 1px solid var(--ice-line); padding-top: 14px; font-size: 15px; color: var(--muted); }
.help-mail a { font-weight: bold; }

/* Mission beside the photo slideshow, as on the original */
.mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; margin-top: 40px; padding-top: 40px; border-top: 2px solid var(--ice); }
.slides { position: relative; aspect-ratio: 5 / 4; border-radius: 10px; overflow: hidden; border: 6px solid var(--ice); background: var(--ice); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slides img.on { opacity: 1; }
.slide-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; font-size: 15px; color: var(--muted); }
.dots { display: flex; gap: 2px; }
.dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #c3d6ee; }
.dots button[aria-pressed="true"]::before { background: var(--tab-deep); }
.mission h2 { font-size: 22px; color: var(--navy); margin: 0 0 12px; }
.mission blockquote { margin: 0; font-size: 21px; line-height: 1.7; font-style: italic; color: #2e3b55; }

.end-gap { height: 34px; }

/* Footer bar, like the original */
.foot-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; background: var(--periwinkle); color: #0d1d5e; padding: 14px 34px; font-size: 16px; }
.foot-bar .right { text-align: right; letter-spacing: .3px; }
.foot-bar a { color: #0d1d5e; text-decoration: none; }
.foot-bar a:hover { text-decoration: underline; color: #0d1d5e; }
.foot-logo { width: 62px; background: var(--ice); border-radius: 50%; padding: 6px; }
.foot-sub { background: #3d5fb5; color: #fff; text-align: center; font-size: 14.5px; padding: 9px 16px; }
.foot-sub a { color: #fff; }

@media (prefers-reduced-motion: reduce) { .slides img { transition: none; } }

@media (max-width: 900px) {
  .js .menu-toggle {
    display: flex; align-items: center; justify-content: space-between; width: calc(100% - 68px);
    margin: 0 34px 12px; padding: 12px 16px; font: bold 16px/1.2 Arial, Helvetica, sans-serif;
    color: #fff; background: var(--tab-deep); border: 0; border-radius: 10px; cursor: pointer;
  }
  .menu-toggle .bars { width: 20px; height: 14px; border-block: 2px solid #fff; position: relative; }
  .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid #fff; }
  .js .menu:not(.open) { display: none; }
  .menu ul { display: block; }
  .menu a { padding: 13px 14px; font-size: 16.5px; }
  .menu li + li { border-top: 1px solid var(--ice); }
}
@media (max-width: 860px) {
  .mast-contact a { white-space: nowrap; }
  .welcome, .mission { grid-template-columns: 1fr; gap: 28px; }
  .mission { gap: 22px; }
  .mission > div:first-child { max-width: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .page { margin: 0; border-radius: 0; }
  .mast { padding: 14px 16px 12px; gap: 12px; flex-wrap: wrap; }
  .mast img { width: 68px; }
  .mast-home { gap: 12px; flex: 1 1 100%; }
  .mast-name { flex: 1 1 200px; }
  .mast-name strong { font-size: 22px; }
  .mast-name span { font-size: 15px; }
  .mast-contact { flex: 1 1 100%; text-align: left; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
  .mast-contact a { font-size: 18px; }
  .banner { margin: 0 10px; padding: 6px; }
  .banner img { height: 170px; }
  .js .menu-toggle { width: calc(100% - 20px); margin: 0 10px 10px; }
  .menu { margin: 0 10px 10px; }
  .notice { margin: 18px 10px 0; padding: 12px 14px; align-items: flex-start; }
  .notice strong { font-size: 16px; }
  .panel { margin: 18px 10px 0; padding: 26px 18px 28px; }
  h1 { font-size: 25px; }
  .mission { margin-top: 30px; padding-top: 30px; }
  .mission blockquote { font-size: 19px; }
  .end-gap { height: 22px; }
  .foot-bar { grid-template-columns: 1fr; text-align: center; padding: 18px 16px; }
  .foot-bar .right { text-align: center; }
  .foot-logo { margin: 0 auto; order: -1; }
}

/* ---------- Interior pages ---------- */
.banner.slim img { height: 130px; object-position: center top; }
.crumbs { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--muted); }
.page-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 2px solid var(--ice); }
.page-head h1 { font-size: 34px; margin-bottom: 10px; }
.lede { font-size: 19px; line-height: 1.65; color: #34405a; margin: 0; max-width: 62ch; }

.panel h2 { font-size: 24px; line-height: 1.3; color: var(--navy); margin: 0 0 14px; }
.panel h3 { font-size: 19px; line-height: 1.35; color: var(--navy); margin: 0 0 8px; }
.prose p { margin: 0 0 16px; max-width: 70ch; }
.section { margin-top: 40px; padding-top: 36px; border-top: 2px solid var(--ice); }

.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.split.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: 10px; border: 6px solid var(--ice); }
.photo figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

.checklist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 36px; }
.checklist.wide { columns: 3; }
.checklist li { break-inside: avoid; position: relative; padding: 6px 0 6px 26px; line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--periwinkle); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--ice); border: 1px solid var(--ice-line); border-radius: 12px; padding: 20px 22px 18px; }
.card ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.6; color: #34405a; }
.card li + li { margin-top: 4px; }
.card .doc { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: bold; }
.stages { display: inline-flex; gap: 4px; margin: 0 0 10px; }
.stages abbr { text-decoration: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: bold; color: #fff; background: var(--tab-deep); cursor: help; }

.stage-list { list-style: none; margin: 0 0 16px; padding: 0; }
.stage-list li { padding: 10px 0 10px 0; border-top: 1px solid var(--ice); }
.stage-list li:last-child { border-bottom: 1px solid var(--ice); }
.stage-list strong { color: var(--navy); display: inline-block; min-width: 72px; }

.door { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: center; padding: 22px; background: var(--ice); border: 1px solid var(--ice-line); border-radius: 12px; text-decoration: none; color: var(--text); }
.door + .door { margin-top: 18px; }
.door img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.door h2 { margin-bottom: 8px; color: var(--link); }
.door:hover h2 { color: var(--navy); text-decoration: underline; }
.door p { margin: 0; color: #34405a; }

.people { display: grid; gap: 22px; }
.person { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: start; padding: 24px; background: var(--ice); border: 1px solid var(--ice-line); border-radius: 12px; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 8px; border: 4px solid #fff; }
.person h2 { margin-bottom: 4px; }
.person .role { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.person p { margin: 0 0 10px; }
.person .mail { font-size: 16px; font-weight: bold; }
.pullquote { margin: 34px 0 0; text-align: center; font-size: 22px; font-style: italic; color: var(--ink-blue); }

.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.logo-grid li { background: #fff; border: 1px solid var(--ice-line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.logo-grid img { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; }
.logo-grid span { font-size: 13.5px; line-height: 1.35; color: var(--muted); }

.project + .project { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--ice-line); }
.kicker { display: inline-block; font-size: 14px; font-weight: bold; letter-spacing: .3px; color: var(--tab-deep); background: var(--ice); border: 1px solid var(--ice-line); border-radius: 999px; padding: 3px 12px; margin: 0 0 10px; }
.project p { margin: 0; max-width: 72ch; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.contact-card { background: var(--ice); border: 1px solid var(--ice-line); border-radius: 12px; padding: 24px; }
.contact-card address { font-style: normal; font-size: 18px; line-height: 1.6; margin: 0 0 14px; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 18px; }
.contact-card dt { font-weight: bold; color: var(--navy); }
.contact-card dd { margin: 0; }
.email-list { list-style: none; margin: 0; padding: 0; }
.email-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--ice); }
.email-list li:last-child { border-bottom: 1px solid var(--ice); }
.email-list strong { color: var(--navy); }

.button { display: inline-block; background: var(--tab-deep); color: #fff; text-decoration: none; font-weight: bold; font-size: 16px; padding: 11px 20px; border-radius: 8px; }
.button:hover { background: var(--navy); color: #fff; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.docs a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--ice-line); border-radius: 10px; text-decoration: none; font-weight: bold; }
.docs a:hover { border-color: var(--periwinkle); }
.pdf { flex: none; font-size: 12px; font-weight: bold; color: #fff; background: var(--notice); border-radius: 4px; padding: 3px 7px; }

.cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 26px; background: var(--ice); border: 1px solid var(--ice-line); border-radius: 12px; }
.cta p { margin: 0; font-size: 18px; color: var(--navy); font-weight: bold; }

@media (max-width: 860px) {
  .split, .split.flip, .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .split .photo { max-width: 560px; }
  .checklist.wide { columns: 2; }
}
@media (max-width: 640px) {
  .banner.slim img { height: 90px; }
  .page-head h1 { font-size: 27px; }
  .lede { font-size: 17.5px; }
  .panel h2 { font-size: 21px; }
  .checklist, .checklist.wide { columns: 1; }
  .door { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .person { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .person img { max-width: 200px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo-grid img { max-width: 84px; }
  .cta { padding: 18px; }
  .pullquote { font-size: 19px; }
}

/* Linked client logos */
.logo-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; text-decoration: none; color: inherit; }
.logo-grid li:has(a) { transition: border-color .15s, box-shadow .15s; }
.logo-grid li:has(a:hover), .logo-grid li:has(a:focus-visible) { border-color: var(--periwinkle); box-shadow: 0 4px 12px rgba(43, 58, 140, .12); }
.logo-grid a:hover span { color: var(--navy); text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
