/*
 * Shared phone experience
 * -----------------------
 * This file intentionally loads after every page stylesheet. Desktop layouts
 * remain unchanged; phones get a shorter header, clearer hierarchy, generous
 * tap targets, and less secondary information competing with the main task.
 */

/* Shared city combobox. Unlike a browser datalist, this remains visible when
   suggestions arrive asynchronously and works with mouse, touch, or keyboard. */
.home-charity-city-input,.public-charity-city-input{display:block;position:relative}
.city-typeahead-results{background:#fff;border:2px solid #0b6b8d;border-radius:10px;box-shadow:0 14px 32px rgba(8,43,76,.22);left:0;max-height:245px;overflow-y:auto;position:absolute;right:0;top:calc(100% + 5px);z-index:1000}
.city-typeahead-results[hidden]{display:none!important}
.city-typeahead-results [role="option"]{color:#17324d;cursor:pointer;display:block;font-size:15px;font-weight:750;line-height:1.3;min-height:44px;padding:12px 14px}
.city-typeahead-results [role="option"]+[role="option"]{border-top:1px solid #dce7ed}
.city-typeahead-results [role="option"]:hover,.city-typeahead-results [role="option"].is-active{background:#e8f5f8;color:#075b79}
.city-typeahead-message{color:#526c7e;display:block;font-size:14px;line-height:1.4;padding:13px 14px}

@media (max-width: 991.98px) {
  html { scroll-padding-top: 78px; }
  body { overflow-x: hidden; }
  img, svg, video, iframe { max-width: 100%; }
  .container, .container-xl { max-width: 100%; }

  .top-wrap { display: none !important; }
  .ycgb-site-header > .ftco-navbar-light {
    background: #0b2d46 !important;
    box-shadow: 0 2px 9px rgba(4, 24, 39, .2);
    padding: 6px 0;
    z-index: 20;
  }
  .ftco-navbar-light .container-xl { padding-left: 14px; padding-right: 14px; }
  .ftco-navbar-light .navbar-brand { font-size: 24px; max-width: calc(100% - 60px); padding: 5px 0; }
  .ftco-navbar-light .navbar-brand .flaticon { flex: 0 0 auto; margin-right: 7px !important; }
  .ftco-navbar-light .navbar-brand img { height: 38px; width: 38px; }
  .ftco-navbar-light .navbar-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ftco-navbar-light .navbar-brand small { display: none; }
  .ftco-navbar-light .navbar-toggler {
    align-items: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 9px;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
  }
  .ftco-navbar-light .navbar-collapse { padding-top: 5px; }
  .ftco-navbar-light .navbar-nav { padding: 4px 0 8px; }
  .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 14px;
    letter-spacing: 1.3px;
    min-height: 48px;
    padding: 14px 8px;
  }

  .hero-wrap,
  .hero-wrap.hero-wrap-2,
  .hero-wrap.hero-wrap-3,
  .hero-wrap.hero-wrap-4,
  .hero-wrap .slider-text,
  .hero-wrap.hero-wrap-2 .slider-text,
  .hero-wrap.hero-wrap-3 .slider-text,
  .hero-wrap.hero-wrap-4 .slider-text {
    height: auto !important;
    min-height: 285px !important;
  }
  .hero-wrap .slider-text { padding: 45px 0; }
  .hero-wrap .slider-text h1,
  .hero-wrap .slider-text .h1,
  .hero-wrap .slider-text .bread {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
  }

  .ftco-section { padding: 3.5rem 0; }
  .heading-section h2, .heading-section .h2 { font-size: clamp(1.8rem, 7vw, 2.45rem); line-height: 1.12; }
}

@media (max-width: 767.98px) {
  body { font-size: 16px; line-height: 1.55; }
  h1, h2, h3, h4, p { overflow-wrap: anywhere; }
  .container, .container-xl { padding-left: 16px; padding-right: 16px; }
  .row { margin-left: -8px; margin-right: -8px; }
  .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }

  a, button, input, select, textarea, summary { touch-action: manipulation; }
  button, .btn, input[type="submit"], input[type="button"], select { min-height: 48px; }
  input, select, textarea { font-size: 16px !important; }

  .ftco-section { padding: 2.7rem 0; }
  .ftco-section .mb-5 { margin-bottom: 1.75rem !important; }
  .ftco-section .mt-5 { margin-top: 1.75rem !important; }
  .page-about .heading-section.py-5,
  .page-privacy .heading-section.py-5,
  .page-terms .heading-section.py-5 { padding-bottom: 0 !important; padding-top: 0 !important; }
  .page-about .heading-section p,
  .page-privacy .heading-section p,
  .page-terms .heading-section p { line-height: 1.62; }
  .page-about .heading-section ul { padding-left: 22px; }
  .page-about .heading-section li { margin-bottom: 8px; }
  .page-pricing .pricing-section { padding-bottom: 42px !important; padding-top: 36px !important; }
  .page-pricing .free-plan { border-radius: 16px; }
  .page-pricing .free-plan-top,
  .page-pricing .free-plan-body { padding: 20px 17px !important; }
  .page-pricing .price-zero { font-size: 3.5rem !important; }
  .page-pricing .promise-card,
  .page-pricing .pricing-faq { padding: 17px; }
  .page-pricing .charity-callout { border-radius: 15px; padding: 22px 17px; }
  .page-locations #map { height: 62vh !important; min-height: 360px; }

  /* Keep supporting navigation useful without turning the footer into another page. */
  .ftco-footer { padding-top: 34px; }
  .ftco-footer .row.mb-5.pb-5 { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 0 !important; padding-bottom: 18px !important; }
  .ftco-footer .row.mb-5.pb-5 > div { max-width: none; width: auto; }
  .ftco-footer .row.mb-5.pb-5 > div:first-child,
  .ftco-footer .row.mb-5.pb-5 > div:last-child { grid-column: 1 / -1; }
  .ftco-footer .row.mb-5.pb-5 > div:nth-child(4) { display: none; }
  .ftco-footer .row.mb-5.pb-5 > div:first-child p { display: none; }
  .ftco-footer .ftco-footer-widget { margin-bottom: 22px !important; }
  .ftco-footer .ftco-footer-widget h2,
  .ftco-footer .ftco-footer-widget .h2 { font-size: 17px; margin-bottom: 13px; }
  .ftco-footer .logo .navbar-brand { font-size: 25px; }
  .ftco-footer .logo .navbar-brand small { display: none; }
  .ftco-footer .ftco-footer-widget ul li { margin-bottom: 5px; }
  .ftco-footer .ftco-footer-widget ul li a { display: inline-flex; min-height: 38px; padding: 7px 0; }
  .ftco-footer .block-23 ul li,
  .ftco-footer .block-23 ul li > a { margin-bottom: 5px; }
  .ftco-footer .bg-darken { padding-bottom: 22px !important; padding-top: 22px !important; }

  .ycgb-feedback-button { bottom: 12px; font-size: 14px; min-height: 48px; padding: 10px 15px; right: 12px; }
  .ycgb-feedback-dialog { border-radius: 16px; max-height: calc(100vh - 20px); overflow-y: auto; padding: 23px 18px; width: calc(100% - 20px); }
}

@media (max-width: 420px) {
  .ftco-navbar-light .navbar-brand { font-size: 21px; }
  .ftco-navbar-light .navbar-brand img { height: 34px; width: 34px; }
  .ftco-footer .row.mb-5.pb-5 { grid-template-columns: 1fr; }
  .ftco-footer .row.mb-5.pb-5 > div:first-child,
  .ftco-footer .row.mb-5.pb-5 > div:last-child { grid-column: auto; }
}

@media print {
  .ycgb-feedback-button { display: none !important; }
}
