/* ========================================================================
   Al Hafeed Interior — UI/UX AUDIT FIXES (preview build)
   Loaded LAST so these override cleanly.
   Excluded per client: WhatsApp (not added). Cursor: kept + fixed to never revert.
   NOTE: all HOMEPAGE hero rules are scoped to #hero so they never leak onto
   the Projects (#archive-hero) or Facility (#fac-hero) pages, which have their
   own hero-stats layouts. Footer social icons left as the live site has them.
   ======================================================================== */

/* 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) HOMEPAGE hero micro-labels raised to a 12px floor (homepage only;
      the Projects/Facility pages keep their own intentional sizes). */
#hero .hero-scroll span { font-size: 12px !important; }   /* was 9px  */
#hero .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) HOMEPAGE hero subtitle on mobile - bigger, brighter + readability scrim. */
@media (max-width: 768px) {
  #hero .hero-subtitle {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.86) !important;
    max-width: 100% !important;
  }
  #hero .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) HOMEPAGE credibility stats shown on mobile as a compact strip
      (scoped to #hero; Projects/Facility hero stats are untouched). */
@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 .hero-scroll { display: none !important; }
  #hero .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 .hero-stat::before { display: none !important; }
  #hero .hero-stat-num   { font-size: 27px !important; }
  #hero .hero-stat-label { font-size: 11px !important; letter-spacing: 0.14em !important; }
}

/* 6) MOBILE TAP TARGETS - mobile menu sub-links >=44px.
      Footer social icons are intentionally left at the live-site size/spacing
      (single row) - the earlier 44px version wrapped them onto two lines. */
@media (max-width: 768px) {
  .overlay-sublink {
    padding: 14px 0 !important;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* 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; }
}
