/* ==========================================================================
   Springer-Miller Systems — springermillersystems.com
   Rebuilt to match the live springermiller.com design.
   Tokens below were measured from the live site's computed styles.
   ========================================================================== */

:root {
  /* Measured from live site */
  --navy:      #14223C;   /* rgb(20,34,60)   headings, header, footer */
  --crimson:   #DC143C;   /* rgb(220,20,60)  buttons, accents */
  --crimson-d: #B81032;
  --blue:      #003A70;   /* rgb(0,58,112)   cards, links */
  --wash:      #F5F9FA;   /* rgb(245,249,250) alternating sections */
  --body:      #4A5968;   /* rgb(74,89,104)  body copy */
  --white:     #FFFFFF;
  --rule:      #E3E9EC;
  --rule-dark: rgba(255, 255, 255, 0.15);

  --font: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1630px;
  --gutter: 15px;
  --section-y: 120px;
  --header-h: 96px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;          /* 25.92px, as measured */
  font-weight: 400;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  font-weight: 500;
}

/* Measured type scale */
h1, .h1 { font-size: 40px; line-height: 1.45; letter-spacing: -0.8px; }
h2, .h2 { font-size: 30px; line-height: 1.45; letter-spacing: -0.07px; }
h3, .h3 { font-size: 22px; line-height: 1.45; }
h4, .h4 { font-size: 18px; line-height: 1.5; }

::selection { background: var(--crimson); color: #fff; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--crimson); color: #fff; padding: 12px 20px; font-size: 14px; }
.skip-link:focus { left: 0; }

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

.section { padding-block: var(--section-y); }
.section--wash { background: var(--wash); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.text-blue { color: var(--blue); }
.text-white { color: #fff; }
.lead { font-size: 16px; line-height: 1.62; }

/* --------------------------------------------------------------------------
   Buttons — measured: bg #DC143C, radius 100px, padding 12px 58px, 16px/500
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 58px;
  background: var(--crimson);
  color: #fff;
  border: 1px solid var(--crimson);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.62;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--crimson-d); border-color: var(--crimson-d); }

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
  padding: 12px 32px;
}
.btn--outline:hover { background: #fff; border-color: #fff; color: var(--navy); }

.btn--sm { padding: 12px 32px; }

@media (max-width: 480px) {
  .btn { padding: 12px 36px; width: 100%; }
}

/* --------------------------------------------------------------------------
   Header — navy bar, transparent over the hero
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease;
}
.header.is-solid,
body.light-hero .header { background: var(--navy); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo { flex: none; display: block; }
.logo img { width: 130px; height: auto; }

/* Nav */
.nav { display: flex; align-items: center; gap: 6px; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s ease;
}
.nav__link:hover { opacity: .75; }
.nav__caret { width: 10px; height: 7px; transition: transform .25s ease; }
.nav__item[data-open="true"] .nav__caret { transform: rotate(180deg); }

.nav__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 8px;
  min-width: 250px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 44px -12px rgba(20, 34, 60, .3);
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav__item[data-open="true"] .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__panel a {
  display: block; padding: 10px 14px; border-radius: 4px;
  font-size: 15px; color: var(--navy); text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.nav__panel a:hover { background: var(--wash); color: var(--crimson); }

.header__cta { flex: none; display: flex; align-items: center; gap: 10px; }

/* Mobile toggle */
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: #fff;
}
.nav-toggle span { position: relative; display: block; width: 22px; height: 2px; background: currentColor;
  transition: background .2s ease; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor;
  transition: transform .3s ease; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  :root { --header-h: 78px; }
  .nav-toggle { display: inline-flex; }
  .header__cta .btn { display: none; }
  .header { background: var(--navy); }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 12px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }

  .nav__item { border-bottom: 1px solid var(--rule-dark); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 16px; }
  .nav__panel {
    position: static; min-width: 0; background: none; box-shadow: none;
    border-radius: 0; padding: 0 0 10px; display: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav__item[data-open="true"] .nav__panel { display: block; }
  .nav__panel a { color: rgba(255,255,255,.72); padding: 9px 0; font-size: 15px; }
  .nav__panel a:hover { background: none; color: #fff; }
  .nav__cta-mobile { display: block; margin-top: 26px; }
}
@media (min-width: 1101px) { .nav__cta-mobile { display: none; } }

/* --------------------------------------------------------------------------
   Hero — full-bleed photo, 900px, navy scrim
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 190px;
  padding-bottom: 40px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* second slide crossfades over the first, as on the live site */
.hero__bg--2 { opacity: 0; animation: heroFade 18s ease-in-out infinite; }
@keyframes heroFade {
  0%, 42%  { opacity: 0; }
  50%, 92% { opacity: 1; }
  100%     { opacity: 0; }
}
/* exact overlay measured from the live hero */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(rgba(20, 33, 61, .8), rgba(255, 255, 255, 0) 27%),
    linear-gradient(258deg, rgba(255, 255, 255, 0) 68%, rgb(20, 33, 61));
}
@media (prefers-reduced-motion: reduce) { .hero__bg--2 { animation: none; } }
/* content sits above the photo and scrim */
.hero > .container {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column;
}
.hero__copy { max-width: 450px; }
.hero__copy h1 { color: #fff; }
.hero__copy p { margin-top: 14px; color: #fff; }
.hero__copy .btn { margin-top: 30px; }

/* Compact hero for interior pages */
.hero--sub { min-height: 520px; justify-content: center; padding-top: 170px; padding-bottom: 90px; }
.hero--sub .hero__copy { max-width: 720px; }

/* Hero bottom 3-card strip */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: auto;
  padding-top: 60px;
}
.hero-card { border-radius: 5px; padding: 25px 30px; min-height: 148px;
  display: flex; flex-direction: column; justify-content: center; }
.hero-card--white { background: #fff; align-items: center; text-align: center; gap: 10px; }
.hero-card--white img { width: 150px; }
.hero-card--white span { font-size: 14px; color: var(--body); }
.hero-card--glass {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  text-align: center; color: #fff; font-weight: 500;
}
.hero-card--blue {
  background: var(--blue); border: 1px solid rgba(255,255,255,.15);
  color: #fff; text-decoration: none; position: relative; gap: 12px;
  transition: background .25s ease;
}
.hero-card--blue:hover { background: #004A8C; }
.hero-card--blue h3 { color: #fff; font-size: 20px; }
.hero-card--blue p { font-size: 15px; color: rgba(255,255,255,.85); }
.hero-card__arrow {
  position: absolute; top: 25px; right: 30px;
  width: 32px; height: 32px; border-radius: 100px; background: var(--crimson);
  display: grid; place-items: center; color: #fff;
}

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 130px; padding-bottom: 50px; }
  .hero--sub { min-height: 0; padding-top: 120px; padding-bottom: 60px; }
  .hero-cards { grid-template-columns: 1fr; padding-top: 44px; }
}

/* --------------------------------------------------------------------------
   Two-column feature block (heading + photo | icon grid)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 60px;
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.split__media img { width: 100%; border-radius: 4px; }
.split__media--pad { padding: 20px; }

@media (max-width: 991px) {
  .split, .split--even { grid-template-columns: 1fr; gap: 36px; }
  .split--flip .split__media { order: -1; }
}

/* Icon feature grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 40px;
}
.icon-feature { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.icon-feature__icon {
  width: 64px; height: 64px; background: var(--wash);
  display: grid; place-items: center; flex: none;
}
.icon-feature__icon img { width: 34px; height: 34px; }
.icon-feature h3 { font-size: 17px; color: var(--blue); margin-bottom: 6px; font-weight: 500; }
.icon-feature p { font-size: 15px; line-height: 1.6; }

@media (max-width: 600px) {
  .icon-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* --------------------------------------------------------------------------
   Product block — brand logo, blue heading, hairline bullet list
   -------------------------------------------------------------------------- */
.product__logo { width: 200px; margin-bottom: 26px; }
.product h2 { color: var(--blue); margin-bottom: 18px; }
.product > p { margin-bottom: 8px; }

.rule-list { margin-top: 26px; border-top: 1px solid var(--rule); }
.rule-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--blue);
  font-size: 15px;
  line-height: 1.6;
}
.product .btn { margin-top: 30px; }

/* --------------------------------------------------------------------------
   Full-width image band (True Integration / final CTA)
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  padding: 90px 30px;
  text-align: center;
  color: #fff;
}
.band__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20,34,60,.72); }
.band > *:not(.band__bg) { position: relative; z-index: 2; }
.band h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.band p { margin: 18px auto 0; max-width: 700px; color: rgba(255,255,255,.9); }
.band .btn { margin-top: 30px; }

/* --------------------------------------------------------------------------
   News cards
   -------------------------------------------------------------------------- */
.section-title { text-align: center; max-width: 620px; margin: 0 auto 56px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.card {
  background: #fff; border: 1px solid var(--rule); border-radius: 4px;
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: 0 16px 36px -14px rgba(20,34,60,.28); transform: translateY(-3px); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--navy); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(20,34,60,.9); color: #fff;
  padding: 18px 20px; font-size: 17px; font-weight: 500; line-height: 1.4;
}
.card__meta { padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.card__date { font-size: 14px; color: var(--body); }
.card__view { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 15px; }
.card:hover .card__view { color: var(--crimson); }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Markets list
   -------------------------------------------------------------------------- */
.market { padding-block: 44px; border-bottom: 1px solid var(--rule); scroll-margin-top: 120px; }
.market:first-child { border-top: 1px solid var(--rule); }
.market__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 40px; }
.market h3 { font-size: 24px; margin-bottom: 8px; }
.market__claim { color: var(--crimson); font-weight: 500; font-size: 15px; }
@media (max-width: 900px) { .market__grid { grid-template-columns: 1fr; gap: 14px; } }

/* --------------------------------------------------------------------------
   Offices / contact
   -------------------------------------------------------------------------- */
.offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.office { background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 30px; }
.office h3 { font-size: 15px; color: var(--crimson); margin-bottom: 16px; font-weight: 600; }
.office address { font-style: normal; font-size: 15px; line-height: 1.7; }
.office address strong { display: block; color: var(--navy); margin-bottom: 6px; }
.office a { color: var(--blue); text-decoration: none; display: block; margin-top: 12px; font-weight: 500; }
.office a:hover { color: var(--crimson); }
@media (max-width: 1100px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .offices { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding-top: 70px; font-size: 15px; }
.footer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 26px; border-bottom: 1px solid var(--rule-dark);
}
.footer__head img { width: 130px; }
.footer__social {
  width: 34px; height: 34px; border-radius: 100px; background: rgba(255,255,255,.16);
  display: grid; place-items: center; color: #fff; text-decoration: none;
  transition: background .22s ease;
}
.footer__social:hover { background: var(--crimson); }

.footer__cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px; padding-block: 56px;
}
.footer__col h4 { color: #fff; font-size: 18px; font-weight: 500; margin-bottom: 22px; }
.footer__col li + li { margin-top: 13px; }
.footer__col a { text-decoration: none; transition: color .2s ease; }
.footer__col a:hover { color: #fff; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  padding-block: 22px; border-top: 1px solid var(--rule-dark);
  font-size: 14px; color: rgba(255,255,255,.65);
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

@media (max-width: 900px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; } }
@media (max-width: 520px) { .footer__cols { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Reveal on scroll — progressive enhancement (visible without JS)
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Utilities */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; margin: -1px; }
.mt-30 { margin-top: 30px; }
