:root {
  --branch-deep-blue: #101096;
  --branch-blue: #0e25f5;
  --branch-yellow: #fff200;
  --branch-ink: #071742;
  --branch-muted: #58627a;
  --branch-paper: #fffdf7;
  --branch-soft: #f2f5ff;
  --branch-line: #dce3f4;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

.branch-page {
  margin: 0;
  background: var(--branch-paper);
  color: var(--branch-ink);
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.branch-page main,
.branch-page main > *,
.branch-page main * {
  min-width: 0;
}

.branch-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.branch-breadcrumb {
  padding-block: 20px 10px;
  color: var(--branch-muted);
  font-size: 14px;
  font-weight: 700;
}

.branch-breadcrumb a {
  color: var(--branch-deep-blue);
  text-decoration: none;
}

.branch-breadcrumb span {
  margin-inline: 8px;
  color: #9aa4bd;
}

.branch-hero {
  padding: 42px 0 76px;
}

.branch-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: clamp(36px, 6vw, 82px);
}

.branch-eyebrow {
  margin: 0 0 15px;
  color: var(--branch-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.branch-hero h1 {
  margin: 0;
  color: var(--branch-ink);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.branch-hero h1 em {
  display: block;
  width: fit-content;
  margin-top: 12px;
  padding: 5px 12px 9px;
  background: var(--branch-deep-blue);
  color: var(--branch-yellow);
  font-size: 0.55em;
  font-style: normal;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.branch-hero-copy > p:not(.branch-eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--branch-muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
}

.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.branch-button {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--branch-deep-blue);
  border-radius: 10px;
  color: var(--branch-deep-blue);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.branch-button--primary {
  background: var(--branch-deep-blue);
  color: #fff;
  box-shadow: 0 7px 0 #e2bd00;
}

.branch-button:hover,
.branch-button:focus-visible {
  background: var(--branch-yellow);
  color: var(--branch-deep-blue);
}

.branch-button:focus-visible,
.branch-page a:focus-visible,
.branch-page button:focus-visible {
  outline: 3px solid var(--branch-yellow);
  outline-offset: 3px;
}

.branch-hero-figure {
  margin: 0;
  border: 8px solid #fff;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 23, 66, 0.18);
}

.branch-hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.branch-hero-figure figcaption {
  padding: 14px 18px 16px;
  color: var(--branch-deep-blue);
  font-size: 14px;
  font-weight: 900;
}

.branch-facts {
  margin-top: -24px;
  position: relative;
  z-index: 1;
}

.branch-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--branch-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(7, 23, 66, 0.1);
}

.branch-fact {
  padding: 25px 28px;
}

.branch-fact + .branch-fact {
  border-left: 1px solid var(--branch-line);
}

.branch-fact small {
  display: block;
  margin-bottom: 8px;
  color: var(--branch-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.branch-fact strong,
.branch-fact address {
  margin: 0;
  color: var(--branch-ink);
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.branch-section {
  padding: 92px 0;
}

.branch-section--soft {
  background: var(--branch-soft);
}

.branch-section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.branch-section-heading h2 {
  margin: 0;
  color: var(--branch-ink);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.branch-section-heading h2 em {
  color: var(--branch-blue);
  font-style: normal;
}

.branch-section-heading p {
  margin: 16px 0 0;
  color: var(--branch-muted);
  font-size: 17px;
  line-height: 1.75;
}

.branch-program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.branch-program-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--branch-line);
  border-radius: 18px;
  background: #fff;
}

.branch-program-card b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--branch-yellow);
  color: var(--branch-deep-blue);
  font-size: 14px;
  font-weight: 900;
}

.branch-program-card h3 {
  margin: 28px 0 10px;
  color: var(--branch-deep-blue);
  font-size: 22px;
  font-weight: 900;
}

.branch-program-card p {
  margin: 0;
  color: var(--branch-muted);
  font-size: 15px;
  line-height: 1.7;
}

.branch-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.branch-support-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 23, 66, 0.1);
}

.branch-support-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.branch-support-card div {
  padding: 22px;
}

.branch-support-card h3 {
  margin: 0 0 8px;
  color: var(--branch-deep-blue);
  font-size: 21px;
  font-weight: 900;
}

.branch-support-card p {
  margin: 0;
  color: var(--branch-muted);
  font-size: 15px;
  line-height: 1.7;
}

.branch-location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: start;
  gap: 28px;
}

.branch-contact-card,
.branch-hours-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--branch-line);
  border-radius: 22px;
  background: #fff;
}

.branch-contact-card h2,
.branch-hours-card h2 {
  margin: 0 0 18px;
  color: var(--branch-ink);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.branch-contact-card address {
  margin: 0;
  color: var(--branch-muted);
  font-size: 17px;
  font-style: normal;
  line-height: 1.75;
}

.branch-contact-card .branch-phone-line {
  margin: 18px 0 0;
  color: var(--branch-deep-blue);
  font-size: 21px;
  font-weight: 900;
}

.branch-contact-card .branch-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.branch-contact-card .branch-socials a {
  color: var(--branch-blue);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.branch-hours {
  margin: 0;
}

.branch-hours > div {
  padding: 11px 0;
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--branch-line);
}

.branch-hours > div:last-child {
  border-bottom: 0;
}

.branch-hours dt,
.branch-hours dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.branch-hours dt {
  color: var(--branch-ink);
  font-weight: 900;
}

.branch-hours dd {
  color: var(--branch-muted);
  text-align: right;
}

.branch-hours-note {
  margin: 16px 0 0;
  color: var(--branch-muted);
  font-size: 13px;
  line-height: 1.6;
}

.branch-nearby {
  padding: 70px 0 92px;
  background: var(--branch-deep-blue);
  color: #fff;
}

.branch-nearby .branch-section-heading h2,
.branch-nearby .branch-section-heading p {
  color: #fff;
}

.branch-nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.branch-nearby-card {
  min-height: 130px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.branch-nearby-card strong {
  font-size: 19px;
  font-weight: 900;
}

.branch-nearby-card span {
  color: var(--branch-yellow);
  font-size: 14px;
  font-weight: 900;
}

.branch-nearby-card:hover,
.branch-nearby-card:focus-visible {
  background: var(--branch-yellow);
  color: var(--branch-deep-blue);
}

.branch-nearby-card:hover span,
.branch-nearby-card:focus-visible span {
  color: var(--branch-deep-blue);
}

@media (max-width: 1100px) {
  .branch-hero {
    padding-top: 34px;
  }

  .branch-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
    gap: 34px;
  }

  .branch-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-support-grid {
    gap: 16px;
  }

  .branch-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .branch-shell {
    width: min(100% - 32px, 620px);
  }

  .branch-breadcrumb {
    padding-block: 15px 4px;
    font-size: 12px;
  }

  .branch-hero {
    padding: 24px 0 58px;
  }

  .branch-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .branch-hero-figure {
    order: -1;
    border-width: 5px;
    border-radius: 18px;
  }

  .branch-hero h1 {
    font-size: clamp(34px, 10.5vw, 44px);
    overflow-wrap: anywhere;
  }

  .branch-hero h1 em {
    width: auto;
    font-size: 0.48em;
  }

  .branch-hero-copy > p:not(.branch-eyebrow) {
    font-size: 16px;
    line-height: 1.72;
  }

  .branch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-button {
    width: 100%;
    min-height: 52px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .branch-facts {
    margin-top: -18px;
  }

  .branch-facts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .branch-fact {
    padding: 20px;
  }

  .branch-fact + .branch-fact {
    border-top: 1px solid var(--branch-line);
    border-left: 0;
  }

  .branch-section {
    padding: 68px 0;
  }

  .branch-section-heading {
    margin-bottom: 28px;
  }

  .branch-section-heading h2 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .branch-program-grid,
  .branch-support-grid,
  .branch-location-grid,
  .branch-nearby-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .branch-program-card {
    min-height: 0;
  }

  .branch-support-card img {
    aspect-ratio: 16 / 9;
  }

  .branch-contact-card,
  .branch-hours-card {
    padding: 24px;
  }

  .branch-hours > div {
    grid-template-columns: minmax(80px, 0.65fr) minmax(0, 1fr);
    gap: 10px;
  }

  .branch-hours dt,
  .branch-hours dd {
    font-size: 14px;
  }

  .branch-nearby {
    padding: 58px 0 76px;
  }
}

@media (max-width: 390px) {
  .branch-shell {
    width: calc(100% - 28px);
  }

  .branch-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .branch-hero h1 em {
    padding-inline: 8px;
  }
}

/* Keep the shared two-column branch lockup inside older 320px iPhones without
   changing the footer composition used by the existing site. */
@media (max-width: 360px) {
  .branch-page footer.site-bottom-bar .bottom-brand {
    align-items: flex-start;
    gap: 10px;
  }

  .branch-page footer.site-bottom-bar .bottom-brand img {
    width: 54px;
  }

  .branch-page footer.site-bottom-bar .bottom-brand > div {
    width: calc(100% - 64px);
  }

  .branch-page footer.site-bottom-bar .bottom-brand .footer-branches {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 13px !important;
  }

  .branch-page footer.site-bottom-bar .footer-branches > span:nth-child(even)::before {
    margin-left: 4px;
  }
}
