/* Location office page — Figma: Catalog — Locations › "Location — 01 Office page (Boise) Option A" (1049:7160)
   Desktop: six-column grid (1200 content, 20px gutters): main = columns 1–4, contact card = columns 5–6.
   Hero 783px with a frosted 195px band at its foot holding the photo strip (columns 1–4); the contact column
   floats up 582px into the hero. Under 1100px everything stacks. */
.loc-hero,
.loc-body {
  --loc-gutter: 20px;
}

/* Hero */
.loc-hero {
  position: relative;
  min-height: 783px;
  display: flex;
  flex-direction: column;
  background: #595e63;
  color: #fff;
  overflow: hidden;
}
.loc-hero__media {
  position: absolute;
  inset: 0;
}
.loc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loc-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%);
}
.loc-hero__inner {
  position: relative;
  flex: 1;
  width: 100%;
  padding-top: 43px;
  padding-bottom: 193px;
  display: flex;
  flex-direction: column;
}
.loc-hero__back a {
  color: #fff;
  font-size: var(--fs-button-s);
  font-weight: 600;
  text-decoration: none;
  opacity: 0.9;
}
.loc-hero__back a:hover {
  opacity: 1;
  text-decoration: underline;
}
.loc-hero__copy {
  margin-top: auto;
  max-width: 716px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.loc-hero__city {
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}
.loc-hero__address {
  font-size: var(--fs-body-l);
  line-height: 1.6;
  color: #fff;
}
.loc-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 980px;
  background: #fff1e0;
  color: #b45a00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.loc-soon span {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Coming soon: "Coming in 2028" over the photo, top right (Figma 1703:3636) */
.loc-coming {
  align-self: flex-end;
  max-width: 716px;
  margin-top: 69px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}
.loc-coming p {
  margin: 0;
}
.loc-coming__eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ff8c00;
}
.loc-coming__text {
  font-size: 96px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.09em;
  color: #fff;
}
.loc-coming__note {
  font-size: var(--fs-body-l);
  line-height: 1.5;
  color: #fff;
}

/* Social row */
.loc-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
}
.loc-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--pcli-color-bg-subtle);
  border: 1px solid var(--pcli-color-border-default);
  color: var(--pcli-color-text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.loc-social__link:hover {
  background: #fff;
}
.loc-social__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pcli-color-text-tertiary);
}

/* Frosted band + photo strip */
.loc-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.loc-band__inner {
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--loc-gutter);
}
.loc-photos {
  grid-column: 1/5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--loc-gutter);
  margin: 0;
  padding: 0;
  list-style: none;
} /* five across the 4-column main width; 28px above and below in the band */
.loc-photos__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 173/138;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pcli-color-bg-muted);
  cursor: zoom-in;
}
.loc-photos__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.loc-photos__thumb:hover img {
  transform: scale(1.04);
}
.loc-photos__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: var(--fs-button-s);
  font-weight: 600;
}

/* Body grid */
.loc-body {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--loc-gutter);
  align-items: start;
  padding-top: 40px;
  padding-bottom: 40px;
} /* 40px: the sticky contact column stops this far above the doctors band */
.loc-main {
  margin-bottom: 56px;
} /* keeps the main column 96px above the band */
.loc-main {
  grid-column: 1/5;
  display: flex;
  flex-direction: column;
  gap: 64px;
  min-width: 0;
}
.loc-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.loc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.loc-head .eyebrow {
  margin-bottom: 8px;
  padding: 0 20px;
} /* Figma: Location / Section header — eyebrow 20px in from the heading */
.loc-head__title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--pcli-color-text-primary);
}
.loc-head .link,
.loc-head .chip {
  flex: none;
  white-space: nowrap;
}
.loc-block__link {
  margin-top: -4px;
}
.loc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.loc-tag {
  padding: 7px 14px;
  border-radius: 980px;
  background: #e3f4f6;
  color: #0d9898;
  font-size: var(--fs-title-s);
  font-weight: 600;
  line-height: 1.35;
}

/* Doctors: four across, one per grid column */
.loc-doctors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px var(--loc-gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
.loc-doctor {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
}
.loc-doctor__photo {
  display: block;
  aspect-ratio: 228/250;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pcli-color-bg-muted);
}
.loc-doctor__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.loc-doctor:hover .loc-doctor__photo img {
  transform: scale(1.03);
}
.loc-doctor__name {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--pcli-color-text-primary);
}
.loc-doctor:hover .loc-doctor__name {
  color: var(--pcli-color-text-link);
}
.loc-doctor__role {
  font-size: var(--fs-body-s);
  line-height: 1.5;
  color: var(--pcli-color-text-secondary);
}

/* Floating contact column */
.loc-aside {
  grid-column: 5/7;
  justify-self: end;
  width: 362px;
  max-width: 100%;
  position: relative;
  z-index: 2;
  margin-top: -552px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
} /* top sits 271px into the hero (Figma 1130:1471); 362px wide against the right edge, so it has room beside the main column (Figma: Location / Contact card) */
.loc-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--pcli-color-border-default);
  border-radius: 12px;
}
.loc-manager {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}
.loc-manager__photo {
  flex: 0 0 96px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pcli-color-bg-muted);
}
.loc-manager__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loc-manager__name {
  margin-top: 4px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--pcli-color-text-primary);
}
.loc-manager__note {
  margin-top: 4px;
  font-size: var(--fs-body-s);
  line-height: 1.5;
  color: var(--pcli-color-text-secondary);
}
.loc-label {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pcli-color-text-tertiary);
}
.loc-label--eyebrow {
  color: var(--pcli-color-text-eyebrow);
}
.loc-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loc-group__body {
  padding: 0 10px;
  font-size: var(--fs-body-m);
  line-height: 1.55;
  color: var(--pcli-color-text-primary);
}
.loc-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
} /* Figma: hours rows 1px apart, phone rows 0 with 1px padding */
.loc-rows div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.loc-rows--phone {
  gap: 0;
}
.loc-rows--phone div {
  padding: 1px 0;
}
.loc-rows dt {
  color: var(--pcli-color-text-secondary);
}
.loc-rows dd {
  margin: 0;
  font-size: var(--fs-title-s);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.loc-rows dd a {
  color: var(--pcli-color-text-link);
  text-decoration: none;
}
.loc-rows dd a:hover {
  text-decoration: underline;
}
.loc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loc-actions__pdf {
  justify-content: center;
}
.loc-observe {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 32px;
  border-radius: 12px;
  background: #122026;
  color: #fff;
}
.loc-observe__title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.loc-observe__types {
  font-size: var(--fs-body-s);
  line-height: 1.5;
  color: #fff;
}
.loc-observe .btn {
  margin-top: 18px;
}

/* Photo viewer */
.loc-viewer {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}
.loc-viewer::backdrop {
  background: rgba(0, 0, 0, 0.85);
}
.loc-viewer figure {
  margin: 0;
  text-align: center;
}
.loc-viewer img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 8px;
}
.loc-viewer figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-body-s);
}
.loc-viewer__close,
.loc-viewer__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.loc-viewer__close:hover,
.loc-viewer__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.loc-viewer__close {
  top: -52px;
  right: 0;
}
.loc-viewer__nav {
  top: 50%;
  transform: translateY(-50%);
}
.loc-viewer__nav--prev {
  left: -60px;
}
.loc-viewer__nav--next {
  right: -60px;
}

/* Doctors at this office — full-width black band under the two columns. Figma: "Location — 01 Office page (Boise) ·
   Doctors on black (B: full-width band)": 80px top and bottom, cards 4 across 20px in from the heading, photos 285 × 335. */
.loc-team {
  background: #000;
  color: #fff;
  padding: 80px var(--gutter);
}
.loc-team__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.loc-team .eyebrow {
  color: #f58220;
}
.loc-team .loc-head__title {
  color: #fff;
}
.loc-team .link {
  color: #ffb35c;
}
.loc-team .loc-doctors {
  gap: 32px 20px;
  padding: 0 20px;
}
.loc-team .loc-doctor__photo {
  aspect-ratio: 285/335;
  background: #1b2126;
}
.loc-team .loc-doctor__name {
  color: #fff;
}
.loc-team .loc-doctor:hover .loc-doctor__name {
  color: #ffb35c;
}
.loc-team .loc-doctor__role {
  color: #aeb6bd;
}
.loc-team a:focus-visible {
  outline: 2px solid var(--pcli-color-border-focus);
  outline-offset: 2px;
}

/* Two columns: the contact column sticks under the nav bar (84px + 24px) as the page scrolls, and scrolls away when
   its bottom reaches the doctors band (it can't leave .loc-body). Taller than the window? The script in
   locations/entry.twig lowers --loc-stick so it scrolls until its bottom shows, then sticks. */
@media (min-width: 1101px) {
  .loc-aside {
    position: sticky;
    top: var(--loc-stick, 108px);
  }
}

/* Narrow screens: stack, no float */

@media (max-width: 1100px) {
  .loc-hero {
    min-height: 620px;
  }
  .loc-hero__inner {
    padding-top: 43px;
  }
  .loc-body {
    /* not 1fr: its min-content width (long links, the site-manager card) pushed the page sideways on phones */
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }
  .loc-main,
  .loc-aside {
    grid-column: 1/-1;
  }
  .loc-aside {
    margin-top: 0;
    justify-self: stretch;
    width: auto;
  }
  .loc-body {
    padding-bottom: 96px;
  }
  .loc-main {
    margin-bottom: 0;
  }
  .loc-band__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .loc-photos {
    grid-column: 1/-1;
  }
  .loc-doctors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .loc-viewer__nav--prev {
    left: 8px;
  }
  .loc-viewer__nav--next {
    right: 8px;
  }
}
/* Phones — Figma: Catalog — Locations › "Location — 06 Office page · Mobile (Boise)". Hero 460px with the copy at the
   foot; the photos become a black strip you swipe sideways; the contact card comes first (30px from the edge), then the
   services and doctors. Type on the 20px gutter, cards and lists 10px further in. */
@media (max-width: 720px) {
  .loc-hero {
    min-height: 0;
  }
  .loc-hero__inner {
    min-height: 460px;
    padding: 24px var(--gutter) 32px;
    box-sizing: border-box;
  }
  .loc-hero__copy {
    gap: 12px;
  }
  .loc-hero .eyebrow {
    font-size: 12px;
  }
  .loc-hero__city {
    font-size: var(--fs-heading-xl);
    letter-spacing: -0.04em;
  } /* PCLI/Heading XL */
  .loc-hero__address {
    font-size: 16px;
    line-height: 1.5;
  }
  .loc-coming {
    align-self: flex-start;
    align-items: flex-start;
    margin-top: 40px;
    gap: 8px;
    text-align: left;
  }
  .loc-coming__eyebrow {
    font-size: 12px;
  }
  .loc-coming__text {
    font-size: 48px;
    letter-spacing: -0.06em;
  }
  .loc-coming__note {
    font-size: 16px;
  }
  .loc-band {
    position: relative;
    height: auto;
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .loc-band__inner {
    display: block;
    padding: 16px 0;
  }
  .loc-photos {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .loc-photos::-webkit-scrollbar {
    display: none;
  }
  .loc-photos li {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }
  .loc-photos__thumb {
    aspect-ratio: 132/96;
    border-radius: 6px;
  }

  .loc-body {
    padding: 28px var(--gutter) 56px;
    row-gap: 40px;
  }
  .loc-side {
    order: -1;
    margin: 0 10px;
  }
  .loc-aside {
    gap: 16px;
  }
  .loc-card {
    padding: 20px;
  }
  .loc-main {
    gap: 48px;
  }
  .loc-block {
    gap: 20px;
  }
  .loc-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .loc-head .eyebrow {
    margin-bottom: 8px;
    padding: 0;
  } /* phones: eyebrow flush with the heading */
  .loc-services,
  .loc-doctors,
  .loc-tags {
    padding: 0 10px;
  }
  .loc-doctors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .loc-team {
    padding: 48px var(--gutter);
  }
  .loc-team__inner {
    gap: 20px;
  }
  .loc-team .loc-doctors {
    gap: 24px 16px;
    padding: 0 10px;
  }
}

/* Surgeries & services — the Services page lists (services.css), two columns with a divider; categories stack with no gap */
.loc-services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
/* Two service columns: the surgery calendar chip sits over the right column, its left edge 11px short of the divider
   (Figma: Location — 01 Office page (Boise), "Surgeries & services" header) */
.loc-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 30px;
  align-items: end;
}
.loc-head--split .chip {
  justify-self: start;
  margin-left: -26px;
}
.loc-services--two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 30px;
  background: linear-gradient(var(--pcli-color-border-input), var(--pcli-color-border-input)) center/1px 100% no-repeat;
}
.loc-services .sv-card {
  margin: 0;
  padding-bottom: 12px;
  background: none;
}
@media (max-width: 720px) {
  .loc-services--two {
    grid-template-columns: minmax(0, 1fr);
    background: none;
  }
  .loc-head--split {
    display: flex;
  }
  .loc-head--split .chip {
    margin-left: 0;
  }
}

/* Right column (.loc-side): the BirdEye reviews, then the contact column (.loc-aside), which sticks while the reviews
   scroll away. The column stretches the full height of .loc-body so the contact column can stick inside it.
   With reviews, the column starts 20px under "All locations" in the hero: the reviews (badge 60px + card 192px)
   come first and the contact card sits 96px lower than without them. */
@media (min-width: 1101px) {
  .loc-side {
    grid-column: 5/7;
    justify-self: end;
    align-self: stretch;
    width: 362px;
    max-width: 100%;
    position: relative;
    z-index: 2;
    margin-top: -552px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .loc-side .loc-aside {
    justify-self: auto;
    width: auto;
    margin-top: 0;
  }
  .loc-side--reviews {
    margin-top: -736px;
  }
}
.loc-reviews {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  height: 264px;
}
.loc-reviews__badge,
.loc-reviews__list {
  max-width: 100%;
}
@media (max-width: 1100px) {
  .loc-side {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .loc-reviews {
    order: 2;
    align-items: center;
    height: auto;
  }
}

/* Down arrow after the services list → the doctors band (the home page's scroll cue, on a light background) */
.scroll-cue-light {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 8px auto 0;
  border: 1px solid rgba(37, 42, 43, 0.2);
  border-radius: 50%;
  background: #fff;
  color: var(--charcoal-800, #252a2b);
  animation: scroll-cue-light 2.4s ease-in-out infinite;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.scroll-cue-light:hover {
  border-color: rgba(37, 42, 43, 0.4);
  background: var(--pcli-color-bg-subtle);
}
.scroll-cue-light:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
}
@keyframes scroll-cue-light {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
html:has(.scroll-cue-light) {
  scroll-behavior: smooth;
}
#loc-team {
  scroll-margin-top: 84px;
} /* clear the sticky nav */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-light {
    animation: none;
  }
  html:has(.scroll-cue-light) {
    scroll-behavior: auto;
  }
}

/* Doctors band: Optometric Physicians first, then Ophthalmic Surgeons */
.loc-team__group {
  display: flex;
  flex-direction: column;
  gap: inherit;
}
.loc-team__group + .loc-team__group {
  margin-top: 64px;
}
#loc-doctors {
  scroll-margin-top: 108px;
}

/* "+" on each doctor photo: the card opens the doctor's page. Figma: Location / More badge (Default; Hover when the
   card is hovered or focused) */
.loc-doctor__photo {
  position: relative;
}
.loc-doctor__more {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e4e2dd;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  color: #ff9706;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.loc-doctor:hover .loc-doctor__more,
.loc-doctor:focus-visible .loc-doctor__more {
  border-color: transparent;
  background: #ff8c00;
  color: #000;
}

/* 721–1280px: .inner has no side padding of its own, so the hero, photo band and body kept the content against the
   window edges. Inset them by the gutter (48px here); phones set their own padding below 721px. */
@media (min-width: 721px) and (max-width: 1280px) {
  .loc-hero__inner,
  .loc-band__inner,
  .loc-body {
    padding-inline: var(--gutter);
  }
  .loc-hero__inner {
    box-sizing: border-box;
    max-width: calc(var(--content) + 2 * var(--gutter));
  } /* it's width: 100%, so the padding goes inside; lines up with the body below */
}
