/* Branch locations and dated Google rating summaries. */

.branches {
  position: relative;
  padding: 72px 0 76px;
  background:
    url("../images/branch-map.svg") right bottom / min(100%, 1080px) auto
      no-repeat,
    radial-gradient(ellipse at 3% 0%, #fafdf5, transparent 58%),
    linear-gradient(120deg, #e1f1e9, #d7ece4 62%, #e8f4e9);
  border-block: 1px solid #dce8df;
}
.branches__heading {
  margin-bottom: 32px;
  align-items: end;
}
.branches__heading h2 {
  max-width: 620px;
}
.branches__heading > p {
  max-width: 340px;
}
.branches__layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.branches__selector {
  position: relative;
  min-width: 0;
}
.branch-panels {
  display: grid;
  min-width: 0;
  gap: 16px;
}
html:not(.js) .branches__layout {
  grid-template-columns: minmax(0, 1fr);
}
.branch-tabs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.branch-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 71px;
  padding: 13px 16px;
  border: 1px solid #d4e3d8;
  border-radius: 16px;
  background: #fffdf9b8;
  color: var(--ink);
  text-align: left;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.branch-tab:hover {
  background: #fffefa;
  border-color: #96bdb2;
}
.branch-tab__icon {
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #e0eee5;
  color: var(--teal-deep);
}
.branch-tab__icon .icon {
  width: 19px;
  height: 19px;
}
.branch-tab__name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}
.branch-tab__area {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}
.branch-tab:is(.is-active, [aria-selected="true"]) {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
  box-shadow: 0 7px 18px #075e6618;
}
.branch-tab:is(.is-active, [aria-selected="true"]) .branch-tab__icon {
  background: #ffffff20;
  color: #fff;
}
.branch-tab:is(.is-active, [aria-selected="true"]) .branch-tab__area {
  color: #e1f2e9;
}
.branch-tab:focus-visible,
.branch-panel:focus-visible {
  outline: 3px solid #087f82;
  outline-offset: 4px;
}
.branch-panel {
  min-width: 0;
  padding: 30px 32px 26px;
  border: 1px solid #d9e5dc;
  border-radius: 26px;
  background: #fffefa;
  box-shadow: 0 16px 45px #174f5608;
}
.branch-panel__header {
  min-width: 0;
}
.branch-panel__kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.branch-panel__title,
.branch-panel__header h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.branch-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.branch-address > .icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  color: var(--teal);
}
.branch-address address,
.branch-address p {
  margin: 0;
  font: inherit;
}
.google-rating {
  margin-top: 23px;
  padding: 21px 23px 18px;
  background: #ffffff;
  border: 1px solid #e0e9df;
  border-radius: 18px;
}
.google-rating__brand-label {
  color: #5f6368;
  font-weight: 400;
}
.google-rating__scale {
  margin-left: 6px;
  color: #65777b;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.google-stars {
  display: inline-block;
  position: relative;
  align-self: start;
  width: max-content;
  font-size: 23px;
  letter-spacing: 3px;
  line-height: 1.15;
}
.google-stars__empty {
  color: #e5e7eb;
}
.google-stars__fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #fbbc04;
  white-space: nowrap;
}
.google-rating__bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #edf0f3;
}
.google-review-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #1967d2;
  font-size: 14px;
  font-weight: 600;
  min-height: 30px;
}
.google-review-link .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.google-review-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.google-rating__bottom .google-rating__date {
  margin: 0;
}
.branch-contact-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 13px;
  font-size: 14px;
  color: var(--teal-deep);
}
.branch-contact-line .icon {
  width: 18px;
  height: 18px;
}
.branch-contact-line a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}
.branch-tab__text {
  min-width: 0;
}
.final-cta__portrait > img {
  width: 112%;
  left: -4%;
  height: 118%;
  object-fit: contain;
}
@media (min-width: 1091px) and (max-width: 1199px) {
  .desktop-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
    gap: 18px;
  }
  .menu-toggle {
    display: flex;
    width: 35px;
    height: 40px;
  }
  .mobile-menu:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px 18px;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    padding: 19px 32px 24px;
    background: rgba(250, 252, 247, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px #063e4410;
  }
  .mobile-menu a,
  .mobile-menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 9px;
    background: none;
    border-radius: 12px;
    text-align: left;
    font-weight: 800;
    font-size: 14px;
  }
  .mobile-menu .icon {
    width: 19px;
    height: 19px;
    color: var(--teal);
  }
}
@media (max-width: 760px) {
  .branches {
    background-position:
      right 13%,
      center,
      center;
    background-size:
      650px auto,
      auto,
      auto;
  }
  .final-cta__portrait > img {
    width: 114%;
    left: -7%;
    height: 112%;
  }
  .google-rating__bottom {
    gap: 9px;
  }
}
.google-rating__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #43565a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.google-rating__brand > svg,
.google-rating__brand > img,
.google-rating .google-logo,
.google-rating .google-mark {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
}
.google-rating__summary,
.google-rating__score {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 13px;
}
.google-rating__value {
  display: block;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.google-rating__detail {
  display: grid;
  align-content: center;
  gap: 6px;
}
.google-rating__stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #dfaa2e;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.035em;
}
.google-rating__stars .icon,
.google-rating__stars svg {
  display: block;
  width: 19px;
  height: 19px;
}
.google-rating__stars .icon {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
}
.google-rating__count {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
a.google-rating__count {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.google-rating__date {
  display: block;
  margin-top: 14px;
  color: #657d77;
  font-size: 12px;
  line-height: 1.5;
}
.google-rating__pending,
.google-rating > p:not([class]) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 23px;
}
.branch-actions > .button {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  min-height: 49px;
  padding: 13px 18px;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.branch-actions > .button .icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.branch-actions .button--outline {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid #8dbab3;
}
.branch-actions .button--outline:hover {
  background: #e9f3ed;
  border-color: var(--teal);
}
.branch-footnote {
  margin-top: 17px;
  color: #698078;
  font-size: 12px;
  line-height: 1.65;
}

/* Keep desktop navigation compact and mobile links centered across two rows. */
.footer-top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(108px, 1fr);
  grid-template-areas: "brand nav social";
  align-items: center;
  gap: 25px;
}
.footer-brand {
  grid-area: brand;
  min-width: 0;
}
.footer-nav-wrap {
  grid-area: nav;
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: max-content;
  max-width: 100%;
  margin: 0;
}
.footer-nav a,
.footer-nav button {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 44px;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.footer-nav .icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.footer-social {
  grid-area: social;
  justify-self: end;
  margin: 0;
}

@media (min-width: 761px) and (max-width: 1179px) {
  .footer-top {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand social" "nav nav";
    gap: 19px 24px;
  }
  .footer-nav-wrap {
    width: 100%;
  }
  .footer-nav {
    margin-inline: auto;
    gap: 27px;
  }
}
@media (max-width: 959px) {
  .branches__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
  }
  .branches__selector::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 5px;
    width: 22px;
    background: linear-gradient(90deg, transparent, #eff5ed);
    pointer-events: none;
  }
  .branch-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #a9c8bc transparent;
    padding: 5px 24px 9px 4px;
    margin: -5px -4px -9px;
  }
  .branch-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 165px;
    min-height: 66px;
    padding: 11px 15px;
    border-radius: 14px;
    scroll-snap-align: start;
  }
  .branch-tab__name {
    white-space: nowrap;
    font-size: 15px;
  }
  .branch-tab__icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
  .branch-tab__icon .icon {
    width: 17px;
    height: 17px;
  }
  .branch-panel {
    padding: 29px 30px 25px;
  }
}
@media (max-width: 760px) {
  .branches {
    padding: 49px 0 53px;
  }
  .branches__selector::after {
    display: none;
  }
  .branch-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 0;
    margin: 0;
    overflow: visible;
  }
  .branch-tab {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding: 12px 4px;
    text-align: center;
    border-radius: 14px;
  }
  .branch-tab__icon {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
  }
  .branch-tab__icon .icon {
    width: 16px;
    height: 16px;
  }
  .branch-tab__name {
    font-size: 14px;
  }
  .branch-tab__area {
    display: none;
  }
  .branches__heading {
    display: block;
    margin-bottom: 25px;
  }
  .branches__heading h2 {
    max-width: 500px;
  }
  .branches__heading > p {
    margin-top: 14px;
    max-width: 500px;
    font-size: 16px;
  }
  .branch-panel {
    padding: 25px 23px 23px;
    border-radius: 22px;
  }
  .branch-panel__title,
  .branch-panel__header h3 {
    font-size: 28px;
  }
  .branch-address {
    margin-top: 13px;
    gap: 9px;
    font-size: 16px;
  }
  .google-rating {
    margin-top: 20px;
    padding: 19px 18px 17px;
    border-radius: 16px;
  }
  .google-rating__value {
    font-size: 44px;
  }
  .google-rating__summary,
  .google-rating__score {
    gap: 13px;
  }
  .branch-actions {
    margin-top: 19px;
    gap: 10px;
  }
  .branch-actions > .button {
    flex: 1 1 100%;
    min-height: 48px;
  }
  .branch-footnote {
    margin-top: 15px;
  }
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "nav" "social";
    justify-items: center;
    gap: 14px;
  }
  .footer-brand {
    display: block;
    max-width: none;
    text-align: center;
  }
  .footer-brand .brand {
    margin-inline: auto;
  }
  .footer-brand p {
    max-width: 320px;
    margin-inline: auto;
    text-align: center;
  }
  .footer-nav-wrap {
    width: 100%;
  }
  .footer-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px 18px;
  }
  .footer-nav a,
  .footer-nav button {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .footer-social {
    justify-self: center;
    justify-content: center;
  }
  .footer-bottom {
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 520px) {
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px 6px;
  }
  .footer-nav a {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px 2px;
    overflow-wrap: anywhere;
    text-wrap: balance;
    font-size: 13px;
  }
  .footer-nav a:nth-child(4) {
    grid-column: 2 / span 2;
  }
}
@media (max-width: 374px) {
  .branch-panel {
    padding: 23px 18px 21px;
  }
  .branch-panel__title,
  .branch-panel__header h3 {
    font-size: 26px;
  }
  .branch-tab {
    min-width: 0;
    padding-inline: 3px;
    gap: 6px;
  }
  .google-rating {
    padding-inline: 15px;
  }
  .google-rating__value {
    font-size: 40px;
  }
  .google-rating__stars {
    gap: 2px;
  }
  .google-rating__stars .icon,
  .google-rating__stars svg {
    width: 17px;
    height: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .branch-tab {
    transition: none;
  }
  .branch-tabs,
  .footer-nav {
    scroll-behavior: auto;
  }
}
@media print {
  .branches__layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .branch-tabs {
    flex-direction: column;
    overflow: visible;
  }
  .branches__selector::after {
    display: none;
  }
  .footer-nav {
    overflow: visible;
    width: max-content;
  }
}
