/* EMA Clinique mobile-friendly overrides
   Place after style.css on every page. */
:root { --ema-mobile-bar-height: 66px; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
.cs_site_branding img { max-width: 210px; height: auto !important; }
.cs_main_header_in { min-height: 76px; }
.cs_header_contact_list { gap: 12px; flex-wrap: wrap; }
.cs_header_contact_list li, .cs_header_contact_list a { white-space: normal; }
.cs_btn, .cs_btn span { white-space: nowrap; }
.ema-mobile-cta { display: none; }

@media (max-width: 1199px) {
  .container { max-width: 100%; padding-left: 18px; padding-right: 18px; }
  .cs_main_header_right > .cs_btn { margin-right: 48px; }
}

@media (max-width: 991px) {
  body { padding-bottom: var(--ema-mobile-bar-height); }
  .cs_top_header { display: none; }
  .cs_site_header_spacing_150, .cs_site_header_spacing_130, .cs_site_header_spacing_120, .cs_site_header_spacing_100 { height: 82px !important; }
  .cs_main_header { padding: 8px 0; }
  .cs_main_header_in { min-height: 64px; }
  .cs_site_branding img { max-width: 155px; width: auto !important; }
  .cs_main_header_right > .cs_btn { display: none !important; }

  .cs_nav { position: static; }
  .cs_nav .cs_menu_toggle { right: 18px; top: 50%; transform: translateY(-50%); z-index: 1002; }
  .cs_nav_list {
    position: fixed !important;
    top: 78px;
    left: 12px;
    right: 12px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 45px rgba(0,0,0,.14);
    padding: 14px 0 !important;
    z-index: 1001;
  }
  .cs_nav_list > li > a { padding: 13px 22px !important; font-size: 16px; line-height: 1.35; }
  .cs_nav_list ul { padding: 4px 0 8px 18px !important; }
  .cs_nav_list ul li a { padding: 10px 20px !important; font-size: 15px; }
  .cs_menu_dropdown_toggle { top: 6px !important; right: 8px !important; min-width: 42px; min-height: 42px; }

  h1, .cs_hero_title { font-size: clamp(32px, 9vw, 44px) !important; line-height: 1.12 !important; }
  h2, .cs_section_title { font-size: clamp(26px, 7vw, 34px) !important; line-height: 1.2 !important; }
  h3 { font-size: clamp(21px, 5.5vw, 28px) !important; }
  p, li { font-size: 16px; line-height: 1.65; }

  .cs_hero, .cs_page_heading, .cs_slider, section { overflow: hidden; }
  .cs_hero_text, .cs_hero_subtitle { max-width: 100%; }
  .cs_hero_btns, .cs_btn_group { display: flex; flex-wrap: wrap; gap: 12px; }
  .cs_hero_btns .cs_btn, .cs_btn_group .cs_btn { width: 100%; justify-content: center; }

  [class*="cs_height_"] { height: 32px !important; }
  .cs_height_lg_0 { height: 0 !important; }
  .row { --bs-gutter-y: 22px; }
  .cs_card, .cs_iconbox, .cs_pricing_table, .cs_team, .cs_post, .cs_contact_info { margin-bottom: 22px; }
  .cs_section_heading { margin-bottom: 28px !important; }

  .slick-slide { height: auto; }
  .slick-dots { bottom: 10px; }
  table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }

  .ema-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--ema-mobile-bar-height);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    box-shadow: 0 -8px 28px rgba(0,0,0,.14);
    z-index: 9999;
    backdrop-filter: blur(8px);
  }
  .ema-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--accent-color, #44c599);
  }
  .ema-mobile-cta a:first-child { background: var(--blue-color, #16a086); }
}

@media (max-width: 575px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .cs_site_branding img { max-width: 135px; }
  .cs_nav_list { top: 72px; left: 8px; right: 8px; }
  h1, .cs_hero_title { font-size: clamp(29px, 9vw, 38px) !important; }
  h2, .cs_section_title { font-size: clamp(24px, 7vw, 31px) !important; }
  .cs_btn { min-height: 48px; padding: 13px 18px !important; font-size: 15px; }
  .cs_iconbox, .cs_card, .cs_pricing_table { padding-left: 18px !important; padding-right: 18px !important; }
  .cs_page_heading_title { font-size: 32px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .cs_preloader { display: none !important; }
}
