/* ========================================================================
   Al Hafeed Interior — UI/UX AUDIT FIXES (preview build)
   All approved CSS changes live here, loaded LAST so they override cleanly.
   Excluded per client: WhatsApp (not added). Cursor: kept + fixed to never revert.
   ======================================================================== */

/* 1) CURSOR — keep the custom gold cursor at ALL times on mouse devices;
      never fall back to the OS arrow/hand over menu tabs, buttons or links. */
@media (pointer: fine) {
  * { cursor: none !important; }
}

/* 2) PRIMARY BUTTONS — legible, confident labels (were 10–11px). */
.btn {
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  padding: 16px 30px !important;
}

/* 3) GENUINELY-TOO-SMALL FUNCTIONAL LABELS raised to a 12px floor.
      (The intentional 11–12px tracked gold small-caps elsewhere are left alone.) */
.hero-scroll span { font-size: 12px !important; }   /* was 9px  */
.hero-stat-label  { font-size: 12px !important; }   /* was 10px */
.ahl-logo-sub     { font-size: clamp(11px, 2.8vw, 13px) !important; } /* loader tagline was 7px */

/* 4) HERO SUBTITLE on mobile — bigger, slightly bolder, brighter,
      plus a readability scrim behind the hero text over busy imagery. */
@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.86) !important;
    max-width: 100% !important;
  }
  .hero-overlay {
    background: linear-gradient(to top,
      rgba(10,22,40,0.94) 0%,
      rgba(10,22,40,0.62) 42%,
      rgba(10,22,40,0.26) 100%) !important;
  }
}

/* 5) CREDIBILITY STATS (20+ Years / 500+ Projects / 4 Core Services)
      shown on mobile as a compact strip instead of being hidden. */
@media (max-width: 768px) {
  #hero {
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
  }
  #hero > .hero-content { width: 100% !important; max-width: 100% !important; }
  .hero-scroll { display: none !important; }  /* avoid overlap with the new mobile stats strip */
  .hero-stats {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    right: auto !important;
    bottom: auto !important;
    gap: 22px !important;
    text-align: left !important;
    margin: 2px 0 30px !important;
    padding: 0 16px !important;
    width: 100%;
    opacity: 1 !important;
    animation: none !important;
  }
  .hero-stat::before { display: none !important; }
  .hero-stat-num   { font-size: 27px !important; }
  .hero-stat-label { font-size: 11px !important; letter-spacing: 0.14em !important; }
}

/* 6) MOBILE TAP TARGETS — ≥44px for dropdown sub-links and social icons. */
@media (max-width: 768px) {
  .overlay-sublink {
    padding: 14px 0 !important;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}
.footer-social-link {
  display: inline-flex !important;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.footer-socials { gap: 6px !important; }

/* 7) Keyboard focus — a visible gold outline for keyboard users only
      (invisible to mouse users, so the look is unchanged). */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible,
.btn:focus-visible, .nav-cta:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px !important;
}

/* 8) End-of-article call-to-action box (used by the Insights articles). */
.article-cta {
  margin: 48px 0 8px;
  padding: 30px 28px;
  border: 1px solid rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.05);
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 26px;
  margin: 0 0 8px;
}
.article-cta p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  margin: 0 0 20px;
}

/* 9) Contact step indicator — never clip on mobile; scroll horizontally if needed. */
@media (max-width: 768px) {
  .step-rail-items {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .step-rail-items::-webkit-scrollbar { display: none; }
}
