/**
 * Stage3 — mobile / tablet adjustments (loaded after theme style.css)
 */

/* Header tagline (see header.php) */
.cs-header_tagline {
  font-size: 14px;
  text-align: center;
  color: #ffffff;
  font-family: Calibri, "Segoe UI", sans-serif;
  line-height: 1.45;
  margin: 0 0 6px;
  padding: 0 12px;
  max-width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 767px) {
  .cs-header_tagline {
    font-size: 11px;
    line-height: 1.4;
    padding: 0 10px 2px;
  }
}

@media screen and (max-width: 400px) {
  .cs-header_tagline {
    font-size: 10px;
    padding: 0 6px 2px;
  }
}

/* Home hero: “mobile” stack from tablet down (theme was 489px only — tablets broke) */
.cs-hero-home .visible-mobile {
  display: none !important;
}

.cs-hero-home .hidden-mobile {
  display: block !important;
}

.cs-hero-home .cs-hero_spacer {
  height: 0;
}

@media screen and (max-width: 991px) {
  .cs-hero-home .visible-mobile {
    display: block !important;
    margin-top: 24px;
  }

  .cs-hero-home .cs-hero_spacer {
    height: 100px;
  }

  .cs-hero-home .hidden-mobile {
    display: none !important;
  }

  .cs-hero-home .cs-hero_title {
    font-size: clamp(26px, 7vw, 44px);
  }

  .cs-hero-home .cs-hero_title .d-block {
    letter-spacing: 0.06em !important;
    margin-left: 0 !important;
    word-break: break-word;
  }

  .cs-hero-home .cs-hero_title .d-block[style*="arial"] {
    letter-spacing: 0.04em !important;
    font-size: clamp(22px, 6vw, 36px) !important;
  }

  .cs-hero-home .cs-hero_subtitle {
    font-size: clamp(11px, 3.2vw, 15px);
    padding-left: 12px;
    padding-right: 12px;
    line-height: 1.45;
  }
}

@media screen and (max-width: 575px) {
  .cs-hero-home .row[style*="margin-top"] {
    margin-top: -72px !important;
  }

  .cs-hero-home .cs-hero_spacer {
    height: 64px;
  }
}

.cs-hero-home .cs-hero_text {
  overflow-x: hidden;
  max-width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}

/* Footer “Contact us” button from footer.php */
.cs-footer_cta_btn {
  max-width: 100%;
}

@media screen and (max-width: 575px) {
  .cs-footer_cta_btn {
    width: 100%;
    justify-content: center;
  }
}

/* Larger tap targets — mobile menu (theme breakpoint 1199px) */
@media screen and (max-width: 1199px) {
  .cs-site_header .cs-nav .cs-nav_list > li > a {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
    box-sizing: border-box;
  }

  .cs-site_header .cs-nav .cs-nav_list ul a {
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }
}

/* Inner page titles — avoid huge type on narrow phones */
@media screen and (max-width: 575px) {
  .cs-page_title.cs-font_50 {
    font-size: clamp(28px, 9vw, 42px) !important;
    line-height: 1.15;
    padding-left: 12px;
    padding-right: 12px;
  }

  .cs-page_heading .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Forms: full-width fields already in Bootstrap; ensure no horizontal overflow */
@media screen and (max-width: 575px) {
  .cs-form_field {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Portfolio gallery toolbar: see portfolio-gallery.css */

.stage3-lg-cap {
  text-align: center;
  padding: 8px 12px;
  line-height: 1.45;
}

.stage3-lg-cap span {
  font-size: 0.95em;
  opacity: 0.95;
}
