/* ==========================================================================
   Local Specialists — map CTA banner
   Figma section frame: 1920×887 at page top 8250, opacity 1
   Content: 1440×647 at page top 8370 / left 240, radius 24px, #1C45C2
   Map: 695×647 at page top 8370 / left 985 (right column inside content)
   Van desktop: 466×193 at page top 8944 / left 164
   Van mobile: 390×162 at page top 10733 / left 20
   ========================================================================== */

.local-specialists {
  --ls-w: 1920px;
  --ls-h: 887px;
  --ls-canvas: 1920px;
  --ls-page-top: 8250px;
  --ls-canvas-offset: calc((min(100vw, var(--ls-canvas)) - var(--ls-canvas)) / 2);
  --ls-content-w: 1440px;
  --ls-content-h: 647px;
  --ls-content-page-top: 8370px;
  --ls-content-page-left: 240px;
  --ls-content-top: calc(var(--ls-content-page-top) - var(--ls-page-top));
  --ls-content-left: max(16px, calc(var(--ls-canvas-offset) + var(--ls-content-page-left)));
  --ls-body-w: 745px;
  --ls-map-w: 695px;
  --ls-map-h: 647px;
  --ls-title-w: 595px;
  --ls-title-h: 216px;
  --ls-acts-w: 497px;
  --ls-acts-h: 66px;
  --ls-acts-gap: 20px;
  --ls-radius: 24px;
  --ls-blue: #1c45c2;
  --ls-van-w: 466px;
  --ls-van-h: 193px;
  --ls-van-page-top: 8944px;
  --ls-van-page-left: 164px;
  --ls-van-top: calc(var(--ls-van-page-top) - var(--ls-page-top));
  --ls-van-left: max(16px, calc(var(--ls-canvas-offset) + var(--ls-van-page-left)));
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  height: var(--ls-h);
  min-height: var(--ls-h);
  background: #fff;
  overflow: visible;
  opacity: 1;
}

/* Figma content: 1440×647 at page top 8370 / left 240 */
.local-specialists__content {
  position: absolute;
  top: var(--ls-content-top);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 745fr) minmax(0, 695fr);
  width: min(calc(100vw - 32px), var(--ls-content-w));
  max-width: var(--ls-content-w);
  height: var(--ls-content-h);
  min-height: var(--ls-content-h);
  border-radius: var(--ls-radius);
  overflow: hidden;
  background: var(--ls-blue);
  opacity: 1;
  box-shadow: 0 16px 48px rgba(11, 27, 52, .14);
}

.local-specialists__body {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  padding: 48px 52px 48px 56px;
  color: #fff;
}

.local-specialists__title {
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  width: var(--ls-title-w);
  min-width: 0;
  max-width: 100%;
  height: var(--ls-title-h);
  min-height: var(--ls-title-h);
  margin: 0 0 20px;
  padding: 0;
  overflow: visible;
  opacity: 1;
  transform: rotate(0deg);
  font-family: 'Gilroy-ExtraBoldItalic', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 54px;
  line-height: 72px;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: left;
  color: #fff;
  background: transparent;
}

.local-specialists__title-line {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 72px;
  white-space: nowrap;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  color: inherit;
}

.local-specialists__text {
  margin: 0 0 28px;
  max-width: 560px;
  font-family: 'Gilroy-Medium', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
  color: #fff;
}

/* Figma acts row: 497×66, gap 20px */
.local-specialists__acts {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--ls-acts-gap);
  box-sizing: border-box;
  width: var(--ls-acts-w);
  min-width: 0;
  max-width: 100%;
  height: var(--ls-acts-h);
  min-height: var(--ls-acts-h);
  opacity: 1;
  transform: rotate(0deg);
}

.local-specialists__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  height: 100%;
  border-radius: 50px;
  padding: 0 16px;
  font-size: .95rem;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(11, 27, 52, .12);
}

.local-specialists__btn .ic,
.local-specialists__btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.local-specialists__acts .btn-yellow {
  background: #ffb81c;
  color: var(--navy);
}

.local-specialists__acts .btn-white {
  background: #fff;
  color: var(--navy);
}

/* Figma map: 695×647 — right column (page left 985 = content left 240 + body 745) */
.local-specialists__map {
  grid-column: 2;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: var(--ls-map-h);
  min-height: var(--ls-map-h);
  background: #e8edf5;
  opacity: 1;
  transform: rotate(0deg);
}

.local-specialists__map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Figma van: 466×193 at page top 8944 / left 164 */
.local-specialists__van {
  position: absolute;
  top: var(--ls-van-top);
  left: var(--ls-van-left);
  z-index: 5;
  box-sizing: border-box;
  width: var(--ls-van-w);
  min-width: var(--ls-van-w);
  max-width: var(--ls-van-w);
  height: var(--ls-van-h);
  min-height: var(--ls-van-h);
  max-height: var(--ls-van-h);
  margin: 0;
  line-height: 0;
  opacity: 1;
  transform: rotate(0deg);
  pointer-events: none;
}

.local-specialists__van img {
  width: var(--ls-van-w);
  height: var(--ls-van-h);
  max-width: none;
  object-fit: contain;
  object-position: bottom left;
  display: block;
  opacity: 1;
  transform: rotate(0deg);
  filter: drop-shadow(0 12px 28px rgba(11, 27, 52, .22));
}

/* Large / 4K (> 1920px): shift van right so it stays at left edge of layout */
@media (min-width: 1921px) {
  .local-specialists__van {
    left: calc((100vw - 1920px) / 2 + var(--ls-van-page-left));
  }
}

/* Desktop L → tablet landscape (1101px – 1440px): keep absolute layout, scale content */
@media (max-width: 1440px) {
  .local-specialists__content {
    width: min(calc(100vw - 32px), var(--ls-content-w));
  }
}

/* Tablet landscape (769px – 1100px): switch to flow layout, drop fixed height */
@media (max-width: 1100px) {
  .local-specialists {
    height: auto;
    min-height: 0;
    padding: clamp(32px, 4vw, 60px) clamp(16px, 3vw, 32px) clamp(40px, 5vw, 80px);
  }

  .local-specialists__content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 auto;
  }

  .local-specialists__body {
    padding: 40px 36px 40px 40px;
    height: auto;
    min-height: 0;
  }

  .local-specialists__title {
    width: 100%;
    height: auto;
    min-height: 0;
    font-size: clamp(28px, 3.8vw, 48px);
    line-height: 1.2;
  }

  .local-specialists__title-line {
    height: auto;
    white-space: normal;
  }

  .local-specialists__text {
    font-size: clamp(14px, 1.5vw, 18px);
    max-width: 100%;
  }

  .local-specialists__acts {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    flex-wrap: wrap;
  }

  .local-specialists__btn {
    height: clamp(50px, 5vw, 66px);
    min-height: 0;
    font-size: clamp(.82rem, 1.2vw, .95rem);
  }

  .local-specialists__map {
    min-height: clamp(220px, 30vw, 420px);
    height: auto;
  }

  /* Van: hide on tablet — no space for it in flow layout */
  .local-specialists__van {
    display: none;
  }
}

@media (max-width: 768px) {
  .local-specialists {
    --ls-van-w: 390px;
    --ls-van-h: 162px;
    --ls-van-m-page-top: 10733px;
    --ls-van-m-page-left: 20px;
    --ls-van-m-top: calc(var(--ls-van-m-page-top) - var(--ls-page-top));
    --ls-van-m-left: calc(var(--ls-van-m-page-left) - var(--ls-m-pad-x));
    --ls-m-pad-x: 20px;
    height: auto;
    min-height: 0;
    padding: 24px var(--ls-m-pad-x) calc(24px + var(--ls-van-h) * .52);
    overflow: visible;
  }

  .local-specialists__content {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    border-radius: var(--ls-radius);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(11, 27, 52, .12);
  }

  .local-specialists__body {
    width: 100%;
    height: auto;
    padding: 32px 24px 28px;
    text-align: center;
    align-items: center;
  }

  .local-specialists__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 36px;
    text-align: center;
  }

  .local-specialists__title-line {
    height: auto;
    min-height: 0;
    white-space: normal;
    text-align: center;
  }

  .local-specialists__text {
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
    text-align: center;
    font-size: 15px;
    line-height: 24px;
  }

  .local-specialists__acts {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    gap: 10px;
  }

  .local-specialists__btn {
    flex: none;
    width: 100%;
    height: 66px;
    min-height: 66px;
  }

  .local-specialists__map {
    grid-column: auto;
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: none;
  }

  /* Figma mobile van: 390×162 at page top 10733 / left 20 */
  .local-specialists__van {
    position: absolute;
    top: auto;
    bottom: 20px;
    left: var(--ls-van-m-left);
    transform: none;
    margin: 0;
    box-sizing: border-box;
    width: var(--ls-van-w);
    min-width: var(--ls-van-w);
    max-width: var(--ls-van-w);
    height: var(--ls-van-h);
    min-height: var(--ls-van-h);
    max-height: var(--ls-van-h);
    opacity: 1;
    pointer-events: none;
  }

  .local-specialists__van img {
    width: var(--ls-van-w);
    height: var(--ls-van-h);
    object-fit: contain;
    object-position: bottom left;
  }
}

@media (max-width: 480px) {
  .local-specialists {
    --ls-m-pad-x: 16px;
    --ls-van-m-left: calc(var(--ls-van-m-page-left) - var(--ls-m-pad-x));
    padding-top: 20px;
  }

  .local-specialists__body {
    padding: 28px 20px 24px;
  }

  .local-specialists__title {
    font-size: 24px;
    line-height: 32px;
  }

  .local-specialists__map {
    min-height: 260px;
  }

  .local-specialists__van {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: clamp(260px, 80vw, 340px) !important;
    min-width: 0 !important;
    max-width: clamp(260px, 80vw, 340px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .local-specialists__van img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
}

/* Very small screens (≤ 360px / 320px) */
@media (max-width: 360px) {
  .local-specialists {
    --ls-m-pad-x: 12px;
    padding-top: 16px;
  }

  .local-specialists__body {
    padding: 22px 16px 20px;
    text-align: center;
  }

  .local-specialists__title {
    font-size: 20px;
    line-height: 28px;
  }

  .local-specialists__text {
    font-size: 13px;
    line-height: 22px;
    margin-bottom: 20px;
  }

  .local-specialists__acts {
    gap: 8px;
  }

  .local-specialists__btn {
    height: 50px;
    min-height: 50px;
    font-size: .8rem;
    padding: 0 12px;
    gap: 6px;
  }

  .local-specialists__btn .ic,
  .local-specialists__btn svg {
    width: 18px;
    height: 18px;
  }

  .local-specialists__map {
    min-height: 200px;
  }
}

/* QA 2026-08-01: match the other H2s — the display font needs font-style:italic (synthetic slant) */
.local-specialists__title,
.local-specialists__title .local-specialists__title-line{ font-style: italic !important; }
