/* ==========================================================================
   AOS, Inc. — aos.cloud
   Values here mirror the legacy site's computed styles so the rebuild is a
   visual match. Key tokens verified against the live WordPress render:
     brand blue #0F75BC · nav blue #045CB4 · body #334155
     beige band #EBEAE3 · footer #F9F9F9 · Montserrat 500 17px/28.05px
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --blue: #0F75BC;          /* headings, blue bands, footer bar */
  --blue-nav: #045CB4;      /* navigation links */
  --blue-dark: #0B5B93;     /* hover */
  --ink: #334155;           /* body copy */
  --beige: #EBEAE3;         /* alternating band */
  --footer-bg: #F9F9F9;
  --line: #E3E5E8;
  --white: #fff;
  --danger: #B3261E;
  --success: #1C7A4A;

  --wrap: 1200px;
  --gutter: 20px;
  --banner-h: 102px;

  --font: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-body: 17px;
  --lh-body: 1.65;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* The sticky header shrinks by ~51px, which shortens the document. Chrome's
     scroll anchoring would compensate by rewriting scrollY, re-crossing the
     shrink threshold and oscillating the header. Opt out. */
  overflow-anchor: none;
  /* Keep #apbs, #leadership etc. clear of the sticky header (80px shrunk). */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* height:auto is what lets aspect-ratio win over the HTML width/height
   attributes — without it the intrinsic box stays definite and the ratio
   is ignored. */
img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-nav); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font); margin: 0 0 1.2rem; }
p { margin: 0 0 1.45rem; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding: 10px 0 20px; background: var(--white); }
.band--beige { background: var(--beige); padding: 30px 0 60px; }
.band--blue { background: var(--blue); color: #fff; padding: 40px 0 60px; }
.band--blue h1, .band--blue h2, .band--blue h3 { color: #fff; }
.band--plain { padding: 40px 0 50px; }

/* --- Typography --------------------------------------------------------- */
h1, .h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue);
  margin-bottom: 19.2px;
}

/* The legacy site used <h5> for these; semantically they are section heads. */
.subhead {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.1rem;
}
.band--blue .subhead { color: #fff; }

.lede { font-style: italic; }

.quote {
  margin: 1.6rem 0 0;
  font-weight: 700;
  font-style: italic;
  text-align: center;
  color: var(--ink);
}

.prose > :last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 1.45rem; padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }

/* --- Header ------------------------------------------------------------- */
/* Sticky header that shrinks past the fold, matching the legacy Astra theme:
   132px tall with the full logo at the top of the page, 81px with the AOS mark
   alone once scrolled. Threshold and timing measured off the live site. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  transition: box-shadow .3s var(--ease);
}
.site-header[data-shrunk="true"] {
  box-shadow: 0 2px 12px rgba(0, 0, 0, .10);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
  padding-inline: 35px;
}
.brand {
  display: inline-flex;
  align-items: center;
  padding: 17px 0;
  transition: padding .4s ease-in-out;
}
.brand img {
  width: 220px;
  height: 97px;
  object-fit: contain;
  object-position: left center;
  transition: width .4s ease-in-out, height .4s ease-in-out;
}

/* Shrunk: 25 + 30 + 25 = 80px. object-fit:cover with a top anchor crops the
   tagline away and leaves the AOS wordmark, which is what the legacy sticky
   header shows — no second logo file needed. */
.site-header[data-shrunk="true"] .brand { padding: 25px 0; }
.site-header[data-shrunk="true"] .brand img {
  width: 120px;
  height: 30px;
  object-fit: cover;
  object-position: left top;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--blue-nav);
}

.nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0 15px;
  height: 80px;
  font-size: 17px;
  font-weight: 500;
  color: var(--blue-nav);
  text-decoration: none;
  white-space: nowrap;
  transition: height .4s ease-in-out;
}
.site-header[data-shrunk="true"] .nav > ul > li > a { height: 60px; }
.nav > ul > li > a:hover,
.nav > ul > li > a[aria-current="page"] { color: var(--blue); }
.nav__caret { width: 10px; height: 6px; flex: none; }

/* Dropdowns: hover on pointer devices, click-toggle elsewhere. */
.nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: .5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav > ul > li:hover > .sub,
.nav > ul > li:focus-within > .sub,
.nav > ul > li > .sub[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav .sub a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: 16px;
  font-weight: 500;
  color: var(--blue-nav);
  text-decoration: none;
}
.nav .sub a:hover { background: var(--beige); color: var(--blue); }

/* Caret button injected by app.js — only meaningful without hover. */
.sub-toggle { display: none; }

@media (max-width: 980px) {
  .site-header__inner { padding-inline: var(--gutter); }
  .brand img { width: 170px; height: 75px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    display: none;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .nav[data-open="true"] { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1rem; }
  .nav > ul > li > a { height: auto; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav__caret { display: none; }
  .sub-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    top: 0; right: 0;
    width: 56px; height: 52px;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--blue-nav);
  }
  .sub-toggle::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s var(--ease);
  }
  .sub-toggle[aria-expanded="true"]::after { transform: rotate(225deg) translate(-2px, -2px); }
  .nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 .5rem .9rem;
    display: none;
  }
  .nav .sub[data-open="true"] { display: block; }
}

/* --- Banner video ------------------------------------------------------- */
/* 960x212 source (4.53:1) cropped to a slim band, exactly as the legacy
   theme did by constraining the wrapper height. */
.banner {
  height: var(--banner-h);
  overflow: hidden;
  background: #1c2733;
}
.banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 700px) { :root { --banner-h: 70px; } }

/* --- Hero slider (homepage) --------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #0b1b2b;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* Percentage positioning only — a pixel offset such as calc(50% - 100px)
     shifts the image beyond its overflow when cover leaves none (all three
     heroes are wider than the viewport ratio, so cover scales them to exactly
     the container height), which uncovers a strip that then TILES. Percentages
     are clamped to the available overflow, so a gap is impossible. */
  background-position: 50% 32%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .8s var(--ease);
  pointer-events: none;
}
.hero__slide[data-active="true"] { opacity: 1; pointer-events: auto; }
.hero__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 40px 30px 0;
}
.hero__text {
  margin: 0;
  max-width: 46ch;
  font-size: 27.2px;
  font-weight: 700;
  line-height: 44.88px;
  color: #fff;
  text-shadow: 2px 2px 4px #000;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50px;
  background: #efefef;
  color: #333;
  cursor: pointer;
  transition: opacity .2s var(--ease);
}
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }
/* loop:false on the legacy slider — the end arrows dim rather than disappear */
.hero__arrow[disabled] { opacity: .35; cursor: default; }

@media (max-width: 700px) {
  .hero__text { font-size: 26px; line-height: 1.45; }
  .hero__arrow--prev { left: 6px; }
  .hero__arrow--next { right: 6px; }
}

/* --- Media pairs -------------------------------------------------------- */
.media-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 1.5rem 0 0;
}
.media-pair img,
.media-pair video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eceff2;
}
@media (max-width: 760px) { .media-pair { grid-template-columns: 1fr; } }

.feature-col { text-align: center; }
.feature-col h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1c2733;
  margin: 1.4rem 0 1rem;
}
.feature-col p { margin: 0; }

/* --- Read-more disclosures ---------------------------------------------- */
/* Native <details>, matching the legacy markup and its ▶ marker. */
.readmore { margin: 1.2rem 0 0; }
.readmore > summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  list-style: inside disclosure-closed;
}
.readmore[open] > summary { list-style: inside disclosure-open; }
.readmore > summary::-webkit-details-marker { color: var(--ink); }
.readmore__body { padding-top: 1.2rem; }
.readmore__body > :last-child { margin-bottom: 0; }

/* --- Columns ------------------------------------------------------------ */
.cols { display: grid; gap: 40px; }
.cols--2 { grid-template-columns: repeat(2, 1fr); }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cols--2, .cols--3 { grid-template-columns: 1fr; } }

.client-list { list-style: none; margin: 0; padding: 0; }
.client-list li { margin-bottom: 1.7rem; }
.client-list li:last-child { margin-bottom: 0; }

/* --- Leadership --------------------------------------------------------- */
/* The photo sits outside <details> so the ▶ marker stays inline with the
   name, as it does on the legacy page. */
.leader img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  border: 2px solid #fff;
  object-fit: cover;
  margin-bottom: 1.1rem;
}
.leader-bio > summary {
  cursor: pointer;
  color: #fff;
  font-style: italic;
  list-style: inside disclosure-closed;
}
.leader-bio[open] > summary { list-style: inside disclosure-open; }
.leader-bio ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.leader-bio li { margin-bottom: .6rem; }

/* --- Forms -------------------------------------------------------------- */
.form { margin-top: 1.5rem; }
.field { margin-bottom: 1.3rem; }
.field > label { display: block; margin-bottom: .35rem; }
.field input,
.field textarea {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd4d9;
  border-radius: 3px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 117, 188, .15);
  outline: none;
}
.field textarea { min-height: 230px; resize: vertical; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: var(--danger); }
.field__error { margin: .3rem 0 0; color: var(--danger); font-size: .9rem; }
.field__error:empty { display: none; }

.consent-box {
  border: 1px solid #cfd4d9;
  border-radius: 3px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.6rem;
}
.consent-box h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 .8rem; }
.consent-box p { margin-bottom: 1rem; }
.consent-agree { display: flex; align-items: center; gap: .6rem; }
.consent-agree input { width: 18px; height: 18px; }

/* Bot trap — off-screen, never focusable by a real visitor. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border: 0;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease);
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.form-status {
  margin: 1.2rem 0;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 600;
}
.form-status[hidden] { display: none; }
.form-status[data-tone="error"] { border-color: var(--danger); color: var(--danger); background: #FDF2F1; }
.form-status[data-tone="success"] { border-color: var(--success); color: var(--success); background: #F0F8F4; }

.map-embed {
  width: 100%;
  height: 300px;
  border: 0;
  margin: 1.8rem 0;
  background: #e8eaed;
}

address.contact-address { font-style: normal; margin: 0 0 1.5rem; }
address.contact-address strong { display: block; margin-bottom: 1rem; }
.contact-address .indent { display: block; padding-left: 26px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); padding: 45px 0; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  text-align: center;
}
.footer-cols address { font-style: normal; }
.footer-cols strong { display: block; }
.footer-contact a { color: var(--blue); text-decoration: none; }
/* The legacy footer renders the number as plain text; keep it a tel: link
   for mobile but drop the link colouring. */
.footer-cols a[href^="tel:"] { color: inherit; text-decoration: none; }
.footer-founded { font-style: italic; font-weight: 700; margin-top: 1.6rem; }

.footer-bar {
  background: var(--blue);
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
.footer-bar a { color: #fff; text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; color: #fff; }
.footer-bar p { margin: 0; }

@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr; } }

/* --- Route progress (AJAX navigation) ----------------------------------- */
.route-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--blue);
  z-index: 999;
  opacity: 0;
  transition: width .25s var(--ease), opacity .25s var(--ease);
}
.route-progress[data-active="true"] { opacity: 1; }

/* Legacy used AOS.js "fade" (400ms) on page content. */
.fade-in { animation: fade-in .4s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --- Legal pages -------------------------------------------------------- */
.legal h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 2rem 0 .6rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { margin: 0 0 1.45rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
