/* Studio RES — mobile UX polish (desktop unchanged) */
:root {
  --sr-blue: #4a86b4;
  --sr-blue-dark: #3a6f96;
  --sr-ink: #2c3e50;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.sr-menu-open {
  overflow: hidden !important;
  touch-action: none;
}

.sr-mobile-bar {
  display: none;
}

@media (max-width: 1024px) {
  /* Sticky action bar */
  .sr-mobile-bar {
    display: flex !important;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 99990;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(44, 62, 80, 0.2);
    border: 1px solid rgba(74, 134, 180, 0.2);
  }

  .sr-mobile-bar a {
    flex: 1 1 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    border-radius: 12px;
    font-family: Montserrat, Roboto, system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  .sr-mobile-bar__call,
  .sr-mobile-bar__call * {
    color: #2c3e50 !important;
    -webkit-text-fill-color: #2c3e50 !important;
    fill: #2c3e50 !important;
    background: transparent;
  }

  .sr-mobile-bar__call {
    background: #eef4f8 !important;
    border: 1px solid #d5e2ec !important;
  }

  .sr-mobile-bar__book,
  .sr-mobile-bar__book * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    fill: #ffffff !important;
  }

  .sr-mobile-bar__book {
    background: linear-gradient(180deg, #5a96c2, #4a86b4) !important;
    border: 0 !important;
    box-shadow: 0 8px 18px rgba(74, 134, 180, 0.3) !important;
  }

  .sr-mobile-bar__book svg,
  .sr-mobile-bar__call svg {
    color: inherit !important;
    fill: currentColor !important;
    stroke: currentColor;
  }

  .sr-mobile-bar svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }

  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Compact sticky header */
  .elementor-location-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(44, 62, 80, 0.07);
  }

  .elementor-location-header img {
    max-height: 46px !important;
    width: auto !important;
  }

  /* Hide redundant social strip under logo — keeps header clean */
  .elementor-location-header .elementor-widget-social-icons {
    display: none !important;
  }

  .elementor-menu-toggle {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: #eef5fa !important;
    color: var(--sr-blue) !important;
  }

  .elementor-menu-toggle svg {
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
  }

  /* Pleasant dropdown sheet */
  .elementor-nav-menu--dropdown,
  .elementor-nav-menu__container.elementor-nav-menu--dropdown {
    border: 0 !important;
    border-radius: 0 0 18px 18px !important;
    box-shadow: 0 18px 40px rgba(44, 62, 80, 0.16) !important;
    background: #fff !important;
    padding: 10px 12px 16px !important;
    max-height: min(72vh, 560px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .elementor-nav-menu--dropdown .elementor-item,
  .elementor-nav-menu--dropdown a.elementor-item,
  .elementor-nav-menu--dropdown a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    width: 100% !important;
    padding: 0.85rem 1rem !important;
    margin: 5px 0 !important;
    border-radius: 12px !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    background: #f5f8fb !important;
    opacity: 1 !important;
  }

  .elementor-nav-menu--dropdown a:hover,
  .elementor-nav-menu--dropdown a:focus,
  .elementor-nav-menu--dropdown .current-menu-item > a,
  .elementor-nav-menu--dropdown .elementor-item-active {
    background: #e7f1f8 !important;
    color: #4a86b4 !important;
  }

  /* Hero contrast — only first top section */
  .elementor-element-89c7ebb {
    position: relative !important;
  }

  .elementor-element-89c7ebb::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      180deg,
      rgba(18, 36, 54, 0.2) 0%,
      rgba(18, 36, 54, 0.38) 45%,
      rgba(18, 36, 54, 0.55) 100%
    );
  }

  .elementor-element-89c7ebb > .elementor-container,
  .elementor-element-89c7ebb > .e-con-inner,
  .elementor-element-89c7ebb .elementor-widget {
    position: relative;
    z-index: 2;
  }

  .elementor-element-89c7ebb h1.elementor-heading-title,
  .elementor-element-89c7ebb .elementor-widget-heading h1 {
    font-size: clamp(1.55rem, 6.5vw, 1.95rem) !important;
    line-height: 1.22 !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4) !important;
  }

  .elementor-element-89c7ebb h2.elementor-heading-title,
  .elementor-element-89c7ebb .elementor-widget-heading h2 {
    font-size: clamp(1.15rem, 5vw, 1.45rem) !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35) !important;
  }

  .elementor-button {
    min-height: 48px !important;
    border-radius: 12px !important;
  }

  /* Services denser */
  .elementor-widget-image-box .elementor-image-box-title {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }

  .elementor-widget-image-box .elementor-image-box-img img {
    max-width: 70px !important;
    height: auto !important;
  }

  .elementor-widget-image-box {
    margin-bottom: 0.25rem !important;
  }

  /* Team */
  .elementor-carousel-image {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
  }

  .elementor-swiper-button,
  .elementor-swiper-button-prev,
  .elementor-swiper-button-next {
    width: 44px !important;
    height: 44px !important;
  }

  .elementor-widget-image img {
    border-radius: 12px;
  }

  /* FAQ */
  .elementor-widget-elementskit-faq .ekit-faq-title,
  .elementor-widget-elementskit-faq .elementskit-card-header,
  .elementor-toggle-title,
  .ekit-accordion-title {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
  }

  iframe[src*="google.com/maps"],
  .elementor-widget-google_maps iframe {
    width: 100% !important;
    max-width: 100% !important;
  }

  img,
  video,
  svg {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .elementor-location-header img {
    max-height: 40px !important;
  }

  .sr-mobile-bar a {
    font-size: 0.74rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
