.oc-branches-page {
  --branches-navy: #102d47;
  --branches-blue: #0b68aa;
  --branches-line: #d9e6ef;
  --branches-muted: #647789;
  color: var(--branches-navy);
  background: #fff;
}

.oc-branches-page [hidden] {
  display: none !important;
}

.oc-branches-hero {
  overflow: hidden;
  padding: 30px 0 66px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 14%, rgba(68, 170, 232, .3), transparent 31%),
    linear-gradient(135deg, #0a2944 0%, #0c4775 60%, #0b6da9 100%);
}

.oc-branches-breadcrumbs {
  display: flex;
  gap: 9px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.oc-branches-breadcrumbs a {
  color: #fff;
  text-decoration: none;
}

.oc-branches-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .65fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
}

.oc-branches-eyebrow {
  margin: 0 0 10px;
  color: #1582ca;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.oc-branches-hero .oc-branches-eyebrow,
.oc-branches-cta .oc-branches-eyebrow {
  color: #8fd2ff;
}

.oc-branches-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(39px, 5.5vw, 69px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.02;
}

.oc-branches-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.oc-branches-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.oc-branches-stats span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
}

.oc-branches-stats strong {
  color: #fff;
  font-size: 15px;
}

.oc-branches-main-office {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 24px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 26px 70px rgba(1, 20, 36, .28);
}

.oc-branches-main-office span {
  display: inline-block;
  margin-bottom: 17px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #075a94;
  background: #e4f4ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.oc-branches-main-office strong {
  display: block;
  color: var(--branches-navy);
  font-size: 28px;
}

.oc-branches-main-office p {
  margin: 9px 0 22px;
  color: var(--branches-muted);
}

.oc-branches-main-office a {
  color: var(--branches-blue);
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.oc-branches-directory {
  padding-top: 70px;
  padding-bottom: 76px;
}

.oc-branches-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 12px;
}

.oc-branches-heading h2 {
  margin: 0;
  color: var(--branches-navy);
  font-size: clamp(29px, 4vw, 43px);
  letter-spacing: -.025em;
  line-height: 1.1;
}

.oc-branches-search {
  position: relative;
  width: min(420px, 100%);
}

.oc-branches-search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #397da9;
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.oc-branches-search input {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 48px;
  border: 1px solid #bed4e3;
  border-radius: 14px;
  color: var(--branches-navy);
  background: #f8fbfd;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.oc-branches-search input:focus {
  border-color: #2b8bc9;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 130, 202, .13);
}

.oc-branches-result {
  margin: 0 0 24px;
  color: var(--branches-muted);
  font-size: 13px;
}

.oc-branches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.oc-branch-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--branches-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(15, 45, 70, .06);
  scroll-margin-top: 120px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.oc-branch-card:hover,
.oc-branch-card.is-highlighted {
  border-color: #77b9e5;
  box-shadow: 0 17px 46px rgba(15, 70, 110, .13);
  transform: translateY(-2px);
}

.oc-branch-card.is-main {
  border-color: #68b7e8;
  background: linear-gradient(180deg, #f2faff 0%, #fff 42%);
}

.oc-branch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.oc-branch-card-head p {
  margin: 0 0 5px;
  color: var(--branches-muted);
  font-size: 12px;
  text-transform: capitalize;
}

.oc-branch-card h2 {
  margin: 0;
  color: var(--branches-navy);
  font-size: 23px;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.oc-branch-badge {
  display: inline-block;
  margin-bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #075a94;
  background: #dff2ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.oc-branch-pin {
  display: inline-flex;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #0870b4;
  background: #e9f6ff;
}

.oc-branch-pin svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.oc-branch-region {
  min-height: 39px;
  margin: 9px 0 21px;
  color: var(--branches-muted);
  font-size: 13px;
  line-height: 1.45;
}

.oc-branch-address {
  min-height: 76px;
  padding-top: 17px;
  border-top: 1px solid #e5edf3;
}

.oc-branch-address strong {
  color: #60778a;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.oc-branch-address p {
  margin: 7px 0 0;
  color: #28465f;
  font-size: 14px;
  line-height: 1.5;
}

.oc-branch-phone {
  margin-top: 17px;
  color: var(--branches-blue);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.oc-branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.oc-branch-actions a {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #c8dce9;
  border-radius: 10px;
  color: #174b70;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.oc-branch-actions a:hover {
  border-color: #74b5df;
  background: #f0f9ff;
}

.oc-branch-actions .oc-branch-primary {
  border-color: var(--branches-blue);
  color: #fff;
  background: var(--branches-blue);
}

.oc-branches-empty {
  padding: 45px 20px;
  border: 1px dashed #aec9db;
  border-radius: 18px;
  text-align: center;
  background: #f7fbfe;
}

.oc-branches-empty strong {
  font-size: 22px;
}

.oc-branches-empty p {
  color: var(--branches-muted);
}

.oc-branches-empty a {
  color: var(--branches-blue);
  font-weight: 800;
}

.oc-branches-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 15px;
  color: #526d82;
  background: #f1f7fb;
  font-size: 13px;
  line-height: 1.55;
}

.oc-branches-source p {
  margin: 0;
}

.oc-branches-source a {
  flex: 0 0 auto;
  color: var(--branches-blue);
  font-weight: 800;
  text-decoration: none;
}

.oc-branches-cta {
  padding: 56px 0;
  color: #fff;
  background: #0a2e4b;
}

.oc-branches-cta .oc-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.oc-branches-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(29px, 4vw, 43px);
}

.oc-branches-cta p:not(.oc-branches-eyebrow) {
  max-width: 750px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .75);
  line-height: 1.6;
}

.oc-branches-cta a {
  display: inline-flex;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  color: #092842;
  background: #ffd83d;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .oc-branches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .oc-branches-hero {
    padding-bottom: 44px;
  }

  .oc-branches-breadcrumbs {
    margin-bottom: 25px;
  }

  .oc-branches-hero-grid,
  .oc-branches-heading {
    grid-template-columns: 1fr;
  }

  .oc-branches-hero-grid {
    display: grid;
    gap: 29px;
  }

  .oc-branches-main-office {
    padding: 22px;
  }

  .oc-branches-directory {
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .oc-branches-heading {
    display: grid;
    align-items: stretch;
    gap: 22px;
  }

  .oc-branches-search {
    width: 100%;
  }

  .oc-branches-grid {
    grid-template-columns: 1fr;
  }

  .oc-branch-region,
  .oc-branch-address {
    min-height: 0;
  }

  .oc-branches-source,
  .oc-branches-cta .oc-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .oc-branches-cta a {
    width: 100%;
  }
}
