:root {
  --ink: #272727;
  --body: #515151;
  --cyan: #00aeef;
  --blue: #006de3;
  --blue-hover: #005bbe;
  --navy: #1a2142;
  --deep: #161b2f;
  --pale: #f2f8fe;
  --soft: #f6f6f6;
  --line: #e2e2e2;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.page-width { width: min(1184px, calc(100% - 48px)); margin-inline: auto; }

.practice-notice {
  padding: 6px 18px;
  color: #fff;
  background: #161b2f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.site-header { position: relative; z-index: 10; background: #fff; }
.header-top {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { min-width: 0; display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-eagle { width: 37px; height: 43px; object-fit: contain; }
.brand-wordmark { width: 126px; height: auto; }
.brand-label { margin-left: 9px; padding-left: 16px; border-left: 1px solid #e2e2e2; color: #515151; font-size: 14px; white-space: nowrap; }
.header-links { display: flex; align-items: center; gap: 23px; }
.plain-button { border: 0; padding: 8px 0; color: #272727; background: transparent; font-size: 14px; }
.location-button { display: flex; align-items: center; gap: 7px; }
.pin { width: 12px; height: 12px; display: inline-block; border: 2px solid var(--blue); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.login-button, .primary-button, .hero-button {
  min-height: 42px;
  border: 1px solid var(--blue);
  padding: 9px 24px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}
.login-button:hover, .primary-button:hover, .hero-button:hover { background: var(--blue-hover); }
.mobile-menu { display: none; border: 0; padding: 8px 0; color: var(--ink); background: transparent; }
.mobile-menu span, .mobile-menu span::before, .mobile-menu span::after { width: 20px; height: 2px; display: block; background: currentColor; }
.mobile-menu span { position: relative; margin-right: 9px; }
.mobile-menu span::before, .mobile-menu span::after { content: ""; position: absolute; left: 0; }
.mobile-menu span::before { top: -6px; }
.mobile-menu span::after { top: 6px; }

.main-nav { border-top: 1px solid #e2e2e2; border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 50px; display: flex; align-items: stretch; }
.nav-inner > button {
  border: 0;
  padding: 0 19px;
  color: #272727;
  background: #fff;
  font-size: 14px;
}
.nav-inner > button:first-child { padding-left: 0; }
.nav-inner > button:hover, .nav-inner > button.is-open { color: var(--blue); }
.nav-inner > button > span { margin-left: 5px; font-size: 13px; }
.search-trigger { width: 48px; margin-left: auto; padding: 0 !important; }
.search-trigger span { position: relative; width: 16px; height: 16px; display: block; margin: auto; border: 2px solid var(--ink); border-radius: 50%; }
.search-trigger span::after { content: ""; position: absolute; width: 8px; height: 2px; right: -7px; bottom: -4px; background: var(--ink); transform: rotate(45deg); }
.mega-menu {
  position: absolute;
  width: 100%;
  display: none;
  padding: 36px 0 42px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 15px 25px rgba(8, 46, 65, .12);
}
.mega-menu.is-open { display: block; }
.mega-grid { display: grid; grid-template-columns: 1.15fr 1fr 1.25fr 1.2fr; gap: 45px; }
.menu-kicker { margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.mega-title { margin: 0; font: 400 32px Georgia, "Times New Roman", serif; }
.mega-grid h3 { margin: 0 0 13px; font-size: 16px; }
.mega-grid a { display: block; margin: 8px 0; color: #515151; font-size: 14px; text-decoration: none; }
.mega-grid a:hover { color: var(--blue); text-decoration: underline; }

.hero { min-height: 563px; display: grid; grid-template-columns: minmax(420px, .86fr) minmax(0, 1.14fr); }
.hero-copy { display: flex; align-items: center; color: #fff; background: var(--navy); }
.hero-copy-inner { width: min(100%, 580px); margin-left: max(48px, calc((100vw - 1184px) / 2)); padding: 65px 52px 65px 0; }
.hero h1 { margin: 0 0 38px; font: 400 clamp(46px, 5vw, 72px)/1.06 Georgia, "Times New Roman", serif; }
.hero-image { min-height: 563px; background: url("../img/home-hero.jpg") center/cover no-repeat; }
.hero-button { background: var(--blue); }

.services { padding-block: 86px 96px; }
.section-intro { max-width: 890px; margin-bottom: 42px; }
.section-intro h2, .feature-copy h2, .digital-copy h2, .touch-inner h2 {
  margin: 0 0 24px;
  font: 400 43px/1.16 Georgia, "Times New Roman", serif;
}
.section-intro p { margin: 0; color: var(--body); font-size: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card { min-width: 0; display: flex; flex-direction: column; background: var(--soft); }
.service-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card-copy { flex: 1; padding: 28px 26px 25px; display: flex; flex-direction: column; }
.service-card h3 { margin: 0 0 14px; font: 400 27px/1.22 Georgia, "Times New Roman", serif; }
.service-card p { margin: 0 0 25px; color: var(--body); }
.service-card button {
  margin-top: auto;
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
  text-align: left;
}
.service-card button span { float: right; font-size: 22px; line-height: 1; }

.experts { padding: 86px 0; background: var(--soft); }
.split-feature { display: grid; grid-template-columns: 1.03fr .97fr; align-items: stretch; }
.split-feature > img { width: 100%; height: 100%; min-height: 455px; object-fit: cover; }
.feature-copy { padding: 62px 64px; background: #fff; }
.feature-copy p { margin: 0 0 19px; color: var(--body); font-size: 17px; }
.feature-copy .primary-button { margin-top: 16px; }

.digital { padding: 74px 0; background: var(--pale); }
.digital-grid { min-height: 420px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 75px; }
.device-wrap { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.device-wrap img { width: min(100%, 570px); max-height: 420px; object-fit: contain; object-position: center bottom; }
.digital-copy { max-width: 500px; }
.digital-copy p { margin: 0 0 30px; color: var(--body); font-size: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.secondary-button, .light-button {
  min-height: 42px;
  border: 1px solid var(--blue);
  padding: 9px 22px;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
}
.secondary-button:hover { color: #fff; background: var(--blue); }

.information { padding-block: 54px; }
.information details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.information summary {
  padding: 25px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  cursor: pointer;
  font: 400 25px Georgia, "Times New Roman", serif;
}
.information summary::-webkit-details-marker { display: none; }
.information summary span { color: var(--blue); font: 400 30px Arial, sans-serif; transition: transform .18s ease; }
.information details[open] summary span { transform: rotate(45deg); }
.details-copy { max-width: 800px; padding: 0 0 26px; color: var(--body); font-size: 14px; }

.get-in-touch { padding: 58px 0; color: #fff; background: var(--navy); }
.touch-inner { display: flex; align-items: center; justify-content: space-between; gap: 55px; }
.touch-inner .menu-kicker { color: #fff; }
.touch-inner h2 { margin-bottom: 8px; }
.touch-inner p:last-child { margin: 0; }
.light-button { flex: 0 0 auto; color: #fff; border-color: #fff; }
.light-button:hover { color: var(--blue); background: #fff; }

.site-footer { padding: 59px 0 24px; color: #fff; background: var(--deep); }
.footer-main { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 48px; }
.footer-column h2 { margin: 0 0 18px; font: 400 22px Georgia, "Times New Roman", serif; }
.footer-column a, .footer-column button { display: block; margin: 10px 0; border: 0; padding: 0; color: #fff; background: transparent; font-size: 14px; text-decoration: none; text-align: left; }
.footer-column a:hover, .footer-column button:hover { text-decoration: underline; }
.footer-brand { display: flex; justify-content: flex-end; align-items: flex-start; gap: 12px; font: 400 28px Georgia, "Times New Roman", serif; }
.footer-brand img { width: 39px; filter: brightness(0) invert(1); }
.footer-legal { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.28); color: #e2e2e2; font-size: 12px; }
.footer-legal p { max-width: 930px; margin: 8px 0; }

.demo-dialog, .search-dialog {
  width: min(510px, calc(100% - 32px));
  padding: 37px;
  border: 0;
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(0,0,0,.3);
}
.search-dialog { width: min(640px, calc(100% - 32px)); }
.demo-dialog::backdrop, .search-dialog::backdrop { background: rgba(1, 28, 43, .74); }
.demo-dialog h2, .search-dialog h2 { margin: 0 0 15px; font: 400 31px Georgia, "Times New Roman", serif; }
.dialog-close { position: absolute; top: 11px; right: 15px; border: 0; padding: 3px; color: var(--ink); background: transparent; font-size: 28px; }
.dialog-confirm { margin-top: 10px; }
.search-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.search-form > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-form input { min-width: 0; border: 1px solid #8e8e8e; padding: 10px 12px; }
.search-status { color: var(--body); }
.search-results { display: grid; gap: 8px; }
.search-result { padding: 10px 12px; color: var(--ink); background: var(--soft); border-left: 3px solid var(--cyan); text-decoration: none; }

@media (max-width: 950px) {
  .page-width { width: min(100% - 32px, 760px); }
  .header-top { min-height: 68px; }
  .brand-label, .plain-button, .location-button { display: none; }
  .mobile-menu { display: flex; align-items: center; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .nav-inner { width: 100%; padding: 12px 16px 20px; flex-direction: column; align-items: stretch; }
  .nav-inner > button, .nav-inner > button:first-child { min-height: 44px; padding: 0; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .search-trigger { display: none !important; }
  .mega-menu { position: static; box-shadow: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 56vw; order: -1; }
  .hero-copy { min-height: 410px; }
  .hero-copy-inner { margin: 0 auto; width: min(100% - 64px, 700px); padding: 58px 0; }
  .hero h1 { font-size: 54px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: 44% 56%; }
  .service-card > img { height: 100%; aspect-ratio: auto; }
  .split-feature { grid-template-columns: 1fr; }
  .split-feature > img { min-height: 48vw; }
  .digital-grid { grid-template-columns: 1fr; gap: 22px; }
  .device-wrap { min-height: 340px; }
  .digital-copy { max-width: 650px; padding-bottom: 30px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { justify-content: flex-start; }
}

@media (max-width: 580px) {
  .practice-notice { font-size: 9px; }
  .brand-wordmark { width: 102px; }
  .brand-eagle { width: 31px; }
  .login-button { display: none; }
  .header-links { gap: 12px; }
  .hero-image { min-height: 72vw; }
  .hero-copy { min-height: 350px; }
  .hero-copy-inner { width: min(100% - 48px, 500px); padding: 48px 0; }
  .hero h1 { font-size: 42px; }
  .services { padding-block: 62px; }
  .section-intro h2, .feature-copy h2, .digital-copy h2, .touch-inner h2 { font-size: 34px; }
  .section-intro p, .digital-copy p { font-size: 17px; }
  .service-card { display: flex; }
  .service-card > img { height: auto; aspect-ratio: 4 / 3; }
  .experts { padding: 0; }
  .split-feature { width: 100%; }
  .split-feature > img { min-height: 75vw; }
  .feature-copy { padding: 42px 24px 48px; }
  .digital { padding-top: 35px; }
  .device-wrap { min-height: 270px; }
  .button-row, .button-row button { width: 100%; }
  .touch-inner { align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; }
  .search-form > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.login-button.current { background: var(--blue-hover); }
.home-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.login-main { background: #fff; }
.login-intro {
  padding: 28px 0 58px;
  color: #fff;
  background: var(--navy);
}
.breadcrumbs {
  margin-bottom: 55px;
  display: flex;
  gap: 9px;
  color: #e2e2e2;
  font-size: 13px;
}
.breadcrumbs a { color: #fff; }
.training-label {
  width: fit-content;
  margin: 0 0 17px;
  padding: 5px 9px;
  color: #272727;
  background: #e7f0fb;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.login-intro h1 {
  margin: 0 0 12px;
  font: 400 58px/1.08 Georgia, "Times New Roman", serif;
}
.login-intro p:last-child { margin: 0; font-size: 21px; }
.login-platforms { padding-block: 76px 88px; }
.login-platforms > h2, .international-login h2, .security-callout h2 {
  margin: 0 0 34px;
  font: 400 39px/1.18 Georgia, "Times New Roman", serif;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.platform-card {
  min-height: 310px;
  padding: 31px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--soft);
  border-top: 4px solid var(--cyan);
}
.platform-card h3 {
  margin: 0 0 15px;
  font: 400 25px/1.26 Georgia, "Times New Roman", serif;
}
.platform-card p { margin: 0 0 27px; color: var(--body); }
.platform-card.compact-card { min-height: 255px; }
.platform-actions {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.platform-actions button { max-width: 100%; }
.international-login { padding: 78px 0 90px; background: var(--pale); }
.two-column .platform-card { background: #fff; }
.security-callout { padding: 54px 0; color: #fff; background: var(--navy); }
.security-inner { display: flex; justify-content: space-between; align-items: center; gap: 45px; }
.security-callout h2 { margin-bottom: 8px; }
.security-callout p { margin: 0; }
.security-callout .light-button { flex: 0 0 auto; text-decoration: none; }

@media (max-width: 950px) {
  .home-link { margin: 0; min-height: 44px; }
}
@media (max-width: 700px) {
  .login-intro { padding-bottom: 45px; }
  .breadcrumbs { margin-bottom: 40px; }
  .login-intro h1 { font-size: 45px; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card, .platform-card.compact-card { min-height: 0; }
  .security-inner { align-items: flex-start; flex-direction: column; }
}


/* Linked controls and tiles mirror the reference homepage interaction model. */
.hero-button,
.primary-button,
.secondary-button,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
}
.service-card {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.service-card:hover {
  box-shadow: 0 8px 24px rgba(39, 39, 39, .16);
  transform: translateY(-2px);
}
.service-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.tile-arrow {
  width: 36px;
  height: 36px;
  margin-top: auto;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
}
.section-intro sup a {
  color: var(--blue);
  text-decoration: none;
}
@media (max-width: 580px) {
  .button-row > * { width: 100%; }
}


/* Distinct reference-aligned navigation panels. */
.mega-menu {
  max-height: calc(100vh - 128px);
  overflow-y: auto;
}
.mega-heading h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
}
@media (min-width: 951px) {
  .mega-grid {
    grid-template-columns: minmax(180px, .85fr) repeat(4, minmax(150px, 1fr));
    gap: 30px;
  }
  .mega-grid.compact-menu {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(220px, 1fr));
    justify-content: start;
  }
  .mega-grid.support-menu {
    grid-template-columns: minmax(210px, .9fr) repeat(3, minmax(190px, 1fr));
  }
}
@media (max-width: 950px) {
  .mega-grid,
  .mega-grid.compact-menu,
  .mega-grid.support-menu {
    grid-template-columns: 1fr 1fr;
  }
  .mega-heading { grid-column: 1 / -1; }
  .mega-menu { max-height: none; }
}
@media (max-width: 580px) {
  .mega-grid,
  .mega-grid.compact-menu,
  .mega-grid.support-menu {
    grid-template-columns: 1fr;
  }
  .mega-heading { grid-column: auto; }
}

/* Reference-aligned submenu column layouts. */
@media (min-width: 951px) {
  #menu-private .mega-grid,
  #menu-international .mega-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #menu-digital .mega-grid,
  #menu-insights .mega-grid {
    grid-template-columns: repeat(2, minmax(180px, 220px));
    justify-content: start;
    column-gap: 16px;
  }
  #menu-support .mega-grid {
    grid-template-columns: repeat(3, minmax(190px, 230px));
    justify-content: start;
    column-gap: 16px;
  }
}

/* Fictional local authentication demo */
.practice-auth-page,
.practice-account-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: #17222d;
  background: #f3f6f7;
  font-family: Arial, Helvetica, sans-serif;
}
.practice-header {
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: #12343f;
}
.practice-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 700; }
.practice-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #12343f; background: #65d2c2; border-radius: 50%; font: 700 21px/1 Georgia, serif; }
.demo-environment { padding: 6px 10px; color: #12343f; background: #d9f4ef; font-size: 13px; font-weight: 700; }
.auth-shell { flex: 1; width: min(100% - 40px, 520px); margin: 70px auto; }
.auth-panel { padding: 42px; background: #fff; border: 1px solid #d5dee1; box-shadow: 0 16px 45px rgba(23, 34, 45, .1); }
.auth-copy { margin-bottom: 32px; }
.auth-eyebrow { margin: 0 0 10px; color: #22786f; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.auth-copy h1,
.account-heading h1 { margin: 0 0 12px; font: 400 43px/1.15 Georgia, "Times New Roman", serif; }
.auth-copy p:last-child { margin: 0; color: #52616b; font-size: 17px; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 8px; font-weight: 700; }
.auth-form input { min-height: 48px; padding: 9px 12px; border: 1px solid #8d9ba2; border-radius: 0; font: inherit; }
.auth-form input:focus { outline: 3px solid rgba(35, 157, 143, .25); border-color: #22786f; }
.auth-submit { min-height: 49px; margin-top: 16px; border: 0; color: #fff; background: #176b63; font: 700 16px/1 Arial, sans-serif; cursor: pointer; }
.auth-submit:hover { background: #10534d; }
.auth-error { margin: 0 0 8px; padding: 12px; color: #861b24; background: #fff0f1; border-left: 4px solid #b4232f; }
.demo-credentials { margin-top: 28px; padding: 18px; display: grid; gap: 8px; background: #e8f5f3; border-left: 4px solid #239d8f; }
.demo-credentials code { color: #17222d; font-size: 14px; }
.practice-footer { padding: 24px; color: #56636b; text-align: center; font-size: 13px; }
.account-header form { margin: 0; }
.account-logout { padding: 9px 18px; color: #fff; background: transparent; border: 1px solid #b9d2d0; font-weight: 700; cursor: pointer; }
.account-shell { flex: 1; width: min(100% - 40px, 1080px); margin: 64px auto; }
.account-heading { margin-bottom: 36px; }
.balance-panel { padding: 38px; display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; color: #fff; background: #176b63; }
.balance-panel p { margin: 0 0 12px; }
.balance-panel strong { display: block; font: 400 49px/1.1 Georgia, "Times New Roman", serif; }
.balance-panel strong span { margin-right: 10px; font: 700 13px/1 Arial, sans-serif; }
.balance-panel > p { margin: 0; text-align: right; line-height: 1.6; }
.balance-panel > p span { color: #c9e5e1; }
.account-summary { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #d5dee1; background: #fff; }
.account-summary div { min-height: 110px; padding: 25px; display: grid; gap: 10px; border-right: 1px solid #d5dee1; }
.account-summary div:last-child { border-right: 0; }
.account-summary span { color: #64727a; }
.account-summary strong { font-size: 20px; }
@media (max-width: 650px) {
  .practice-header { min-height: 68px; }
  .practice-brand span:last-child { font-size: 14px; }
  .auth-shell { margin: 34px auto; }
  .auth-panel { padding: 28px 22px; }
  .auth-copy h1, .account-heading h1 { font-size: 35px; }
  .balance-panel { padding: 28px 24px; align-items: flex-start; flex-direction: column; }
  .balance-panel strong { font-size: 38px; }
  .balance-panel > p { text-align: left; }
  .account-summary { grid-template-columns: 1fr; }
  .account-summary div { border-right: 0; border-bottom: 1px solid #d5dee1; }
  .account-summary div:last-child { border-bottom: 0; }
}
