/* ============================================================
   daleyglobalex.com — mobile fixes (390 px audit, Sep 2026)
   Load AFTER style.css on every page.
   ============================================================ */

@media (max-width: 900px) {

  /* 1. Body base font ----------------------------------------
     style.css sets 15 px; raise to 16 px so every element that
     inherits meets the minimum readable size on mobile.        */
  body {
    font-size: 16px;
    /* Reserve space at the bottom for the sticky CTA bar */
    padding-bottom: 64px;
  }

  /* 2. Form inputs — iOS auto-zooms any input below 16 px ----
     16 px exactly prevents the page zoom on focus.            */
  .form-control,
  input.form-control,
  select.form-control,
  textarea.form-control {
    font-size: 16px !important;
  }

  /* 3. Hamburger button: was 36×36, need ≥44×44 ------------- */
  .mobile-menu-btn {
    padding: 10px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* 4. Logo link: was 31 px tall — add vertical padding ------ */
  a.navbar-logo {
    padding: 6px 0;
  }

  /* 5. Card/category "View →" links: were 22 px tall --------- */
  .card-link,
  a.card-link {
    display: inline-flex;
    align-items: center;
    padding-top: 11px;
    padding-bottom: 11px;
    min-height: 44px;
    font-size: 15px;
  }

  /* 6. Footer navigation links: were 19 px tall -------------- */
  .footer-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    font-size: 15px;
  }
  .footer-links li {
    margin-bottom: 0;
  }

  /* 7. Footer grid: one column at 390 px --------------------- */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* 8. Breadcrumb links: were 22 px tall --------------------- */
  .breadcrumb-inner a {
    display: inline-flex;
    align-items: center;
    padding: 11px 4px;
    min-height: 44px;
  }
  .breadcrumb {
    padding: 8px 0;
  }

  /* 9. Small body text in cards / blog / certs --------------- */
  .card p,
  .card-body p,
  .blog-body p,
  .cert-card p,
  .cat-card-body p,
  .faq-a,
  .industry-chip {
    font-size: 15px;
  }

  /* Spec table — was 14 px */
  .spec-table {
    font-size: 15px;
  }
  .spec-table td {
    padding: 12px 12px;
  }

  /* Form labels — were 13 px */
  .form-label {
    font-size: 15px;
  }

  /* Blog card headings */
  .blog-body h3 {
    font-size: 17px;
  }

  /* 10. Cookie banner buttons: were ~37 px tall -------------- */
  #cookie-banner p {
    font-size: 15px;
  }
  .cookie-btn-accept,
  .cookie-btn-decline {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 15px;
  }

  /* 11. WhatsApp FAB: move up above sticky CTA --------------- */
  .whatsapp-btn {
    bottom: 72px !important;
  }

  /* 12. Sticky bottom CTA ------------------------------------ */
  .mobile-sticky-cta {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 997;
    background: var(--gold, #C8922A);
    box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.22);
    /* Hides when JS adds data-hidden="1" */
  }
  .mobile-sticky-cta[data-hidden="1"] {
    display: none !important;
  }
  .mobile-sticky-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 14px 24px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.12);
  }
  .mobile-sticky-cta a:active {
    background: var(--gold-dark, #a07218);
  }
}

/* Desktop: always hide the sticky CTA ----------------------- */
@media (min-width: 901px) {
  .mobile-sticky-cta {
    display: none !important;
  }
}
