/* Los Angeles location page (/managed-it-services-los-angeles-ca).
   Layout, spacing and type come from Bootstrap utilities and the shared
   site classes; this file only holds what those cannot express. */

.la-icon-white {
  filter: brightness(0) invert(1);
}

/* Bootstrap border utilities read --bs-border-style, so this only restyles the sides they draw */
.la-dashed {
  --bs-border-style: dashed;
}

/* section headings: Poppins SemiBold 30/46 in the design */
.la-h2 {
  font-size: 30px;
  line-height: 46px;
}

@media (max-width: 767.98px) {
  .la-h2 {
    font-size: 24px;
    line-height: 36px;
  }
}

/* page buttons: design blue, 10px corners, arrow that slides on hover */
.la-btn {
  --bs-btn-color: #fff;
  --bs-btn-bg: #0175b5;
  --bs-btn-border-color: #0175b5;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0360a1;
  --bs-btn-hover-border-color: #0360a1;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #024f85;
  --bs-btn-active-border-color: #024f85;
  --bs-btn-focus-shadow-rgb: 4, 121, 201;
  --bs-btn-border-radius: 10px;
  --bs-btn-font-size: 17px;
  --bs-btn-font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 16px rgba(1, 117, 181, 0.28);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.la-btn i {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.la-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

/* hero sits on a dark photo: thin light border so it reads as a button */
.la-btn-hero {
  --bs-btn-border-color: rgba(255, 255, 255, 0.55);
  --bs-btn-hover-border-color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .la-btn:hover {
    transform: translateY(-2px);
  }

  .la-btn:hover i {
    transform: translateX(4px);
  }
}

@media (max-width: 575.98px) {
  .la-btn {
    --bs-btn-font-size: 16px;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .la-btn,
  .la-btn i {
    transition: none;
    transform: none !important;
  }
}

/* background image section with a tinted overlay (tint set via --la-overlay) */
.la-bg {
  position: relative;
  background-size: cover;
  background-position: center;
}

.la-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--la-overlay);
}

.la-bg > .container {
  position: relative;
}

/* fixed-width digits so the stats don't shift while counting up */
.la-count {
  font-variant-numeric: tabular-nums;
}

/* card text is clamped until "Read more" is clicked */
.la-expandable-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--la-lines, 6);
  overflow: hidden;
}

.la-expandable.is-open .la-expandable-text {
  -webkit-line-clamp: unset;
}

/* hero */
.la-hero.page-header {
  min-height: 0;
}

@media (min-width: 992px) {
  .la-hero.page-header {
    min-height: 700px;
  }
}

.la-hero .overlay {
  background: linear-gradient(90deg, rgba(10, 14, 30, 0.82), rgba(10, 14, 30, 0.35));
}

/* scales so "Providers Los Angeles, California" stays on one line in the lg+ column */
.la-hero-title {
  font-size: clamp(26px, 2.75vw, 42px);
}

.la-hero-card {
  max-width: 500px;
}

/* service cards: blue trapezoid ribbon holding the icon */
.la-service-card {
  padding-top: 104px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* blue strip along the card top */
.la-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: var(--primary-color);
}

.la-service-card h3 {
  margin-bottom: 28px !important;
}

.la-service-card .la-read-more {
  border-top-color: #bdbdbd !important;
}

/* ribbon: trapezoid rising 17px above the card, with light folds outside its top corners */
.la-service-tab {
  position: absolute;
  top: -17px;
  left: 50%;
  z-index: 1;
  width: 199px;
  height: 80px;
  transform: translateX(-50%);
}

.la-service-tab-shape {
  position: absolute;
  inset: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}

.la-service-tab::before,
.la-service-tab::after {
  content: "";
  position: absolute;
  top: 0;
  width: 17px;
  height: 17px;
  background: #5aaeea;
}

.la-service-tab::before {
  left: 5px;
  clip-path: polygon(70% 0, 100% 100%, 0 100%);
}

.la-service-tab::after {
  right: 5px;
  clip-path: polygon(30% 0, 100% 100%, 0 100%);
}

/* challenges: photo with orbit ring and 24/7 badge */
.la-challenges-visual {
  --la-pad: 90px;
  --la-photo: calc(100% - var(--la-pad));
  max-width: 560px;
  padding: 0 var(--la-pad) 40px 0;
}

.la-challenges-visual > img {
  aspect-ratio: 513 / 547;
  object-fit: cover;
}

/* true circle sized from the photo width: 594px ring, 67px in from a 513px photo (design values) */
.la-orbit {
  position: absolute;
  top: 3px;
  left: calc(var(--la-photo) * 0.1306);
  width: calc(var(--la-photo) * 1.1579);
  aspect-ratio: 1;
  border: 1px solid #515151;
  border-radius: 50%;
}

.la-orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  transform: translate(-50%, -50%);
}

/* left edge 68% across the photo, as in the design, so the lower orbit dot stays visible */
.la-support-badge {
  left: calc(var(--la-photo) * 0.68);
  width: min(267px, calc(var(--la-photo) * 0.52));
  aspect-ratio: 267 / 269;
  container-type: inline-size;
  border-radius: 20px !important;
  background: #0479c9 url("../images/los-angeles/24-7-human-support.webp") center / cover no-repeat;
}

/* text sized relative to the badge: 30px / 20px at full size */
.la-support-badge span:first-child {
  font-size: 30px !important;
  font-size: 11.2cqw !important;
}

.la-support-badge span:last-child {
  font-size: 20px !important;
  font-size: 7.5cqw !important;
}

.la-support-badge::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #fff;
  border-radius: 10px;
}

.la-step-num {
  width: 36px;
  height: 36px;
  font-size: 22px;
}

.la-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 0;
  left: 18px;
  border-left: 1.5px dashed #9aa4ae;
}

/* nearby cities: scrollable list card with the map overlapping it */
.la-cities {
  max-height: 588px;
  overflow-y: auto;
  border-radius: 10px;
  background: #f2f2f2;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.34) !important;
}

/* city rows: selectable, the active one lifts onto a white card with a blue accent bar */
.la-city {
  position: relative;
  gap: 12px !important;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.la-city::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.la-city:hover {
  background: rgba(255, 255, 255, 0.6);
}

.la-city.is-active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.la-city.is-active::before {
  opacity: 1;
}

.la-city p {
  color: #4a4a4a;
}

.la-city-pin {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

/* round map-pin button; filled when its city is on the map */
.la-city-btn {
  --bs-btn-padding-y: 0;
  --bs-btn-padding-x: 0;
  --bs-btn-color: var(--primary-color);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #cfe0ee;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary-color);
  --bs-btn-hover-border-color: var(--primary-color);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--primary-color);
  --bs-btn-active-border-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  font-size: 15px;
}

/* linked city name: dark like plain names, brand blue with a small external-link icon */
.la-city-link {
  color: inherit;
  text-decoration: none;
}

.la-city-link i {
  margin-left: 4px;
  font-size: 13px;
  color: var(--primary-color);
  vertical-align: 1px;
}

.la-city-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.la-map {
  height: 420px;
  z-index: 0;
}

/* Leaflet photo pins: round city photo in a white ring with a pointer below */
.la-pin {
  display: flex;
  justify-content: center;
}

.la-pin img {
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
  transform-origin: 50% 100%;
}

.la-pin::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border: 6px solid transparent;
  border-top: 9px solid #fff;
  border-bottom: 0;
  transform: translateX(-50%);
  transition: border-top-color 0.2s ease;
}

.la-pin.is-active img {
  border-color: #0479c9;
  transform: scale(1.2);
}

.la-pin.is-active::after {
  border-top-color: #0479c9;
}

@media (min-width: 1200px) {
  /* keep the arrow buttons clear of the overlapping map */
  .la-cities {
    padding-right: 64px !important;
  }

  .la-map {
    position: relative;
    z-index: 1;
    height: 440px;
    margin-left: -56px;
  }
}

@media (min-width: 992px) {
  .la-divider {
    border-right: 1.5px solid rgba(255, 255, 255, 0.4);
  }
}

/* success stories (extends the shared .story-card) */
.la-story {
  border-radius: 20px !important;
  background: #011c40;
}

.la-story-alt {
  background: #014695;
}

.la-story .story-image,
.la-story .story-image img {
  height: 290px;
}

.la-story .story-badge {
  border: 0;
  border-radius: 50px;
  background: linear-gradient(90deg, #035e9a, #012034);
}

.la-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(1, 117, 181, 0.2);
}

/* MSP partner */
.la-partner {
  background: #23222e;
}

.la-partner-image {
  position: absolute;
  inset: 14px auto 14px 0;
  width: 44.5%;
  background-size: cover;
  background-position: left;
}

.la-partner-icon {
  width: 70px;
  height: 70px;
  background: #0175b5;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.45);
  border-radius: 0px 0px 16px;
}

/* reliable partner: on desktop the photo fills the light band and the cards overlap its lower 212px */
.la-overlap {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.la-reliable-photo {
  max-width: 703px;
}

@media (min-width: 992px) {
  .la-overlap {
    margin-top: -212px;
  }

  .la-overlap-space .col-lg-5 {
    padding-bottom: 212px !important;
  }
}

.la-reliable-icon {
  top: 10%;
  left: -8%;
  width: 90px;
  height: 90px;
}

.la-reliable-num {
  width: 60px;
  height: 60px;
  font-size: 22px;
  background: rgba(4, 121, 201, 0.2);
}

/* foundation CTA */
.la-foundation {
  --la-overlay: linear-gradient(90deg, #23222e 23%, rgba(2, 67, 111, 0) 74%);
  background-color: #23222e;
  /* zoom in on the staircase in the bottom-right of the source image */
  background-size: auto 180%;
  background-position: right 12% bottom;
  background-repeat: no-repeat;
}

.la-foundation-sphere {
  position: absolute;
  top: 50%;
  left: 1%;
  width: 380px;
  transform: translateY(-50%);
  opacity: 0.18;
  filter: invert(1);
}

.la-points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.la-points li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #fff;
  -webkit-mask: url("../images/los-angeles/icons/points.svg") center / contain no-repeat;
  mask: url("../images/los-angeles/icons/points.svg") center / contain no-repeat;
}

.la-points li:not(:last-child)::after {
  content: "|";
}

@media (max-width: 991.98px) {
  .la-dashed > .col {
    border-left: 0 !important;
  }

  .la-partner {
    padding-top: 0 !important;
  }

  .la-partner-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: 320px;
    margin-bottom: 48px;
  }

  .la-foundation {
    --la-overlay: rgba(24, 32, 51, 0.82);
    background-size: cover;
  }
}

@media (max-width: 767.98px) {
  .la-challenges-visual {
    --la-pad: 40px;
    padding-bottom: 60px;
  }

  /* no room for the ring beside a full-width photo on phones */
  .la-orbit {
    display: none;
  }

  .la-support-badge {
    right: 0;
    left: auto;
    width: 180px;
  }
}

/* ==========================================================
   Hover effects
   Only transform and opacity are animated (GPU-composited, no layout
   or repaint per frame). Card shadows fade in as a pre-drawn layer
   instead of animating box-shadow. Mouse/trackpad devices only, and
   no motion for visitors who prefer reduced motion.
   ========================================================== */
@media (hover: hover) and (pointer: fine) {
  /* shared lift + shadow layer */
  .la-service-card,
  .la-reliable-card,
  .la-story,
  .la-partner-card {
    transition: transform 0.3s ease;
  }

  /* isolate so the shadow layer (z-index -1) stays with its card above section backgrounds */
  .la-service-card,
  .la-reliable-card {
    isolation: isolate;
  }

  .la-service-card::after,
  .la-reliable-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    box-shadow: 0 14px 30px rgba(4, 61, 110, 0.22);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .la-reliable-card {
    position: relative;
  }

  .la-service-card:hover,
  .la-reliable-card:hover,
  .la-story:hover,
  .la-partner-card:hover {
    transform: translateY(-6px);
  }

  .la-service-card:hover::after,
  .la-reliable-card:hover::after {
    opacity: 1;
  }

  /* service card: icon pops slightly */
  .la-service-tab img {
    transition: transform 0.3s ease;
  }

  .la-service-card:hover .la-service-tab img {
    transform: scale(1.12);
  }

  /* success stories: slow image zoom inside its frame, arrow nudges right */
  .la-story .story-image img {
    transition: transform 0.6s ease;
  }

  .la-story:hover .story-image img {
    transform: scale(1.06);
  }

  .la-story .la-link-icon {
    transition: transform 0.3s ease;
  }

  .la-story:hover .la-link-icon {
    transform: translateX(4px);
  }

  /* partner cards (dark section): icon box grows */
  .la-partner-icon {
    transition: transform 0.3s ease;
  }

  .la-partner-card:hover .la-partner-icon {
    transform: scale(1.08);
  }

  /* reliable cards: number badge grows */
  .la-reliable-num {
    transition: transform 0.3s ease;
  }

  .la-reliable-card:hover .la-reliable-num {
    transform: scale(1.12);
  }

  /* hero stat cells and certification cells: soft highlight layer */
  .la-hover-cells .col-6,
  .la-cert-grid > div {
    position: relative;
  }

  .la-hover-cells .col-6::after,
  .la-cert-grid > div::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }

  .la-hover-cells .col-6::after {
    background: rgba(255, 255, 255, 0.12);
  }

  .la-cert-grid > div::after {
    background: rgba(4, 121, 201, 0.07);
  }

  .la-hover-cells .col-6:hover::after,
  .la-cert-grid > div:hover::after {
    opacity: 1;
  }

  /* challenge steps: number circle grows on its row */
  .la-step-num {
    transition: transform 0.25s ease;
  }

  .la-steps li:hover .la-step-num {
    transform: scale(1.15);
  }

}

@media (prefers-reduced-motion: reduce) {
  .la-service-card,
  .la-reliable-card,
  .la-story,
  .la-partner-card,
  .la-service-card *,
  .la-reliable-card *,
  .la-story *,
  .la-partner-card *,
  .la-steps *,
  .la-cities * {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================
   Phone / tablet refinements
   ========================================================== */
@media (max-width: 1199.98px) {
  /* one scroll area per page on touch: let the city list grow instead of scrolling inside itself */
  .la-cities {
    max-height: none;
    overflow: visible;
  }

  /* bigger touch targets (at least 40px), visual size unchanged where it matters */
  .la-read-more {
    padding-top: 12px !important;
    padding-bottom: 8px !important;
    min-height: 44px;
  }

  .la-service-card h3 a,
  .la-story-link {
    display: inline-block;
    padding: 6px 0;
  }
}

@media (max-width: 767.98px) {

  /* city list: avatar and text use the full width */
  .la-cities {
    padding: 20px 16px !important;
  }

  .la-cities li {
    gap: 12px !important;
  }

  /* stats: centred two-column grid, the 5th item spans both columns */
  .la-dashed > .col {
    text-align: center;
  }

  .la-dashed > .col:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* success stories: shorter photos, keep the subject (gear sits on the right) in frame */
  .la-story .story-image,
  .la-story .story-image img {
    height: 200px;
  }

  .la-story-alt .story-image img {
    object-position: right center;
  }

  .la-story .display-6 {
    font-size: 30px;
  }

  .la-story .fs-18 {
    font-size: 14px !important;
  }

  .la-story .story-badge {
    font-size: 15px !important;
    margin: 12px !important;
  }

  /* partner cards: long titles wrap inside the card */
  .la-partner-card h3 {
    min-width: 0;
    padding-right: 12px;
  }

  /* help desk CTA: lighter heading on small screens */
  .la-divider .display-5 {
    font-size: 40px;
  }

  /* section rhythm: slightly tighter vertical padding */
  section.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* ==========================================================
   FAQ (page-scoped overrides of the shared .faq-accordion)
   Design: question Poppins SemiBold 16, answer Poppins Light 14,
   46px icon, answer aligned with the question, 2px #d9d9d9 rail.
   ========================================================== */
.la-faq h2 {
  margin-bottom: 12px;
}

.la-faq .accordion-item {
  margin-bottom: 28px;
  background: transparent;
}

.la-faq .accordion-item:last-child {
  margin-bottom: 0;
}

/* the icon is centred on the question text instead of setting the row height,
   so one- and two-line questions get the same gap above their answer */
.la-faq .accordion-button {
  position: relative;
  align-items: center;
  min-height: 0;
  padding: 0 0 0 63px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #000;
}

.la-faq .accordion-button::after {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin-left: auto;
  padding-left: 16px;
  font-size: 20px;
  line-height: 1;
}

.la-faq .faq-icon {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.la-faq .faq-icon img {
  display: block;
  width: 46px;
  max-width: 46px;
}

/* grey rail drawn beside the answer only */
.la-faq .accordion-body {
  padding: 10px 16px 0 63px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: #000;
  /* rail starts 16px down so it clears the icon even when a one-line question lets the icon overhang */
  background: linear-gradient(#d9d9d9, #d9d9d9) 22px 16px / 2px calc(100% - 20px) no-repeat;
}

.la-faq .accordion-item .line {
  display: none;
}

/* no rail on the last question of each column */
.la-faq .accordion-item:last-child .accordion-body {
  background: none;
}

@media (max-width: 991.98px) {
  .la-faq #faqRight {
    margin-top: 28px;
  }
}

@media (max-width: 767.98px) {
  .la-faq .accordion-button {
    padding-left: 46px;
    font-size: 15px;
  }

  .la-faq .faq-icon img {
    width: 34px;
    max-width: 34px;
  }

  .la-faq .accordion-body {
    padding: 8px 4px 0 46px;
    background-position: 16px 12px;
    background-size: 2px calc(100% - 16px);
  }
}